Could someone explain the boot partition to me?
#1
Using ayufan's buster minimal image, I noticed uboot seems to ignore the boot partition and instead looks at the boot folder in the root partition.  So if I update extlinux to load additional modules and look at sata for the root partition, it will ignore the changes because the system writes them to the boot partition instead of where uboot actually looks for it.

I have my root moved to an hard drive on sata side and want to use the SD card only for boot, but I seem to be missunderstanding something about how the boot process works.
  Reply
#2
(11-14-2019, 02:13 AM)Mentaluproar Wrote: Using ayufan's buster minimal image, I noticed uboot seems to ignore the boot partition and instead looks at the boot folder in the root partition.  So if I update extlinux to load additional modules and look at sata for the root partition, it will ignore the changes because the system writes them to the boot partition instead of where uboot actually looks for it.

I have my root moved to an hard drive on sata side and want to use the SD card only for boot, but I seem to be missunderstanding something about how the boot process works.

Yup, when you are running rootfs somewhere other than the SDcard, and using the SDcard to boot, all updates are made to /boot/. You need to duplicate them to the SDcard, I have a little script syncsd to do it for me

Code:
sudo mount /dev/mmcblk0p7 /mnt/
sudo rsync -ax --delete /boot/ /mnt/boot/
cat /mnt/boot/extlinux/extlinux.conf
* ROCKPro64 v2.1 2GB, 16Gb eMMC for rootfs, SX8200Pro 512GB NVMe for /home, HDMI video & sound, Bluetooth keyboard & mouse. Started Bionic minimal - now "focal", Openbox desktop for general purpose daily PC.
* PinePhone v1.2a 2/16Gb daily driver with Mobian/Phosh
* PinePhone BraveHeart now v1.2b 3/32Gb playing with arch
  Reply
#3
(11-14-2019, 02:56 PM)dukla2000 Wrote:
(11-14-2019, 02:13 AM)Mentaluproar Wrote: Using ayufan's buster minimal image, I noticed uboot seems to ignore the boot partition and instead looks at the boot folder in the root partition.  So if I update extlinux to load additional modules and look at sata for the root partition, it will ignore the changes because the system writes them to the boot partition instead of where uboot actually looks for it.

I have my root moved to an hard drive on sata side and want to use the SD card only for boot, but I seem to be missunderstanding something about how the boot process works.

Yup, when you are running rootfs somewhere other than the SDcard, and using the SDcard to boot, all updates are made to /boot/. You need to duplicate them to the SDcard, I have a little script syncsd to do it for me

Code:
sudo mount /dev/mmcblk0p7 /mnt/
sudo rsync -ax --delete /boot/ /mnt/boot/
cat /mnt/boot/extlinux/extlinux.conf

There's a way to configure the fstab to point to the SD card so updates and extlinux initramfs changes are put in the right place without a sync command.  I just can't find an example of how and my own attempts just break things.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Official Debian release won't boot!?! Faradn 4 1,184 07-06-2020, 09:29 AM
Last Post: Bullet64
  Mainline U-Boot with Arch Linux PKGBUILD mmatyas 0 519 04-17-2020, 03:49 AM
Last Post: mmatyas
  Ayufan 5.4.0 rc1 release - cannot boot Mentaluproar 2 1,079 01-05-2020, 02:39 PM
Last Post: mmiigg
  Upgrade Debian kernel on a SD/SATA drive boot combo. linuxha 6 1,280 12-12-2019, 04:43 AM
Last Post: dukla2000
  new rockpro64: images won't boot [solved] new-rockpro-user 0 556 11-20-2019, 12:42 PM
Last Post: new-rockpro-user
  Successful boot from HDD mmatyas 1 1,140 10-09-2019, 08:29 AM
Last Post: alexvs
  u-boot for Arch Linux Arm prw 3 907 07-20-2019, 12:38 PM
Last Post: stuartiannaylor
Exclamation eMMC boot issue jwillmer 0 410 07-19-2019, 03:16 PM
Last Post: jwillmer
  Problems flashing u-boot on RockPRO64 eMMC mau-tux 1 950 05-28-2019, 07:15 AM
Last Post: CrystalGamma
  Help at prompts during first boot. Diesel141 0 313 04-24-2019, 01:15 PM
Last Post: Diesel141

Forum Jump:


Users browsing this thread: 1 Guest(s)