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: Programming the eMMC on Beaglebone Black for production

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

  • Hello Davide,

    You can find all the missing files attached here in this thread. This patch 0001-Change-finduuid-to-use-mmcdev.patch.gz is already applied to the latest Processor SDK versions. am335x_evm_usbspl_defconfig is no longer needed since the SPL USBETH support is already enable in the default am335x_evm_defconfig.

    Best regards,
    Kemal

  • Hello Davide,

    Can you provide a feedback? Was you able to download these missing files?

    Best regards,
    Kemal
  • Hello Kemal,

    thank you for your link. I've read the documentation, and as first step, I followed Ubuntu_12.04_Set_Up_to_Network_Boot_an_AM335x_Based_Platform for setting up the host. I'm trying to boot from USB connection.

    I've got some doubts:

    1. As explained in point 8, When I restart isc-dhcp-server or tftpd-hpa, I get:
      davide@davide-HP-ProBook-450-G5:/etc/default$ restart isc-dhcp-server
      restart: Job sconosciuto: isc-dhcp-server
      davide@davide-HP-ProBook-450-G5:/etc/default$ restart tftpd-hpa
      restart: Job sconosciuto: tftpd-hpa
      Is it normal to get the error Job Unkown for them?
    2. At the end of the procedure, if I write ifconfig, I don't see an usb0 connection in the list is it correct? I thought that it was supposed to appear in the list with its static address..

    Aside these questions, I don't understand completely the procedure that using a flasher image loads the actual image. For instance,

    1. The Beaglebone Black, in default mode (S2 not pressed) tries to boot from
          MMC1 (onboard eMMC),
          MMC0 (microSD),
          UART0,
          USB0.
      else if with S2 Pressed it becomes:
          SPI0,
          MMC0 (microSD),
          UART0,
          USB0.
      How can it reach the USB0 booting mode avoiding UART0 booting?
    2. Regarding the following procedure
      I don't understand the step by step list of operations to do after that all the needed files are placed in /tftpboot.
      As example, what is the eMMC content before Programming the flash? Can it be empty?
      As we turn on the board, is it necessary to keep Boot button pressed, or it expects to boot from USB thanks to the settings applied in Program the Flash?
      And so on...

    Thank you for your help.

    Best Regards,

    DAvide Brunelli

  • Davide,

    Davide Brunelli said:

    I've got some doubts:

    1. As explained in point 8, When I restart isc-dhcp-server or tftpd-hpa, I get:
      davide@davide-HP-ProBook-450-G5:/etc/default$ restart isc-dhcp-server
      restart: Job sconosciuto: isc-dhcp-server
      davide@davide-HP-ProBook-450-G5:/etc/default$ restart tftpd-hpa
      restart: Job sconosciuto: tftpd-hpa
      Is it normal to get the error Job Unkown for them?
    2. At the end of the procedure, if I write ifconfig, I don't see an usb0 connection in the list is it correct? I thought that it was supposed to appear in the list with its static address..

    On #1, can you try "sudo service isc-dhcp-server restart"? And the same for tftpd-hpa?

    On #2, you will only see usb0 listed if it is active. The ROM times out, so it connects and disconnects. You will only see usb0 when it is connected.

    Davide Brunelli said:

    Aside these questions, I don't understand completely the procedure that using a flasher image loads the actual image. For instance,

    1. The Beaglebone Black, in default mode (S2 not pressed) tries to boot from
          MMC1 (onboard eMMC),
          MMC0 (microSD),
          UART0,
          USB0.
      else if with S2 Pressed it becomes:
          SPI0,
          MMC0 (microSD),
          UART0,
          USB0.
      How can it reach the USB0 booting mode avoiding UART0 booting?

    It reaches USB0 because UART0 times out (assuming you are not sending any files to allow it to proceed).

    Davide Brunelli said:
    I don't understand the step by step list of operations to do after that all the needed files are placed in /tftpboot.
    As example, what is the eMMC content before Programming the flash? Can it be empty?
    As we turn on the board, is it necessary to keep Boot button pressed, or it expects to boot from USB thanks to the settings applied in Program the Flash?
    And so on...

    the eMMC is expected to be empty as this is a procedure largely for programming boards for production. For the black, if the eMMC is empty, it should reach USB0 boot without pushing the button. I usually go ahead and push it as I often don't remember the state of the eMMC on a given board. You only need to push it long enough to get going. I usually hold it down until I see the SPL console come up on the console. SPL will then attempt to load U-Boot much like a normal booting procedure.

    I hope this helps.

  • Hello Ron, thanks for the information.

    Using "sudo service isc-dhcp-server restart" works, it doesn't complain.

    Regarding the kernel modifications shown in the guide, they are quite different compare with recent versions of menuconfig, especially the path Device Drivers -> USB Support -> USB Gadget Support -> USB Gadget Driver. In attachment you can fing myConfig file, could you check it? Or send me a screenshot?

    I've erase completely the eMMC memory and the SDcard is not inserted. For information, so far I've always used U-Boot files, MLO and u-boot.img for booting, not SPL.

    If I turn on the board, I see only CCCCC that comes up after a while (waiting for UART, I suppose), then they stop, but no console comes up. After all, if there is nothing in eMMC and SDcard, I don't think it's possible to have a console. What I'm doing wrong?

    Thank you for your support.

    0820.myConfig.txt

  • The only solution that I can think is the following:
    - The flasher image must be put in an SDcard (eMMC is empty since it's a new board)
    - Boot normally from SDcard
    - Interrupt the uBoot and follow Program the Flash step, described in Sitara_Linux_Program_the_eMMC_on_Beaglebone_Black.
    - The board search for the the flasher script in \tftboot folder
    - The actual image is transfer with USB and copied to eMMC

    This process has sense, but I don't get when the button S2 has to be pressed for booting from USB0.
    It's not clear what are the steps to follow after that all the needed files are placed in /tftpboot..
  • Davide,

    Davide Brunelli said:

    I've erase completely the eMMC memory and the SDcard is not inserted. For information, so far I've always used U-Boot files, MLO and u-boot.img for booting, not SPL.

    If I turn on the board, I see only CCCCC that comes up after a while (waiting for UART, I suppose), then they stop, but no console comes up. After all, if there is nothing in eMMC and SDcard, I don't think it's possible to have a console. What I'm doing wrong?

    You need to use the .bin, not MLO. The prebuilt images that come with the SDK should network boot on the Black just fine. No need to rebuild anything. The are in the board-support/prebuilt-images directory.

    Please give the prebuilts a try and use the .bin instead of MLO. 

    Your SDCard method could work equally as well. If you are truly using a Black, then that is probably the better method. Instead of TFTPing, you can just put all of the images you want ot put on the eMMC on the SDCard.

    I hope this is helpful to you.

  • Hello Ron,

    thank you for your message.

    At the moment, when I turn on the board (keeping the S2 button pressed), I see the letters "CCCC" that come up on the console and after a while they stop.

    Then I see a new connection with the command ifconfig as you can see below which I suppose it's the USB:

    enp0s20f0u1u4 Link encap:Ethernet  IndirizzoHW 5a:d4:e6:b5:85:72  
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:2 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisioni:0 txqueuelen:1000
              Byte RX:784 (784.0 B)  Byte TX:0 (0.0 B)

    The console doesn't show anything more. How can it connect to /tftpboot folder on my PC and boot?

    On my PC I put all the files in /tftpboot as the guide explains..

    Thank you.

    Best Regards,

    Davide Brunelli

  • Davide,

    What version of Linux are you running on your host?

    Thanks.
  • Hello Ron,
    I've done some steps forward.
    Following this link askubuntu.com/.../changing-network-interfaces-name-ubuntu-16-04, I could avoid that Ubuntu 16.04 renamed my network interfaces.
    Now I have the following:

    usb0 Link encap:Ethernet IndirizzoHW 0e:f0:76:cc:6b:88
    indirizzo inet:192.168.2.1 Bcast:192.168.2.255 Maschera:255.255.255.0
    indirizzo inet6: fe80::7245:2097:5452:6783/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:1 dropped:0 overruns:0 frame:1
    TX packets:33 errors:0 dropped:0 overruns:0 carrier:0
    collisioni:0 txqueuelen:1000
    Byte RX:0 (0.0 B) Byte TX:6627 (6.6 KB)

    One more thing that I discovered: if I type sudo service xinetd status, I get the following error

    ● xinetd.service - LSB: Starts or stops the xinetd daemon.
    Loaded: loaded (/etc/init.d/xinetd; bad; vendor preset: enabled)
    Active: active (running) since mer 2019-01-09 14:40:58 CET; 12min ago
    Docs: man:systemd-sysv-generator(8)
    Process: 12311 ExecStop=/etc/init.d/xinetd stop (code=exited, status=0/SUCCESS)
    Process: 11776 ExecReload=/etc/init.d/xinetd reload (code=exited, status=0/SUCCESS)
    Process: 12323 ExecStart=/etc/init.d/xinetd start (code=exited, status=0/SUCCESS)
    CGroup: /system.slice/xinetd.service
    └─12339 /usr/sbin/xinetd -pidfile /run/xinetd.pid -stayalive -inetd_compat -inetd_ipv6

    gen 09 14:40:58 davide-HP-ProBook-450-G5 xinetd[12339]: removing discard
    gen 09 14:40:58 davide-HP-ProBook-450-G5 xinetd[12339]: removing discard
    gen 09 14:40:58 davide-HP-ProBook-450-G5 xinetd[12339]: removing echo
    gen 09 14:40:58 davide-HP-ProBook-450-G5 xinetd[12339]: removing echo
    gen 09 14:40:58 davide-HP-ProBook-450-G5 xinetd[12339]: removing time
    gen 09 14:40:58 davide-HP-ProBook-450-G5 xinetd[12339]: removing time
    gen 09 14:40:58 davide-HP-ProBook-450-G5 xinetd[12339]: bind failed (Address already in use (errno = 98)). service = tft
    gen 09 14:40:58 davide-HP-ProBook-450-G5 xinetd[12339]: Service tftp failed to start and is deactivated.
    gen 09 14:40:58 davide-HP-ProBook-450-G5 xinetd[12339]: xinetd Version 2.3.15 started with libwrap loadavg options compi
    gen 09 14:40:58 davide-HP-ProBook-450-G5 xinetd[12339]: Started working: 0 available services

    Can be helpful?

    Thank you.
  • 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.
  • 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.

  • 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

  • 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.
  • 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

  • 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.
  • 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

  • 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
  • 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.
  • 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

  • Davide,

    Great progress! Did you check to see what the permissions were on the flasher script. You may need to make it executable. The command 'ls -ls' should list what is needed.

    Hope this helps.
  • Hello Ron,

    thank you for your answer.

    This is the content of /tftpboot folder with the permission:

    davide@davide-HP-ProBook-450-G5:/tftpboot$ ls -ls
    totale 768740
        36 -rwxrwxrwx 1 nobody root       36793 gen 18 11:09 am335x-boneblack.dtb
        40 -rwxrwxrwx 1 nobody root       37268 gen  2 14:39 am335x-boneblack-pru-adc.dtb
        40 -rwxrwxrwx 1 nobody root       38010 gen  2 14:39 am335x-boneblack-wireless.dtb
        36 -rwxrwxrwx 1 nobody root       35896 gen  2 14:39 am335x-boneblue.dtb
        36 -rwxrwxrwx 1 nobody root       35077 gen  2 14:39 am335x-bone.dtb
        36 -rwxrwxrwx 1 nobody root       35301 gen  2 14:39 am335x-bonegreen.dtb
        36 -rwxrwxrwx 1 nobody root       36618 gen  2 14:39 am335x-bonegreen-wireless.dtb
        44 -rwxrwxrwx 1 nobody root       41355 gen  2 14:39 am335x-evm.dtb
        40 -rwxrwxrwx 1 nobody root       40021 gen  2 14:39 am335x-evmsk.dtb
        40 -rwxrwxrwx 1 nobody root       37192 gen  2 14:39 am335x-icev2.dtb
        40 -rwxrwxrwx 1 nobody root       37379 gen  2 14:39 am335x-icev2-prueth.dtb
        40 -rwxrwxrwx 1 nobody root       39728 gen  2 14:39 am335x-icev2-pru-excl-uio.dtb
       280 -rwxrwxrwx 1 nobody davide    284526 gen  8 15:04 boot_partition.tar.gz
         8 -rwxrwxrwx 1 nobody root        7105 gen 16 13:46 flasher.sh
    756648 -rwxrwxrwx 1 nobody davide 774800892 gen  8 15:05 tisdk-rootfs-image-am335x-evm.tar.xz
       632 -rwxrwxrwx 1 nobody davide    646040 gen 18 13:55 u-boot-restore.img
       108 -rwxrwxrwx 1 nobody davide    109352 gen 18 13:55 u-boot-spl-restore.bin
      6828 -rwxrwxrwx 1 nobody root     6988288 gen 18 14:30 zImage
      3772 -rwxrwxrwx 1 nobody root     3858944 gen  2 14:39 zImage-am335x-evm.bin

    On the other hand on beaglebone:

    root@am335x-evm:/# ls  -ls                                                                                      
         0 drwxr-xr-x    2 1000     tisdk         1440 Jan 18  2019 bin                                             
         0 drwxr-xr-x    2 1000     tisdk           40 Jan 18  2019 boot                                            
         0 drwxr-xr-x    9 root     root         13200 Feb 26 20:33 dev                                             
         0 drwxr-xr-x   18 1000     tisdk         1160 Jan  1  1970 etc                                             
         0 -rw-r--r--    1 root     root             0 Feb 26 20:33 flasher.sh                                      
         0 drwxr-xr-x    3 1000     tisdk           60 Jan 18  2019 home                                            
         0 lrwxrwxrwx    1 1000     tisdk           10 Jan 18  2019 init -> /sbin/init                              
         0 drwxr-xr-x    5 1000     tisdk          800 Jan 18  2019 lib                                             
         0 drwxr-xr-x    2 1000     tisdk           40 Jan 18  2019 media                                           
         0 drwxr-xr-x    2 1000     tisdk           40 Jan 18  2019 mnt                                             
         0 dr-xr-xr-x   63 root     root             0 Jan  1  1970 proc                                            
         0 drwxr-xr-x    5 root     root           240 Feb 26 20:33 run                                             
         0 drwxr-xr-x    2 1000     tisdk         1100 Jan 18  2019 sbin                                            
         0 dr-xr-xr-x   12 root     root             0 Jan  1  1970 sys                                             
         0 lrwxrwxrwx    1 root     root             8 Jan  1  1970 tmp -> /var/tmp                                 
         0 drwxr-xr-x    9 1000     tisdk          180 Jan 18  2019 usr                                             
         0 drwxr-xr-x    7 1000     tisdk          220 Jan 18  2019 var 

    As you can see root is the owner of the file, but I cannot execute the script. When I tried to read it with vi, I see an empty file (the flasher script is not empy in my PC host).

    I tried to change the permission as follow chmod 777 flasher.sh and I get 0 -rwxrwxrwx    1 root     root             0 Feb 26 20:33 flasher.sh

    If I try to read it, it shows again an empty file, if I try to execute it, it doesn't show Permission Denied but it simply return.

    What do you suggest?

    Thank you for your support.

    Best Regards,

    Davide Brunelli

  • Davide,

    Are you copying flasher.sh in an init script? If not, how are you copying it?

    What happens if you try to get it again? It seems that it is not transferring successfully.
  • Hello Ron,

    thank you for your email.

    Actually the flasher script should be searched and copied by the fetcher script as explained by the guide, however typing dmesg on Beaglebone, I don't see any trace of fetcher script:

    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 4.14.67-gd315a9bb00 (root@davide-HP-ProBook-450-G5) (gcc version 7.2.1 20171011 (Lin9
    [    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [    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] On node 0 totalpages: 131072
    [    0.000000] free_area_init_node: node 0, pgdat c104db78, node_mem_map dcb61000
    [    0.000000]   Normal zone: 1152 pages used for memmap
    [    0.000000]   Normal zone: 0 pages reserved
    [    0.000000]   Normal zone: 131072 pages, LIFO batch:31
    [    0.000000] CPU: All CPU(s) started in SVC mode.
    [    0.000000] AM335X ES2.1 (sgx neon)
    [    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
    [    0.000000] pcpu-alloc: [0] 0 
    [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 129920
    [    0.000000] Kernel command line: 
    [    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: 453844K/524288K available (8192K kernel code, 321K rwdata, 2496K rodata, 4096K init, 275K )
    [    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 - 0xc1000000   (4096 kB)                                                  
    [    0.000000]       .data : 0xc1000000 - 0xc1050408   ( 322 kB)                                                  
    [    0.000000]        .bss : 0xc1050408 - 0xc10951cc   ( 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 interrupts                                
    [    0.000000] OMAP clockevent source: timer2 at 24000000 Hz                                                      
    [    0.000015] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns                          
    [    0.000032] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns          
    [    0.000041] OMAP clocksource: timer1 at 24000000 Hz                                                            
    [    0.000194] timer_probe: no matching timers found                                                              
    [    0.000379] Console: colour dummy device 80x30                                                                 
    [    0.000890] console [tty0] enabled                                                                             
    [    0.000930] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)                                            
    [    0.089242] pid_max: default: 32768 minimum: 301                                                               
    [    0.089417] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)                                        
    [    0.089442] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)                                   
    [    0.090192] CPU: Testing write buffer coherency: ok                                                            
    [    0.090879] Setting up static identity map for 0x80100000 - 0x80100060                                         
    [    0.091042] Hierarchical SRCU implementation.                                                                  
    [    0.091360] EFI services will not be available.                                                                
    [    0.092493] devtmpfs: initialized                                                                              
    [    0.099042] random: get_random_u32 called from bucket_table_alloc+0x8c/0x1ac with crng_init=0                  
    [    0.099544] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3                            
    [    0.099846] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns   
    [    0.099890] futex hash table entries: 256 (order: -1, 3072 bytes)                                              
    [    0.103187] pinctrl core: initialized pinctrl subsystem                                                        
    [    0.103881] DMI not present or invalid.                                                                        
    [    0.104270] NET: Registered protocol family 16                                                                 
    [    0.106131] DMA: preallocated 256 KiB pool for atomic coherent allocations                                     
    [    0.118556] omap_hwmod: debugss: _wait_target_disable failed                                                   
    [    0.170785] cpuidle: using governor ladder                                                                     
    [    0.170839] cpuidle: using governor menu                                                                       
    [    0.174346] gpio gpiochip0: (gpio): added GPIO chardev (254:0)                                                 
    [    0.174432] gpiochip_setup_dev: registered GPIOs 0 to 31 on device: gpiochip0 (gpio)                           
    [    0.174490] OMAP GPIO hardware version 0.1                                                                     
    [    0.175243] gpio gpiochip1: (gpio): added GPIO chardev (254:1)                                                 
    [    0.175315] gpiochip_setup_dev: registered GPIOs 32 to 63 on device: gpiochip1 (gpio)                          
    [    0.175991] gpio gpiochip2: (gpio): added GPIO chardev (254:2)                                                 
    [    0.176059] gpiochip_setup_dev: registered GPIOs 64 to 95 on device: gpiochip2 (gpio)                          
    [    0.176680] gpio gpiochip3: (gpio): added GPIO chardev (254:3)                                                 
    [    0.176768] gpiochip_setup_dev: registered GPIOs 96 to 127 on device: gpiochip3 (gpio)                         
    [    0.183386] No ATAGs?                                                                                          
    [    0.183403] hw-breakpoint: debug architecture 0x4 unsupported.                                                 
    [    0.194565] edma 49000000.edma: TI EDMA DMA engine driver                                                      
    [    0.195099] of_get_named_gpiod_flags: can't parse 'gpio' property of node '/fixedregulator0[0]'                
    [    0.197323] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800e
    [    0.197424] omap_i2c 4819c000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800e
    [    0.197559] media: Linux media interface: v0.10                                                                
    [    0.197608] Linux video capture interface: v2.00                                                               
    [    0.197715] pps_core: LinuxPPS API ver. 1 registered                                                           
    [    0.197734] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>           
    [    0.197773] PTP clock support registered                                                                       
    [    0.197811] EDAC MC: Ver: 3.0.0                                                                                
    [    0.198278] dmi: Firmware registration failed.                                                                 
    [    0.198679] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400                                              
    [    0.198998] Advanced Linux Sound Architecture Driver Initialized.                                              
    [    0.200122] clocksource: Switched to clocksource timer1                                                        
    [    0.207067] NET: Registered protocol family 2                                                                  
    [    0.207754] TCP established hash table entries: 4096 (order: 2, 16384 bytes)                                   
    [    0.207818] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)                                          
    [    0.207868] TCP: Hash tables configured (established 4096 bind 4096)                                           
    [    0.207966] UDP hash table entries: 256 (order: 0, 4096 bytes)                                                 
    [    0.207995] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)                                            
    [    0.208144] NET: Registered protocol family 1                                                                  
    [    0.208565] RPC: Registered named UNIX socket transport module.                                                
    [    0.208592] RPC: Registered udp transport module.                                                              
    [    0.208608] RPC: Registered tcp transport module.                                                              
    [    0.208624] RPC: Registered tcp NFSv4.1 backchannel transport module.                                          
    [    0.208648] PCI: CLS 0 bytes, default 64                                                                       
    [    0.415674] hw perfevents: no interrupt-affinity property for /pmu, guessing.                                  
    [    0.415851] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available                       
    [    0.417272] workingset: timestamp_bits=14 max_order=17 bucket_order=3                                          
    [    0.421349] squashfs: version 4.0 (2009/01/31) Phillip Lougher                                                 
    [    0.422036] NFS: Registering the id_resolver key type                                                          
    [    0.422096] Key type id_resolver registered                                                                    
    [    0.422113] Key type id_legacy registered                                                                      
    [    0.422167] ntfs: driver 2.1.32 [Flags: R/O].                                                                  
    [    0.424007] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)                               
    [    0.424055] io scheduler noop registered                                                                       
    [    0.424071] io scheduler deadline registered                                                                   
    [    0.424273] io scheduler cfq registered (default)                                                              
    [    0.424296] io scheduler mq-deadline registered                                                                
    [    0.424312] io scheduler kyber registered                                                                      
    [    0.425520] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568                                   
    [    0.427605] of_get_named_gpiod_flags: parsed 'enable-gpios' property of node '/clk_mcasp0[0]' - status (0)     
    [    0.469840] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled                                          
    [    0.472770] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 30, base_baud = 3000000) is a 8250                
    [    7.808902] console [ttyS0] enabled                                                                            
    [    7.852616] omap_rng 48310000.rng: Random Number Generator ver. 20                                             
    [    7.938060] brd: module loaded                                                                                 
    [    7.980937] loop: module loaded                                                                                
    [    8.020756] mdio_bus fixed-0: GPIO lookup for consumer reset                                                   
    [    8.020767] mdio_bus fixed-0: using lookup tables for GPIO lookup                                              
    [    8.020774] mdio_bus fixed-0: lookup for GPIO reset failed                                                     
    [    8.020794] libphy: Fixed MDIO Bus: probed                                                                     
    [    8.085290] mdio_bus 4a101000.mdio: GPIO lookup for consumer reset                                             
    [    8.085302] mdio_bus 4a101000.mdio: using lookup tables for GPIO lookup                                        
    [    8.085308] mdio_bus 4a101000.mdio: lookup for GPIO reset failed                                               
    [    8.140201] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6, bus freq 1000000                            
    [    8.232770] davinci_mdio 4a101000.mdio: detected phy mask fffffffe                                             
    [    8.313081] libphy: 4a101000.mdio: probed                                                                      
    [    8.361649] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver SMSC LAN8710/LAN8720           
    [    8.473150] cpsw 4a100000.ethernet: Detected MACID = e8:eb:11:27:b9:2b                                         
    [    8.552264] cpsw 4a100000.ethernet: initialized cpsw ale version 1.4                                           
    [    8.629086] cpsw 4a100000.ethernet: ALE Table size 1024                                                        
    [    8.692235] cpsw 4a100000.ethernet: cpts: overflow check period 500 (jiffies)                                  
    [    8.787390] i2c /dev entries driver                                                                            
    [    8.830027] IR NEC protocol handler initialized                                                                
    [    8.884768] IR RC5(x/sz) protocol handler initialized                                                          
    [    8.945846] IR RC6 protocol handler initialized                                                                
    [    9.000550] IR JVC protocol handler initialized                                                                
    [    9.055242] IR Sony protocol handler initialized                                                               
    [    9.110984] IR SANYO protocol handler initialized                                                              
    [    9.167781] IR Sharp protocol handler initialized                                                              
    [    9.224576] IR MCE Keyboard/mouse protocol handler initialized                                                 
    [    9.295031] IR XMP protocol handler initialized                                                                
    [    9.351228] cpuidle: enable-method property 'ti,am3352' found operations                                       
    [    9.432618] sdhci: Secure Digital Host Controller Interface driver                                             
    [    9.507313] sdhci: Copyright(c) Pierre Ossman                                                                  
    [    9.560360] omap_hsmmc 48060000.mmc: GPIO lookup for consumer cd                                               
    [    9.560368] omap_hsmmc 48060000.mmc: using device tree for GPIO lookup                                         
    [    9.560400] of_get_named_gpiod_flags: parsed 'cd-gpios' property of node '/ocp/mmc@48060000[0]' - status (0)   
    [    9.560469] omap_hsmmc 48060000.mmc: Got CD GPIO                                                               
    [    9.616260] omap_hsmmc 48060000.mmc: GPIO lookup for consumer wp                                               
    [    9.616265] omap_hsmmc 48060000.mmc: using device tree for GPIO lookup                                         
    [    9.616277] of_get_named_gpiod_flags: can't parse 'wp-gpios' property of node '/ocp/mmc@48060000[0]'           
    [    9.616285] of_get_named_gpiod_flags: can't parse 'wp-gpio' property of node '/ocp/mmc@48060000[0]'            
    [    9.616290] omap_hsmmc 48060000.mmc: using lookup tables for GPIO lookup                                       
    [    9.616298] omap_hsmmc 48060000.mmc: lookup for GPIO wp failed                                                 
    [    9.670959] omap_hsmmc 481d8000.mmc: GPIO lookup for consumer cd                                               
    [    9.670971] omap_hsmmc 481d8000.mmc: using device tree for GPIO lookup                                         
    [    9.670987] of_get_named_gpiod_flags: can't parse 'cd-gpios' property of node '/ocp/mmc@481d8000[0]'           
    [    9.670995] of_get_named_gpiod_flags: can't parse 'cd-gpio' property of node '/ocp/mmc@481d8000[0]'            
    [    9.671001] omap_hsmmc 481d8000.mmc: using lookup tables for GPIO lookup                                       
    [    9.671008] omap_hsmmc 481d8000.mmc: lookup for GPIO cd failed                                                 
    [    9.671016] omap_hsmmc 481d8000.mmc: GPIO lookup for consumer wp                                               
    [    9.671020] omap_hsmmc 481d8000.mmc: using device tree for GPIO lookup                                         
    [    9.671027] of_get_named_gpiod_flags: can't parse 'wp-gpios' property of node '/ocp/mmc@481d8000[0]'           
    [    9.671034] of_get_named_gpiod_flags: can't parse 'wp-gpio' property of node '/ocp/mmc@481d8000[0]'            
    [    9.671039] omap_hsmmc 481d8000.mmc: using lookup tables for GPIO lookup                                       
    [    9.671044] omap_hsmmc 481d8000.mmc: lookup for GPIO wp failed                                                 
    [    9.730368] sdhci-pltfm: SDHCI platform and OF driver helper                                                   
    [    9.802947] of_get_named_gpiod_flags: parsed 'gpios' property of node '/leds/led2[0]' - status (0)             
    [    9.802963] no flags found for gpios                                                                           
    [    9.803156] of_get_named_gpiod_flags: parsed 'gpios' property of node '/leds/led3[0]' - status (0)             
    [    9.803163] no flags found for gpios                                                                           
    [    9.803271] of_get_named_gpiod_flags: parsed 'gpios' property of node '/leds/led4[0]' - status (0)             
    [    9.803277] no flags found for gpios                                                                           
    [    9.803359] of_get_named_gpiod_flags: parsed 'gpios' property of node '/leds/led5[0]' - status (0)             
    [    9.803365] no flags found for gpios                                                                           
    [    9.803735] ledtrig-cpu: registered to indicate activity on CPUs                                               
    [    9.881860] NET: Registered protocol family 10                                                                 
    [    9.938871] Segment Routing with IPv6                                                                          
    [    9.983278] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver                                                
    [   10.055538] NET: Registered protocol family 17                                                                 
    [   10.109553] Key type dns_resolver registered                                                                   
    [   10.161257] omap_voltage_late_init: Voltage driver support not added                                           
    [   10.254106] mmc1: new high speed MMC card at address 0001                                                      
    [   10.319417] random: fast init done                                                                             
    [   10.361236] mmcblk1: mmc1:0001 M62704 3.56 GiB                                                                 
    [   10.416811] mmcblk1boot0: mmc1:0001 M62704 partition 1 2.00 MiB                                                
    [   10.489017] mmcblk1boot1: mmc1:0001 M62704 partition 2 2.00 MiB                                                
    [   10.560875] mmcblk1rpmb: mmc1:0001 M62704 partition 3 512 KiB                                                  
    [   10.638493] tps65217 0-0024: TPS65217 ID 0xe version 1.2                                                       
    [   10.842493] tda998x 0-0070: found TDA19988                                                                     
    [   10.893113] tilcdc 4830e000.lcdc: bound 0-0070 (ops tda998x_ops)                                               
    [   10.965731] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).                                        
    [   11.045652] [drm] No driver support for vblank timestamp query.                                                
    [   11.117512] [drm] Cannot find any crtc or sizes                                                                
    [   11.172794] [drm] Initialized tilcdc 1.0.0 20121205 for 4830e000.lcdc on minor 0                               
    [   11.262370] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz                                                    
    [   11.331504] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 100 kHz                                                    
    [   11.402899] hctosys: unable to open rtc device (rtc0)                                                          
    [   11.464585] ALSA device list:                                                                                  
    [   11.500505]   No soundcards found.                                                                             
    [   11.541664] Warning: unable to open an initial console.                                                        
    [   11.609090] Freeing unused kernel memory: 4096K                                                                
    [   12.240870] [drm] Cannot find any crtc or sizes                                                                
    [   12.501583] udevd[79]: starting version 182                                                                    
    [   15.227976] random: dd: uninitialized urandom read (512 bytes read)                                            
    [   16.403811] net eth0: initializing cpsw version 1.12 (0)                                                       
    [   16.571221] SMSC LAN8710/LAN8720 4a101000.mdio:00: attached PHY driver [SMSC LAN8710/LAN8720] (mii_bus:phy_add)
    [   16.731188] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready                 

    I tried to retrieve the flasher.sh script from the server with the following command: tftp -g -r flasher.sh 192.168.2.1 but I get tftp: sendto: Network is unreachable

    Besides, typing service tftpd-hpa status, I get the following:

    ● tftpd-hpa.service - LSB: HPA's tftp server
       Loaded: loaded (/etc/init.d/tftpd-hpa; bad; vendor preset: enabled)
       Active: failed (Result: exit-code) since mer 2019-01-23 08:46:44 CET; 15s ago
         Docs: man:systemd-sysv-generator(8)
      Process: 3777 ExecStart=/etc/init.d/tftpd-hpa start (code=exited, status=67)

    gen 23 08:46:44 davide-HP-ProBook-450-G5 systemd[1]: Starting LSB: HPA's tftp server...
    gen 23 08:46:44 davide-HP-ProBook-450-G5 tftpd-hpa[3777]:  * Starting HPA's tftpd in.tftpd
    gen 23 08:46:44 davide-HP-ProBook-450-G5 systemd[1]: tftpd-hpa.service: Control process exite
    gen 23 08:46:44 davide-HP-ProBook-450-G5 systemd[1]: Failed to start LSB: HPA's tftp server.
    gen 23 08:46:44 davide-HP-ProBook-450-G5 systemd[1]: tftpd-hpa.service: Unit entered failed s
    gen 23 08:46:44 davide-HP-ProBook-450-G5 systemd[1]: tftpd-hpa.service: Failed with result 'e
    gen 23 08:46:54 davide-HP-ProBook-450-G5 systemd[1]: Stopped LSB: HPA's tftp server.

    And typing service isc-dhcp-server status, I get the following:

    ● isc-dhcp-server.service - ISC DHCP IPv4 server
       Loaded: loaded (/lib/systemd/system/isc-dhcp-server.service; enabled; vendor preset: enabl
       Active: failed (Result: exit-code) since mer 2019-01-23 08:32:18 CET; 13min ago
         Docs: man:dhcpd(8)
      Process: 3481 ExecStart=/bin/sh -ec      CONFIG_FILE=/etc/dhcp/dhcpd.conf;      if [ -f /et
     Main PID: 3481 (code=exited, status=1/FAILURE)

    gen 23 08:32:18 davide-HP-ProBook-450-G5 sh[3481]: Not configured to listen on any interfaces
    gen 23 08:32:18 davide-HP-ProBook-450-G5 sh[3481]: If you think you have received this messag
    gen 23 08:32:18 davide-HP-ProBook-450-G5 sh[3481]: than a configuration issue please read the
    gen 23 08:32:18 davide-HP-ProBook-450-G5 sh[3481]: bugs on either our web page at www.isc.org
    gen 23 08:32:18 davide-HP-ProBook-450-G5 sh[3481]: before submitting a bug.  These pages expl
    gen 23 08:32:18 davide-HP-ProBook-450-G5 sh[3481]: process and the information we find helpfu
    gen 23 08:32:18 davide-HP-ProBook-450-G5 sh[3481]: exiting.
    gen 23 08:32:18 davide-HP-ProBook-450-G5 systemd[1]: isc-dhcp-server.service: Main process ex
    gen 23 08:32:18 davide-HP-ProBook-450-G5 systemd[1]: isc-dhcp-server.service: Unit entered fa
    gen 23 08:32:18 davide-HP-ProBook-450-G5 systemd[1]: isc-dhcp-server.service: Failed with res

    Trying to restart these services, they don't restart properly. Even restarting the network manager script doesn't solve.

    As last test, I tried to copy manually the content of the flasher script from my PC to the Beaglebone file and then launch it. I get the following:

    ****************************************************
    ****************************************************

    Sitara Example Flashing Script - 06/16/2015

    Getting files from server:
    BusyBox v1.23.1 (2016-02-26 14:04:36 CST) multi-call binary.

    Usage: tftp [OPTIONS] HOST [PORT]

    Command exited with non-zero status 1
    real    0m 0.02s
    user    0m 0.00s
    sys     0m 0.00s
    1+0 records in
    1+0 records out
    BusyBox v1.23.1 (2016-02-26 14:04:36 CST) multi-call binary.

    Usage: tftp [OPTIONS] HOST [PORT]

    Command exited with non-zero status 1
    real    0m 0.01s
    user    0m 0.00s
    sys     0m 0.00s
    (standard_in) 1: parse error
    No partition found. Continuing.
    Partitioning the eMMC...
    sfdisk: invalid cylinders argument: '/dev/mmcblk1'
    No partition found. Continuing.
    1+0 records in
    1+0 records out
    Formatting the eMMC into 2 partitions...
    mkfs.vfat 2.11 (12 Mar 2005)
    mkfs.vfat: Too few blocks for viable file system
    mke2fs 1.42.9 (28-Dec-2013)
    Could not stat /dev/mmcblk1p2 --- No such file or directory

    The device apparently does not exist; did you specify it correctly?
    Formatting done.
    [ 1098.164849] print_req_error: I/O error, dev loop0, sector 0
    mount: mounting /dev/loop0 on tmp_boot failed: Invalid argument
    mount: mounting /dev/mmcblk1p2 on tmp_rootfs failed: No such file or directory
    Copying Files...
    tar: can't open 'boot_partition.tar.gz': No such file or directory
    Command exited with non-zero status 1
    real    0m 0.00s
    user    0m 0.00s
    sys     0m 0.00s
    umount: can't umount /dev/mmcblk1p1: Invalid argument
    Boot partition done.
    tar: can't open 'tisdk-rootfs-image-am335x-evm.tar.xz': No such file or directoy
    Command exited with non-zero status 1
    real    0m 0.00s
    user    0m 0.00s
    sys     0m 0.00s
    umount: can't umount /dev/mmcblk1p2: No such file or directory
    Rootfs partition done.
    It took 2 seconds to complete this task...
    BusyBox v1.23.1 (2016-02-26 14:04:36 CST) multi-call binary.

    Usage: tftp [OPTIONS] HOST [PORT]


    ********************************************
    Sitara Example Flash Script is complete.

    Have you got any advices.

    Thank you for your help.

    Best Regards,

    Davide Brunelli

  • Davide,

    What do you get from "ifconfig -a" on the Beaglebone Black? You've got to get a network interface up and functional for any of the other scripts to work.

    Is this a real Beaglebone Black, or a custom board based off of it?

    Thanks.
  • Hello Ron,

    thank you for your answer.  

    I confirm you that this is a real Beaglebone Black rev.3, not a custom board.

    Trying the command ifconfig -a on Beaglebone Black I get the following:

    eth0      Link encap:Ethernet  HWaddr E8:EB:11:27:B9:2B  

             UP BROADCAST MULTICAST  MTU:1500  Metric:1

             RX packets:0 errors:0 dropped:0 overruns:0 frame:0

             TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

             collisions:0 txqueuelen:1000

             RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

             Interrupt:45

    lo        Link encap:Local Loopback  

             inet addr:127.0.0.1  Mask:255.0.0.0

             inet6 addr: ::1/128 Scope:Host

             UP LOOPBACK RUNNING  MTU:65536  Metric:1

             RX packets:0 errors:0 dropped:0 overruns:0 frame:0

             TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

             collisions:0 txqueuelen:1000

             RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

    sit0      Link encap:IPv6-in-IPv4  

             NOARP  MTU:1480  Metric:1

             RX packets:0 errors:0 dropped:0 overruns:0 frame:0

             TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

             collisions:0 txqueuelen:1000

             RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

    I also report what I get when I shutdown the Beaglebone, which states that the usb0 not configured:

    root@am335x-evm:~# shutdown -h now

    INIT: Switching to ru

    Broadcast message from root@am335x-evm (ttyS0) (Fri Feb 26 20:40:03 2016):

    The system is going down for system halt NOW!

    hwclock: can't open '/dev/misc/rtc': No such file or directory

    Stopping syslogd/klogd: stopped syslogd (pid 514)

    stopped klogd (pid 518)

    done

    Deconfiguring network interfaces... ifdown: interface usb0 not configured

    done.

    Sending all processes the TERM signal...

    Sending all processes the KILL signal...

    Unmounting remote filesystems...

    Deactivating swap...

    Unmounting local filesystems...

    [  407.214036] reboot: System halted

    Since there is no usb0 interface, could it be that the kernel settings about USB are not correct? After all the screenshots in the guide are quite old. In case you can find my kernel config in attachment.

    kernelConfig.txt

    Regarding the interface, I can say that every time that I try to boot, it can correctly get zImage and dtb file, so I think the problem is more on Beaglebone side, instead of PC.

    Thank you for your support.

    Best Regards,

    Davide Brunelli

  • Davide,

    Yes, indeed, I doubt MUSB is built into the kernel. Please see:

    processors.wiki.ti.com/.../MUSB_Linux_Driver_Configuration

    This lists the modules that need to be built in to add MUSB to the kernel. Can you please add these to your .config using whatever method you prefer (menuconfig is easy for me).

    I'm sorry you are running into these issues. I'm actually in process of updating the docs, but you are a bit ahead of me.
  • Hello Ron,

    thank you for your link. I think we've made some steps forward.

    Now in the beaglebone I've got the following files:

    root@am335x-evm:/# ls                                                           
    bin                    init                   sys                               
    boot                   lib                    tmp                               
    boot_partition.tar.gz  media                  tmp_boot                          
    dev                    mnt                    tmp_rootfs                        
    etc                    proc                   usr                               
    flasher.sh             run                    var                               
    home                   sbin 

    Hence I've got boot_patition.tar.gz, tmp_boot and tmp_rootfs files; before they weren't there. Besides if I open flasher.sh script, it's not empty!

    If I try to launch the script, I get the following:

    ****************************************************                            
    ****************************************************                            
                                                                                    
    Sitara Example Flashing Script - 06/16/2015                                     
                                                                                    
    Getting files from server:                                                      
    1+0 records in                                                                  
    1+0 records out                                                                 
    BusyBox v1.23.1 (2016-02-26 14:04:36 CST) multi-call binary.                    
                                                                                    
    Usage: tftp [OPTIONS] HOST [PORT]                                               
                                                                                    
    Command exited with non-zero status 1                                           
    real    0m 0.02s                                                                
    user    0m 0.00s                                                                
    sys     0m 0.00s                                                                
    BusyBox v1.23.1 (2016-02-26 14:04:36 CST) multi-call binary.                    
                                                                                    
    Usage: tftp [OPTIONS] HOST [PORT]                                               
                                                                                    
    Command exited with non-zero status 1                                           
    real    0m 0.02s                                                                
    user    0m 0.00s                                                                
    sys     0m 0.00s                                                                
    (standard_in) 1: parse error                                                    
    No partition found. Continuing.                                                 
    Partitioning the eMMC...                                                        
    sfdisk: invalid cylinders argument: '/dev/mmcblk1'                              
    No partition found. Continuing.                                                 
    1+0 records in                                                                  
    1+0 records out                                                                 
    Formatting the eMMC into 2 partitions...                                        
    mkfs.vfat 2.11 (12 Mar 2005)                                                    
    mkfs.vfat: Too few blocks for viable file system                                
    mke2fs 1.42.9 (28-Dec-2013)                                                     
    Could not stat /dev/mmcblk1p2 --- No such file or directory                     
                                                                                    
    The device apparently does not exist; did you specify it correctly?             
    Formatting done.                                                                
    mkdir: can't create directory 'tmp_boot': File exists                           
    mkdir: can't create directory 'tmp_rootfs': File exists                         
    [  233.609975] print_req_error: I/O error, dev loop0, sector 0                  
    mount: mounting /dev/loop0 on tmp_boot failed: Invalid argument                 
    mount: mounting /dev/mmcblk1p2 on tmp_rootfs failed: No such file or directory  
    Copying Files...                                                                
    real    0m 0.05s                                                                
    user    0m 0.03s                                                                
    sys     0m 0.00s                                                                
    umount: can't umount /dev/mmcblk1p1: Invalid argument                           
    Boot partition done.                                                            
    tar: can't open 'tisdk-rootfs-image-am335x-evm.tar.xz': No such file or directoy
    Command exited with non-zero status 1                                           
    real    0m 0.00s                                                                
    user    0m 0.00s                                                                
    sys     0m 0.00s                                                                
    umount: can't umount /dev/mmcblk1p2: No such file or directory                  
    Rootfs partition done.                                                          
    It took 3 seconds to complete this task...                                      
    BusyBox v1.23.1 (2016-02-26 14:04:36 CST) multi-call binary.                    
                                                                                    
    Usage: tftp [OPTIONS] HOST [PORT]                                               
                                                                                    
                                                                                    
    ********************************************                                    
    Sitara Example Flash Script is complete.

    Concerning the EMMC1, in /dev folder, I have the following items:

    mmcblk1
    mmcblk1boot0
    mmcblk1boot1
    mmcblk1p1      
    mmcblk1rpmb

    while in the script, it's as follow:

    ## Names of the images to grab from TFTP server
    BOOT_PARTITION="boot_partition.tar.gz"

    ## Rename rootfs as needed depending on use of tar or img
    ROOTFS_PARTITION="tisdk-rootfs-image-am335x-evm.tar.xz"

    ## Declare eMMC device name here
    DRIVE="/dev/mmcblk1"

    I can confirm you that both boot_partition.tar.gz and tisdk-rootfs-image-am335x-evm.tar.xz are in /tftpboot folder in my host PC.

    What do you suggest?

    Thank you a lot.

    Regards,

    Davide Brunelli

  • Davide,

    I would run each step of the script by itself using the command line to get insight to where it is failing and why. This is often the debug technique I use to get everything working correctly. The script then just automates and speeds things up.

    You could also add more debug print to the script if you prefer that route.

    The first error I see that I would look into is the sfdisk print out about invalid cylinders. It seems the eMMC might have changes and the arguments to sfdisk need to be adapted.

    I hope this helps.
  • Hello Ron,
    I was making some tests with the script and cylinder, and I think I've made a mess.
    Now everytime that I run fdisk, I get the following:

    root@am335x-evm:~# fdisk /dev/mmcblk1
    Device contains neither a valid DOS partition table, nor Sun, SGI, OSF or GPT disklabel
    Building a new DOS disklabel. Changes will remain in memory only,
    until you decide to write them. After that the previous content
    won't be recoverable.


    The number of cylinders for this disk is set to 116736.
    There is nothing wrong with that, but this is larger than 1024,
    and could in certain setups cause problems with:
    1) software that runs at boot time (e.g., old versions of LILO)
    2) booting and partitioning software from other OSs
    (e.g., DOS FDISK, OS/2 FDISK)

    Command (m for help): p

    Disk /dev/mmcblk1: 3825 MB, 3825205248 bytes
    4 heads, 16 sectors/track, 116736 cylinders
    Units = cylinders of 64 * 512 = 32768 bytes

    Device Boot Start End Blocks Id System

    Command (m for help): v
    7471103 unallocated sectors

    Can it be fixed?

    I hope that the eMMC is recoverable..

    Thank you for your support.

    Regards,
    Davide Brunelli
  • Davide,

    I'm sorry, I'm not seeing the specific error that seems to be blocking progress.

    A few options.

    Use U-Boot to partition the eMMC.

    Switch from fdisk which is rather archaic to parted. Our sdcard-create.sh in /bin uses parted now, and I will use it when I complete the update of the material. It is much easier to use for modern non-platter disks like eMMC.

    I hope this helps. Again, sorry you are bogged down in this.
  • Hello Ron,
    I could restore the eMMC using one of the flasher image of Beaglebone.org, to make it fast.
    Regarding the boot, unfortunately I have to take care of another project so I cannot go on with the test.
    When I'll restart to work on it, I'm sure that the guide is going to be update.

    Thank you very much for your kind support.

    Best Regards,
    Davide brunelli
  • Davide,

    I understand. Thanks for letting us know. I'm going to go ahead and mark this as resolved for now. If you have questions in the future, please feel free to create a new post.
  • RonB said:
    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}

    Hi Ron,

    We would like to bypass the pxe stuff and to set the uboot env as you suggested above (not manually but as part of uboot binary),

    Where should I define those commands to be integrated in uboot code / build,

    Thanks

  • You can gently enter the "ethact usb_eth" setting in <Processor SDK>/board-support/u-boot-<version>/include/configs/am335x_evm.h file under defined CONFIG_EXTRA_ENV_SETTINGS and enter the rest of run commands to CONFIG_BOOTCOMMAND in <Processor SDK>/board-support/u-boot-<version>/configs/am335x_evm_defconfig file.