[SOLVED] make installbootloader on DM365 Leopard SDK 2011Q2

[SOLVED] make installbootloader on DM365 Leopard SDK 2011Q2

  •  

    Hi,

     

    I follow the instructions from this link (https://www.ridgerun.com/developer/wiki/index.php/DM365_Leopard_SDK_2011Q2_Getting_Started_Guide). When I type the "make installbootloader" I get the error below.

     

    lchi@ubuntu:~/LeopardBoardDM365sdkEVAL2011Q2$ make installbootloader VERBOSE=1

    if [ -f  "/home/lchi/LeopardBoardDM365sdkEVAL2011Q2/bsp/mach/ubootinstaller_notsupported" ] ; then\

       echo -e "\040" "\nThe installbootloader target is not supported on "Leopard Board DM365"\n";\

       exit -1; \

    fi

      Ridgerun Linux SDK

      Board configuration: Leopard Board DM365

      Multi-core machine, using 1 out of 2 cores for building


    if ! [[ 172.20.45.64 =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]] ; then \

       echo -e "\040" "\033[31mERROR:\033[39m The detected IP address (172.20.45.64) for interface "eth0" isn't a valid IP address, please be sure this is the intended interface that is connected to the board...\n" ; \

       exit -1 ; \

    fi

    echo -e "\040" Installation system of uboot images over TFTP for host 172.20.45.64

      Installation system of uboot images over TFTP for host 172.20.45.64

    echo -e "\040" Please be sure u-boot is running on port "/dev/ttyS0" and none process \(like minicom\) is using it 

      Please be sure u-boot is running on port /dev/ttyS0 and none process (like minicom) is using it

    if [ -n "`lsof -t "/dev/ttyS0"`" ] ; then \

    echo -e "\040" "\033[31mError: u-boot "/dev/ttyS0" port in use\033[0m\n"; \

    lsof "/dev/ttyS0"; \

    exit -1; \

    else \

    echo -e "\040" "u-boot port "/dev/ttyS0"\n"; \

    fi

      u-boot port /dev/ttyS0


    cd /home/lchi/LeopardBoardDM365sdkEVAL2011Q2/installer/u-boot-installer/ ; perl installer bootloader

      Performing handshake with u-boot...Sending [    ]

    Sending [echo resync]



    Uboot prompt: [DM365 LEOPARD #]

      Trying to identify NAND block size... Sending [nand info]

    nand size before regular expression: [NAND 256MiB 3,3V 8-bit, sector size 128 KiB

    DM365 LEOPARD # ]nand size after match for old uboot nand info: [NAND 256MiB 3,3V 8-bit, sector size 128 KiB

    DM365 LEOPARD # ]no match, trying new output formatnand size after match for new uboot nand info: [128]detected 0x20000

      Trying to identify NAND Page size... Sending [nand dump.oob 0200]

    Sending [nand dump.oob 0400]

    Sending [nand dump.oob 0800]

    detected 2048

    Sending [icache]


      Error: Your uboot doesn't have icache command, refusing to load upgrade bootloader due risk of hanging.

        You can update your bootloader by other means like SD card or use FORCEINSTALL=yes



    make: *** [installbootloader] Error 255

    I  loaded up to "DM365 LEOPARD #" when I type in "make installbootloader FORCEINSTALL=yes" as shown below.

    Valid magicnum, 0xA1ACED66, found in block 0x00000019.
    U-Boot 2010.12-rc2 (Jul 07 2011 - 17:57:05)

    Cores: ARM 297 MHz
    DDR:   243 MHz                                                                  
    I2C:   ready                                                                    
    DRAM:  128 MiB                                                                  
    NAND:  256 MiB                                                                  
    MMC:   davinci: 0, davinci: 1                                                   
    Net:   Ethernet PHY: GENERIC @ 0x00                                             
    DaVinci-EMAC                                                                    
    DM365 LEOPARD # 
    Thanks for your help.
    Regards,
    Irwin Liew

     

  • Hi,

    To flash the LeopardBoard NAND you need an uboot with the icache command (make installbootloader FORCEINSTALL=yes) can be used, but it's not recommended, follow this steps at the getting started guide:

    https://www.ridgerun.com/developer/wiki/index.php/RidgeRun_SDK_Technical_FAQ#No_icache_command_at_uboot

    Look for "No icache command at uboot"

    Regards.

    Carlos Aguero
    Embedded Software Engineer
    RidgeRun

  • Hi,

    Thanks for your help. I will try your solution.

    Regards,

    Irwin Liew