Other Parts Discussed in Thread: SK-AM62B-P1
Tool/software:
Hi Team,
I am currently working with SK-AM62B-P1 + CC3351-M2, and I encountered an error while verifying STA Mode:
$ ./sta_start.sh
./sta_start.sh: line 19: /usr/sbin/wpa_supplicant: No such file or directory
The issue occurs at Step 13, and below is the complete build and installation process.
Could you please assist me in resolving this issue?
Complete Build and Installation Steps:
Complete Build Process:
-
Install Ubuntu 22.04.5 LTS (Desktop Image)
-
Set up Ubuntu and install required tools
$ sudo apt update $ sudo apt install build-essential bison flex libssl-dev libncurses-dev u-boot-tools $ sudo apt-get install file fdisk dosfstools
-
Download and install
cc33xx_linux_package_1_0_0_8.run
from the TI website using a web browser$ sudo chmod +x cc33xx_linux_package_1_0_0_8.run $ sudo ./cc33xx_linux_package_1_0_0_8.run
-
Download and install the TI SDK using
wget
SDK version:ti-processor-sdk-linux-am62xx-evm-09.02.01.10-Linux-x86-Install
$ sudo wget dr-download.ti.com/.../ti-processor-sdk-linux-am62xx-evm-09.02.01.10-Linux-x86-Install.bin $ sudo chmod +x ti-processor-sdk-linux-am62xx-evm-09.02.01.10-Linux-x86-Install.bin $ sudo ./ti-processor-sdk-linux-am62xx-evm-09.02.01.10-Linux-x86-Install.bin
-
Navigate to the TI Linux kernel source directory and apply the CC33XX patches
$ cd /opt/ti-processor-sdk-linux-am62xx-evm-09.02.01.10/board-support/ti-linux-kernel-6.1.83+gitAUTOINC+c1c2f1971f-ti/ $ patch -p0 < <path_to_cc33xx_folder>/patches/cc33xx_kernel.patch $ patch -p0 < <path_to_cc33xx_folder>/patches/cc33xx_am625-sk_dts.patch $ patch -p0 < <path_to_cc33xx_folder>/patches/cc33xx_ti_arm64_config.patch
-
Add the SDK’s toolchain to the
PATH
environment variable and clean the kernel sources$ export PATH=/opt/ti-processor-sdk-linux-am62xx-evm-09.02.01.10/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/aarch64-oe-linux:$PATH $ make ARCH=arm64 CROSS_COMPILE=aarch64-oe-linux- distclean
-
Build the kernel, modules, and device tree
$ make ARCH=arm64 CROSS_COMPILE=aarch64-oe-linux- defconfig ti_arm64_prune.config $ make ARCH=arm64 CROSS_COMPILE=aarch64-oe-linux- Image modules dtbs -j8
-
Install the kernel, modules, and DTBs
$ sudo cp arch/arm64/boot/Image /media/<user>/root/boot/ $ sudo make ARCH=arm64 modules_install INSTALL_MOD_PATH=/media/<user>/root $ sudo cp arch/arm64/boot/dts/ti/k3-am625-sk.dtb /media/<user>/root/boot/dtb/ti/
-
Install the CC33XX firmware and example scripts by copying the contents under
cc33xx_rootfs
into the SD card’s root directory$ cd <path_to_cc33xx_folder>/cc33xx_rootfs $ sudo cp -r * /media/<user>/root/ $ sync
-
Eject the SD card from the host PC and insert it into the SK-AM62B-P1
-
Login as root
am62xx-evm login: root
-
Test WLAN functionality
$ ifconfig wlan0
Expected output:
wlan0 Link encap:Ethernet HWaddr F8:FB:90:XX:XX:XX UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
-
Navigate to the directory containing the out-of-box scripts as root and start the device in station mode
$ ./sta_start.sh
Error message encountered:
./sta_start.sh: line 19: /usr/sbin/wpa_supplicant: No such file or directory
-
Check the
wpa_supplicant
path$ which wpa_supplicant
/usr/sbin/wpa_supplicant
Best regards,
Sheng