|
|
我使用的是linux 3.30 ,uboot是创龙提供的,文件系统是mini文件系统,
9 v9 b8 Z$ C) u# k! t文件系统inittab- o0 Q3 Y6 F& K3 ^* g( J
::sysinit:/etc/init.d/rcS
4 }$ ~3 O# [/ j! w# /bin/ash- Z9 s7 l$ {) |4 Y
#3 x# }) j' F9 a
# Start an shell on the serial port
2 M9 [9 s: P; B0 b8 N$ @console::askfirst:-/bin/ash
/ H! w* a3 |! N( A3 p
% T5 n( R O* S6 Z4 V& k1 d# Stuff to do when restarting the init process5 U1 E; e1 a$ v4 k. h
::restart:/sbin/init1 c& Z# y: w, `: k0 f
% K0 v7 g9 G2 i: B# W& s& G; A- v# Stuff to do before rebooting
* b' e5 d: Y& G; H" q# \$ S) }::ctrlaltdel:/sbin/reboot
s/ P6 Y* [1 N3 m::shutdown:/bin/umount -a -r+ {" y. T0 w* L" N1 y
::shutdown:/sbin/swapoff -a
6 k1 z: @, O+ B9 Q- G5 q
1 b) T" q# F. S; a- `7 @. T6 Duboot参数是
f& t, _& |0 R6 [& G4 pU-Boot > pri
+ Y% v$ a* P" {baudrate=115200/ \# ]/ G1 Q- y5 I! b
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
( e# K. @/ |4 Q& pbootcmd=tftp c0700000 uImage;bootm c07000005 d" _6 K, f6 S' f9 ?7 j
bootdelay=1
3 U0 I2 i+ ]9 B: P3 l2 K/ ibootfile=uImage, y! ~& r3 K5 u/ x* V+ \
ethact=DaVinci-EMAC" l& h' P, }8 w; @2 N, M# x$ J
ethaddr=08:00:02:e3:4d:66
+ z& a6 ]8 _3 xhwconfig=dsp:wake=yes
+ b/ W4 T1 l7 o# i$ P! ripaddr=192.168.1.5, E* ^/ Y. m7 K5 W. y6 }
netmask=255.255.255.00 L; O8 z2 K, }, r& f" U
serverip=192.168.1.100
# {* j3 _% G' [3 u! I+ u5 rstderr=serial
9 {' K; Q0 }& D' w/ G8 [# U: G/ t" m; Kstdin=serial1 Z& }& }( ~2 M; k: F& |
stdout=serial/ _1 e% y8 R" ?* u* G
ver=U-Boot 2012.04.01 (Sep 23 2014 - 13:22:36)
) w% \! K7 w3 \2 K! u' @
/ l* `0 y. P6 V4 [7 ]' S& p) ~7 n% n) nEnvironment size: 515/131068 bytes
+ E ~+ f( c+ S# i# ^ U/ \$ p; I) v) T6 Y
内核启动以后文件系统也可以挂载成功但是无法使用串口,如果把串口换成ttyS2就可以使用,是不是内核配置里面需要什么啊* o P% U- j! r9 J, Q+ B

+ {0 \0 H }8 I$ h0 X+ v- j% U o' \4 s2 j
5 w4 _, h- e, D# H$ B$ ] |
|