This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SK-AM62A-LP: Issues installing new modules

Part Number: SK-AM62A-LP
Other Parts Discussed in Thread: AM62A7

Tool/software:

Dear Supporters,

I'm trying to configure the sk-am62a-lp to work as a USB HID device. In order to accomplish this, I've followed the instructions in 3.2.1. Users Guide — Processor SDK AM62Ax Documentation 

Using WSL I installed the SDK 9.2. While in ti-processor-sdk-linux-edgeai-am62axx-evm-09_02_00_05/board-support/ti-linux-kernel-6.1.80+gitAUTOINC+2e423244f8-ti/ I did the exports mentioned in the guide. Then, after customizing the configuration with 

make ARCH=arm64 CROSS_COMPILE="$CROSS_COMPILE_64" menuconfig

I ran the following commands:

make ARCH=arm64 CROSS_COMPILE="$CROSS_COMPILE_64" distclean

make ARCH=arm64 CROSS_COMPILE="$CROSS_COMPILE_64" Image

make DTC_FLAGS=-@ ARCH=arm64 CROSS_COMPILE="$CROSS_COMPILE_64" ti/k3-am62a7-sk.dtb

make ARCH=arm64 CROSS_COMPILE="$CROSS_COMPILE_64" modules

I installed the modules in a separate folder with


make ARCH=arm64 CROSS_COMPILE="$CROSS_COMPILE_64" INSTALL_MOD_PATH=./modules_install modules_install

This command installed the modules in the directory /modules_install/lib/modules/6.1.80-dirty

The device tree was copied to the SK-AM62A-LP with the command:

scp arch/arm64/boot/dts/ti/k3-am62a7-sk.dtb root@<device_ip>:/boot/dtb/ti

If I copy the modules with:

scp -r ./modules_install/lib/modules/6.1.80-dirty/ root@<device_ip>:/lib/modules/

When I run the command "modprobe imx219" I get the output

modprobe: ERROR: could not insert 'imx219': Exec format error

If I copy the generated kernel with:

scp arch/arm64/boot/Image root@<device_ip>:/boot/

The board no longer boots correctly. The log in the serial connection is:

SoC: AM62AX SR1.0 HS-FS
Model: Texas Instruments AM62A7 SK
DRAM: 2 GiB (effective 4 GiB)
Core: 58 devices, 28 uclasses, devicetree: separate
MMC: mmc@fa10000: 0, mmc@fa00000: 1
Loading Environment from nowhere... OK
In: serial@2800000
Out: serial@2800000
Err: serial@2800000
Net: eth0: ethernet@8000000port@1
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc1 is current device
SD/MMC found on device 1
Failed to load 'boot.scr'
667 bytes read in 22 ms (29.3 KiB/s)
Loaded env from uEnv.txt
Importing environment from mmc1 ...
## Error: "main_cpsw0_qsgmii_phyinit" not defined
19376640 bytes read in 794 ms (23.3 MiB/s)
58241 bytes read in 27 ms (2.1 MiB/s)
Working FDT set to 88000000
1915 bytes read in 25 ms (74.2 KiB/s)
## Flattened Device Tree blob at 88000000
Booting using the fdt blob at 0x88000000
Working FDT set to 88000000
Loading Device Tree to 000000008feee000, end 000000008fffffff ... OK
Working FDT set to 8feee000

Starting kernel ...

Kind regards,
Joaquin Perez