Date: Thu, 15 Dec 2016 12:39:00 +0100 From: Emmanuel Vadot <manu@bidouilliste.com> To: Mihai Carabas <mihai.carabas@gmail.com> Cc: freebsd-arm@freebsd.org, Alex Ivan <alexnivan@gmail.com> Subject: Re: Cubieboard2 with custom bootloader Message-ID: <20161215123900.f141d13bd9814d43feb3f736@bidouilliste.com> In-Reply-To: <CANg1yUvmK3ti%2BSVXm30GB764SusaDYeKr6SPs5murXXV-8AZVQ@mail.gmail.com> References: <CANg1yUsXALko5VvLsyNsHfkA2CDbRX4G_ARgFyjs7ixOo_9KKw@mail.gmail.com> <20161212160553.dee9d435125f9c6b67355d21@bidouilliste.com> <CANg1yUvmK3ti%2BSVXm30GB764SusaDYeKr6SPs5murXXV-8AZVQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 15 Dec 2016 08:29:20 +0200 Mihai Carabas <mihai.carabas@gmail.com> wrote: > Hello Manu, >=20 > We've tried multiple methods: > 1. precompiled u-boot from FreeBSD packages + ubldr > 2. u-boot compiled from sources + your patches + ubldr > 3. precompiled u-boot from FreeBSD packages + kernel > 4. u-boot compiled from sources + your patches + kernel >=20 > For 1 and 2 we didn't manage to start ubldr. Do we need to add any custom > option to u-boot? >=20 > For 3, we manage to boot it normally. >=20 > With 4, we have the following error: > =3D> setenv bootcmd "fatload mmc 0:1 0x42000000 kernel.bin; go 0x42000000" > =3D> 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 =3D 0 > Uptime: 1s >=20 > How did we compile u-boot: > - we took 2016.11 from here[1] (u-boot-2016.11.tar.bz2) >=20 > - apply patches and compile > root@bsd:~/u-boot-2016.11 # patch -p1 -i ../ > people.freebsd.org/\~manu/uboot/0001-.... > root@bsd:~/u-boot-2016.11 # make CROSS_COMPILE=3Darm-none-eabi- > Cubieboard2_config > root@bsd:~/u-boot-2016.11 # make CROSS_COMPILE=3Darm-none-eabi- >=20 > - and used the u-boot-sunxi-with-spl.bin > ? > Do you have any insight? (at least for thr 4th method) >=20 > Thank you, > Mihai For 1 and 2, as Ganbold said ubldr is broken since clang 3.9 import (well only ubldr.bin for me ...) For 3 and 4 I've never tested booting kernel directly, I'll try that. Does your kernel have a static dtb compiled in ? --=20 Emmanuel Vadot <manu@bidouilliste.com> <manu@freebsd.org>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20161215123900.f141d13bd9814d43feb3f736>