I am using a 1080p monitor but mostly I don’t use a monitor.
I am running Debian 11 bullseye, booting from the eMMC module.
This works great. Much better than the SD card!
I would like to change the role of the computer and install a different OS.
I can’t boot from SD card… How do I delete the eMMC, erase Debian 11, and boot from the SD card so I can start over and install a new OS on the eMMC?
Are you sure you’re flashing the right image correctly on the MicroSD card? Without the eMMC module, it will boot the MicroSD card. To delete the eMMC bootloader, simply run:
I fixed the SD card and I can now boot from the SD card but if I have the eMMC connected it automatically boots from the eMMC card, not the SD card. Is there a way to swap the boot order? Or do I need to hot plug the eMMC after booting from the SD card?
Boards have a fixed search order for the bootloader. Once it has found the bootloader on the eMMC, it will boot from it. You can set the operating system boot order via creating a boot.ini file with the necessary boot_targets order saved on the device that the board is booting from.
This is what worked for me:
I had to use terminal or command line for this.
Open a terminal and change directory to boot/efi.
“cd /boot/efi”
Start nano as admin to create the file.
“sudo nano boot.ini”
add your boot targets.
“boot_targets=mmc1 mmc0”
Save the file, exit nano, and reboot.
I just tried adding a boot.ini file to my Alta board.
I used echo “boot_targets=mmc1 mmc0” > /boot/efi/boot.ini. My dir now shows “boot.ini EFI ubootefi.var” in the /boot/efi partition.
When I try the Alta with both an SD and eMMC, I get “device /dev/mmcblk1p2 already registered with higher generation, found 333 expect 4684”. This is similar to the error that we got previously, without the new redirected boot.
Any ideas?
By the way, I started with a “sweet potato” and progressed to “Alta” because of speed. Looks like the Alta is going to be plenty fast enough for my needs.
That means you have the same image on two different disks. The disk UUID is the same and btrfs is not designed to support two different partitions with the same UUID. You have to change the internal UUID on one of the partitions and update any associated boot information using update-grub on that image.
Looks like you’re right about the duplicate UUID’s = I used dd initially to write your debian-12-gnome-arm64+arm64.img onto my SD card and then, after Debian was up on the SD card, I used dd again to transfer the same debian-12… source image onto my eMMC card.
Looks like there are actually five UUID’s associated with my eMMC -
For the boot partition there are two = /dev/mmcblk0p1: SEC_TYPE=“msdos” LABEL_FATBOOT=“boot” LABEL=“boot” UUID=“537D-C620” BLOCK_SIZE=“512” TYPE=“vfat” PARTUUID=“45749835-01”
For the btrfs (OS) partition, there are three = /dev/mmcblk0p2: LABEL=“root” UUID=“a9812dd2-63a9-4fdc-b0e7-8b3e6353ab18”UUID_SUB=“494b5053-7a96-4e19-9a5f-286ac01d0117” BLOCK_SIZE=“4096” TYPE=“btrfs” PARTUUID=“45749835-02”
From your comments, I believe you are recommending that I change the PARTUUID for the btrfs partition PARTUUID=“45749835-02”?? Just wanted to double check with you before proceeding.
I checked the UUIDs for the SD on my linux desktop = the UUID & UUID_SUB were identical to the ones for the eMMC sent to you yesterday).
I then used btrfstune to update the btrfs partition UUID on the SD image (it changed only root & left the same UUID_SUB as before).
After installing in SD back in the ALTA, things improved drastically = it boots up on the eMMC board without any error + I can now see mmcblk1, partitioned correctly, using gparted.
boot.ini file is still in /boot/efi of the ALTA eMMC, but it does not divert the boot from the eMMC to the SD.
When you are in u-boot, run env print and check the boot_targets variable. That variable controls the search path. See if boot.ini on the eMMC properly applied to the boot environment.
Noticed earlier on gparted that the boot sector for the SD is not loaded whereas the boot sector for the eMMC is loaded. Did not reassign a new UUID for partition on the SD; so, it still duplicates the UUID number of boot on the eMMC
??
Note also that (gparted) partition 1 on the eMMC is showing a mount point = /boot/efi and part 1 on SD is not showing a mount point + there’s a symbol indicating that gparted has a problem reading partition 1 on the SD