|
|
0. 开发板型号: TL138/6748/1808F-EasyEVM-A2, 开发版启动模式模式为SD卡启动
7 h/ ~- `9 J: X7 D- i0 m' m' }# t+ c( P0 p1 }+ y
1. 在ubantu16.04(64bit)按照官网安装ti-processor-sdk-linux-omapl138-lcdk-04.00.00.04-Linux-x86-Install.bin
/ c" X4 E; j* K- E" ]% x
$ A5 }5 @4 S1 s8 T- M( s2. 把uboot, kernel, filesystem写入SD卡, 拨码开关设置为SD启动, 能够正常启动能够进入嵌入式开发版
2 u, k2 O# E4 K) c: \/ ^3 f' e( @8 G, H- k( w& B
3. SD卡启动方式保持不变,但是在uboot中配置为tftp下载内核和nfs挂载方式
/ W ^6 Q0 m8 ?/ u# O. U+ b* m" v0 u8 H& q% U- `
uboot配置参数如下(由于没有开发板没有自动获取mac地址,所以自己设置为: setenv ethaddr 00:0c:29:bc:7e:9a):' J+ r! @- e- e# k. L' [9 l
8 ?3 m) b6 f, F5 ?4 H% g& r
setenv uboot_macaddr 1
3 `- t* s: g$ G; |9 O( ssetenv ethaddr 00:0c:29:bc:7e:9a
1 x% ^; {# Y, `1 L4 Msetenv serverip 192.168.2.192* m l' I1 V+ q0 V6 o% y2 v8 g
setenv ipaddr 192.168.2.1911 K: i U6 w9 r4 p
- p1 S" [' j& _0 G: r! Rbootcmd=tftp c0700000 zImage;bootz c0700000
/ ]3 |# ]$ y8 ^- \* C) @- X, n+ F5 E- |; w. P! M+ I
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
9 }% b9 ~0 v9 o% Q0 s# k' |$ l$ t0 \. I: \
4. 能够通过tftp下载并启动内核,但是在挂载NFS文件系统之前报错(错误在下面内核启动信息的最后):
& t8 W% {5 A" e4 F, F7 Y: h \: }& u, a
boot命令后的完整启动信息:8 B; a' Y! D$ j# m' s- k# O
5 `( T# x: q* }, Q; b/ e=> boot. c$ h/ T6 T% w* U! d/ k
Using DaVinci-EMAC device
) `/ ]6 d. r0 x9 i5 OTFTP from server 192.168.2.192; our IP address is 192.168.2.1918 F* L5 c# z3 B/ ^: r' V6 i+ M
Filename 'zImage'.( d e% n8 V7 E/ d* W5 N# s! M' g6 L
Load address: 0xc0700000
2 A. I5 ]1 i/ q0 y7 m$ ILoading: #################################################################/ k, E. Y/ X2 i' f) ?+ y! v3 C
#################################################################* |2 w, }, `3 b8 r
################################
3 B/ A9 [8 D F( S; y6 Y 288.1 KiB/s
4 |' i1 {. e* \! B7 n) ]done5 X( S: d. n! S Z$ @* i$ h+ k2 `
Bytes transferred = 2367360 (241f80 hex)* d: z8 h7 P" [8 B6 e, s
& X9 F; ?' |9 ^9 R) L- hStarting kernel ...0 I" n7 _) k2 x9 F/ z' V# v
6 R4 \1 H" z0 T, {* x( l- D0 q& g8 S, x
Uncompressing Linux... done, booting the kernel.
! ?! S+ Y- D9 K' {. z& O. MBooting Linux on physical CPU 0x00 m( D& A; G4 Y: u2 I8 M0 g( A2 f0 ~
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 20175 ?: Y2 ^* D. H L& K0 Y
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
* l. v2 A7 o5 g9 ]CPU: VIVT data cache, VIVT instruction cache
( I+ s8 o" n1 {: J# k" }1 t9 @Machine: AM18x/OMAP-L138 Hawkboard
]; n& q7 c6 M4 fda8xx_rproc_reserve_cma: 'rproc_mem=nn@address' badly specified
$ [& S& p1 V: B b j9 b 'nn' and 'address' must both be non-zero8 ]& @# D2 w5 s
cma: Reserved 16 MiB at 0xc6c00000. T' s" Q1 `0 y' y4 v' L# u0 ?
Memory policy: Data cache writethrough
6 J' F/ @" L- {# fDaVinci da850/omap-l138/am18x variant 0x1
( d* c: P1 E, T, M( s5 D1 xBuilt 1 zonelists in Zone order, mobility grouping on. Total pages: 32480/ o! \& n, e d& Z3 X" A6 Q- }& m
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
6 t# B) N' y4 LPID hash table entries: 512 (order: -1, 2048 bytes)
' Q9 ~9 a$ ]$ W8 v, @, WDentry cache hash table entries: 16384 (order: 4, 65536 bytes) Y: S: V) E4 F' ?" }' D
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
4 H$ C' `9 d2 H3 q" |. \/ ~Memory: 106592K/131072K available (4529K kernel code, 308K rwdata, 1500K rodata, 228K init, 162K bss, 8096K reserved, 16384K cma-reserved)& @5 J% d8 K2 T; T- A. D) [+ G
Virtual kernel memory layout:
) I/ X( ? l! t6 i vector : 0xffff0000 - 0xffff1000 ( 4 kB)
$ G# v# x) u3 ~- |8 S# o/ b fixmap : 0xffc00000 - 0xfff00000 (3072 kB). E7 }; ^) X' h4 Y& B
vmalloc : 0xc8800000 - 0xff800000 ( 880 MB)
9 I2 p1 m& X+ I+ p6 {3 C3 u lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)+ L- s1 s0 F) a- b
modules : 0xbf000000 - 0xc0000000 ( 16 MB)" F2 ^ ^( |) f+ U9 {( |- Y
.text : 0xc0008000 - 0xc0474b38 (4531 kB)5 x/ Q9 v6 l, p) U9 J3 g
.init : 0xc05ed000 - 0xc0626000 ( 228 kB)+ ^( B/ E' Y, {# |& _: n% Q; {
.data : 0xc0626000 - 0xc0673110 ( 309 kB)
% i) {7 ]4 ~( U, Z( Z# e .bss : 0xc0673110 - 0xc069bc08 ( 163 kB)
4 r+ ]1 I0 u* rSLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1& m) _; Q1 T1 [: Q+ |& J
Preemptible hierarchical RCU implementation.- r0 L- f! Q' p6 H1 r
Build-time adjustment of leaf fanout to 32.
( {; B* Z/ F/ x3 o% `7 b7 k+ XNR_IRQS:2456 I% P, P+ r7 y! P6 h" `( o
clocksource: timer0_1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns6 y5 m- e: H8 t' y9 \
sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns0 }+ Z- U# V( J5 p
Console: colour dummy device 80x30
( |( I$ W: z& G) E2 ~! C5 W$ |& O$ gCalibrating delay loop... 227.32 BogoMIPS (lpj=1136640)+ W- i. g2 O1 S$ b4 `
pid_max: default: 32768 minimum: 301+ t S* c4 Q/ l8 L0 z
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)2 z- m: G9 V$ J0 h9 {3 G
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
% K4 v* W) E' M/ L! G2 `) {1 cCPU: Testing write buffer coherency: ok% u; x' {0 g% t% E) x
Setting up static identity map for 0xc0008400 - 0xc0008458
4 {/ i! I" ]& ^3 Mdevtmpfs: initialized
p& Z' k- @) ^8 b$ g9 ?" yVFP support v0.3: not present1 b$ p$ h. s* [0 F& f
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns# A; E+ n) u/ [. [* }& b
futex hash table entries: 256 (order: -1, 3072 bytes)0 X, k1 ~% C2 C0 D) l( k
pinctrl core: initialized pinctrl subsystem
" G/ H9 T8 N, Y8 M1 gNET: Registered protocol family 16
/ h* i' D" @; } i8 NDMA: preallocated 256 KiB pool for atomic coherent allocations
+ s% P. J; V: _# h& f! ^$ y4 Qcpuidle: using governor ladder
1 ^2 W/ O- [* P! xcpuidle: using governor menu# r6 Y) J6 C0 F0 W
EMAC: MII PHY configured r- s& Y( g& j; I
mux: initialized GPIO3_12( m+ Y: Q; _, `8 i6 j: z5 F4 n
mux: Setting register GPIO3_12
. U# f2 r3 e1 H7 I4 H+ k7 Bmux: PINMUX7 (0x0000001c) = 0x00110110 -> 0x00118110! Y6 R! V5 o9 b! f {
mux: initialized GPIO3_137 D; O! h2 Y+ Y
mux: Setting register GPIO3_13% e4 ^# Y6 k; S0 ]$ e. [: ~% X
mux: PINMUX7 (0x0000001c) = 0x00118110 -> 0x001188101 _5 Q( M5 W; N/ [$ p6 T: d4 w$ g( S
mux: initialized GPIO2_4
( X1 m& q- d: B2 L% O. C5 T* i; Z, Emux: Setting register GPIO2_4. W- F' q1 \6 C" B0 u* L% u
mux: PINMUX6 (0x00000018) = 0x00000000 -> 0x00008000. V* I( o a Q- x6 ^2 \. T
mux: initialized GPIO6_13, i+ {* W+ A4 {% E; o
mux: Setting register GPIO6_13
1 j2 f$ A1 M# G4 N& f; B0 pmux: PINMUX13 (0x00000034) = 0x00000000 -> 0x000008001 v, p- ^4 O3 S0 p) K7 @
da8xx_register_rproc: memory not reserved for DSP, not registering DSP device/ [* v$ E r9 g6 c: O- y# f
omapl138_hawk_init: dsp/rproc registration failed: -12- T& i9 V0 e1 x6 O: v" j
edma edma.0: Legacy memcpy is enabled, things might not work- h) n# u y: [! a
edma edma.0: TI EDMA DMA engine driver$ S- \- _7 l9 b! ~3 R" L; O
edma edma.1: Legacy memcpy is enabled, things might not work
$ `1 f7 h. v" }3 ^0 d, d* yedma edma.1: TI EDMA DMA engine driver- q+ [3 Z% f1 s& A
clocksource: Switched to clocksource timer0_1# t5 p" S4 @- ~+ P. {. O9 i
NET: Registered protocol family 22 ]1 u# T# J7 w7 r# \) c2 L* r- V
TCP established hash table entries: 1024 (order: 0, 4096 bytes)
# E" b( S. |; uTCP bind hash table entries: 1024 (order: 0, 4096 bytes)
3 m0 J7 e6 L5 u6 ]6 ?TCP: Hash tables configured (established 1024 bind 1024)% k3 y1 H( O6 Q6 L
UDP hash table entries: 256 (order: 0, 4096 bytes)
! y9 M- i2 l. o: hUDP-Lite hash table entries: 256 (order: 0, 4096 bytes)( r% ^) u8 A T w
NET: Registered protocol family 1& \$ P$ `1 ^. z8 D; w- x
RPC: Registered named UNIX socket transport module.) O" c( `+ p- m' x B6 q
RPC: Registered udp transport module.8 ^0 k6 y; D; h
RPC: Registered tcp transport module.
5 V; ]2 Y9 U5 \* y j+ }+ _0 BRPC: Registered tcp NFSv4.1 backchannel transport module.
0 C0 g8 e) H3 n# h3 F$ wworkingset: timestamp_bits=14 max_order=15 bucket_order=1
M) T P* S; b. v: X$ E. N# o! _- ~Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)8 O9 A- r9 B" Z
io scheduler noop registered (default)
: E% Y* K* {5 N; |0 ~# @Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled& b8 l: I& f6 l4 \
serial8250.0: ttyS0 at MMIO 0x1c42000 (irq = 25, base_baud = 14250000) is a 16550A. u0 n) j& I% U; M0 q0 f
serial8250.1: ttyS1 at MMIO 0x1d0c000 (irq = 53, base_baud = 8250000) is a 16550A
5 I0 n" R" a3 J6 W0 X( K5 sserial8250.2: ttyS2 at MMIO 0x1d0d000 (irq = 61, base_baud = 8250000) is a 16550A
5 u1 E1 f; L+ @console [ttyS2] enabled( w8 Z4 u3 b& F& R
brd: module loaded
% @0 a, j: o1 q5 Slibphy: Fixed MDIO Bus: probed1 {8 J" P. @3 }) T, `1 F8 [
davinci_mdio davinci_mdio.0: davinci mdio revision 1.5
; P; H8 l8 k- S B: mdavinci_mdio davinci_mdio.0: detected phy mask fffffffe
, [/ D: s7 A- C, klibphy: davinci_mdio.0: probed1 T+ i/ q1 n1 T. H( V, D8 W! e
davinci_mdio davinci_mdio.0: phy[0]: device davinci_mdio-0:00, driver SMSC LAN8710/LAN8720: f) Q% y% q) T3 }& i/ S
i2c /dev entries driver
4 G" f, ]3 C6 w. zdavinci_mmc da830-mmc.0: cannot find GPIO chip davinci_gpio.15 V: [; p f9 S5 d ^
davinci_mmc da830-mmc.0: cannot find GPIO chip davinci_gpio.1! e5 D( n6 O! h& E3 R3 g
davinci_mmc da830-mmc.0: Using DMA, 4-bit mode
2 V' d' h: }; T$ xNET: Registered protocol family 10" _! C$ Q/ ~ U7 k$ Z4 m6 k
sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver9 K$ }: i( Q5 Z
NET: Registered protocol family 177 k1 R1 @0 T m. c% S& q
console [netcon0] enabled
1 T4 ~) Q9 `" w* a; F4 ?) vnetconsole: network logging started
5 `" q2 ]8 D& a$ Rdavinci_emac davinci_emac.1: using random MAC addr: 0a:ed:9e:24:43:89+ J8 E4 s! H! g) y, R1 \6 `+ B
hctosys: unable to open rtc device (rtc0)" b" z2 F, l) l
libphy: PHY davinci_mdio-0:07 not found7 l( S2 N. e, v. [
net eth0: could not connect to phy davinci_mdio-0:071 O' D; a, Z, K$ i$ Y- M8 t5 e
IP-Config: Failed to open eth0
8 i6 h: U9 X3 e& lIP-Config: No network devices available7 i$ ?4 } d: l% X! p9 h5 P- @
mmc0: host does not support reading read-only switch, assuming write-enable
% z. i( ?; n0 H6 Emmc0: new high speed SDHC card at address 59b4
: n! c3 M; K3 r9 }, m7 F1 q# kmmcblk0: mmc0:59b4 SS08G 7.41 GiB / g8 E" q5 Z( r [4 y j
mmcblk0: p1 p22 F, k( S; t# F% n' A5 S4 i
' M6 D k* r) y, d+ c7 B0 u# f/* 此处等待了一段时间 */
- U: r3 X( r, q, `' |0 m
( H) j9 B3 }6 {random: fast init done
) [) e, r1 L# P5 W5 \VFS: Unable to mount root fs via NFS, trying floppy.. i% \6 ~: a/ N& `1 O
VFS: Cannot open root device "nfs" or unknown-block(2,0): error -6
/ ^7 l4 k) X: g, h2 kPlease append a correct "root=" boot option; here are the available partitions:
& S" B& d8 `6 ~8 T0100 32768 ram0 (driver?)
) h) N9 D9 `+ s0 s$ V2 Mb300 7764992 mmcblk0 driver: mmcblk
% r2 E5 d+ E9 W+ g b301 71680 mmcblk0p1 cd4e1bc4-01
9 U! h# t( T: x, d b302 7675904 mmcblk0p2 cd4e1bc4-02 : X" B5 O+ p; Z% ~/ D
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block1 H9 f7 R5 l$ K9 o9 ?$ w% ?7 M8 G2 ~
: F6 @, r! ^# [
! T+ J# w6 O, E7 O2 Q& N. R$ C |
|