项目

一般

简介

A6 uboot自动烧写设置.txt

韦 士飞, 2016-04-06 11:00

 
1
??SD?????????ո????uboot?˵???
2

    
3
tftp ?Զ???д??????
4
setenv bootcmd "nand rescrub;sleep 1;tftp c0000000 u-boot.bin ;sleep 1;nand write c0000000 0 40000;sleep 1;tftp 32000000 zImage;sleep 1;nand erase 100000 300000;sleep 1;nand write 32000000 100000 300000;sleep 1;tftp 32000000 rootfs.yaffs2;sleep 1;nand erase 800000 4000000;sleep 1;nand write.yaffs 32000000 800000 $filesize;tftp 32000000 zImage;sleep 1;tftp 30800000 uramdisk;sleep 1;bootm 32000000 30800000"
5

    
6
sd/mmc ?Զ???д??????
7
setenv bootcmd "nand rescrub;sleep 1;fatload mmc 0:1 c0000000 u-boot.bin ;sleep 1;nand write c0000000 0 40000;sleep 1;fatload mmc 0:1 32000000 zImage;sleep 1;nand erase 100000 300000;sleep 1;nand write 32000000 100000 300000;sleep 1;fatload mmc 0:1 32000000 rootfs.yaffs2;sleep 1;nand erase 800000 4000000;sleep 1;nand write.yaffs 32000000 800000 $filesize;fatload mmc 0:1 32000000 zImage;sleep 1;fatload mmc 0:1 30800000 uramdisk;sleep 1;bootm 32000000 30800000"
8

    
9

    
10
IP???????ã?
11
setenv ipaddr 192.168.0.5        ????IP ??ַ 
12
setenv serverip 192.168.0.8      ??????IP ??ַ??IP?????????ӵĵ???IP??ͬ
13
setenv gatewayip 192.168.0.1     ???? 
14
setenv netmask 255.255.255.0     ???? 
15

    
16

    
17
saveenv ??????? 
18

    
19
printenv ?鿴????
20

    
21
fatls mmc 0:1  ?鿴SD???ļ?
22

    
23

    
24
setenv bootdelay 0   ????uboot????????ʱ??
25
saveenv  ???????
26

    
27
sd/mmc ??д???
28
nand rescrub
29
fatload mmc 0:1 c0000000 u-boot.bin
30
nand write c0000000 0 40000
31
fatload mmc 0:1 32000000 zImage
32
nand erase 100000 300000
33
nand write 32000000 100000 300000
34
fatload mmc 0:1 32000000 rootfs.yaffs2
35
nand erase 800000 4000000
36
nand write.yaffs 32000000 800000 $filesize
37

    
38

    
39
tftp ??д???
40
nand rescrub
41
tftp c0000000 u-boot.bin
42
nand write c0000000 0 40000
43
tftp 32000000 zImage
44
nand erase 100000 300000
45
nand write 32000000 100000 300000
46
tftp 32000000 rootfs.yaffs2
47
nand erase 800000 4000000
48
nand write.yaffs 32000000 800000 $filesize
49

    
50

    
51
????????nand flash
52
nand scrub
53

    
54

    
55
?رտ???̨??
56
setenv bootargs root=/dev/mtdblock3 rootfstype=yaffs2 init=/linuxrc console=null
57

    
58
????????̨??
59
setenv bootargs root=/dev/mtdblock3 rootfstype=yaffs2 init=/linuxrc console=ttySAC0,115200
60
setenv bootargs root=/dev/mtdblock3 rootfstype=yaffs2 init=/linuxrc console=ttySAC1,115200
61

    
62
saveenv ??????? 
63

    
64
????????̨(UBIFS)??
65
setenv bootargs root=ubi0:rootfs rootfstype=ubifs console=ttySAC0,115200 ubi.mtd=2 init=/linuxrc rootflags=sync
66

    
67
?رտ???̨(UBIFS)??
68
setenv bootargs root=ubi0:rootfs rootfstype=ubifs console=null ubi.mtd=2 init=/linuxrc rootflags=sync
69

    
70

    
71
????????̨(128M RAM)??
72
setenv bootargs root=/dev/mtdblock3 rootfstype=yaffs2 mem=64M@0x30000000 mem=64M@0x38000000 init=/linuxrc console=ttySAC0,115200
73

    
74
?رտ???̨(128M RAM)??
75
setenv bootargs root=/dev/mtdblock3 rootfstype=yaffs2 mem=64M@0x30000000 mem=64M@0x38000000 init=/linuxrc console=null
76

    
77
?ڴ?鿴????:
78
free
79