U-boot for Banana Pi
TooMeeK Admin
maps at toomeek.waw.pl
Fri Aug 15 15:13:44 UTC 2014
To update this,
"Error reading sector" is definitely caused by compiled file:
/usr/src/u-boot-sunxi/u-boot.bin
because when:
dd if=sunxi-spl.bin conv=notrunc of=banana.img bs=1024 seek=8
dd if=/usr/src/u-boot-sunxi/u-boot.bin conv=notrunc of=banana.img
bs=1024 seek=32
It reports sector error on reading kernel, but with u-boot.bin from
Cubieboard2 Wiki it works..
I didn't changed anything in u-boot-sunxi sources.
Let's see differences in boards.cfg:
Active arm armv7 sunxi - sunxi
Bananapi
sun7i:BANANAPI,SPL,SUNXI_GMAC,RGMII,MACPWR=SUNXI_GPH(23),STATUSLED=244,STATUSLED1=245,FAST_MBUS
Active arm armv7 sunxi - sunxi
Cubieboard2
sun7i:CUBIEBOARD2,SPL,SUNXI_GMAC,STATUSLED=244,STATUSLED1=245,FAST_MBUS
There are little differences in:
diff board/sunxi/dram_bananapi.c board/sunxi/dram_cubieboard2.c
7c7
< .clock = 432,
---
> .clock = 480,
But even after changing this to match clock from Cubieboard2 it's not
working..
Kernel isn't booting with mmc, mmcsd enabled in kernel config and memory
addressing to:
memory {
device_type = "memory";
reg = < 0x40000000 0x00000000 >; /* 1024MB RAM */
};
Probably I missunderstood memory addressing?? hex 40000000 is 1073741824
decimal ~1024MB
or should be here reg = < 0x40000000 0x40000000 >;
Regarding:
| You are now very close, check usb flash, if you followed Cubieboard
instruction (https://wiki.freebsd.org/FreeBSD/arm/Cubieboard) you have
to change da0s2 to da0 in kernel config.
I cannot do this, because I'm using internal SD card second slice for
booting, not external USB flash.
My goal is to fit FreeBSD 10.x on 1GB SD card as base OS ;)
Cheers,
TooMeeK
More information about the freebsd-arm
mailing list