max11
Posts: 73
Joined: Tue May 14, 2019 12:48 pm

Raspberry Pi 4 - strange boot problem [SOLVED]

Tue May 19, 2020 11:51 pm

As I didn’t want to use Noobs or Pinn for different OS I bought this adapter, so I can switch between two SD-Cards without having to fiddle them out and in when changing the OS.(And i do not trust the stability of the card-reader)

I just shutdown, slide the switch and reboot the other OS.

https://www.aliexpress.com/item/32703893806.html?

This is working perfectly on my Raspberry Pi3+ with Stretch.


Now I downloaded the latest Raspbian Buster and copied the img to a SD-Card.
SD-card is a Toshiba Exceria 32GB. Inserting the card in the Raspi4 directly it boots as expected.

I put the SD-card directly into the Raspberry Pi3b+ and it boots.

I put the SD-Card in the adapter and the Raspberry 3b+ boots.

I put the SD-card directly into the Raspi 4 and it boots.

Now putting the adapter with the SD-card into the Raspi4 it stops after the 4 Raspberries on top of the screen with the following message:

Raspbian boot mmc0: error -84 whilst initialising sd card ..........

So: the card is readable
The adapter functions
The card functions in the adapter ---- but not in Raspberry4 4GB

The boot procedure isn’t accepting the adapter??

Any ideas how to solve it ? Or is that a Raspi4 problem?

Thanks for reading
Max11
Last edited by max11 on Fri May 22, 2020 4:40 pm, edited 1 time in total.

W. H. Heydt
Posts: 15432
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: Raspberry Pi 4 - strange boot problem

Wed May 20, 2020 12:32 am

I don't know how to solve your problem, but there were some significant changes to the SD card interface between the Pi3B+ and the Pi4B.

max11
Posts: 73
Joined: Tue May 14, 2019 12:48 pm

Re: Raspberry Pi 4 - strange boot problem

Wed May 20, 2020 9:09 am

Just to clarify i add a picture of the 'boot' - process:
20200520_104114.jpg
20200520_104114.jpg (120.63 KiB) Viewed 3894 times
Still trying to get it running, but i assume now that there is a real bug in the boot process .....

Max11

User avatar
Botspot
Posts: 1780
Joined: Thu Jan 17, 2019 9:47 pm
Location: Texas
Contact: Website

Re: Raspberry Pi 4 - strange boot problem

Wed May 20, 2020 6:02 pm

W. H. Heydt wrote: I don't know how to solve your problem, but there were some significant changes to the SD card interface between the Pi3B+ and the Pi4B.
+1. It's possible that your adapter is not properly switching all the lanes. Or can't handle that bandwidth. :|

If you don't trust the internal socket, I suggest you try a microsd card extender:
3688-02-min.jpg
3688-02-min.jpg (134.41 KiB) Viewed 3866 times
Easily install apps on your Pi with Pi-Apps! Over 500k users.
Includes two Zoom desktop apps, 3 ways to run Minecraft, 10 web browsers, appearance themes, and 105 more.
More info: https://github.com/Botspot/pi-apps

max11
Posts: 73
Joined: Tue May 14, 2019 12:48 pm

Re: Raspberry Pi 4 - strange boot problem

Wed May 20, 2020 7:33 pm

Thanks for the answer ... but it is working and switching on the Raspi3 ....
and it works even if i put it in an sd-card to usb-adapter ... (sounds crazy combination, i just wanted to test it)
It also works perfect under Win10 ....

I think the 'inventor' /programmer of the boot-procedure should know what this error -84 means .....
Let's wait for him. :-)

User avatar
Botspot
Posts: 1780
Joined: Thu Jan 17, 2019 9:47 pm
Location: Texas
Contact: Website

Re: Raspberry Pi 4 - strange boot problem

Wed May 20, 2020 7:47 pm

I googled your error.
Try this:
  • Make a backup of /boot/cmdline.txt:

    Code: Select all

    sudo cp /boot/cmdline.txt /boot/cmdline.txt.bak
  • Edit /boot/cmdline.txt:

    Code: Select all

    sudo mousepad /boot/cmdline.txt
  • Find this word in the line:

    Code: Select all

    root=PARTUUID=xxxxxxxx-xx
    (those x'es are placeholders, actually they are letters and numbers)
  • And replace that word with root=/dev/mmcblk0p2.
  • Make sure that file is a single line like it was before.
  • See if that makes any difference. If it doesn't, then restore your backup to undo your changes.
Easily install apps on your Pi with Pi-Apps! Over 500k users.
Includes two Zoom desktop apps, 3 ways to run Minecraft, 10 web browsers, appearance themes, and 105 more.
More info: https://github.com/Botspot/pi-apps

trejan
Posts: 3869
Joined: Tue Jul 02, 2019 2:28 pm

Re: Raspberry Pi 4 - strange boot problem

Wed May 20, 2020 8:03 pm

max11 wrote:
Wed May 20, 2020 9:09 am
i assume now that there is a real bug in the boot process .....
The bug is with the design of your SD switcher. It is showing that it has detected two mmc devices as mmc0 and mmc1. What happens if you swap the cards around in the sockets? Only have 1 card fitted?
max11 wrote:
Wed May 20, 2020 7:33 pm
Thanks for the answer ... but it is working and switching on the Raspi3 ....
and it works even if i put it in an sd-card to usb-adapter ... (sounds crazy combination, i just wanted to test it)
It also works perfect under Win10 ....
They're not the same. The SD controller attached to the micro SD socket has completely changed in the Pi 4. It can now switch to 1.8V for DDR50 operation. The old Pi SD controller was 3.3V with SDR50 operation only.

My guess is that your SD switcher isn't compatible with 1.8V operation.

max11
Posts: 73
Joined: Tue May 14, 2019 12:48 pm

Re: Raspberry Pi 4 - strange boot problem

Wed May 20, 2020 9:34 pm

Thank you for your ideas.

@Blogspot: I tried that too .... but it doesn't help :-(

@trejan:

There is no bug in the adapter. Let's assume (!) it could only handle 3,3 V and not 1.8V. Then all existing 'old' SD-cards would be unreadable for the Raspi4. If the boot software is really checking for both voltages then it should fall back to the old 3.3V as default.

Your other suggestions (only 1 card in the adapter, trying each side) i checked before - nothing changes ...
And with regards to mmc0 and mmc1: Here is a part of the boot protocol if i insert the card directly into the raspberry:

May 19 21:56:47 raspberrypi kernel: [ 0.702765] Waiting for root device PARTUUID=ea7d04d6-02...
May 19 21:56:47 raspberrypi kernel: [ 0.747589] random: fast init done
May 19 21:56:47 raspberrypi kernel: [ 0.798562] mmc0: new ultra high speed DDR50 SDHC card at address 1234
May 19 21:56:47 raspberrypi kernel: [ 0.801331] mmcblk0: mmc0:1234 SA32G 28.9 GiB
May 19 21:56:47 raspberrypi kernel: [ 0.805403] mmcblk0: p1 p2
May 19 21:56:47 raspberrypi kernel: [ 0.809945] mmc1: new high speed SDIO card at address 0001
May 19 21:56:47 raspberrypi kernel: [ 0.829548] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
May 19 21:56:47 raspberrypi kernel: [ 0.831226] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
May 19 21:56

As you can see, there are mmc0 and mmc1 too - so this is normal and NOT depending on the adapter.

So it is a bug :-(

User avatar
Botspot
Posts: 1780
Joined: Thu Jan 17, 2019 9:47 pm
Location: Texas
Contact: Website

Re: Raspberry Pi 4 - strange boot problem

Wed May 20, 2020 9:38 pm

max11 wrote:
Wed May 20, 2020 9:34 pm
@Blogspot: I tried that too .... but it doesn't help :-(
:o You'd be surprised how often I'm called that... :lol:
Easily install apps on your Pi with Pi-Apps! Over 500k users.
Includes two Zoom desktop apps, 3 ways to run Minecraft, 10 web browsers, appearance themes, and 105 more.
More info: https://github.com/Botspot/pi-apps

trejan
Posts: 3869
Joined: Tue Jul 02, 2019 2:28 pm

Re: Raspberry Pi 4 - strange boot problem

Wed May 20, 2020 9:52 pm

max11 wrote:
Wed May 20, 2020 9:34 pm
There is no bug in the adapter. Let's assume (!) it could only handle 3,3 V and not 1.8V. Then all existing 'old' SD-cards would be unreadable for the Raspi4. If the boot software is really checking for both voltages then it should fall back to the old 3.3V as default.
The SD controller initialises the card at 3.3V then switches to 1.8V if it sees the card is compatible with UHS-I. It isn't permanently set to 1.8V. The older Pi SoCs don't support UHS-I and it always stays at 3.3V.

Error -84 is EILSEQ "illegal byte sequence" and the SDHCI driver returns that for CRC errors so I still think your SD switcher isn't compatible.

You can try disabling UHS mode along with the 1.8V change by adding sdhci.debug_quirks2=4 to the end of /boot/cmdline.txt. Keep it all on one line.
max11 wrote:
Wed May 20, 2020 9:34 pm
And with regards to mmc0 and mmc1: Here is a part of the boot protocol if i insert the card directly into the raspberry:
I've worked out what it is and you're right it isn't your SD switcher. mmc1 is the onboard WiFi controller. I don't have that enabled on the Pi 4 I checked earlier so only saw mmc0.

max11
Posts: 73
Joined: Tue May 14, 2019 12:48 pm

Re: Raspberry Pi 4 - strange boot problem

Thu May 21, 2020 8:28 pm

Sorry for answering late, trejan, but there is life besides Raspberry ;)

and: YES, that did it. With the new command in cmdfile.txt the Raspi boots as expected from the adapter.

Thank you very much.

Now i just have to make notice that with every new install i have to modify cmdfile.txt

Thanks again and: stay safe

Max11

Return to “Troubleshooting”