U-boot for Banana Pi

Ian Lepore ian at FreeBSD.org
Wed Aug 13 16:34:56 UTC 2014

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=gcc47  (because apparently you have a native compiler installed called “gcc47)
> >    HOSTCC=cc  (the standard system compiler works for native builds)
> >    HOSTCC=clang  (U-Boot’s host portions don’t require GCC)
> Yeah, no I know what's the point ;)
> > You can also specify HOSTCC on the gmake command line:
> >
> > gmake -j4 ARCH=arm CROSS_COMPILE=arm-eabi- HOSTCC=cc USE_PRIVATE_LIBGCC=yes
> Thanks!
> But anyway, kernel failed to load on Banana Pi..
> "reading kernel
> Error reading cluster
> ** Unable to read file kernel **
> ## Starting application at 0x48000000 ...
> undefined instruction..."
> via this command:
> fatload mmc 0 0x43000000 script.bin; fatload mmc 0 0x48000000 kernel; go 
> 0x48000000
> It loads boot.scr
> It loads script.bin
> It fails on kernel.
> But thank You for help with compilation, I was struggling this many hours..

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

More information about the freebsd-arm mailing list