tianyi 发表于 2014-4-15 14:14:37

命令行烧写yaffs2根文件系统

请问,tq210,如何用uboot命令行烧写yaffs2格式的跟文件系统,bootcmd 和bootargs等环境变量怎么配置,yaffs2文件系统是使用光盘里带的工具制作的,大小有102M。谢谢!

tianyi 发表于 2014-4-15 16:16:58

使用sd更新固件,这次只更新u-boot,其他的都不需要更新,重启后不能挂载内核,报错如下,又进入u-boot菜单界面,但是在菜单选择8运行系统,去可以正常启动内核,挂载文件系统,请问是怎么回事。

##### EmbedSky BIOS for SKY210/TQ210 #####
This Board: SDRAM is 1024MB; LCD display size is: 800X480
Hit any key to stop autoboot:0
SD and FAT initialize success!
file length is 0x31e.
LineCount=32
condition=INSTALL
OSType=LINUX
beep state=ON

bootloader=images\bootloader\u-boot_TQ210_V1.3.bin
file length is 0x6c000.

NAND erase: device 0 offset 0x0, size 0x100000
Erasing at 0xe0000 -- 100% complete.
OK

NAND write: device 0 offset 0x0, size 0x6c000
Main area read (4 blocks):
Checksum is calculated.
Main area write (4 blocks):
524288 bytes written: OK

logodir=images\logo\logo_800x480c.bin
Without this file
Unknown command 'error' - try 'help'
file length is 0 or file does not exit!

Linux zImage=images\Linux\zImages.bin
Without this file
Unknown command 'error' - try 'help'
file length is 0 or file does not exit!

Linux rootfs=images\Linux\rootfs_waters.bin
Don't need to download Linux rootfs
Start Linux ......
NAND read: device 0 offset 0x300000, size 0x500000
Main area read (40 blocks):
5242880 bytes read: OK
## Error: "bootargs_defaults" not defined
get_format
-------- 0 --------
Wrong Image Format for bootm command
ERROR: can't get kernel image!

#####       Boot for TQ210 Main Menu        #####
#####   EmbedSky USB download mode   #####

Download bootloader (u-boot or bootimage) to Nand Flash
Download WinCE NK image (NK.bin) to Nand Flash
Download Linux Kernel (zImage.bin) to Nand Flash
Download LOGO Picture (logo.bin) to NandFlash
Download UBIFS image (root.ubi) to Nand Flash
Download YAFFS image (root.bin) to Nand Flash
Download Program to SDRAM and Run it
Boot the system
Format the Nand Flash
Set the boot parameters
Download User Program
Enter TFTP download mode menu
Reboot u-boot
Test Linux Image (zImage)
Download bootloader to SD Card

tianyi 发表于 2014-4-15 16:21:55

print后
bootdelay=3
baudrate=115200
ethaddr=00:40:5c:26:0a:5b
lcdtype=X800Y480
mtdids=nand0=s5pv210-nand
mtdparts=mtdparts=s5pv210-nand:1m@0(bios),1m(params),3m(logo),5m(kernel),-(root)
filesize=6348300
fileaddr=50008000
gatewayip=192.168.1.2
netmask=255.255.255.0
ipaddr=192.168.1.6
serverip=192.168.1.8
bootcmd=nand read 50008000 300000 500000;bootm 50008000
bootargs=noinitrd root=/dev/mtdblock3 rootfstype=yaffs2 init=/init console=ttySAC0
stdin=serial
stdout=serial
stderr=serial
partition=nand0,0
mtddevnum=0
mtddevname=bios

tianyi 发表于 2014-4-15 17:07:52

恩,报错的问题解决了,把nandflash先格式化一下,请回答一下第一个问题,谢谢

亚瑟王 发表于 2014-4-15 17:29:25

参考默认的参数就可以了。
页: [1]
查看完整版本: 命令行烧写yaffs2根文件系统