Firefly Open Source Community

Title: NVMe still not found after DTS method [Print This Page]

Author: suppler-bunker    Time: 5/10/2023 00:51
Title: NVMe still not found after DTS method
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..

tchip_askquestions

empty.gz

26 Bytes, Down times: 1


Author: Liuth    Time: 5/10/2023 09:36
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
Author: suppler-bunker    Time: 5/10/2023 23:23
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!




Welcome Firefly Open Source Community (https://bbs.t-firefly.com/) Powered by Discuz! X3.1