I try to burn the file system and kernel to nand or nor flash through mfgtool, it is feasible? cause I have succesed to burn them to SD card, but when I try the flash, the push command failed. my ucl.xml is as follow:
<CMD type="push" body="mknod class/mtd,mtd0,/dev/mtd0"/>
<CMD type="push" body="mknod class/mtd,mtd1,/dev/mtd1"/>
<CMD type="push" body="mknod class/mtd,mtd2,/dev/mtd2"/>
<CMD type="push" body="mknod class/mtd,mtd3,/dev/mtd3"/>
<CMD type="push" body="mknod class/mtd,mtd4,/dev/mtd4"/>
<CMD type="push" body="mknod block,mtdblock0,/dev/mtdblock0,block"/>
<CMD type="push" body="mknod block,mtdblock1,/dev/mtdblock1,block"/>
<CMD type="push" body="mknod block,mtdblock2,/dev/mtdblock2,block"/>
<CMD type="push" body="mknod block,mtdblock3,/dev/mtdblock3,block"/>
<CMD type="push" body="mknod block,mtdblock4,/dev/mtdblock4,block"/>
<CMD type="push" body="send" file="files/u-boot.bin">Sending U-Boot</CMD>
<CMD type="push" body="$ kobs-ng init --chip_0_device_path=/dev/mtd2 $FILE">Flashing Bootloader</CMD>
<CMD type="push" body="$ flash_eraseall /dev/mtd0">Erasing Kernel partition</CMD>
<CMD type="push" body="send" file="files/uImage">Sending Kernel Image</CMD>
<CMD type="push" body="$ nandwrite /dev/mtd0 -p $FILE">Flashing Kernel</CMD>
<CMD type="push" body="$ flash_eraseall /dev/mtd4">Erasing rootfs partition</CMD>
<CMD type="push" body="$ mkdir -p /mnt/mtdblock4"/>
<CMD type="push" body="$ mount -t jffs2 /dev/mtdblock4 /mnt/mtdblock4"/>
<CMD type="push" body="pipe tar -jxv -C /mnt/mtdblock4" file="files/rootfs.tar.bz2">Sending and writting rootfs</CMD>
<CMD type="push" body="frf">Finishing rootfs write</CMD>
<CMD type="push" body="$ umount /mnt/mtdblock4">Unmounting rootfs partition</CMD>
<CMD type="push" body="$ echo Update Complete!">Done</CMD>
and i always stop at mknod command,forgive my poor English
Solved! Go to Solution.
Hi Jacky
MX53 LOCO has not NAND so you see these errors,
please use BSP for MX53 SMD - it has NAND on board and its
BSP supports NAND.
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Jacky
Probably you used wrong image, recommended to use MX53 SMD Linux.
Please use "cat /proc/mtd" to check the right partitions for NAND
In MX53 SMD, mtd0 and mtd1 are for SPI-NOR; mtd2 - mtd6 are for NAND
L2.6.35_11.05_ER_SOURCE : Linux 2.6.35 Source Code Files and documentation 11.05 for i.MX53 SABRE Tablet.
SABRE Platform for Tablets Reference Design|Freescale
Best regards
igor
thanks for your replay! i was using MX53 LOCO,the partition for NAND is accroding to the normal kernel,i was wonder why it is failed at mknod class/mtd,mtd0,/dev/mtd0 but pass at mknod block,mmcblk0,/dev/mmcblk0,block, is it means my mtd is not working?otherwise,my purpose is it feasible,can i burn them to the nand flash through mfgtool directly?
Hi Jacky
MX53 LOCO has not NAND so you see these errors,
please use BSP for MX53 SMD - it has NAND on board and its
BSP supports NAND.
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
hi igorpadykov :i got another question。my mtd partition of the normal kernel is
dev: size erasesize name | |
mtd0: 00400000 00040000 "kernel" | |
mtd1: 03c00000 00040000 "usr-romfs" | |
mtd2: 00200000 00010000 "spi1.2" | |
mtd3: 04000000 00020000 "home-romfs" | |
mtd4: 1c000000 00020000 "user-nand-jffs2" |
1f00 4096 mtdblock0 | |
1f01 61440 mtdblock1 | |
1f02 2048 mtdblock2 | |
1f03 65536 mtdblock3 | |
1f04 458752 mtdblock4 |
mtd0 and mtd1 are for NOR; mtd2 if for SPI flash, mtd3 and mtd4 are for NAND
but in the mx53_smd mtd0 and mtd1 are for SPI_NOR from what you said. is that means i must modify the partition as same as the normal partition for the mfg image?
Looking forward to your reply.
Hello guys,
Have you ever encountered this problem while trying to boot board with eMMC booting configuration but nothing in eMMC card?
As you know that will lead to USB serial downloader mode, and booting with uboot and kernel provided by mfgtool.
But here comes the problem with default initramsf file
snvs_rtc snvs_rtc.0: setting system clock to 1970-01-01 00:00:01 UTC (1)
Freeing init memory: 160K
starting pid 1804, tty '': '/etc/rc.d/rcS'
Mounting /proc and /sys
Starting the hotplug events dispatcher udevd
Synthesizing initial hotplug evenudevd (1813): /proc/1813/oom_adj is deprecated, please use /proc/1813/oom_score_adj instead.
ts
Setting the hostname to freescale
Mounting filesystems
mount: sysfs already mounted or /sys busy
mount: according to mtab, /sys is already mounted on /sys
mount: mount point /proc/bus/usb does not exist
starting pid 2720, tty '': '/etc/rc.d/rc_gpu.S'
can't run '/etc/rc.d/rc_gpu.S': No such file or directory
starting pid 2721, tty '': '/etc/rc.d/rc_mxc.S'
can't run '/etc/rc.d/rc_mxc.S': No such file or directory
process '/etc/rc.d/rc_mxc.S' (pid 2721) exited. Scheduling for restart.
starting pid 2722, tty '': '/etc/rc.d/rc_mxc.S'
can't run '/etc/rc.d/rc_mxc.S': No such file or directory
process '/etc/rc.d/rc_mxc.S' (pid 2722) exited. Scheduling for restart.
starting pid 2723, tty '': '/etc/rc.d/rc_mxc.S'
can't run '/etc/rc.d/rc_mxc.S': No such file or directory
process '/etc/rc.d/rc_mxc.S' (pid 2723) exited. Scheduling for restart.
starting pid 2724, tty '': '/etc/rc.d/rc_mxc.S'
can't run '/etc/rc.d/rc_mxc.S': No such file or directory
process '/etc/rc.d/rc_mxc.S' (pid 2724) exited. Scheduling for restart.
starting pid 2725, tty '': '/etc/rc.d/rc_mxc.S'
can't run '/etc/rc.d/rc_mxc.S': No such file or directory
process '/etc/rc.d/rc_mxc.S' (pid 2725) exited. Scheduling for restart.
starting pid 2726, tty '': '/etc/rc.d/rc_mxc.S'
can't run '/etc/rc.d/rc_mxc.S': No such file or directory
process '/etc/rc.d/rc_mxc.S' (pid 2726) exited. Scheduling for restart.
starting pid 2727, tty '': '/etc/rc.d/rc_mxc.S'
can't run '/etc/rc.d/rc_mxc.S': No such file or directory
process '/etc/rc.d/rc_mxc.S' (pid 2727) exited. Scheduling for restart.
starting pid 2728, tty '': '/etc/rc.d/rc_mxc.S'
can't run '/etc/rc.d/rc_mxc.S': No such file or directory
process '/etc/rc.d/rc_mxc.S' (pid 2728) exited. Scheduling for restart.
starting pid 2729, tty '': '/etc/rc.d/rc_mxc.S'
can't run '/etc/rc.d/rc_mxc.S': No such file or directory
process '/etc/rc.d/rc_mxc.S' (pid 2729) exited. Scheduling for restart.
starting pid 2730, tty '': '/etc/rc.d/rc_mxc.S'
can't run '/etc/rc.d/rc_mxc.S': No such file or directory
process '/etc/rc.d/rc_mxc.S' (pid 2730) exited. Scheduling for restart.
starting pid 2731, tty '': '/etc/rc.d/rc_mxc.S'
can't run '/etc/rc.d/rc_mxc.S': No such file or directory
process '/etc/rc.d/rc_mxc.S' (pid 2731) exited. Scheduling for restart.
starting pid 2732, tty '': '/etc/rc.d/rc_mxc.S'
can't run '/etc/rc.d/rc_mxc.S': No such file or directory
process '/etc/rc.d/rc_mxc.S' (pid 2732) exited. Scheduling for restart.
starting pid 2733, tty '': '/etc/rc.d/rc_mxc.S'
can't run '/etc/rc.d/rc_mxc.S': No such file or directory
process '/etc/rc.d/rc_mxc.S' (pid 2733) exited. Scheduling for restart.
starting pid 2734, tty '': '/etc/rc.d/rc_mxc.S'
can't run '/etc/rc.d/rc_mxc.S': No such file or directory
process '/etc/rc.d/rc_mxc.S' (pid 2734) exited. Scheduling for restart.
starting pid 2735, tty '': '/etc/rc.d/rc_mxc.S'
can't run '/etc/rc.d/rc_mxc.S': No such file or directory
process '/etc/rc.d/rc_mxc.S' (pid 2735) exited. Scheduling for restart.
starting pid 2736, tty '': '/etc/rc.d/rc_mxc.S'
can't run '/etc/rc.d/rc_mxc.S': No such file or directory
process '/etc/rc.d/rc_mxc.S' (pid 2736) exited. Scheduling for restart.
starting pid 2737, tty '': '/etc/rc.d/rc_mxc.S'
can't run '/etc/rc.d/rc_mxc.S': No such file or directory
process '/etc/rc.d/rc_mxc.S' (pid 2737) exited. Scheduling for restart.
starting pid 2738, tty '': '/etc/rc.d/rc_mxc.S'
can't run '/etc/rc.d/rc_mxc.S': No such file or directory
process '/etc/rc.d/rc_mxc.S' (pid 2738) exited. Scheduling for restart.
starting pid 2739, tty '': '/etc/rc.d/rc_mxc.S'
can't run '/etc/rc.d/rc_mxc.S': No such file or directory
process '/etc/rc.d/rc_mxc.S' (pid 2739) exited. Scheduling for restart.
starting pid 2740, tty '': '/etc/rc.d/rc_mxc.S'
can't run '/etc/rc.d/rc_mxc.S': No such file or directory
Has anyone know the problems? any workaround or updated initramfs to be used instead?
Thank you.
thank you! I will try it