Raspberry Pi 4 Model B 8 GB (2/3 Fail with SD Card error)

This is for ARMv8 based devices

Re: Raspberry Pi 4 Model B 8 GB (2/3 Fail with SD Card error

Postby cbc02009 » Fri Aug 06, 2021 11:24 am

I'm 2 for 2 on this error with the two Pi 4b 2gb boards I bought yesterday. Confirmed that the SD cards are good because Ubuntu will boot off them.

Sorry, I'm not very well versed in linux booting. what steps do I need to take to get around this bug? is it really as simple as downloading the manjaro image and overwriting the boot folder on the SD card with the one from the manjaro image?
cbc02009
 
Posts: 12
Joined: Wed May 05, 2021 12:58 pm

Re: Raspberry Pi 4 Model B 8 GB (2/3 Fail with SD Card error

Postby cbc02009 » Mon Aug 09, 2021 11:50 am

Can't seem to get the manjaro bootloader to work with Arch either.

I've successfully put Arch Linux on several Pi 4bs in the past, but suddenly no matter what I do it doesn't want to work. I keep getting the "error -5 whilst initialising SD card" error and a stack dump.

If I use Raspberry Pi Imager to create an Ubuntu or Manjaro image it loads on my Pi without issue. I even tried creating a manjaro image and just replacing the root partition with the one from arch, but that didn't work either. Not sure what else I can try, but I have three new Pis I was hoping to set up with Arch.

EDIT: using the ubuntu bootloader at least gets me to the login prompt. Something's not working though. As soon as I enter the first character of the password it fails the login attempt.
Last edited by cbc02009 on Mon Aug 09, 2021 12:18 pm, edited 1 time in total.
cbc02009
 
Posts: 12
Joined: Wed May 05, 2021 12:58 pm

Re: Raspberry Pi 4 Model B 8 GB (2/3 Fail with SD Card error

Postby graysky » Mon Aug 09, 2021 11:51 am

I just took the latest aarch64 image and placed it on a card and my RPi4B 8G model booted without errors. Can you try it?
graysky
Developer
 
Posts: 1805
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Raspberry Pi 4 Model B 8 GB (2/3 Fail with SD Card error

Postby cbc02009 » Mon Aug 09, 2021 2:41 pm

$this->bbcode_second_pass_quote('graysky', 'I') just took the latest aarch64 image and placed it on a card and my RPi4B 8G model booted without errors. Can you try it?


Just tried again, and I'm still getting the same error: https://imgur.com/0g62aym

(sorry for the imgur link, keep getting nginx errors when trying to upload as an attachement)

Same Pi and SD card works fine with manjaro and Ubuntu, and I've successfully flashed arch linux onto Pis before (though I haven't tried in the last couple months)

For reference I'm following the guide in the wiki: https://archlinuxarm.org/platforms/armv8/broadcom/raspberry-pi-4 but with the modifications for the AArch64 Installation listed at the bottom. I'm also using sfdisk instead of fdisk, for whatever that's worth, though I get the same error if I use fdisk, so I don't think that's the issue.
cbc02009
 
Posts: 12
Joined: Wed May 05, 2021 12:58 pm

Re: Raspberry Pi 4 Model B 8 GB (2/3 Fail with SD Card error

Postby Joachim » Mon Aug 09, 2021 4:02 pm

I have 6 Raspi4 here for my little Blender-renderfarm and see the same issue on 4 of them. The 2 that work were bought in early 2020. The 4 that don't I bought only recently. Assuming a firmware issue I downgraded the newer ones to the version that runs on the older ones (from September 20) but that didn't change anything.
I tried several different SD cards, but no matter what card I use, if I follow the install instructions or clone an existing one: The 2 old RasPis work with all of them, and the 4 new ones won't work with any of them.

The working ones are 4 and 8 GB, the other ones 2x 4GB and 2x 2GB.
3 give me the "error -5 whilst initialising SD card" error, one says "error -22 whilst initialising SD card". This is also consistent over sll SD cards I tried.

All other Linux versions I tried boot perfectly from all my cards on all 6 RasPis (RasPi OS, Ubuntu 20.04 and 20.10, OpenSuse Tumbleweed). So I used OpenSuse for a while but ran into an issue yesterday when it turned out that Blender's ocean modifier that works fine on Arch is unavailable on OpenSuse (probably this is the issue: https://devtalk.blender.org/t/openexr-b ... rm64/19031 )

So now I have one Distro that boots fine on all devices but doesn't support all Blender 2.93.1 features, and one that renders everything perfectly but doesn't boot on 4 out of 6 boards.

Hope I could provide a few more details that might be useful.

EDIT: Happy to report that Manjaro boots from all SD Cards and RasPi boards I own, and it also gives me the fully featured Arch-Blender that I need.
Last edited by Joachim on Tue Aug 10, 2021 9:18 am, edited 1 time in total.
Joachim
 
Posts: 2
Joined: Mon Aug 09, 2021 3:36 pm

Re: Raspberry Pi 4 Model B 8 GB (2/3 Fail with SD Card error

Postby cbc02009 » Mon Aug 09, 2021 7:47 pm

$this->bbcode_second_pass_quote('Joachim', 'I') have 6 Raspi4 here for my little Blender-renderfarm and see the same issue on 4 of them. The 2 that work were bought in early 2020. The 4 that don't I bought only recently. Assuming a firmware issue I downgraded the newer ones to the version that runs on the older ones (from September 20) but that didn't change anything.
I tried several different SD cards, but no matter what card I use, if I follow the install instructions or clone an existing one: The 2 old RasPis work with all of them, and the 4 new ones won't work with any of them.

The working ones are 4 and 8 GB, the other ones 2x 4GB and 2x 2GB.
3 give me the "error -5 whilst initialising SD card" error, one says "error -22 whilst initialising SD card". This is also consistent over sll SD cards I tried.

All other Linux versions I tried boot perfectly from all my cards on all 6 RasPis (RasPi OS, Ubuntu 20.04 and 20.10, OpenSuse Tumbleweed). So I used OpenSuse for a while but ran into an issue yesterday when it turned out that Blender's ocean modifier that works fine on Arch is unavailable on OpenSuse (probably this is the issue: https://devtalk.blender.org/t/openexr-b ... rm64/19031 )

So now I have one Distro that boots fine on all devices but doesn't support all Blender 2.93.1 features, and one that renders everything perfectly but doesn't boot on 4 out of 6 boards.

Hope I could provide a few more details that might be useful.

I hope


After reading your post I went and tried the same SD card that failed on a new Pi in one of my older Pi 4s and it worked fine. It definitely seems like it's something to do with the newer batch of Raspberry Pis, but it's really strange that it only seems to affect Arch Linux and not any of the other distros I've tried.

Maybe there was a parts substitution?
cbc02009
 
Posts: 12
Joined: Wed May 05, 2021 12:58 pm

Re: Raspberry Pi 4 Model B 8 GB (2/3 Fail with SD Card error

Postby SpaceOne » Sun Aug 15, 2021 6:57 pm

After patching the mainline kernel with BCM2835 MMC and dma drivers from rpi kernel hoping to solve this issue (which it didn't) , it dawn to me, perhaps uboot is cause for all this.

I successfully booted rpi4 doing this:
In boot partition, changed in boot.txt every occurrence of:
$this->bbcode_second_pass_code('', '${fdt_addr_r}')
to:
$this->bbcode_second_pass_code('', '${fdt_addr}')

Last step is to regenerate boot.scr from boot.txt. You must have uboot-tools installed.
From within boot folder run:
$this->bbcode_second_pass_code('', 'mkimage -A arm -T script -O linux -d boot.txt boot.scr')
or
$this->bbcode_second_pass_code('', './mkscr')

FDT_ADDR is the pointer to the FDT provided by the rpi firmware (as far as I understand, but I'm complete noob here).
This put me on the right track: https://www.raspberrypi.org/forums/view ... 8&t=314845

My pi4 2gb is revision 1.4. This is probably causing the issue.
It seems in the mainline kernel you can check revision with
$this->bbcode_second_pass_code('', 'cat /sys/firmware/devicetree/base/model;echo ')
SpaceOne
 
Posts: 6
Joined: Mon Aug 02, 2021 10:47 pm

Re: Raspberry Pi 4 Model B 8 GB (2/3 Fail with SD Card error

Postby cbc02009 » Wed Aug 18, 2021 1:22 pm

Thanks for the suggestion. Unfortunately it didn't work for me.

I can confirm the board that doesn't work is version 1.4 (the one that does is 1.2), so I think you're definitely pointing me in the right direction. I'll have to do more research.

Just for posterity, here's the boot output of my revision 1.4 Pi:
$this->bbcode_second_pass_code('', 'U-Boot 2021.04-1 (May 27 2021 - 18:44:02 +0000) Arch Linux ARM

DRAM: 1.9 GiB
RPI 4 Model B (0xb03114)
MMC: mmcnr@7e300000: 1, emmc2@7e340000: 0
Loading Environment from FAT... *** Warning - bad CRC, using default environment

In: serial
Out: serial
Err: serial
Net: eth0: ethernet@7d580000
PCIe BRCM: link up, 5.0 Gbps x1 (SSC)
starting USB...
Bus xhci_pci: Register 5000420 NbrPorts 5
Starting the controller
USB XHCI 1.00
scanning bus xhci_pci for devices... 2 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
708 bytes read in 27 ms (25.4 KiB/s)
## Executing script at 02c00000
34003456 bytes read in 1757 ms (18.5 MiB/s)
35918 bytes read in 45 ms (779.3 KiB/s)
7183002 bytes read in 384 ms (17.8 MiB/s)
Moving Image from 0x80000 to 0x200000, end=2350000
## Flattened Device Tree blob at 02e00000
Booting using the fdt blob at 0x2e00000
Using Device Tree in place at 0000000002e00000, end 0000000002e0bc4d

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd083]
[ 0.000000] Linux version 5.11.4-1-ARCH (builduser@leming) (aarch64-unknown-linux-gnu-gcc (GCC) 10.2.0, GNU ld (GNU Binutils) 2.35) #1 SMP Sun Mar 7 23:46:10 UTC 2021
[ 0.000000] Machine model: Raspberry Pi 4 Model B
[ 0.000000] efi: UEFI not found.
[ 0.000000] Reserved memory: created CMA memory pool at 0x0000000037400000, size 64 MiB
[ 0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000000000000-0x000000003fffffff]
[ 0.000000] DMA32 [mem 0x0000000040000000-0x000000007fffffff]
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x000000003b3fffff]
[ 0.000000] node 0: [mem 0x0000000040000000-0x000000007fffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000007fffffff]
[ 0.000000] percpu: Embedded 23 pages/cpu s56152 r8192 d29864 u94208
[ 0.000000] Detected PIPT I-cache on CPU0
[ 0.000000] CPU features: detected: Spectre-v2
[ 0.000000] CPU features: detected: Spectre-v4
[ 0.000000] CPU features: detected: ARM errata 1165522, 1319367, or 1530923
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 496944
[ 0.000000] Kernel command line: console=ttyS1,115200 console=tty0 root=PARTUUID=4cb9ccd2-02 rw rootwait smsc95xx.macaddr=e4:5f:01:41:3f:b6
[ 0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] software IO TLB: mapped [mem 0x0000000033400000-0x0000000037400000] (64MB)
[ 0.000000] Memory: 1806412K/2019328K available (16512K kernel code, 3318K rwdata, 7928K rodata, 5312K init, 838K bss, 147380K reserved, 65536K cma-reserved)
[ 0.000000] random: get_random_u64 called from cache_random_seq_create+0x84/0x180 with crng_init=0
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
[ 0.000000] Trampoline variant of Tasks RCU enabled.
[ 0.000000] Rude variant of Tasks RCU enabled.
[ 0.000000] Tracing variant of Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] GIC: Using split EOI/Deactivate mode
[ 0.000000] arch_timer: cp15 timer(s) running at 54.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xc743ce346, max_idle_ns: 440795203123 ns
[ 0.000001] sched_clock: 56 bits at 54MHz, resolution 18ns, wraps every 4398046511102ns
[ 0.000249] Console: colour dummy device 80x25
[ 0.000574] printk: console [tty0] enabled
[ 0.000627] Calibrating delay loop (skipped), value calculated using timer frequency.. 108.00 BogoMIPS (lpj=540000)
[ 0.000657] pid_max: default: 32768 minimum: 301
[ 0.000804] LSM: Security Framework initializing
[ 0.000832] Yama: becoming mindful.
[ 0.000938] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 0.000998] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 0.003247] rcu: Hierarchical SRCU implementation.
[ 0.005666] EFI services will not be available.
[ 0.006159] smp: Bringing up secondary CPUs ...
[ 0.006754] Detected PIPT I-cache on CPU1
[ 0.006826] CPU1: Booted secondary processor 0x0000000001 [0x410fd083]
[ 0.007489] Detected PIPT I-cache on CPU2
[ 0.007536] CPU2: Booted secondary processor 0x0000000002 [0x410fd083]
[ 0.008162] Detected PIPT I-cache on CPU3
[ 0.008209] CPU3: Booted secondary processor 0x0000000003 [0x410fd083]
[ 0.008317] smp: Brought up 1 node, 4 CPUs
[ 0.008383] SMP: Total of 4 processors activated.
[ 0.008399] CPU features: detected: 32-bit EL0 Support
[ 0.008416] CPU features: detected: CRC32 instructions
[ 0.008432] CPU features: detected: 32-bit EL1 Support
[ 0.032448] CPU: All CPU(s) started at EL2
[ 0.032567] alternatives: patching kernel code
[ 0.034283] devtmpfs: initialized
[ 0.040713] Registered cp15_barrier emulation handler
[ 0.040764] Registered setend emulation handler
[ 0.040994] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.041033] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[ 0.042989] pinctrl core: initialized pinctrl subsystem
[ 0.043863] DMI not present or invalid.
[ 0.044502] NET: Registered protocol family 16
[ 0.046163] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations
[ 0.046270] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[ 0.046441] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[ 0.046537] audit: initializing netlink subsys (disabled)
[ 0.046757] audit: type=2000 audit(0.040:1): state=initialized audit_enabled=0 res=1
[ 0.047766] thermal_sys: Registered thermal governor 'fair_share'
[ 0.047776] thermal_sys: Registered thermal governor 'bang_bang'
[ 0.047795] thermal_sys: Registered thermal governor 'step_wise'
[ 0.047809] thermal_sys: Registered thermal governor 'user_space'
[ 0.047822] thermal_sys: Registered thermal governor 'power_allocator'
[ 0.048037] cpuidle: using governor ladder
[ 0.048083] cpuidle: using governor menu
[ 0.048290] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.048414] ASID allocator initialised with 65536 entries
[ 0.049276] Serial: AMBA PL011 UART driver
[ 0.078703] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[ 0.078748] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
[ 0.078766] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.078783] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[ 1.315832] cryptd: max_cpu_qlen set to 1000
[ 1.340848] ACPI: Interpreter disabled.
[ 1.342462] iommu: Default domain type: Translated
[ 1.342855] vgaarb: loaded
[ 1.343737] SCSI subsystem initialized
[ 1.344141] usbcore: registered new interface driver usbfs
[ 1.344201] usbcore: registered new interface driver hub
[ 1.344253] usbcore: registered new device driver usb
[ 1.344453] usb_phy_generic phy: supply vcc not found, using dummy regulator
[ 1.345098] pps_core: LinuxPPS API ver. 1 registered
[ 1.345117] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 1.345146] PTP clock support registered
[ 1.345378] EDAC MC: Ver: 3.0.0
[ 1.346484] Advanced Linux Sound Architecture Driver Initialized.
[ 1.347055] NetLabel: Initializing
[ 1.347073] NetLabel: domain hash size = 128
[ 1.347087] NetLabel: protocols = UNLABELED CIPSOv4 CALIPSO
[ 1.347154] NetLabel: unlabeled traffic allowed by default
[ 1.347459] clocksource: Switched to clocksource arch_sys_counter
[ 1.347708] VFS: Disk quotas dquot_6.6.0
[ 1.347783] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 1.348191] pnp: PnP ACPI: disabled
[ 1.355674] NET: Registered protocol family 2
[ 1.356404] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear)
[ 1.356458] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 1.356631] TCP bind hash table entries: 16384 (order: 6, 262144 bytes, linear)
[ 1.356868] TCP: Hash tables configured (established 16384 bind 16384)
[ 1.357167] MPTCP token hash table entries: 2048 (order: 3, 49152 bytes, linear)
[ 1.357252] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear)
[ 1.357298] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear)
[ 1.357541] NET: Registered protocol family 1
[ 1.358249] RPC: Registered named UNIX socket transport module.
[ 1.358271] RPC: Registered udp transport module.
[ 1.358283] RPC: Registered tcp transport module.
[ 1.358296] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 1.358316] PCI: CLS 0 bytes, default 64
[ 1.358492] Trying to unpack rootfs image as initramfs...
[ 1.805386] Freeing initrd memory: 7012K
[ 1.806450] hw perfevents: enabled with armv8_cortex_a72 PMU driver, 7 counters available
[ 1.806608] kvm [1]: IPA Size Limit: 44 bits
[ 1.808520] kvm [1]: vgic interrupt IRQ9
[ 1.808728] kvm [1]: Hyp mode initialized successfully
[ 1.901842] Initialise system trusted keyrings
[ 1.902054] workingset: timestamp_bits=46 max_order=19 bucket_order=0
[ 1.907587] zbud: loaded
[ 1.909863] NFS: Registering the id_resolver key type
[ 1.909904] Key type id_resolver registered
[ 1.909919] Key type id_legacy registered
[ 1.910028] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 1.910229] SGI XFS with ACLs, security attributes, quota, no debug enabled
[ 1.977182] NET: Registered protocol family 38
[ 1.977221] Key type asymmetric registered
[ 1.977238] Asymmetric key parser 'x509' registered
[ 1.977289] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 242)
[ 1.977434] io scheduler mq-deadline registered
[ 1.977480] io scheduler kyber registered
[ 1.977616] io scheduler bfq registered
[ 1.987341] IPMI message handler: version 39.2
[ 2.001489] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 2.003351] printk: console [ttyS1] disabled
[ 2.003456] fe215040.serial: ttyS1 at MMIO 0xfe215040 (irq = 26, base_baud = 62499999) is a 16550
[ 2.895033] printk: console [ttyS1] enabled
[ 2.900741] msm_serial: driver initialized
[ 2.906948] iproc-rng200 fe104000.rng: hwrng registered
[ 2.913267] cacheinfo: Unable to detect cache hierarchy for CPU 0
[ 2.920388] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
[ 2.931881] libphy: Fixed MDIO Bus: probed
[ 2.938472] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 2.945120] ehci-pci: EHCI PCI platform driver
[ 2.949745] ehci-platform: EHCI generic platform driver
[ 2.955188] ehci-orion: EHCI orion driver
[ 2.959415] tegra-ehci: Tegra EHCI driver
[ 2.963593] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 2.969915] ohci-pci: OHCI PCI platform driver
[ 2.974463] ohci-platform: OHCI generic platform driver
[ 2.979907] uhci_hcd: USB Universal Host Controller Interface driver
[ 2.987160] usbcore: registered new interface driver uas
[ 2.992623] usbcore: registered new interface driver usb-storage
[ 2.998763] usbcore: registered new interface driver ums-alauda
[ 3.004799] usbcore: registered new interface driver ums-cypress
[ 3.010936] usbcore: registered new interface driver ums-datafab
[ 3.017065] usbcore: registered new interface driver ums_eneub6250
[ 3.023381] usbcore: registered new interface driver ums-freecom
[ 3.029531] usbcore: registered new interface driver ums-isd200
[ 3.035566] usbcore: registered new interface driver ums-jumpshot
[ 3.041791] usbcore: registered new interface driver ums-karma
[ 3.047755] usbcore: registered new interface driver ums-onetouch
[ 3.053976] usbcore: registered new interface driver ums-realtek
[ 3.060117] usbcore: registered new interface driver ums-sddr09
[ 3.066153] usbcore: registered new interface driver ums-sddr55
[ 3.072202] usbcore: registered new interface driver ums-usbat
[ 3.078223] usbcore: registered new interface driver usbserial_generic
[ 3.084870] usbserial: USB Serial support registered for generic
[ 3.092330] mousedev: PS/2 mouse device common for all mice
[ 3.101513] device-mapper: uevent: version 1.0.3
[ 3.106506] device-mapper: ioctl: 4.43.0-ioctl (2020-10-01) initialised: dm-devel@redhat.com
[ 3.116914] sdhci: Secure Digital Host Controller Interface driver
[ 3.123229] sdhci: Copyright(c) Pierre Ossman
[ 3.128417] Synopsys Designware Multimedia Card Interface Driver
[ 3.135538] sdhci-pltfm: SDHCI platform and OF driver helper
[ 3.143260] ledtrig-cpu: registered to indicate activity on CPUs
[ 3.150452] hid: raw HID events driver (C) Jiri Kosina
[ 3.155798] usbcore: registered new interface driver usbhid
[ 3.161476] usbhid: USB HID core driver
[ 3.166849] bcm2835-mbox fe00b880.mailbox: mailbox enabled
[ 3.177193] Initializing XFRM netlink socket
[ 3.182139] NET: Registered protocol family 10
[ 3.212618] Segment Routing with IPv6
[ 3.216450] mip6: Mobile IPv6
[ 3.219498] NET: Registered protocol family 17
[ 3.224198] Key type dns_resolver registered
[ 3.228920] registered taskstats version 1
[ 3.233092] Loading compiled-in X.509 certificates
[ 3.238389] zswap: loaded using pool lzo/zbud
[ 3.243036] debug_vm_pgtable: [debug_vm_pgtable ]: Validating architecture page table helpers
[ 3.252558] Key type ._fscrypt registered
[ 3.256632] Key type .fscrypt registered
[ 3.260665] Key type fscrypt-provisioning registered
[ 3.277522] Key type encrypted registered
[ 3.286632] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 24, base_baud = 0) is a PL011 rev2
[ 3.295948] serial serial0: tty port ttyAMA0 registered
[ 3.312111] raspberrypi-firmware soc:firmware: Attached to firmware from 2021-06-29T16:00:18
[ 3.480842] dwc2 fe980000.usb: supply vusb_d not found, using dummy regulator
[ 3.488209] dwc2 fe980000.usb: supply vusb_a not found, using dummy regulator
[ 3.595819] dwc2 fe980000.usb: dwc2_check_param_tx_fifo_sizes: Invalid parameter g-tx-fifo-size, setting to default average
[ 3.607131] dwc2 fe980000.usb: EPs: 8, dedicated fifos, 4080 entries in SPRAM
[ 3.625995] sdhci-iproc fe300000.sdhci: allocated mmc-pwrseq
[ 3.682674] mmc0: SDHCI controller on fe300000.sdhci [fe300000.sdhci] using PIO
[ 3.705281] mmc0: queuing unknown CIS tuple 0x80 (2 bytes)
[ 3.712507] mmc0: queuing unknown CIS tuple 0x80 (3 bytes)
[ 3.719700] mmc0: queuing unknown CIS tuple 0x80 (3 bytes)
[ 3.724992] ALSA device list:
[ 3.728179] mmc0: queuing unknown CIS tuple 0x80 (7 bytes)
[ 3.728275] No soundcards found.
[ 3.735448] mmc0: queuing unknown CIS tuple 0x80 (3 bytes)
[ 3.740698] mmc1: SDHCI controller on fe340000.emmc2 [fe340000.emmc2] using ADMA
[ 3.754156] Freeing unused kernel memory: 5312K
[ 3.758857] Run /init as init process
[ 3.782758] random: fast init done
[ 3.799126] mmc1: ADMA error: 0x02000000
[ 3.803127] mmc1: sdhci: ============ SDHCI REGISTER DUMP ===========
[ 3.809656] mmc1: sdhci: Sys addr: 0x00000000 | Version: 0x00001002
[ 3.816187] mmc1: sdhci: Blk size: 0x00007008 | Blk cnt: 0x00000001
[ 3.822716] mmc1: sdhci: Argument: 0x00000000 | Trn mode: 0x00000013
[ 3.829244] mmc1: sdhci: Present: 0x1fff0206 | Host ctl: 0x00000011
[ 3.835773] mmc1: sdhci: Power: 0x0000000f | Blk gap: 0x00000080
[ 3.842302] mmc1: sdhci: Wake-up: 0x00000000 | Clock: 0x00007d07
[ 3.848831] mmc1: sdhci: Timeout: 0x00000000 | Int stat: 0x00000000
[ 3.855359] mmc1: sdhci: Int enab: 0x03ff100b | Sig enab: 0x03ff100b
[ 3.861888] mmc1: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00000000
[ 3.868415] mmc1: sdhci: Caps: 0x45ee6432 | Caps_1: 0x0000a525
[ 3.874944] mmc1: sdhci: Cmd: 0x0000333a | Max curr: 0x00080008
[ 3.881472] mmc1: sdhci: Resp[0]: 0x00000920 | Resp[1]: 0x00ee7f7f
[ 3.888000] mmc1: sdhci: Resp[2]: 0x325b5900 | Resp[3]: 0x00400e00
[ 3.894527] mmc1: sdhci: Host ctl2: 0x00000008
[ 3.899027] mmc1: sdhci: ADMA Err: 0x00000001 | ADMA Ptr: 0xc3000200
[ 3.905555] mmc1: sdhci: ============================================
[ 3.912082] mmc1: sdhci: c3000200: DMA 0xf3400000, LEN 0x0008, Attr=0x21
[ 3.918876] mmc1: sdhci: c3000208: DMA 0x00000000, LEN 0x0000, Attr=0x03
')
cbc02009
 
Posts: 12
Joined: Wed May 05, 2021 12:58 pm

Re: Raspberry Pi 4 Model B 8 GB (2/3 Fail with SD Card error

Postby SpaceOne » Wed Aug 18, 2021 3:19 pm

Sorry, my bad when I said to replace all ${fdt_addr_r}.
Only two of them should be changed, at the "booti" lines.

This is how my boot.txt and boot.scr look like:

$this->bbcode_second_pass_code('', '
# Set root partition to the second partition of boot device
part uuid ${devtype} ${devnum}:2 uuid

setenv bootargs console=ttyS1,115200 console=tty0 root=PARTUUID=${uuid} rw rootwait smsc95xx.macaddr="${usbethaddr}"

if load ${devtype} ${devnum}:${bootpart} ${kernel_addr_r} /Image; then
if load ${devtype} ${devnum}:${bootpart} ${fdt_addr_r} /dtbs/${fdtfile}; then
if load ${devtype} ${devnum}:${bootpart} ${ramdisk_addr_r} /initramfs-linux.img; then
booti ${kernel_addr_r} ${ramdisk_addr_r}:${filesize} ${fdt_addr};
else
booti ${kernel_addr_r} - ${fdt_addr};
fi;
fi;
fi

')
SpaceOne
 
Posts: 6
Joined: Mon Aug 02, 2021 10:47 pm

Re: Raspberry Pi 4 Model B 8 GB (2/3 Fail with SD Card error

Postby cbc02009 » Thu Aug 19, 2021 1:28 pm

$this->bbcode_second_pass_quote('SpaceOne', 'S')orry, my bad when I said to replace all ${fdt_addr_r}.
Only two of them should be changed, at the "booti" lines.

This is how my boot.txt and boot.scr look like:

$this->bbcode_second_pass_code('', '
# Set root partition to the second partition of boot device
part uuid ${devtype} ${devnum}:2 uuid

setenv bootargs console=ttyS1,115200 console=tty0 root=PARTUUID=${uuid} rw rootwait smsc95xx.macaddr="${usbethaddr}"

if load ${devtype} ${devnum}:${bootpart} ${kernel_addr_r} /Image; then
if load ${devtype} ${devnum}:${bootpart} ${fdt_addr_r} /dtbs/${fdtfile}; then
if load ${devtype} ${devnum}:${bootpart} ${ramdisk_addr_r} /initramfs-linux.img; then
booti ${kernel_addr_r} ${ramdisk_addr_r}:${filesize} ${fdt_addr};
else
booti ${kernel_addr_r} - ${fdt_addr};
fi;
fi;
fi

')


Thanks, that was the solution! At least most of it. I also had to modify /etc/fstab to use the partition UUID instead of mmcblk1, otherwise the kernel would enter rescue mode waiting on a start job for mmcblk1.
cbc02009
 
Posts: 12
Joined: Wed May 05, 2021 12:58 pm
Top

PreviousNext

Return to ARMv8 Devices

Who is online

Users browsing this forum: No registered users and 4 guests