RPi 4B 8GB - No partition table - mmc 0

This is for ARMv8 based devices

RPi 4B 8GB - No partition table - mmc 0

Postby chilippso » Thu Jul 01, 2021 4:59 pm

Hello,

I am trying to run Arch AArm64 on my RaspberryPi 4B 8GB and followed the instructions using a SD/MMC/RS-MMC-to-USB adapter and a Ubuntu virtual machine (VMWare Fusion on macOS).

Unfortunately, I get the following error on serial while booting:

$this->bbcode_second_pass_quote('', '
')U-Boot 2021.01-1 (Jan 18 2021 - 19:59:25 +0000) Arch Linux ARM

DRAM: 7.9 GiB
RPI 4 Model B (0xd03114)
MMC: mmcnr@7e300000: 1, emmc2@7e340000: 0
Loading Environment from FAT... ** No partition table - mmc 0 **
In: serial
Out: serial
Err: serial
Net: eth0: ethernet@7d580000
PCIe BRCM: link up, 5.0 Gbps x1 (SSC)
starting USB...
Bus xhci_pci: probe failed, error -110
No working controllers found
Hit any key to stop autoboot: 0


As you can see, U-Boot is complaining:
$this->bbcode_second_pass_quote('', 'L')oading Environment from FAT... ** No partition table - mmc 0 **


Running "mmc info" results in:
$this->bbcode_second_pass_quote('', '
')U-Boot> mmc info
Device: emmc2@7e340000
Manufacturer ID: 3
OEM: 5344
Name: SM32G
Bus Speed: 25000000
Mode: MMC legacy
Rd Block Len: 512
SD version 1.0
High Capacity: Yes
Capacity: 29.7 GiB
Bus Width: 4-bit
Erase Group Size: 512 Bytes


Running "mmc part" results in:
$this->bbcode_second_pass_quote('', '
')U-Boot> mmc part
## Unknown partition table type 0


Why is U-Boot not able to read the partition table?

Here is the fdisk output (I increased the size for the FAT32 boot partition a bit and marked sda1 for boot, but should not matter (?) ...)

$this->bbcode_second_pass_quote('', '
')Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 2099199 2097152 1G c W95 FAT32 (LBA)
/dev/sda2 2099200 62333951 60234752 28,7G 83 Linux


Many thanks in advance!
chilippso
 
Posts: 2
Joined: Thu Jul 01, 2021 4:47 pm
Top

Re: RPi 4B 8GB - No partition table - mmc 0

Postby contradict » Fri Jul 16, 2021 11:26 pm

I am seeing the same error message. I did not make any changes to the installation instructions here and I created the SD card using Ubuntu 20.04.

The one new piece of information I can offer is that the same SD card which produces this error does boot a Raspberry Pi 4 Model B 4 GB, but produces the error here in the 8GB version.
contradict
 
Posts: 2
Joined: Fri Jul 16, 2021 11:17 pm

Re: RPi 4B 8GB - No partition table - mmc 0

Postby chilippso » Sat Jul 17, 2021 1:42 pm

$this->bbcode_second_pass_quote('', '
')the same SD card which produces this error does boot a Raspberry Pi 4 Model B 4 GB, but produces the error here in the 8GB version.


That sounds interesting! As far as I can remember there is indeed a minor difference in the memory layout between the <= 4GB and the 8GB version. Maybe someone should investigate into U-Boot whether it has some difficulties with (maybe fixed?) memory locations and therefore doesn't work for 8GB RPi 4.

Nevertheless, that's just a thought. Unfortunately I am not (yet) into U-Boot at all.
chilippso
 
Posts: 2
Joined: Thu Jul 01, 2021 4:47 pm
Top

Re: RPi 4B 8GB - No partition table - mmc 0

Postby robg » Sat Jul 17, 2021 6:00 pm

The generic aarch64 image always had issues running on the 8G version of the RPI4. I don't use uboot/mainline myself, but if you are ok with running the RPI kernel (linux-raspberrypi4), you should be able to boot (based on contradict's findings) by setting "total_mem=4096" in /boot/config.txt. Once booted, you can install linux-raspberrypi4 and raspberrypi-bootloader[-x] and revert the memory change in /boot/config.txt. If you are adamant about uboot/mainline, you might want to check out the (compatible) packages from Manjaro ARM.
robg
 
Posts: 186
Joined: Tue Jan 05, 2021 8:22 am

Re: RPi 4B 8GB - No partition table - mmc 0

Postby contradict » Sun Jul 18, 2021 6:12 pm

Forcing the memory doesn't seem to change anything, the boot message does report the smaller memory number, but it still shows the same errors.

I can't figure out what changed, but after re-creating the SD card I have now hit another bug (the example here is with the memory setting, removing that only changes the `DRAM:` line):
$this->bbcode_second_pass_quote('', '
')U-Boot 2021.01-1 (Jan 18 2021 - 19:59:25 +0000) Arch Linux ARM

DRAM: 3.9 GiB
RPI 4 Model B (0xd03114)
MMC: mmcnr@7e300000: 1, emmc2@7e340000: 0
Loading Environment from FAT... ** No partition table - mmc 0 **
In: serial
Out: serial
Err: serial
Net: eth0: ethernet@7d580000
PCIe BRCM: link up, 5.0 Gbps x1 (SSC)
starting USB...
Bus xhci_pci: probe failed, error -110
No working controllers found
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc0 is current device
"Synchronous Abort" handler, esr 0x96000004
elr: 00000000000a2af8 lr : 00000000000a2b48 (reloc)
elr: 000000003b37faf8 lr : 000000003b37fb48
x0 : ffffffffffffffdf x1 : ffffffffffffffdf
x2 : 000000003af58e60 x3 : 0000000000000015
x4 : ffffffffffffffff x5 : 0000000000000015
x6 : 0000000000000074 x7 : 000000003b3bff15
x8 : 0000000000000008 x9 : 0000000000000008
x10: 0000000000000044 x11: 000000000000000a
x12: 0000000000000006 x13: 000000000001869f
x14: 000000003af4cc80 x15: 0000000000000002
x16: 000000003b368a44 x17: a89035a000000000
x18: 000000003af58da0 x19: 0000000000000006
x20: 000000003afea8c0 x21: 0000000000000000
x22: 0000000000000035 x23: 000000003af4b798
x24: 0000000000000000 x25: 0000000000000000
x26: 0000000000000000 x27: 0000000000000000
x28: 000000003afea9a0 x29: 000000003af4b710

Code: b4000100 f84c0c41 d1008020 aa0003e1 (f8420c24)
Resetting CPU ...

resetting ...

I have given up on getting Arch on this machine for now, the latest Ubuntu 20.04 arm64 image boots and works on the first try. I'll check back in a few months and see if the situation has changed.
contradict
 
Posts: 2
Joined: Fri Jul 16, 2021 11:17 pm
Top

Re: RPi 4B 8GB - No partition table - mmc 0

Postby robg » Sun Jul 18, 2021 8:01 pm

If you are willing to give it one more try: It may be possible to install the RPI kernel by chrooting into the default aarch64 image from Manjaro ARM (which, as I understand, is well supported on the 8G RPI 4.)
robg
 
Posts: 186
Joined: Tue Jan 05, 2021 8:22 am


Return to ARMv8 Devices

Who is online

Users browsing this forum: No registered users and 22 guests