|
0. 开发板型号: TL138/6748/1808F-EasyEVM-A2, 开发版启动模式模式为SD卡启动
) ^( z: q* V, T; Q% u9 J! z, Y. C9 W
* D* ~ b3 F# x# y5 g5 h% B7 H1. 在ubantu16.04(64bit)按照官网安装ti-processor-sdk-linux-omapl138-lcdk-04.00.00.04-Linux-x86-Install.bin3 I$ p0 O1 Q0 c' T7 e* F
! k* W1 K, V! D, T2 n3 N; ?/ W
2. 把uboot, kernel, filesystem写入SD卡, 拨码开关设置为SD启动, 能够正常启动能够进入嵌入式开发版. K9 j: Y5 l4 D' y6 b- h" M0 L5 L
) E6 r' Z( a, c, ^$ [$ o/ G
3. SD卡启动方式保持不变,但是在uboot中配置为tftp下载内核和nfs挂载方式
: @7 ~5 p" u' L* M2 ], D7 K. S v J) T/ N ?' z+ I# V6 w
uboot配置参数如下(由于没有开发板没有自动获取mac地址,所以自己设置为: setenv ethaddr 00:0c:29:bc:7e:9a): S8 r4 {1 F7 }; [
& y2 t& v3 v# t+ L5 v* ]
setenv uboot_macaddr 17 ^% m5 F, n% j# d7 i
setenv ethaddr 00:0c:29:bc:7e:9a ) b. I, X) r; M. I6 Y
setenv serverip 192.168.2.192
6 `! D+ ?% S& [( v# S' F+ ^setenv ipaddr 192.168.2.191 A4 k1 Z P9 t* A
. [7 F: ~( d& P/ z: pbootcmd=tftp c0700000 zImage;bootz c0700000
9 X0 d- u( E, M; p
! `* q: y1 {2 a3 h: Ubootargs=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/ M6 [" Z8 ]4 {& A( g0 o4 {- b: `
2 C4 g, q T; b
4. 能够通过tftp下载并启动内核,但是在挂载NFS文件系统之前报错(错误在下面内核启动信息的最后):. d- l. z9 o/ N, p; x
3 e% B L7 \5 e, n9 a
boot命令后的完整启动信息:& f+ W: }( T. v$ t! Q3 m7 i4 b
& j c; f1 T" W! L$ u; g
=> boot5 M3 {, @% P% \8 [4 r* @
Using DaVinci-EMAC device" r$ v0 d7 G# I! ]' z% `- ?
TFTP from server 192.168.2.192; our IP address is 192.168.2.191+ }6 W; w4 q- Z6 p: G; J
Filename 'zImage'.
! c4 @( s, I8 A% N1 N! vLoad address: 0xc0700000( ]+ ?$ ~1 d" ?( q. n
Loading: #################################################################
+ ] q' l2 @$ O0 I B7 ?. X, l ################################################################## c2 Z! e- L7 E8 O5 r1 ~5 ?
################################ ^* A% [/ F( H5 @; o0 p; d% n
288.1 KiB/s* o; s- U3 R& n" Z6 N- c4 M
done+ Z3 \1 ]8 B5 g7 D+ j O& Y
Bytes transferred = 2367360 (241f80 hex)
* ^/ ^: Q( X/ S( x+ R
0 z3 X; Z9 c! J& q1 GStarting kernel ...
5 |% B6 y6 G; ] h9 ]
4 X' d$ M1 ?8 f' i/ PUncompressing Linux... done, booting the kernel.3 B; V) s6 c0 u* I- A4 ]
Booting Linux on physical CPU 0x01 X$ h! j/ n. ~
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
2 d5 C/ X* J; MCPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f7 L* H. }4 g- \5 U
CPU: VIVT data cache, VIVT instruction cache: J6 B9 d# \6 T1 K
Machine: AM18x/OMAP-L138 Hawkboard
1 y. r) g3 n) z2 D2 Cda8xx_rproc_reserve_cma: 'rproc_mem=nn@address' badly specified
! W: O& h m( |+ I6 m; r 'nn' and 'address' must both be non-zero
$ W4 N& c4 g/ o# r) u9 B: L6 dcma: Reserved 16 MiB at 0xc6c00000
) p/ h0 V2 T% a& @7 L" @4 MMemory policy: Data cache writethrough0 h7 T. H j5 P/ f- T. x0 _
DaVinci da850/omap-l138/am18x variant 0x1
5 q( x& [& @5 S' `) zBuilt 1 zonelists in Zone order, mobility grouping on. Total pages: 32480
. [1 l7 ?6 ^ A* ~; f \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/nfs9 m/ [) n, M" F+ h7 @3 S
PID hash table entries: 512 (order: -1, 2048 bytes)& h( E: A! Q( t2 ?' O9 S
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
; J3 x, e9 @0 bInode-cache hash table entries: 8192 (order: 3, 32768 bytes)0 k( y% V; ~5 T8 X1 n( O3 p
Memory: 106592K/131072K available (4529K kernel code, 308K rwdata, 1500K rodata, 228K init, 162K bss, 8096K reserved, 16384K cma-reserved)
! q' O6 |) m7 f: d# z" X. zVirtual kernel memory layout:
: I3 W) l! } H. c4 |" A vector : 0xffff0000 - 0xffff1000 ( 4 kB)
0 R+ ~0 o) u, Y* T7 D, L fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
4 G+ ~: _ k% l- I1 `$ y5 z vmalloc : 0xc8800000 - 0xff800000 ( 880 MB)
2 Q: U) Y8 ~: b" Z, R4 g lowmem : 0xc0000000 - 0xc8000000 ( 128 MB), ?9 A' S) Z5 R) G6 W" f0 D
modules : 0xbf000000 - 0xc0000000 ( 16 MB)
( F( A+ a E7 {; u3 W& S' G$ B .text : 0xc0008000 - 0xc0474b38 (4531 kB)3 A) [6 ]- I! q9 @5 W
.init : 0xc05ed000 - 0xc0626000 ( 228 kB)( Z2 r8 k L( j% ~ K
.data : 0xc0626000 - 0xc0673110 ( 309 kB)+ p* J' ]0 j/ c( D: }& B
.bss : 0xc0673110 - 0xc069bc08 ( 163 kB)
# t+ @+ L1 e5 R& X; j+ \9 }5 f2 R6 ySLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=18 W4 J' l! F. i% d! e' M5 x# L
Preemptible hierarchical RCU implementation.4 c$ J5 J* ~+ W( \+ L, B
Build-time adjustment of leaf fanout to 32.- J/ i! m" L F& O
NR_IRQS:245+ x1 |. f0 f9 K( g1 e, L* ^$ H
clocksource: timer0_1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns4 C! U# j# t2 x# t+ Q T( h) b1 Q6 |5 h
sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
) r9 `8 Z* t# R1 p W# @8 b4 VConsole: colour dummy device 80x30* [7 Z8 T: S: e8 @
Calibrating delay loop... 227.32 BogoMIPS (lpj=1136640)- A% z! b( r# Q( I+ C. o
pid_max: default: 32768 minimum: 3010 f9 F: t: n; T6 u3 p0 D) O5 z
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
4 a" Z# o5 w8 cMountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
$ t* H9 r( I2 _6 m( q- d" jCPU: Testing write buffer coherency: ok" G2 A1 ? j1 h$ n8 b$ \
Setting up static identity map for 0xc0008400 - 0xc0008458- e/ |) B1 }3 U! Z. V! T
devtmpfs: initialized5 |4 D' d& ]; n! D
VFP support v0.3: not present6 M- h* p6 J" E! f
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns# ?. k E1 V+ v ]1 _
futex hash table entries: 256 (order: -1, 3072 bytes)
3 G/ _. c* ^, D5 Z4 v# [pinctrl core: initialized pinctrl subsystem( Q3 {! ^9 ? E$ K# H! n( x
NET: Registered protocol family 16: |. K! H# X1 `- D% O1 A
DMA: preallocated 256 KiB pool for atomic coherent allocations
) [! V: R0 @+ b4 V* scpuidle: using governor ladder
# C2 M1 y7 f/ J: e/ A% p+ }cpuidle: using governor menu
7 d4 I4 g2 B) u, k* w+ z HEMAC: MII PHY configured' i3 x3 A" F1 i+ v/ `) C+ f8 s
mux: initialized GPIO3_120 m2 A) `, R- ^" |/ n
mux: Setting register GPIO3_127 ~/ d2 b( j. I: f' E4 i
mux: PINMUX7 (0x0000001c) = 0x00110110 -> 0x001181107 j% {& T( E6 C& O: [
mux: initialized GPIO3_13# M$ o3 Y( u7 E+ G
mux: Setting register GPIO3_13, i8 Z1 M/ ]: a2 z7 @1 Q+ V! b
mux: PINMUX7 (0x0000001c) = 0x00118110 -> 0x00118810
( J* x, U2 H& |5 G; X8 Qmux: initialized GPIO2_40 { p* z6 S: F5 O/ G9 K/ c) k
mux: Setting register GPIO2_4
4 o2 T& m* W7 @1 x* x, xmux: PINMUX6 (0x00000018) = 0x00000000 -> 0x00008000! V+ p' f: o1 n% s: D8 O
mux: initialized GPIO6_13
: E7 C$ s: e3 U1 h# Lmux: Setting register GPIO6_132 k* I* k, u0 c; b
mux: PINMUX13 (0x00000034) = 0x00000000 -> 0x00000800& F1 |/ n* R7 X+ v
da8xx_register_rproc: memory not reserved for DSP, not registering DSP device1 ]( g# `& C' Z) k( W
omapl138_hawk_init: dsp/rproc registration failed: -12
( Y! C6 B7 y2 i- o. Z5 A2 aedma edma.0: Legacy memcpy is enabled, things might not work
/ g: C7 t/ |8 s/ ]5 dedma edma.0: TI EDMA DMA engine driver
- y2 P& W( w* L3 hedma edma.1: Legacy memcpy is enabled, things might not work4 I. U3 H) \& B: [: \1 W
edma edma.1: TI EDMA DMA engine driver \" |% a" l# J5 m \
clocksource: Switched to clocksource timer0_1
" i+ ?/ e4 K% ?$ jNET: Registered protocol family 2
0 x7 z% @4 J0 n0 [4 lTCP established hash table entries: 1024 (order: 0, 4096 bytes)$ v3 u. n8 u; z& S$ M* O# M" ?6 V- i
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
2 v8 X$ p- b' X3 N; H/ m p4 E) TTCP: Hash tables configured (established 1024 bind 1024)+ E$ T; Y3 g) d" r2 l- o
UDP hash table entries: 256 (order: 0, 4096 bytes)2 I3 {& v: S+ z6 Q% T( j9 L$ ]
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
/ U$ s- i% i( `: F$ \6 m6 ONET: Registered protocol family 15 \1 Q1 W! n! K, Q" E8 E. q
RPC: Registered named UNIX socket transport module.
9 K( \5 D: g: j% _RPC: Registered udp transport module.; |( G2 p: W+ W. Y
RPC: Registered tcp transport module.2 ]9 L* i* Z( v+ _5 E5 P
RPC: Registered tcp NFSv4.1 backchannel transport module.
$ m/ b: D6 U% s2 T5 Q: Y8 Yworkingset: timestamp_bits=14 max_order=15 bucket_order=1. b& S; d% q2 u6 [2 t
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)) X& E7 M2 X8 u# k8 Q8 z' t6 x& T
io scheduler noop registered (default)
# j+ I2 t; x4 W/ FSerial: 8250/16550 driver, 10 ports, IRQ sharing disabled9 q5 F5 s" q* g2 `2 r! i% ~! U$ M
serial8250.0: ttyS0 at MMIO 0x1c42000 (irq = 25, base_baud = 14250000) is a 16550A/ U9 C! x( J& ]" F6 N8 _
serial8250.1: ttyS1 at MMIO 0x1d0c000 (irq = 53, base_baud = 8250000) is a 16550A
0 Q" p) G7 g/ V3 H3 x& kserial8250.2: ttyS2 at MMIO 0x1d0d000 (irq = 61, base_baud = 8250000) is a 16550A
c1 G+ q" i+ j# T9 Y# m) Sconsole [ttyS2] enabled
8 `$ l/ I }0 d! N; V. nbrd: module loaded
2 F1 {2 y1 @) H" X! V: X& @+ g/ J" olibphy: Fixed MDIO Bus: probed$ N4 P6 p8 A. U2 ]' s
davinci_mdio davinci_mdio.0: davinci mdio revision 1.5! q! _% {0 h3 o4 r! Y7 a6 t' x3 E
davinci_mdio davinci_mdio.0: detected phy mask fffffffe/ Y* h2 ^7 b2 @& U B
libphy: davinci_mdio.0: probed
: x/ x4 S( T% k8 ldavinci_mdio davinci_mdio.0: phy[0]: device davinci_mdio-0:00, driver SMSC LAN8710/LAN8720
2 N2 j/ m5 M$ i- Pi2c /dev entries driver& H5 r4 C/ c( ~4 k( V6 Y
davinci_mmc da830-mmc.0: cannot find GPIO chip davinci_gpio.17 }% Z# q. D0 Z# Q z3 N
davinci_mmc da830-mmc.0: cannot find GPIO chip davinci_gpio.1
# [) m0 m, J1 p7 N1 pdavinci_mmc da830-mmc.0: Using DMA, 4-bit mode9 g# c; m, y- P4 x/ }
NET: Registered protocol family 10
: k# ^! T, @; \8 `9 _' o7 Ssit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
- f3 L, |6 d7 b% d$ L0 U1 e) PNET: Registered protocol family 179 ~( b/ v" t3 F$ L
console [netcon0] enabled: E/ T6 t | B. m9 P, Y7 j
netconsole: network logging started- x6 z4 j; x8 {$ ]+ }2 q# d
davinci_emac davinci_emac.1: using random MAC addr: 0a:ed:9e:24:43:89
1 U2 k8 b' _7 h: |! ~7 Shctosys: unable to open rtc device (rtc0). W% X$ T6 u3 h
libphy: PHY davinci_mdio-0:07 not found5 G8 j9 M& e2 V/ [$ d) ^
net eth0: could not connect to phy davinci_mdio-0:07
( ?& I t' i& `8 d' |7 TIP-Config: Failed to open eth04 O% [ k: o$ e- E C! o8 O8 |
IP-Config: No network devices available
6 p- J% n& }6 j/ E" |9 S1 Gmmc0: host does not support reading read-only switch, assuming write-enable" {0 i5 Z: F! _7 C! U
mmc0: new high speed SDHC card at address 59b4
& f7 }3 [- I2 t- h- o% e$ emmcblk0: mmc0:59b4 SS08G 7.41 GiB 8 O/ g, T( ?0 A: M% M; i
mmcblk0: p1 p2
; [. S1 O# w$ L4 P8 S4 w
9 C3 m3 _7 M( j* h0 D# W& s6 L7 I/* 此处等待了一段时间 */! K% y' L: K+ m; t/ Z
; t( e; f! l% prandom: fast init done
s( ~* u/ w) G* m, E" \VFS: Unable to mount root fs via NFS, trying floppy.
7 I% y& v# E P, r! I- RVFS: Cannot open root device "nfs" or unknown-block(2,0): error -6
. w5 e1 ~* Z, q! S$ ]Please append a correct "root=" boot option; here are the available partitions:
2 I3 w( u# x) B# t4 S0100 32768 ram0 (driver?)9 g/ u, y Y% }8 B
b300 7764992 mmcblk0 driver: mmcblk
) G& W& @$ g3 |/ ^8 U3 I b301 71680 mmcblk0p1 cd4e1bc4-01* f* m$ o' J3 _' e/ R: i5 M+ c
b302 7675904 mmcblk0p2 cd4e1bc4-02 % o6 a6 ~8 {7 d/ d9 d
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block
/ J* i# R: P, v) r3 H0 {/ j5 z6 q4 n- X9 Z5 _3 t3 @
% E# B D- {9 S, ]+ L
|
|