嵌入式开发者社区

标题: TL138/6748/1808F-EasyEVM-A2使用ti-processor-sdk-linux-omapl138-lcdk-04.00.... [打印本页]

作者: uestczwj    时间: 2017-9-12 22:16
标题: TL138/6748/1808F-EasyEVM-A2使用ti-processor-sdk-linux-omapl138-lcdk-04.00....
0.  开发板型号:  TL138/6748/1808F-EasyEVM-A2, 开发版启动模式模式为SD卡启动: N3 Y4 I7 ~: b; \' S
% C. U& s) [: p4 ?
1.  在ubantu16.04(64bit)按照官网安装ti-processor-sdk-linux-omapl138-lcdk-04.00.00.04-Linux-x86-Install.bin* f' X* ^: L6 ^, c
6 O3 _. }, s+ m# j$ e7 x
2.  把uboot, kernel, filesystem写入SD卡, 拨码开关设置为SD启动, 能够正常启动能够进入嵌入式开发版" h" P8 n) k) L6 g4 O- P# N

/ t/ g1 C8 d" ]3 E2 C& l3.  SD卡启动方式保持不变,但是在uboot中配置为tftp下载内核和nfs挂载方式
5 \$ u, `9 b8 {' o9 s
+ o& @# u/ r6 `3 k9 W7 t5 t; Zuboot配置参数如下(由于没有开发板没有自动获取mac地址,所以自己设置为:  setenv  ethaddr 00:0c:29:bc:7e:9a):
3 s; S) n8 i# @+ F  T& j  z& ?/ Z1 Y
setenv uboot_macaddr 1( v" N( J- q/ R! m$ v
setenv ethaddr 00:0c:29:bc:7e:9a
" C. G0 ]* Q7 h, J# }setenv serverip 192.168.2.192" w' p( o0 `% z5 z' _
setenv ipaddr 192.168.2.191
! I% Y$ D, o% v( @4 u3 G* e  a! t8 B8 s" s# X% |
bootcmd=tftp c0700000 zImage;bootz c0700000
0 _: f5 `3 A& F+ k: u; X1 V
" Y! Y/ {; S% U9 z6 a7 Q3 c6 Vbootargs=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
6 V. R3 n( o! r& [
0 X5 f4 {& Q2 V1 R, Y9 u! v3 T; V9 p4. 能够通过tftp下载并启动内核,但是在挂载NFS文件系统之前报错(错误在下面内核启动信息的最后):
' |; U5 T4 N4 o* `5 E% J7 p- b. f8 l4 i, y3 B+ x8 N- O
boot命令后的完整启动信息:( ~# x# w- k6 k

* H0 X( ]1 f+ B& M# T=> boot
' g! ~, E2 e+ s4 @/ _; c* gUsing DaVinci-EMAC device
) A0 h% }: l1 w) j+ t1 \TFTP from server 192.168.2.192; our IP address is 192.168.2.191- S5 }, ]% M3 l- l" i2 P  T
Filename 'zImage'.
4 }3 s; F) P1 B, vLoad address: 0xc0700000/ r) t% C$ m4 r
Loading: #################################################################0 E3 l7 A7 I! D* I8 C  F
         #################################################################
; h! e8 Y6 n4 ]+ n         ################################+ T5 |9 D" Y' d( o: a0 @, c
         288.1 KiB/s
3 u9 V# b! w$ [, [! U/ x5 bdone( `) L- ]" R6 F# d8 Q; a
Bytes transferred = 2367360 (241f80 hex)
6 `8 v9 A& D3 Q% m
( t& I+ Y7 U1 VStarting kernel ...1 {3 P, a9 ]/ h0 @' y' l
% E) @0 |2 I6 s; i+ Z1 E0 l) F2 y
Uncompressing Linux... done, booting the kernel.( ^/ N) C. J$ a
Booting Linux on physical CPU 0x0
% H& E7 ?3 ]# |) K' p3 `% uLinux 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
1 r9 ?2 }  x6 c2 M5 S$ G7 nCPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f* a0 z4 H- D& X" D) Z& M. n
CPU: VIVT data cache, VIVT instruction cache
& S; M+ N7 A  e  A; F5 SMachine: AM18x/OMAP-L138 Hawkboard
+ U( p! Y3 g% h* F& \da8xx_rproc_reserve_cma: 'rproc_mem=nn@address' badly specified1 P$ {! L) }/ L6 q
    'nn' and 'address' must both be non-zero" P# D4 y  I- X$ j$ x
cma: Reserved 16 MiB at 0xc6c00000
4 ?" L+ t" Z4 f: {$ |Memory policy: Data cache writethrough
, |* d. y. Q8 X  T2 }3 GDaVinci da850/omap-l138/am18x variant 0x1. \4 k: z+ w, I( P, J3 q
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32480
4 K& v- _# g4 |) M/ @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
; ~! L1 B3 k* n: w% D! }PID hash table entries: 512 (order: -1, 2048 bytes)( X( F, ?. [8 }* g, {3 N8 w
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)0 k0 v9 V, t0 N; g- ~$ [+ h
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
  d/ c1 c, B+ O( V7 P( HMemory: 106592K/131072K available (4529K kernel code, 308K rwdata, 1500K rodata, 228K init, 162K bss, 8096K reserved, 16384K cma-reserved)
) @0 h* q, ?0 sVirtual kernel memory layout:4 g4 V; y- M7 F2 y' z
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
6 m2 U% R, b: e' B7 L, U. [    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)* e4 q. G0 D: H# y
    vmalloc : 0xc8800000 - 0xff800000   ( 880 MB), n8 b, b- k  r5 S% {
    lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
% z5 n8 [$ G& w9 n    modules : 0xbf000000 - 0xc0000000   (  16 MB)
' D( f. L' R: }+ h      .text : 0xc0008000 - 0xc0474b38   (4531 kB). G7 |0 z& f. Q' i" @
      .init : 0xc05ed000 - 0xc0626000   ( 228 kB)1 _! H! A2 z3 m
      .data : 0xc0626000 - 0xc0673110   ( 309 kB)9 p! x" o. x6 m3 k9 s* l
       .bss : 0xc0673110 - 0xc069bc08   ( 163 kB)$ L% |4 s% }* p  P0 E
SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
, L# h5 D- D% b* z9 \/ P- HPreemptible hierarchical RCU implementation.
  |* |' |! c. L: o1 b2 ]) B        Build-time adjustment of leaf fanout to 32.
$ c" o4 y: o; L' f: B6 q1 x, `NR_IRQS:245
4 {! l& `( c5 T# N+ j+ gclocksource: timer0_1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns: T. J: ?- V8 T! F
sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns0 _: P% S' w: q: d
Console: colour dummy device 80x303 a/ ^0 I. s. ]1 h6 Z3 M6 K
Calibrating delay loop... 227.32 BogoMIPS (lpj=1136640), \- M$ K" s, {$ U7 A3 h: ?: x% v
pid_max: default: 32768 minimum: 301
& [, q. l/ _+ X' i2 NMount-cache hash table entries: 1024 (order: 0, 4096 bytes)
( c! g4 i- p0 |' gMountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)0 y( ~, M, q1 ]9 Q- Z" n$ ]
CPU: Testing write buffer coherency: ok9 A- N! }" N% t0 C
Setting up static identity map for 0xc0008400 - 0xc0008458
% F: A2 `# v  J3 c+ a& S/ ~( y5 ?* ?devtmpfs: initialized
# i. Z# ^5 h0 {3 p0 G$ _  B" ]6 [VFP support v0.3: not present
6 n) r5 ~6 h- u# _0 Q% ~clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns; V7 F0 u6 ^1 f5 p
futex hash table entries: 256 (order: -1, 3072 bytes)" n7 o1 y" p! q) y# v
pinctrl core: initialized pinctrl subsystem0 \& j* p8 V0 u2 @% u2 e1 m. S
NET: Registered protocol family 16
" x: t- E. i/ T2 e9 nDMA: preallocated 256 KiB pool for atomic coherent allocations
. n5 c: `! {( R7 y8 lcpuidle: using governor ladder
6 b2 j$ l- q7 C8 N+ Mcpuidle: using governor menu; c+ n( J& I2 ^) O  n+ c
EMAC: MII PHY configured5 O% z+ F0 Q9 f" I; f; T
mux: initialized GPIO3_12& y4 S% C! U  t  ?+ s( a
mux: Setting register GPIO3_12  \7 D# l$ `6 O+ C  ~1 Q# \) `
mux:    PINMUX7 (0x0000001c) = 0x00110110 -> 0x00118110- u. ~" ~* c, i: b1 b( q; |
mux: initialized GPIO3_13
; e4 N7 y8 m) x& R6 r0 C, Xmux: Setting register GPIO3_13
! P5 f3 T* u) ^  [" Mmux:    PINMUX7 (0x0000001c) = 0x00118110 -> 0x00118810
' V. F! s+ o$ ^: Y' ^mux: initialized GPIO2_46 v1 R4 K4 s. b" \* n1 a
mux: Setting register GPIO2_4" \+ {$ w' @" K# K- ^
mux:    PINMUX6 (0x00000018) = 0x00000000 -> 0x00008000+ G3 A1 }/ j6 k
mux: initialized GPIO6_13, W  P3 \& J, j) p( q
mux: Setting register GPIO6_137 y3 J' c5 A& e$ e- g. G
mux:    PINMUX13 (0x00000034) = 0x00000000 -> 0x00000800
3 o4 d) F0 G+ }% ^% O0 gda8xx_register_rproc: memory not reserved for DSP, not registering DSP device# u4 d; A$ H6 r2 W* y8 B! c
omapl138_hawk_init: dsp/rproc registration failed: -12& {8 B5 a% r5 k0 ~8 T4 ^; t4 R
edma edma.0: Legacy memcpy is enabled, things might not work+ n" Y1 N# s$ M; }- E( J
edma edma.0: TI EDMA DMA engine driver
" {8 s; a' m( W" f* V: \edma edma.1: Legacy memcpy is enabled, things might not work- C5 E! A/ }  V3 Q' ]7 S0 `
edma edma.1: TI EDMA DMA engine driver) m" o$ v7 T7 h, J7 ^5 U  ^
clocksource: Switched to clocksource timer0_1: D- q* h( d2 E) U
NET: Registered protocol family 2; e9 m% y) }- E/ \
TCP established hash table entries: 1024 (order: 0, 4096 bytes)% K# ^* O% |5 y
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
( @$ d# {& U: z( U+ U& w3 i; tTCP: Hash tables configured (established 1024 bind 1024)
7 M: p! Y: ^- J% iUDP hash table entries: 256 (order: 0, 4096 bytes)* m. L  n- m" ]5 p* \( d. d
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)+ {0 F5 `2 Q8 H+ W" q
NET: Registered protocol family 1% f" ~. ~, \: M2 N' ~
RPC: Registered named UNIX socket transport module.% d1 Y$ m# |6 a4 F) W
RPC: Registered udp transport module.( [8 M5 t2 r* d. {# C/ k# Y4 G
RPC: Registered tcp transport module./ B$ V; P3 r8 f) F; O0 E( k% I
RPC: Registered tcp NFSv4.1 backchannel transport module.! n% W' d; H4 F3 j  d7 t
workingset: timestamp_bits=14 max_order=15 bucket_order=1
8 f  h# D, ~/ L3 PBlock layer SCSI generic (bsg) driver version 0.4 loaded (major 250)1 M8 b! u, X" J" e; U- E
io scheduler noop registered (default)! Q- M, _9 {4 s# j
Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
; _+ f- r8 f& t6 H$ Vserial8250.0: ttyS0 at MMIO 0x1c42000 (irq = 25, base_baud = 14250000) is a 16550A
8 ?7 v- J9 d, J3 V$ ^, fserial8250.1: ttyS1 at MMIO 0x1d0c000 (irq = 53, base_baud = 8250000) is a 16550A
4 T' s- S8 k& d  l" Aserial8250.2: ttyS2 at MMIO 0x1d0d000 (irq = 61, base_baud = 8250000) is a 16550A  _* O# u& E8 }* G0 o) R
console [ttyS2] enabled9 B' \1 v2 a3 d6 _2 u7 H8 T
brd: module loaded5 A) R" @% f& P; N) L
libphy: Fixed MDIO Bus: probed. K; U, b* T- b
davinci_mdio davinci_mdio.0: davinci mdio revision 1.5& v( @! F& x' k
davinci_mdio davinci_mdio.0: detected phy mask fffffffe
8 }" r3 E5 i" x' j4 I4 ^libphy: davinci_mdio.0: probed* `4 u: \! o1 I
davinci_mdio davinci_mdio.0: phy[0]: device davinci_mdio-0:00, driver SMSC LAN8710/LAN8720
3 {; Z4 \' B. V, ~8 g3 Oi2c /dev entries driver7 \  `( I0 O: w4 @4 J+ d- h
davinci_mmc da830-mmc.0: cannot find GPIO chip davinci_gpio.1
8 {! a$ O- k. E# I8 x! mdavinci_mmc da830-mmc.0: cannot find GPIO chip davinci_gpio.1' b$ G9 D) w9 f: C  V- B  m
davinci_mmc da830-mmc.0: Using DMA, 4-bit mode6 |9 m- \+ ], L" V* N
NET: Registered protocol family 10
# W* g5 c& V& i9 w; Osit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
1 c7 `% o0 Q" Y- v! }4 @) XNET: Registered protocol family 171 C/ Q+ x! T  d
console [netcon0] enabled
  Q5 B* N, ^& f& V. j& xnetconsole: network logging started) ^2 ~- G9 U/ J' ?, v
davinci_emac davinci_emac.1: using random MAC addr: 0a:ed:9e:24:43:89- v4 B9 ?. H; K# ?7 d- e
hctosys: unable to open rtc device (rtc0)
7 s8 g) m% f  h$ f! \; U$ h; jlibphy: PHY davinci_mdio-0:07 not found0 h/ _8 [) e1 j; d  u2 p# o3 k
net eth0: could not connect to phy davinci_mdio-0:074 |/ a, H/ Q% i2 v- X( t! H5 y5 S
IP-Config: Failed to open eth0% \# q" E; d8 I
IP-Config: No network devices available3 L% V& z% F  r
mmc0: host does not support reading read-only switch, assuming write-enable
6 V0 s8 |$ @& z7 L+ _$ Ymmc0: new high speed SDHC card at address 59b41 W0 R0 E6 r! m& x& P" t
mmcblk0: mmc0:59b4 SS08G 7.41 GiB
! K7 E2 r8 g/ T9 Z, _ mmcblk0: p1 p2" u+ X, a( D' g' _9 o( U! u

: A* p1 B2 ^5 E* E# A& ]# g+ X/* 此处等待了一段时间 */( u/ V/ b1 n6 S7 X0 s* i

9 u9 ?8 ~0 t$ n! b, Lrandom: fast init done
, s. Y/ E- `, L4 `9 k1 \; T* F; fVFS: Unable to mount root fs via NFS, trying floppy.
* H0 D* i! ~4 u# ZVFS: Cannot open root device "nfs" or unknown-block(2,0): error -60 S% Y. t4 N3 v8 n: R5 G- D) j
Please append a correct "root=" boot option; here are the available partitions:
$ D" b0 b) |# x0100           32768 ram0  (driver?)/ j% ]' e6 v- z$ [& c
b300         7764992 mmcblk0  driver: mmcblk7 R5 R# j; e* Z; W
  b301           71680 mmcblk0p1 cd4e1bc4-016 f- d+ ^- c2 @
  b302         7675904 mmcblk0p2 cd4e1bc4-02                          
( k7 H* F- K8 }1 V5 S3 l0 P" A3 u2 Q4 ?Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block
+ i/ W+ i4 O" }  k9 W7 J
% _4 ^% ^4 B" K3 x1 @, N& C
( C) ~0 d% t" I' S1 I
作者: uestczwj    时间: 2017-9-12 22:25
应该是如下错误造成NFS失败:
* B7 H5 m, ]$ J+ |4 L9 k3 o
1 A7 \- d8 e7 t( r' d5 Alibphy: PHY davinci_mdio-0:07 not found' t! w$ U+ N9 `1 g" b0 i& a
net eth0: could not connect to phy davinci_mdio-0:07
+ B7 E6 `6 j' S: ^IP-Config: Failed to open eth0* Y) I' n' V) s: o, _
IP-Config: No network devices available
作者: 伊撒斯    时间: 2017-9-15 21:45
uestczwj 发表于 2017-9-12 22:25- l3 k% J5 S5 K$ Y: v9 Q
应该是如下错误造成NFS失败:; c4 P' S7 }, {+ I

; ~: g3 p* E  p4 k: }4 I/ t  Hlibphy: PHY davinci_mdio-0:07 not found
" T/ X) [) h6 j! d
您好,我们光盘资料里面,有提供相关的nfs组件安装包和搭建的指导文档,建议您先按照我们的资料去搭建,我们使用的是,基于Ubuntu12.04的nfs开发环境搭建。




欢迎光临 嵌入式开发者社区 (https://www.51ele.net/) Powered by Discuz! X3.4