嵌入式开发者社区

标题: 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卡启动
4 X# Q' u0 x$ a3 n1 G% }0 p! u1 P0 g( U9 B& U
1.  在ubantu16.04(64bit)按照官网安装ti-processor-sdk-linux-omapl138-lcdk-04.00.00.04-Linux-x86-Install.bin$ n3 t- `: e1 x9 T

- P3 r9 m. p, g) m2.  把uboot, kernel, filesystem写入SD卡, 拨码开关设置为SD启动, 能够正常启动能够进入嵌入式开发版) G1 q  ^4 ^5 k; E

+ O2 s" d3 `( A4 N3.  SD卡启动方式保持不变,但是在uboot中配置为tftp下载内核和nfs挂载方式
  Q& L  t! e1 a, F% m4 H; {# _: [1 s& M$ T' b
uboot配置参数如下(由于没有开发板没有自动获取mac地址,所以自己设置为:  setenv  ethaddr 00:0c:29:bc:7e:9a):
, c- r9 e: M, P( e( q3 A( f, e8 ^8 B' i3 N* i
setenv uboot_macaddr 1
6 {2 N' M! `; p! _! x. xsetenv ethaddr 00:0c:29:bc:7e:9a 7 z, r/ ~" y, b
setenv serverip 192.168.2.192
& W9 f0 o5 c' p3 c3 h7 Ksetenv ipaddr 192.168.2.191
! m4 u) a. k+ G1 N& L; Z% E; U$ O# C- |1 }" d& S4 p$ u; Q
bootcmd=tftp c0700000 zImage;bootz c0700000' B& P. A5 @5 q- `- m, h

9 a) V) g3 V  W3 hbootargs=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
: C' r2 P3 I# c* u* Z2 q  }
3 ]8 K, x7 R( G/ s( l% A2 l4 ~4. 能够通过tftp下载并启动内核,但是在挂载NFS文件系统之前报错(错误在下面内核启动信息的最后):
1 Y4 i/ l* ~2 h6 i. D8 W/ a! t
, F, U) ?/ V2 }! b- X9 ]boot命令后的完整启动信息:
$ j, w* Q1 d. j) F' s# W0 g. P* l) k$ c1 \" g
=> boot- t" b  G. y+ q) s6 E
Using DaVinci-EMAC device
) Z" [8 V4 a, j3 M3 H) m/ @TFTP from server 192.168.2.192; our IP address is 192.168.2.1918 ]5 i# M# [* B; Y. U- m) O
Filename 'zImage'.
. X' v2 x2 `1 Q1 C( C) a4 W* NLoad address: 0xc0700000
8 q- [& Z( T0 CLoading: #################################################################9 X$ f/ h9 V& y1 t. H& M
         #################################################################7 S4 @! z* k, P! v7 J
         ################################
+ q$ O4 F" S" t  v* b0 V, ~/ f2 i! j1 R         288.1 KiB/s
# z+ {7 R; N7 O) s& `% |done+ |+ P( ^: b% u% _/ L/ A# n
Bytes transferred = 2367360 (241f80 hex)' w& \& m* I8 ^' y! c" v+ L  ?9 {

  L! k, Q' T. g5 p  t' \) v% bStarting kernel ...
' _2 U  a- \" y" l
. y& B7 M8 N& F6 ?Uncompressing Linux... done, booting the kernel.
% f' @) G; f% E* e! ]Booting Linux on physical CPU 0x0/ E; |7 D5 m3 p- 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; f" f7 A) L4 }4 f8 l# A( x6 k
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
- t4 W9 g7 b2 E' O4 H' sCPU: VIVT data cache, VIVT instruction cache
+ k8 F* u! g. J0 @! NMachine: AM18x/OMAP-L138 Hawkboard
( Z3 E2 r  \$ R. u3 Z7 Xda8xx_rproc_reserve_cma: 'rproc_mem=nn@address' badly specified
# ?0 ^0 g+ j% n$ H% L    'nn' and 'address' must both be non-zero
. g6 `1 K3 M- U# i. P1 Dcma: Reserved 16 MiB at 0xc6c00000
% e( v) t3 ~/ ]$ f) @Memory policy: Data cache writethrough( T! ^. i9 p+ q/ d
DaVinci da850/omap-l138/am18x variant 0x1# Y* X1 Z! t2 n7 f+ G$ E& b" \5 E
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 324801 u. V9 I' l; s1 Q, n, u9 d4 R
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
. N$ X3 P4 U$ r$ N  NPID hash table entries: 512 (order: -1, 2048 bytes)$ W9 w. L7 q1 ]2 N4 R: w. E
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
6 @2 y6 `7 r7 U$ c6 N5 _( s' UInode-cache hash table entries: 8192 (order: 3, 32768 bytes)
' r1 v  k1 t) s. sMemory: 106592K/131072K available (4529K kernel code, 308K rwdata, 1500K rodata, 228K init, 162K bss, 8096K reserved, 16384K cma-reserved)
  ]& ^7 r8 s! A. ?0 O+ C7 GVirtual kernel memory layout:
& S9 _& d& x" y0 M9 d0 T    vector  : 0xffff0000 - 0xffff1000   (   4 kB)/ I1 e: }- I, Z+ z
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
+ E; [3 g" d4 {" k8 @  t! ~! t5 K    vmalloc : 0xc8800000 - 0xff800000   ( 880 MB)
1 Z) B' b9 l7 ^0 f, r  ]    lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
1 _0 Q8 c; d4 J0 V2 B8 s" S+ P    modules : 0xbf000000 - 0xc0000000   (  16 MB)  k9 N6 J& C$ `3 x; g) ^
      .text : 0xc0008000 - 0xc0474b38   (4531 kB)
1 C7 R! G4 K& ?& S! R: H1 J      .init : 0xc05ed000 - 0xc0626000   ( 228 kB)+ f* B/ Q* N- J( J+ g7 Y5 n
      .data : 0xc0626000 - 0xc0673110   ( 309 kB)
* h# R/ e& h1 A7 d9 }! T       .bss : 0xc0673110 - 0xc069bc08   ( 163 kB)
4 |% n9 Q1 u+ GSLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=16 E9 }3 \( I, I- K. {% T! F5 W( f* c
Preemptible hierarchical RCU implementation.3 c4 \6 a2 V+ u( `( U% g
        Build-time adjustment of leaf fanout to 32.% u$ _$ r: k* q
NR_IRQS:2458 U" Z' _  v% {
clocksource: timer0_1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns7 _3 E" n8 L& q$ \5 S; ]7 i2 r
sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns; N1 D: D( [- E# J' r9 {4 y
Console: colour dummy device 80x30
0 M. [" L9 z& l  FCalibrating delay loop... 227.32 BogoMIPS (lpj=1136640)# d/ Y  [* j& Z7 t
pid_max: default: 32768 minimum: 301
0 m& m: m4 p# o9 s1 lMount-cache hash table entries: 1024 (order: 0, 4096 bytes)5 _0 r- [$ M* V' A/ W8 ^+ }0 l
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
; v8 X& K7 L1 d8 o8 J* g9 XCPU: Testing write buffer coherency: ok, e0 ^& P  S6 K* z: Y" J; U
Setting up static identity map for 0xc0008400 - 0xc0008458
( w! u, V7 f* h0 k- gdevtmpfs: initialized
! \0 V( |, @# B8 F- Q" TVFP support v0.3: not present
2 ?& I# a7 \/ P) f0 R6 `clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
- y: V' {0 c3 O7 S0 wfutex hash table entries: 256 (order: -1, 3072 bytes); b. g: q# [6 H
pinctrl core: initialized pinctrl subsystem, i+ g8 a) c8 X; }4 m
NET: Registered protocol family 162 V4 X' ^& L9 r3 s
DMA: preallocated 256 KiB pool for atomic coherent allocations
, l5 m) {$ R( ~+ ucpuidle: using governor ladder* I) ^: Y: [: t' ^3 f& v
cpuidle: using governor menu# z8 G- h. D; ?) C
EMAC: MII PHY configured: g# ]1 P8 ~; x1 ]8 `$ J  ?' i
mux: initialized GPIO3_12
" r: v0 q4 N5 o- Gmux: Setting register GPIO3_12
, a5 X$ T" X& [+ y& ?. Hmux:    PINMUX7 (0x0000001c) = 0x00110110 -> 0x00118110, K/ \/ d( ^9 e, f! O
mux: initialized GPIO3_131 v1 m3 y7 Y. R: Y& `- g. T! v
mux: Setting register GPIO3_13$ @- m" \8 s! U9 g0 B6 L
mux:    PINMUX7 (0x0000001c) = 0x00118110 -> 0x00118810
8 Z6 s9 a  v6 z( @4 u  |9 @4 b) I3 Tmux: initialized GPIO2_4
, Z* p* g  a1 u  z9 g" G7 Umux: Setting register GPIO2_4
7 h2 \) G2 e3 E0 W5 \# l% Wmux:    PINMUX6 (0x00000018) = 0x00000000 -> 0x00008000. G* d0 z. _5 w2 |" K9 c
mux: initialized GPIO6_13
5 h* O0 ^! k5 J" {. Z' T' B% ^2 o& dmux: Setting register GPIO6_13
( w) @$ z% O3 X# D2 Omux:    PINMUX13 (0x00000034) = 0x00000000 -> 0x00000800
( ^8 z# j( X+ D; x/ }$ tda8xx_register_rproc: memory not reserved for DSP, not registering DSP device
+ j+ A  d- n/ K1 Y. x& Qomapl138_hawk_init: dsp/rproc registration failed: -129 w/ @; g% J8 j
edma edma.0: Legacy memcpy is enabled, things might not work4 `9 Z/ b( ^$ @
edma edma.0: TI EDMA DMA engine driver
: N) r  ]9 i3 Oedma edma.1: Legacy memcpy is enabled, things might not work9 y. A3 k$ `+ B6 x; U
edma edma.1: TI EDMA DMA engine driver* ?' \7 f  `8 r/ E5 d2 W+ V. k; M" N, L' J
clocksource: Switched to clocksource timer0_1
; E, `* c* n1 E6 m, N& ]* XNET: Registered protocol family 2" p/ G$ R1 d0 ?' ~' D3 C! F
TCP established hash table entries: 1024 (order: 0, 4096 bytes)8 A  W$ W9 W% Y' L4 J7 A
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
: G9 K; w- s; b. B1 Z) GTCP: Hash tables configured (established 1024 bind 1024)0 ?5 @9 w" v3 N) m
UDP hash table entries: 256 (order: 0, 4096 bytes)3 A, k1 E: z- ~$ X
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes); R1 v9 ^- _( U4 z
NET: Registered protocol family 1
6 x( h# K. [/ a( vRPC: Registered named UNIX socket transport module.
: l! g3 Y0 U( E7 x- R. HRPC: Registered udp transport module.% M& G: B( k$ v
RPC: Registered tcp transport module.
/ S4 a: d3 N6 ZRPC: Registered tcp NFSv4.1 backchannel transport module.
  p  d' z/ L- G3 D. m; C3 Bworkingset: timestamp_bits=14 max_order=15 bucket_order=1
7 C9 Q! ^. N6 I( W3 ^- CBlock layer SCSI generic (bsg) driver version 0.4 loaded (major 250)+ W8 C0 h. D& T1 q
io scheduler noop registered (default)- y: T5 x' s8 U) r
Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled" P4 U$ e* q7 ?! a2 j- M
serial8250.0: ttyS0 at MMIO 0x1c42000 (irq = 25, base_baud = 14250000) is a 16550A% f; ^4 z. d$ u! d1 Y
serial8250.1: ttyS1 at MMIO 0x1d0c000 (irq = 53, base_baud = 8250000) is a 16550A! u8 k8 R) G+ s6 s' g( T8 d2 W% ]
serial8250.2: ttyS2 at MMIO 0x1d0d000 (irq = 61, base_baud = 8250000) is a 16550A
2 X6 E- I# P) ~2 u- |console [ttyS2] enabled
" {% M: n% U7 x4 F1 z( r! }brd: module loaded; E7 A* m0 g) e, d3 S( G
libphy: Fixed MDIO Bus: probed
7 L, c6 K: _# Z0 e! G& p  qdavinci_mdio davinci_mdio.0: davinci mdio revision 1.5
( L  I, r3 Y9 p  z& ?davinci_mdio davinci_mdio.0: detected phy mask fffffffe
0 o. c! Z% v" L* w; ]libphy: davinci_mdio.0: probed5 H( x2 v+ G- x
davinci_mdio davinci_mdio.0: phy[0]: device davinci_mdio-0:00, driver SMSC LAN8710/LAN8720
# T  P8 q. J7 L3 a( f* }* t5 W- Yi2c /dev entries driver
8 V5 ?6 y3 V* R4 _davinci_mmc da830-mmc.0: cannot find GPIO chip davinci_gpio.1
. O8 ]# B# Q2 u* D1 m* F0 j% vdavinci_mmc da830-mmc.0: cannot find GPIO chip davinci_gpio.1
9 k+ x! m0 `; G8 vdavinci_mmc da830-mmc.0: Using DMA, 4-bit mode; k5 l% Y# y: D; T+ }
NET: Registered protocol family 10, N+ b0 N; p4 m" I3 M
sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver0 c( Z9 g0 j8 _) C
NET: Registered protocol family 17
. F1 ]+ M5 ]+ H, F3 e, Gconsole [netcon0] enabled
4 W; k8 i* E% e; P9 Anetconsole: network logging started
/ W$ i/ N9 Z, j( T* Q# k- Z, ]8 ndavinci_emac davinci_emac.1: using random MAC addr: 0a:ed:9e:24:43:89% Y: l$ K- J0 C# c, O" |) E7 S: ^
hctosys: unable to open rtc device (rtc0)8 h1 A/ u/ {. z# K, E
libphy: PHY davinci_mdio-0:07 not found
+ ~! C: i! B) R$ O& O- fnet eth0: could not connect to phy davinci_mdio-0:07$ _! ^: p7 B$ j$ w
IP-Config: Failed to open eth0
+ ~8 }6 p' Q& I+ ~IP-Config: No network devices available
9 ^3 o; R* d/ n2 O; f! Pmmc0: host does not support reading read-only switch, assuming write-enable) F' Z3 B  d/ S8 S* E
mmc0: new high speed SDHC card at address 59b4
3 R) _5 F+ V" b( F) Pmmcblk0: mmc0:59b4 SS08G 7.41 GiB
( K( C: ~  @3 P6 i! Y" J8 z mmcblk0: p1 p23 Q* V2 C' C( o) w# u/ m7 v

3 `) T, d$ \0 \- m6 l3 k, C" v/* 此处等待了一段时间 */1 W: X0 x& V$ I! {+ @" c
# V" L# Q( K' @" ~. O$ R1 e
random: fast init done
8 ?5 N5 m, V" e" @& mVFS: Unable to mount root fs via NFS, trying floppy.4 \' F5 ?2 f: O/ I. g" Q7 n
VFS: Cannot open root device "nfs" or unknown-block(2,0): error -6
% V; U+ O4 e. T3 o6 pPlease append a correct "root=" boot option; here are the available partitions:% d. R! K. z4 @2 A! o, n
0100           32768 ram0  (driver?); }1 L- D0 s, L9 K9 h9 u
b300         7764992 mmcblk0  driver: mmcblk% P$ |# X1 N0 h  d' ?
  b301           71680 mmcblk0p1 cd4e1bc4-01
! Y3 K$ ~- ?2 j. H/ J% D7 N  b302         7675904 mmcblk0p2 cd4e1bc4-02                          , K) ?, S! {4 I, e# n* Z" s
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block
3 p! E: `; ~% e% w: ~0 z8 j+ F! P7 a( A5 P+ u# J% f

/ L# P7 B! ~6 f' f+ t. Z& \( q
作者: uestczwj    时间: 2017-9-12 22:25
应该是如下错误造成NFS失败:1 T: m5 b4 {7 x/ N5 Z, E. }' h. ~* ~

: Z9 R) n* b# d9 Q/ s+ nlibphy: PHY davinci_mdio-0:07 not found
; t& Q/ _# Z7 anet eth0: could not connect to phy davinci_mdio-0:077 h3 |; G0 k" |. V* R& u
IP-Config: Failed to open eth0! e* c" |" M& L. x% j" R9 J3 A
IP-Config: No network devices available
作者: 伊撒斯    时间: 2017-9-15 21:45
uestczwj 发表于 2017-9-12 22:253 G' Q, ?  h1 H( z9 {
应该是如下错误造成NFS失败:
/ L) c7 M3 k$ r  b; ]5 T7 r9 u$ `! D! m
libphy: PHY davinci_mdio-0:07 not found

9 m$ q4 T% i; F8 O+ ^* Z+ y您好,我们光盘资料里面,有提供相关的nfs组件安装包和搭建的指导文档,建议您先按照我们的资料去搭建,我们使用的是,基于Ubuntu12.04的nfs开发环境搭建。




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