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.

CC3351: Issue with SK-AM62B-P1 + CC3351-M2 STA Mode

Part Number: CC3351
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:

  1. Install Ubuntu 22.04.5 LTS (Desktop Image)

  2. 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
    
  3. 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
    
  4. 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
    
  5. 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
    
  6. 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
    
  7. 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
    
  8. 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/
    
  9. 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
    
  10. Eject the SD card from the host PC and insert it into the SK-AM62B-P1

  11. Login as root

    am62xx-evm login: root
    
  12. 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)
    
  13. 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
    
  14. Check the wpa_supplicant path

    $ which wpa_supplicant
    
    /usr/sbin/wpa_supplicant

Best regards,
Sheng

  • Hello Sheng,

    We are looking into it and we will confirm if a change to the steps is needed or if in fact we missed something in the SDK.

    Regards,

    AB

  • Hi AB,

    I reviewed my steps and relevant files today, and I compared the files on the SK-AM62B-P1 SD card with those in the TI SDK (including the cc33xx package).
    I noticed that the wpa_supplicant on the SD card is an ARM 32-bit executable.

    Could this be the cause of the issue? If so, how should I modify it?

    Log:

    $ file /media/sheng/root/usr/sbin/wpa_supplicant

    Output message:
    ELF 32-bit LSB executable, ARM, EABI version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 3.2.0, with debug_info, not stripped

    Thank you for your support!

    Best regards,
    Sheng

  • Hi Sheng, 

    This is actually an error in our steps. We have already corrected this in the CC33xx SDK documentation (the docs that come with the installer), we just haven't yet matched the same docs to those on TIREX online.

    To correct this, I would suggest flashing the AM62x again with the tisdk-default-image.wic from here: https://www.ti.com/tool/download/PROCESSOR-SDK-LINUX-AM62X/09.02.01.10 

    Then plug the SD card back into your Ubuntu machine and do step 8 in your steps as you described above. 

    Only step 9 has changed slightly to be like this:

    1. 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 lib/ /media/<user>/root/
      $ sudo cp -r usr/share/cc33xx/ /media/<user>/root/usr/share/
      $ sync


  • Hi Sabeeh Khan,

    Thank you for your support,
    According to your suggestion, I can connect to the AP router.

    Thanks,

    Sheng