|
我使用的是linux 3.30 ,uboot是创龙提供的,文件系统是mini文件系统,
: f) V! v5 w4 I: m. m7 O文件系统inittab
\8 o8 Z7 u3 {::sysinit:/etc/init.d/rcS
% H+ a$ l# c0 r/ v+ W7 j" w2 ?. p# /bin/ash
: @3 H" C ?8 K) W3 [#9 i0 h1 K+ L( f1 e, P! l
# Start an shell on the serial port
# @, C, z4 \' y) Iconsole::askfirst:-/bin/ash0 R$ d) }* ?# ~" @" g; y
3 v# B/ o5 K+ C* I0 o+ b# Stuff to do when restarting the init process
- f Q9 t- Z7 _5 S2 F/ W% F8 v::restart:/sbin/init
8 e- J) y1 u3 l. E1 ?# J7 B2 B
* t+ B1 r; S& o9 }# Stuff to do before rebooting5 B/ {) p1 t2 U' {8 ] E3 H
::ctrlaltdel:/sbin/reboot" t$ d7 O: U) U5 v3 i2 ^
::shutdown:/bin/umount -a -r
2 r7 F& }$ p: }2 l. O" b::shutdown:/sbin/swapoff -a
) B7 h% G4 R D- G2 |, {) i" l
. P- Z; C3 [ P, vuboot参数是 z* z) u& y) w8 v, Y8 K* x$ g$ g
U-Boot > pri! `+ R* d* ~0 G6 n3 v
baudrate=115200
# N8 V1 A5 q3 ~& d& @, Ibootargs=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
& J+ H6 N, `( l Mbootcmd=tftp c0700000 uImage;bootm c0700000
, L# O, G2 ^; B# v# Abootdelay=1
2 w; ?3 o6 K- `% d$ \bootfile=uImage
9 f7 F2 X0 g) a |2 [ethact=DaVinci-EMAC0 u$ e3 o! q E9 w
ethaddr=08:00:02:e3:4d:66- j; [1 O6 U0 n" P- E" s
hwconfig=dsp:wake=yes6 q& h6 t; f- x0 Q# X9 U( k4 ?
ipaddr=192.168.1.57 \, C$ N2 ^( E% ~( f+ s
netmask=255.255.255.0( M, U9 {2 m/ a2 c* |$ E
serverip=192.168.1.100- i% w# s, @6 R# [) F- S
stderr=serial
; s1 J, X( ]* j# C9 `stdin=serial
% Z( q% k7 C9 j+ O$ H3 Nstdout=serial! v9 p3 z# {- X8 N/ I/ K6 S
ver=U-Boot 2012.04.01 (Sep 23 2014 - 13:22:36)
+ Z& X( v, D8 S- e% l7 E% N+ Y" \5 `: q
Environment size: 515/131068 bytes
/ F1 B+ p. I/ A0 p: _# {- M1 m( ^. Z6 i
内核启动以后文件系统也可以挂载成功但是无法使用串口,如果把串口换成ttyS2就可以使用,是不是内核配置里面需要什么啊) ]* k/ g( F9 |* E
% u* G8 @ V* t9 k9 @
: [% s1 v- S& w2 u
# k4 p" ^3 L/ X; H; X |
|