Cubieboard2 with custom bootloader

Ganbold Tsagaankhuu ganbold at gmail.com
Thu Dec 15 06:51:55 UTC 2016


On Thu, Dec 15, 2016 at 2:29 PM, Mihai Carabas <mihai.carabas at gmail.com>
wrote:

> Hello Manu,
>
> We've tried multiple methods:
> 1. precompiled u-boot from FreeBSD packages  + ubldr
> 2. u-boot compiled from sources + your patches + ubldr
>

ubldr is broken in recent head.  At least r308903 (few days before clang
import) works for me.

Ganbold



> 3. precompiled u-boot from FreeBSD packages + kernel
> 4. u-boot compiled from sources + your patches + kernel
>
> For 1 and 2 we didn't manage to start ubldr. Do we need to add any custom
> option to u-boot?
>
> For 3, we manage to boot it normally.
>
> With 4, we have the following error:
> => setenv bootcmd "fatload mmc 0:1 0x42000000 kernel.bin; go 0x42000000"
> => boot
> reading kernel.bin
> 6758372 bytes read in 589 ms (10.9 MiB/s)
> ## Starting application at 0x42000000 ...
> panic: mtx_lock() of spin mutex (null) @
> /root/bhyve-ARM/src/sys/arm/arm/pmap-v6.c:6350
> cpuid = 0
> Uptime: 1s
>
> How did we compile u-boot:
> - we took 2016.11 from here[1] (u-boot-2016.11.tar.bz2)
>
> - apply patches and compile
> root at bsd:~/u-boot-2016.11 # patch -p1 -i ../
> people.freebsd.org/\~manu/uboot/0001-..
> <http://people.freebsd.org/%5C~manu/uboot/0001-..>..
> root at bsd:~/u-boot-2016.11 # make CROSS_COMPILE=arm-none-eabi-
> Cubieboard2_config
> root at bsd:~/u-boot-2016.11 # make CROSS_COMPILE=arm-none-eabi-
>
> - and used the u-boot-sunxi-with-spl.bin
>> Do you have any insight? (at least for thr 4th method)
>
> Thank you,
> Mihai
> _______________________________________________
> freebsd-arm at freebsd.org mailing list
> https://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