Adding RPi4/CM4 AHCI

  • How to add kernel support for AHCI devices? There are several CM4 sata hats and mine has an asmedia - but I expect it just needs the AHCI driver.

    I saw some references to adding to the inux.aarch64.conf file "CONFIG_SATA_AHCI=y" and build.

    Is there anything more than that? (Im waiting for the default build to finish now, there are some 404s on some packages at the moment(

  • At the risk of conflating two issues, the build failure without any changes is specifically,:

  • Thanks - can build, but no luck adding AHCI support.

    Based on your comment in another thread, I added these options to the projects/RPi/devices/RPi4/linux/linux.aarch64.conf file

    CONFIG_ATA=m
    CONFIG_SATA_AHCI=m
    CONFIG_SATA_MV=m

    Though that's just a guess from something Jeff Geerling did. I can build with a PROJECT=RPi ARCH=aarch64 DEVICE=RPi4 make image flash and boot, but no luck loading the module.

    insmod ahci
    insmod: ERROR: could not load module ahci: No such file or directory

    Any suggestions?