Coral PCIe / m.2 on jetson nano

Is there a way to run the coral PCIe on a jetson nano board (n30b-nano).
The deb package does not install correctly due to kernel header dependencies/versions.

Can you please share some logs?

I have tired building gasket-dkms against the jn30b-nano 2.56.0+rev1.prod kernel sources in my container. I do not know if this is the best way to do it.

I get the following errors:

Make: Entering directory ‘/usr/src/app/kernel_modules_headers’
LD /var/lib/dkms/gasket/1.0/build/built-in.o
CC [M] /var/lib/dkms/gasket/1.0/build/gasket_core.o
CC [M] /var/lib/dkms/gasket/1.0/build/gasket_ioctl.o
CC [M] /var/lib/dkms/gasket/1.0/build/gasket_interrupt.o
CC [M] /var/lib/dkms/gasket/1.0/build/gasket_page_table.o
CC [M] /var/lib/dkms/gasket/1.0/build/gasket_sysfs.o
CC [M] /var/lib/dkms/gasket/1.0/build/apex_driver.o
In file included from ./arch/arm64/include/asm/dma-mapping.h:30:0,
from ./include/linux/dma-mapping.h:210,
from ./arch/arm64/include/asm/pci.h:7,
from ./include/linux/pci.h:1670,
from /var/lib/dkms/gasket/1.0/build/gasket_interrupt.h:12,
from /var/lib/dkms/gasket/1.0/build/gasket_interrupt.c:4:
./arch/arm64/include/asm/xen/hypervisor.h:1:10: fatal error: …/…/arm/include/asm/xen/hypervisor.h: No such file or directory
#include <…/…/arm/include/asm/xen/hypervisor.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./arch/arm64/include/asm/dma-mapping.h:30:0,
from ./include/linux/dma-mapping.h:210,
from ./arch/arm64/include/asm/pci.h:7,
from ./include/linux/pci.h:1670,
from /var/lib/dkms/gasket/1.0/build/gasket_core.h:16,
from /var/lib/dkms/gasket/1.0/build/gasket_ioctl.h:6,
from /var/lib/dkms/gasket/1.0/build/gasket_ioctl.c:4:
./arch/arm64/include/asm/xen/hypervisor.h:1:10: fatal error: …/…/arm/include/asm/xen/hypervisor.h: No such file or directory
#include <…/…/arm/include/asm/xen/hypervisor.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
compilation terminated.
In file included from ./arch/arm64/include/asm/dma-mapping.h:30:0,
from ./include/linux/dma-mapping.h:210,
from ./arch/arm64/include/asm/pci.h:7,
from ./include/linux/pci.h:1670,
from /var/lib/dkms/gasket/1.0/build/gasket_page_table.h:15,
from /var/lib/dkms/gasket/1.0/build/gasket_page_table.c:42:
./arch/arm64/include/asm/xen/hypervisor.h:1:10: fatal error: …/…/arm/include/asm/xen/hypervisor.h: No such file or directory
#include <…/…/arm/include/asm/xen/hypervisor.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from ./arch/arm64/include/asm/dma-mapping.h:30:0,
from ./include/linux/dma-mapping.h:210,
from ./arch/arm64/include/asm/pci.h:7,
from ./include/linux/pci.h:1670,
from /var/lib/dkms/gasket/1.0/build/gasket_core.h:16,
from /var/lib/dkms/gasket/1.0/build/gasket_core.c:12:
./arch/arm64/include/asm/xen/hypervisor.h:1:10: fatal error: …/…/arm/include/asm/xen/hypervisor.h: No such file or directory
#include <…/…/arm/include/asm/xen/hypervisor.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
scripts/Makefile.build:335: recipe for target ‘/var/lib/dkms/gasket/1.0/build/gasket_ioctl.o’ failed
make[1]: *** [/var/lib/dkms/gasket/1.0/build/gasket_ioctl.o] Error 1
make[1]: *** Waiting for unfinished jobs…
In file included from ./arch/arm64/include/asm/dma-mapping.h:30:0,
from ./include/linux/dma-mapping.h:210,
from ./arch/arm64/include/asm/pci.h:7,
from ./include/linux/pci.h:1670,
from /var/lib/dkms/gasket/1.0/build/apex_driver.c:17:
./arch/arm64/include/asm/xen/hypervisor.h:1:10: fatal error: …/…/arm/include/asm/xen/hypervisor.h: No such file or directory
#include <…/…/arm/include/asm/xen/hypervisor.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from ./arch/arm64/include/asm/dma-mapping.h:30:0,
from ./include/linux/dma-mapping.h:210,
from ./arch/arm64/include/asm/pci.h:7,
from ./include/linux/pci.h:1670,
from /var/lib/dkms/gasket/1.0/build/gasket_core.h:16,
from /var/lib/dkms/gasket/1.0/build/gasket_sysfs.h:21,
from /var/lib/dkms/gasket/1.0/build/gasket_sysfs.c:3:
./arch/arm64/include/asm/xen/hypervisor.h:1:10: fatal error: …/…/arm/include/asm/xen/hypervisor.h: No such file or directory
#include <…/…/arm/include/asm/xen/hypervisor.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
scripts/Makefile.build:335: recipe for target ‘/var/lib/dkms/gasket/1.0/build/gasket_interrupt.o’ failed
make[1]: *** [/var/lib/dkms/gasket/1.0/build/gasket_interrupt.o] Error 1
scripts/Makefile.build:335: recipe for target ‘/var/lib/dkms/gasket/1.0/build/gasket_page_table.o’ failed
make[1]: *** [/var/lib/dkms/gasket/1.0/build/gasket_page_table.o] Error 1
scripts/Makefile.build:335: recipe for target ‘/var/lib/dkms/gasket/1.0/build/gasket_core.o’ failed
make[1]: *** [/var/lib/dkms/gasket/1.0/build/gasket_core.o] Error 1
scripts/Makefile.build:335: recipe for target ‘/var/lib/dkms/gasket/1.0/build/apex_driver.o’ failed
make[1]: *** [/var/lib/dkms/gasket/1.0/build/apex_driver.o] Error 1
scripts/Makefile.build:335: recipe for target ‘/var/lib/dkms/gasket/1.0/build/gasket_sysfs.o’ failed
make[1]: *** [/var/lib/dkms/gasket/1.0/build/gasket_sysfs.o] Error 1
Makefile:1644: recipe for target ‘module/var/lib/dkms/gasket/1.0/build’ failed
make: *** [module/var/lib/dkms/gasket/1.0/build] Error 2
make: Leaving directory ‘/usr/src/app/kernel_modules_headers’

Hi,

Please try with v2.58.3+rev6 from https://dashboard.balena-staging.com, it has the gasket and apex modules included in the hostOS. You may need to use dma_bit_mask=32 parameter when loading the module if you encounter HIB error when running inferences.