|
0. 开发板型号: TL138/6748/1808F-EasyEVM-A2, 开发版启动模式模式为SD卡启动+ p$ u5 f; d. ?9 R& _8 B6 G0 l
! d$ N% q; F- v9 \1 \1. 在ubantu16.04(64bit)按照官网安装ti-processor-sdk-linux-omapl138-lcdk-04.00.00.04-Linux-x86-Install.bin
% q8 Z4 @4 ]& S& i0 K: @6 R
( J2 G7 E @- T. H2. 把uboot, kernel, filesystem写入SD卡, 拨码开关设置为SD启动, 能够正常启动能够进入嵌入式开发版
& g, L+ N' r' [# R5 o m# K' S
3. SD卡启动方式保持不变,但是在uboot中配置为tftp下载内核和nfs挂载方式* r4 g+ _# x% Q2 M5 l) [. S1 S
' [. b+ E0 w' O7 w4 O5 n
uboot配置参数如下(由于没有开发板没有自动获取mac地址,所以自己设置为: setenv ethaddr 00:0c:29:bc:7e:9a):' A$ m" J# X' g' a
* {* k& a' H i2 j4 k/ n4 zsetenv uboot_macaddr 1
3 `+ a6 p3 l8 ~; y {setenv ethaddr 00:0c:29:bc:7e:9a i o, U* e7 J5 X& W
setenv serverip 192.168.2.1920 O7 H- B9 l6 e2 ?
setenv ipaddr 192.168.2.191
1 y$ o% U1 g3 o1 {0 D, u( ^" W7 }
bootcmd=tftp c0700000 zImage;bootz c0700000 z9 l' D6 w/ A, o2 \
9 U' u3 V& m1 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/nfs0 v4 U( R6 [0 m7 a% U+ u4 l
% N2 p* U n# c# m- D
4. 能够通过tftp下载并启动内核,但是在挂载NFS文件系统之前报错(错误在下面内核启动信息的最后):
: a* u% \, T9 Q: r1 C
# t3 g8 k; [ c6 y4 l" O. Aboot命令后的完整启动信息:
$ V0 \) k( f! e/ y$ Y% h$ H1 D! D# _# w/ b/ n; j) Q( o
=> boot
: p+ C3 o/ @8 v* ^9 @- _9 e9 j8 dUsing DaVinci-EMAC device
( S( \+ n" t0 W2 b/ CTFTP from server 192.168.2.192; our IP address is 192.168.2.191 X y& {! y r- Z
Filename 'zImage'.
! C' q# h1 M" w# O$ w! ]Load address: 0xc07000000 q9 k/ G8 W' y
Loading: #################################################################
6 g- h. I t1 ^9 i) p1 G ################################################################## v0 R# r$ z( K
################################
& E0 s) _" j+ M5 G/ F/ [8 [ 288.1 KiB/s* H" S4 \. Q& m/ Y/ @8 x- J
done: o- h1 p0 ]0 j
Bytes transferred = 2367360 (241f80 hex)
! l5 X* r c2 ~+ N# z5 Z$ e* N; {( Q, N
Starting kernel ... X7 n I, L2 E+ H O
% N3 a Z% G8 D _" I* W& ^
Uncompressing Linux... done, booting the kernel.
% _0 D3 R9 q9 A: g2 HBooting Linux on physical CPU 0x0
( f, A8 u: f* k. p& j: o( A+ ]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! A3 z, n9 w. S. V3 q5 z
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f \' N5 w( x5 g# v2 R
CPU: VIVT data cache, VIVT instruction cache: W, x/ y0 x" ~) k
Machine: AM18x/OMAP-L138 Hawkboard
" E* [. p# C- ada8xx_rproc_reserve_cma: 'rproc_mem=nn@address' badly specified
4 f0 {; ?$ U7 U; g; B 'nn' and 'address' must both be non-zero
7 |5 C4 I8 |* y) bcma: Reserved 16 MiB at 0xc6c00000& i( i$ B- p5 o6 o: o; c
Memory policy: Data cache writethrough
, U' H! z" X: a- S. F2 ]DaVinci da850/omap-l138/am18x variant 0x1
' c) D. Q# p5 r/ d8 g+ ~Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32480
3 p5 n0 ]9 D' K1 Z/ C" M+ jKernel 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
8 C+ Q/ V- P, W& P& V3 }! p0 _' _PID hash table entries: 512 (order: -1, 2048 bytes)
7 u3 `3 L3 h) E) }Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
# b' U/ {9 C( T8 v& t5 B% J; _ A' I& fInode-cache hash table entries: 8192 (order: 3, 32768 bytes). v$ W& }# s$ c; E3 @* J0 i$ [
Memory: 106592K/131072K available (4529K kernel code, 308K rwdata, 1500K rodata, 228K init, 162K bss, 8096K reserved, 16384K cma-reserved)
; F6 J$ u5 }7 Q% V& GVirtual kernel memory layout:: Z7 H1 v, ?( v, s
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
% ~7 R- t- F1 [, K2 d fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
% M; Q7 w6 k; s z4 Q# m+ M vmalloc : 0xc8800000 - 0xff800000 ( 880 MB)$ ^! _" y* f( ]& m" R$ {9 B
lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)
6 g9 p: B# W2 U$ ] modules : 0xbf000000 - 0xc0000000 ( 16 MB)( S0 {; n; a! F, B
.text : 0xc0008000 - 0xc0474b38 (4531 kB)
( g }. z; k3 V7 @2 G, P .init : 0xc05ed000 - 0xc0626000 ( 228 kB)9 [, \5 q: V/ } @1 W8 G
.data : 0xc0626000 - 0xc0673110 ( 309 kB)
L5 v* v/ j: _8 M" @0 D3 V .bss : 0xc0673110 - 0xc069bc08 ( 163 kB). R% u. X9 \# }* B! n
SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1, \1 A: F" K: _& N: ]
Preemptible hierarchical RCU implementation.
# O) L) K1 x0 Q* b, |2 z& S m Build-time adjustment of leaf fanout to 32.
- X5 I2 N0 E: ] R* r) WNR_IRQS:245! B2 o8 x# i7 b. Q
clocksource: timer0_1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
5 a! X& f2 Z2 ]5 W: o+ lsched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
, D+ x C0 L' R; u- ~, H. y8 c4 yConsole: colour dummy device 80x30
+ u2 ~0 S% B0 m0 V- M8 m9 v: tCalibrating delay loop... 227.32 BogoMIPS (lpj=1136640)
& f6 C3 B& g2 Y/ d0 l9 Y4 [, Vpid_max: default: 32768 minimum: 301
" ?3 h# e% T1 n% X4 b/ \Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)* D9 l: T, f3 a N
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes). M$ r, ?$ u& m3 I+ F" o
CPU: Testing write buffer coherency: ok9 M7 N5 Z$ l1 w( Y
Setting up static identity map for 0xc0008400 - 0xc00084588 N# y/ B; g; ]' c+ ^7 G/ D
devtmpfs: initialized
" u/ B' d: s/ z4 o: K1 u1 \: ?$ dVFP support v0.3: not present- e# ]; _+ M" |
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns" |& w0 w& u+ G- k) x8 e1 J( B
futex hash table entries: 256 (order: -1, 3072 bytes)6 q; i* w* o3 E# J
pinctrl core: initialized pinctrl subsystem7 q! ?# }9 ^1 e( t" q- V6 v3 q0 Q* G
NET: Registered protocol family 16
8 u* c: b1 ], V3 \& N* CDMA: preallocated 256 KiB pool for atomic coherent allocations3 u% v" F9 ~( u4 [: D
cpuidle: using governor ladder
( Q1 N" _" u5 P1 g7 s) {cpuidle: using governor menu' P( `/ }1 @$ q9 W9 w* d
EMAC: MII PHY configured, ~; { L2 ?6 b4 M& `
mux: initialized GPIO3_12
# P3 } D( x0 h: R$ W% n+ ^mux: Setting register GPIO3_12
; T$ `$ F5 H5 X/ b; e3 o+ `( E4 ~mux: PINMUX7 (0x0000001c) = 0x00110110 -> 0x00118110- J# M) o; g- ?; b
mux: initialized GPIO3_13
2 s5 ], _" M2 Nmux: Setting register GPIO3_13 d$ n( J) d* J
mux: PINMUX7 (0x0000001c) = 0x00118110 -> 0x00118810
) S2 @: C* g8 d: o7 \% E& O, bmux: initialized GPIO2_4
{8 ~! L3 Y$ W: Wmux: Setting register GPIO2_4
) F4 U) B. w1 Amux: PINMUX6 (0x00000018) = 0x00000000 -> 0x00008000* M' N1 I4 m; M, R6 N4 o3 x
mux: initialized GPIO6_137 I6 ?; x) Z4 d, C! g5 k8 _! w. j
mux: Setting register GPIO6_136 O# j- z. H& w( N" i8 }- E% o
mux: PINMUX13 (0x00000034) = 0x00000000 -> 0x00000800
& I) A/ |8 |4 H/ Wda8xx_register_rproc: memory not reserved for DSP, not registering DSP device! E8 M% r: b' G7 P2 |# J- G
omapl138_hawk_init: dsp/rproc registration failed: -12
; a% _, a' Y% C- Y* J+ Qedma edma.0: Legacy memcpy is enabled, things might not work1 E+ u* B: }# j- T: ?7 L
edma edma.0: TI EDMA DMA engine driver$ N8 p& O$ Y' l: N! {2 ?
edma edma.1: Legacy memcpy is enabled, things might not work4 j% k4 D" N- v& g: ]
edma edma.1: TI EDMA DMA engine driver
1 S1 |' G$ B7 \8 g1 e! V: gclocksource: Switched to clocksource timer0_1
# i9 ^3 \7 }& f& ]NET: Registered protocol family 2
/ S2 G- h' r2 q7 hTCP established hash table entries: 1024 (order: 0, 4096 bytes)
" F+ `. ]3 W, y! v9 u/ w& i; [TCP bind hash table entries: 1024 (order: 0, 4096 bytes)7 ?/ M1 ]8 r5 C* D; Y1 C. h
TCP: Hash tables configured (established 1024 bind 1024)
5 V4 h$ v4 ^8 gUDP hash table entries: 256 (order: 0, 4096 bytes)
4 c5 w- `3 Q# WUDP-Lite hash table entries: 256 (order: 0, 4096 bytes)2 _0 r c( b9 B# f) I! A
NET: Registered protocol family 1
u; d, @7 O6 I. y gRPC: Registered named UNIX socket transport module.+ x. I% B- i) ` T0 |& g" d/ d
RPC: Registered udp transport module.
3 f) u) U( s% O( Z" y4 _/ XRPC: Registered tcp transport module.
# A% C2 |, ~" w/ L8 zRPC: Registered tcp NFSv4.1 backchannel transport module.- X0 t7 N9 v* Y# X' q' z2 f4 W
workingset: timestamp_bits=14 max_order=15 bucket_order=1: h0 v: O# e+ c6 A
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
( B% U9 N) B- d* s+ @5 P4 }; qio scheduler noop registered (default)
: y/ M T& ~' w" d6 ^+ D6 T* T, pSerial: 8250/16550 driver, 10 ports, IRQ sharing disabled% H. B0 E4 N- |8 x6 D+ ]0 b
serial8250.0: ttyS0 at MMIO 0x1c42000 (irq = 25, base_baud = 14250000) is a 16550A8 @" C! I. z a% X
serial8250.1: ttyS1 at MMIO 0x1d0c000 (irq = 53, base_baud = 8250000) is a 16550A# e! `2 b4 g9 u2 O8 s0 r \" ^
serial8250.2: ttyS2 at MMIO 0x1d0d000 (irq = 61, base_baud = 8250000) is a 16550A p4 Z* u; J" l
console [ttyS2] enabled
1 F t6 c$ {' ?: n' Y/ ]brd: module loaded; G. n$ F( F7 T( q2 ^, o7 V, {) p
libphy: Fixed MDIO Bus: probed! H3 e* J& s6 y
davinci_mdio davinci_mdio.0: davinci mdio revision 1.5
8 P) M) K0 W, o. c K/ c( ^davinci_mdio davinci_mdio.0: detected phy mask fffffffe. a" B3 J D, [# M K! j
libphy: davinci_mdio.0: probed
: j1 f; b7 s9 P! j- h" Y/ Gdavinci_mdio davinci_mdio.0: phy[0]: device davinci_mdio-0:00, driver SMSC LAN8710/LAN87205 d- z& f1 [1 Y4 i
i2c /dev entries driver
) |& {7 a- a! `: U( u: l9 \davinci_mmc da830-mmc.0: cannot find GPIO chip davinci_gpio.13 Z, d$ P$ }. G, R
davinci_mmc da830-mmc.0: cannot find GPIO chip davinci_gpio.1
K) R9 }( G9 L; u, v9 Jdavinci_mmc da830-mmc.0: Using DMA, 4-bit mode! `& G$ y- N7 o7 w( P# b
NET: Registered protocol family 10
; Z0 G* x3 q) E+ ~) asit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
9 z0 M6 _& G$ VNET: Registered protocol family 17
5 [! M3 u U Z2 w3 L- i, lconsole [netcon0] enabled
0 t& y5 G& G9 V# x" enetconsole: network logging started, g) s1 [( O3 J
davinci_emac davinci_emac.1: using random MAC addr: 0a:ed:9e:24:43:89/ m- h0 G" v/ X# a) u( f8 R
hctosys: unable to open rtc device (rtc0)
3 x& D! w9 _& e8 V" ^libphy: PHY davinci_mdio-0:07 not found! K; N; D" K' [0 {5 d! x
net eth0: could not connect to phy davinci_mdio-0:07
$ A) E5 k0 C) ~0 G; R4 P! ?( V3 jIP-Config: Failed to open eth0 d2 A9 w$ Z6 A+ T n# e4 f
IP-Config: No network devices available# H" G$ V- F; u+ k& [" D
mmc0: host does not support reading read-only switch, assuming write-enable' g$ [ R- U6 c
mmc0: new high speed SDHC card at address 59b4. Y+ L1 |3 U3 c) S# T g2 J
mmcblk0: mmc0:59b4 SS08G 7.41 GiB . D4 i% l4 y9 Q& F" i" D. ^3 E
mmcblk0: p1 p21 y Z7 F8 K- P/ x' i) }
! S4 I& A; r8 E7 j- r( U
/* 此处等待了一段时间 */8 I( j$ e5 y" b6 R: E6 |
% J7 g! i! s& [2 H" M7 Arandom: fast init done
. L0 ]1 s+ `) A' j" P2 VVFS: Unable to mount root fs via NFS, trying floppy.
, f2 s% m; {% V7 R% O9 V9 G8 Z8 wVFS: Cannot open root device "nfs" or unknown-block(2,0): error -6
, E" b* i- Z8 c3 c# [) t3 ~Please append a correct "root=" boot option; here are the available partitions:
# q& `* f/ P5 ~8 J, a v0100 32768 ram0 (driver?)
3 O1 j% Z% e# Z1 w3 i4 v( Db300 7764992 mmcblk0 driver: mmcblk
^0 E# @* o; N3 Y, k7 {. _ b301 71680 mmcblk0p1 cd4e1bc4-01
- J/ ]& S4 {( s4 r. h0 M b302 7675904 mmcblk0p2 cd4e1bc4-02 * ?6 A' W C! V- m
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block
2 W9 I+ o+ ~! I0 c4 r
; b! Q: q% D# h3 W: E- |; r3 {2 [7 D! Q
|
|