[Manjaro] u-boot won't boot from eMMC with (unbootable) SD card present - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=111) +--- Forum: Linux on Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=114) +--- Thread: [Manjaro] u-boot won't boot from eMMC with (unbootable) SD card present (/showthread.php?tid=15730) |
[Manjaro] u-boot won't boot from eMMC with (unbootable) SD card present - zackw - 01-10-2022 I'm running ManjaroARM on my PBP. The OS is installed on the eMMC storage. I also have an SD card permanently installed for extra space. Both the eMMC and the SD card have DOS-format partition tables. The SD card is not bootable; the space reserved for a bootloader (in between the MBR and the partition) is zeroed. The SPI flash is blank. This arrangement used to work fine, but ever since the most recent update to u-boot from Manjaro's official repositories, the laptop won't boot with the SD card present. This is a complete console log: Code: U-Boot 2021.10-2 (Dec 25 2021 - 16:31:17 +0000) Manjaro Linux ARM followed by a whole bunch of spew about also being unable to boot off the network (as expected) and a => prompt. If the SD card is not present, everything is the same up till the "Hit any key to stop autoboot" prompt, after which I get Code: Device 0: unknown device and the machine boots normally. So what this looks like to me is that u-boot is no longer falling back to booting from the internal eMMC if the SD card is unbootable. How can I persuade it to start doing that again? It's really annoying to have to pop the SD card out every time I start up the laptop and then put it back after it's booted. RE: [Manjaro] u-boot won't boot from eMMC with (unbootable) SD card present - vanessadonald - 08-21-2023 Hello, To resolve this, you can try the following steps: 1. Access U-Boot environment: Interrupt the boot process by pressing any key when you see the "Hit any key to stop autoboot" prompt. This should drop you into the U-Boot command prompt. 2. Check boot targets: Run the following command to display the current boot targets and their order: Code: excel Ensure that the eMMC is listed as one of the boot targets and that it has the appropriate priority. If it's not present or has a lower priority than the SD card, you'll need to modify the boot order. 3. Modify boot order: Use the setenv command to modify the boot order and prioritize the eMMC. For example, if the eMMC is assigned to mmc0 and the SD card is assigned to mmc1, you can set the boot order with the following command: Code: excel This sets the boot order to prioritize the eMMC (mmc0) over the SD card (mmc1). 4. Save changes: Save the modified boot order to the U-Boot environment by running the following command: Code: excel This will save the changes and update the U-Boot environment variables. 5. Reboot: Exit the U-Boot command prompt and reboot the system to test the changes. You should now observe whether the system boots from the eMMC when the SD card is present but unbootable. |