嵌入式开发者社区

标题: 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卡启动
: n- U; ?5 _. W; |" Q* T) c, {5 u( b, X2 f. D
1.  在ubantu16.04(64bit)按照官网安装ti-processor-sdk-linux-omapl138-lcdk-04.00.00.04-Linux-x86-Install.bin6 o7 h( ~' \3 D4 J
6 r; W2 m  \& B, y0 e/ Z: j
2.  把uboot, kernel, filesystem写入SD卡, 拨码开关设置为SD启动, 能够正常启动能够进入嵌入式开发版' h; H; Q5 g, F* G! I& z7 g' W
/ s& {, F+ d, u/ d9 l
3.  SD卡启动方式保持不变,但是在uboot中配置为tftp下载内核和nfs挂载方式/ V4 M0 g1 d6 Z/ Z; ?0 b+ a

: }, r, o+ u! c/ [/ e# fuboot配置参数如下(由于没有开发板没有自动获取mac地址,所以自己设置为:  setenv  ethaddr 00:0c:29:bc:7e:9a):
4 z* s# V  K3 M6 ?) \5 s7 Z( e% q
  \5 j, f$ O- K; P# u% psetenv uboot_macaddr 10 D) k. C1 \" |5 _% Y. E, t
setenv ethaddr 00:0c:29:bc:7e:9a
* N  D, Y1 Y8 J4 i4 y! msetenv serverip 192.168.2.192
# M) T/ C! p4 j! C# r# H& ksetenv ipaddr 192.168.2.1914 H9 C, k8 a. P7 S# q! u
/ z4 g% W; B& o8 ?9 K
bootcmd=tftp c0700000 zImage;bootz c07000003 E" i6 |+ U$ d: s5 C7 R
7 x/ I* c6 w( v) O7 v6 j
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
/ A  f$ e( J) h* f  l- h7 w
1 @  |  |  K0 H- c$ f4. 能够通过tftp下载并启动内核,但是在挂载NFS文件系统之前报错(错误在下面内核启动信息的最后):% W6 P. u  E" W4 s6 o, g

% P7 e2 i2 R8 X/ ~5 z1 h- oboot命令后的完整启动信息:
- u1 m2 ~# _2 T* S! E8 ]5 d
6 Q- q8 U( q+ d' C6 R; f$ {=> boot9 v9 A5 z  K) Q
Using DaVinci-EMAC device8 c, H' n; ?, `' n# q/ |% x5 K
TFTP from server 192.168.2.192; our IP address is 192.168.2.191  f$ ~4 l) b6 b/ Y( R
Filename 'zImage'.; A+ D5 ?" z$ @) r
Load address: 0xc0700000' d% {: S. \8 {+ M6 `9 H% S/ J
Loading: #################################################################
1 [2 \2 ?/ I: ~. m- H  N! S         #################################################################1 j6 L/ ~, y' Q# M4 e
         ################################8 I4 M# J, P8 s2 A% d# I$ @
         288.1 KiB/s; D8 P! e1 a6 _
done! r  U2 k2 `. s
Bytes transferred = 2367360 (241f80 hex)
8 B" M7 I2 r8 `  J
# B# |/ @8 i6 w3 k8 J' kStarting kernel ...
9 {* \9 r3 h: g1 @( L
. u! H4 r6 o. A% n5 l9 _Uncompressing Linux... done, booting the kernel./ `( C+ v% ?, j  J4 X' U) {
Booting Linux on physical CPU 0x05 [9 c! H+ w# o
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
+ S, S" p7 }- oCPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f/ Z$ o8 d) v, z( Q+ r2 Y, w
CPU: VIVT data cache, VIVT instruction cache) I. E4 z- J9 X; R7 q
Machine: AM18x/OMAP-L138 Hawkboard# E1 i! c, n. s& l; l. @
da8xx_rproc_reserve_cma: 'rproc_mem=nn@address' badly specified  O& A) o5 j/ I# w: n
    'nn' and 'address' must both be non-zero' N1 N) k8 y& _( [
cma: Reserved 16 MiB at 0xc6c00000( h6 T0 y( Q* U9 D2 L/ T! @. \0 A
Memory policy: Data cache writethrough/ z6 F; E# ?$ E5 G' S
DaVinci da850/omap-l138/am18x variant 0x13 c7 E" C: n& j: ~7 f. ~1 k
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32480' b3 M( d7 N& u$ v1 z. u
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" K; U- V' YPID hash table entries: 512 (order: -1, 2048 bytes)
( d3 ~+ a( d3 K) ]" a, b! M& l/ G; NDentry cache hash table entries: 16384 (order: 4, 65536 bytes)5 M8 v  x) g9 i
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)6 R' S5 M. _5 {- S2 o& Z. \& L
Memory: 106592K/131072K available (4529K kernel code, 308K rwdata, 1500K rodata, 228K init, 162K bss, 8096K reserved, 16384K cma-reserved)
3 L+ ^5 W: z/ e6 m2 @( r; pVirtual kernel memory layout:  P7 B6 ^! m: f& l
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)) ?' C3 N' j1 q. Y
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
2 I2 l5 q  o- [% l    vmalloc : 0xc8800000 - 0xff800000   ( 880 MB)& b  L7 R7 e1 a* G( T
    lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)! a/ ]- ~( {! s6 o+ A
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
, Z# y* X" a7 Y% Z- k" f$ ^, a( ~# D      .text : 0xc0008000 - 0xc0474b38   (4531 kB)
9 J! x* P; @8 ]/ ~" h) M      .init : 0xc05ed000 - 0xc0626000   ( 228 kB)
/ j: M) f' h$ q* w$ X' u' V4 p      .data : 0xc0626000 - 0xc0673110   ( 309 kB)
6 q/ @  Q% [6 S# o       .bss : 0xc0673110 - 0xc069bc08   ( 163 kB)
; V0 O" L5 ?, m) U2 dSLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
4 |, C/ y- W0 a( O; `6 {Preemptible hierarchical RCU implementation.
# Z  Q) B0 ?3 P  s1 ^- A7 }        Build-time adjustment of leaf fanout to 32.
" S! v# _, N  G9 k: VNR_IRQS:245. }' a( P& X, \" L
clocksource: timer0_1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns( P2 E9 O) r# c$ n! u
sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
- G1 t( k" t6 m. s1 cConsole: colour dummy device 80x30' w" v+ `+ F6 X$ j0 e9 W8 z
Calibrating delay loop... 227.32 BogoMIPS (lpj=1136640). @* H0 y( S. K
pid_max: default: 32768 minimum: 301. n7 F& @6 ~" |, ~# V# A/ m8 s
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)# Y& J9 a. t; _  ?
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)8 f9 V2 k' p9 C4 V) d8 C0 V
CPU: Testing write buffer coherency: ok
* `; p6 T; @" Y  `9 F3 PSetting up static identity map for 0xc0008400 - 0xc00084583 x4 y" X4 g* J" U
devtmpfs: initialized
' E0 [& k- W- g9 I8 DVFP support v0.3: not present, h2 H0 E# A2 Y" j) t4 F% C9 k" \
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns' O3 m. F# ^+ ]5 @# e3 ?
futex hash table entries: 256 (order: -1, 3072 bytes)& y$ O8 i! [) n! J. f, _/ o
pinctrl core: initialized pinctrl subsystem" Q/ v: A0 ?8 B0 j
NET: Registered protocol family 16
% h- }. t' u* k  k# nDMA: preallocated 256 KiB pool for atomic coherent allocations$ ]( a' |9 o% i# p, w& E# J
cpuidle: using governor ladder
- ~1 z) C) `/ M0 x- b# ecpuidle: using governor menu+ I/ }# g# k% X6 l
EMAC: MII PHY configured0 b, L& w* y" c* X( q" k
mux: initialized GPIO3_12$ n* b9 i0 x1 o5 k1 f! q$ g5 x, {7 a2 t
mux: Setting register GPIO3_123 G1 G' U" o5 \5 j' O$ i
mux:    PINMUX7 (0x0000001c) = 0x00110110 -> 0x00118110  R+ f9 Y. O2 }; `1 U8 C" @
mux: initialized GPIO3_130 x2 t: A. {5 C
mux: Setting register GPIO3_13! _# T) b: O2 L- M6 }
mux:    PINMUX7 (0x0000001c) = 0x00118110 -> 0x00118810
, E' `: {9 @9 G# nmux: initialized GPIO2_4* f  I1 c3 P, f
mux: Setting register GPIO2_4( |3 {" a2 e: o' j
mux:    PINMUX6 (0x00000018) = 0x00000000 -> 0x00008000
7 U9 L# {+ r  q3 `3 }8 Kmux: initialized GPIO6_13
3 r5 E7 b* |2 x" Umux: Setting register GPIO6_13
: V. l) _( @8 R/ k5 Umux:    PINMUX13 (0x00000034) = 0x00000000 -> 0x00000800
8 C9 T: b* r  U# \  e8 D, eda8xx_register_rproc: memory not reserved for DSP, not registering DSP device
' v$ Q: D1 |& [9 x( \omapl138_hawk_init: dsp/rproc registration failed: -12
3 c  L, k& V9 K/ l! T: S2 g6 tedma edma.0: Legacy memcpy is enabled, things might not work
9 Q1 y. V" ^4 ^edma edma.0: TI EDMA DMA engine driver% K1 G1 R, ~! `, ^0 E5 c: X
edma edma.1: Legacy memcpy is enabled, things might not work# C% t& o& B) f, c+ e
edma edma.1: TI EDMA DMA engine driver
0 l) @; C4 b, T9 i# }  A/ Tclocksource: Switched to clocksource timer0_1
! z2 J( a- k3 ?NET: Registered protocol family 2
7 w, m$ J0 G' n) _% ATCP established hash table entries: 1024 (order: 0, 4096 bytes)
1 a  g) C4 B+ K4 vTCP bind hash table entries: 1024 (order: 0, 4096 bytes)
& D4 i+ S8 z* G; L6 h3 E' L3 Y; OTCP: Hash tables configured (established 1024 bind 1024)4 ~- O3 C" h+ r8 t6 I$ O' m
UDP hash table entries: 256 (order: 0, 4096 bytes); q  ~% q3 u0 ^3 h5 U7 [
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)  Q5 {1 n1 ]! X. |, J
NET: Registered protocol family 1
& W  N# I0 l! E' k4 F5 ~+ RRPC: Registered named UNIX socket transport module." Y' K& ?- t8 [% s5 e0 [
RPC: Registered udp transport module.3 Y' H; O# W. z9 W7 \6 u" U
RPC: Registered tcp transport module.2 G; T6 [3 X; L& h/ ^5 g
RPC: Registered tcp NFSv4.1 backchannel transport module.
) L9 D' {. j. F  G; qworkingset: timestamp_bits=14 max_order=15 bucket_order=1
% o* z7 [! Q, e( D: A9 A$ @Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
1 _7 s& S5 i( \io scheduler noop registered (default)  Q5 Y' b4 x  [& D+ W( X2 E
Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
( q# x& q& ?4 i" Pserial8250.0: ttyS0 at MMIO 0x1c42000 (irq = 25, base_baud = 14250000) is a 16550A! y: j5 V8 T6 E3 V( }; x
serial8250.1: ttyS1 at MMIO 0x1d0c000 (irq = 53, base_baud = 8250000) is a 16550A3 a! R$ k1 j. U# {6 t, d
serial8250.2: ttyS2 at MMIO 0x1d0d000 (irq = 61, base_baud = 8250000) is a 16550A
1 d( z+ V6 L8 M+ A  T; n$ i+ Bconsole [ttyS2] enabled0 p  {; a3 h) }9 M3 O
brd: module loaded
, g; Y8 C" u' `libphy: Fixed MDIO Bus: probed
2 s! `9 M6 t( w5 t% Vdavinci_mdio davinci_mdio.0: davinci mdio revision 1.5
3 s7 _% _" u; C: C' O# Z+ J% n5 idavinci_mdio davinci_mdio.0: detected phy mask fffffffe# `& L; Z* L, T7 m$ o3 P
libphy: davinci_mdio.0: probed' k/ K& K+ Q8 A. [! t
davinci_mdio davinci_mdio.0: phy[0]: device davinci_mdio-0:00, driver SMSC LAN8710/LAN8720
7 A" j' X/ c" y; Qi2c /dev entries driver* u1 e' W/ |1 ~% S: R* i
davinci_mmc da830-mmc.0: cannot find GPIO chip davinci_gpio.1# K2 x9 v1 v) `6 {* P8 s
davinci_mmc da830-mmc.0: cannot find GPIO chip davinci_gpio.1
" ^, b* t8 |2 p( f) J/ e% m1 adavinci_mmc da830-mmc.0: Using DMA, 4-bit mode
8 j3 J: w. c# _& Y" BNET: Registered protocol family 10
- c. ^( x8 m; T! D! E% qsit: IPv6, IPv4 and MPLS over IPv4 tunneling driver) U+ u$ c# A* J& o3 j  \
NET: Registered protocol family 17
$ V# |6 u5 R. M9 J  H- [console [netcon0] enabled
& F, U/ p1 l( k  a9 l8 J2 I3 Dnetconsole: network logging started
' Z9 D/ n0 S2 R9 s& Qdavinci_emac davinci_emac.1: using random MAC addr: 0a:ed:9e:24:43:89" ?, W4 l% L. |, ]) T% o! [; r3 G. V
hctosys: unable to open rtc device (rtc0)6 }+ C, O: F" g0 g# V
libphy: PHY davinci_mdio-0:07 not found
+ X# i3 Q8 R& Q; y) enet eth0: could not connect to phy davinci_mdio-0:07
: g+ E5 B4 s( s& Y8 T: J& hIP-Config: Failed to open eth0- a2 l! H) W0 ?. @
IP-Config: No network devices available3 n1 E# D4 S1 e& M2 r/ N8 q
mmc0: host does not support reading read-only switch, assuming write-enable; W% p0 J* i. p" n
mmc0: new high speed SDHC card at address 59b4* I/ R4 A' g8 `# O/ l
mmcblk0: mmc0:59b4 SS08G 7.41 GiB
* P1 Q6 V3 G9 `: @5 D( s6 I& x% B' S mmcblk0: p1 p2+ ~9 b, z6 k  b* w- \0 `  M" C, ~
) m' X2 g$ J/ g
/* 此处等待了一段时间 */
# ?5 r) G+ n  q/ I
: a7 c$ e* L, ^' O4 trandom: fast init done% W7 S6 R) S4 Y. G& q4 x
VFS: Unable to mount root fs via NFS, trying floppy." l1 ^8 ^, A$ l( h6 v
VFS: Cannot open root device "nfs" or unknown-block(2,0): error -60 X# k- z7 D9 d1 c; c
Please append a correct "root=" boot option; here are the available partitions:; g% |. }( {9 F. l8 c* U6 n/ v8 L
0100           32768 ram0  (driver?); D0 }' F/ O9 D. B; R( S% o* ]" e. E; f
b300         7764992 mmcblk0  driver: mmcblk
' p4 b; s( t% ^7 O4 p9 B# v% s  b301           71680 mmcblk0p1 cd4e1bc4-01- Q" L: j% c. G5 m! o4 B) y- Q; ~7 y
  b302         7675904 mmcblk0p2 cd4e1bc4-02                            g0 N: L7 G, x1 ^$ c
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block0 g' q5 z2 m' ~; @4 j3 Z

- `( _% T- j9 J, x: T; d& {& Q" w% d( Y/ T/ P& m$ w

作者: uestczwj    时间: 2017-9-12 22:25
应该是如下错误造成NFS失败:
) R+ B1 D6 {* [. w8 G+ k7 u2 @5 k* {, V" L
libphy: PHY davinci_mdio-0:07 not found% W# z% o3 z8 ]' G! F8 U
net eth0: could not connect to phy davinci_mdio-0:077 T! d/ O* @: M, w
IP-Config: Failed to open eth0
0 Y: @9 _5 m* \- W/ J5 K2 I& rIP-Config: No network devices available
作者: 伊撒斯    时间: 2017-9-15 21:45
uestczwj 发表于 2017-9-12 22:25$ A, \0 Q8 F% ~9 J9 H/ a5 Y. N# \' q
应该是如下错误造成NFS失败:. l6 Y5 [  W3 r- Y

- t3 [! `$ @- o% ulibphy: PHY davinci_mdio-0:07 not found
. p7 z( a/ n; o) Q$ w& l/ J
您好,我们光盘资料里面,有提供相关的nfs组件安装包和搭建的指导文档,建议您先按照我们的资料去搭建,我们使用的是,基于Ubuntu12.04的nfs开发环境搭建。




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