|
|
0. 开发板型号: TL138/6748/1808F-EasyEVM-A2, 开发版启动模式模式为SD卡启动
+ |0 G% ~8 I, ~! H- i
: }% I0 x# e2 W1 S! a# g9 s% c1. 在ubantu16.04(64bit)按照官网安装ti-processor-sdk-linux-omapl138-lcdk-04.00.00.04-Linux-x86-Install.bin
& l! C0 g& [6 l9 E* t. `8 D5 J; \1 Y# M2 X/ R
2. 把uboot, kernel, filesystem写入SD卡, 拨码开关设置为SD启动, 能够正常启动能够进入嵌入式开发版$ n' {( \1 g9 c! A4 q& l6 o
- P3 L# `5 b9 Y4 ]5 C5 T
3. SD卡启动方式保持不变,但是在uboot中配置为tftp下载内核和nfs挂载方式3 z8 A) D' R3 ~1 S5 ?: l
6 {# E8 t0 z- Kuboot配置参数如下(由于没有开发板没有自动获取mac地址,所以自己设置为: setenv ethaddr 00:0c:29:bc:7e:9a):0 J0 M# Q3 f' u; B
! V: c- ]! S# I4 C3 i! s
setenv uboot_macaddr 17 u/ j9 ^9 s1 B( U- i9 E
setenv ethaddr 00:0c:29:bc:7e:9a J7 U, z) N7 u
setenv serverip 192.168.2.192% K& L* T' D9 n$ d$ s( F4 Y
setenv ipaddr 192.168.2.191
3 s% Y) d2 x/ Y0 K; X
7 A+ w7 B" ?( ~. A" xbootcmd=tftp c0700000 zImage;bootz c0700000- \) M; a) t6 M+ V4 v# }# }2 m
, }2 n% G' e0 D; z/ @; Q6 J3 ^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 T+ v) i/ h' W- D, P: i
; i3 N2 s5 f0 f% N" k& j. k4. 能够通过tftp下载并启动内核,但是在挂载NFS文件系统之前报错(错误在下面内核启动信息的最后):
5 G$ [/ [ [& ?9 w; @6 L$ f3 J3 A+ ~: G* W0 ?9 E# B
boot命令后的完整启动信息:
1 x) }9 m1 {3 l+ ^ ?" h/ i2 l$ z5 ]& |! H- ]
=> boot
y% ]3 e: B2 B+ ?0 XUsing DaVinci-EMAC device+ \; M( n/ Z H, z6 f! G7 [
TFTP from server 192.168.2.192; our IP address is 192.168.2.191+ U; W; W0 d* M# t& }: W& G
Filename 'zImage'.
' Z$ k& b! l. D7 R ALoad address: 0xc0700000 x( A! {9 s* C* W" U) z
Loading: #################################################################
3 U1 X. O5 ?5 Q4 ?9 g$ | #################################################################
q0 B7 `. w, }# r) s# Z/ s ################################* f6 B9 k6 C3 D# V6 D x
288.1 KiB/s+ W# }8 B- i0 y4 E |
done
9 T; m9 E8 H7 y$ `; w; P5 m% v5 yBytes transferred = 2367360 (241f80 hex)
% I& p- t" \$ s' h
: F0 W3 G9 N7 K' {1 k# UStarting kernel ...6 n% ~# E4 I3 t# ~
$ e2 O7 T; P" P( I8 O' DUncompressing Linux... done, booting the kernel.
& ]' K0 O$ K5 H9 M+ ~- gBooting Linux on physical CPU 0x0, L. Z9 J+ M! ^& X Q
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) }6 @" a( s) n; @% W
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
/ l. V2 c* c5 p9 J$ O s4 I% k& NCPU: VIVT data cache, VIVT instruction cache2 \" g1 `4 K3 n" E* n" S: K
Machine: AM18x/OMAP-L138 Hawkboard
% g M0 f) B# @da8xx_rproc_reserve_cma: 'rproc_mem=nn@address' badly specified# _* Q" W) Q/ E% E) _$ G! i3 {
'nn' and 'address' must both be non-zero
1 F4 y' N. o7 C0 F# z" J, f8 \& Fcma: Reserved 16 MiB at 0xc6c00000
' \9 p$ G! t# [ a6 _Memory policy: Data cache writethrough* Y/ v/ T7 u$ @0 B* U& G
DaVinci da850/omap-l138/am18x variant 0x1
3 Q: b$ o- R& G2 M# k3 lBuilt 1 zonelists in Zone order, mobility grouping on. Total pages: 32480
0 T- e+ f: t( U! B$ wKernel 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; n1 Z/ L3 `2 _2 g8 d o9 DPID hash table entries: 512 (order: -1, 2048 bytes)
2 G; E j! R8 e3 U2 {: @7 Q0 bDentry cache hash table entries: 16384 (order: 4, 65536 bytes)3 e: ?1 B* J* t, m$ _
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)4 S3 \1 q/ Q: C/ J
Memory: 106592K/131072K available (4529K kernel code, 308K rwdata, 1500K rodata, 228K init, 162K bss, 8096K reserved, 16384K cma-reserved)
" }( b4 @) I& [0 [( ]Virtual kernel memory layout:5 U0 W9 L( U) P7 S5 q
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
4 e; \, d! F6 T( O( j7 Y% A fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
- o O. ^9 c9 D$ b7 ^. H vmalloc : 0xc8800000 - 0xff800000 ( 880 MB)
0 W: e: w" q# Q1 }% a6 v, i, D0 h' V lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)5 Y/ N- |7 N' j0 x3 }' y
modules : 0xbf000000 - 0xc0000000 ( 16 MB)
9 o/ W8 _4 e/ w- B- z .text : 0xc0008000 - 0xc0474b38 (4531 kB)
1 m2 r* z" n& d# J/ k! r .init : 0xc05ed000 - 0xc0626000 ( 228 kB)
3 d6 E# Z1 }& o2 N$ F .data : 0xc0626000 - 0xc0673110 ( 309 kB)5 V1 q- s: ^- M( I
.bss : 0xc0673110 - 0xc069bc08 ( 163 kB)1 C0 t) {% H J% q/ d: X, r
SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=18 D0 C! Y6 a# E5 y( f2 }" o" }& h
Preemptible hierarchical RCU implementation.' O- f3 [1 f* U. {$ @* U) u
Build-time adjustment of leaf fanout to 32.+ Y$ C+ `- O$ \5 Q7 c
NR_IRQS:245
Y/ b$ \/ K9 A& W. r5 ?clocksource: timer0_1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
- C) {: m/ X4 e9 psched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns! s& ]/ N+ M( ]5 ]
Console: colour dummy device 80x30
8 W, P& |' H L% X3 J# u* |, FCalibrating delay loop... 227.32 BogoMIPS (lpj=1136640)
# d4 `0 f0 f- ~% Ppid_max: default: 32768 minimum: 301$ z, M7 e+ G, g) m1 @7 |
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
& m c! p8 L \& O# d1 ^; xMountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
' _6 d* m0 q# K+ Y- uCPU: Testing write buffer coherency: ok: Y8 c1 l. Y0 q }9 t% K3 @- K9 G
Setting up static identity map for 0xc0008400 - 0xc0008458
. h: N% A7 s4 ]8 ydevtmpfs: initialized' i, P1 ?. g1 L% f- O( Y! V
VFP support v0.3: not present" _8 l" r% u/ y Y, E/ ~% N% h9 |
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns& t* t% R5 D+ f9 r; a' x" h
futex hash table entries: 256 (order: -1, 3072 bytes)5 G" L8 k* v* ~% b7 j( c4 C
pinctrl core: initialized pinctrl subsystem
/ D- K( G/ T5 c# y! U8 xNET: Registered protocol family 16% L' k/ X7 S3 y7 w: j
DMA: preallocated 256 KiB pool for atomic coherent allocations( r. O9 ?7 a% m0 r
cpuidle: using governor ladder
% w! t/ H$ i% o! f5 j! T/ T+ ~cpuidle: using governor menu
( \- K: {! O" r6 l; CEMAC: MII PHY configured
- J4 z/ i3 f$ n4 Q4 s( v/ Q( A. Omux: initialized GPIO3_12
* {2 |3 f+ I% }1 p) z, @mux: Setting register GPIO3_12
- C$ t1 x6 d3 C Qmux: PINMUX7 (0x0000001c) = 0x00110110 -> 0x001181100 i; D2 C& X& I \5 A* _* h/ v
mux: initialized GPIO3_13
5 [- w- g/ q5 Z: p0 ^mux: Setting register GPIO3_13
3 c8 v! ?7 ?# O) ^mux: PINMUX7 (0x0000001c) = 0x00118110 -> 0x001188104 D0 |0 D# @/ C: P: _
mux: initialized GPIO2_4' V" G. O7 _* Q; ^6 ^
mux: Setting register GPIO2_4& d( u, y( p7 V6 q# _2 H
mux: PINMUX6 (0x00000018) = 0x00000000 -> 0x00008000
; W! j: J# M5 i: C+ M/ dmux: initialized GPIO6_13
6 I, j( |' a% h& k/ j- Smux: Setting register GPIO6_13
" `+ a' X# g% Imux: PINMUX13 (0x00000034) = 0x00000000 -> 0x00000800# {, A/ Q: [& x$ F( f5 H6 W) j* C
da8xx_register_rproc: memory not reserved for DSP, not registering DSP device. ?- N0 Q0 k5 s# a/ t
omapl138_hawk_init: dsp/rproc registration failed: -12
4 E$ P0 B& K+ R5 ?/ W- g! v9 Tedma edma.0: Legacy memcpy is enabled, things might not work
2 c; B; t& c! x7 ?5 Z# q4 P. Dedma edma.0: TI EDMA DMA engine driver2 m/ G7 d/ J$ c4 b2 T* c; o1 Q
edma edma.1: Legacy memcpy is enabled, things might not work
/ H5 {# E4 \$ ?. p0 R+ S, Xedma edma.1: TI EDMA DMA engine driver+ Z) I) k3 [; {- |" H
clocksource: Switched to clocksource timer0_10 S$ v3 e" A/ h' b8 G% H
NET: Registered protocol family 2
/ t- z! O0 x, A3 k2 Q; m) ATCP established hash table entries: 1024 (order: 0, 4096 bytes)# s. R" s' e! ?$ u
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)- s, T2 S; W# O, R, B2 L
TCP: Hash tables configured (established 1024 bind 1024)
2 U# @! T& Y5 F9 PUDP hash table entries: 256 (order: 0, 4096 bytes)% G! o- } j7 P) Z& B
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes): S0 }* V4 L$ C t
NET: Registered protocol family 1
& r4 D6 B0 i+ O7 `5 R& qRPC: Registered named UNIX socket transport module.
" Z, \3 r9 G9 I hRPC: Registered udp transport module.
; \! d4 T9 T/ U0 l' X9 v/ B$ RRPC: Registered tcp transport module.) C. K( r" y7 D% L& Z' P- i& g
RPC: Registered tcp NFSv4.1 backchannel transport module. {: G! k' ?. i1 w
workingset: timestamp_bits=14 max_order=15 bucket_order=11 ]0 C; m: V) U
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)0 J6 e! E% ]- ~2 r c4 S1 q4 X
io scheduler noop registered (default)8 {& j) ^6 J+ g. f9 f9 I
Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled C/ ?% s# G, _+ ~; H
serial8250.0: ttyS0 at MMIO 0x1c42000 (irq = 25, base_baud = 14250000) is a 16550A
% p- [3 j. M& f% K3 J' yserial8250.1: ttyS1 at MMIO 0x1d0c000 (irq = 53, base_baud = 8250000) is a 16550A/ p' I( [" P) Y
serial8250.2: ttyS2 at MMIO 0x1d0d000 (irq = 61, base_baud = 8250000) is a 16550A% [8 I* o* `, l1 \; O( {9 F
console [ttyS2] enabled
/ K% Q8 a7 t$ @! e! Lbrd: module loaded6 Q% {& x! a8 X2 `
libphy: Fixed MDIO Bus: probed$ e" Z( u4 ?6 N6 ^* ^ `6 t1 I
davinci_mdio davinci_mdio.0: davinci mdio revision 1.5+ v: u/ m, v2 w6 k$ c k0 m3 l
davinci_mdio davinci_mdio.0: detected phy mask fffffffe
7 ?: U( d5 s( c, ?libphy: davinci_mdio.0: probed
7 h% J H2 l e; P" ddavinci_mdio davinci_mdio.0: phy[0]: device davinci_mdio-0:00, driver SMSC LAN8710/LAN8720" `+ ?. e+ u' X1 l. d
i2c /dev entries driver
+ K$ c/ h2 j: Fdavinci_mmc da830-mmc.0: cannot find GPIO chip davinci_gpio.1
& F) o! N' ?5 Y! Sdavinci_mmc da830-mmc.0: cannot find GPIO chip davinci_gpio.1
/ ]- r. q% q# ^ ~4 M' |davinci_mmc da830-mmc.0: Using DMA, 4-bit mode. E) v0 i3 i; m( m$ R
NET: Registered protocol family 10; y1 m4 k5 S: T% L) v
sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver% u* @% x4 i. q: X
NET: Registered protocol family 17
0 G; ]! N2 T( vconsole [netcon0] enabled
3 X# Y, y1 Q1 ~netconsole: network logging started
: `3 t7 u3 X+ _, e2 C1 q% }davinci_emac davinci_emac.1: using random MAC addr: 0a:ed:9e:24:43:89* z' x1 u. w$ r5 E+ G. ^! _; f
hctosys: unable to open rtc device (rtc0)1 h5 ?1 M. F5 b' l6 g* `
libphy: PHY davinci_mdio-0:07 not found
+ q* Y N5 E: w9 A, s y2 f5 Qnet eth0: could not connect to phy davinci_mdio-0:073 e" I: D8 }: R
IP-Config: Failed to open eth0
7 y/ q. b+ b* c+ t4 |IP-Config: No network devices available
( P$ K; i+ Q/ y. ~. y( n. Wmmc0: host does not support reading read-only switch, assuming write-enable
- n; d( X7 X" m8 h6 Pmmc0: new high speed SDHC card at address 59b44 ~- l2 }! j# @- e
mmcblk0: mmc0:59b4 SS08G 7.41 GiB 6 e" v3 F' A$ C% V! _* D- M+ a& u7 k/ X
mmcblk0: p1 p29 [( G& x( F/ ]5 D! z/ M
7 E: G# n# f ~- u& T! `8 }% M
/* 此处等待了一段时间 */3 n; J3 N& @! e7 d+ l" S2 `
5 o( t( K7 [/ V; l1 `random: fast init done$ j4 I8 u" c, ~9 u
VFS: Unable to mount root fs via NFS, trying floppy.
5 u9 y% [* |! q# Y3 t5 rVFS: Cannot open root device "nfs" or unknown-block(2,0): error -63 Y2 P% B0 r! ?7 [/ Z( Z
Please append a correct "root=" boot option; here are the available partitions:
5 _; w7 W6 f* i+ u* ^0100 32768 ram0 (driver?). x' Y; O7 N- U7 a* `
b300 7764992 mmcblk0 driver: mmcblk' k: V% O" Z9 _0 x
b301 71680 mmcblk0p1 cd4e1bc4-01, P/ K( n8 e; b1 C
b302 7675904 mmcblk0p2 cd4e1bc4-02
& K l- d: c# h, OKernel panic - not syncing: VFS: Unable to mount root fs on unknown-block' L3 \1 k/ W0 |0 w: W: \- s: u
9 B2 E6 [/ x) E9 y
( {: @ t( I" J |
|