Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

[Linux] NVMe still not found after DTS method

21

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
21

【Linux】 NVMe still not found after DTS method

Posted at 5/10/2023 00:51:29      View:837 | Replies:2        Print      Only Author   [Copy Link] 1#
Problem description and steps to reproduce:
I have a NVMe SSD, so I follow the DTS method to change the M2 slot to support NVMe following the instructions at https://wiki.t-firefly.com/en/RO ... -dts-configuration.
I download the Linux SDK using sync code method at https://wiki.t-firefly.com/en/RO ... pile.html#sync-code

Then I modify the file roc-rk3588s-pc.dtsi

with following:


#define M2_SATA_OR_PCIE 0 /*1 = SATA , 0 = PCIe */


Then:

cpp -Wp,-MD,x.pre.tmp -nostdinc -I. -I /home/firefly/proj/rk3588_sdk/kernel/include/ -undef -D__DTS__ -x assembler-with-cpp -o nvme.dts roc-rk3588s-pc.dts
dtc -I dts -O dtb -o nvme.dtb nvme.dts


Move the nvme.dtb to /boot
ls -lash /boot/rk-kernel.dtb
0 lrwxrwxrwx 1 root root 8 May  9 23:52 /boot/rk-kernel.dtb -> nvme.dtb


reboot the system, but lsblk has no NVMe drive...

Please help..

empty.gz

26 Bytes, Down times: 1

Reply

Use props Report

370

Credits

7

Prestige

7

Contribution

intermediate

Rank: 3Rank: 3

Credits
370
Posted at 5/10/2023 09:36:18        Only Author  2#
Last edited by Liuth In 5/10/2023 09:40 Editor

The way you updating dtb was wrong, the right way:
After you modified roc-rk3588s-pc.dtsi, rebuild kernel using "./build.sh roc-rk3588s-pc-debian.mk" & "./build.sh extboot"
Then you will get a folder named extboot under kernel/
Copy ALL dtb files in extboot to your board's /boot/
Then reboot
Reply

Use props Report

21

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
21
Posted at 5/10/2023 23:23:16        Only Author  3#
Liuth Posted at 5/10/2023 09:36
The way you updating dtb was wrong, the right way:
After you modified roc-rk3588s-pc.dtsi, rebuild  ...

Thanks! I followed your instructions, and the OS can detect the NVMe SSD disk. Thanks a lot!
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list