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.

  • Resolved

Linux/PROCESSOR-SDK-AM335X: Programming the eMMC on Beaglebone Black for production

Intellectual 630 points

Replies: 35

Views: 3109

Part Number: PROCESSOR-SDK-AM335X

Tool/software: Linux

Goodmorning,

I'm using a Beaglebone Black with PSDK version ti-processor-sdk-linux-am335x-evm-05.01.00.11. For bootloading the board from eth or usb, and flash the onboard eMMC, I'm following the following link:

processors.wiki.ti.com/.../Sitara_Linux_Program_the_eMMC_on_Beaglebone_Black

Besides some files could be retrieved from this link, too.

I've the following questions:

  1. Reading this link

    it seems that Beaglebone Black can boot from UART and eMMC only, while the guide that I'm following explains how to load images from usb or eth. Isn't it a contradiction?
  2. Regarding the patch 0001-Change-finduuid-to-use-mmcdev.patch.gz, I couldn't apply it successfully since it warns error. It's supposed to modify the file at the following path (u-boot folder path inside tisdk installation)/include/configs/ti_armv7_common.h, but it cannot since the file content doesn't match the modifications introduced by the patch. I suppose it's because the patch was thought for older versions. Since standard u-boot configuration (am335x_evm_defconfig) can be used for booting from eMMC, may I skip to apply the patch?
  3. I couldn't find u-boot configuration am335x_evm_usbspl_defconfig in config folder, can you provide it?
  4. The link for the script flasher.sh.tar.gz, doesn't work. Can you provide an alternative path?

Thank you for your help.

Best Regards,

Davide BRunelli

  • Genius 15780 points

    In reply to Davide Brunelli:

    Davide,

    OK, you've moved beyond one problem with the naming change for USB0.

    As I'm sure you can tell, it looks like your TFTP server is not starting. I'm sorry I won't be much help with this as I didn't run into it, but you will need a properly functioning TFTP server to boot the board. You don't necessarily have to use XINETD, but you do need a way to start/stop the service.

    I hope that helps you proceed.
  • In reply to Davide Brunelli:

    Hello Ron,

    thank you for your support. Regarding the tftp-server issue, I'll search on internet for a solution. However I've still got a doubt about the kernel menuconfig issue following the procedure 

    As you can see in the picture below, the settings shown in the procedure (on the left of the picture) are totally different compare to the current kernel version arm 4.14.67 Kernel Configuration (on the right of the picture). Can you confirm me that it's correct to remove all the options as I did in the picture? Besides, if in the next future, I want to enable CDC, can I enable the CDC options without introducing issues for the tftp server?

    Thank you.

  • In reply to Davide Brunelli:

    Hello Ron,

    I've done some more steps forward. What I did, was comment out the file /etc/default/tftp-hpa. I'm not still sure but if xinetd launches /etc/xinetd.d/tftp, it conflicts with /etc/default/tftp-hpa.

    Now I've got the following on beaglebone UART:

    U-Boot 2018.01-00444-g96cdbef (Jan 08 2019 - 15:38:26 +0100)                    

    CPU  : AM335X-GP rev 2.1                                                        

    Model: TI AM335x BeagleBone Black                                              

    DRAM:  512 MiB                                                                  

    NAND:  0 MiB                                                                    

    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1                                          

    ** Bad device mmc 0 **                                                          

    Using default environment                                                      

    <ethaddr> not set. Validating first E-fuse MAC                                  

    Net:   cpsw, usb_ether                                                          

    Hit any key to stop autoboot:  0                                                

    switch to partitions #0, OK                                                    

    mmc1(part 0) is current device                                                  

    Failed to mount ext2 filesystem...                                              

    ** Unrecognized filesystem type **                                              

    switch to partitions #0, OK                                                    

    mmc1(part 0) is current device                                                  

    SD/MMC found on device 1                                                        

    Failed to mount ext2 filesystem...                                              

    ** Unrecognized filesystem type **                                              

    ## Error: "bootcmd_nand0" not defined                                          

    starting USB...                                                                

    USB0:   Port not available.                                                    

    cpsw Waiting for PHY auto negotiation to complete......... TIMEOUT !            

    using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in                              

    MAC e8:eb:11:27:b9:2b                                                          

    HOST MAC de:ad:be:ef:00:00                                                      

    RNDIS ready                                                                    

    musb-hdrc: peripheral reset irq lost!                                          

    high speed config #2: 2 mA, Ethernet Gadget, using RNDIS                        

    USB RNDIS network up!                                                          

    BOOTP broadcast 1                                                              

    BOOTP broadcast 2                                                              

    BOOTP broadcast 3                                                              

    DHCP client bound to address 192.168.2.94 (764 ms)                              

    Using usb_ether device                                                          

    TFTP from server 192.168.2.1; our IP address is 192.168.2.94                    

    Filename 'zImage'.                                                              

    Load address: 0x82000000                                                        

    Loading: #################################################################      

            #################################################################      

            #################################################################      

            #################################################################      

            ###                                                                    

            4.2 MiB/s                                                              

    done                                                                            

    Bytes transferred = 3854848 (3ad200 hex)                                        

    missing environment variable: pxeuuid                                          

    Retrieving file: pxelinux.cfg/01-e8-eb-11-27-b9-2d                              

    using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in                              

    MAC e8:eb:11:27:b9:2b                                                          

    HOST MAC de:ad:be:ef:00:00                                                      

    RNDIS ready                                                                    

    high speed config #2: 2 mA, Ethernet Gadget, using RNDIS                        

    USB RNDIS network up!                                                          

    Using usb_ether device                                                          

    TFTP from server 192.168.2.1; our IP address is 192.168.2.94                    

    Filename 'pxelinux.cfg/01-e8-eb-11-27-b9-2d'.                                  

    Load address: 0x80100000                                                        

    Loading: *                                                                      

    TFTP error: 'File not found' (1)                                                

    Not retrying...                                                                

    Retrieving file: pxelinux.cfg/C0A8025E                                          

    using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in                              

    MAC e8:eb:11:27:b9:2b                                                          

    HOST MAC de:ad:be:ef:00:00                                                      

    RNDIS ready                                                                    

    high speed config #2: 2 mA, Ethernet Gadget, using RNDIS                        

    USB RNDIS network up!                                                          

    Using usb_ether device                                                          

    TFTP from server 192.168.2.1; our IP address is 192.168.2.94                    

    Filename 'pxelinux.cfg/C0A8025E'.                                              

    Load address: 0x80100000                                                        

    Loading: *                                                                      

    Not retrying...                                                                

    Retrieving file: pxelinux.cfg/C0                                                

    using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in                              

    MAC e8:eb:11:27:b9:2b                                                          

    HOST MAC de:ad:be:ef:00:00                                                      

    RNDIS ready                                                                    

    high speed config #2: 2 mA, Ethernet Gadget, using RNDIS                        

    USB RNDIS network up!                                                          

    Using usb_ether device                                                          

    TFTP from server 192.168.2.1; our IP address is 192.168.2.94                    

    Filename 'pxelinux.cfg/C0'.                                                    

    Load address: 0x80100000                                                        

    Loading: *                                                                      

    TFTP error: 'File not found' (1)                                                                      

    Not retrying...                                                                

    Retrieving file: pxelinux.cfg/default                                          

    using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in                              

    MAC e8:eb:11:27:b9:2b                                                          

    HOST MAC de:ad:be:ef:00:00                                                      

    RNDIS ready                                                                    

    high speed config #2: 2 mA, Ethernet Gadget, using RNDIS                        

    USB RNDIS network up!                                                          

    Using usb_ether device                                                          

    TFTP from server 192.168.2.1; our IP address is 192.168.2.94                    

    Filename 'pxelinux.cfg/default'.                                                

    Load address: 0x80100000                                                        

    Loading: *                                                                      

    ARP Retry count exceeded; starting again                                        

    Config file not found                                                          

    starting USB...                                                                

    USB0:   Port not available.                                                    

    using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in                              

    MAC e8:eb:11:27:b9:2b                                                          

    HOST MAC de:ad:be:ef:00:00                                                      

    RNDIS ready                                                                    

    high speed config #2: 2 mA, Ethernet Gadget, using RNDIS                        

    USB RNDIS network up!                                                          

    BOOTP broadcast 1                                                              

    ## Warning: gatewayip needed but not set                                        

    ## Warning: gatewayip needed but not set                                        

    ## Warning: gatewayip needed but not set                                        

    ## Warning: gatewayip needed but not set                                        

    ## Warning: gatewayip needed but not set                                        

    ## Warning: gatewayip needed but not set                                        

    ## Warning: gatewayip needed but not set                                        

    ## Warning: gatewayip needed but not set                                        

    ## Warning: gatewayip needed but not set                                        

    Hello Ron, I've got some questions:

    1. As you can see there are some complaints about the pxelinux.cfg/01-e8-eb-11-27-b9-2d', which is missing? Do you know something about that?
    2. Then concerning the gatewayip warning, is it resolvable somehow?
    3. I still have got doubts about menuconfig settings (see previous post)..

    Thank you.

    Best Regards,

    Davide Brunelli

  • Genius 15780 points

    In reply to Davide Brunelli:

    David,

    #1 above is happening as part of U-Boot default BOOTCMD.

    Can you try to stop U-Boot at a prompt and try:

    run findfdt
    run netboot

    to see what happens? This will bypass the pxe boot stuff.

    #2 is new to me and I hope it goes away when we run the correct boot command straightaway.

    #3 is something I'm looking into but getting you to the kernel and booting would help answer some of my questions.

    Please let me know how it goes.
  • In reply to RonB:

    Hello Ron, thank you fro your help.

    I've done furter researches, and this is what I found out:

    1.  reading the flasher script, I've done the following changes:

      ## Rename rootfs as needed depending on use of tar or img

      ## Before it was "tisdk-rootfs-image-am335x-evm.tar.gz"
      ROOTFS_PARTITION="tisdk-rootfs-image-am335x-evm.tar.xz"

      ## Declare eMMC device name here

      ## Before it was /dev/mmcblk0, but I'm sure that mmcblk1 is the eMMC while mmcblk0 is the SDcard on Beaglebone Black
      DRIVE="/dev/mmcblk1"

    2. At the begininng, when the board try to connect with BOOTP broadcast 1 BOOTP broadcast 2 BOOTP broadcast 3 ..., I need to restart the isc-dhcp-server. so that it can connect. Otherwise it cannot connect.
    3. Following exactly the procedure as it is explained in the document Ubuntu_12.04_Set_Up_to_Network_Boot_an_AM335x_Based_Platform, it get stuck at Starting kernel...
      U-Boot 2018.01-00446-g49883e1 (Jan 16 2019 - 15:23:55 +0100)                    
                                                                                      
      CPU  : AM335X-GP rev 2.1                                                        
      Model: TI AM335x BeagleBone Black                                               
      DRAM:  512 MiB                                                                  
      NAND:  0 MiB                                                                    
      MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1                                           
      ** Bad device mmc 0 **                                                          
      Using default environment                                                       
                                                                                      
      <ethaddr> not set. Validating first E-fuse MAC                                  
      Net:   cpsw, usb_ether                                                          
      Hit any key to stop autoboot:  0                                                
      => setenv ethact usb_ether                                                      
      => dhcp                                                                         
      using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in                               
      MAC e8:eb:11:27:b9:2b                                                           
      HOST MAC de:ad:be:ef:00:00                                                      
      RNDIS ready                                                                     
      musb-hdrc: peripheral reset irq lost!                                           
      high speed config #2: 2 mA, Ethernet Gadget, using RNDIS                        
      USB RNDIS network up!                                                           
      BOOTP broadcast 1                                                               
      BOOTP broadcast 2                                                               
      BOOTP broadcast 3                                                               
      BOOTP broadcast 4                                                               
      DHCP client bound to address 192.168.2.94 (1772 ms)                             
      Using usb_ether device                                                          
      TFTP from server 192.168.2.1; our IP address is 192.168.2.94                    
      Filename 'zImage'.                                                              
      Load address: 0x82000000                                                        
      Loading: #################################################################      
               #################################################################      
               #################################################################      
               #################################################################      
               ###                                                                    
               4.4 MiB/s                                                              
      done                                                                            
      Bytes transferred = 3854848 (3ad200 hex)                                        
      => rund findfdt                                                                 
      Unknown command 'rund' - try 'help'                                             
      => run findfdt                                                                  
      => tftp ${fdtaddr} ${fdtfile}                                                   
      using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in                               
      MAC e8:eb:11:27:b9:2b                                                           
      HOST MAC de:ad:be:ef:00:00                                                      
      RNDIS ready                                                                     
      high speed config #2: 2 mA, Ethernet Gadget, using RNDIS                        
      USB RNDIS network up!                                                           
      Using usb_ether device                                                          
      TFTP from server 192.168.2.1; our IP address is 192.168.2.94                    
      Filename 'am335x-boneblack.dtb'.                                                
      Load address: 0x88000000                                                        
      Loading: ###                                                                    
               4.4 MiB/s                                                              
      done                                                                            
      Bytes transferred = 36793 (8fb9 hex)                                            
      => bootz ${loadaddr} - ${fdtaddr}                                               
      ## Flattened Device Tree blob at 88000000                                       
         Booting using the fdt blob at 0x88000000                                     
         Loading Device Tree to 8fff4000, end 8fffffb8 ... OK                         
                                                                                      
      Starting kernel ... 
    4. Instead, if I follow the procedure, with run netboot command, I get the following (I use the run netboot right after run findfdt, so I cannot use tftp ${fdtaddr} ${fdtfile} and bootz ${loadaddr} - ${fdtaddr}):
      U-Boot 2018.01-00446-g49883e1 (Jan 16 2019 - 15:23:55 +0100)                    
                                                                                      
      CPU  : AM335X-GP rev 2.1                                                        
      Model: TI AM335x BeagleBone Black                                               
      DRAM:  512 MiB                                                                  
      NAND:  0 MiB                                                                    
      MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1                                           
      ** Bad device mmc 0 **                                                          
      Using default environment                                                       
                                                                                      
      <ethaddr> not set. Validating first E-fuse MAC                                  
      Net:   cpsw, usb_ether                                                          
      Hit any key to stop autoboot:  0                                                
      => setenv ethact usb_ether                                                      
      => dhcp                                                                         
      using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in                               
      MAC e8:eb:11:27:b9:2b                                                           
      HOST MAC de:ad:be:ef:00:00                                                      
      RNDIS ready                                                                     
      musb-hdrc: peripheral reset irq lost!                                           
      high speed config #2: 2 mA, Ethernet Gadget, using RNDIS                        
      USB RNDIS network up!                                                           
      BOOTP broadcast 1                                                               
      BOOTP broadcast 2                                                               
      BOOTP broadcast 3                                                               
      DHCP client bound to address 192.168.2.94 (1270 ms)                             
      Using usb_ether device                                                          
      TFTP from server 192.168.2.1; our IP address is 192.168.2.94                    
      Filename 'zImage'.                                                              
      Load address: 0x82000000                                                        
      Loading: #################################################################      
               #################################################################      
               #################################################################      
               #################################################################      
               ###                                                                    
               4.3 MiB/s                                                              
      done                                                                            
      Bytes transferred = 3854848 (3ad200 hex)                                        
      => run findfdt                                                                  
      => run netboot                                                                  
      Booting from network ...                                                        
      using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in                               
      MAC e8:eb:11:27:b9:2b                                                           
      HOST MAC de:ad:be:ef:00:00                                                      
      RNDIS ready                                                                     
      high speed config #2: 2 mA, Ethernet Gadget, using RNDIS                        
      USB RNDIS network up!                                                           
      BOOTP broadcast 1                                                               
      BOOTP broadcast 2                                                               
      BOOTP broadcast 3                                                               
      DHCP client bound to address 192.168.2.94 (764 ms)                              
      using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in                               
      MAC e8:eb:11:27:b9:2b                                                           
      HOST MAC de:ad:be:ef:00:00                                                      
      RNDIS ready                                                                     
      high speed config #2: 2 mA, Ethernet Gadget, using RNDIS                        
      USB RNDIS network up!                                                           
      Using usb_ether device                                                          
      TFTP from server 192.168.2.1; our IP address is 192.168.2.94                    
      Filename 'zImage'.                                                              
      Load address: 0x82000000                                                        
      Loading: #################################################################      
               #################################################################      
               #################################################################      
               #################################################################      
               ###                                                                    
               4.5 MiB/s                                                              
      done                                                                            
      Bytes transferred = 3854848 (3ad200 hex)                                        
      using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in                               
      MAC e8:eb:11:27:b9:2b                                                           
      HOST MAC de:ad:be:ef:00:00                                                      
      RNDIS ready                                                                     
      high speed config #2: 2 mA, Ethernet Gadget, using RNDIS                        
      USB RNDIS network up!                                                           
      Using usb_ether device                                                          
      TFTP from server 192.168.2.1; our IP address is 192.168.2.94                    
      Filename 'am335x-boneblack.dtb'.                                                
      Load address: 0x88000000                                                        
      Loading: ###                                                                    
               3.9 MiB/s                                                              
      done                                                                            
      Bytes transferred = 36793 (8fb9 hex)                                            
      ## Flattened Device Tree blob at 88000000                                       
         Booting using the fdt blob at 0x88000000                                     
         Loading Device Tree to 8fff4000, end 8fffffb8 ... OK                         
                                                                                      
      Starting kernel ...                                                             
                                                                                      
      [    0.000000] Booting Linux on physical CPU 0x0                                
      [    0.000000] Linux version 4.14.67-gd315a9bb00 (root@davide-HP-ProBook-450-G59
      [    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d  
      [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instructie
      [    0.000000] OF: fdt: Machine model: TI AM335x BeagleBone Black               
      [    0.000000] Memory policy: Data cache writeback                              
      [    0.000000] efi: Getting EFI parameters from FDT:                            
      [    0.000000] efi: UEFI not found.                                             
      [    0.000000] cma: Reserved 48 MiB at 0x9d000000                               
      [    0.000000] CPU: All CPU(s) started in SVC mode.                             
      [    0.000000] AM335X ES2.1 (sgx neon)                                          
      [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 129920    
      [    0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/nfs nfsroop
      [    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)              
      [    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)  
      [    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)   
      [    0.000000] Memory: 456920K/524288K available (8192K kernel code, 318K rwdat)
      [    0.000000] Virtual kernel memory layout:                                    
      [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)                
      [    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)                
      [    0.000000]     vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)                
      [    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)                
      [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)                
      [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)                
      [    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)                
      [    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)                
      [    0.000000]       .data : 0xc0d00000 - 0xc0d4fb08   ( 319 kB)                
      [    0.000000]        .bss : 0xc0d4fb08 - 0xc0d948a4   ( 276 kB)                
      [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1       
      [    0.000000] Preemptible hierarchical RCU implementation.                     
      [    0.000000]  Tasks RCU enabled.                                              
      [    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16                  
      [    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrus
      [    0.000000] OMAP clockevent source: timer2 at 24000000 Hz                    
      [    0.000013] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 8947s
      [    0.000031] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, mas
      [    0.000041] OMAP clocksource: timer1 at 24000000 Hz                          
      [    0.000195] timer_probe: no matching timers found                            
      [    0.000385] Console: colour dummy device 80x30                               
      [    0.000410] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'       
      [    0.000417] This ensures that you still see kernel messages. Please          
      [    0.000421] update your kernel commandline.                                  
      [    0.000447] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)          
      [    0.089206] pid_max: default: 32768 minimum: 301                             
      [    0.089372] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)      
      [    0.089386] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) 
      [    0.090084] CPU: Testing write buffer coherency: ok                          
      [    0.090751] Setting up static identity map for 0x80100000 - 0x80100060       
      [    0.090886] Hierarchical SRCU implementation.                                
      [    0.091188] EFI services will not be available.                              
      [    0.092362] devtmpfs: initialized                                            
      [    0.098925] random: get_random_u32 called from bucket_table_alloc+0x8c/0x1ac0
      [    0.099458] VFP support v0.3: implementor 41 architecture 3 part 30 variant 3
      [    0.099741] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, ms
      [    0.099760] futex hash table entries: 256 (order: -1, 3072 bytes)            
      [    0.103055] pinctrl core: initialized pinctrl subsystem                      
      [    0.103709] DMI not present or invalid.                                      
      [    0.104075] NET: Registered protocol family 16                               
      [    0.106051] DMA: preallocated 256 KiB pool for atomic coherent allocations   
      [    0.118507] omap_hwmod: debugss: _wait_target_disable failed                 
      [    0.170716] cpuidle: using governor ladder                                   
      [    0.170748] cpuidle: using governor menu                                     
      [    0.174546] OMAP GPIO hardware version 0.1                                   
      [    0.183496] No ATAGs?                                                        
      [    0.183514] hw-breakpoint: debug architecture 0x4 unsupported.               
      [    0.194687] edma 49000000.edma: TI EDMA DMA engine driver                    
      [    0.197433] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_we
      [    0.197492] omap_i2c 4819c000.i2c: could not find pctldev for node /ocp/l4_we
      [    0.197597] media: Linux media interface: v0.10                              
      [    0.197634] Linux video capture interface: v2.00                             
      [    0.197729] pps_core: LinuxPPS API ver. 1 registered                         
      [    0.197737] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giom>
      [    0.197756] PTP clock support registered                                     
      [    0.197786] EDAC MC: Ver: 3.0.0                                              
      [    0.198242] dmi: Firmware registration failed.                               
      [    0.198624] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400            
      [    0.198926] Advanced Linux Sound Architecture Driver Initialized.            
      [    0.200137] clocksource: Switched to clocksource timer1                      
      [    0.207043] NET: Registered protocol family 2                                
      [    0.207693] TCP established hash table entries: 4096 (order: 2, 16384 bytes) 
      [    0.207739] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)        
      [    0.207777] TCP: Hash tables configured (established 4096 bind 4096)         
      [    0.207865] UDP hash table entries: 256 (order: 0, 4096 bytes)               
      [    0.207882] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)          
      [    0.208018] NET: Registered protocol family 1                                
      [    0.208419] RPC: Registered named UNIX socket transport module.              
      [    0.208432] RPC: Registered udp transport module.                            
      [    0.208438] RPC: Registered tcp transport module.                            
      [    0.208443] RPC: Registered tcp NFSv4.1 backchannel transport module.        
      [    0.209055] hw perfevents: no interrupt-affinity property for /pmu, guessing.
      [    0.209367] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 countee
      [    0.210716] workingset: timestamp_bits=14 max_order=17 bucket_order=3        
      [    0.214384] squashfs: version 4.0 (2009/01/31) Phillip Lougher               
      [    0.215078] NFS: Registering the id_resolver key type                        
      [    0.215120] Key type id_resolver registered                                  
      [    0.215127] Key type id_legacy registered                                    
      [    0.215172] ntfs: driver 2.1.32 [Flags: R/O].                                
      [    0.216956] Block layer SCSI generic (bsg) driver version 0.4 loaded (major )
      [    0.216977] io scheduler noop registered                                     
      [    0.216984] io scheduler deadline registered                                 
      [    0.217167] io scheduler cfq registered (default)                            
      [    0.217176] io scheduler mq-deadline registered                              
      [    0.217183] io scheduler kyber registered                                    
      [    0.218390] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568 
      [    0.262151] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled        
      [    0.264867] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 30, base_baud =0
      [    0.896209] console [ttyS0] enabled                                          
      [    0.901424] omap_rng 48310000.rng: Random Number Generator ver. 20           
      [    0.918166] brd: module loaded                                               
      [    0.927052] loop: module loaded                                              
      [    0.932119] libphy: Fixed MDIO Bus: probed                                   
      [    1.010219] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6, bus freq 0
      [    1.017921] davinci_mdio 4a101000.mdio: detected phy mask fffffffe           
      [    1.025285] libphy: 4a101000.mdio: probed                                    
      [    1.029327] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, dri0
      [    1.039426] cpsw 4a100000.ethernet: Detected MACID = e8:eb:11:27:b9:2b       
      [    1.046189] cpsw 4a100000.ethernet: initialized cpsw ale version 1.4         
      [    1.052663] cpsw 4a100000.ethernet: ALE Table size 1024                      
      [    1.057947] cpsw 4a100000.ethernet: cpts: overflow check period 500 (jiffies)
      [    1.066374] i2c /dev entries driver                                          
      [    1.070406] IR NEC protocol handler initialized                              
      [    1.074959] IR RC5(x/sz) protocol handler initialized                        
      [    1.080028] IR RC6 protocol handler initialized                              
      [    1.084601] IR JVC protocol handler initialized                              
      [    1.089149] IR Sony protocol handler initialized                             
      [    1.093794] IR SANYO protocol handler initialized                            
      [    1.098514] IR Sharp protocol handler initialized                            
      [    1.103245] IR MCE Keyboard/mouse protocol handler initialized               
      [    1.109099] IR XMP protocol handler initialized                              
      [    1.115009] cpuidle: enable-method property 'ti,am3352' found operations     
      [    1.122133] sdhci: Secure Digital Host Controller Interface driver           
      [    1.128340] sdhci: Copyright(c) Pierre Ossman                                
      [    1.133427] omap_hsmmc 48060000.mmc: Got CD GPIO                             
      [    1.250357] sdhci-pltfm: SDHCI platform and OF driver helper                 
      [    1.257420] ledtrig-cpu: registered to indicate activity on CPUs             
      [    1.271036] NET: Registered protocol family 10                               
      [    1.276787] Segment Routing with IPv6                                        
      [    1.280698] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver              
      [    1.288427] NET: Registered protocol family 17                               
      [    1.295229] Key type dns_resolver registered                                 
      [    1.299749] omap_voltage_late_init: Voltage driver support not added         
      [    1.346464] random: fast init done                                           
      [    1.353278] tps65217 0-0024: TPS65217 ID 0xe version 1.2                     
      [    1.398210] mmc1: new high speed MMC card at address 0001                    
      [    1.404159] mmcblk1: mmc1:0001 M62704 3.56 GiB                               
      [    1.408870] mmcblk1boot0: mmc1:0001 M62704 partition 1 2.00 MiB              
      [    1.415014] mmcblk1boot1: mmc1:0001 M62704 partition 2 2.00 MiB              
      [    1.421121] mmcblk1rpmb: mmc1:0001 M62704 partition 3 512 KiB                
      [    1.428147]  mmcblk1: p1 p2                                                  
      [    1.502510] tda998x 0-0070: found TDA19988                                   
      [    1.507784] tilcdc 4830e000.lcdc: bound 0-0070 (ops tda998x_ops)             
      [    1.513878] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).      
      [    1.520533] [drm] No driver support for vblank timestamp query.              
      [    1.526887] [drm] Cannot find any crtc or sizes                              
      [    1.531963] [drm] Initialized tilcdc 1.0.0 20121205 for 4830e000.lcdc on min0
      [    1.539500] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz                  
      [    1.546918] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 100 kHz                  
      [    1.554660] hctosys: unable to open rtc device (rtc0)                        
      [    1.573448] net eth0: initializing cpsw version 1.12 (0)                     
      [    1.681249] SMSC LAN8710/LAN8720 4a101000.mdio:00: attached PHY driver [SMSC)
      [    1.701881] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready               
      [    2.560734] [drm] Cannot find any crtc or sizes                              
      Waiting up to 110 more seconds for network.                      
      [   21.740213] Waiting up to 100 more seconds for network.                      
      [   31.760213] Waiting up to 90 more seconds for network.                       
      [   41.780193] Waiting up to 80 more seconds for network.                       
      [   51.800195] Waiting up to 70 more seconds for network.                       
      [   61.820199] Waiting up to 60 more seconds for network.                       
      [   71.840200] Waiting up to 50 more seconds for network.                       
      [   81.860196] Waiting up to 40 more seconds for network.                       
      [   91.880191] Waiting up to 30 more seconds for network.                       
      [  101.900210] Waiting up to 20 more seconds for network.                       
      [  111.920211] Waiting up to 10 more seconds for network.                       
      [  121.730205] Sending DHCP requests ...                                        
      [  130.360264] random: crng init done                                           
      [  134.930185] ... timed out!                                                   
      [  198.319311] IP-Config: Retrying forever (NFS root)...                        
      [  198.325103] net eth0: initializing cpsw version 1.12 (0)                     
      [  198.431403] SMSC LAN8710/LAN8720 4a101000.mdio:00: attached PHY driver [SMSC)
      [  198.451054] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready               
      [  208.470200] Waiting up to 110 more seconds for network.                      
      [  218.490196] Waiting up to 100 more seconds for network.
      ......

      From now on, it keeps trying to connect to the server unsuccesfully.. To me, it's look that it is trying to connect with eth0, not usb0.
    5. Even though I reach this point, it's important to say that the board, once connected, doesn't stay connected but it keeps to unconnect and reconnect. No solution found for that...
    6. Reading around I found the following link

      Do you think it could be helpful?

    Thank you very much for you support.

    Best Regards,

    Davide Brunelli

  • Genius 15780 points

    In reply to Davide Brunelli:

    Davide,

    Looking at your Kernel command line:

    [ 0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/nfs nfsroop

    You are telling it to boot to use NFS to mount your root filesystem. Is that what you intend to do? If so, you will need to connect Ethernet.

    This may be a side effect of netboot that I ignored when I recommended it. However, it did get us to the kernel, which is progress.

    Where is your root FS? Initramfs per the guide? SD Card?

    We'll need to tweak the command line to better reflect what you want.

    You can see the different setting with printenv within U-Boot.
  • In reply to RonB:

    Hello Ron,

    I confirm you that I'm using initramfs as the guide explains. Actually there are several initramfs in the following link:

    and I used the sitara_flasher_initramfs_rev_1.1.tar.gz.

    I don't want to load the nfs through eth0, I want to use the one contained in zImage.

    My printenv is the following:

    arch=arm                                                                    
    args_mmc=run finduuid;setenv bootargs console=${console} ${optargs} root=PA}
    baudrate=115200                                                             
    board=am335x                                                                
    board_name=A335BNLT                                                         
    board_rev=000C                                                              
    board_serial=1739BBBG0538                                                   
    boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${}
    boot_efi_binary=if fdt addr ${fdt_addr_r}; then bootefi bootmgr ${fdt_addr_i
    boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaf
    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;d
    bootcmd_dhcp=run boot_net_usb_start; if dhcp ${scriptaddr} ${boot_script_dh;
    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=zImage                                                             
    bootm_size=0x10000000                                                       
    bootpart=0:2                                                                
    bootscript=echo Running bootscript from mmc${mmcdev} ...; source ${loadaddr}
    console=ttyO0,115200n8                                                      
    cpu=armv7                                                                   
    dfu_alt_info_emmc=rawemmc raw 0 3751936;boot part 1 1;rootfs part 1 2;MLO f1
    dfu_alt_info_mmc=boot part 0 1;rootfs part 0 2;MLO fat 0 1;MLO.raw raw 0x101
    dfu_alt_info_nand=SPL part 0 1;SPL.backup1 part 0 2;SPL.backup2 part 0 3;SP9
    dfu_alt_info_ram=kernel ram 0x80200000 0x4000000;fdt ram 0x80f80000 0x800000
    distro_bootcmd=for target in ${boot_targets}; do run bootcmd_${target}; done
    efi_dtb_prefixes=/ /dtb/ /dtb/current/                                      
    envboot=mmc dev ${mmcdev}; if mmc rescan; then echo SD/MMC found on device ;
    eth1addr=e8:eb:11:27:b9:2d                                                  
    ethact=cpsw                                                                 
    ethaddr=e8:eb:11:27:b9:2b                                                   
    fdt_addr_r=0x88000000                                                       
    fdtaddr=0x88000000                                                          
    fdtcontroladdr=9df10cb8                                                     
    fdtfile=undefined                                                           
    findfdt=if test $board_name = A335BONE; then setenv fdtfile am335x-bone.dtb 
    finduuid=part uuid mmc ${bootpart} uuid                                     
    fit_bootfile=fitImage                                                       
    fit_loadaddr=0x87000000                                                     
    ice_mii=mii                                                                 
    importbootenv=echo Importing environment from mmc${mmcdev} ...; env import }
    init_console=if test $board_name = A335_ICE; then setenv console ttyO3,1152;
    kernel_addr_r=0x82000000                                                    
    load_efi_dtb=load ${devtype} ${devnum}:${distro_bootpart} ${fdt_addr_r} ${p}
    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_mmc; 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_boi
    mmcboot=mmc dev ${mmcdev}; setenv devnum ${mmcdev}; setenv devtype mmc; if ;
    mmcdev=0                                                                    
    mmcloados=run args_mmc; if test ${boot_fdt} = yes || test ${boot_fdt} = try;
    mmcrootfstype=ext4 rootwait                                                 
    mtdids=nand0=nand.0                                                         
    mtdparts=mtdparts=nand.0:128k(NAND.SPL),128k(NAND.SPL.backup1),128k(NAND.SP)
    nandargs=setenv bootargs console=${console} ${optargs} root=${nandroot} roo}
    nandboot=echo Booting from nand ...; run nandargs; nand read ${fdtaddr} NAN}
    nandroot=ubi0:rootfs rw ubi.mtd=NAND.file-system,2048                       
    nandrootfstype=ubifs rootwait=1                                             
    netargs=setenv bootargs console=${console} ${optargs} root=/dev/nfs nfsrootp
    netboot=echo Booting from network ...; setenv autoload no; dhcp; run netloa}
    netloadfdt=tftp ${fdtaddr} ${fdtfile}                                       
    netloadimage=tftp ${loadaddr} ${bootfile}                                   
    nfsopts=nolock                                                              
    partitions=uuid_disk=${uuid_gpt_disk};name=rootfs,start=2MiB,size=-,uuid=${}
    pxefile_addr_r=0x80100000                                                   
    ramargs=setenv bootargs console=${console} ${optargs} root=${ramroot} rootf}
    ramboot=echo Booting from ramdisk ...; run ramargs; bootz ${loadaddr} ${rda}
    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}...;;
    scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; ee
    scan_dev_for_efi=setenv efi_fdtfile ${fdtfile}; if test -z "${fdtfile}" -a e
    scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${i
    scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtypee
    scriptaddr=0x80000000                                                       
    soc=am33xx                                                                  
    spiargs=setenv bootargs console=${console} ${optargs} root=${spiroot} rootf}
    spiboot=echo Booting from spi ...; run spiargs; sf probe ${spibusno}:0; sf }
    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_bootfi}
    usb_boot=usb start; if usb dev ${devnum}; then setenv devtype usb; run scani
    usbnet_devaddr=e8:eb:11:27:b9:2b                                            
    vendor=ti                                                                   
    ver=U-Boot 2018.01-00444-g96cdbef (Jan 18 2019 - 09:36:13 +0100)            
                                                                                
    Environment size: 9907/131068 bytes 

    How do I modify it for getting the initramfs contained in zImage?

    Thank you

    Best Wishes,

    Davide Brunelli

  • In reply to Davide Brunelli:

    I saw that the printenv is cut at the end.. Below a longer version

    arch=arm
    args_mmc=run finduuid;setenv bootargs console=${console} ${optargs} root=PARTUUID=${uuid} rw rootfstype=${mmcrootfstype}
    baudrate=115200
    board=am335x
    board_name=A335BNLT
    board_rev=000C
    board_serial=1739BBBG0538
    boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr}
    boot_efi_binary=if fdt addr ${fdt_addr_r}; then bootefi bootmgr ${fdt_addr_r};else bootefi bootmgr ${fdtcontroladdr};fi;load ${devtype} ${devnum}:${distro_bootpart} ${kernel_addr_r} efi/boot/i
    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 init_console; run envboot; run distro_bootcmd
    bootcmd_dhcp=run boot_net_usb_start; if dhcp ${scriptaddr} ${boot_script_dhcp}; then source ${scriptaddr}; fi;setenv efi_fdtfile ${fdtfile}; if test -z "${fdtfile}" -a -n "${soc}"; then seten;
    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=zImage
    bootm_size=0x10000000
    bootpart=0:2
    bootscript=echo Running bootscript from mmc${mmcdev} ...; source ${loadaddr}
    console=ttyO0,115200n8
    cpu=armv7
    dfu_alt_info_emmc=rawemmc raw 0 3751936;boot part 1 1;rootfs part 1 2;MLO fat 1 1;MLO.raw raw 0x100 0x200;u-boot.img.raw raw 0x300 0x1000;u-env.raw raw 0x1300 0x200;spl-os-args.raw raw 0x15001
    dfu_alt_info_mmc=boot part 0 1;rootfs part 0 2;MLO fat 0 1;MLO.raw raw 0x100 0x200;u-boot.img.raw raw 0x300 0x1000;u-env.raw raw 0x1300 0x200;spl-os-args.raw raw 0x1500 0x200;spl-os-image.raw1
    dfu_alt_info_nand=SPL part 0 1;SPL.backup1 part 0 2;SPL.backup2 part 0 3;SPL.backup3 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 0x4000000;fdt ram 0x80f80000 0x80000;ramdisk ram 0x81000000 0x4000000
    distro_bootcmd=for target in ${boot_targets}; do run bootcmd_${target}; done
    efi_dtb_prefixes=/ /dtb/ /dtb/current/
    envboot=mmc dev ${mmcdev}; if mmc rescan; then echo SD/MMC found on device ${mmcdev};if run loadbootscript; then run bootscript;else if run loadbootenv; then echo Loaded env from ${bootenvfil;
    eth1addr=e8:eb:11:27:b9:2d
    ethact=cpsw
    ethaddr=e8:eb:11:27:b9:2b
    fdt_addr_r=0x88000000
    fdtaddr=0x88000000
    fdtcontroladdr=9df10cb8
    fdtfile=undefined
    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; if test $board_name = BBBW; then
    finduuid=part uuid mmc ${bootpart} uuid
    fit_bootfile=fitImage
    fit_loadaddr=0x87000000
    ice_mii=mii
    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;
    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_mmc; 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_part; fi
    mmcboot=mmc dev ${mmcdev}; setenv devnum ${mmcdev}; setenv devtype mmc; if mmc rescan; then echo SD/MMC found on device ${mmcdev};if run loadimage; then if test ${boot_fit} -eq 1; then run lo;
    mmcdev=0
    mmcloados=run args_mmc; if test ${boot_fdt} = yes || test ${boot_fdt} = try; then if run loadfdt; then bootz ${loadaddr} - ${fdtaddr}; else if test ${boot_fdt} = try; then bootz; else echo WA;
    mmcrootfstype=ext4 rootwait
    mtdids=nand0=nand.0
    mtdparts=mtdparts=nand.0:128k(NAND.SPL),128k(NAND.SPL.backup1),128k(NAND.SPL.backup2),128k(NAND.SPL.backup3),256k(NAND.u-boot-spl-os),1m(NAND.u-boot),128k(NAND.u-boot-env),128k(NAND.u-boot-en)
    nandargs=setenv bootargs console=${console} ${optargs} root=${nandroot} rootfstype=${nandrootfstype}
    nandboot=echo Booting from nand ...; run nandargs; nand read ${fdtaddr} NAND.u-boot-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=${serverip}:${rootpath},${nfsopts} rw ip=dhcp
    netboot=echo Booting from network ...; setenv autoload no; dhcp; run netloadimage; run netloadfdt; run netargs; bootz ${loadaddr} - ${fdtaddr}
    netloadfdt=tftp ${fdtaddr} ${fdtfile}
    netloadimage=tftp ${loadaddr} ${bootfile}
    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_scripts; done;run scan_dev_for_efi;
    scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env exists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fstype ${devtype} ${devnum}:${dise
    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 in ${efi_dtb_prefixes}; do if tee
    scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}extlinux/extlinux.conf; then echo Found ${prefix}extlinux/extlinux.conf; run boot_extlinux; echo SCRIPT FAILEi
    scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${prefix}${script}; run boot_a_scrie
    scriptaddr=0x80000000
    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=e8:eb:11:27:b9:2b
    vendor=ti
    ver=U-Boot 2018.01-00444-g96cdbef (Jan 18 2019 - 09:36:13 +0100)

    Environment size: 9907/131068 bytes
  • Genius 15780 points

    In reply to Davide Brunelli:

    Davide,

    Instead of running netboot, can you try the following commands at a U-Boot prompt:

    setenv ethact usb_eth
    dhcp
    run findfdt
    tftp ${fdtaddr} ${fdtfile}
    bootz ${loadaddr} - ${fdtaddr}

    Let's see if that will get the board booting.
  • In reply to RonB:

    Hello Ron,

    I tried your steps (except setenv ethact usb_eth that changes to setenv ethact usb_ether) and I get the following:

    U-Boot SPL 2018.01-00446-g49883e1 (Jan 18 2019 - 13:53:29)                      
    Trying to boot from USB eth                                                     
    ** Bad device mmc 0 **                                                          
    Using default environment                                                       
                                                                                    
    <ethaddr> not set. Validating first E-fuse MAC                                  
    cpsw, usb_ether                                                                 
    Error: usb_ether address not set.                                               
                                                                                    
    using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in                               
    MAC e8:eb:11:27:b9:2b                                                           
    HOST MAC de:ad:be:ef:00:00                                                      
    RNDIS ready                                                                     
    musb-hdrc: peripheral reset irq lost!                                           
    high speed config #2: 2 mA, Ethernet Gadget, using RNDIS                        
    USB RNDIS network up!                                                           
    BOOTP broadcast 1                                                               
    BOOTP broadcast 2                                                               
    BOOTP broadcast 3                                                               
    DHCP client bound to address 192.168.2.94 (1280 ms)                             
    Using usb_ether device                                                          
    TFTP from server 192.168.2.1; our IP address is 192.168.2.94                    
    Filename 'u-boot-restore.img'.                                                  
    Load address: 0x82000000                                                        
    Loading: #################################################################      
             ##############################################################         
             3.2 MiB/s                                                              
    done                                                                            
    Bytes transferred = 646040 (9db98 hex)                                          
                                                                                    
                                                                                    
    U-Boot 2018.01-00446-g49883e1 (Jan 18 2019 - 13:53:29 +0100)                    
                                                                                    
    CPU  : AM335X-GP rev 2.1                                                        
    Model: TI AM335x BeagleBone Black                                               
    DRAM:  512 MiB                                                                  
    NAND:  0 MiB                                                                    
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1                                           
    ** Bad device mmc 0 **                                                          
    Using default environment                                                       
                                                                                    
    <ethaddr> not set. Validating first E-fuse MAC                                  
    Net:   cpsw, usb_ether                                                          
    Hit any key to stop autoboot:  0                                                
    => setenv ethact usb_eth                                                        
    => dhcp                                                                         
    No ethernet found.                                                              
    => setenv ethact usb_ether                                                      
    => dhcp                                                                         
    using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in                               
    MAC e8:eb:11:27:b9:2b                                                           
    HOST MAC de:ad:be:ef:00:00                                                      
    RNDIS ready                                                                     
    musb-hdrc: peripheral reset irq lost!                                           
    high speed config #2: 2 mA, Ethernet Gadget, using RNDIS                        
    USB RNDIS network up!                                                           
    BOOTP broadcast 1                                                               
    BOOTP broadcast 2                                                               
    DHCP client bound to address 192.168.2.94 (269 ms)                              
    Using usb_ether device                                                          
    TFTP from server 192.168.2.1; our IP address is 192.168.2.94                    
    Filename 'zImage'.                                                              
    Load address: 0x82000000                                                        
    Loading: #################################################################      
             #################################################################      
             #################################################################      
             #################################################################      
             #################################################################      
             #################################################################      
             #################################################################      
             ######################                                                 
             4.3 MiB/s                                                              
    done                                                                            
    Bytes transferred = 6988288 (6aa200 hex)                                        
    => run findfdt                                                                  
    => tftp ${fdtaddr} ${fdtfile}                                                   
    using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in                               
    MAC e8:eb:11:27:b9:2b                                                           
    HOST MAC de:ad:be:ef:00:00                                                      
    RNDIS ready                                                                     
    high speed config #2: 2 mA, Ethernet Gadget, using RNDIS                        
    USB RNDIS network up!                                                           
    Using usb_ether device                                                          
    TFTP from server 192.168.2.1; our IP address is 192.168.2.94                    
    Filename 'am335x-boneblack.dtb'.                                                
    Load address: 0x88000000                                                        
    Loading: ###                                                                    
             4.4 MiB/s                                                              
    done                                                                            
    Bytes transferred = 36793 (8fb9 hex)                                            
    => bootz ${loadaddr} - ${fdtaddr}                                               
    ## Flattened Device Tree blob at 88000000                                       
       Booting using the fdt blob at 0x88000000                                     
       Loading Device Tree to 8fff4000, end 8fffffb8 ... OK                         
                                                                                    
    Starting kernel ...                                                             
                                                                                    
                                                                                    
     _____                    _____           _         _                           
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_                         
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|                        
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|                          
                  |___|                    |___|                                    
                                                                                    
    Arago Project http://arago-project.org am335x-evm /dev/ttyO0                    
                                                                                    
    Arago 2016.02 am335x-evm /dev/ttyO0                                             
                                                                                    
    am335x-evm login: root                                                          
    root@am335x-evm:~# cd/                                                          
    -sh: cd/: not found                                                             
    root@am335x-evm:~# cd /                                                         
    root@am335x-evm:/# ls                                                           
    bin         etc         init        mnt         sbin        usr                 
    boot        flasher.sh  lib         proc        sys         var                 
    dev         home        media       run         tmp                             
    root@am335x-evm:/# [  133.240259] random: crng init done  
    root@am335x-evm:/

    So it looks that the flasher image is loaded correctly but the flasher script doesn't start automatically.. I tried to launch it but I get:

    root@am335x-evm:/# ./flasher.sh                                                
    sh: ./: Permission denied

    The Arago Project logo appears after 30 seconds approximately without boot messages.

    Thank you very much for your support.

    Regards,

    Davide Brunelli

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.