|
我使用的是linux 3.30 ,uboot是创龙提供的,文件系统是mini文件系统,% p1 _9 u3 M6 @% ]' U
文件系统inittab
: W) N5 w( x* D5 f1 ~% L::sysinit:/etc/init.d/rcS
1 L+ s0 w4 Q) ?8 B9 h' l# /bin/ash
; S) _5 y! p! ?#
0 \2 j8 v# t; u; A4 R+ e# Start an shell on the serial port
T/ Z# s9 b# Y' q/ ~. o/ nconsole::askfirst:-/bin/ash+ i1 q2 b$ a' T: O$ g' v
# T1 W* i$ N- x B O' _# h3 M+ z
# Stuff to do when restarting the init process4 |* y1 H t% k- \9 E) q7 m
::restart:/sbin/init% v1 {! y: J& {2 w5 e5 }- z
0 }( \. ^5 B2 z5 Q/ c. g
# Stuff to do before rebooting
9 y! M# `+ z6 Z6 @: O9 p::ctrlaltdel:/sbin/reboot
5 m3 t4 T( l+ f9 f+ ?% n: D6 ^2 J::shutdown:/bin/umount -a -r# j( o, Q& _6 ` ~
::shutdown:/sbin/swapoff -a& H& U# Z2 w& v0 H" E
1 I% G; L* n o/ G) ]2 b) r. kuboot参数是
, E7 b2 S! Z) M2 r9 c& OU-Boot > pri
8 Z* d h$ ]; v! P. e8 zbaudrate=115200( I" E1 n: d. S; t) r2 Z% X0 h) L J
bootargs=root=/dev/nfs rw nfsroot=192.168.1.100:/home//tftpboot/rootfs-mini nfsaddrs=192.168.1.5:192.168.1.100:192.168.1.1:255.255.255.0 console=ttyS1,115200n8 mem=128M
8 e6 }0 k: X/ n6 Y8 Ybootcmd=tftp c0700000 uImage;bootm c07000003 Z/ o5 y1 m7 }7 e: F" z
bootdelay=1% @; G# n+ u# N6 X. S3 ~
bootfile=uImage8 q4 {9 Z% p4 y! [; i4 M
ethact=DaVinci-EMAC9 z; t3 k1 ?7 c. J
ethaddr=08:00:02:e3:4d:669 z/ B2 d/ E4 [; h. k G
hwconfig=dsp:wake=yes/ h* M- G; Z7 C" w0 P
ipaddr=192.168.1.5
, S. ^. C1 g! z# d5 S4 T i; znetmask=255.255.255.0
' u# s9 I, E6 r" z2 H$ Rserverip=192.168.1.1000 l# l3 b9 ]) [- v; o/ c' x) q& c
stderr=serial$ O2 _( K y1 J2 W+ t! U
stdin=serial
$ X* i3 N% }: I7 l S' Lstdout=serial0 m4 k9 K& S+ v3 @3 |8 t; c2 B
ver=U-Boot 2012.04.01 (Sep 23 2014 - 13:22:36)
( a3 H- [- ?) R( C# o* x3 k$ ~/ ?% W7 ~6 U: U9 G* f
Environment size: 515/131068 bytes
) w- G& ]9 H# K7 K" h6 q* K9 `+ N+ v5 q% U
内核启动以后文件系统也可以挂载成功但是无法使用串口,如果把串口换成ttyS2就可以使用,是不是内核配置里面需要什么啊
1 J# f- o* Y/ x- ~$ `7 Y ) N$ R: W. i0 P
& a( K2 T% k- x9 ~- s4 x- d6 e
# u# D# o1 k7 x5 p3 v5 O |
|