U-boot for Banana Pi
Ganbold Tsagaankhuu
ganbold at gmail.com
Fri Aug 15 15:20:08 UTC 2014
On Fri, Aug 15, 2014 at 11:13 PM, TooMeeK Admin <maps at toomeek.waw.pl> wrote:
> 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 >;
>
If you are talking about what should be in dts file then it should be:
reg = < 0x40000000 0x40000000 >; /* 1GB RAM */
>
> 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 ;)
There is no mmc/sd driver for A10/A20 SoC in src tree. But you can try
Alexander Fedorov's mmc driver, look for older threads or you can contact
him directly.
Ganbold
>
>
>
> Cheers,
> TooMeeK
>
> _______________________________________________
> freebsd-arm at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe at freebsd.org"
>
More information about the freebsd-arm
mailing list