使用jlink和阳出的2410的板子,对着阿南大虾的书学习,步骤如下:1.利用jink跑一个SRDRAM版本的uboot
2.利用uboot烧写vivi
3.uboot里面输入reset命令重启板子或者直接按reset按钮
3.vivi跑起来了,输入help正常
4.输入bon part 0 192k 2m死掉了
如下:
OpenJTAG> nand write.jffs2 30000000 0 30000
NAND write: device 0 offset 0x0, size 0x30000
Writing data at 0x2fe00 -- 100% complete.
196608 bytes written: OK
IVI 0.1.4 (root@localhost.localdomain) (gcc version 2.95.2 20000516 (release) [Rebel.com]) #0.1.4 日 9月 10 15:24:00 CST 2006
MMU table base address = 0x33DFC000
Succeed memory mapping.
NAND device: Manufacture ID: 0xec, Chip ID: 0x76 (Samsung K9D1208V0M)
Found saved vivi parameters.
Init VGA success!
Pr other key for vivi shell
type "help" for help.
vivi> help
Usage:
cpu [{cmds}] -- Manage cpu clocks
bon [{cmds}] -- Manage the bon file system
%s
param [set|show|save|reset] -- set/get parameter
part [add|del|show|reset] -- Manage MTD partitions
mem [{cmds}] -- Manage Memory
net [ping|tftp|set|mac| show| save |help] -- Network Manage
%s
%s
load {...} -- Load a file to RAM/Flash
go <addr> <a0> <a1> <a2> <a3> -- jump to <addr>
%s
%s
boot [{cmds}] -- Booting linux kernel
bootce
help [{cmds}] -- Help about help?
> help
Usage:
cpu [{cmds}] -- Manage cpu clocks
bon [{cmds}] -- Manage the bon file system
reset -- Reset the system
param [set|show|save|reset] -- set/get parameter
part [add|del|show|reset] -- Manage MTD partitions
mem [{cmds}] -- Manage Memory
net [ping|tftp|set|mac| show| save |help] -- Network Manage
vga card init Command
tv out put init Command
load {...} -- Load a file to RAM/Flash
go <addr> <a0> <a1> <a2> <a3> -- jump to <addr>
dump <addr> <length> -- Display (hex dump) a range of memory.
call <addr> <a0> <a1> <a2> <a3> -- jump_with_return to <addr>
boot [{cmds}] -- Booting linux kernel
bootce
help [{cmds}] -- Help about help?
vivi> bon part 0 192k 2m
doing partition
offset = 0
flag = 0
offset = 196608
flag = 0
offset = 00108g = 0
check bad block
part = 0 end = 196608
小弟貌似没分,但求元芳指点,谢谢 |