How to change rootfs from official RPI3 image
Ricky Zhang
zhangchaowang at gmail.com
Wed Aug 21 02:58:53 UTC 2019
> 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 <https://www.freshports.org/sysutils/u-boot-rpi3>
> http://www.denx.de/wiki/U-Boot <http://www.denx.de/wiki/U-Boot>
>
> Regards,
> Ronald.
Hi Ronald,
Sorry, if I messed up the mailing list thread. I didn’t receive your email directly. Instead, I got your reply from daily digest. I have to copy subject and quote your reply manually in my email client. I have no idea how to fix it after reading all FAQ (https://www.freebsd.org/doc/en_US.ISO8859-1/articles/mailing-list-faq/article.html#etiquette <https://www.freebsd.org/doc/en_US.ISO8859-1/articles/mailing-list-faq/article.html#etiquette>). Any other mailing list I subscribed didn’t work this way...
In any case, the magic works. I did rsync:
rsync -aAXvr --progress --delete /* /mnt/USB \
--exclude='/boot/msdos/*' \
--exclude='/dev/*' \
--exclude='/proc/*' \
--exclude='/net/*' \
--exclude='/tmp/*' \
--exclude='/mnt/*' \
--exclude='/media/*'
I confirmed that it mount ssd as rootfs:
Ricky at router ~ $ df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/label/gpt/ssdrootfs 407G 5.5G 369G 1% /
devfs 1.0K 1.0K 0B 100% /dev
/dev/msdosfs/MSDOSBOOT 50M 13M 37M 26% /boot/msdos
tmpfs 50M 4.0K 50M 0% /tmp
As you said, kernel still comes from SD card. I don’t fully understand the FreeBSD boot process. Neither am I familiar with UEFI.
- I guess /boot/msdos/uboot.bin finds the SD card roofs system. Load the kernel from /boot/kernel in SD card and scan /boot/loader.conf to find the rootfs. Please correct me if I’m wrong.
- Should I remove /boot folder from SSD to avoid confusion?
- Are there any guide how to compile and deploy kernel?
More information about the freebsd-arm
mailing list