Skip to content

A tool that repairs the Raspberry Pi 5 device tree for NVMe hat with asm1064 controllers.

License

Notifications You must be signed in to change notification settings

GrandEchoWhiskey/pi5-nvme-hat-with-asm1064

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Rasberry Pi 5 - NVMe hat with ASM1064 fix

Rasberry Pi OS Lite with OpenMediaVault

This procedure modifies the Raspberry Pi 5 device tree to improve compatibility with NVMe HATs and ASM1064-based PCIe controllers. It starts by gaining root access and creating a backup of the original device tree blob (bcm2712-rpi-5-b.dtb). The device tree is then decompiled into a human-readable .dts format, where the pcie@1.. node is renamed to p1: pcie@1..., and references to <0x..> are replaced with <&p1>. These modifications ensure that PCIe devices, such as NVMe adapters and ASM1064 SATA controllers, are properly detected and initialized by the firmware. After making the changes, the .dts file is recompiled back into a .dtb file and replaces the original firmware file. The system is then rebooted to apply the new configuration, potentially resolving issues related to PCIe lane assignment, device detection, and stability when using NVMe SSDs or SATA expansions on the Raspberry Pi 5.

sudo su
sudo cp /boot/firmware/bcm2712-rpi-5-b.dtb /boot/firmware/bcm2712-rpi-5-b.dtb.bak
dtc -I dtb -O dts /boot/firmware/bcm2712-rpi-5-b.dtb -o ~/fix.dts
nano ~/fix.dts
  • replace pcie@1.. to p1: pcie@1..
  • replace msi-parrent: <0x..> to msi-parrent: <&p1>
dtc -I dts -O dtb ~/fix.dts -o ~/fix.dtb
sudo mv ~/fix.dtb /boot/firmware/bcm2712-rpi-5-b.dtb
rm ~/fix.dts
reboot

Python script not yet tested!

It should work also with ASM1166

About

A tool that repairs the Raspberry Pi 5 device tree for NVMe hat with asm1064 controllers.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages