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.

board cant get kernel image

DHCP client bound to address 10.103.2.195                                       
Using DaVinci-EMAC device                                                       
TFTP from server 192.168.6.59; our IP address is 10.103.2.195; sending through 1
Filename 'pxelinux.0'.                                                          
Load address: 0xc0700000                                                        
Loading: ##                                                                     
done                                                                            
Bytes transferred = 14776 (39b8 hex)                                            
Wrong Image Format for bootm command                                            
ERROR: can't get kernel image!

  • Hi Sagar

    Please let me know, your environment variables (using command printenv) so that will dig more into this issue.

    Regards

    Manish Badarkhe

  • G3HH > print
    baudrate=115200
    bootargs=console=ttyS0,115200 ip=dhcp root=/dev/nfs rw
    bootargsN=mem=74M console=ttyS2,115200n8 root=/dev/nfs nfsroot=10.103.2.79:/opt/targetfs rw noinitrd ip=dhcp
    bootargsU=console=ttyS2,115200n8 noinitrd rw ubi.mtd=3,4096 root=ubi0:ubifs0 rw rootfstype=ubifs ip=off
    bootcmd=tftpboot 0x80700000 uImage;bootm 0x80700000
    bootcmdd=nand read 0xc0700000 0x500000 0x300000; bootm 0xc0700000
    bootcmddd=mmc rescan 0;fatload mmc 0 0xc0700000 uImage_SDIO;bootm
    bootdelay=2
    bootfile=uImage
    bootfileW=emac/uImage_emac_wifi
    bootrgs=console=ttyS2,115200n8 noinitrd rw ubi.mtd=3,4096 root=ubi0:ubifs0 rw rootfstype=ubifs ip=off
    dnsip=192.168.6.50
    dnsip2=10.102.1.122
    ethact=DaVinci-EMAC
    ethaddr=00:01:02:03:04:05
    fileaddr=80700000
    filesize=2382C8
    gatewayip=10.103.1.1
    ipaddr=10.103.2.195
    loadaddr=0xc0700000
    maxcpuclk=456000000
    netmask=255.255.252.0
    serverip=10.103.2.91
    stderr=serial
    stdin=serial
    stdout=serial
    ver=U-Boot 2010.12 (Aug 29 2011 - 19:19:26)

    Environment size: 1013/524284 bytes

  • sir i want to boot uImage from tftp .

    first i setenv bootcmd 'tftpboot 0x80700000 uImage;bootm 0x80700000'

    setenv bootfile uImage

    saveenv

    reset.

    but same problem ..

  • Hi Sagar,

    When I looked into the first post ( with output messgaes) and the latest one ( with printenv) , I could see that the environment variables "bootfile" and the server ipaddresses are may not be set properly.

    In the first post, it is trying to fetch a file with name "pxelinux.0" which is supposed to be "uImage" according to your env settings. As well, the server address is also seems to be not the one which you set through env.

    I hope, this problem will get fixed by clearing and setting the env variables appropriately.

    Note: By the way, what is the TI processor/EVM/Board you use? and What is the Davinci PSP version?

     

    Regards,

    Shankari

     

    -------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question.
    -------------------------------------------------------------------------------------------------------- 

  • I changed that values but still i got that error.

    bootargs=console=ttyS0,115200 ip=dhcp root=dev/nfs rw

    bootfile=uImage

    and server ip is my desktop ip address.

  • Starting NAND Copy...
    Valid magicnum, 0x55424CBB, found in block 0x00000006.
       DONE
    �NAND:  256 MiBy point at 0xC1080000.
    MMC:   davinci: 0
    Bad block table found at page 65408, version 0x01
    Bad block table found at page 65280, version 0x01
    In:    serial
    Out:   serial
    Err:   serial
    ARM Clock : 456000000 Hz
    DDR Clock : 132000000 Hz
    Net:   Ethernet PHY: GENERIC @ 0x00
    DaVinci-EMAC
    Hit any key to stop autoboot:  0
    Using DaVinci-EMAC device
    TFTP from server 10.103.2.91; our IP address is 10.103.2.195
    Filename 'uImage'.
    Load address: 0x80700000
    Loading: T #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
    done
    Bytes transferred = 2327240 (2382c8 hex)
    Wrong Image Format for bootm command
    ERROR: can't get kernel image!

  • when i compile my uImage then i get the warning of this:

    OBJCOPY arch/arm/boot/Image
      Kernel: arch/arm/boot/Image is ready
      AS      arch/arm/boot/compressed/head.o
    arch/arm/boot/compressed/head.S: Assembler messages:
    arch/arm/boot/compressed/head.S:381: Warning: (null)
    arch/arm/boot/compressed/head.S:478: Warning: (null)
    arch/arm/boot/compressed/head.S:499: Warning: (null)
    arch/arm/boot/compressed/head.S:518: Warning: (null)
    arch/arm/boot/compressed/head.S:526: Warning: (null)
    arch/arm/boot/compressed/head.S:820: Warning: (null)
    arch/arm/boot/compressed/head.S:859: Warning: (null)
    arch/arm/boot/compressed/head.S:860: Warning: (null)
    arch/arm/boot/compressed/head.S:905: Warning: (null)
    arch/arm/boot/compressed/head.S:912: Warning: (null)
    arch/arm/boot/compressed/head.S:920: Warning: (null)
    arch/arm/boot/compressed/head.S:931: Warning: (null)
    arch/arm/boot/compressed/head.S:945: Warning: (null)
    arch/arm/boot/compressed/head.S:977: Warning: (null)
    arch/arm/boot/compressed/head.S:979: Warning: (null)
    arch/arm/boot/compressed/head.S:980: Warning: (null)
    arch/arm/boot/compressed/head.S:987: Warning: (null)
    arch/arm/boot/compressed/head.S:1019: Warning: (null)
      GZIP    arch/arm/boot/compressed/piggy.gzip
      AS      arch/arm/boot/compressed/piggy.gzip.o
      CC      arch/arm/boot/compressed/misc.o
      CC      arch/arm/boot/compressed/decompress.o
      SHIPPED arch/arm/boot/compressed/lib1funcs.S
      AS      arch/arm/boot/compressed/lib1funcs.o
      LD      arch/arm/boot/compressed/vmlinux
      OBJCOPY arch/arm/boot/zImage
      Kernel: arch/arm/boot/zImage is ready
      UIMAGE  arch/arm/boot/uImage
    Image Name:   Linux-2.6.37
    Created:      Fri Aug 30 17:00:54 2013
    Image Type:   ARM Linux Kernel Image (uncompressed)
    Data Size:    2327120 Bytes = 2272.58 kB = 2.22 MB
    Load Address: 0xC0008000
    Entry Point:  0xC0008000
      Image arch/arm/boot/uImage is ready

    i think error in uImage that i made?

  • Hi Sagar,

    Could you please download kernel image onto C0008000 address? Because the load and entry address should be C0008000 from above log.

    Thanks.

  • Hi Sagar,

    You can get rid of above said error using patch:

    https://lkml.org/lkml/2013/1/21/754

    But this warning really not solves your problem.Please confirm.

    Here, the problem is u-boot  not able to read kernel header format/ uImage header format

    is not updated and hence giving error: Wrong Image Format for bootm command.

    Probable cause is u-boot not able to read uImage from memory.

    Can you just try to load uImage at an address 0xc0700000?

    Regards

    Manish Badarkhe

  • Hi Sagar,

    Any update?

    Thanks.

  • thank you sir

    I falsh my ubl,uboot and uImage sucessfull and also flash ubifs file system...

    thanks all for your supports.

  •  Hi Sagar,

    Could you please update the thread with solution? Please help us to close the thread.

    Thanks.

  • hello sir

    there is problem in my kernel source i again download it and compile it again and flash new uImage .

  • and there is a also fault in my bootargs.

    in that I always write console=ttyS0 instead of ttyS2