|
0. 开发板型号: TL138/6748/1808F-EasyEVM-A2, 开发版启动模式模式为SD卡启动: D j% M. G- p' _% m
* Y" q) t! u1 p1. 在ubantu16.04(64bit)按照官网安装ti-processor-sdk-linux-omapl138-lcdk-04.00.00.04-Linux-x86-Install.bin
* b6 L; A- K& _& O: ]6 a& j
' {( e: D) Y t2 h" z2. 把uboot, kernel, filesystem写入SD卡, 拨码开关设置为SD启动, 能够正常启动能够进入嵌入式开发版1 Z5 H$ `+ s# X3 s! ~/ N
& o- A; z2 k6 ^ z& V1 ?1 ? Q d
3. SD卡启动方式保持不变,但是在uboot中配置为tftp下载内核和nfs挂载方式: @: a2 n) b/ u$ T% c' Z! a
5 y2 r: x3 Q1 f( O9 @uboot配置参数如下(由于没有开发板没有自动获取mac地址,所以自己设置为: setenv ethaddr 00:0c:29:bc:7e:9a):
( v4 D+ O; ]2 ~& I$ r& S1 T
+ z0 g- P9 l3 v6 a- A5 J; ]setenv uboot_macaddr 1
6 g f1 Y- h6 u5 ~/ q4 U' Z2 `$ `setenv ethaddr 00:0c:29:bc:7e:9a
" A. N5 @' h0 |, F, l# isetenv serverip 192.168.2.1921 j5 M5 o3 p( x1 |! u5 E+ X2 r
setenv ipaddr 192.168.2.191% j7 X$ L4 w* u4 |* ]( J7 X( R# `
* B3 U! `, ?# K. O2 M2 }bootcmd=tftp c0700000 zImage;bootz c0700000
- |; X$ X: Y( G1 p% i8 y/ f a( ^% w) [1 m/ R
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
% W! s1 S: d2 I+ A2 h( Y6 v! I8 P; @2 [6 s/ T0 g
4. 能够通过tftp下载并启动内核,但是在挂载NFS文件系统之前报错(错误在下面内核启动信息的最后):
: L* B- {5 H- C/ z: d; y1 g+ _$ o6 d% V
boot命令后的完整启动信息:+ G$ u# Q/ U x- r% Q! j! h
- @3 m: d( l% a' f+ v
=> boot- F. F- ^* F* G
Using DaVinci-EMAC device
, ~/ z) z& t& Q- nTFTP from server 192.168.2.192; our IP address is 192.168.2.191
0 b1 s# ~; Z9 i+ FFilename 'zImage'.2 N3 k5 L- M2 K8 ]. N8 N
Load address: 0xc0700000
. Y P, b7 G! B4 X+ C% {Loading: #################################################################
# G% v- ?' t" z+ N k9 ` #################################################################! P( L2 U6 ^2 ]$ s4 q5 b+ q
################################# t$ a, A4 `* z
288.1 KiB/s% a: W5 w! y% ^6 T- c
done* J5 a" o( Y6 k" t% w) l1 b
Bytes transferred = 2367360 (241f80 hex)& }" X5 [* g5 t. Q% z+ q- c$ L
8 f( S5 B# ^& f. Z9 j
Starting kernel ...
( q* n& p0 T U& b/ t- X% M( B1 A+ M! @7 z" d) y8 Q" `6 n
Uncompressing Linux... done, booting the kernel.
& B9 ]0 t+ F; T, F. aBooting Linux on physical CPU 0x02 G, H; M9 e4 { H" `0 D" \
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 2017
4 B7 h Z7 H5 [0 H m4 |CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
6 d1 D3 ?$ a1 X% W; p5 q. k3 aCPU: VIVT data cache, VIVT instruction cache0 `: H% S/ y+ p& i3 h( [
Machine: AM18x/OMAP-L138 Hawkboard, U+ V, x+ y5 y5 o+ @7 h
da8xx_rproc_reserve_cma: 'rproc_mem=nn@address' badly specified
& H9 _' o" E* Z- w+ b2 S% S a 'nn' and 'address' must both be non-zero
9 M4 A. a7 J& ]+ j; N( Fcma: Reserved 16 MiB at 0xc6c00000
' k3 h [0 D2 j4 U6 u7 E vMemory policy: Data cache writethrough5 d; q( j: S6 l& o% G
DaVinci da850/omap-l138/am18x variant 0x1
, b5 v& S$ v0 x+ ?- F) x K& d/ ^Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32480. v$ b7 t5 z. A/ P, ]( c" ]! C N
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
m5 Z9 E/ p) R+ \- N* `+ G! [PID hash table entries: 512 (order: -1, 2048 bytes)
3 t8 F( V2 [7 T U5 y& r; V* X# IDentry cache hash table entries: 16384 (order: 4, 65536 bytes)" t* E- V: D! M) c% ?8 K
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
% w* D$ a% ^3 H+ FMemory: 106592K/131072K available (4529K kernel code, 308K rwdata, 1500K rodata, 228K init, 162K bss, 8096K reserved, 16384K cma-reserved)3 T5 n$ F& c6 i. j( l, d% m/ L# {9 Y
Virtual kernel memory layout:
+ c u) r+ U$ ^: S7 Q. } vector : 0xffff0000 - 0xffff1000 ( 4 kB)% ]8 Y1 |- ?& y, [# o
fixmap : 0xffc00000 - 0xfff00000 (3072 kB)+ x7 b- V' O8 n
vmalloc : 0xc8800000 - 0xff800000 ( 880 MB)
4 Z- [6 F( C, M6 ~( I, W lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)
4 E: v3 D2 I& ~) b modules : 0xbf000000 - 0xc0000000 ( 16 MB)
$ g8 ]- Q0 @+ @% W& ]. l5 y7 O& _ .text : 0xc0008000 - 0xc0474b38 (4531 kB) x5 ` Z; U/ u; y5 T! b+ [
.init : 0xc05ed000 - 0xc0626000 ( 228 kB)
1 I5 L2 Q9 j1 X5 W8 q1 Q" w+ T/ n .data : 0xc0626000 - 0xc0673110 ( 309 kB)
8 [+ f! `7 { M4 J .bss : 0xc0673110 - 0xc069bc08 ( 163 kB)/ T2 a: J, u) ^, y$ Q
SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1& }& K' r2 ^% f. P
Preemptible hierarchical RCU implementation.
- Q2 m7 H" S5 E$ }1 G0 t- E Build-time adjustment of leaf fanout to 32.
/ C' l* f5 a3 Q* q8 iNR_IRQS:245; K" t+ I/ Q2 T) e4 f T: J& [2 n0 n
clocksource: timer0_1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns" |" X) R6 q% B
sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns" W1 {% N ], F0 K8 `. I
Console: colour dummy device 80x30
/ H0 D1 M- T9 { J+ c( ?Calibrating delay loop... 227.32 BogoMIPS (lpj=1136640)
" O; t9 J3 j/ H/ p |/ f3 opid_max: default: 32768 minimum: 3011 g4 D+ S4 \ e$ Q
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)4 a6 j, K3 [6 T7 ` v: z6 V% R
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
9 v5 U$ ]* y* G' ?, DCPU: Testing write buffer coherency: ok
# I8 p# y5 L/ o& TSetting up static identity map for 0xc0008400 - 0xc0008458: t, p3 G8 h9 F( ~ \
devtmpfs: initialized1 M: o1 g! F1 I0 _( z
VFP support v0.3: not present
, d7 u9 ^3 D! m# g- k& X8 qclocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns" g) e+ ~- }2 Z3 U
futex hash table entries: 256 (order: -1, 3072 bytes)
. e0 k# t# n$ dpinctrl core: initialized pinctrl subsystem: ~, n, j6 t! r9 @7 B# t9 O( d
NET: Registered protocol family 16
: x8 |3 ~& H/ [2 M+ }& KDMA: preallocated 256 KiB pool for atomic coherent allocations
% W( z- R& M1 ~& t' p/ o5 K z. Gcpuidle: using governor ladder
# f8 E: b2 z0 {cpuidle: using governor menu+ w( h2 j' E; b% U: r
EMAC: MII PHY configured
: }' ~- R$ a Z5 Zmux: initialized GPIO3_12( ^3 P. `9 D" c/ A2 \" r! S5 C
mux: Setting register GPIO3_12; A1 z( R1 c' I C" E
mux: PINMUX7 (0x0000001c) = 0x00110110 -> 0x00118110
: @8 ]/ x9 F( c+ T+ B' l: Cmux: initialized GPIO3_13
# [, U9 U+ X& V U/ R; G8 C2 k% n. Pmux: Setting register GPIO3_13
, i- C/ g- K8 U+ Cmux: PINMUX7 (0x0000001c) = 0x00118110 -> 0x00118810
7 q( n$ L7 q1 f6 t5 [2 \ R5 @mux: initialized GPIO2_4; g/ N# c: [. M( q! f+ c" u
mux: Setting register GPIO2_4
5 z2 f1 t) i( o; Amux: PINMUX6 (0x00000018) = 0x00000000 -> 0x00008000
6 `1 @- s6 @0 a1 D0 ^' t1 Q$ umux: initialized GPIO6_133 L, m. w, r4 v @; w2 r
mux: Setting register GPIO6_134 x& C8 X! v2 ~* e, Y: K% [
mux: PINMUX13 (0x00000034) = 0x00000000 -> 0x00000800- x4 M8 F( _, U& p5 v+ d* n
da8xx_register_rproc: memory not reserved for DSP, not registering DSP device# k+ a1 v; G/ b4 O
omapl138_hawk_init: dsp/rproc registration failed: -12: {4 W2 g8 Y5 k" F* f; {9 D( `
edma edma.0: Legacy memcpy is enabled, things might not work V ~+ J5 n/ W7 M) O
edma edma.0: TI EDMA DMA engine driver
* I! M6 @9 F& Z, _+ F1 {edma edma.1: Legacy memcpy is enabled, things might not work7 q' d+ I8 \+ [! U$ z9 ]5 u
edma edma.1: TI EDMA DMA engine driver
- M% p* e) q2 Z) V; X* nclocksource: Switched to clocksource timer0_1' l5 D- K0 z/ S+ H' C- {" O
NET: Registered protocol family 21 o1 o8 _; N; h4 P0 q% n/ p
TCP established hash table entries: 1024 (order: 0, 4096 bytes)
0 ~# c$ q( A2 RTCP bind hash table entries: 1024 (order: 0, 4096 bytes)$ T# _- O5 K6 v# K, N
TCP: Hash tables configured (established 1024 bind 1024)$ ^: r, G7 \( M- Y+ B1 n
UDP hash table entries: 256 (order: 0, 4096 bytes)
1 v' Q$ V0 S: C1 ^ x8 c3 tUDP-Lite hash table entries: 256 (order: 0, 4096 bytes)' y* h$ [/ ?; z9 p; X$ l
NET: Registered protocol family 1
7 M: b" p& H4 c# `- j+ \- lRPC: Registered named UNIX socket transport module.9 _$ e" [8 Z+ J5 Z) e! e' [
RPC: Registered udp transport module.
! g! D+ v b, o1 t0 {# E8 c6 oRPC: Registered tcp transport module.3 T1 z$ U# o( a6 W. T
RPC: Registered tcp NFSv4.1 backchannel transport module.7 w' |: R L6 O
workingset: timestamp_bits=14 max_order=15 bucket_order=1! {. l1 u- v* ~ d s
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
. m, b1 a# f2 A3 p0 Uio scheduler noop registered (default)" b; P& ~4 o4 D& `
Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
' Q) Y. L4 @2 Z2 x3 j8 Vserial8250.0: ttyS0 at MMIO 0x1c42000 (irq = 25, base_baud = 14250000) is a 16550A1 }0 C6 y6 ?6 d$ R
serial8250.1: ttyS1 at MMIO 0x1d0c000 (irq = 53, base_baud = 8250000) is a 16550A. l) E7 n g! |0 e
serial8250.2: ttyS2 at MMIO 0x1d0d000 (irq = 61, base_baud = 8250000) is a 16550A
! y% B" X- j8 j3 ?console [ttyS2] enabled: S& O! g) S# [
brd: module loaded
- `8 G/ U& O' ^- v; Y# Wlibphy: Fixed MDIO Bus: probed5 |3 C: J/ u6 |( j, F: }) ~
davinci_mdio davinci_mdio.0: davinci mdio revision 1.5
6 B/ T- @+ F/ j1 k9 s2 E3 H; m5 ldavinci_mdio davinci_mdio.0: detected phy mask fffffffe6 c2 O6 g T9 g' b8 W( \' d7 n
libphy: davinci_mdio.0: probed
V7 J* `4 k; rdavinci_mdio davinci_mdio.0: phy[0]: device davinci_mdio-0:00, driver SMSC LAN8710/LAN8720
$ h) K( \9 r- x2 z( j$ x8 ` X7 ^i2c /dev entries driver
/ x! n- {/ V# l/ V. R- ]) L! Gdavinci_mmc da830-mmc.0: cannot find GPIO chip davinci_gpio.14 }1 e7 P6 @# O5 J& D1 n, D
davinci_mmc da830-mmc.0: cannot find GPIO chip davinci_gpio.1& T6 g& \' W/ v. [" v
davinci_mmc da830-mmc.0: Using DMA, 4-bit mode# d4 k6 F) i: r2 }4 e. Q
NET: Registered protocol family 10
& O# F/ f) e( M! S3 F; Usit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
4 F! h- O3 N9 w5 Z' ~3 L% SNET: Registered protocol family 17
, d9 I F( G: `# y# e( v! qconsole [netcon0] enabled
- E. ~6 x4 s5 E# Hnetconsole: network logging started
+ f7 s# L( c) j- S+ }davinci_emac davinci_emac.1: using random MAC addr: 0a:ed:9e:24:43:895 O J A$ F# Z+ z) U; s
hctosys: unable to open rtc device (rtc0)
m7 f! u5 J+ G% c A, n4 O2 i0 G) |libphy: PHY davinci_mdio-0:07 not found0 z3 ` H; x6 Q' J7 W
net eth0: could not connect to phy davinci_mdio-0:07. h. ?# d6 I# ^1 j/ ~ |
IP-Config: Failed to open eth0
* F. T t5 S. \" A1 M" vIP-Config: No network devices available% J( h# w6 Q: y
mmc0: host does not support reading read-only switch, assuming write-enable3 G" u5 @: i$ H, ^* S* N
mmc0: new high speed SDHC card at address 59b4: Y) e6 k! X3 L9 x
mmcblk0: mmc0:59b4 SS08G 7.41 GiB
$ b% T3 I( q" Y$ {( X3 i3 c7 q mmcblk0: p1 p2$ Q$ C+ ]' q# k! R, t
8 F8 \) M( a7 |% c
/* 此处等待了一段时间 */
- P; @7 @0 y) k! b, Q& C& V7 Z9 D+ w- d% p7 ]
random: fast init done$ X7 x( m+ D- a: N: b. v( E8 c
VFS: Unable to mount root fs via NFS, trying floppy.
( a6 ]: S) G! g4 fVFS: Cannot open root device "nfs" or unknown-block(2,0): error -6
# Z* L4 |* r3 Z# w* \, J+ \Please append a correct "root=" boot option; here are the available partitions:& v* K# J* C0 S0 c: H' T5 N3 a4 G
0100 32768 ram0 (driver?)$ S- C$ b+ s2 P* C5 F) m; R
b300 7764992 mmcblk0 driver: mmcblk' A+ X: ~- b, Q* x' b, d8 R
b301 71680 mmcblk0p1 cd4e1bc4-01
: m5 p+ S& ^! Q+ k. f- b) ? b302 7675904 mmcblk0p2 cd4e1bc4-02
# g7 ^% R8 A# S4 i7 wKernel panic - not syncing: VFS: Unable to mount root fs on unknown-block# L' a6 [/ O5 I. ^8 U$ g
. d6 Z* o9 B7 e2 M
5 u# q5 E& _2 v, N: X |
|