Date: Fri, 15 Aug 2014 17:13:53 +0200 From: TooMeeK Admin <maps@toomeek.waw.pl> To: "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org> Subject: Re: U-boot for Banana Pi Message-ID: <53EE23B1.2020403@toomeek.waw.pl> In-Reply-To: <53EE0F93.6060407@toomeek.waw.pl> References: <53EE0F93.6060407@toomeek.waw.pl>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53EE23B1.2020403>