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.

AM3352: SDK9.3 doesn't work at all

Part Number: AM3352

Tool/software: SDK9.3, SDK9.1 .wic file

#1. Boot with SDK9.3 .wic file,  can't execute commands like: ls, cd,

 _____                    _____           _         _                           
|  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_                         
|     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|                        
|__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|                          
              |___|                    |___|                                    
                                                                                
Arago Project am335x-evm -                                                      
                                                                                
Arago 2023.10 am335x-evm -                                                      
                                                                                
am335x-evm login: root                                                          
root@am335x-evm:~# ls                                                           
-sh: ls: command not found                                                      
root@am335x-evm:~# uname -a                                                     
Linux am335x-evm 6.1.119-ti-gc490f4c0fe51 #1 PREEMPT Wed Dec  4 17:16:52 UTC 20x
root@am335x-evm:~# ls                                                           
-sh: ls: command not found                                                      
root@am335x-evm:~# echo $PATH                                                   
/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin                    
root@am335x-evm:~# cd ..                                                        
-sh: cd: ..: Not a directory                                                    
root@am335x-evm:~# 

SDK9.1

 _____                    _____           _         _                           
|  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_                         
|     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|                        
|__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|                          
              |___|                    |___|                                    
                                                                                
Arago Project am335x-evm -                                                      
                                                                                
Arago 2023.04 am335x-evm -                                                      
                                                                                
am335x-evm login: root                                                          
root@am335x-evm:~# ls                                                           
root@am335x-evm:~# cd ..                                                        
root@am335x-evm:/home# ls                                                       
root  weston                                                                    
root@am335x-evm:/home# echo $PATH                                               
/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin                    
root@am335x-evm:/home#                                                          
root@am335x-evm:/home# uname -a                                                 
Linux am335x-evm 6.1.46-g1d4b5da681 #1 PREEMPT Thu Oct 19 10:19:08 UTC 2023 armx
root@am335x-evm:/home#

#2. Want to enter sleep mode, neither SDK9.1 nor SDK9.3 works. I am curiously what resolved in SDK9.3?

in SDK9.1:

root@am335x-evm:/sys/power# echo mem > state                                    
[  622.009385] PM: suspend entry (s2idle)                                       
[  622.053756] Filesystems sync: 0.040 seconds                                  
[  622.060478] Freezing user space processes                                    
[  622.066990] Freezing user space processes completed (elapsed 0.002 seconds)  
[  622.074543] OOM killer disabled.                                             
[  622.077801] Freezing remaining freezable tasks                               
[  622.083719] Freezing remaining freezable tasks completed (elapsed 0.001 seco)
[  622.091271] PM not initialized for pm33xx, wkup_m3_ipc, or am335x-pm-firmwarf
[  622.098997] OOM killer enabled.                                              
[  622.102302] Restarting tasks ... done.                                       
[  622.111623] random: crng reseeded on system resumption                       
[  622.116842] PM: suspend exit                                                 
-sh: echo: write error: Invalid argument                                        
root@am335x-evm:/sys/power#                                                 
root@am335x-evm:/sys/power# echo standby >state                                 
-sh: echo: write error: Invalid argument                                        
root@am335x-evm:/sys/power# 

#3. In SK9.3 user guide, removed Power Management section. Below post was working on SDK9.3, I checked SDK9.3 .config, CONFIG_WKUP_M3_RPROC=m  and CONFIG_WKUP_M3_IPC=m is set in default. then applied 2 patches from this thread. 

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1433963/am3356-cannot-enter-sleep-mode-with-kernel-6-1-49/5621827

make Linux get error as below:

  • Hello Tony,

    for #1, just to confirm, this is with the "default-image" from https://www.ti.com/tool/download/PROCESSOR-SDK-LINUX-AM335X ?

    Those commands work just fine on my board, but it looks like I'm running an early access version of SDK 9.3. I'll download that file and try it out on my side tomorrow.

    root@am335x-evm:/home# uname -a
    Linux am335x-evm 6.1.112-ti-g4ef41ca7ad95 #1 PREEMPT Wed Nov 13 13:49:51 UTC 2024 armv7l armv7l armv7l GNU/Linu
    x
    root@am335x-evm:/home# ls
    root  weston
    root@am335x-evm:/home# cd ..
    root@am335x-evm:/#

    after we get through #1, I'll reassign this thread for another team member to discuss #2 & 3.

    Regards,

    Nick

  • Hello Tony,

    Thanks for the ping. I am unable to replicate your observations.

    I downloaded file 

    tisdk-default-image-am335x-evm-09.03.05.02.wic.xz  — 496838 K

    from

    https://www.ti.com/tool/download/PROCESSOR-SDK-LINUX-AM335X

    And ran the image on the AM335x BeagleBone Black:

    am335x-evm login: root
    root@am335x-evm:~# ls
    root@am335x-evm:~# uname -a
    Linux am335x-evm 6.1.119-ti-gc490f4c0fe51 #1 PREEMPT Wed Dec  4 17:16:52 UTC 2024 armv7l armv7l armv7l GNU/Linux
    root@am335x-evm:~# cd ../..
    root@am335x-evm:/# ls
    bin  boot  dev  etc  home  lib  lost+found  media  mnt  opt  proc  run  sbin  srv  sys  tmp  usr  var  www
    root@am335x-evm:/#
    

    Regards,

    Nick

  • I recreated with a 32GB SD card, it is OK now.

    Originally I create with a 8GB SD card with balenaEtcher, but failed.

    Then create with another 8GB SD card, succussed and can boot, but behave abnormal as the post.

    Now create with a 32GB SD card, works.  

  • Hello Tony,

    Glad to hear that things are working now!

    That is strange, since it looks like the filesystem only takes up a bit more than 4GB on the SD card (I am using a 16GB SD card). I might have seen something like this before but I am not sure if we ever root caused what was going on... I will ask around. If I get any updates, I will update the e2e thread.

    Regards,

    Nick