天嵌 ARM开发社区

 找回密码
 注册
查看: 2535|回复: 4

命令行烧写yaffs2根文件系统

[复制链接]
tianyi 发表于 2014-4-15 14:14:37 | 显示全部楼层 |阅读模式
请问,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     #####

[1] Download bootloader (u-boot or bootimage) to Nand Flash
[2] Download WinCE NK image (NK.bin) to Nand Flash
[3] Download Linux Kernel (zImage.bin) to Nand Flash
[4] Download LOGO Picture (logo.bin) to Nand  Flash
[5] Download UBIFS image (root.ubi) to Nand Flash
[6] Download YAFFS image (root.bin) to Nand Flash
[7] Download Program to SDRAM and Run it
[8] Boot the system
[9] Format the Nand Flash
[0] Set the boot parameters
[a] Download User Program
[n] Enter TFTP download mode menu
[r] Reboot u-boot
[t] Test Linux Image (zImage)
[u] 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 | 显示全部楼层
参考默认的参数就可以了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号 )

GMT+8, 2024-5-19 20:08 , Processed in 1.015625 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表