% j/ v9 _; s2 \+ O1 ^1. 在ubantu16.04(64bit)按照官网安装ti-processor-sdk-linux-omapl138-lcdk-04.00.00.04-Linux-x86-Install.bin5 u. `; X; A0 Q6 i9 z
4 w p; _, \) @0 T J+ m: P( O& y8 J2. 把uboot, kernel, filesystem写入SD卡, 拨码开关设置为SD启动, 能够正常启动能够进入嵌入式开发版8 S/ n' `) O, L: C; D. T* g' W
/ v9 v A5 ?( j8 [
3. SD卡启动方式保持不变,但是在uboot中配置为tftp下载内核和nfs挂载方式 : g/ d/ Q. f9 Q8 w5 [ F" t i7 U2 G H
uboot配置参数如下(由于没有开发板没有自动获取mac地址,所以自己设置为: setenv ethaddr 00:0c:29:bc:7e:9a):; R$ }8 ]3 Z1 @. j, z0 _0 B3 s
$ A8 ~: Z7 k2 I: Y' Esetenv uboot_macaddr 12 g" l5 F- m% m
setenv ethaddr 00:0c:29:bc:7e:9a / H! d3 j2 r2 ]3 ~/ K8 j% J5 r& ~, ~5 k! T
setenv serverip 192.168.2.192& O5 z5 ?* _5 ~+ c. y( [0 U
setenv ipaddr 192.168.2.191 , v# u+ D6 q8 K # Z2 a. }- J( Rbootcmd=tftp c0700000 zImage;bootz c0700000 + t, U' u' k: K7 g1 f& Q 4 \* t' ]; j7 S9 p. ~# c$ rbootargs=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 4 {1 J* T7 I9 t, r( m6 r: l5 {. M: M; ]/ S1 Z
4. 能够通过tftp下载并启动内核,但是在挂载NFS文件系统之前报错(错误在下面内核启动信息的最后): ) n# m$ F+ C; q8 z9 U 9 G3 A# K/ j4 Eboot命令后的完整启动信息:* O- Z5 U) I5 h/ E# Z1 N& b
! q) I* z3 E+ Q1 N* d9 E5 o
=> boot7 W# g. j( I+ \/ N$ r' T. e+ u5 X/ x
Using DaVinci-EMAC device" `: F, |* Y( J7 a5 T7 e
TFTP from server 192.168.2.192; our IP address is 192.168.2.191 5 E! A. \- p* O" h3 aFilename 'zImage'. 6 p. j& y" x' K9 q3 f" gLoad address: 0xc0700000- l _- g. Z; \: Y, R: n' {( I
Loading: #################################################################9 s# z) Z# N, J& a- U
#################################################################% u" {) m. ? u* x' ?( r4 y
################################ $ m/ ~- |+ ^% q \ 288.1 KiB/s0 R& H, O- @" r- C& N. g# P
done, X4 e" ]" \; i# ^' j/ L9 i! R
Bytes transferred = 2367360 (241f80 hex) 5 D! _. P( x! D R# ` o5 j/ u- p' _, oStarting kernel ... / Y0 F4 {3 F j& ?! Z$ g! H G* k$ n
Uncompressing Linux... done, booting the kernel. {9 K/ d+ J1 y7 Y
Booting Linux on physical CPU 0x0( e8 V) w' M9 ^; _8 B% t0 w
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 1 N1 ^6 i# P+ a2 K, o" s: K; E4 H, ?CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f y- N" Q8 S- Q5 jCPU: VIVT data cache, VIVT instruction cache+ ?! g) }3 Y8 o5 t' w
Machine: AM18x/OMAP-L138 Hawkboard: n. L$ A. O4 V" m/ y7 ]
da8xx_rproc_reserve_cma: 'rproc_mem=nn@address' badly specified 4 D5 m6 X2 _% d* v 'nn' and 'address' must both be non-zero 0 T" T, z+ R7 v5 ?: ]5 [' Xcma: Reserved 16 MiB at 0xc6c00000# F# o# Y; C4 p; | Y
Memory policy: Data cache writethrough 7 Y' z! W! n, v' C- ?$ z3 T1 GDaVinci da850/omap-l138/am18x variant 0x1 u7 G0 U7 H' t" f1 h5 r1 K
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 324801 w2 }) @0 Z P+ c! I
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* k5 j% D, F7 k) `. P1 q* {2 L) D
PID hash table entries: 512 (order: -1, 2048 bytes) * s, X$ z; ^/ B. y, V* n' ZDentry cache hash table entries: 16384 (order: 4, 65536 bytes)' z) g: ?, {0 l4 i
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) 6 |# R# ^; A1 X" B: k4 @. o. h8 `Memory: 106592K/131072K available (4529K kernel code, 308K rwdata, 1500K rodata, 228K init, 162K bss, 8096K reserved, 16384K cma-reserved)8 \# s, g) u9 h: F3 `1 {$ G
Virtual kernel memory layout: 7 s4 X" u9 I9 D3 Q vector : 0xffff0000 - 0xffff1000 ( 4 kB) ! [1 u! T! R1 X9 n fixmap : 0xffc00000 - 0xfff00000 (3072 kB) J9 r# G/ y8 n vmalloc : 0xc8800000 - 0xff800000 ( 880 MB) ; \( u2 _; z. |- Z lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)- L. u. p3 K3 P" [
modules : 0xbf000000 - 0xc0000000 ( 16 MB) 7 F( T* F6 Q8 n3 a8 R# q. f- A1 t1 @ .text : 0xc0008000 - 0xc0474b38 (4531 kB) 0 R) ^( e% t# L: g1 V .init : 0xc05ed000 - 0xc0626000 ( 228 kB)9 q0 I7 \/ C! E$ z( W: F: R2 ]
.data : 0xc0626000 - 0xc0673110 ( 309 kB)' } E# b, f3 M6 p9 ^5 Z0 P
.bss : 0xc0673110 - 0xc069bc08 ( 163 kB)4 s7 {# l5 m o/ P# K4 L
SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1) ^7 Y7 Q% H4 O& p1 ~% m0 E# u8 a- J" E
Preemptible hierarchical RCU implementation.! t8 c" |5 G1 S6 v. X# E B
Build-time adjustment of leaf fanout to 32.. L, l+ h: |: L. c9 M# \; w
NR_IRQS:245 / ?" u8 q) l; R+ [' jclocksource: timer0_1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns 2 M4 \$ y( ?" G* D, ^6 k* T' asched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns ' {4 S* }# L: d3 H3 {Console: colour dummy device 80x30' `6 `$ {/ C" h
Calibrating delay loop... 227.32 BogoMIPS (lpj=1136640) : H% |- M! s1 ~' d% Bpid_max: default: 32768 minimum: 3015 @0 m9 o1 R; e" ]8 o: M( o& p
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)1 n+ P! Z5 Y1 T
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) " W) j5 c# h+ R* P$ H! ACPU: Testing write buffer coherency: ok : N' r2 \2 y" D4 pSetting up static identity map for 0xc0008400 - 0xc0008458 1 ?6 Z: J4 k; Wdevtmpfs: initialized : F8 e9 E% ^; P$ m' UVFP support v0.3: not present : X+ ^4 n) {$ Z4 nclocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns 0 z: N6 W9 |0 L% T' [6 ^) ]! K! I& @futex hash table entries: 256 (order: -1, 3072 bytes) 2 _ s1 N# W& K5 z8 @5 d1 h/ ppinctrl core: initialized pinctrl subsystem : b/ H! o6 J+ tNET: Registered protocol family 16$ d6 O; s* ~. t9 `
DMA: preallocated 256 KiB pool for atomic coherent allocations 5 r1 x: [* l3 Z$ L+ B2 w: Tcpuidle: using governor ladder# Z; e# Y1 I3 L2 p
cpuidle: using governor menu 8 Y5 M+ ^0 t- q& o0 T8 [3 IEMAC: MII PHY configured7 u! n, w. W5 C2 F
mux: initialized GPIO3_12 s6 \: v1 B5 Tmux: Setting register GPIO3_12 : J2 Q7 t! h. s( E7 qmux: PINMUX7 (0x0000001c) = 0x00110110 -> 0x00118110& m( C1 R$ Y! K
mux: initialized GPIO3_13 % O9 n2 }$ N3 U0 smux: Setting register GPIO3_13 , B7 Q/ Q2 ~ }" ]4 b1 Vmux: PINMUX7 (0x0000001c) = 0x00118110 -> 0x00118810# H% A* j0 [' C
mux: initialized GPIO2_4; }) C8 j6 g0 u% p( C; z
mux: Setting register GPIO2_4 - a* m7 X0 ~, \: z1 k8 P3 A( ~mux: PINMUX6 (0x00000018) = 0x00000000 -> 0x00008000 5 E5 i/ j* U2 @; k. K8 s" K0 Qmux: initialized GPIO6_133 S$ y0 y) b3 f
mux: Setting register GPIO6_13 y. ~: l4 ?; i5 Q" L
mux: PINMUX13 (0x00000034) = 0x00000000 -> 0x00000800 / Y# x4 e' _. K' K1 X( u4 q0 {da8xx_register_rproc: memory not reserved for DSP, not registering DSP device 3 s. Y: c7 F( a+ N" }omapl138_hawk_init: dsp/rproc registration failed: -12" Q1 V, I: K: ?9 v: r
edma edma.0: Legacy memcpy is enabled, things might not work$ b5 E* C1 f5 \8 Y g& M) s" k: t# i
edma edma.0: TI EDMA DMA engine driver3 \4 [: {% V& M& C% L" E1 P S
edma edma.1: Legacy memcpy is enabled, things might not work 6 o9 Y: {& V1 z8 l$ Y4 yedma edma.1: TI EDMA DMA engine driver . Z( B+ t/ k! j+ z. a, c; lclocksource: Switched to clocksource timer0_16 ^. b1 X) S4 \$ e3 ?. z
NET: Registered protocol family 2 0 r! A) Y3 C# j+ c yTCP established hash table entries: 1024 (order: 0, 4096 bytes): c8 V4 G% j; Q. o4 n$ o- r
TCP bind hash table entries: 1024 (order: 0, 4096 bytes) ' u" O2 k$ s/ G; PTCP: Hash tables configured (established 1024 bind 1024) ' E% Z1 C1 O' l, ^% h3 ?UDP hash table entries: 256 (order: 0, 4096 bytes) * z: Q" T3 c3 {UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) P b5 N1 I" C
NET: Registered protocol family 1" ?! ]2 J- z7 n* w8 Y
RPC: Registered named UNIX socket transport module. " {) O, Z" L; t# uRPC: Registered udp transport module. / z# G* Q9 C: D# ?9 ^, `; \: Y5 o# IRPC: Registered tcp transport module. k7 u& m6 w; b3 Z3 DRPC: Registered tcp NFSv4.1 backchannel transport module. 5 k c2 ^& P0 }, P' m! }; jworkingset: timestamp_bits=14 max_order=15 bucket_order=13 n3 J6 b( h t, L- X+ R( o( t
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)7 n! y7 g2 g% K) r! r
io scheduler noop registered (default) - C7 _+ B0 _1 o! J: sSerial: 8250/16550 driver, 10 ports, IRQ sharing disabled ) ^, x# O# {0 G; C5 r8 `$ p! bserial8250.0: ttyS0 at MMIO 0x1c42000 (irq = 25, base_baud = 14250000) is a 16550A# b6 u0 P& E5 I# G: U4 A% G e0 F' h& X
serial8250.1: ttyS1 at MMIO 0x1d0c000 (irq = 53, base_baud = 8250000) is a 16550A9 c5 f8 F% R1 }3 Z* e f! F& E+ w$ @
serial8250.2: ttyS2 at MMIO 0x1d0d000 (irq = 61, base_baud = 8250000) is a 16550A: o6 p% g: v/ G2 u! z- I
console [ttyS2] enabled* a1 K+ j2 T9 I* W- K
brd: module loaded & W- [, f0 X- a M: q1 c! k' Zlibphy: Fixed MDIO Bus: probed & `" V- `% v9 _# w1 mdavinci_mdio davinci_mdio.0: davinci mdio revision 1.5 " o. H) E: m2 D- a6 J1 B5 Mdavinci_mdio davinci_mdio.0: detected phy mask fffffffe- d" v4 L( b0 j: A E t5 ?+ q
libphy: davinci_mdio.0: probed, T F/ Z& \; P% Q/ n
davinci_mdio davinci_mdio.0: phy[0]: device davinci_mdio-0:00, driver SMSC LAN8710/LAN8720& k+ D3 h- o( V& y+ v6 L3 _
i2c /dev entries driver/ N8 q) J8 T9 g
davinci_mmc da830-mmc.0: cannot find GPIO chip davinci_gpio.1 U6 w k8 M( t$ `2 i' P
davinci_mmc da830-mmc.0: cannot find GPIO chip davinci_gpio.1 " A0 x4 D+ [; X# S3 w# z2 P" pdavinci_mmc da830-mmc.0: Using DMA, 4-bit mode+ b$ F5 k, l( N Q
NET: Registered protocol family 10! A) w2 @& r( `( v* o
sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver 8 Z9 l9 |" f; ]5 Z6 x' INET: Registered protocol family 17 6 F6 J: f# t# qconsole [netcon0] enabled 6 Q. d* d4 T, Q* bnetconsole: network logging started % s2 M5 `0 ^) O6 ^/ G5 ddavinci_emac davinci_emac.1: using random MAC addr: 0a:ed:9e:24:43:89 8 O: a% r! Z6 f% k y6 b7 {hctosys: unable to open rtc device (rtc0) % |4 Z3 F2 v3 G$ `2 dlibphy: PHY davinci_mdio-0:07 not found % E& }" p3 ?+ v; Y8 x$ x5 Snet eth0: could not connect to phy davinci_mdio-0:07 : I7 I8 D. `7 y; q" g4 g4 oIP-Config: Failed to open eth0 9 ^$ N1 [1 m* z$ z: k3 r6 a! O! A" pIP-Config: No network devices available & [$ M3 q( }+ h! `: l( Qmmc0: host does not support reading read-only switch, assuming write-enable ! M# o8 @# P& n7 o; {2 N/ xmmc0: new high speed SDHC card at address 59b4 " k: b! o% R! E# m- `- _: Mmmcblk0: mmc0:59b4 SS08G 7.41 GiB & j) V7 P( \* N* w mmcblk0: p1 p2 : N& p! r& H" O( X0 v- c" ~- r5 k! F Y
/* 此处等待了一段时间 */ & V* _& A0 ]; v$ C3 K% T( F& ]' `5 i. A+ f. u
random: fast init done : u: s6 x A6 M' L' @VFS: Unable to mount root fs via NFS, trying floppy.$ h5 {2 t) D) n0 Z' r) d; _! O4 C
VFS: Cannot open root device "nfs" or unknown-block(2,0): error -6/ K' w+ C3 o! G! \( e& W1 ^* l8 ]
Please append a correct "root=" boot option; here are the available partitions: v, S' o- }; k0100 32768 ram0 (driver?)2 l( c1 n0 [1 R! w
b300 7764992 mmcblk0 driver: mmcblk) [8 d/ g& o) @% ?
b301 71680 mmcblk0p1 cd4e1bc4-01( y- s, ^$ u% v" `: a1 m
b302 7675904 mmcblk0p2 cd4e1bc4-02 , g( g; @- z! z& {% Q' F- a8 y
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block( q$ C4 r; [. B3 ^
+ X- A1 B9 d8 {' N$ y! E: W9 ~9 u4 a+ q( ]; j m' O H 作者: uestczwj 时间: 2017-9-12 22:25
应该是如下错误造成NFS失败:5 C- N e% T u4 @4 g% F- u( s
& q4 |9 D& ^* [ A( u j: `, {libphy: PHY davinci_mdio-0:07 not found3 ]1 m7 r1 H# X5 O* `5 r* B
net eth0: could not connect to phy davinci_mdio-0:07 2 P& ^7 o( _/ W& ?0 D' `# kIP-Config: Failed to open eth08 g( D1 M0 S4 F' G6 T
IP-Config: No network devices available作者: 伊撒斯 时间: 2017-9-15 21:45
uestczwj 发表于 2017-9-12 22:25 : l2 `- B0 h" `3 [) I& B# s应该是如下错误造成NFS失败:) z& Z0 q+ O& S, P. w9 @3 ?0 h
2 P7 o# X v. f. k4 Z
libphy: PHY davinci_mdio-0:07 not found