谢谢指导!
在 2023/12/14 20:11, Icenowy Zheng 写道:
在 2023-12-14星期四的 01:40 -0800,atzlinux写道:light-lpi4a.dts 文件里面是如下这个章节,
> 遇到几个问题:
>
> 1. revyos 系统上
> /boot/dtbs/linux-image-5.10.113-lpi4a/thead/light-lpi4a.dtb 的文件, 使用
> dtc 解开后的 light-lpi4a.dts 文件里面,找不到你说的文字章节。
此处章节对应原始源码,反编译后请寻找 ***@***.*** 而不是 &sdhci0 (因为后者在编译过程中已经丢失了),并修改其中的
max-frequency 。
sd@ffe7090000 {
compatible = "snps,dwcmshc-sdhci";
reg = <0xff 0xe7090000 0x00 0x10000>;
interrupt-parent = <0x16>;
interrupts = <0x40>;
interrupt-names = "sdhci0irq";
clocks = <0x3f>;
clock-names = "core";
max-frequency = <0x5f5e100>;
bus-width = <0x04>;
pull_up;
wprtn_ignore;
status = "okay";
};
将 max-frequency = <0xbcd3d80>; 修改为 max-frequency = <0x5f5e100>;
这里进行了一个 16 进制到 10 进制的转换哈:
root@lpi4a:~/f3# echo $((0x5f5e100))
100000000
重新编译
dtc -I dts light-lpi4a.dts -O dtb -o light-lpi4a.dtb
替换 /boot/dtbs/linux-image-5.10.113-lpi4a/thead/light-lpi4a.dtb 文件后,重启荔枝派.
测试:
hdparm -t /dev/mmcblk1
/dev/mmcblk1:
Timing buffered disk reads: 134 MB in 3.00 seconds = 44.62 MB/sec
F3 工具测试:
https://gitee.com/mirrors_AltraMayor/f3.git
root@lpi4a:~/f3# ./f3write /mnt/1
F3 write 8.0
Copyright (C) 2010 Digirati Internet LTDA.
This is free software; see the source for copying conditions.
Free space: 200.67 GB
Creating file 1.h2w ... OK!
..................
Creating file 15.h2w ... 7.45% -- 11.33 MB/s -- 3:24:01
OK!
Creating file 16.h2w ... 7.48% -- 11.03 MB/s -- 3:24:13
OK!
Creating file 17.h2w ... OK!
Creating file 18.h2w ... 8.57% -- 10.78 MB/s -- 3:21:31^C
./f3read /mnt/1
F3 read 8.0
Copyright (C) 2010 Digirati Internet LTDA.
This is free software; see the source for copying conditions.
SECTORS ok/corrupted/changed/overwritten
Validating file 1.h2w ... 5.14% -- 37.83 MB/s -- 7:18
2097152/ 0/ 0/ 0
Validating file 2.h2w ... 6.67% -- 38.06 MB/s -- 7:12
dmesg 均没有报错。
问题基本解决。
加上其它测试,发现 SD 卡 IO 写速率约 16MB/s, IO 读速率约 44 MB/s .
不知道这个 IO 值,是否已经达到了 256GB SD 卡的最大值呢?
有人反馈测试 SD 卡,读速率可以到 80MB/s.
-- 肖盛文 xiao sheng wen 微信(wechat):atzlinux 《铜豌豆 Linux》https://www.atzlinux.com 基于 Debian 的 Linux 中文 桌面 操作系统 GnuPG Public Key: 0x2F338C7DC7909957