I am no longer able to have any wifi/network connections on our Jetson Orin Nano Developer Kit after various rebuild attempts of the device tree and reflashing the Jetson from a separate system. This is likely due to something I messed up in the build process at some point (it did work originally, but has ceased working in subsequent build attempts). Notably, I get the following error during the “Update initramfs” part of the Kernel Customization process:
Error: /lib/modules/5.15.136-tegra/updates/drivers/net/ethernet/nvidia/nvethernet/nvethernet.ko not found
When I search this error, I see this forum post. However, when I attempt to install the suggested packages, I get “Unable to locate” errors for all of them.
I have tried rebuilding by re-following the steps of the Kernel Customization process in the Adaptation guide with no difference in results. I would like to completely restart by wiping anything that has to do with kernel customization or flashing the Jetson and starting over. What would I need to delete and how could I get my build environment clean so that I can start Kernel Customization from the top?
At the make modules step, I get “You are building kernel with non-retpoline compiler” error. When I run sudo make modules instead, I get the following error output after about 20 minutes of it working properly:
In file included from ./include/vdso/const.h:5,
from ./include/linux/const.h:4,
from ./include/linux/align.h:5,
from ./include/linux/kernel.h:6,
from drivers/iio/industrialio-core.c:11:
drivers/iio/industrialio-core.c: In function ‘iio_device_alloc’:
./include/linux/iio/iio.h:670:26: error: ‘ARCH_DMA_MINALIGN’ undeclared (first use in this function); did you mean ‘ARCH_SLAB_MINALIGN’?
670 | #define IIO_DMA_MINALIGN ARCH_DMA_MINALIGN
| ^~~~~~~~~~~~~~~~~
./include/uapi/linux/const.h:32:50: note: in definition of macro ‘__ALIGN_KERNEL_MASK’
32 | #define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask))
| ^~~~
./include/linux/align.h:8:33: note: in expansion of macro ‘__ALIGN_KERNEL’
8 | #define ALIGN(x, a) __ALIGN_KERNEL((x), (a))
| ^~~~~~~~~~~~~~
drivers/iio/industrialio-core.c:1668:30: note: in expansion of macro ‘ALIGN’
1668 | alloc_size = ALIGN(alloc_size, IIO_DMA_MINALIGN);
| ^~~~~
drivers/iio/industrialio-core.c:1668:48: note: in expansion of macro ‘IIO_DMA_MINALIGN’
1668 | alloc_size = ALIGN(alloc_size, IIO_DMA_MINALIGN);
| ^~~~~~~~~~~~~~~~
./include/linux/iio/iio.h:670:26: note: each undeclared identifier is reported only once for each function it appears in
670 | #define IIO_DMA_MINALIGN ARCH_DMA_MINALIGN
| ^~~~~~~~~~~~~~~~~
./include/uapi/linux/const.h:32:50: note: in definition of macro ‘__ALIGN_KERNEL_MASK’
32 | #define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask))
| ^~~~
./include/linux/align.h:8:33: note: in expansion of macro ‘__ALIGN_KERNEL’
8 | #define ALIGN(x, a) __ALIGN_KERNEL((x), (a))
| ^~~~~~~~~~~~~~
drivers/iio/industrialio-core.c:1668:30: note: in expansion of macro ‘ALIGN’
1668 | alloc_size = ALIGN(alloc_size, IIO_DMA_MINALIGN);
| ^~~~~
drivers/iio/industrialio-core.c:1668:48: note: in expansion of macro ‘IIO_DMA_MINALIGN’
1668 | alloc_size = ALIGN(alloc_size, IIO_DMA_MINALIGN);
| ^~~~~~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:295: drivers/iio/industrialio-core.o] Error 1
make[1]: *** [scripts/Makefile.build:559: drivers/iio] Error 2
make: *** [Makefile:1912: drivers] Error 2
This is the first time I’ve seen this issue amongst my build attempts.