Date: Sat, 24 Jun 2017 19:30:16 +0800 From: Jov <amutu@amutu.com> To: Johnny Sorocil <jsorocil@gmail.com> Cc: freebsd-arm <freebsd-arm@freebsd.org> Subject: Re: Orange Pi Zero support Message-ID: <CADyrUxPXpQLPn%2B-jupQGXFxn_zNcQ9CeCiYcuxS5sN0kZ5fCnQ@mail.gmail.com> In-Reply-To: <CADxA8SoTM2WWUhGZ=B-7Y7QthyaWRU2Si94Cw41ccCyQHA846w@mail.gmail.com> References: <CADxA8SoTM2WWUhGZ=B-7Y7QthyaWRU2Si94Cw41ccCyQHA846w@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi=EF=BC=8C I have tried orangepi plus 2e imange and this can be used to boot and run orange pi zero and one.All except ethernet works well. I build uboot use this: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214729 and use crochet build the image. I see a previous thread say dts files from linux can not be used on FreeBSD directly and should be modified. Jov 2017-06-24 19:13 GMT+08:00 Johnny Sorocil <jsorocil@gmail.com>: > Hi all! > > I am trying to run FreeBSD on Orange Pi Zero board (Allwinner H2+ SoC). > > I have few questions: > 1) How to build vanilla u-boot which will be capable booting FreeBSD > kernel? I have managed to load ubldr, but not the kernel. > 2) How to use newer Linux dts/dtb files? > > 1) u-boot > This is how I built u-boot: > git clone git://git.denx.de/u-boot.git > cd u-boot > git checkout v2017.05 > # apply patch so it can be built on FreeBSD (tested on FreeBSD 11.1-BETA1= ) > (in the attachment) > gmake ARCH=3Darm CROSS_COMPILE=3Darm-none-eabi- orangepi_zero_defconfig > gmake -j4 ARCH=3Darm CROSS_COMPILE=3Darm-none-eabi- > dd if=3Du-boot-sunxi-with-spl.bin conv=3Dnotrunc,sync of=3D/dev/mmcsd0 bs= =3D1024 > seek=3D8 > > In the u-boot prompt: > fatload mmc 0 0x42000000 ubldr.bin > setenv fdtfile sun8i-h3-orangepi-one.dtb > go 0x4200000 > ubldr will work as expected, but kernel will hang at the start. > If I use > /usr/local/share/u-boot/u-boot-orangepi-one/u-boot-sunxi-with-spl.bin the= n > the kernel and userland will boot normally. > This is tested booting -CURRENT from Jul 22 (git: 57e30b47aab) > > 2) newer DTS/DTB > If I use sun8i-h3-orangepi-one.dtb from FreeBSD source tree then the boar= d > will boot fine, but I don't have network. > I can also boot normally if the dtb file is rebuilt manually: > cd /usr/src/sys/gnu/dts/arm > cpp -P -x assembler-with-cpp -I /usr/src/sys/gnu/dts/include -include > sun8i-h3-orangepi-plus.dts /dev/null | dtc -O dtb -o ./sun8i-h3-rebuilt.d= tb > ls -lh sun8i-h3-rebuilt.dtb > -rw-r--r-- 1 root wheel 15K Jun 24 13:02 sun8i-h3-rebuilt.dtb > But, if dtb files from Armbian (Linux 4.11) are used, kernel will hang: > Using DTB from loaded file > 'boot/dtb-4.11.3-sun8i/sun8i-h2-plus-orangepi-zero.dtb'. > Kernel entry at 0x42200100... > Kernel args: -v > The same file boots Linux without problems. > > I don't know why newer dtb files won't work because there is no output on > serial console. > Any ideas how to make it work? > > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADyrUxPXpQLPn%2B-jupQGXFxn_zNcQ9CeCiYcuxS5sN0kZ5fCnQ>