Other OS
FreeBSD 10.0 on Banana
21
22124
View: 22124|Reply: 21
|
[Other OS]
FreeBSD 10.0 on Banana
[Copy link]
|
|
Post Last Edited by TooMeeK at 2014-8-12 11:50
Hi,
trying to boot FreeBSD 10.0 kernel on Banana Pi, mainly for pfSense distro port.
It's Cubieboard2 based kernel image.
So far, no luck.
How to pass bootloader options, since my serial console at J11 seems to be read-only (not passing keys as it should be) and I cannot get kernel booting? |
|
|
|
|
|
|
|
From the log, it seems that you do not include uEnv.txt or boot.src file to guide the next boot process. I think we need set the environment variable in uEnv.txt or boot.src so that the uboot know where is kernel and where is root file system. |
|
|
|
|
|
|
|
Post Last Edited by TooMeeK at 2014-8-12 12:53
Thank You.
I've set eEnv.txt file that shoud load:
fatload mmc 0 0x40200000 kernel; go 0x40200100
however, it seems that this file isn't read from the partition - no change in console log.
I'll try with boot.scr from u-boot-sunxi git, how-to here:
https://linux-sunxi.org/Manual_build_howto#boot.cmd
I've followed this how-to for FreeBSD distro:
https://wiki.freebsd.org/FreeBSD/arm/Cubieboard
UPDATE:
I've missed statement that there are 2 storage devices.. USB flash and SD card.
I'll try to put everything on SD card. |
|
|
|
|
|
|
|
Post Last Edited by TooMeeK at 2014-8-12 15:01
I'm in process of building own Banana's kernel config under FreeBSD.
And I need Your help ;)
First question is.. where I can find technical details of device?
As example here - based on Cubieboard2 files - what is addressing for memory?
EDIT:
I've used address space 0x40000000 - 0x00000000 which suppose to be 1024MB, will see. |
|
|
|
|
|
|
|
Banana Pi memory address is the same as cubieboard2 |
|
|
|
|
|
|
|
Post Last Edited by TooMeeK at 2014-8-12 18:04
Thanks, kernel is compiled.
Now I just need new u-boot.. tried the latest from there:
ftp://ftp.denx.de/pub/u-boot/
but it fails to compile.
EDIT:
I cannot get any version of u-boot to compile under FreeBSD.
I've tried several ways using both Linux and FreeBSD version of u-boot, none of them worked. |
|
|
|
|
|
|
|
Post Last Edited by TooMeeK at 2014-8-12 22:19
So far, I've stuck here:
pkg install gcc make joe screen htop gsed wget git
set CROSS=/usr/obj/arm.armv6/usr/src/tmp/usr/bin/
echo $CROSS
git clone https://github.com/linux-sunxi/u-boot-sunxi
cd u-boot-sunxi
ln -s /usr/local/bin/gcc /usr/obj/arm.armv6/usr/src/tmp/usr/bin/gcc
gmake -j4 ARCH=arm CROSS_COMPILE=${CROSS} USE_PRIVATE_LIBGCC=yes Bananapi_config
gmake -j4 ARCH=arm CROSS_COMPILE=${CROSS} USE_PRIVATE_LIBGCC=yes
UPDATE:
I was missing this:
pkg install arm-eabi-gcc
ln -s /usr/local/bin/arm-eabi-gcc /usr/local/bin/gcc
ln -s /usr/local/bin/arm-eabi-gcc /usr/obj/arm.armv6/usr/src/tmp/usr/bin/gcc
but still getting error, now about missing sys/mman.h |
|
|
|
|
|
|
|
It seems that you lack of many headers. |
|
|
|
|
|
|
|
I've posted this problem on FreeBSD ARM mailing lists and got quick answer:
http://lists.freebsd.org/piperma ... -August/008954.html
so I've already have u-boot, I'm proceeding to next step which is preparing SD card for booting using script.bin / eEnv.txt.
Hope it will finally work. |
|
|
|
|
|
|