How to change rootfs from official RPI3 image

Ronald Klop ronald-lists at klop.ws
Tue Aug 20 08:09:54 UTC 2019


 
Van: Ronald Klop <ronald-lists at klop.ws>
Datum: dinsdag, 20 augustus 2019 09:49
Aan: freebsd-arm at freebsd.org
Onderwerp: Re: How to change rootfs from official RPI3 image
> 
>  
> Van: Ricky Zhang <zhangchaowang at gmail.com>
> Datum: dinsdag, 20 augustus 2019 04:18
> Aan: freebsd-arm at freebsd.org
> Onderwerp: How to change rootfs from official RPI3 image
> >
> > Hi,
> >
> > I dd a FreeBSD 12.0 RPI3 image to a SD card. Everything works like a charm
> > on my RPI3.
> >
> > But I want to switch rootfs to a larger USB hard drive. The boot partition
> > contains one configurable text file config.txt. I can't google how the
> > uboot load kernel from the rootfs partition. To my surprise, the FreeBSD
> > kernel is in the rootfs partition.
> >
> > Is this u-boot pieces open source? Where are the user guide documents? The
> > only document I could find provides no technical details in boot sequence.
> >
> > thanks,
> > Ricky
> > _______________________________________________
> > 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"
> >
> >
> >
> 
> Hi, I have it arranged that the kernel is loaded from the SD card, but the rest of the system is from an SSD via USB.
> 
> In /etc/fstab:
> /dev/gpt/ssdrootfs / ufs rw,noatime 1 1
> /dev/ufs/rootfs /bootdir ufs rw,noatime 1 2
> /dev/msdosfs/MSDOSBOOT /boot/msdos msdosfs rw,noatime 0 2
> 
> And a symlink from /boot -> /bootdir/boot
> 
> In /boot/loader.conf:
> vfs.root.mountfrom="ufs:/dev/gpt/ssdrootfs"
> kern.cam.boot_delay="20000"
> 
> My 2 cents.
> 
> Regards,
> Ronald.
>  
> _______________________________________________
> 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"
> 
> 
> 

BTW: Yes, u-boot is opensource: /usr/ports/sysutils/u-boot-rpi3
There are sysutils/u-boot-* ports for different system. With sysutils/u-boot-master as the main part of it.

https://www.freshports.org/sysutils/u-boot-rpi3
http://www.denx.de/wiki/U-Boot

Regards,
Ronald.


More information about the freebsd-arm mailing list