|
|
我使用的是linux 3.30 ,uboot是创龙提供的,文件系统是mini文件系统,
; o7 H- p$ T/ C/ |文件系统inittab
7 u7 _ m1 f; c::sysinit:/etc/init.d/rcS " X/ ]5 n3 i; ^3 {
# /bin/ash
% o9 O. a, a5 ?& w4 \#
1 f+ o7 D8 I& E' Y3 L# Start an shell on the serial port) {. y1 _6 x5 f
console::askfirst:-/bin/ash
$ M p% I; ^ h c' F4 x+ l3 f& t1 z- }, F' ^2 O0 x) l1 R
# Stuff to do when restarting the init process
. u3 X& o r$ Y' r' [2 ?* i::restart:/sbin/init% h) ?8 _) B3 V$ q
4 E2 n1 g6 B7 o' j5 u3 H+ f
# Stuff to do before rebooting
4 o/ k( I# f% H4 r, E+ s) K# ^1 |::ctrlaltdel:/sbin/reboot
' n9 D3 H( j- X! x::shutdown:/bin/umount -a -r# ~2 q- o- H/ {7 Z6 U8 T
::shutdown:/sbin/swapoff -a
' Q% `2 A2 ~- k5 _: o
( J5 Y; O9 a$ A! Zuboot参数是( G) l6 o! n6 t( ~) D$ }7 X
U-Boot > pri1 [- X# l2 b; K9 G8 r
baudrate=1152004 A U; W* {; H- ? p7 X T
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' a' h, E: D1 f# s( i1 i+ j5 S
bootcmd=tftp c0700000 uImage;bootm c0700000
6 a X. g: M7 `8 D1 O- V! Zbootdelay=1& b4 n! J, ~. ~& n+ R$ n# B7 ]
bootfile=uImage
) M- K U: U& o0 D8 hethact=DaVinci-EMAC
7 ]5 [+ p7 Y4 H; Q# methaddr=08:00:02:e3:4d:66
* c, @3 t+ f& O2 d9 V/ o- ohwconfig=dsp:wake=yes
7 V" w5 N1 A0 }ipaddr=192.168.1.5( i+ q8 u. F( F2 z+ r& ^
netmask=255.255.255.0% y1 c: B6 V1 u
serverip=192.168.1.1006 a% `7 e1 S& L, P
stderr=serial. d! g( _+ s+ E- z% X7 I
stdin=serial: J3 i/ Z+ [. Y9 f9 H) e) g
stdout=serial9 L+ u) M5 O$ Z+ T8 k2 B7 {" ^3 H# @
ver=U-Boot 2012.04.01 (Sep 23 2014 - 13:22:36)
; L. w1 F( Z- ]! r4 j1 _2 Q' Y d* Q! L. }6 f/ @8 y' t$ N+ C n
Environment size: 515/131068 bytes
4 C7 y* J) p, g: g1 K, G, `1 o- M7 X9 e/ j1 [
内核启动以后文件系统也可以挂载成功但是无法使用串口,如果把串口换成ttyS2就可以使用,是不是内核配置里面需要什么啊' }3 g7 F' u; l
/ k: |; e' p" c! w4 Z: S+ w
: a. T6 K! |, q; ?+ b) z" o2 i6 U, p3 J& u
|
|