|
|
我使用的是linux 3.30 ,uboot是创龙提供的,文件系统是mini文件系统,8 W. E C6 R6 G5 ?
文件系统inittab" k9 Q; s9 k s( ]7 a6 S: e& F
::sysinit:/etc/init.d/rcS
4 V: _) m7 g+ z# /bin/ash$ H2 I+ I/ B& N6 d& A6 B
#
. e+ m/ T( z, x: g: g/ X# Start an shell on the serial port
& t8 Y6 U& b' r9 _$ d# r" ?console::askfirst:-/bin/ash
- a- `% u) ~; L d
% c* ~: n8 i" H2 F' k# Stuff to do when restarting the init process9 u9 Z, w# i* E% w- M( }/ ?
::restart:/sbin/init
* s# z# D( d: N9 m, l4 T! B% X, G8 y9 O
# Stuff to do before rebooting
) ]' \# S' }- u: e3 w! j0 K::ctrlaltdel:/sbin/reboot
+ t" N" `/ J6 I/ O1 n2 {% E::shutdown:/bin/umount -a -r
& d# _5 b. D$ A8 w( e0 Z::shutdown:/sbin/swapoff -a
0 L+ R4 S, Y* `$ J( ^1 d
( P2 ?. z1 \( ^" K' S# K9 F( fuboot参数是4 r- }& s3 \3 V x6 m
U-Boot > pri
4 V0 O: N- P2 n, E) I- `baudrate=1152000 A3 o/ K- N; ?0 u
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
6 _- `0 x6 E% y. w. J; n4 z S5 Y9 Jbootcmd=tftp c0700000 uImage;bootm c0700000' }% T3 c1 d, g& j0 }; @$ `. }/ [
bootdelay=1/ t; i- Q# }$ e
bootfile=uImage) v3 t0 @6 ^ i8 O- s4 Y9 @6 q' X: k
ethact=DaVinci-EMAC
9 P! u& k6 g1 G, ^1 R1 }ethaddr=08:00:02:e3:4d:66! Y J- y- Q. \7 m6 t2 w! j6 z) g
hwconfig=dsp:wake=yes4 {& y! U+ |- `$ o
ipaddr=192.168.1.5
' W( @& \3 g( Tnetmask=255.255.255.09 H+ R; l4 j" ~: b/ J
serverip=192.168.1.1001 A: d9 S4 E% A" Z$ I
stderr=serial
' H9 j# l- G8 ^- J: N; Cstdin=serial: U4 A7 j' G, F" y* J$ A
stdout=serial; }& o( \ L F9 t- _* Z
ver=U-Boot 2012.04.01 (Sep 23 2014 - 13:22:36)6 a4 y! y) N# q7 X- I: D, ^
4 e; N5 l: t0 q- S3 l2 }) sEnvironment size: 515/131068 bytes
1 L" F+ e; n' V5 A/ d8 }0 B7 ]. j) s6 k, o) ^) y
内核启动以后文件系统也可以挂载成功但是无法使用串口,如果把串口换成ttyS2就可以使用,是不是内核配置里面需要什么啊! F. K* L& s4 Q7 F% c1 \( ]+ h! `
& O8 V/ E2 Y' n! J/ p$ L
3 \0 J$ `' W7 }: r) A( G- I, [0 M3 R9 N% r- _" r2 X5 ?
|
|