|
|
0. 开发板型号: TL138/6748/1808F-EasyEVM-A2, 开发版启动模式模式为SD卡启动
. a3 C) r1 d3 F% L% L' K4 k& W M7 l# S2 X6 `5 V( D& t5 l; A4 s- W
1. 在ubantu16.04(64bit)按照官网安装ti-processor-sdk-linux-omapl138-lcdk-04.00.00.04-Linux-x86-Install.bin" F7 I5 m# V- `2 D6 [/ |
$ w% N/ l9 g' W ?! I
2. 把uboot, kernel, filesystem写入SD卡, 拨码开关设置为SD启动, 能够正常启动能够进入嵌入式开发版
% R2 ?# n$ ^7 { D6 C: H4 E7 _0 r0 V* }. v. ~# j I& X" D6 j
3. SD卡启动方式保持不变,但是在uboot中配置为tftp下载内核和nfs挂载方式& ~, ]/ k3 H- {! |, X
/ b' N9 G; E( E# J5 muboot配置参数如下(由于没有开发板没有自动获取mac地址,所以自己设置为: setenv ethaddr 00:0c:29:bc:7e:9a):! M% n ?. ^6 u# j& f- G
& g |2 g0 D; Z. f0 {9 bsetenv uboot_macaddr 1
( F3 K+ s/ {! Asetenv ethaddr 00:0c:29:bc:7e:9a
* Q$ ~$ h5 H! X: q7 ksetenv serverip 192.168.2.1924 O2 G" d. D9 d3 u5 ~
setenv ipaddr 192.168.2.191, p# M e- {( l, W2 F1 S- O
& b: i0 ?6 X& i% E, x4 }3 D" w$ Xbootcmd=tftp c0700000 zImage;bootz c0700000& U# M4 _6 w7 {9 f7 ? s. Z B
" w0 J% u% H0 P( O$ v( z' { g% S4 ibootargs=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
* [/ z& D3 E5 i
! `0 z% X3 r$ b& C; i- H$ g! J4. 能够通过tftp下载并启动内核,但是在挂载NFS文件系统之前报错(错误在下面内核启动信息的最后):
% U, u2 J* t& \
" {% U/ x6 F0 Dboot命令后的完整启动信息:
P& e' k- F$ `% @7 n- m( P- ~! I* G. X
=> boot
" i4 j4 h4 A4 e; o7 \' JUsing DaVinci-EMAC device4 f) C. Y! @+ ]: v) v; k
TFTP from server 192.168.2.192; our IP address is 192.168.2.191* \# F- F3 m7 C/ E8 l! y) O1 ]
Filename 'zImage'.
- d( L' D. L. D5 [, U5 C) mLoad address: 0xc0700000
' I% o. I9 \2 g9 K9 u+ y1 iLoading: #################################################################
1 |) D8 @- P/ Q5 q! K( O; U #################################################################6 l( T( z" a8 S8 f3 s
################################/ [) f: N: q4 ~$ n
288.1 KiB/s
( e* o9 r! ]/ E& z! r. Xdone \* j8 f9 y8 j; E, {
Bytes transferred = 2367360 (241f80 hex)$ t" z* _& d/ {+ G
, z* e$ k6 k$ S- E5 H' ^. NStarting kernel ..." A9 q7 E$ p0 `7 u' h' v* p
: _! \. R) P3 P+ |+ C/ \" P
Uncompressing Linux... done, booting the kernel.( F' A, u5 H: P
Booting Linux on physical CPU 0x0
. ^4 h$ u* I3 n) ]% q/ g9 kLinux 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
; q1 ~" z) z. W* ^& }. ~1 w8 ACPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f) ` ~, g& h/ [: _8 O6 y
CPU: VIVT data cache, VIVT instruction cache
: ?' y( W8 S3 ?4 eMachine: AM18x/OMAP-L138 Hawkboard
3 X5 }! Y4 \" J4 gda8xx_rproc_reserve_cma: 'rproc_mem=nn@address' badly specified: s( ~/ E0 ~" u; e- B' B6 i* S ]
'nn' and 'address' must both be non-zero/ g6 M& X: J: a( g1 Z0 t* B8 {9 I
cma: Reserved 16 MiB at 0xc6c00000
8 _( h- f, o' r" KMemory policy: Data cache writethrough
# @ s) o- q5 E+ m0 L$ f2 xDaVinci da850/omap-l138/am18x variant 0x1
8 ~% k7 x8 l( z# tBuilt 1 zonelists in Zone order, mobility grouping on. Total pages: 32480
. K" W- T3 x3 \* e- fKernel 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/nfs0 n+ U) ]6 [' u6 R5 h: O
PID hash table entries: 512 (order: -1, 2048 bytes)
9 T+ O" n5 |2 d% [( eDentry cache hash table entries: 16384 (order: 4, 65536 bytes)% ^7 s8 z% H4 q1 x1 f
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)# P" R3 U) P' _( z: L6 R# T, O( u
Memory: 106592K/131072K available (4529K kernel code, 308K rwdata, 1500K rodata, 228K init, 162K bss, 8096K reserved, 16384K cma-reserved)
& n9 ^/ l {, H) p/ s+ y5 ]! RVirtual kernel memory layout:/ G) @2 a e3 b9 E; ~) J
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
6 \" a1 u! p( F, f5 t% b fixmap : 0xffc00000 - 0xfff00000 (3072 kB)# H& h) h9 J/ l6 Z; a1 s7 n8 E
vmalloc : 0xc8800000 - 0xff800000 ( 880 MB)8 u# ~+ D3 i- Q# P$ ?
lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)
]/ D) Y/ @- m1 y3 | modules : 0xbf000000 - 0xc0000000 ( 16 MB)
( n) d3 Z( J8 j- c5 f. K2 e .text : 0xc0008000 - 0xc0474b38 (4531 kB). J) Q9 _5 ^ }1 h- F! Y0 K8 s
.init : 0xc05ed000 - 0xc0626000 ( 228 kB)
8 B+ I( T( a4 n .data : 0xc0626000 - 0xc0673110 ( 309 kB)
% O0 W2 d, L. V# ~7 V .bss : 0xc0673110 - 0xc069bc08 ( 163 kB)
+ i9 n0 ?6 Z6 q5 NSLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
o: s& r( p; b; P1 l3 Y4 ]Preemptible hierarchical RCU implementation.
3 F2 B2 V$ ]- ]1 L1 [ Build-time adjustment of leaf fanout to 32.4 {0 u) S4 l% X9 h& t
NR_IRQS:2459 @, T! i+ \1 X% S V$ k
clocksource: timer0_1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns1 `4 }( Q# F- N/ |. `, W( g+ P9 c1 {
sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
' u! A, Y3 `/ F7 WConsole: colour dummy device 80x30
b" ?- R/ z: i: U2 G0 t. w6 DCalibrating delay loop... 227.32 BogoMIPS (lpj=1136640)6 C: W) }& i$ M8 p
pid_max: default: 32768 minimum: 301
2 y6 E! T; ^" PMount-cache hash table entries: 1024 (order: 0, 4096 bytes)8 X' T: J' q7 j9 M: S! n% {! D; ~* Q
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)/ W) _. |9 S6 D" J. w/ {
CPU: Testing write buffer coherency: ok
_! N! K0 f5 V k5 gSetting up static identity map for 0xc0008400 - 0xc0008458
. l$ F8 ?, ~1 ~devtmpfs: initialized
7 {* C- s1 _ c9 ]3 UVFP support v0.3: not present+ Y' D; Y2 g4 ~! r" M6 O; r
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns0 `2 e: R1 m. b! K! T, ^+ f
futex hash table entries: 256 (order: -1, 3072 bytes)
6 b9 C) n1 P3 u# N1 P3 ^- ?pinctrl core: initialized pinctrl subsystem
2 Q9 f+ Z- e5 d+ }% WNET: Registered protocol family 16
4 w8 B4 {* @" O! SDMA: preallocated 256 KiB pool for atomic coherent allocations
. m8 D7 |$ }. ^6 a5 C/ ^cpuidle: using governor ladder9 O& s$ [4 r' E$ ?
cpuidle: using governor menu
}7 B9 O$ a; c N9 nEMAC: MII PHY configured; \6 [1 O) O: z
mux: initialized GPIO3_12
% |4 J( w% b3 m+ C$ ]mux: Setting register GPIO3_12
' T( u3 G/ W$ hmux: PINMUX7 (0x0000001c) = 0x00110110 -> 0x00118110
2 g r1 C+ } q- U5 i& S/ @8 zmux: initialized GPIO3_13
0 e6 o' E* [9 Emux: Setting register GPIO3_13
% N$ g5 ?. M7 W# h, a+ Cmux: PINMUX7 (0x0000001c) = 0x00118110 -> 0x00118810
/ _# K% X. }% zmux: initialized GPIO2_4/ G4 h4 A- f9 w1 e8 q! L9 b
mux: Setting register GPIO2_4' b: @6 F0 J$ N, {6 D2 d
mux: PINMUX6 (0x00000018) = 0x00000000 -> 0x00008000) }2 k% m+ Z" @$ Y4 E9 x! q
mux: initialized GPIO6_136 X2 [) I8 F4 W2 c6 b3 f
mux: Setting register GPIO6_13 H& e4 }9 V# H) M& f/ f* \
mux: PINMUX13 (0x00000034) = 0x00000000 -> 0x00000800
: h7 I% D) e1 vda8xx_register_rproc: memory not reserved for DSP, not registering DSP device
\& l- s6 N; {omapl138_hawk_init: dsp/rproc registration failed: -12/ Z9 ?, G' X4 A0 ]& d# s
edma edma.0: Legacy memcpy is enabled, things might not work% j0 }, Q% u4 G5 G
edma edma.0: TI EDMA DMA engine driver
+ u2 a! U8 h* ?edma edma.1: Legacy memcpy is enabled, things might not work
" j* }9 c6 A: O2 D) I& ? wedma edma.1: TI EDMA DMA engine driver
- y6 @- Z3 z1 Z; ^# i1 Xclocksource: Switched to clocksource timer0_12 M& A, i. A( `* K7 V* m' W+ W
NET: Registered protocol family 2! f9 j/ q2 ]# J S
TCP established hash table entries: 1024 (order: 0, 4096 bytes)
- J, r8 N8 b6 V3 B2 {3 f5 iTCP bind hash table entries: 1024 (order: 0, 4096 bytes)$ q; G `1 u( O# X* d
TCP: Hash tables configured (established 1024 bind 1024)+ |0 }- Z4 K. V. _! E/ `# I
UDP hash table entries: 256 (order: 0, 4096 bytes)
5 K7 Y+ A/ d9 bUDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
& R y+ v* I, U* e4 \* @ d: gNET: Registered protocol family 1- @) J; }. |$ _1 W! j# s
RPC: Registered named UNIX socket transport module.0 }& x3 T( T. _1 ~
RPC: Registered udp transport module.
4 q' h; d3 f8 ORPC: Registered tcp transport module.6 ^9 S9 v s% a- b' v4 A
RPC: Registered tcp NFSv4.1 backchannel transport module.
* ~5 a+ Y) l$ n5 x7 ]workingset: timestamp_bits=14 max_order=15 bucket_order=1
, X1 K0 c# k5 J, m! }- u$ E+ uBlock layer SCSI generic (bsg) driver version 0.4 loaded (major 250)- U }! z; `+ R6 M3 O3 G) u9 b
io scheduler noop registered (default)
5 O* X9 I0 M+ r0 D3 A8 Q' Y; p2 LSerial: 8250/16550 driver, 10 ports, IRQ sharing disabled
" _+ z0 B" J$ ]$ P5 ?0 [serial8250.0: ttyS0 at MMIO 0x1c42000 (irq = 25, base_baud = 14250000) is a 16550A( u+ V8 }" I' v' S8 I
serial8250.1: ttyS1 at MMIO 0x1d0c000 (irq = 53, base_baud = 8250000) is a 16550A1 x! c8 C% v/ s# h
serial8250.2: ttyS2 at MMIO 0x1d0d000 (irq = 61, base_baud = 8250000) is a 16550A
, ^3 \# K" z* }% P$ Uconsole [ttyS2] enabled2 W: H* U- D& m3 \- D% I" k1 [
brd: module loaded
5 R% y! K8 G& Xlibphy: Fixed MDIO Bus: probed
" X X, r8 p- f) k W) U& A, jdavinci_mdio davinci_mdio.0: davinci mdio revision 1.52 f% k9 X) A; \( j I! `9 N1 u R, L
davinci_mdio davinci_mdio.0: detected phy mask fffffffe
# `9 z# b" J- |* z# n' w. G' _libphy: davinci_mdio.0: probed
3 B) T% _# d. }; T# b) tdavinci_mdio davinci_mdio.0: phy[0]: device davinci_mdio-0:00, driver SMSC LAN8710/LAN87203 c% k5 _- m3 }) m8 I% g8 E8 Y6 @4 N
i2c /dev entries driver
- j; Z4 h; ?/ R% }- M) C5 Bdavinci_mmc da830-mmc.0: cannot find GPIO chip davinci_gpio.1
W& ^7 X |7 V) D5 j, o1 `1 Wdavinci_mmc da830-mmc.0: cannot find GPIO chip davinci_gpio.1
* K6 j: e3 ]) i) z$ G Qdavinci_mmc da830-mmc.0: Using DMA, 4-bit mode+ a ?& o; p* g/ W
NET: Registered protocol family 10" K! @9 [; e; {0 ]
sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver, A) W- R! h+ @
NET: Registered protocol family 17/ u6 D9 L, G# o" D% b# F
console [netcon0] enabled
. a& i% X: @+ d6 T/ l9 d- c7 D) Bnetconsole: network logging started
; n! s4 W" Z" X! @9 Q/ c: Zdavinci_emac davinci_emac.1: using random MAC addr: 0a:ed:9e:24:43:89
- V* S: g% M; Q$ P! X/ i# L6 fhctosys: unable to open rtc device (rtc0)
9 e4 g9 O5 @& A8 _1 y. X: l Hlibphy: PHY davinci_mdio-0:07 not found! f5 R1 W' U& w
net eth0: could not connect to phy davinci_mdio-0:07$ B0 P( B, d: R% h0 D- l X' J
IP-Config: Failed to open eth0
, H4 E. W+ o+ G' u( y( pIP-Config: No network devices available
1 f: Q- [" H7 s- A$ a" I8 R# Q4 ummc0: host does not support reading read-only switch, assuming write-enable
) }6 e' [% ^5 {* D% Z! Q Gmmc0: new high speed SDHC card at address 59b4
1 Q7 m" T4 b0 ammcblk0: mmc0:59b4 SS08G 7.41 GiB " C5 d: |# ?; J1 Z. {* `# `- A8 Z
mmcblk0: p1 p2
# b j. W& W, m% c w. v
* S R+ v' w2 k% ~1 p q/* 此处等待了一段时间 */* e7 u H! B( ?& F; P
6 f% j ]( @) q( u& p: b l# rrandom: fast init done
; q' N W* H; h# `VFS: Unable to mount root fs via NFS, trying floppy.
% F) f( R7 U& E) q8 b8 }! Z8 _VFS: Cannot open root device "nfs" or unknown-block(2,0): error -6) t. X8 z* R7 J9 d, d+ `
Please append a correct "root=" boot option; here are the available partitions:; {7 T& m9 n- {( u: a" O% G
0100 32768 ram0 (driver?) ?" `+ n3 D% x- R. B0 P
b300 7764992 mmcblk0 driver: mmcblk: d, a3 y! F( q( u1 K- C1 W
b301 71680 mmcblk0p1 cd4e1bc4-01
7 U" {+ I7 P1 j# E B- m b302 7675904 mmcblk0p2 cd4e1bc4-02
% ^. B. |3 K& qKernel panic - not syncing: VFS: Unable to mount root fs on unknown-block
; Z9 E" l& l& c# _7 _+ g! C' ?2 F, Q; h5 C; T/ j: n; j
# t6 l: E7 N- ~+ l, e! U8 ~
|
|