Johan Nilsson Posted yesterday at 10:33 AM Posted yesterday at 10:33 AM Hey Installed Armbian (Ubuntu-noble) with XFCE desktop on an HDD(sda) from SD-card, so I need to have an SD-card in my orange pi zero 2w. I wonder if I can move /boot to an another smaller SD-card? Or do I also need an "mbr" or someting also there u-boot are? /Cheers 0 Quote
eselarm Posted yesterday at 11:40 AM Posted yesterday at 11:40 AM I assume OPi02w has no on-board storage, so it only is the bootcode in ROM, and that reads U-Boot binary blob from fixed sector offset location on the SD-card. It does not even need a MBR-table or GPT and it is not in a partition, so you won't see it. Only if you use dd to read (or write/wipe) that data you will know. See how U-Boot needs to be written for your OPi02w, then you will understand. If the U-Boot is build to initialize the USB and HDD, you do not need /boot partition on the SD-card. But I do not know that. Not all USB-SATA chipset drivers are in U-Boot, so if not, you indeed need a boot partition on de SD-card where kernel initrd DTB are, those should understand USB-SATA chips and so see the rootfs on HDD. 0 Quote
Johan Nilsson Posted yesterday at 01:18 PM Author Posted yesterday at 01:18 PM Ok. Thanks. dd copie the blob. It has SPI or a little memory, but as I understand it could be a problem, so it easier to use SD as boot-disk. 0 Quote
eselarm Posted yesterday at 01:56 PM Posted yesterday at 01:56 PM What you prefer or think is best. An extra boot partition is more flexible as it is an extra 'boot-stage' sort of, and normal computers that use UEFI anyway need also a FAT formatted bootpartition besides 1 or more rootfs for (multiple) OS. So not a bad approach to have separate boot partition an if on SD-card, is removable, so is flexible in case of trouble and/or testing things. 0 Quote
robertoj Posted 1 hour ago Posted 1 hour ago (edited) The orange pi zero 2w is configured to only start u-boot from the microSD in the built-in microSD. You would have to: * recompile that uboot to load the initramfs and the kernel from your alternative storage (did you really mean HDD? which connector would you use?) or * load initramfs and kernel from the typical microsd /boot partition, but configure the kernel argument line to accept the HDD as the rootfs (make sure that the initramfs contains the kernel modules, and the hdd name is in the /etc/fstab file) or https://jamesachambers.com/orange-pi-zero-2-usb-ssd-boot-guide/ Edited 1 hour ago by robertoj 0 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.