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.

DM368 IPNC_MT5 4.0 boot problem

Hi,

i'm trying to test dm368_IPNC mt5 4.0  .

I write given binary ubl,u-boot,kernel,ubifs.

The problem is that  the kernel when read from nand, it has a CRC error as below.

And the strange thing is when I boot using tftp(not read from nand) it booted, it also same kernel image that I write to nand.

please let me konw what should I try.

I have compiled the kernel and fs, but same symptom.

Thank you.

Jay

 

DM36x initialization passed!

TI UBL Base Version: 1.50

Boot Loader BootMode = NAND

Starting NAND Copy...

Valid magicnum, 0xA1ACED66, found in block 0x00000008.

Boot Mode Task Completed

 

IPNC UBL Version: 2.1.0

Platform: DM368-432

 

Jumping to entry point at 0x81080000

 

U-Boot 1.3.4 (Jun  9 2012 - 17:24:47) DM368-IPNC-4.0.0

 

I2C:   ready

DRAM:  128 MB

NAND:  NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit)

Bad block table not found for chip 0

Bad block table not found for chip 0

 

 loop oob 81021ad8 Bad block table written to 0x07fe0000, version 0x01

 

 loop oob 81021ad8 Bad block table written to 0x07fc0000, version 0x01

128 MiB

In:    serial

Out:   serial

Err:   serial

ARM Clock :- 432MHz

DDR Clock :- 340MHz

Ethernet PHY: GENERIC @ 0x01

Hit any key to stop autoboot:  0

 

Loading from NAND 128MiB 3,3V 8-bit, offset 0x500000

   Image Name:   Linux-2.6.37_IPNC_DM365_4.0.0

   Image Type:   ARM Linux Kernel Image (uncompressed)

   Data Size:    3439968 Bytes =  3.3 MB

   Load Address: 80008000

   Entry Point:  80008000

## Booting kernel from Legacy Image at 80700000 ...

   Image Name:   Linux-2.6.37_IPNC_DM365_4.0.0

   Image Type:   ARM Linux Kernel Image (uncompressed)

   Data Size:    3439968 Bytes =  3.3 MB

   Load Address: 80008000

   Entry Point:  80008000

   Verifying Checksum ... Bad Data CRC

ERROR: can't get kernel image!

DM368 IPNC :>

DM368 IPNC :>

DM368 IPNC :>pri

bootdelay=4

baudrate=115200

bootfile="uImage"

serverip=192.168.1.210

ipaddr=192.168.1.208

ethaddr=00:01:02:03:04:05

netmask=255.255.255.0

gatewayip=192.168.1.1

network=192.168.1.0

dnsip=128.126.63.1

setboot=setenv bootargs $(bootargs)

bootargs=mem=48M console=ttyS1,115200n8 noinitrd ip=dhcp rw ubi.mtd=3,2048 rootfstype=ubifs root=ubi0:rootfs cmemk.phys_start=0x83000000 cmemk.phys_end=0x88000000 cmemk.phys_start_1=0x00001000 cmemk.phys_end_1=0x00008000 cmemk.pools_1=1x28672 cmemk.allowOverlap=1 cmemk.useHeapIfPoolUnavailable=1 lpj=1077248 nohz=off highres=off eth=$(ethaddr)

bootcmd=nboot 0x80700000 0 0x500000;bootm 0x80700000

stdin=serial

stdout=serial

stderr=serial

ver=U-Boot 1.3.4 (Jun  9 2012 - 17:24:47) DM368-IPNC-4.0.0

 

Environment size: 733/131068 bytes

DM368 IPNC :>

 

  • Hi,

    Can u set the environment variable 'verify' as given below and try booting again.

    setenv verify no

  • Thank you Akshita. It works!!!

    But i am faced with new problem.

    tftp boot doesn't work. I just download same image via network.

    only differences is bootcmd and verify argue.

    even I eliminate verify argue because it works before without the verify argue, but it doesn't work.

    could you please give some advice?

     

    Thank you.

    Jay.

     

    DM368 IPNC :>pri

    bootdelay=4

    baudrate=115200

    bootfile="uImage"

    setboot=setenv bootargs $(bootargs)

    verify=no

    serverip=192.168.1.210

    ipaddr=192.168.1.208

    ethaddr=00:01:02:03:04:05

    netmask=255.255.255.0

    gatewayip=192.168.1.1

    network=192.168.1.0

    dnsip=128.126.63.1

    nfshost=192.168.1.210

    rootpath=/opt/dm36x_ipnc4/Source/ipnc_rdk/target/filesys

    bootargs=mem=48M console=ttyS1,115200n8 noinitrd ip=dhcp rw ubi.mtd=3,2048 rootfstype=ubifs root=ubi0:rootfs cmemk.phys_start=0x83000000 cmemk.phys_end=0x88000000 cmemk.phys_start_1=0x00001000 cmemk.phys_end_1=0x00008000 cmemk.pools_1=1x28672 cmemk.allowOverlap=1 cmemk.useHeapIfPoolUnavailable=1 lpj=1077248 nohz=off highres=off eth=$(ethaddr)

    bootcmd=tftpboot 0x80700000 uImage_ipnc_dm368_nand; bootm 0x80700000

    stdin=serial

    stdout=serial

    stderr=serial

    ver=U-Boot 1.3.4 (Jun  9 2012 - 17:24:47) DM368-IPNC-4.0.0

     

    Environment size: 838/131068 bytes

    DM368 IPNC :>boot

    TFTP from server 192.168.1.210; our IP address is 192.168.1.208

    Filename 'uImage_ipnc_dm368_nand'.

    Load address: 0x80700000

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

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

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

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

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

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

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

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

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

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

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

    done

    Bytes transferred = 3440032 (347da0 hex)

    ## Booting kernel from Legacy Image at 80700000 ...

       Image Name:   Linux-2.6.37_IPNC_DM365_4.0.0

       Image Type:   ARM Linux Kernel Image (uncompressed)

       Data Size:    3439968 Bytes =  3.3 MB

       Load Address: 80008000

       Entry Point:  80008000

       Loading Kernel Image ... OK

    OK

     

    Starting kernel ...

     

     

     

  • Hi,

    Since the bootm command has been optimised for boot time optimisation, directing booting using tftp wouldn't work. Use the following command to flash the uImage to nand and then try booting. Change the boot command to the following.

    tftpboot 0x82000000 uImage_ipnc_DM368;nand erase 0x500000 0x400000;nand write 0x82000000 0x500000 0x400000

    setenv bootcmd 'nboot 0x80700000 0 0x500000; bootm 0x80700000'

  • I'm really appriciate your answer.

     

    but as I mentioned from first post, I boot the kernel with tftp before nand boot.

    I don't know why it doesn't work now. also recompile the uImage for nfs, and boot from tftp doesn't proceed.

    User Guide for IPNC 4.0 reffered these things.

    because why i'm still trying. I may miss something.T.T

  • im not sure how the kernel booted without flashing uImage to the nand in your case.  If you follow the IPNC 4.0 User Guide on how to flash the uImage before booting, it should work.