|
|
0. 开发板型号: TL138/6748/1808F-EasyEVM-A2, 开发版启动模式模式为SD卡启动* Q2 }5 {5 C8 O
8 }9 A% @' F" \/ k4 ~; m" Y$ y: E5 f
1. 在ubantu16.04(64bit)按照官网安装ti-processor-sdk-linux-omapl138-lcdk-04.00.00.04-Linux-x86-Install.bin- g! g# _/ l: n
& G* m$ z7 u: H" X4 E! v
2. 把uboot, kernel, filesystem写入SD卡, 拨码开关设置为SD启动, 能够正常启动能够进入嵌入式开发版) B6 \# c; Q2 ?
5 e' ^5 t5 w; N6 V3. SD卡启动方式保持不变,但是在uboot中配置为tftp下载内核和nfs挂载方式- |; g1 N. V8 u6 t
3 Z) D& S& d& h$ t. `* duboot配置参数如下(由于没有开发板没有自动获取mac地址,所以自己设置为: setenv ethaddr 00:0c:29:bc:7e:9a):
0 y5 B5 \* Y* \5 T+ ^2 L& U
/ a6 Z. e6 Q- }5 O4 N8 |setenv uboot_macaddr 1
8 ?" b0 W! v. Q6 Ksetenv ethaddr 00:0c:29:bc:7e:9a * w6 u3 R5 O* y2 X4 A- J
setenv serverip 192.168.2.192
0 D9 O4 ]. V& n7 e) Usetenv ipaddr 192.168.2.191
F0 x% z$ I. L' w9 J/ q. t6 o$ M h7 S6 y: l5 m6 g9 ~
bootcmd=tftp c0700000 zImage;bootz c0700000
' l5 z& l" e9 ]: Q3 W2 J! ^0 y; F0 n" }5 k
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
1 z( I [- |. H( J0 v2 B1 s6 {
2 j+ I; D" y) K; Z* |+ `5 d4. 能够通过tftp下载并启动内核,但是在挂载NFS文件系统之前报错(错误在下面内核启动信息的最后):
9 I5 A5 H5 S& Q" \7 r w
& j$ v1 ]6 q E7 Z, f5 wboot命令后的完整启动信息:
' L- Y) B8 l: p' J$ M7 e% n
2 p" f( A+ H6 Q+ n) ?=> boot g# y! E' B- u$ G" d. q( t
Using DaVinci-EMAC device
S$ ~; W/ F% X7 yTFTP from server 192.168.2.192; our IP address is 192.168.2.191% k% C2 F$ e \
Filename 'zImage'.$ {, V# K% N% O/ p* F
Load address: 0xc0700000$ j/ r# A3 e% i4 k# N' e
Loading: #################################################################
+ r$ w( F8 A$ P1 Z #################################################################* y' [2 k5 C! [3 j" X3 w- C5 {! k
################################: |# o9 F. S9 ]( ^" c
288.1 KiB/s
' b; R9 @0 T3 O9 H' A; xdone- t {) e$ A v; ]
Bytes transferred = 2367360 (241f80 hex)6 R- c7 T& w) B5 J
8 ?* I! {' j( \6 K% f) h2 EStarting kernel ...
& R' _" L6 d0 e% J5 R3 {$ k7 z1 D/ X9 m! A4 g- g. }9 E% B5 C. V4 ~0 B
Uncompressing Linux... done, booting the kernel.
5 Q2 I* h/ W+ V3 VBooting Linux on physical CPU 0x0
+ f1 g: ^$ S# } a* R5 r8 ~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
5 R( ~% e& X! K) yCPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f) \3 i2 j4 c7 u( M. u/ q1 c, g
CPU: VIVT data cache, VIVT instruction cache; \' j' d7 e p0 p5 q$ M* _
Machine: AM18x/OMAP-L138 Hawkboard7 d/ y% x; {& n9 j H" d; _$ y: \
da8xx_rproc_reserve_cma: 'rproc_mem=nn@address' badly specified9 a6 q5 v! h$ |6 T! d+ f
'nn' and 'address' must both be non-zero
# d! J4 y% | j7 {/ h5 j& ]cma: Reserved 16 MiB at 0xc6c00000+ j* p7 }9 i L$ b+ b/ \' w
Memory policy: Data cache writethrough+ U: R! j" U& N' ]
DaVinci da850/omap-l138/am18x variant 0x1
8 i" A, U- q1 a0 fBuilt 1 zonelists in Zone order, mobility grouping on. Total pages: 32480
3 p, {# R2 U; f3 x0 IKernel 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
; w6 ]6 {6 ^( o2 K& _5 LPID hash table entries: 512 (order: -1, 2048 bytes)2 r4 s# f# E6 L2 C! y
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)+ C& ~# E. o. W
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
9 y G& F6 k4 D; EMemory: 106592K/131072K available (4529K kernel code, 308K rwdata, 1500K rodata, 228K init, 162K bss, 8096K reserved, 16384K cma-reserved)( T* `5 O4 o9 J0 ?' V& ?4 n! w
Virtual kernel memory layout:
# `$ l F/ P+ _, ]& p9 t vector : 0xffff0000 - 0xffff1000 ( 4 kB) W( ^7 B H$ A9 m
fixmap : 0xffc00000 - 0xfff00000 (3072 kB). M" s/ J# w4 d( N# g, p3 J4 l
vmalloc : 0xc8800000 - 0xff800000 ( 880 MB)& i" P$ O1 X5 B9 {8 d' _
lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)8 @' f0 L4 i; c! b
modules : 0xbf000000 - 0xc0000000 ( 16 MB)5 k. ~/ r( G! G0 S
.text : 0xc0008000 - 0xc0474b38 (4531 kB)9 M/ i# e" e6 u6 f
.init : 0xc05ed000 - 0xc0626000 ( 228 kB)3 k. d' M( | _
.data : 0xc0626000 - 0xc0673110 ( 309 kB)$ a/ ?. g6 @: j, U/ H' `
.bss : 0xc0673110 - 0xc069bc08 ( 163 kB)
( |( s" K% k: {" H, dSLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
. T% q* ^' f" w9 ^' @Preemptible hierarchical RCU implementation.+ u7 s- M; A T+ U! E6 k. {0 b
Build-time adjustment of leaf fanout to 32.+ }( D/ H8 H: x3 W6 F# u
NR_IRQS:245/ x7 y! X/ B. O1 H+ |
clocksource: timer0_1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns2 T9 k" z( u0 S
sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns% i- L% y6 a+ |$ ~3 c
Console: colour dummy device 80x30
* U* }9 |" ^" V6 o1 m+ ]Calibrating delay loop... 227.32 BogoMIPS (lpj=1136640)
q( {9 U* O+ g, {1 p- r, N) G2 wpid_max: default: 32768 minimum: 301
+ T q1 l) B0 r, s* VMount-cache hash table entries: 1024 (order: 0, 4096 bytes)
w) D6 {; r$ y0 {! y3 u9 K8 H# ?% N2 `Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes); C& C; ~+ M; `
CPU: Testing write buffer coherency: ok' b) D1 m% Y) l9 q+ G6 @9 Z
Setting up static identity map for 0xc0008400 - 0xc0008458! l! \ j) L% o& O6 ]
devtmpfs: initialized
9 A1 \+ D% T* P" m0 V% aVFP support v0.3: not present
- n' z% M E: O9 Iclocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns5 o) W/ c8 d( `: m' P
futex hash table entries: 256 (order: -1, 3072 bytes)
, I# E( v! w! ~pinctrl core: initialized pinctrl subsystem
7 K4 c! ?' |+ WNET: Registered protocol family 16) G; X* X: h/ m9 ^* `
DMA: preallocated 256 KiB pool for atomic coherent allocations
* G4 N0 K5 k- A! W- |& m! ]cpuidle: using governor ladder/ E* ?) Q2 z0 x& a5 K8 A
cpuidle: using governor menu; G, |7 |/ p+ c8 a" V! {. J |
EMAC: MII PHY configured
" _ Y6 g: p3 P# e' b8 ~mux: initialized GPIO3_12/ q: o5 X4 Q% [
mux: Setting register GPIO3_12, q! V- J; ^& j3 m; I" z
mux: PINMUX7 (0x0000001c) = 0x00110110 -> 0x00118110
& s5 S7 q4 z" H$ f9 {3 lmux: initialized GPIO3_13
% T6 Y. A+ l/ u& I: Q# @; V6 Wmux: Setting register GPIO3_132 G& u2 K0 w7 V i/ X% C# o6 R
mux: PINMUX7 (0x0000001c) = 0x00118110 -> 0x00118810
0 a& D# [( L. f9 r' V: k% N8 Hmux: initialized GPIO2_41 K" |8 ?. C; y+ A a$ Q
mux: Setting register GPIO2_4
2 k- B( q0 z8 H# v# f. n& p) xmux: PINMUX6 (0x00000018) = 0x00000000 -> 0x00008000
0 n; N/ E S# s$ J! \# ~mux: initialized GPIO6_134 x4 ?. `! m9 y
mux: Setting register GPIO6_13
, n% n; g" h3 Z \" nmux: PINMUX13 (0x00000034) = 0x00000000 -> 0x00000800, }3 e- _5 h! B, q+ u! ?- K- A
da8xx_register_rproc: memory not reserved for DSP, not registering DSP device
h/ @% h$ D( S$ i7 B( Eomapl138_hawk_init: dsp/rproc registration failed: -124 J5 h1 U; g1 q, H, f
edma edma.0: Legacy memcpy is enabled, things might not work
& }0 c8 F, G; J4 G/ Z/ ?4 U* gedma edma.0: TI EDMA DMA engine driver
" k$ {. R6 [9 A# K# U8 m; ^edma edma.1: Legacy memcpy is enabled, things might not work
. \4 C% U" M! Z1 S) Dedma edma.1: TI EDMA DMA engine driver+ H$ l4 g* @+ S- Z0 X
clocksource: Switched to clocksource timer0_1- C2 I$ j; ^- R u6 x& L
NET: Registered protocol family 2
, T* t/ c* j/ x' }" m- oTCP established hash table entries: 1024 (order: 0, 4096 bytes); V& J: B) l9 P) h4 a. Q
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
+ ]2 S9 s3 M( U: OTCP: Hash tables configured (established 1024 bind 1024)% j! G! a: h" v
UDP hash table entries: 256 (order: 0, 4096 bytes)
+ B6 N+ \( ?; N, v) `# k9 Y; JUDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
B2 o( l K0 y! KNET: Registered protocol family 1
9 @* J4 s8 K% s& }( ~RPC: Registered named UNIX socket transport module.% ~0 q. o+ S* V# N8 o
RPC: Registered udp transport module.
% F0 p4 q4 Z) g, A, @ o0 h' _1 p& [RPC: Registered tcp transport module., p# E& ^0 M0 r# E0 K
RPC: Registered tcp NFSv4.1 backchannel transport module.
' e- V! ?: ]- a* Y- r) |" `7 pworkingset: timestamp_bits=14 max_order=15 bucket_order=1
* s% |4 W2 `; \( v$ d BBlock layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
* l" J9 R0 t# b& W: m- s' Fio scheduler noop registered (default)9 ^3 D. o1 i7 L8 |4 t$ u- i
Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled+ J" `& [0 x! i' n0 a
serial8250.0: ttyS0 at MMIO 0x1c42000 (irq = 25, base_baud = 14250000) is a 16550A
G! E7 F# t# L* D; Jserial8250.1: ttyS1 at MMIO 0x1d0c000 (irq = 53, base_baud = 8250000) is a 16550A" F" a0 D7 t! H: N
serial8250.2: ttyS2 at MMIO 0x1d0d000 (irq = 61, base_baud = 8250000) is a 16550A
/ m# L `4 P# H! \/ R+ I; ?" y0 u" j5 Cconsole [ttyS2] enabled% ~) Z6 h# H/ g7 i
brd: module loaded
( f7 v0 P5 S' ^7 [) Y3 J+ `libphy: Fixed MDIO Bus: probed
' T( @ M+ o7 F1 A# G8 P$ Bdavinci_mdio davinci_mdio.0: davinci mdio revision 1.5' u) X- t* E/ \! G
davinci_mdio davinci_mdio.0: detected phy mask fffffffe
3 w" D( j) d( d8 }3 s! o8 V+ ?libphy: davinci_mdio.0: probed
" T7 C; `/ X' q( Ydavinci_mdio davinci_mdio.0: phy[0]: device davinci_mdio-0:00, driver SMSC LAN8710/LAN8720; M& R' x, v. X
i2c /dev entries driver: C, C: F M" [! U1 q' F
davinci_mmc da830-mmc.0: cannot find GPIO chip davinci_gpio.1, [( g1 a0 L" A) }: }4 l
davinci_mmc da830-mmc.0: cannot find GPIO chip davinci_gpio.1
3 Z$ B- g! N- \& ] ldavinci_mmc da830-mmc.0: Using DMA, 4-bit mode2 G8 A! {/ m$ L* _$ M
NET: Registered protocol family 10
) w3 j( W' o0 H+ hsit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
$ l- i2 w* g" U; q8 c. ANET: Registered protocol family 17/ O5 i. y, x2 L
console [netcon0] enabled
# t0 V' b7 E4 D; s1 Anetconsole: network logging started
8 e, z* L8 a& j: \9 ?3 v- Ydavinci_emac davinci_emac.1: using random MAC addr: 0a:ed:9e:24:43:89
9 r8 D! D. v9 q3 [3 C% v. K% rhctosys: unable to open rtc device (rtc0), L$ Z: [6 ~; j& l% |7 t* Q/ J; Z
libphy: PHY davinci_mdio-0:07 not found
( M* b$ [0 {$ Onet eth0: could not connect to phy davinci_mdio-0:07$ s a7 `$ O8 j' N" |
IP-Config: Failed to open eth0
- n/ _* [ J% [! [0 H$ n& U* mIP-Config: No network devices available' A# i" i0 P, @* M4 C( P2 `
mmc0: host does not support reading read-only switch, assuming write-enable6 E; _( \+ r% @$ f% W1 }
mmc0: new high speed SDHC card at address 59b44 o6 ]3 ?! E2 c; j2 W: N+ t' i
mmcblk0: mmc0:59b4 SS08G 7.41 GiB : o; N# g3 M5 [
mmcblk0: p1 p2
6 l9 c8 A- i ~5 S4 C
' t6 ]# a2 X+ x- M, M/ K/* 此处等待了一段时间 */
; I8 ]6 B1 n8 b$ \* \+ u. J" G0 m" P) Q
random: fast init done% ]- ]) V+ g; v' V0 l
VFS: Unable to mount root fs via NFS, trying floppy.
" `7 V+ l6 b9 ^2 V$ vVFS: Cannot open root device "nfs" or unknown-block(2,0): error -6
% o3 ~/ X) c8 c, @8 TPlease append a correct "root=" boot option; here are the available partitions:
5 L) l+ V/ R$ q- {5 l0 C$ d! m0100 32768 ram0 (driver?)- l0 u% Z, ~2 v ~- r
b300 7764992 mmcblk0 driver: mmcblk4 H' {. ~. y q; k2 o, l
b301 71680 mmcblk0p1 cd4e1bc4-01
( s- @4 {8 e1 w) j' P7 o b302 7675904 mmcblk0p2 cd4e1bc4-02
; g/ R8 n X4 I" f3 i) `6 oKernel panic - not syncing: VFS: Unable to mount root fs on unknown-block3 N9 a6 ^# ^4 }0 y3 N9 x- ?* U4 Q
6 R7 h1 R7 ~3 p5 U/ O$ {. m& P
& v/ P) p) X7 Z& R- D. b |
|