Compiling u-boot-rpi3 on an rpi3

James Shuriff james at opentech.cc
Mon May 6 19:42:24 UTC 2019


/boot/msdos is an arbitrary location. It's not even required to mount it. I mount my FAT partition elsewhere. Some boards don't even have u-boot in the filesystem they dd it directly onto the disk. Also consider you don't have to build the port on the Raspberry Pi, so there would be no way to install u-boot from the host system without knowing where the SD card is mounted.

The rpi-firmware port also puts stuff in /usr/local/share. That's the port that has most of the files needed for the Raspberry Pi's FAT partition. Here is a list of the files in the FAT partition and where you can get them from:

/LICENSE.broadcom: rpi-firmware port
/armstub8.bin: rpi-firmware port
/bcm2710-rpi-3-b.dtb: rpi-firmware port
/bootcode.bin: rpi-firmware port
/config.txt: rpi-firmware (config_rpi3.txt)
/dtb/*: FreeBSD Build Output (/usr/obj/usr/src/arm64.aarch64/sys/$KERNCONF/modules/usr/src/sys/modules/dtb or /boot/dtb on the Raspberry Pi)
/fixup*.dat: rpi-firmware port
/overlays/*: rpi-firmware port
/start*.elf: rpi-firmware port
/u-boot.bin: u-boot-rpi3 port

- James Shuriff

-----Original Message-----
From: bob prohaska <fbsd at www.zefox.net>
Sent: Monday, May 6, 2019 3:29 PM
To: James Shuriff <james at opentech.cc>
Cc: bob prohaska <fbsd at www.zefox.net>
Subject: Re: Compiling u-boot-rpi3 on an rpi3

On Mon, May 06, 2019 at 06:18:35PM +0000, James Shuriff wrote:
> Copy /usr/local/share/u-boot/u-boot-rpi3/u-boot.bin to /boot/msdos.
>

Ok, that did the trick.  Is there some particular reason make install didn't perform the copy?

Thank you very much!

bob prohaska


> - James Shuriff
>
> -----Original Message-----
> From: owner-freebsd-arm at freebsd.org <owner-freebsd-arm at freebsd.org> On
> Behalf Of bob prohaska
> Sent: Monday, May 6, 2019 2:05 PM
> To: Mika??l Urankar <mikael.urankar at gmail.com>
> Cc: freebsd-arm at freebsd.org; freebsd-ports at freebsd.org
> Subject: Re: Compiling u-boot-rpi3 on an rpi3
>
> On Mon, May 06, 2019 at 06:20:45PM +0200, Mika??l Urankar wrote:
> > Le lun. 6 mai 2019 ?? 17:19, bob prohaska <fbsd at www.zefox.net> a ??crit :
> > >
> > > On Mon, May 06, 2019 at 03:22:31PM +0200, Mika??l Urankar wrote:
> > > >
> > > > It builds fine here on aarch64, do you have security/openssl* installed?
> > > >
> > >
> > > Yes, security/openssl is installed. I didn't use it by default
> > > because of earlier reports of trouble. The system reminds me that
> >
> > Delete it and rebuild u-boot-rpi3
> >
>
> That certainly helped, make now runs successfully.
>
> But, make install didn't update anything in /boot/msdos.
> There seem to be three copies of u-boot-bin floating around, with identical size. Should I copy one manually to /boot/msdos, and does it matter which one?
>
> Thanks for reading and your help!
>
> bob prohaska
>
> _______________________________________________
> 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"
> ________________________________
>  DISCLAIMER: This message and any attachments are intended solely for the use of the recipient and may contain confidential information. If you have received this message in error please delete it and promptly notify the sender, James Shuriff (james at opentech.cc<mailto:james at opentech.cc>).
>
________________________________
 DISCLAIMER: This message and any attachments are intended solely for the use of the recipient and may contain confidential information. If you have received this message in error please delete it and promptly notify the sender, James Shuriff (james at opentech.cc<mailto:james at opentech.cc>).


More information about the freebsd-arm mailing list