|
我使用的是linux 3.30 ,uboot是创龙提供的,文件系统是mini文件系统,' o# _/ C% v' r
文件系统inittab
& g0 t6 v' M* \( ~: u::sysinit:/etc/init.d/rcS 7 M/ A) H3 z3 u9 r6 n/ b c i
# /bin/ash$ {* m4 [( s" S9 |' }+ }
#
% z, |$ ]5 ?$ A: |, ^! {# Start an shell on the serial port9 q/ M% u, y) R9 n# ]; |+ a
console::askfirst:-/bin/ash
V& I% g( Z$ }# \) J/ l) Q( W
9 h0 Q. V. M- u8 W% M8 w- l# Stuff to do when restarting the init process2 }; M3 J& k2 }2 i9 t
::restart:/sbin/init* j1 Q. j$ R4 I0 M& p/ F. o9 ~! m7 F
$ [% A! k$ O* f: m# Stuff to do before rebooting
$ H5 W6 q! B+ k/ u- N1 Q::ctrlaltdel:/sbin/reboot
& [3 [& B) m- L, K4 K8 M::shutdown:/bin/umount -a -r
' A1 `( \8 }$ Q1 e# Y) b4 ]::shutdown:/sbin/swapoff -a
f6 c# T& c: Q& f/ }; l" {' m) L" X* v) ?
uboot参数是: {' D' v! J/ a7 T
U-Boot > pri! b$ O7 Y* ]' @ j8 S
baudrate=1152001 {- r# Q- O" Q6 T: O
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
: B4 ?% E7 g3 F' R7 xbootcmd=tftp c0700000 uImage;bootm c0700000! E! C. n/ Z6 I% y
bootdelay=1
; }7 Z- ?+ `4 I+ r2 M6 m+ vbootfile=uImage9 f3 z" f3 X$ T
ethact=DaVinci-EMAC
3 O0 } k% [( s |ethaddr=08:00:02:e3:4d:66
4 f3 H3 R* N* n x; Fhwconfig=dsp:wake=yes+ J( b" ~- }( |+ C* G' \) F
ipaddr=192.168.1.5$ N4 S e' [1 G! N' d/ c$ b
netmask=255.255.255.03 |% u) O* x! v, w8 B. x, J) J
serverip=192.168.1.1005 `6 n+ t" a5 o$ y0 [0 Q* y4 E
stderr=serial# K" Z* r, A8 \9 Z8 G; a6 ]6 U, f$ X" l
stdin=serial
; l! I# W* e% ?, `8 z$ Q" dstdout=serial
( q4 j& G. \, y: |" ^ver=U-Boot 2012.04.01 (Sep 23 2014 - 13:22:36)% Z4 w1 ]. Q; P: J
5 Z( q( e5 w( `$ v) ]1 f, M
Environment size: 515/131068 bytes
0 _' @- u) y- o+ G7 y9 j' D# Y6 i6 G: W: U) F8 q
内核启动以后文件系统也可以挂载成功但是无法使用串口,如果把串口换成ttyS2就可以使用,是不是内核配置里面需要什么啊
* D3 o6 C4 c' n5 Y0 `. o% \
4 b3 a" I1 G# k4 J+ p$ h% ^" i0 i0 Z @$ M7 _" K( v
' Z/ n& S* e. B5 w
|
|