|
|
0. 开发板型号: TL138/6748/1808F-EasyEVM-A2, 开发版启动模式模式为SD卡启动
! _& }. L% B3 s' U$ L7 E) s+ r6 p* [
1. 在ubantu16.04(64bit)按照官网安装ti-processor-sdk-linux-omapl138-lcdk-04.00.00.04-Linux-x86-Install.bin0 \8 ?; }8 W9 z# W$ N, B/ S# _
4 R/ j5 r+ [* y6 V0 r$ [
2. 把uboot, kernel, filesystem写入SD卡, 拨码开关设置为SD启动, 能够正常启动能够进入嵌入式开发版
1 |$ z$ H. N# ?! U, @( D8 `, m, ]; d7 M$ O5 _( ~. o- N
3. SD卡启动方式保持不变,但是在uboot中配置为tftp下载内核和nfs挂载方式4 T$ F; ~ J5 C$ Z) { E. c
' m1 [! p9 w" n0 A: {uboot配置参数如下(由于没有开发板没有自动获取mac地址,所以自己设置为: setenv ethaddr 00:0c:29:bc:7e:9a):# J8 `7 S% y7 B+ p+ O8 A
+ ?6 p3 [* ]; y! w0 Isetenv uboot_macaddr 18 \ I/ g/ \7 V4 t
setenv ethaddr 00:0c:29:bc:7e:9a & m4 L m5 ]) N1 K6 B
setenv serverip 192.168.2.192" ~- a Z$ o8 Y4 z
setenv ipaddr 192.168.2.191
. H4 n0 h0 o p) C" g
! r, Z/ }" m( j5 b% ], Ebootcmd=tftp c0700000 zImage;bootz c0700000
( F) ~$ q1 X/ B2 ^& M) {7 i( d$ b3 v: A/ @- m
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
5 G/ Q- V ]/ K2 R
& m( C q) V$ N6 |" h$ K- p% W4. 能够通过tftp下载并启动内核,但是在挂载NFS文件系统之前报错(错误在下面内核启动信息的最后):
/ z+ [% ~* E- ^4 J/ V! v
K: N7 }) d" H2 aboot命令后的完整启动信息:
9 o$ Z3 p! Q# @
9 z r; ^3 @+ E1 {( I" f=> boot
3 @! f9 v7 [ n% B7 P' m& KUsing DaVinci-EMAC device) S2 k6 t9 d9 Q7 z. V( b% Y
TFTP from server 192.168.2.192; our IP address is 192.168.2.191
; D. h: d" |# O9 ZFilename 'zImage'., v1 {' H4 X0 U0 g& E4 J2 [
Load address: 0xc0700000$ a0 h( e/ _6 s/ `; _7 X9 R
Loading: #################################################################
3 U4 g- m% W8 j6 f- [5 m" R #################################################################
& e9 |' d0 R* S* f3 h0 z ################################
* y+ d7 T1 G$ j! e4 C 288.1 KiB/s
( Z/ N% f6 r. k2 ^* vdone
) H& K2 t" B- UBytes transferred = 2367360 (241f80 hex)
5 g( o3 B o0 e& V
3 Y) [0 S& _0 F% G6 Y# oStarting kernel ...
" k: p( [/ b% V: H+ L; {: R% R, B* |
; ?, i! d. i3 v$ \# T9 WUncompressing Linux... done, booting the kernel.1 W; x! h+ ]1 ]3 _7 h2 o
Booting Linux on physical CPU 0x0
! l% B6 A. ~- U8 b0 pLinux 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 20179 y0 ~2 f4 w% l- _9 k! N
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f. }( n* E, a" T3 a& [
CPU: VIVT data cache, VIVT instruction cache
9 w% |: k# J! Q6 d s8 \Machine: AM18x/OMAP-L138 Hawkboard( _9 g1 s9 k3 w9 c8 ~* U
da8xx_rproc_reserve_cma: 'rproc_mem=nn@address' badly specified1 J4 q" W$ B8 S7 D- w
'nn' and 'address' must both be non-zero7 D3 o' L: w$ L- P
cma: Reserved 16 MiB at 0xc6c00000
8 t+ e, R9 S7 N O& I7 j- dMemory policy: Data cache writethrough
, i. I; @6 t: a7 D0 @DaVinci da850/omap-l138/am18x variant 0x1
4 n! g3 r1 i0 b& x4 w( G3 ?+ WBuilt 1 zonelists in Zone order, mobility grouping on. Total pages: 32480
7 a; V% z6 D7 S) s* c; K7 g, N8 eKernel 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* B7 x7 S% w0 j6 s/ e4 J) [
PID hash table entries: 512 (order: -1, 2048 bytes)1 C8 ]' A5 k; Z& K1 g
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)6 g5 ^( M7 M& W
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
2 }: A( G' ^; i8 Z+ YMemory: 106592K/131072K available (4529K kernel code, 308K rwdata, 1500K rodata, 228K init, 162K bss, 8096K reserved, 16384K cma-reserved)
5 p# J- k. ^- n% B/ t; J* GVirtual kernel memory layout:
/ J v- ]0 _/ t0 z5 v vector : 0xffff0000 - 0xffff1000 ( 4 kB)
* S! @- i" z# t% b6 `8 Z# s fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
l: I3 P; {* K+ \) |& F# k6 K7 m vmalloc : 0xc8800000 - 0xff800000 ( 880 MB) F9 p' }' i& p4 c
lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)
# @% T8 \, x. c7 n6 |' Y modules : 0xbf000000 - 0xc0000000 ( 16 MB)
4 w5 X; C0 ^ n* ] .text : 0xc0008000 - 0xc0474b38 (4531 kB)9 Q, ^( ~% Z9 A |, L# j! u
.init : 0xc05ed000 - 0xc0626000 ( 228 kB)7 f3 o k: H8 q @5 {9 B
.data : 0xc0626000 - 0xc0673110 ( 309 kB), @' ]8 ]7 }) S
.bss : 0xc0673110 - 0xc069bc08 ( 163 kB)' b' ~$ O% q/ ~3 }% ^7 N
SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1$ |# j% w* @1 j7 i
Preemptible hierarchical RCU implementation.
8 z3 Z2 d* s( L0 l# {. Y8 N/ E Build-time adjustment of leaf fanout to 32.
* F m4 u, T. ]NR_IRQS:245 J3 d) C* T1 X/ l B' t" o. Z5 p6 H
clocksource: timer0_1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
5 _# X8 A; Y2 Psched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns/ ]. P7 i; Y4 l1 u- a
Console: colour dummy device 80x30( v- {8 w) H1 G2 |3 S, Z# A
Calibrating delay loop... 227.32 BogoMIPS (lpj=1136640)2 ^; x. X n I$ @
pid_max: default: 32768 minimum: 3019 |5 c7 v1 }* N! m! p
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)% u7 v4 q; Z5 w4 I M$ |, ^
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
1 ?" N$ {* l5 e- H8 D: H2 YCPU: Testing write buffer coherency: ok
& C* v/ }; r) n8 Y, N- ]7 BSetting up static identity map for 0xc0008400 - 0xc0008458
9 @; h% {: q' P. hdevtmpfs: initialized
" a8 x9 V9 b0 ^# A" h7 AVFP support v0.3: not present, t9 e2 s0 H$ b, v( A0 p9 {
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
* f; n2 B8 |* P; L* p8 t+ `futex hash table entries: 256 (order: -1, 3072 bytes)6 r' |) Z( `9 j) M( u* X
pinctrl core: initialized pinctrl subsystem8 g% h9 f, `% n$ s9 n7 g
NET: Registered protocol family 163 I" p7 I2 `: b# @6 B0 Z
DMA: preallocated 256 KiB pool for atomic coherent allocations
) v" f8 \) @; Z% L6 n [cpuidle: using governor ladder& \$ N% ?5 w8 g2 |
cpuidle: using governor menu+ f9 J ^$ y6 @+ l
EMAC: MII PHY configured e) |/ d) O# U3 T% ~( S% P
mux: initialized GPIO3_128 f8 K6 M8 j& N* W0 B2 S! W
mux: Setting register GPIO3_12
, q( i) z1 v$ J5 z% Dmux: PINMUX7 (0x0000001c) = 0x00110110 -> 0x00118110
# k0 O# A$ W$ D: ^( Amux: initialized GPIO3_13
6 s$ _7 g% `3 C9 c- h7 @. d- H- emux: Setting register GPIO3_138 v8 z! Y+ c( m0 T! ]2 i5 U5 }
mux: PINMUX7 (0x0000001c) = 0x00118110 -> 0x00118810
' F" ~) |" V$ B, Hmux: initialized GPIO2_4% w$ _/ }' S# ]8 v' c( w6 i
mux: Setting register GPIO2_4; p1 D" v8 g& \, h" \* K9 y" ]
mux: PINMUX6 (0x00000018) = 0x00000000 -> 0x00008000! q2 ^ r6 O9 c1 x1 t
mux: initialized GPIO6_13
3 ]9 s/ f6 i& Fmux: Setting register GPIO6_13+ C' r* P4 ?" V6 l" }+ \6 a, M* d
mux: PINMUX13 (0x00000034) = 0x00000000 -> 0x00000800! w& E5 _5 e+ c; ]! e) o4 c& V
da8xx_register_rproc: memory not reserved for DSP, not registering DSP device
: h" ]) h) d; d1 eomapl138_hawk_init: dsp/rproc registration failed: -12
d1 d* D b$ _- Z E0 W) Qedma edma.0: Legacy memcpy is enabled, things might not work
1 s* r; Y% c# \# ~1 `edma edma.0: TI EDMA DMA engine driver
: V& p s# Q T) vedma edma.1: Legacy memcpy is enabled, things might not work
" I2 N( @# D7 d1 a7 T) Iedma edma.1: TI EDMA DMA engine driver5 L" G* D( [7 P& V( I a9 t
clocksource: Switched to clocksource timer0_1
- d. W2 d! l7 N/ K' t! PNET: Registered protocol family 20 z0 A" i5 w& N) B
TCP established hash table entries: 1024 (order: 0, 4096 bytes)
/ I z% S% S* s) s$ [3 m4 bTCP bind hash table entries: 1024 (order: 0, 4096 bytes)
3 d7 C& s* ]3 ?; CTCP: Hash tables configured (established 1024 bind 1024)
& Z/ S6 S6 `# C2 T* |! y+ F# \UDP hash table entries: 256 (order: 0, 4096 bytes)3 l0 I2 X# q& b( Z4 Y/ }- i2 J
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)4 c4 E. h! x2 Y! A5 [4 }4 J
NET: Registered protocol family 1- E+ }! ?& g4 j- I
RPC: Registered named UNIX socket transport module.
9 I9 B$ I$ V2 f- {3 I- {7 ~RPC: Registered udp transport module.
9 A* U! e5 a5 ~/ i/ A; ?RPC: Registered tcp transport module./ y: n( X; Q! N" p& P. J9 z& O+ K
RPC: Registered tcp NFSv4.1 backchannel transport module.
# b4 C4 o1 D9 O' |6 Hworkingset: timestamp_bits=14 max_order=15 bucket_order=1, g) ?0 }* e0 W' ^0 D# z5 l
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
# l6 V- B }4 A, H$ t9 _0 o& [io scheduler noop registered (default)8 b$ m8 c; f- f. T1 b2 H+ g" K
Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled p5 @ n( i8 O9 w! w
serial8250.0: ttyS0 at MMIO 0x1c42000 (irq = 25, base_baud = 14250000) is a 16550A; ?! ]$ I& _' E4 F
serial8250.1: ttyS1 at MMIO 0x1d0c000 (irq = 53, base_baud = 8250000) is a 16550A1 A3 J# e5 U- M# t3 D1 L
serial8250.2: ttyS2 at MMIO 0x1d0d000 (irq = 61, base_baud = 8250000) is a 16550A
v5 a1 L! ^; Rconsole [ttyS2] enabled( A$ F& H: n/ N% ]% e' k
brd: module loaded
/ i8 o) B! Z9 z& `. b" r/ Hlibphy: Fixed MDIO Bus: probed. p' Z4 O; s4 ^
davinci_mdio davinci_mdio.0: davinci mdio revision 1.5
9 t- T1 V* B; C% k& Idavinci_mdio davinci_mdio.0: detected phy mask fffffffe0 y8 e' v( i5 u! p j- ?! N5 B
libphy: davinci_mdio.0: probed
' U# O/ P9 Z9 Y. \davinci_mdio davinci_mdio.0: phy[0]: device davinci_mdio-0:00, driver SMSC LAN8710/LAN8720" `: r: V* y+ l' Z$ |. o( D
i2c /dev entries driver) z( z7 w. s& G2 e/ p
davinci_mmc da830-mmc.0: cannot find GPIO chip davinci_gpio.11 W+ X! K# C. |. D) i9 F, a
davinci_mmc da830-mmc.0: cannot find GPIO chip davinci_gpio.1
+ }# I4 ]" W' G# n. cdavinci_mmc da830-mmc.0: Using DMA, 4-bit mode$ I( W1 E% K& X! L E
NET: Registered protocol family 10
0 S/ ~. {& _* @, w! e: gsit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
% [) j3 {) G- c4 _; f: o5 fNET: Registered protocol family 17
3 O- t/ B; k6 M. _0 l* Uconsole [netcon0] enabled
, C1 y- ~% w2 g5 Y: A4 [" G }5 znetconsole: network logging started
6 D; h& d( l. F/ x6 F$ Mdavinci_emac davinci_emac.1: using random MAC addr: 0a:ed:9e:24:43:895 o; w; k6 z) F
hctosys: unable to open rtc device (rtc0)
6 c6 S9 ~# y; dlibphy: PHY davinci_mdio-0:07 not found
# h3 Q- U& D6 U8 J; m/ M* ^net eth0: could not connect to phy davinci_mdio-0:07) {& a' ^ [6 M* b3 p
IP-Config: Failed to open eth0
f3 C6 r( Q" P+ gIP-Config: No network devices available
7 l2 S; {" `9 y+ Tmmc0: host does not support reading read-only switch, assuming write-enable8 F2 B$ D1 W4 \, g& @% } r9 J3 r+ {
mmc0: new high speed SDHC card at address 59b4
6 ^0 p1 N [! U, bmmcblk0: mmc0:59b4 SS08G 7.41 GiB
2 k1 c) w$ k, w. v5 O mmcblk0: p1 p2
- K' K3 j; Y' M; [% D
$ I! v' U$ w6 v: f/* 此处等待了一段时间 */- [5 t/ d3 l6 s
5 t, N. C1 }* b; i0 M8 |6 l) }
random: fast init done: r% j6 f: C5 Z& O6 r B
VFS: Unable to mount root fs via NFS, trying floppy.
1 P7 ~0 T. |: s0 HVFS: Cannot open root device "nfs" or unknown-block(2,0): error -62 P, M/ s9 k) X m6 a/ a" d
Please append a correct "root=" boot option; here are the available partitions:1 Q4 M% { S1 }- V+ Y
0100 32768 ram0 (driver?)
( ^4 |- x2 Z- Yb300 7764992 mmcblk0 driver: mmcblk* B) R8 k2 ~0 N4 J- m# M- ^
b301 71680 mmcblk0p1 cd4e1bc4-01
" u1 z( J" v5 _* _- M b302 7675904 mmcblk0p2 cd4e1bc4-02 " n: i/ O) z, g
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block4 P% J' D* w3 b2 p+ m# Q
. F" |! Q ]; e) u& X7 J
- ?5 S2 s% e! I6 H* s* e |
|