|
我使用的是linux 3.30 ,uboot是创龙提供的,文件系统是mini文件系统,
2 P y* }, O* v2 Y2 K/ D文件系统inittab2 I' g1 v( u+ p3 P0 Z: s
::sysinit:/etc/init.d/rcS
# v/ v3 S8 o/ m4 B# K7 N: s7 X# /bin/ash
- v5 R/ ]5 n Y: t9 P% ~#2 ~( p$ z. n6 Z% J1 H" w+ `# l) F
# Start an shell on the serial port
, {0 r) K) l2 [console::askfirst:-/bin/ash9 L' c/ `2 |; m2 K# t
. W% x* F/ A3 g6 s0 H
# Stuff to do when restarting the init process
- a& d, V1 M/ G k: `::restart:/sbin/init7 t; Q* k4 R2 |6 l, N2 Q! l
+ L4 b" O8 R* j$ z" n2 y
# Stuff to do before rebooting: _" o9 j/ o) g t
::ctrlaltdel:/sbin/reboot
8 L: y$ s8 E# T$ _! I::shutdown:/bin/umount -a -r a$ M9 h# V( r4 r8 l1 J
::shutdown:/sbin/swapoff -a
& Z. d& J4 J8 X) E1 L( Q, n2 D& |) G- E ^0 ]
uboot参数是
* O. Q1 S z9 J$ f9 P' CU-Boot > pri7 b) U) k$ g% X, ~/ m$ U
baudrate=115200% r; _: T1 c2 _9 k4 p8 C: V) b2 p
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
2 h0 s& U6 C# ~, Q8 w5 Jbootcmd=tftp c0700000 uImage;bootm c07000007 y8 o! G$ t/ Z+ T4 e! n
bootdelay=1" w( O; d8 p- [
bootfile=uImage
5 ?1 p, m! M' vethact=DaVinci-EMAC0 j' ?, H3 x& p6 T% h
ethaddr=08:00:02:e3:4d:66
+ L _2 D" T' a3 ~- q$ X# Phwconfig=dsp:wake=yes( V+ L( `* f" m" ?$ E u& k
ipaddr=192.168.1.5
a# {# `: d0 s/ B) l, D. vnetmask=255.255.255.0
& p' n; f1 p. ?% X, ?2 _4 wserverip=192.168.1.1001 \5 S! p$ M0 w4 |
stderr=serial
8 j0 L7 @0 V M, \5 s( M- E) @stdin=serial, c! k6 ~1 a3 N1 b) o
stdout=serial
+ i* j$ b G4 {' |: z+ Iver=U-Boot 2012.04.01 (Sep 23 2014 - 13:22:36)# H$ V- k" Z4 V
+ o7 B% @- u( }8 k
Environment size: 515/131068 bytes
5 g% y6 D( R# l) ^# ? J$ A9 x! W7 M8 R1 J# t V
内核启动以后文件系统也可以挂载成功但是无法使用串口,如果把串口换成ttyS2就可以使用,是不是内核配置里面需要什么啊
+ E2 b5 ^5 D! U) W9 @4 B
* y" s4 E' W9 U
+ y- N6 w$ g8 c, I) }& O9 H* ^* t2 S+ X1 Y8 t
|
|