Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请求适配 hd9901 (rk3399) #2699

Open
dtamade opened this issue Dec 16, 2024 · 7 comments
Open

请求适配 hd9901 (rk3399) #2699

dtamade opened this issue Dec 16, 2024 · 7 comments

Comments

@dtamade
Copy link

dtamade commented Dec 16, 2024

这个板子跟 smart am40 类似,但是我刷了仓库里 am40的固件 会出现硬盘的只读问题.
经过反编译 dtb 发现dts有点出入,请求兼容适配,现将 这个 hd9901能用的固件的 dts 发上来.谢谢大牛.

rockchip-hd9901.zip

@dtamade
Copy link
Author

dtamade commented Dec 16, 2024

rockchip-hd9901.zip
重新上传了 包含原固件的dtb文件一起

@sjllls
Copy link

sjllls commented Dec 21, 2024

compatible = "bozz,sw799a\0rockchip,rk3399";
上传的并非HD9901原始固件中的dts,难以作为参考

@dtamade
Copy link
Author

dtamade commented Dec 21, 2024

compatible = "bozz,sw799a\0rockchip,rk3399"; 上传的并非HD9901原始固件中的dts,难以作为参考

我看了一遍大概跟电源和mmc的定义差异有点关系.
正在熟悉 dts规范中,想尝试修复

@sjllls
Copy link

sjllls commented Dec 22, 2024

正常启动:

[    5.326934] mmc0: Command Queue Engine enabled
[    5.326961] mmc0: new HS400 Enhanced strobe MMC card at address 0001
[    5.327700] mmcblk0: mmc0:0001 AJTD4R 14.6 GiB 
[    5.330494]  mmcblk0: p1 p2
[    5.331102] mmcblk0boot0: mmc0:0001 AJTD4R 4.00 MiB 
[    5.331852] mmcblk0boot1: mmc0:0001 AJTD4R 4.00 MiB 
[    5.332567] mmcblk0rpmb: mmc0:0001 AJTD4R 4.00 MiB, chardev (240:0)

只读启动:

[    5.208954] mmc0: Command Queue Engine enabled
[    5.208983] mmc0: new HS400 Enhanced strobe MMC card at address 0001
[    5.219501] mmcblk0: mmc0:0001 AJTD4R 14.6 GiB 
[    5.223764] GPT:Primary header thinks Alt. header is not at the end of the disk.
[    5.223779] GPT:6324223 != 30535679
[    5.223788] GPT:Alternate GPT header not at the end of the disk.
[    5.223791] GPT:6324223 != 30535679
[    5.223795] GPT: Use GNU Parted to correct GPT errors.
[    5.223824]  mmcblk0: p1 p2
[    5.229894] mmcblk0boot0: mmc0:0001 AJTD4R 4.00 MiB 
[    5.232978] mmcblk0boot1: mmc0:0001 AJTD4R 4.00 MiB 
[    5.234248] mmcblk0rpmb: mmc0:0001 AJTD4R 4.00 MiB, chardev (240:0)

EMMC随机正常工作,没出现坏块,基本上就是供电不足。
HD9901的EMMC是KLMAG1JETD-B041,电压是1.8 / 3.3 V
AM40的EMMC电压是闪迪,具体型号未知,看设备树电压是1.8 / 3.0 V
vcc_sd0x2dc6c0加到0x325aa0即可解决

@dtamade
Copy link
Author

dtamade commented Dec 25, 2024

正常启动:

[    5.326934] mmc0: Command Queue Engine enabled
[    5.326961] mmc0: new HS400 Enhanced strobe MMC card at address 0001
[    5.327700] mmcblk0: mmc0:0001 AJTD4R 14.6 GiB 
[    5.330494]  mmcblk0: p1 p2
[    5.331102] mmcblk0boot0: mmc0:0001 AJTD4R 4.00 MiB 
[    5.331852] mmcblk0boot1: mmc0:0001 AJTD4R 4.00 MiB 
[    5.332567] mmcblk0rpmb: mmc0:0001 AJTD4R 4.00 MiB, chardev (240:0)

只读启动:

[    5.208954] mmc0: Command Queue Engine enabled
[    5.208983] mmc0: new HS400 Enhanced strobe MMC card at address 0001
[    5.219501] mmcblk0: mmc0:0001 AJTD4R 14.6 GiB 
[    5.223764] GPT:Primary header thinks Alt. header is not at the end of the disk.
[    5.223779] GPT:6324223 != 30535679
[    5.223788] GPT:Alternate GPT header not at the end of the disk.
[    5.223791] GPT:6324223 != 30535679
[    5.223795] GPT: Use GNU Parted to correct GPT errors.
[    5.223824]  mmcblk0: p1 p2
[    5.229894] mmcblk0boot0: mmc0:0001 AJTD4R 4.00 MiB 
[    5.232978] mmcblk0boot1: mmc0:0001 AJTD4R 4.00 MiB 
[    5.234248] mmcblk0rpmb: mmc0:0001 AJTD4R 4.00 MiB, chardev (240:0)

EMMC随机正常工作,没出现坏块,基本上就是供电不足。 HD9901的EMMC是KLMAG1JETD-B041,电压是1.8 / 3.3 V AM40的EMMC电压是闪迪,具体型号未知,看设备树电压是1.8 / 3.0 V, 把vcc_sd0x2dc6c0加到0x325aa0即可解决

你也有这块板子?咸鱼最便宜的3399...

@dtamade
Copy link
Author

dtamade commented Dec 25, 2024

正常启动:

[    5.326934] mmc0: Command Queue Engine enabled
[    5.326961] mmc0: new HS400 Enhanced strobe MMC card at address 0001
[    5.327700] mmcblk0: mmc0:0001 AJTD4R 14.6 GiB 
[    5.330494]  mmcblk0: p1 p2
[    5.331102] mmcblk0boot0: mmc0:0001 AJTD4R 4.00 MiB 
[    5.331852] mmcblk0boot1: mmc0:0001 AJTD4R 4.00 MiB 
[    5.332567] mmcblk0rpmb: mmc0:0001 AJTD4R 4.00 MiB, chardev (240:0)

只读启动:

[    5.208954] mmc0: Command Queue Engine enabled
[    5.208983] mmc0: new HS400 Enhanced strobe MMC card at address 0001
[    5.219501] mmcblk0: mmc0:0001 AJTD4R 14.6 GiB 
[    5.223764] GPT:Primary header thinks Alt. header is not at the end of the disk.
[    5.223779] GPT:6324223 != 30535679
[    5.223788] GPT:Alternate GPT header not at the end of the disk.
[    5.223791] GPT:6324223 != 30535679
[    5.223795] GPT: Use GNU Parted to correct GPT errors.
[    5.223824]  mmcblk0: p1 p2
[    5.229894] mmcblk0boot0: mmc0:0001 AJTD4R 4.00 MiB 
[    5.232978] mmcblk0boot1: mmc0:0001 AJTD4R 4.00 MiB 
[    5.234248] mmcblk0rpmb: mmc0:0001 AJTD4R 4.00 MiB, chardev (240:0)

EMMC随机正常工作,没出现坏块,基本上就是供电不足。 HD9901的EMMC是KLMAG1JETD-B041,电压是1.8 / 3.3 V AM40的EMMC电压是闪迪,具体型号未知,看设备树电压是1.8 / 3.0 V, 把vcc_sd0x2dc6c0加到0x325aa0即可解决

麻烦传一下你改好的 dtb 我试试看,我试过修改电压 还是一样

@sjllls
Copy link

sjllls commented Dec 30, 2024

麻烦传一下你改好的 dtb 我试试看,我试过修改电压 还是一样

原因不在于dtb,尝试过以下内容:
1.直接刷入ophub的tn3399固件,无法启动
2.直接刷入ophub的am40固件,间歇性正常启动
3.直接刷入ophub的firefly的固件,无法启动
4.使用自己写的dtb替换am40固件中的dtb,能够启动
5.使用自己写的dtb替换firefly固件中的dtb,无法启动

如果说rk3399不同机型的rootfs仅仅只有dtb的不同,替换dtb应该是能启动的,但是试验结果来看不是这样

回头有空了再看看编译脚本有什么具体的不同
PS:很奇怪tn3399的固件无法启动,暂时没有接上uart,不然能看看uboot的log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants