|
0. 开发板型号: TL138/6748/1808F-EasyEVM-A2, 开发版启动模式模式为SD卡启动7 G* G7 m1 x! ~& ~- {
# h+ J# l! X- c8 X: Q1. 在ubantu16.04(64bit)按照官网安装ti-processor-sdk-linux-omapl138-lcdk-04.00.00.04-Linux-x86-Install.bin5 }3 h6 U" y" ^- U& n% z
! q. ~* W5 T1 c* f7 j2. 把uboot, kernel, filesystem写入SD卡, 拨码开关设置为SD启动, 能够正常启动能够进入嵌入式开发版4 {9 o7 L# A- E2 g: G
9 ~* m) x4 F* S K
3. SD卡启动方式保持不变,但是在uboot中配置为tftp下载内核和nfs挂载方式1 p& p1 a3 o# o+ W
0 r. l6 e, g( { S
uboot配置参数如下(由于没有开发板没有自动获取mac地址,所以自己设置为: setenv ethaddr 00:0c:29:bc:7e:9a):: D5 d: U, ^0 [, d2 _
. H4 W4 E) E6 x, l* z1 G
setenv uboot_macaddr 1
! _2 j# Y/ t. z& c4 qsetenv ethaddr 00:0c:29:bc:7e:9a " H$ R% N+ V5 }; N$ d' Q! ?- P/ P
setenv serverip 192.168.2.192' a) Z% _' K1 ~4 T% M, I8 N
setenv ipaddr 192.168.2.191
6 ], P( k. U$ c# _. X
! H0 s e. m6 Ybootcmd=tftp c0700000 zImage;bootz c0700000% q1 p- B( X0 }' [# V
4 v1 k/ Z3 K, U0 S0 _7 L. v- }, B
bootargs=eth=00:0c:29:bc:7e:9a nfsroot=192.168.2.192:/opt/omapl138/linux-sdk/targetNFS, nolock rw console=ttyS2,115200n8 ip=dhcp root=/dev/nfs/ j. z0 G3 P: \7 Y, O3 }- V
" W+ ~5 x# y2 f; ~0 ~3 v& g4. 能够通过tftp下载并启动内核,但是在挂载NFS文件系统之前报错(错误在下面内核启动信息的最后):1 W+ i' B- N; e$ [" g" _1 f u2 Z
# ~2 G( ]: q7 J% Z7 R* |boot命令后的完整启动信息:$ g6 k. o6 ^6 r1 @
; w! O* L( `* o, o
=> boot% O# d! M1 k5 \! b
Using DaVinci-EMAC device
: Q# [$ _* X, c4 {; f1 ?TFTP from server 192.168.2.192; our IP address is 192.168.2.191
7 i: b; o7 Z9 M9 g) P. [8 @+ IFilename 'zImage'.
+ P1 f/ [/ y) `1 ]$ K' BLoad address: 0xc0700000$ Z# c; d; I. d3 @
Loading: ################################################################# Q: u! \8 _% ]9 [0 @
#################################################################
, J& ]4 o. B5 q, C/ Q/ B ################################1 l& Q2 K, V! B$ Z( u1 G& j
288.1 KiB/s) n2 P5 x q" B' a& I& i# @
done
, N# o; X+ ?& W. ^% xBytes transferred = 2367360 (241f80 hex)) Z* U# b) Z% w5 n. V8 A5 \" Z( ~
3 ]9 V! P7 p3 o9 e1 ?$ e v" a/ r: fStarting kernel ...
F: W. T l; A5 f8 c/ m5 x2 Z( e8 O: ^/ g
Uncompressing Linux... done, booting the kernel.- J2 p0 c9 H0 @& \7 A
Booting Linux on physical CPU 0x0: ?0 c' V& j, k
Linux version 4.9.28-geed43d1050 (gtbldadm@ubuntu-16) (gcc version 6.2.1 20161016 (Linaro GCC 6.2-2016.11) ) #1 PREEMPT Wed Jun 28 17:47:16 EDT 20179 j5 ^: e2 E. t7 l
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
# T1 A5 u5 ^* O# f- X) {CPU: VIVT data cache, VIVT instruction cache) v8 {8 \& f7 I t: @3 X5 S; W
Machine: AM18x/OMAP-L138 Hawkboard
3 u2 A; U% Y3 S9 oda8xx_rproc_reserve_cma: 'rproc_mem=nn@address' badly specified
1 b' E/ B4 S2 \' o, S 'nn' and 'address' must both be non-zero- X7 C& v, U l! U9 T+ ?) k
cma: Reserved 16 MiB at 0xc6c000007 o% K6 ^6 a* D! F; v& c
Memory policy: Data cache writethrough. b2 N/ j5 O9 p4 I: q" I
DaVinci da850/omap-l138/am18x variant 0x1
7 g/ l. K+ {& Y/ H3 m) x1 KBuilt 1 zonelists in Zone order, mobility grouping on. Total pages: 32480/ q* V& O; B, M7 W2 n; U: i
Kernel command line: eth=00:0c:29:bc:7e:9a nfsroot=192.168.2.192:/opt/omapl138/linux-sdk/targetNFS, nolock rw console=ttyS2,115200n8 ip=dhcp root=/dev/nfs
" M% w" n- _9 E( m4 U9 oPID hash table entries: 512 (order: -1, 2048 bytes)
! p, v7 {6 `& n7 K0 u1 |: xDentry cache hash table entries: 16384 (order: 4, 65536 bytes)6 \% e& A, n3 [0 x. T/ o
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)! p3 f8 G% }' [9 x7 j2 u
Memory: 106592K/131072K available (4529K kernel code, 308K rwdata, 1500K rodata, 228K init, 162K bss, 8096K reserved, 16384K cma-reserved) m' l3 z `, ^9 H2 r
Virtual kernel memory layout:- x. O4 O5 P; c5 W$ H c( E7 ]1 {
vector : 0xffff0000 - 0xffff1000 ( 4 kB); F2 @. L1 i9 B0 [6 r0 J9 G! n N
fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
! ~2 m/ E2 M, O I vmalloc : 0xc8800000 - 0xff800000 ( 880 MB), k3 P' f3 J* O$ S4 [/ Q
lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)5 _3 N% o" W9 w1 Z
modules : 0xbf000000 - 0xc0000000 ( 16 MB). x O6 D& |7 B1 U+ J$ e D7 _
.text : 0xc0008000 - 0xc0474b38 (4531 kB)
, n+ x/ P; F+ A( @+ k3 ^9 X .init : 0xc05ed000 - 0xc0626000 ( 228 kB)- g1 h: A( A% ~7 t: M+ @
.data : 0xc0626000 - 0xc0673110 ( 309 kB)" u" K! I" C7 o3 p/ J: U! s: c0 p
.bss : 0xc0673110 - 0xc069bc08 ( 163 kB)
3 H0 J& z# ` f! Q$ S# K( KSLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
" s$ g, U9 Z' y2 X: K" b3 c4 v* G5 {4 VPreemptible hierarchical RCU implementation.! Z3 ~6 A+ Y! Y H" T( R. T; c- `
Build-time adjustment of leaf fanout to 32.: r7 @1 d* ~: t
NR_IRQS:245
: ~6 Y7 a. ~1 a; I) p9 E' S7 Uclocksource: timer0_1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns' X X4 r1 f: J9 o8 v
sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns) o# U+ N. G* {( I$ _" q" d
Console: colour dummy device 80x30
* ^6 w) u) v- |% }Calibrating delay loop... 227.32 BogoMIPS (lpj=1136640)0 h" U+ ]; F6 k K" e
pid_max: default: 32768 minimum: 301
) X6 K. x$ o- {0 _) OMount-cache hash table entries: 1024 (order: 0, 4096 bytes)! i9 a6 @1 i) y, H* m
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
: U# {9 s: h- Z" L7 G0 hCPU: Testing write buffer coherency: ok
2 E2 ~2 `9 z+ D( q/ ZSetting up static identity map for 0xc0008400 - 0xc0008458
9 j9 i, p; g& U2 K' k: t2 u* E- g3 Sdevtmpfs: initialized
/ z$ {4 b9 }/ U3 o: yVFP support v0.3: not present
( c' D; \7 R n; h7 D9 ^clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
c7 Z1 @) |5 l6 G' U9 K3 sfutex hash table entries: 256 (order: -1, 3072 bytes)
* `/ o2 Z) b! `2 g. M7 J4 g8 Y2 }pinctrl core: initialized pinctrl subsystem
9 n2 ]5 ?% ^; u5 ^) n& PNET: Registered protocol family 16
! V% S2 Z+ e3 ~9 E4 UDMA: preallocated 256 KiB pool for atomic coherent allocations
6 Y$ v/ y1 Q8 D; C+ Fcpuidle: using governor ladder
$ @% p* p' d$ G3 [cpuidle: using governor menu7 \0 g- H4 ?7 U3 W' z4 W0 T3 P
EMAC: MII PHY configured# a) x- W' P7 ?+ I/ z. S
mux: initialized GPIO3_12
) h) }8 l2 J- ]+ l/ A: `, dmux: Setting register GPIO3_12) i4 y0 F: {1 l. I0 d* Y9 x
mux: PINMUX7 (0x0000001c) = 0x00110110 -> 0x00118110
; h( v0 j0 B+ D. _; Kmux: initialized GPIO3_13/ H. X) n0 n1 k! M
mux: Setting register GPIO3_13
& F) \% j: j7 E) Kmux: PINMUX7 (0x0000001c) = 0x00118110 -> 0x00118810
- x1 B0 C3 N9 {8 Y7 omux: initialized GPIO2_4
- n1 o2 K, \ G+ ]: Ymux: Setting register GPIO2_4
$ O5 T+ V6 V& Z8 P& o! V% A7 l. ^mux: PINMUX6 (0x00000018) = 0x00000000 -> 0x00008000
2 u, U- L9 z$ _( K. smux: initialized GPIO6_13
) X/ r) Z6 I- I* j) N$ G5 l1 Dmux: Setting register GPIO6_13, C S J% t0 t
mux: PINMUX13 (0x00000034) = 0x00000000 -> 0x00000800
( C" U9 C% h. ^, ?da8xx_register_rproc: memory not reserved for DSP, not registering DSP device
! }7 l1 a& v9 Z8 g" domapl138_hawk_init: dsp/rproc registration failed: -128 E2 L g9 s( Q+ O/ g4 m
edma edma.0: Legacy memcpy is enabled, things might not work. T ?) d. k/ C
edma edma.0: TI EDMA DMA engine driver6 s* B3 {1 L2 m: Q" \
edma edma.1: Legacy memcpy is enabled, things might not work% I; e; V( k1 g7 P' F) V, `" a. p
edma edma.1: TI EDMA DMA engine driver) ~# g' F# {7 ~0 T1 {/ d* G& p4 X4 b
clocksource: Switched to clocksource timer0_1
8 K$ V f. f( JNET: Registered protocol family 2. _& J" C; S% ~" O8 H
TCP established hash table entries: 1024 (order: 0, 4096 bytes)2 M2 x7 ]$ t1 L' _2 e1 J
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)7 h# N; ^7 T0 M' v9 P; W6 g) Z) M
TCP: Hash tables configured (established 1024 bind 1024)
/ W& R& S& n6 {2 L$ }1 }- T! PUDP hash table entries: 256 (order: 0, 4096 bytes)% j& @; P; \ H" ]7 m
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes); ~* S+ y! G8 a
NET: Registered protocol family 1
6 O( T; Z V2 i- zRPC: Registered named UNIX socket transport module.
* d0 O j1 A7 i" p" {RPC: Registered udp transport module.2 t' }2 N: A, ?
RPC: Registered tcp transport module. V( f5 R+ o: d& _' c
RPC: Registered tcp NFSv4.1 backchannel transport module.0 g* h( ]$ \, ?! F
workingset: timestamp_bits=14 max_order=15 bucket_order=1" E% l& ^0 t( M- v% y$ W! ]! {
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)2 t6 Q( b6 ?- z7 q
io scheduler noop registered (default); N2 T. F$ c w5 _% e8 u$ d; e
Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled9 {8 d$ }# |9 j5 \) o1 n4 `# S3 c
serial8250.0: ttyS0 at MMIO 0x1c42000 (irq = 25, base_baud = 14250000) is a 16550A
5 E+ Z5 E7 y3 n6 Yserial8250.1: ttyS1 at MMIO 0x1d0c000 (irq = 53, base_baud = 8250000) is a 16550A! [! S) C0 D) I* b6 E: J" f3 `
serial8250.2: ttyS2 at MMIO 0x1d0d000 (irq = 61, base_baud = 8250000) is a 16550A7 I- @3 @5 c' J4 o! l
console [ttyS2] enabled9 o1 Z$ t8 j+ ]4 i- {
brd: module loaded/ \: o9 l0 u3 I. ^) d5 H
libphy: Fixed MDIO Bus: probed
/ `5 H. b9 N1 h5 v# idavinci_mdio davinci_mdio.0: davinci mdio revision 1.57 ~* T8 M& q( ]6 [, u; V+ W- ~
davinci_mdio davinci_mdio.0: detected phy mask fffffffe2 L4 [; Y% H' i0 U, v& ?4 b/ A& A) H' b* D
libphy: davinci_mdio.0: probed
2 B# A5 m) N( m2 k& Ddavinci_mdio davinci_mdio.0: phy[0]: device davinci_mdio-0:00, driver SMSC LAN8710/LAN8720
! B: j9 z) O* I( _7 l1 Ei2c /dev entries driver
2 m O7 T) ~& Xdavinci_mmc da830-mmc.0: cannot find GPIO chip davinci_gpio.1% P0 C) h( k( j7 P A' k
davinci_mmc da830-mmc.0: cannot find GPIO chip davinci_gpio.1' U. ~- V3 W" k- s
davinci_mmc da830-mmc.0: Using DMA, 4-bit mode
& o& d& _& I2 D) i/ {NET: Registered protocol family 102 L, [' f: }1 k4 s+ y3 Y
sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver, R# _3 i9 b9 e, j) ?* d: Y" S
NET: Registered protocol family 17
0 Y2 p. m' b8 b3 |console [netcon0] enabled+ I4 M- G4 G" r6 P. a
netconsole: network logging started
3 c4 r5 H, r1 E( w7 ~$ b9 s5 g- Gdavinci_emac davinci_emac.1: using random MAC addr: 0a:ed:9e:24:43:89; C* k& B+ w1 _5 U( m0 q
hctosys: unable to open rtc device (rtc0)! c+ M5 { C- ]) i
libphy: PHY davinci_mdio-0:07 not found$ s( {- U% b+ W9 K
net eth0: could not connect to phy davinci_mdio-0:070 e2 n6 z- a" \( i
IP-Config: Failed to open eth0; G- k3 j8 s( |. j' Q/ N
IP-Config: No network devices available
+ c/ F8 e# g7 ^6 ymmc0: host does not support reading read-only switch, assuming write-enable
# o% T% x- g6 ^' _mmc0: new high speed SDHC card at address 59b4, j& \( J5 X4 w$ @! u. V
mmcblk0: mmc0:59b4 SS08G 7.41 GiB
+ L" r; s0 s# z, I3 M mmcblk0: p1 p2
" y! ~+ l+ M, N6 F
1 C' N( |/ x: G1 P1 B) Q; p/* 此处等待了一段时间 */
$ L' r) ]9 r( ~% w3 }+ u+ B* K# e
# U p8 T: Z/ m' z" i1 k1 ?1 w( E7 e: }random: fast init done
- \( I% g! j8 N! i$ T/ y& T5 IVFS: Unable to mount root fs via NFS, trying floppy.0 o" K2 d4 u& ?( v
VFS: Cannot open root device "nfs" or unknown-block(2,0): error -6
# {6 {9 c* E! F! d/ T5 c/ zPlease append a correct "root=" boot option; here are the available partitions:
3 t7 D! x, L. v2 G, C0100 32768 ram0 (driver?)9 l# |, l+ `2 c8 c
b300 7764992 mmcblk0 driver: mmcblk
& V$ M/ F3 V g, } b301 71680 mmcblk0p1 cd4e1bc4-01- m( q6 r" z& n5 [
b302 7675904 mmcblk0p2 cd4e1bc4-02
. p- m' N4 l4 i8 L/ a& aKernel panic - not syncing: VFS: Unable to mount root fs on unknown-block
, s* N2 k1 z+ n/ g% [7 ~( y& b& T! s5 m; w. x/ u3 l5 I1 p2 E ~; z
: H+ {: F0 v% K
|
|