|
0. 开发板型号: TL138/6748/1808F-EasyEVM-A2, 开发版启动模式模式为SD卡启动: b% f1 x* ?, n9 s6 \
1 J$ x8 t' b8 _; |4 ~5 h6 v1. 在ubantu16.04(64bit)按照官网安装ti-processor-sdk-linux-omapl138-lcdk-04.00.00.04-Linux-x86-Install.bin
5 j( c4 H4 b5 D3 V$ Y4 z
, ^5 m6 P- |4 ^5 ^+ ?( z2. 把uboot, kernel, filesystem写入SD卡, 拨码开关设置为SD启动, 能够正常启动能够进入嵌入式开发版1 e: R; _. P' F9 T
; S8 t2 U& U) t7 X7 V. _/ u1 z W3. SD卡启动方式保持不变,但是在uboot中配置为tftp下载内核和nfs挂载方式; `* ^" v4 D7 n/ v7 E' h
3 Q$ X7 V' s$ ^5 n
uboot配置参数如下(由于没有开发板没有自动获取mac地址,所以自己设置为: setenv ethaddr 00:0c:29:bc:7e:9a):$ o' J( `' R( e: t
. J6 A: T3 X3 J5 ?; T Z8 B2 U9 rsetenv uboot_macaddr 1
7 } B/ f2 G; _4 Fsetenv ethaddr 00:0c:29:bc:7e:9a
& X; A! n& j! H: g& tsetenv serverip 192.168.2.1924 K: _, c- l7 X$ K: [: T
setenv ipaddr 192.168.2.191
8 m- m }3 Q7 O$ Z0 j% }9 V4 ?# {4 S# R* I6 b- a, M; w8 R
bootcmd=tftp c0700000 zImage;bootz c0700000# F& @0 ~# [" M% R9 P
. `2 t( q* @: `& x
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
" B. _, m! ~! J5 P5 m( ^. A9 A
7 _/ ]: @& k$ I: Q) r1 k- l: _4. 能够通过tftp下载并启动内核,但是在挂载NFS文件系统之前报错(错误在下面内核启动信息的最后):
3 N& o) a% ^4 l0 v9 L( |; N' N6 G$ J& `: ^; D1 H! y
boot命令后的完整启动信息:% X5 ^3 k& `# s$ Q
6 J* Q p; e5 E/ b) `% o
=> boot9 h1 x2 t' g) c' u2 }
Using DaVinci-EMAC device
+ d' }2 J+ |' T1 ~. jTFTP from server 192.168.2.192; our IP address is 192.168.2.191# J O, O! Z! ]2 O) x
Filename 'zImage'.6 Y3 X7 z- v g0 O
Load address: 0xc0700000
6 D, X7 D; Z# w& q6 q4 P" e' ~Loading: #################################################################8 t* x Z8 N7 v2 m) y# w) P
#################################################################
9 K2 r) Y# f) E% e) `" h2 x ################################; G! R# a9 P8 t# y) r5 T
288.1 KiB/s+ `) P* x1 {! m" Q
done% l- O- C6 ~! s* _9 ]( B
Bytes transferred = 2367360 (241f80 hex)6 w6 J: w: B+ V9 _7 N& t/ n. m
, q( k9 ~, X' i- BStarting kernel ...2 y( @8 v8 @& u# |
5 q2 o. `- r+ o2 z6 R
Uncompressing Linux... done, booting the kernel.* B* [! X2 U. s/ d. Z' H
Booting Linux on physical CPU 0x06 ^% {( ]% W) C- t9 [
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
. r% |/ G4 x% {CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
- N" o, l, @# ]2 FCPU: VIVT data cache, VIVT instruction cache
+ I/ y0 E! Z0 N' k. PMachine: AM18x/OMAP-L138 Hawkboard
0 B; k b" Y; v2 X' dda8xx_rproc_reserve_cma: 'rproc_mem=nn@address' badly specified( D! K/ M$ N% S$ ^8 p8 Y' T
'nn' and 'address' must both be non-zero: R, [* S, e c$ C9 u
cma: Reserved 16 MiB at 0xc6c00000
9 d4 w" V' U6 g* Y" {: ]' N UMemory policy: Data cache writethrough
+ B' [/ j$ D Q; nDaVinci da850/omap-l138/am18x variant 0x1
6 T0 `* |/ g4 |- N: x' B; V4 X; J4 RBuilt 1 zonelists in Zone order, mobility grouping on. Total pages: 32480! J5 {7 A6 l y4 Q5 n
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& h0 }+ b; R# s& l9 b9 ]
PID hash table entries: 512 (order: -1, 2048 bytes)# `- f7 h+ e3 `6 U
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)/ q8 G1 Y6 i6 ~6 |- J- Q
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
2 [; `3 I$ i9 QMemory: 106592K/131072K available (4529K kernel code, 308K rwdata, 1500K rodata, 228K init, 162K bss, 8096K reserved, 16384K cma-reserved)
6 `7 T8 O6 y( ~5 hVirtual kernel memory layout:2 X; z' L9 X2 j
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
' a/ O% C2 i( j \1 G6 | fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
) r! j. D! ~+ I vmalloc : 0xc8800000 - 0xff800000 ( 880 MB)
8 Y4 q" o% {" U/ m6 m lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)9 v7 M5 C& p4 P' H% I( U* ]* t
modules : 0xbf000000 - 0xc0000000 ( 16 MB)
% [, E4 k5 K- D2 X .text : 0xc0008000 - 0xc0474b38 (4531 kB)
! u& V' L; v$ ~/ K+ w .init : 0xc05ed000 - 0xc0626000 ( 228 kB)" |& }, k6 P1 S+ y$ h9 \
.data : 0xc0626000 - 0xc0673110 ( 309 kB). w; h0 q F. `+ _' p0 s
.bss : 0xc0673110 - 0xc069bc08 ( 163 kB): w. P4 Y- f9 c' O- k
SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=13 ~$ {7 C% b- ~9 w6 L7 V8 P
Preemptible hierarchical RCU implementation.
5 K" m7 j- a- w6 |/ _ Build-time adjustment of leaf fanout to 32.3 Q, |/ v: `# z0 r
NR_IRQS:245* Q. `8 V. x9 ?6 v I: e
clocksource: timer0_1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns% G$ x" n- }1 g9 [. P' I* j8 p
sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns1 U: q+ K0 |% y6 D5 ~) P$ T
Console: colour dummy device 80x303 O7 N8 o: M/ A$ ~1 h
Calibrating delay loop... 227.32 BogoMIPS (lpj=1136640), ?9 T* e1 n" r7 V, H, w' _
pid_max: default: 32768 minimum: 3015 F% Q, Z: r1 u% w- ^0 d! h
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
& D+ r3 _7 U4 RMountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)' R/ |1 G L0 M) I: g
CPU: Testing write buffer coherency: ok6 g; d3 O5 i o: H$ r9 h
Setting up static identity map for 0xc0008400 - 0xc0008458
0 l4 e$ j2 z7 cdevtmpfs: initialized
% W+ q, k$ G% t. d1 |) T& e7 rVFP support v0.3: not present
& h3 Y+ ~2 O4 x6 t3 Z/ Oclocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
! G T$ I. a8 gfutex hash table entries: 256 (order: -1, 3072 bytes)6 X3 i7 ~, u5 X
pinctrl core: initialized pinctrl subsystem' _8 e/ _. t1 o: v$ u5 w5 ?
NET: Registered protocol family 16
9 g g" U+ z/ o" h3 ~DMA: preallocated 256 KiB pool for atomic coherent allocations9 c4 Q( c& \& Y6 a1 l
cpuidle: using governor ladder+ L9 H1 V# f, G! H, k
cpuidle: using governor menu; X4 I, P; [4 N5 n; V* Q( K
EMAC: MII PHY configured
1 r, T6 G; x0 t' s2 I( xmux: initialized GPIO3_12) {- @4 d' f: g$ g! ]' g, |
mux: Setting register GPIO3_12
9 \' J$ P) h$ z/ w% U, G' ?0 u' ^mux: PINMUX7 (0x0000001c) = 0x00110110 -> 0x00118110
6 j/ K2 Q) C2 f( `( Wmux: initialized GPIO3_13
: v. u- k3 ^0 y/ a8 e( u7 Z# dmux: Setting register GPIO3_13
) m, R% K3 S9 v1 d# I$ _8 Omux: PINMUX7 (0x0000001c) = 0x00118110 -> 0x001188105 A' i7 ?( E; ~: a: V# I# g/ _4 |* J
mux: initialized GPIO2_4& e/ k6 G& w! T7 d) W3 \4 {$ [: t
mux: Setting register GPIO2_4! H( Z6 N, p+ O$ @
mux: PINMUX6 (0x00000018) = 0x00000000 -> 0x00008000
+ |# c/ n: J7 p4 T) I9 Xmux: initialized GPIO6_13
8 L( y0 M6 z- O: d& u& mmux: Setting register GPIO6_13
- h2 y- Y. v. _( o: rmux: PINMUX13 (0x00000034) = 0x00000000 -> 0x000008008 Q# A. k8 X5 _0 q
da8xx_register_rproc: memory not reserved for DSP, not registering DSP device
1 m+ j C, r1 Jomapl138_hawk_init: dsp/rproc registration failed: -129 F M* R2 s# y- Y' t, P
edma edma.0: Legacy memcpy is enabled, things might not work8 j2 @" i( z" f6 @- N2 u
edma edma.0: TI EDMA DMA engine driver
! A5 D6 F3 \- C! w9 Ledma edma.1: Legacy memcpy is enabled, things might not work
j- y+ y$ D) U% eedma edma.1: TI EDMA DMA engine driver
5 e7 U) a) f# w8 d* qclocksource: Switched to clocksource timer0_11 H# [6 D- g3 E
NET: Registered protocol family 2
6 D- j; \3 w: p' j3 }2 w [) LTCP established hash table entries: 1024 (order: 0, 4096 bytes)0 j; u, i, h8 Y$ X4 u) Q& s
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)! Q# s# l6 i4 {
TCP: Hash tables configured (established 1024 bind 1024)7 k8 q. M x' E& A ?, [0 V
UDP hash table entries: 256 (order: 0, 4096 bytes)6 F; Z5 A1 D6 J0 O/ Q
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes). C3 r; u: R" ^) ]
NET: Registered protocol family 12 \4 b8 j3 j! c3 m! D% i
RPC: Registered named UNIX socket transport module.
; q* J# @" k* a/ p6 q6 N, a2 c( e' dRPC: Registered udp transport module.
# g2 B6 F* ^( G2 A: L5 l# vRPC: Registered tcp transport module.
0 a! y J, T# SRPC: Registered tcp NFSv4.1 backchannel transport module.
. Q& w, F. U5 [$ I, i7 v3 S: Q; u6 ?workingset: timestamp_bits=14 max_order=15 bucket_order=1( C+ J! }5 X2 W, w0 P% s$ Y. Q- B
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
* p7 R. B8 N2 L6 sio scheduler noop registered (default)( G# ^/ P) J G0 M+ t. z8 S' s
Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
# {* F$ {: h7 L5 U3 c% T+ M$ w: userial8250.0: ttyS0 at MMIO 0x1c42000 (irq = 25, base_baud = 14250000) is a 16550A
' l- r: O& @( R. R' [- gserial8250.1: ttyS1 at MMIO 0x1d0c000 (irq = 53, base_baud = 8250000) is a 16550A8 v3 g+ ^, r. @
serial8250.2: ttyS2 at MMIO 0x1d0d000 (irq = 61, base_baud = 8250000) is a 16550A
9 i# g2 K9 `& m& m, sconsole [ttyS2] enabled
; x- k9 F# N' I1 Y; pbrd: module loaded
, l# G. m9 Z( y* ~5 e. B& w Slibphy: Fixed MDIO Bus: probed
* d0 E6 J* K* Q) qdavinci_mdio davinci_mdio.0: davinci mdio revision 1.5
' k3 M3 r6 \. i+ Zdavinci_mdio davinci_mdio.0: detected phy mask fffffffe
- A+ H# s: m# m" f- W Blibphy: davinci_mdio.0: probed9 J7 {# J' R( }; ~% a1 R! F2 N
davinci_mdio davinci_mdio.0: phy[0]: device davinci_mdio-0:00, driver SMSC LAN8710/LAN8720
' n5 @/ G$ W" y) i. hi2c /dev entries driver
! p* l: j, N( Qdavinci_mmc da830-mmc.0: cannot find GPIO chip davinci_gpio.1
* {! k. D4 X: e8 N3 {! a" Mdavinci_mmc da830-mmc.0: cannot find GPIO chip davinci_gpio.1
- F; i' W& k8 n8 G. Edavinci_mmc da830-mmc.0: Using DMA, 4-bit mode
( D; g/ |- E: \7 d3 O. YNET: Registered protocol family 10. Y7 |8 R6 `' c, Q( F2 ?; G
sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
: r+ w" W! Y5 ?NET: Registered protocol family 17& X& t3 j9 |% ` z5 k K
console [netcon0] enabled
2 k" u9 j) D. c7 i9 m0 Wnetconsole: network logging started
, {! o& f/ v8 j Y2 y) F, Kdavinci_emac davinci_emac.1: using random MAC addr: 0a:ed:9e:24:43:89
. n! X) _2 |( [( Y/ Chctosys: unable to open rtc device (rtc0)/ F$ Z' _* n* y5 t B
libphy: PHY davinci_mdio-0:07 not found; `( [' _+ D0 h
net eth0: could not connect to phy davinci_mdio-0:07
H- _7 W8 [* ]6 mIP-Config: Failed to open eth0
9 x9 q! T1 D+ ~8 GIP-Config: No network devices available7 z- O [; E5 y
mmc0: host does not support reading read-only switch, assuming write-enable0 X2 \# `2 M8 f5 A
mmc0: new high speed SDHC card at address 59b4
" S9 w2 Z$ s' ~& d' tmmcblk0: mmc0:59b4 SS08G 7.41 GiB
3 L3 ]1 w- f' V mmcblk0: p1 p2
7 r+ u5 @+ c# l! W! t
% W1 H' b* `+ |/* 此处等待了一段时间 */0 @0 z, A/ Z. L! E2 u
& n& N6 @4 d2 o' Q5 B% c
random: fast init done
9 d1 V- o; z. T( I) M; ^$ k+ w2 bVFS: Unable to mount root fs via NFS, trying floppy.* A' u! D6 G) F3 M w; q* [
VFS: Cannot open root device "nfs" or unknown-block(2,0): error -6
% v7 n4 a3 \1 V4 P& L, OPlease append a correct "root=" boot option; here are the available partitions:0 C' M+ n: e4 w5 A, O# x
0100 32768 ram0 (driver?)
: g, d( y2 R5 n8 D6 a$ Ib300 7764992 mmcblk0 driver: mmcblk
p4 W9 j1 E/ h" i b301 71680 mmcblk0p1 cd4e1bc4-01
0 ]7 F- j b. p' F) B b302 7675904 mmcblk0p2 cd4e1bc4-02 9 l7 Q1 F' m% t
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block
& R' |9 x7 {) l U4 t3 {+ l5 P8 z4 h' K C4 n
& R: ?# i$ c& e* o. S; W
|
|