how do I for my mx28 board with imx28_ivt_uboot.sb、uImage and rootfs in one nand flash

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how do I for my mx28 board with imx28_ivt_uboot.sb、uImage and rootfs in one nand flash

537 Views
jieliu
Contributor II

my board for mx28 has one nand flash with 128MiB and DDR2 SDRAM with 64MiB

I set what as fellow ,my logo file is :

  NAND read: device 0 offset 0x200000, size 0x400000
 4194304 bytes read: OK
*  mem_start = 0x40000000
*  mem_size = 0x04000000
*  kernel: cmdline image address = 0x41600000

## format 00000000 ...
Wrong Image Format for bootm command
ERROR: can't get kernel image!

1、in mfgtool :

<CMD type="boot" body="Recovery" file="updater_ivt.sb" timeout="60" if="HabEnable">Booting update firmware.</CMD>
<CMD type="find" body="Updater" timeout="180"/>
<CMD type="push" body="mknod class/mtd,mtd0,/dev/mtd0" timeout="180" />
<CMD type="push" body="mknod class/mtd,mtd1,/dev/mtd1" timeout="180" />
<CMD type="push" body="mknod class/misc,ubi_ctrl,/dev/ubi_ctrl"/>
<CMD type="push" body="$ flash_eraseall /dev/mtd0">Erasing mtd0 partition</CMD>
 <CMD type="push" body="send" file="files/imx28_ivt_uboot.sb">Sending uboot</CMD>
<CMD type="push" body="$ kobs-ng init -v $FILE">Flashing uboot firmware</CMD>
<CMD type="push" body="$ flash_erase /dev/mtd0 0x200000 32">Erasing 0x200000 32</CMD>
<CMD type="push" body="send" file="files/uImage">Sending uImage</CMD>
<CMD type="push" body="$ dd if=$FILE of=/dev/mtdblock0 bs=1M seek=2">Flashing uImage firmware</CMD>
<CMD type="push" body="$ echo Update Complete!">Done</CMD>

2、

#define PHYS_SDRAM_1_SIZE    0x04000000    /* 64 MB */

  #define CONFIG_BOOTFILE        "uImage"
#define CONFIG_BOOTARGS        "console=ttyAM0,115200n8 "    /* modefy by zhuguojun        */
#define CONFIG_BOOTCOMMAND    "run nand_boot"

#define CONFIG_LOADADDR        0x41600000      

#define    CONFIG_EXTRA_ENV_SETTINGS \   

      "kernel=uImage\0"                                                   \
        "kernelsize=0x400000\0"                                             \
        "rootfs=rootfs.ubifs\0"                                             \
         "kerneladdr="       "0x00200000\0"                                 \

       "nand_boot=nand read.jffs2 $(loadaddr) $(kerneladdr) $(kernelsize);"                        \
                                                                "bootm $(loadaddr)\0"               \

Labels (3)
0 Kudos
1 Reply

303 Views
igorpadykov
NXP Employee
NXP Employee

Hi jie

please check

why u-boot doesnot load linux in my board of mx28  

also may be useful to look at

http://www.denx.de/wiki/view/DULG/Manual?stickboard=m28evk 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos