batocera-linux / batocera.linux

batocera.linux
https://batocera.org
Other
1.98k stars 512 forks source link

[V37] Cannot boot Batocera on sdcard while nvme installed. #10516

Closed ameer4 closed 10 months ago

ameer4 commented 10 months ago

Batocera build version

stable 37

Your architecture

Orange Pi 5

Your Graphic Processor Unit (GPU)

None

Graphical brand

None

Issue description

I have an Orange Pi 5 with Fydeos (Chromebook) installed on the NVMe drive. I flashed the latest Batocera onto an SD card using Balena Etcher. However, Batocera only boots when the NVMe drive is removed. Ubuntu and jelos boot normally from the SD card with the NVMe drive still installed.

How to solve this?

Expected result

No response

Reproduction steps

1- Install FydeOS (maybe any os?) on nvme. 2- Flash batocera (stable, v37) on sdcard 3- Orange Pi boot FydeOS instead of booting sdcard first.

Logs and data

No response

n2qz commented 10 months ago

Please provide a detailed description of what happens when you try to boot Batocera while the NVMe is installed.

Also, please boot Ubuntu and post the output of this command here:

blkid
ameer4 commented 10 months ago

Please provide a detailed description of what happens when you try to boot Batocera while the NVMe is installed.

Also, please boot Ubuntu and post the output of this command here:

blkid

It just boot directly to fyde os like there no sd card even installed!

Now with ubuntu installed in nvme, still batocera don't boot when on sd card, output of blkid command:

on ubuntu nvme (while boatocera sd card attached):

/dev/nvme0n1p1: SEC_TYPE="msdos" LABEL_FATBOOT="system-boot" LABEL="system-boot" UUID="8422-6B8F" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="primary" PARTUUID="24d45b68-dff4-429f-9938-833a0f47d324"
/dev/nvme0n1p2: LABEL="writable" UUID="678caa5e-a7b4-4756-b7bd-f3dde00edc91" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="7c70f75f-6641-423d-8ba6-7a1fd39d95d7"
/dev/mmcblk1p1: LABEL_FATBOOT="boot" LABEL="boot" UUID="70A2-8001" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="838056f2-01"
/dev/mmcblk1p2: LABEL="rootfs" UUID="a1fafd2b-1ef0-4fe8-8ac1-ad33bbb48642" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="838056f2-02"

I installed ubuntu server on sd card then boot the server (desktop ubuntu still on nvme), the server boot normally, here is a pic of blkid command:

bXK9rTF

Edit: Also Android on sdcard boot fine while nvme (ubuntu) installed

n2qz commented 10 months ago

I just found this forum post with a user looking for ways to dual-boot/multi-boot an Orange Pi 5.
http://www.orangepi.org/orangepibbsen/forum.php?mod=viewthread&tid=144236&extra=page%3D1

I don't think your issue has anything to do with Batocera; you need vendor support for your board.

Not a bug, issue should be closed.

ameer4 commented 10 months ago

I also don't think this is a bug, but since Batocera support the board it will be useful to give a solution for such situation, I'm sure I can manually fix it but honestly I don't know how!

What I understand is that the board first check sd card. I just want to know why almost every OS I tried successfully boot through sdcard (ignoring nvme) except batocera? Maybe batocera isn't debian/armbian or different in something? Then why Android on sdcard works fine?!

I installed custom retropie (armbian based) from some facebook group, still boot OK while nvme installed.

n2qz commented 10 months ago

If you find a solution, please get in touch so that we can add it to the wiki. Thanks!