We use some essential cookies to make our website work.

We use optional cookies, as detailed in our cookie policy, to remember your settings and understand how you use our website.

5 posts • Page 1 of 1
peterlite
Posts: 1741
Joined: Sun Apr 17, 2016 4:00 am

Trixie Pi Diagnostics not passing A2 cards [SOLVED]

Fri Nov 07, 2025 5:51 am

Trixie with all updates. I ran Raspberry Pi diagnostics speed test on an A2 card that passed A2 back when first using Bookworm. I tested today with Trixie and it reports PASSED but for A1 speeds, not A2. Is there a change in the code test code or to the microSD driver?

I will retest a few cards and I am about to switch on PCIe then PCIe 3 so I can test my NVMe setup.
Last edited by peterlite on Sat Nov 08, 2025 6:41 am, edited 2 times in total.

peterlite
Posts: 1741
Joined: Sun Apr 17, 2016 4:00 am

Re: Trixie Pi Diagnostics not passing A2 cards

Fri Nov 07, 2025 8:02 am

The following is a test with the Raspberry Pi 32 GB A2 card and appears to report accurately.

Code: Select all

Raspberry Pi Diagnostics - version 1.4
Fri Nov 7 18:23:07 2025
Test : SD Card Speed Test
Run 1
prepare-file;0;0;32961;64
seq-write;0;0;33044;8
seq-read;92499;22;0;0
rand-4k-write;0;0;8431;2107
rand-4k-read;22816;5704;0;0
Sequential write speed 33044 KB/sec (target 10000) - PASS
Random write speed 2107 IOPS (target 500) - PASS
Random read speed 5704 IOPS (target 1500) - PASS
Test PASS
I am looking through old cards across several brands. Some have more than double the sequential write speed and had good random writes back when first tested. I threw out the one card labelled A2 that did not pass as A2.

Some cards now appear to now have lower random writes, passing as A1 but not A2. The test conditions are the same. Same old Pi 5. Same 16 GB image with all updates. Just using Trixie as the base instead of Bookworm.

Matching the exact tests is difficult as I did not keep many. Some of the cards have the same name but different batch numbers on the card.

jdb
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 3576
Joined: Thu Jul 11, 2013 2:37 pm

Re: Trixie Pi Diagnostics not passing A2 cards

Fri Nov 07, 2025 1:32 pm

What's the kernel version (uname -a) on the older install?

Soon after the release of our own A2 cards, it became apparent that non-vetted A2 cards were sufficiently variable in quality (even within brands) that A2 mode was made opt-in.
To bypass the allow-list you can add dtparam=sd_cqe=2 in /boot/firmware/config.txt - see /boot/firmware/overlays/README
Rockets are loud.
https://astro-pi.org

peterlite
Posts: 1741
Joined: Sun Apr 17, 2016 4:00 am

Re: Trixie Pi Diagnostics not passing A2 cards

Sat Nov 08, 2025 6:40 am

Sandisk Extreme Pro microSDXC 64 GB UHS-I U3 V30 A2 1516DFGJ220A
Without dtparam=sd_cqe=2:
Raspberry Pi Diagnostics - version 1.4
Sequential write speed 21469 KB/sec (target 10000) - PASS
Random write speed 881 IOPS (target 500) - PASS
Random read speed 2199 IOPS (target 1500) - PASS
Test PASS
With dtparam=sd_cqe=2: :shock: :o :D
Raspberry Pi Diagnostics - version 1.4
Sequential write speed 35149 KB/sec (target 10000) - PASS
Random write speed 2372 IOPS (target 500) - PASS
Random read speed 5615 IOPS (target 1500) - PASS
Test PASS

peterlite
Posts: 1741
Joined: Sun Apr 17, 2016 4:00 am

Re: Trixie Pi Diagnostics not passing A2 cards [SOLVED]

Mon Nov 10, 2025 3:26 am

A note on variability in speed tests and identifying cards.

Here is the Pi diagnostics on a card:

Code: Select all

Raspberry Pi Diagnostics - version 1.4
Sun Nov 9 18:06:24 2025
Test : SD Card Speed Test
Run 1
prepare-file;0;0;72656;141
seq-write;0;0;71663;17
seq-read;89806;21;0;0
rand-4k-write;0;0;11720;2930
rand-4k-read;23636;5909;0;0
Sequential write speed 71663 KB/sec (target 10000) - PASS
Random write speed 2930 IOPS (target 500) - PASS
Random read speed 5909 IOPS (target 1500) - PASS
Test PASS
Below is my version of the same test. Some parts are bloated because I dump a file instead of the relevant lines. One thing is noticeable. Every test is slightly different but not enough to change decisions about a card. Perhaps the Raspberry Pi Diagnostics could add the following items.
  • The CPU is identified to allow for tests across different models. Almost anything with Linux.
  • The card is identified so there is no confusion when testing several cards.

Code: Select all

sdtest start.
Perform a storage speed test on a Raspberry Pi or Linux Mint.
SD Card Speed Test from the Raspberry Pi diagnostics program.
Plus enhancements.
OS from /etc/os-release:
PRETTY_NAME="Debian GNU/Linux 13 (trixie)"
NAME="Debian GNU/Linux"
VERSION_ID="13"
VERSION="13 (trixie)"
VERSION_CODENAME=trixie
DEBIAN_VERSION_FULL=13.1
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
fio installed.
CPU information from /proc/cpuinfo:
39:Model		: Raspberry Pi 5 Model B Rev 1.0
37:Revision	: d04170
Memory usage:
 total used free shared buff/cache available
Mem: 8252416 542256 7017328 40544 809616 7710160
Swap: 2097136 0 2097136
NVMe:
Model: WDC PC SN520 SDAPNUW-512G-1014 
Size: 1000215216
Firmware revision: 20110000
Serial number: 192088453413 
microSD:Model: SR64G
Date: 12/2021
OEM ID: 0x5344
Create job file in ./sdtest.tmp.job:
Run 1
RES: prepare-file;0;0;72979;142
seq-write;0;0;72616;17
seq-read;91787;22;0;0
rand-4k-write;0;0;11643;2910
rand-4k-read;23438;5859;0;0
Sequential write speed 72616 KB/sec (target 10000) - PASS
Sequential read speed 91787 KB/sec (target 10000) - PASS
Random write speed 2910 IOPS (A2 target 2000) - PASS
Random read speed 5859 IOPS (A2 target 4000) - PASS
Run 2
RES: prepare-file;0;0;68985;134
seq-write;0;0;73635;17
seq-read;92044;22;0;0
rand-4k-write;0;0;11815;2953
rand-4k-read;24393;6098;0;0
Sequential write speed 73635 KB/sec (target 10000) - PASS
Sequential read speed 92044 KB/sec (target 10000) - PASS
Random write speed 2953 IOPS (A2 target 2000) - PASS
Random read speed 6098 IOPS (A2 target 4000) - PASS
Run 3
RES: prepare-file;0;0;69149;135
seq-write;0;0;73000;17
seq-read;92109;22;0;0
rand-4k-write;0;0;11594;2898
rand-4k-read;24659;6164;0;0
Sequential write speed 73000 KB/sec (target 10000) - PASS
Sequential read speed 92109 KB/sec (target 10000) - PASS
Random write speed 2898 IOPS (A2 target 2000) - PASS
Random read speed 6164 IOPS (A2 target 4000) - PASS
List disk space.
df -hT -x tmpfs -x efivarfs
Filesystem Type Size Used Avail Use% Mounted on
udev devtmpfs 3.9G 0 3.9G 0% /dev
/dev/mmcblk0p2 ext4 58G 8.1G 48G 15% /
/dev/mmcblk0p1 vfat 510M 78M 433M 16% /boot/firmware
sdtest end. Used 96 seconds.

5 posts • Page 1 of 1

Return to "Raspberry Pi OS"

AltStyle によって変換されたページ (->オリジナル) /