Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Aug 2014 23:20:07 +0800
From:      Ganbold Tsagaankhuu <ganbold@gmail.com>
To:        TooMeeK Admin <maps@toomeek.waw.pl>
Cc:        "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>
Subject:   Re: U-boot for Banana Pi
Message-ID:  <CAGtf9xNTsQg-WKMu%2BRqNmF3W=vKm8ccvNdcL1VKm9gWwRohsTw@mail.gmail.com>
In-Reply-To: <53EE23B1.2020403@toomeek.waw.pl>
References:  <53EE0F93.6060407@toomeek.waw.pl> <53EE23B1.2020403@toomeek.waw.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Aug 15, 2014 at 11:13 PM, TooMeeK Admin <maps@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@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGtf9xNTsQg-WKMu%2BRqNmF3W=vKm8ccvNdcL1VKm9gWwRohsTw>