Date: Wed, 13 Aug 2014 10:34:51 -0600 From: Ian Lepore <ian@FreeBSD.org> To: TooMeeK Admin <maps@toomeek.waw.pl> Cc: freebsd-arm@freebsd.org Subject: Re: U-boot for Banana Pi Message-ID: <1407947691.56408.507.camel@revolution.hippie.lan> In-Reply-To: <53EB8994.9080801@toomeek.waw.pl> References: <53EB40BC.8070506@toomeek.waw.pl> <53EB41EC.1080507@toomeek.waw.pl> <D6453375-5427-406C-8399-ACBAE8E1DBBC@kientzle.com> <53EB8994.9080801@toomeek.waw.pl>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 2014-08-13 at 17:51 +0200, TooMeeK Admin wrote: > W dniu 2014-08-13 16:33, Tim Kientzle pisze: > > > > Any of the following should work for you: > > HOSTCC=3Dgcc47 (because apparently you have a native compiler ins= talled called =B4gcc47) > > HOSTCC=3Dcc (the standard system compiler works for native builds= ) > > HOSTCC=3Dclang (U-Boot=FFs host portions don=FFt require GCC) > Yeah, no I know what's the point ;) > > You can also specify HOSTCC on the gmake command line: > > > > gmake -j4 ARCH=3Darm CROSS_COMPILE=3Darm-eabi- HOSTCC=3Dcc USE_PRIVAT= E_LIBGCC=3Dyes > Thanks! >=20 > But anyway, kernel failed to load on Banana Pi.. >=20 > "reading kernel > Error reading cluster > ** Unable to read file kernel ** > ## Starting application at 0x48000000 ... > undefined instruction..." >=20 > via this command: > fatload mmc 0 0x43000000 script.bin; fatload mmc 0 0x48000000 kernel; g= o=20 > 0x48000000 >=20 > It loads boot.scr > It loads script.bin > It fails on kernel. >=20 > But thank You for help with compilation, I was struggling this many hou= rs.. The 'go' command has to have an addres 0x100 higher than the load adddress (to skip the elf headers and start at the true entry point). Also, if you're using a modern u-boot that enables data caches, it won't automatically disable them on a 'go' command (it does on bootm or bootelf), so use this sequence: dcache off; dcache flush; go nnnnnnnn -- Ian
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1407947691.56408.507.camel>