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.

Linux/PROCESSOR-SDK-AM335X: Running setup.sh fails

Part Number: PROCESSOR-SDK-AM335X


Tool/software: Linux

Hi, 

I am using am335x starter kit. I install the sdk on Ubuntu16, and run setup.sh. I set images to be loaded from tftp and nfs, set minicom port as /dev/ttyS0. At the last step, it asked whether to run setup script right now and I chose yes.  A minicom window shows up and monitoring e.g. ttyUSB1. Then, within 300 seconds, I power off/on the device. But the problem is, the SK is installed on ttyUSB2. I tried many times. After reboot, the SK is always installed on a different ttyUSB* than what the minicom is monitoring. Could anybody help to point out how should I fix this?

Also, when I gave up "running minicom setup right away", I finished the setup.sh, and open a minicom by myself. I loaded the spl file from board_support/prebuilt_images. But I don't know where is the u-boot file I should load to SK. And I didn't find any uEnv.txt on my ubuntu16.  Should I built the u-boot by myself? If so, how can I build it? I read the User's Boot Guide, but the folders 

$ cd ./AM335x-LINUX-PSP-MM.mm.pp.bb/src/u-boot/u-boot-MM.mm.pp.bb

is not in the sdk installation location. Need I install something else in order to build the u-boot file? 

Can someone help me? Thank you very much.

  • Hi,

    Which SDK version is this?
  • Hi,

    It could be unclean restarting of USB device that could cause stale entry in /dev/ttyUSB0 and hence make /dev/ttyUSBx entry increase on every boot. Would suggest you to unplug the USB cable and then do power off/on the Starterkit device side.

    Please follow : processors.wiki.ti.com/.../Processor_SDK_Linux_Getting_Started_Guide
    make u-boot-spl -> builds u-boot and u-boot-spl
    u-boot is present in the path : cd ./board-support/u-boot-MM.mm.pp.bb . No need to enter and build separately. You can build as mentioned above from top makefile path. uboot is present in the pre-built images path as u-boot-am335x-evm.img
  • I found another problem with tftpboot. Although in setup.sh, I choose /tftpboot as the tftp folder, but while running
    ps axw | grep tftp
    I got :
    1188 ? Ss 0:00 /usr/sbin/in.tftpd --listen --user tftp --address :69 --secure /var/lib/tftpboot

    Then content of /etc/xinetd.d/tftp is:
    service tftp
    {
    protocol =udp
    port = 69
    socket_type = dgram
    wait = yes
    user = nobody
    server = /usr/sbin/in.tftpd
    server_args = /tftpboot
    disable = no
    }

    While getting file through tftp, it's accessing files under /var/lib/tftpboot, instead of /tftpboot.
    Do you happen to know what cause this mismatching? Thank you.
  • Hi,

    Did you try
    # sudo service xinetd restart
  • Yes, I did. It's the same, pointing to /var/lib/tftpboot.
  • Strange. Does the pid 1188 change in ps ?
  • No, the pid is still 1188.
  • ok, it is not getting effect. Thats why.
    which version of Debian ?
    1. Can you restart by the old way
    # sudo /etc/init.d/xinetd restart
    2. Force kill the pid and check
    # sudo kill -9 1188
    # sudo /etc/init.d/xinetd start
  • Hi,
    1. I can restart xinetd, and pid changes every time restarted.
    2. After
    # sudo kill -9 1188
    # sudo /etc/init.d/xinetd start
    tftp doesn't run. ps finds no tftp.
    My os is ubuntu 1604 64bits. I also tried
    sudo service xinetd restart
    and
    sudo /etc/init.d/xinetd restart,
    xinetd gets new pid, but tftp is still missing.

    I restart the PC. Tftp folder is still /var/lib/tftpboot.
    tftp is running after reboot, restart of xinetd doesn't affect tftd.
  • Thats strange. Anyway maybe some bug in present version
  • Hi,
    I find out how to set the tftp boot folder while I was searching for pxelinux.cfg.
    I need to edit the /etc/default/tftpd-hpa file to change the boot directory:
    (www.howtoforge.com/setting-up-a-pxe-install-server-on-ubuntu-9.10-p3)
    sudo gedit /etc/default/tftpd-hpa

    Change the file to look like this:
    RUN_DAEMON="yes"
    OPTIONS="-l -s /tftpboot"
    Restart tftpd server:
    sudo /etc/init.d/tftpd-hpa restart

    Another problem pop ups. Why the SK trying to download many pxelinux.cfg/xxxx files from tftpboot. The above link introduces how to install the pxelinux.cfg, and I am trying it,  but I didn't get the reason for why SK is looking for them. 

    I am a freshman for Linux, and I tried a week for just trying to install u-boot and kernel to am335x-SK without SD, and seems I am still far away from the end. 

    Thank you for any information and suggestion. 

    The following is the procedure of u-boot, and printenv.  I didn't get U-BOOT#, instead, '==>' is what shown up. Is it already in U-BOOT# mode? 

    U-Boot SPL 2016.05-g4db46a6bbd (Mar 29 2017 - 17:44:45)                        
    Trying to boot from UART                                                       
    CLoaded 644116 bytes                                                           
                                                                                   
                                                                                   
    U-Boot 2016.05-00319-gcf14e63-dirty (May 23 2017 - 10:40:38 -0400)             
                                                                                   
    CPU  : AM335X-GP rev 1.0                                                       
    Model: TI AM335x EVM-SK                                                        
           Watchdog enabled                                                        
    DRAM:  256 MiB
    NAND:  0 MiB                                                                   
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
    Card did not respond to voltage select!                                         
    ** Bad device mmc 0 **                                                          
    Using default environment                                                       
                                                                                    
    <ethaddr> not set. Validating first E-fuse MAC                                  
    Net:   eth0: ethernet@4a100000                                                  
    Warning: usb_ether MAC addresses don't match:                                   
    Address in SROM is         de:ad:be:ef:00:01                                    
    Address in environment is  bc:6a:29:53:85:7b                                    
    , eth1: usb_ether                                                               
    Press SPACE to abort autoboot in 2 seconds                                      
    Card did not respond to voltage select!                                         
    Card did not respond to voltage select!                                         
    Card did not respond to voltage select!                                         
    Card did not respond to voltage select!                                         
    Card did not respond to voltage select!                                         
    Card did not respond to voltage select!                                         
    Card did not respond to voltage select!                                         
    Card did not respond to voltage select!                                         
    ## Error: "bootcmd_nand0" not defined                                           
    starting USB...                                                                 
    USB0:   Port not available.                                                     
    link up on port 0, speed 100, full duplex                                       
    BOOTP broadcast 1                                                               
    BOOTP broadcast 2                                                               
    DHCP client bound to address 10.0.0.163 (497 ms)                                
    Using ethernet@4a100000 device                                                  
    TFTP from server 10.0.0.55; our IP address is 10.0.0.163                        
    Filename 'zImage'.                                                              
    Load address: 0x82000000                                                        
    Loading: *                                                                      
    TFTP error: 'File not found' (1)                                                
    Not retrying...                                                                 
    missing environment variable: pxeuuid                                           
    Retrieving file: pxelinux.cfg/01-bc-6a-29-53-85-7a                              
    link up on port 0, speed 100, full duplex                                       
    Using ethernet@4a100000 device                                                  
    TFTP from server 10.0.0.55; our IP address is 10.0.0.163                        
    Filename 'pxelinux.cfg/01-bc-6a-29-53-85-7a'.                                   
    Load address: 0x80100000                                                        
    Loading: *                                                                      
    TFTP error: 'File not found' (1)                                                
    Not retrying...                                                                 
    Retrieving file: pxelinux.cfg/0A0000A3                                          
    link up on port 0, speed 100, full duplex                                       
    Using ethernet@4a100000 device                                                  
    TFTP from server 10.0.0.55; our IP address is 10.0.0.163                        
    Filename 'pxelinux.cfg/0A0000A3'.                                               
    Load address: 0x80100000                                                        
    Loading: *                                                                      
    TFTP error: 'File not found' (1)                                                
    Not retrying...                                                                 
    Retrieving file: pxelinux.cfg/0A0000A                                           
    link up on port 0, speed 100, full duplex                                       
    Using ethernet@4a100000 device                                                  
    TFTP from server 10.0.0.55; our IP address is 10.0.0.163                        
    Filename 'pxelinux.cfg/0A0000A'.                                                
    Load address: 0x80100000                                                        
    Loading: *                                                                      
    TFTP error: 'File not found' (1)                                                
    Not retrying...                                                                 
    Retrieving file: pxelinux.cfg/0A0000                                            
    link up on port 0, speed 100, full duplex                                       
    Using ethernet@4a100000 device                                                  
    TFTP from server 10.0.0.55; our IP address is 10.0.0.163                        
    Filename 'pxelinux.cfg/0A0000'.                                                 
    Load address: 0x80100000                                                        
    Loading: *                                                                      
    TFTP error: 'File not found' (1)                                                
    Not retrying...                                                                 
    Retrieving file: pxelinux.cfg/0A000                                             
    link up on port 0, speed 100, full duplex                                       
    Using ethernet@4a100000 device                                                  
    TFTP from server 10.0.0.55; our IP address is 10.0.0.163                        
    Filename 'pxelinux.cfg/0A000'.                                                  
    Load address: 0x80100000                                                        
    Loading: *                                                                      
    TFTP error: 'File not found' (1)                                                
    Not retrying...                                                                 
    Retrieving file: pxelinux.cfg/0A00                                              
    link up on port 0, speed 100, full duplex                                       
    Using ethernet@4a100000 device                                                  
    TFTP from server 10.0.0.55; our IP address is 10.0.0.163                        
    Filename 'pxelinux.cfg/0A00'.                                                   
    Load address: 0x80100000                                                        
    Loading: *                                                                      
    TFTP error: 'File not found' (1)                                                
    Not retrying...                                                                 
    Retrieving file: pxelinux.cfg/0A0                                               
    link up on port 0, speed 100, full duplex                                       
    Using ethernet@4a100000 device                                                  
    TFTP from server 10.0.0.55; our IP address is 10.0.0.163                        
    Filename 'pxelinux.cfg/0A0'.                                                    
    Load address: 0x80100000                                                        
    Loading: *                                                                      
    TFTP error: 'File not found' (1)                                                
    Not retrying...                                                                 
    Retrieving file: pxelinux.cfg/0A                                                
    link up on port 0, speed 100, full duplex                                       
    Using ethernet@4a100000 device                                                  
    TFTP from server 10.0.0.55; our IP address is 10.0.0.163                        
    Filename 'pxelinux.cfg/0A'.                                                     
    Load address: 0x80100000                                                        
    Loading: *                                                                      
    TFTP error: 'File not found' (1)                                                
    Not retrying...                                                                 
    Retrieving file: pxelinux.cfg/0                                                 
    link up on port 0, speed 100, full duplex                                       
    Using ethernet@4a100000 device                                                  
    TFTP from server 10.0.0.55; our IP address is 10.0.0.163                        
    Filename 'pxelinux.cfg/0'.                                                      
    Load address: 0x80100000                                                        
    Loading: *                                                                      
    TFTP error: 'File not found' (1)                                                
    Not retrying...                                                                 
    Retrieving file: pxelinux.cfg/default-arm-am33xx                                
    link up on port 0, speed 100, full duplex                                       
    Using ethernet@4a100000 device                                                  
    TFTP from server 10.0.0.55; our IP address is 10.0.0.163                        
    Filename 'pxelinux.cfg/default-arm-am33xx'.                                     
    Load address: 0x80100000                                                        
    Loading: *                                                                      
    TFTP error: 'File not found' (1)                                                
    Not retrying...                                                                 
    Retrieving file: pxelinux.cfg/default-arm                                       
    link up on port 0, speed 100, full duplex                                       
    Using ethernet@4a100000 device                                                  
    TFTP from server 10.0.0.55; our IP address is 10.0.0.163                        
    Filename 'pxelinux.cfg/default-arm'.                                            
    Load address: 0x80100000                                                        
    Loading: *                                                                      
    TFTP error: 'File not found' (1)                                                
    Not retrying...                                                                 
    Retrieving file: pxelinux.cfg/default                                           
    link up on port 0, speed 100, full duplex                                       
    Using ethernet@4a100000 device                                                  
    TFTP from server 10.0.0.55; our IP address is 10.0.0.163                        
    Filename 'pxelinux.cfg/default'.                                                
    Load address: 0x80100000                                                        
    Loading: *                                                                      
    TFTP error: 'File not found' (1)                                                
    Not retrying...                                                                 
    Config file not found                                                           
    starting USB...                                                                 
    USB0:   Port not available.                                                     
    link up on port 0, speed 100, full duplex                                       
    BOOTP broadcast 1                                                               
    BOOTP broadcast 2                                                               
    BOOTP broadcast 3                                                               
    DHCP client bound to address 10.0.0.122 (809 ms)                                
    Using ethernet@4a100000 device                                                  
    TFTP from server 10.0.0.55; our IP address is 10.0.0.122                        
    Filename 'boot.scr.uimg'.                                                       
    Load address: 0x80000000                                                        
    Loading: *                                                                      
    TFTP error: 'File not found' (1)                                                
    Not retrying...                                                                 
    => setenv serverip 10.0.0.132                                                   
    => setenv autoload = no                                                         
    => dhcp                                                                         
    link up on port 0, speed 100, full duplex                                       
    BOOTP broadcast 1                                                               
    BOOTP broadcast 2                                                               
    DHCP client bound to address 10.0.0.102 (659 ms)                                
    => tftp 0x82000000 10.0.0.132:zImage                                            
    link up on port 0, speed 100, full duplex                                       
    Using ethernet@4a100000 device                                                  
    TFTP from server 10.0.0.132; our IP address is 10.0.0.102                       
    Filename 'zImage'.                                                              
    Load address: 0x82000000                                                        
    Loading: #################################################################      
             #################################################################      
             #################################################################      
             ##########################################                             
             1.7 MiB/s                                                              
    done                                                                            
    Bytes transferred = 3477576 (351048 hex)                                        
    => boot                                                                         
    Card did not respond to voltage select!                                         
    Card did not respond to voltage select!                                         
    Card did not respond to voltage select!                                         
    Card did not respond to voltage select!                                         
    Card did not respond to voltage select!                                         
    Card did not respond to voltage select!                                         
    Card did not respond to voltage select!                                         
    Card did not respond to voltage select!                                         
    ## Error: "bootcmd_nand0" not defined                                           
    starting USB...                                                                 
    USB0:   Port not available.                                                     
    link up on port 0, speed 100, full duplex                                       
    BOOTP broadcast 1                                                               
    BOOTP broadcast 2                                                               
    DHCP client bound to address 10.0.0.195 (406 ms)                                
    missing environment variable: pxeuuid                                           
    Retrieving file: pxelinux.cfg/01-bc-6a-29-53-85-7a                              
    link up on port 0, speed 100, full duplex                                       
    Using ethernet@4a100000 device                                                  
    TFTP from server 10.0.0.55; our IP address is 10.0.0.195                        
    Filename 'pxelinux.cfg/01-bc-6a-29-53-85-7a'.                                   
    Load address: 0x80100000                                                        
    Loading: *                                                                      
    TFTP error: 'File not found' (1)                                                
    Not retrying...                                                                 
    Retrieving file: pxelinux.cfg/0A0000C3                                          
    link up on port 0, speed 100, full duplex                                       
    Using ethernet@4a100000 device                                                  
    TFTP from server 10.0.0.55; our IP address is 10.0.0.195                        
    Filename 'pxelinux.cfg/0A0000C3'.                                               
    Load address: 0x80100000                                                        
    Loading: *                                                                      
    TFTP error: 'File not found' (1)                                                
    Not retrying...                                                                 
    Retrieving file: pxelinux.cfg/0A0000C                                           
    link up on port 0, speed 100, full duplex                                       
    Using ethernet@4a100000 device                                                  
    TFTP from server 10.0.0.55; our IP address is 10.0.0.195                        
    Filename 'pxelinux.cfg/0A0000C'.                                                
    Load address: 0x80100000                                                        
    Loading: *                                                                      
    TFTP error: 'File not found' (1)                                                
    Not retrying...                                                                 
    Retrieving file: pxelinux.cfg/0A0000                                            
    link up on port 0, speed 100, full duplex                                       
    Using ethernet@4a100000 device                                                  
    TFTP from server 10.0.0.55; our IP address is 10.0.0.195                        
    Filename 'pxelinux.cfg/0A0000'.                                                 
    Load address: 0x80100000                                                        
    Loading: *                                                                      
    TFTP error: 'File not found' (1)                                                
    Not retrying...                                                                 
    Retrieving file: pxelinux.cfg/0A000                                             
    link up on port 0, speed 100, full duplex                                       
    Using ethernet@4a100000 device                                                  
    TFTP from server 10.0.0.55; our IP address is 10.0.0.195                        
    Filename 'pxelinux.cfg/0A000'.                                                  
    Load address: 0x80100000                                                        
    Loading: *                                                                      
    TFTP error: 'File not found' (1)                                                
    Not retrying...                                                                 
    Retrieving file: pxelinux.cfg/0A00                                              
    link up on port 0, speed 100, full duplex                                       
    Using ethernet@4a100000 device                                                  
    TFTP from server 10.0.0.55; our IP address is 10.0.0.195                        
    Filename 'pxelinux.cfg/0A00'.                                                   
    Load address: 0x80100000                                                        
    Loading: *                                                                      
    TFTP error: 'File not found' (1)                                                
    Not retrying...                                                                 
    Retrieving file: pxelinux.cfg/0A0                                               
    link up on port 0, speed 100, full duplex                                       
    Using ethernet@4a100000 device                                                  
    TFTP from server 10.0.0.55; our IP address is 10.0.0.195                        
    Filename 'pxelinux.cfg/0A0'.                                                    
    Load address: 0x80100000                                                        
    Loading: *                                                                      
    TFTP error: 'File not found' (1)                                                
    Not retrying...                                                                 
    Retrieving file: pxelinux.cfg/0A                                                
    link up on port 0, speed 100, full duplex                                       
    Using ethernet@4a100000 device                                                  
    TFTP from server 10.0.0.55; our IP address is 10.0.0.195                        
    Filename 'pxelinux.cfg/0A'.                                                     
    Load address: 0x80100000                                                        
    Loading: *                                                                      
    TFTP error: 'File not found' (1)                                                
    Not retrying...                                                                 
    Retrieving file: pxelinux.cfg/0                                                 
    link up on port 0, speed 100, full duplex                                       
    Using ethernet@4a100000 device                                                  
    TFTP from server 10.0.0.55; our IP address is 10.0.0.195                        
    Filename 'pxelinux.cfg/0'.                                                      
    Load address: 0x80100000                                                        
    Loading: *                                                                      
    TFTP error: 'File not found' (1)                                                
    Not retrying...                                                                 
    Retrieving file: pxelinux.cfg/default-arm-am33xx                                
    link up on port 0, speed 100, full duplex                                       
    Using ethernet@4a100000 device                                                  
    TFTP from server 10.0.0.55; our IP address is 10.0.0.195                        
    Filename 'pxelinux.cfg/default-arm-am33xx'.                                     
    Load address: 0x80100000                                                        
    Loading: *                                                                      
    TFTP error: 'File not found' (1)                                                
    Not retrying...                                                                 
    Retrieving file: pxelinux.cfg/default-arm                                       
    link up on port 0, speed 100, full duplex                                       
    Using ethernet@4a100000 device                                                  
    TFTP from server 10.0.0.55; our IP address is 10.0.0.195                        
    Filename 'pxelinux.cfg/default-arm'.                                            
    Load address: 0x80100000                                                        
    Loading: *                                                                      
    TFTP error: 'File not found' (1)                                                
    Not retrying...                                                                 
    Retrieving file: pxelinux.cfg/default                                           
    link up on port 0, speed 100, full duplex                                       
    Using ethernet@4a100000 device                                                  
    TFTP from server 10.0.0.55; our IP address is 10.0.0.195                        
    Filename 'pxelinux.cfg/default'.                                                
    Load address: 0x80100000                                                        
    Loading: *                                                                      
    TFTP error: 'File not found' (1)                                                
    Not retrying...                                                                 
    Config file not found                                                           
    starting USB...                                                                 
    USB0:   Port not available.                                                     
    link up on port 0, speed 100, full duplex                                       
    BOOTP broadcast 1                                                               
    BOOTP broadcast 2                                                               
    BOOTP broadcast 3                                                               
    DHCP client bound to address 10.0.0.197 (878 ms)                                
    ## Executing script at 80000000                                                 
    Wrong image format for "source" command                                         
    => printenv                                                                     
    arch=arm                                                                        
    args_fit=setenv bootargs console=${console}                                     
    args_mmc=run finduuid;setenv bootargs console=${console} ${optargs} root=PARTUUI
    D=${uuid} rw rootfstype=${mmcrootfstype}                                        
    autoload== no                                                                   
    baudrate=115200                                                                 
    board=am335x                                                                    
    board_name=A335X_SK                                                             
    board_rev=1.2B                                                                  
    board_serial=53124P197458                                                       
    boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefi
    x}${script}; source ${scriptaddr}                                               
    boot_efi_binary=load ${devtype} ${devnum}:${distro_bootpart} ${kernel_addr_r} ef
    i/boot/bootarm.efi; if fdt addr ${fdt_addr_r}; then bootefi ${kernel_addr_r} ${f
    dt_addr_r};elsebootefi ${kernel_addr_r} ${fdtcontroladdr};fi                    
    boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} 
    ${prefix}extlinux/extlinux.conf                                                 
    boot_fdt=try                                                                    
    boot_fit=0                                                                      
    boot_net_usb_start=usb start                                                    
    boot_prefixes=/ /boot/                                                          
    boot_script_dhcp=boot.scr.uimg                                                  
    boot_scripts=boot.scr.uimg boot.scr                                             
    boot_targets=mmc0 legacy_mmc0 mmc1 legacy_mmc1 nand0 pxe dhcp                   
    bootcmd=if test ${boot_fit} -eq 1; then run update_to_fit;fi;run findfdt; run in
    it_console; run envboot; run distro_bootcmd                                     
    bootcmd_dhcp=run boot_net_usb_start; if dhcp ${scriptaddr} ${boot_script_dhcp}; 
    then source ${scriptaddr}; fi                                                   
    bootcmd_legacy_mmc0=setenv mmcdev 0; setenv bootpart 0:2 ; run mmcboot          
    bootcmd_legacy_mmc1=setenv mmcdev 1; setenv bootpart 1:2 ; run mmcboot          
    bootcmd_mmc0=setenv devnum 0; run mmc_boot                                      
    bootcmd_mmc1=setenv devnum 1; run mmc_boot                                      
    bootcmd_nand=run nandboot                                                       
    bootcmd_pxe=run boot_net_usb_start; dhcp; if pxe get; then pxe boot; fi         
    bootcount=1                                                                     
    bootdelay=2                                                                     
    bootdir=/boot                                                                   
    bootenvfile=uEnv.txt                                                            
    bootfile=boot.scr.uimg                                                          
    bootm_size=0x10000000                                                           
    bootpart=1:2                                                                    
    bootscript=echo Running bootscript from mmc${mmcdev} ...; source ${loadaddr}    
    console=ttyO0,115200n8                                                          
    cpu=armv7                                                                       
    devnum=1                                                                        
    devtype=mmc                                                                     
    dfu_alt_info_emmc=rawemmc raw 0 3751936                                         
    dfu_alt_info_mmc=boot part 0 1;rootfs part 0 2;MLO fat 0 1;MLO.raw raw 0x100 0x1
    00;u-boot.img.raw raw 0x300 0x400;spl-os-args.raw raw 0x80 0x80;spl-os-image.raw
     raw 0x900 0x2000;spl-os-args fat 0 1;spl-os-image fat 0 1;u-boot.img fat 0 1;uE
    nv.txt fat 0 1                                                                  
    dfu_alt_info_nand=SPL part 0 1;SPL.backup1 part 0 2;SPL.backup2 part 0 3;SPL.bac
    kup3 part 0 4;u-boot part 0 5;u-boot-spl-os part 0 6;kernel part 0 8;rootfs part
     0 9                                                                            
    dfu_alt_info_ram=kernel ram 0x80200000 0xD80000;fdt ram 0x80F80000 0x80000;ramdi
    sk ram 0x81000000 0x4000000                                                     
    distro_bootcmd=for target in ${boot_targets}; do run bootcmd_${target}; done    
    dnsip=10.0.0.55                                                                 
    efi_dtb_prefixes=/ /dtb/ /dtb/current/                                          
    envboot=mmc dev ${mmcdev}; if mmc rescan; then echo SD/MMC found on device ${mmc
    dev};if run loadbootscript; then run bootscript;else if run loadbootenv; then ec
    ho Loaded env from ${bootenvfile};run importbootenv;fi;if test -n $uenvcmd; then
     echo Running uenvcmd ...;run uenvcmd;fi;fi;fi;                                 
    eth1addr=bc:6a:29:53:85:7b                                                      
    ethact=ethernet@4a100000                                                        
    ethaddr=bc:6a:29:53:85:7a                                                       
    fdt_addr_r=0x88000000                                                           
    fdtaddr=0x88000000                                                              
    fdtcontroladdr=8ef282f8                                                         
    fdtfile=am335x-evmsk.dtb                                                        
    fileaddr=82000000                                                               
    filesize=351048                                                                 
    findfdt=if test $board_name = A335BONE; then setenv fdtfile am335x-bone.dtb; fi;
     if test $board_name = A335BNLT; then setenv fdtfile am335x-boneblack.dtb; fi; i
    f test $board_name = BBG1; then setenv fdtfile am335x-bonegreen.dtb; fi; if test
     $board_name = A33515BB; then setenv fdtfile am335x-evm.dtb; fi; if test $board_
    name = A335X_SK; then setenv fdtfile am335x-evmsk.dtb; fi; if test $board_name =
     A335_ICE; then setenv fdtfile am335x-icev2.dtb; fi; if test $fdtfile = undefine
    d; then echo WARNING: Could not determine device tree to use; fi;               
    finduuid=part uuid mmc ${bootpart} uuid                                         
    fit_bootfile=fitImage.itb                                                       
    fit_loadaddr=0x88000000                                                         
    gatewayip=10.0.0.254                                                            
    importbootenv=echo Importing environment from mmc${mmcdev} ...; env import -t ${
    loadaddr} ${filesize}                                                           
    init_console=if test $board_name = A335_ICE; then setenv console ttyO3,115200n8;
    else setenv console ttyO0,115200n8;fi;                                          
    ipaddr=10.0.0.197                                                               
    kernel_addr_r=0x82000000                                                        
    load_efi_dtb=load ${devtype} ${devnum}:${distro_bootpart} ${fdt_addr_r} ${prefix
    }${efi_fdtfile}                                                                 
    loadaddr=0x82000000                                                             
    loadbootenv=fatload mmc ${mmcdev} ${loadaddr} ${bootenvfile}                    
    loadbootscript=load mmc ${mmcdev} ${loadaddr} boot.scr                          
    loadfdt=load ${devtype} ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile}            
    loadfit=run args_fit; bootm ${loadaddr}#${fdtfile};                             
    loadimage=load ${devtype} ${bootpart} ${loadaddr} ${bootdir}/${bootfile}        
    loadramdisk=load mmc ${mmcdev} ${rdaddr} ramdisk.gz                             
    mmc_boot=if mmc dev ${devnum}; then setenv devtype mmc; run scan_dev_for_boot_pa
    rt; fi                                                                          
    mmcboot=mmc dev ${mmcdev}; setenv devnum ${mmcdev}; setenv devtype mmc; if mmc r
    escan; then echo SD/MMC found on device ${mmcdev};if run loadimage; then if test
     ${boot_fit} -eq 1; then run loadfit; else run mmcloados;fi;fi;fi;              
    mmcdev=1                                                                        
    mmcloados=run args_mmc; if test ${boot_fdt} = yes || test ${boot_fdt} = try; the
    n if run loadfdt; then bootz ${loadaddr} - ${fdtaddr}; else if test ${boot_fdt} 
    = try; then bootz; else echo WARN: Cannot load the DT; fi; fi; else bootz; fi;  
    mmcrootfstype=ext4 rootwait                                                     
    mtdids=nand0=nand.0                                                             
    mtdparts=mtdparts=nand.0:128k(NAND.SPL),128k(NAND.SPL.backup1),128k(NAND.SPL.bac
    kup2),128k(NAND.SPL.backup3),256k(NAND.u-boot-spl-os),1m(NAND.u-boot),128k(NAND.
    u-boot-env),128k(NAND.u-boot-env.backup1),8m(NAND.kernel),-(NAND.file-system)   
    nandargs=setenv bootargs console=${console} ${optargs} root=${nandroot} rootfsty
    pe=${nandrootfstype}                                                            
    nandboot=echo Booting from nand ...; run nandargs; nand read ${fdtaddr} NAND.u-b
    oot-spl-os; nand read ${loadaddr} NAND.kernel; bootz ${loadaddr} - ${fdtaddr}   
    nandroot=ubi0:rootfs rw ubi.mtd=NAND.file-system,2048                           
    nandrootfstype=ubifs rootwait=1                                                 
    netargs=setenv bootargs console=${console} ${optargs} root=/dev/nfs nfsroot=${se
    rverip}:${rootpath},${nfsopts} rw ip=dhcp                                       
    netboot=echo Booting from network ...; setenv autoload no; dhcp; run netloadimag
    e; run netloadfdt; run netargs; bootz ${loadaddr} - ${fdtaddr}                  
    netloadfdt=tftp ${fdtaddr} ${fdtfile}                                           
    netloadimage=tftp ${loadaddr} ${bootfile}                                       
    netmask=255.255.255.0                                                           
    nfsopts=nolock                                                                  
    partitions=uuid_disk=${uuid_gpt_disk};name=rootfs,start=2MiB,size=-,uuid=${uuid_
    gpt_rootfs}                                                                     
    pxefile_addr_r=0x80100000                                                       
    ramargs=setenv bootargs console=${console} ${optargs} root=${ramroot} rootfstype
    =${ramrootfstype}                                                               
    ramboot=echo Booting from ramdisk ...; run ramargs; bootz ${loadaddr} ${rdaddr} 
    ${fdtaddr}                                                                      
    ramdisk_addr_r=0x88080000                                                       
    ramroot=/dev/ram0 rw                                                            
    ramrootfstype=ext2                                                              
    rdaddr=0x88080000                                                               
    rootpath=/export/rootfs                                                         
    scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for 
    prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_dev_for_scrip
    ts; done;run scan_dev_for_efi;                                                  
    scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env ex
    ists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fs
    type ${devtype} ${devnum}:${distro_bootpart} bootfstype; then run scan_dev_for_b
    oot; fi; done                                                                   
    scan_dev_for_efi=setenv efi_fdtfile ${fdtfile}; if test -z "${fdtfile}" -a -n "$
    {soc}"; then setenv efi_fdtfile ${soc}-${board}${boardver}.dtb; fi; for prefix i
    n ${efi_dtb_prefixes}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${p
    refix}${efi_fdtfile}; then run load_efi_dtb; fi;done;if test -e ${devtype} ${dev
    num}:${distro_bootpart} efi/boot/bootarm.efi; then echo Found EFI removable medi
    a binary efi/boot/bootarm.efi; run boot_efi_binary; echo EFI LOAD FAILED: contin
    uing...; fi; setenv efi_fdtfile                                                 
    scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefi
    x}extlinux/extlinux.conf; then echo Found ${prefix}extlinux/extlinux.conf; run b
    oot_extlinux; echo SCRIPT FAILED: continuing...; fi                             
    scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${d
    evnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${pr
    efix}${script}; run boot_a_script; echo SCRIPT FAILED: continuing...; fi; done  
    scriptaddr=0x80000000                                                           
    serverip=10.0.0.55                                                              
    soc=am33xx                                                                      
    spiargs=setenv bootargs console=${console} ${optargs} root=${spiroot} rootfstype
    =${spirootfstype}                                                               
    spiboot=echo Booting from spi ...; run spiargs; sf probe ${spibusno}:0; sf read 
    ${loadaddr} ${spisrcaddr} ${spiimgsize}; bootz ${loadaddr}                      
    spibusno=0                                                                      
    spiimgsize=0x362000                                                             
    spiroot=/dev/mtdblock4 rw                                                       
    spirootfstype=jffs2                                                             
    spisrcaddr=0xe0000                                                              
    static_ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off        
    stderr=serial@44e09000                                                          
    stdin=serial@44e09000                                                           
    stdout=serial@44e09000                                                          
    update_to_fit=setenv loadaddr ${fit_loadaddr}; setenv bootfile ${fit_bootfile}  
    usb_boot=usb start; if usb dev ${devnum}; then setenv devtype usb; run scan_dev_
    for_boot_part; fi                                                               
    usbnet_devaddr=de:ad:be:ef:00:01                                                
    vendor=ti                                                                       
    ver=U-Boot 2016.05-00319-gcf14e63-dirty (May 23 2017 - 10:40:38 -0400)          
                                                                                    
    Environment size: 8792/131068 bytes                                             
    =>