Pi500 install

Hello, I just installed EndeavourOS on a Raspberry Pi500… using a 256GB Samsung Pro Plus A2 class SD card. I’m getting a dmesg log full of “mmc0: running CQE recovery” messages.

I found a note on Jeff Gerling’s site to add a dtparam=sd_cqe parameter to the /boot/config.txt file, since my A2 class SD card should support it. On boot I see the dmesg saying Command Queue Engine enabled, 31 tags.

However, I continue to get a log full of the CQE recovery messages, which I believe is really slowing done my machine.

Any ideas?

Thanks.

1 Like

dtparam=sd_cqe parameter to the /boot/config.txt file

Doesn’t this only apply for Raspberry Pi OS ?

1 Like

Ah… looks like CQE is enabled by default. I added dtparam=sd_cqe=off and the error messages went away and things are much faster.

I’ll have to try a different SD card, I’ve just learned that the some Samsung SD cards have had issues with CQE.

1 Like

If i remember correct all samsung A2 card atm have issues CQ mode

1 Like

I have succesfully installed EnOS on RPi 5 with a Samsung Pro Plus 128 GB uSD, a Samsung T7 500 GB USB SSD, and a Sans Disk 500 GB NVME.

I also have a couple Samsung Pro Plus 256 GB uSDs. It has been my experience with 256 GB uSD is very sketchy. Not as stable as 128 GB.

I would suggest using a Samsung Pro Plus 128 GB uSD if available. That was been rock solid for me.
HTH

Let us know how things turn out.

Pudge

EDIT:
I support 6 different images that I refresh every 1 to 2 weeks. Every time I do a test install of every image before Release on github. Here is a pic of my work bench with the uSDs I use for testing.

All of them are this uSD

I cannot say how many times these six uSDs have been totally partitioned, formatted, and a fresh install, so far no storage device issues.

5 Likes

i check my note… note is old , i do write down where thread was.

it last post on page 5

Re: Testing class A2 SD cards with Command Queueing on Pi 5
Quote
Mon Nov 25, 2024 6:46 pm

To date there have been no Samsung A2 cards that work with CQ mode - typically because they break when a filesystem cache flush occurs. Therefore they're masked out by that quirk flag (bit 15).

Also flash capacities in datasheets are usually minima - there's a certain number of bad blocks that the manufacturer is willing to tolerate which will vary between each card.

it little long read if interested
https://forums.raspberrypi.com/viewtopic.php?t=367459&sid=2186ea639f1a39a60b2fa2a3bcaeaefc

2 Likes

@darkhorse i no have access to Pi500

i wonder if you same / close result on Pi500.

on Rpi 5 ( rpi-16k kernel on Arch )

uSD scandisk 128GB extreme Pro

❯ sudo hdparm -Tt --direct /dev/mmcblk0

/dev/mmcblk0:
 Timing O_DIRECT cached reads:   180 MB in  2.02 seconds =  89.22 MB/sec
 Timing O_DIRECT disk reads: 264 MB in  3.01 seconds =  87.85 MB/sec
❯ sudo hdparm -tT /dev/mmcblk0p1

/dev/mmcblk0p1:
 Timing cached reads:   6104 MB in  2.00 seconds = 3055.00 MB/sec
 Timing buffered disk reads: 200 MB in  2.25 seconds =  89.06 MB/sec

same card in usb adapter

❯ sudo hdparm -Tt --direct /dev/sdb

/dev/sdb:
 Timing O_DIRECT cached reads:   180 MB in  2.01 seconds =  89.60 MB/sec
 Timing O_DIRECT disk reads: 256 MB in  3.00 seconds =  85.24 MB/sec

❯ sudo hdparm -tT /dev/sdb1

/dev/sdb1:
 Timing cached reads:   6132 MB in  2.00 seconds = 3068.88 MB/sec
 Timing buffered disk reads: 258 MB in  3.01 seconds =  85.67 MB/sec

Now on Rpi CM5 ( rpi-16k kernel on Arch)

On same card in adapter i get

❯ sudo hdparm -Tt --direct /dev/sda

/dev/sda:
 Timing O_DIRECT cached reads:   300 MB in  2.00 seconds = 149.89 MB/sec
 Timing O_DIRECT disk reads: 322 MB in  3.00 seconds = 107.25 MB/sec
❯ sudo hdparm -tT /dev/sda1

/dev/sda1:
 Timing cached reads:   11366 MB in  2.00 seconds = 5694.36 MB/sec
 Timing buffered disk reads: 200 MB in  1.23 seconds = 162.43 MB/sec

As my CM5 have eMMc i can no test uSD slot ( if i read correct).

if you no mind it interest me what Pi500 return.

I will give it a shot when I get a chance… :slight_smile:

Here are results on Pi500 using Sandisk 128GB Extreme Pro SDcard default clean install:

OS: EndeavourOS aarch64
               `:+sssssssssso/.             Host: Raspberry Pi 500 Rev 1.0
             `-/ossssssssssssso/.           Kernel: Linux 6.12.5-2-rpi-16k
           `-/+sssssssssssssssso+:`         Uptime: 5 mins
         `-:/+sssssssssssssssssso+/.        Packages: 965 (pacman)
       `.://osssssssssssssssssssso++-       Shell: bash 5.2.37
      .://+ssssssssssssssssssssssso++:      Display (ASM-160QC): 2560x1600 @ 120 Hz in 16" [External]
    .:///ossssssssssssssssssssssssso++:     DE: KDE Plasma 6.2.4
  `:////ssssssssssssssssssssssssssso+++.    WM: KWin (Wayland)
`-////+ssssssssssssssssssssssssssso++++-    WM Theme: Breeze
 `..-+oosssssssssssssssssssssssso+++++/`    Theme: Breeze (Dark) [Qt], Breeze [GTK2/3]
   ./++++++++++++++++++++++++++++++/:.      Icons: breeze-dark [Qt], breeze-dark [GTK2/3/4]
  `:::::::::::::::::::::::::------``        Font: Noto Sans (10pt) [Qt], Noto Sans (10pt) [GTK2/3/4]
                                            Cursor: breeze (24px)
                                            Terminal: konsole 24.12.0
                                            CPU: BCM2712 (4) @ 2.40 GHz
                                            GPU: Broadcom bcm2712d0-vc6 [Integrated]
                                            Memory: 2.18 GiB / 7.86 GiB (28%)
                                            Swap: Disabled
                                            Disk (/): 7.46 GiB / 116.60 GiB (6%) - ext4
                                            Local IP (wlan0): 192.168.69.173/24
                                            Locale: en_US.UTF-8

[    3.004883] mmc1: CQHCI version 5.10
[    3.008853] sdhci-brcmstb 1000fff000.mmc: Got CD GPIO
[    3.014431] mmc0: CQHCI version 5.10
[    3.018401] of_cfs_init
[    3.021146] of_cfs_init: OK
[    3.024257] clk: Disabling unused clocks
[    3.036728] PM: genpd: Disabling unused power domains
[    3.050016] usb 1-2: new full-speed USB device number 2 using xhci-hcd
[    3.057995] mmc0: SDHCI controller on 1000fff000.mmc [1000fff000.mmc] using ADMA 64-bit
[    3.171710] mmc0: new ultra high speed SDR104 SDXC card at address aaaa
[    3.178618] usb 3-2: new full-speed USB device number 2 using xhci-hcd
[    3.178899] mmcblk0: mmc0:aaaa SN128 119 GiB
[    3.193124]  mmcblk0: p1 p2
[    3.196252] mmcblk0: mmc0:aaaa SN128 119 GiB (quirks 0x0000c000)
[    3.200538] mmc1: SDHCI controller on 1001100000.mmc [1001100000.mmc] using ADMA 64-bit
sudo hdparm -Tt --direct /dev/mmcblk0
/dev/mmcblk0:
 Timing O_DIRECT cached reads:   180 MB in  2.02 seconds =  89.07 MB/sec
 Timing O_DIRECT disk reads: 270 MB in  3.02 seconds =  89.43 MB/sec
sudo hdparm -tT /dev/mmcblk0p1
/dev/mmcblk0p1:
 Timing cached reads:   4030 MB in  2.00 seconds = 2015.21 MB/sec
 Timing buffered disk reads: 268 MB in  3.00 seconds =  89.26 MB/sec
1 Like

Using a Samsung Pro Plus 256GB SDcard with dtparam=sd_cqe=off in config.txt:

sudo hdparm -Tt --direct /dev/mmcblk0
/dev/mmcblk0:
 Timing O_DIRECT cached reads:   182 MB in  2.02 seconds =  90.03 MB/sec
 Timing O_DIRECT disk reads: 256 MB in  3.02 seconds =  84.77 MB/sec
sudo hdparm -tT /dev/mmcblk0p1
/dev/mmcblk0p1:
 Timing cached reads:   4274 MB in  2.00 seconds = 2138.44 MB/sec
 Timing buffered disk reads: 274 MB in  3.01 seconds =  90.92 MB/sec
1 Like

Kind of you very… basic same as Rpi 5 :+1:
Pls forgive reply late , it be a busy day

Thanks for the feed back. I have not obtained a RPi 500 yet, next month maybe.
Glad to hear the RPi 5 image works without intervention.

If you have the time, inclination, and spare uSD card, here is the procedure for creating an RPi 5 image with btrfs. It will be a few weeks before I can actually test this on a RPi 500.

Thank for your interest in ARM platforms.

Pudge