|
0. 开发板型号: TL138/6748/1808F-EasyEVM-A2, 开发版启动模式模式为SD卡启动
) g/ r, e/ a+ B- B1 e) D q- e+ s% v+ M2 r9 F
1. 在ubantu16.04(64bit)按照官网安装ti-processor-sdk-linux-omapl138-lcdk-04.00.00.04-Linux-x86-Install.bin; _! j6 [ T- G) i3 |+ B/ K
6 |/ [" D: C7 T8 F( W! |4 `9 _! j2. 把uboot, kernel, filesystem写入SD卡, 拨码开关设置为SD启动, 能够正常启动能够进入嵌入式开发版
3 s* \3 y K# [% b0 I! B6 |+ o; S: [: E# N) s ~! ?! A$ x2 \( X1 Z; M( G" P/ _
3. SD卡启动方式保持不变,但是在uboot中配置为tftp下载内核和nfs挂载方式
* U; Q) g+ B% M6 c, X/ g9 M* i1 m5 j
uboot配置参数如下(由于没有开发板没有自动获取mac地址,所以自己设置为: setenv ethaddr 00:0c:29:bc:7e:9a):
, r% w! q. G8 a
$ Q, l5 H, v# usetenv uboot_macaddr 1) i- ?: [& F! I7 u0 u; J8 y& A
setenv ethaddr 00:0c:29:bc:7e:9a " ~$ M X7 P. M/ F, a+ ~' A# d8 ?
setenv serverip 192.168.2.192* q- @7 ^6 P: ]+ t% x. ]. \
setenv ipaddr 192.168.2.191' D6 |; V7 J! o" V: M& N
( l$ U% w7 u; |2 Nbootcmd=tftp c0700000 zImage;bootz c0700000
% i2 `" p8 p" j3 M( O+ Z# b. `- g5 I4 `7 s& M8 L' G. S
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/nfs7 h7 }& J5 [5 b, r' f
' e4 M2 b( g; P2 |; I4. 能够通过tftp下载并启动内核,但是在挂载NFS文件系统之前报错(错误在下面内核启动信息的最后):
$ z7 @8 c; Z& g4 g' R! M2 o% m1 }4 l- u" V3 F0 r7 Z
boot命令后的完整启动信息:
! B$ v5 _ w' d. j0 x" k ]. v3 S) a& }5 z( j
=> boot( a% G) l5 a k% f' k- Z' c, K+ i
Using DaVinci-EMAC device' {% R: J% t- k
TFTP from server 192.168.2.192; our IP address is 192.168.2.191
* |* X6 G7 N4 R$ F% c* CFilename 'zImage'.. x) _* W$ o* s. G. p
Load address: 0xc0700000- e9 z4 v; i; ]% r+ [5 j
Loading: #################################################################
- Y8 k5 a: \: A; ? #################################################################" E5 `& G {& p
################################
6 @2 L! D1 a Q( j" [8 i0 a 288.1 KiB/s# M+ ]; n, U% J1 K- Q7 r
done7 T4 C3 }" f+ K5 O9 r7 A1 N" {
Bytes transferred = 2367360 (241f80 hex)" A Z+ X9 n( f& x! u
; Z( J* o, ?1 sStarting kernel ..." ]5 p. H$ }. \# l s
, A( d3 _, R5 KUncompressing Linux... done, booting the kernel.
8 u) Y2 \4 K/ T& a: a, _' tBooting Linux on physical CPU 0x07 o8 ]9 v( o# Y1 i! P& C
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/ k5 g$ Y" L, _3 P# e# j- K+ A
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
% ?7 V- o3 A5 K' ~5 rCPU: VIVT data cache, VIVT instruction cache/ \1 z; n0 w3 R' D
Machine: AM18x/OMAP-L138 Hawkboard
) f7 u7 X, [; K3 L' l8 E5 K$ _* ~- rda8xx_rproc_reserve_cma: 'rproc_mem=nn@address' badly specified
! t+ r$ g+ ]3 w6 A" O( v$ V" t 'nn' and 'address' must both be non-zero
6 y5 z' i" _" `. j4 o4 i% Dcma: Reserved 16 MiB at 0xc6c000004 F5 P8 i: M4 I# I' k
Memory policy: Data cache writethrough
- ], H/ W, t1 a0 P$ ]) i: TDaVinci da850/omap-l138/am18x variant 0x18 _; ~8 @, |4 i2 o* h- v1 ~2 U. x5 n( }
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 324806 @5 c- T, ^1 h4 w7 g- B. H
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/nfs4 U! Y. E/ D5 Q6 ]
PID hash table entries: 512 (order: -1, 2048 bytes)3 t% q# M" a! h6 h
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)& q0 [$ r: [$ V6 P+ |9 C+ o% I
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)# d4 Z: I' j$ ?2 X f
Memory: 106592K/131072K available (4529K kernel code, 308K rwdata, 1500K rodata, 228K init, 162K bss, 8096K reserved, 16384K cma-reserved), A1 r# [" ]8 o1 X; x
Virtual kernel memory layout:
4 _. j1 A/ j: t: g [) \ vector : 0xffff0000 - 0xffff1000 ( 4 kB)
! x5 a& M. J* L$ F5 x/ F7 m. b fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
3 v- u2 R; j6 s; A+ \7 k( Y vmalloc : 0xc8800000 - 0xff800000 ( 880 MB)
7 O1 f. ^" t7 b lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)
# }- s9 @+ g$ G# f$ d5 U# d: V modules : 0xbf000000 - 0xc0000000 ( 16 MB)
z" ^' L }7 e s .text : 0xc0008000 - 0xc0474b38 (4531 kB)" A3 T9 O& f! u% ?6 O# H- |
.init : 0xc05ed000 - 0xc0626000 ( 228 kB)
% r/ D J5 I8 a( }# ?4 K/ X3 B .data : 0xc0626000 - 0xc0673110 ( 309 kB)5 y# c3 I; r' k4 J
.bss : 0xc0673110 - 0xc069bc08 ( 163 kB)( ]# q6 s7 f% M2 V) J
SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 T; U( e8 [! x7 @
Preemptible hierarchical RCU implementation.
4 v5 w8 f6 u7 H' u" V Build-time adjustment of leaf fanout to 32.
' N# g- d) P0 T) w( g9 bNR_IRQS:245
4 K C6 o/ }$ Iclocksource: timer0_1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns4 O1 } f% D* a! s( E
sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
& U, n2 w) ?" T$ T2 Y, h& r8 P; yConsole: colour dummy device 80x300 N" P/ e3 z& y, K; O. I
Calibrating delay loop... 227.32 BogoMIPS (lpj=1136640)$ n* T, U' w! }- `* i9 W3 Q
pid_max: default: 32768 minimum: 301
4 L. e, t0 Z3 e$ F" s) bMount-cache hash table entries: 1024 (order: 0, 4096 bytes)
8 c2 P) }7 l' a) k2 C( NMountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes), ^. E$ ~3 e/ w- `2 b
CPU: Testing write buffer coherency: ok
3 s0 E" H* T+ m o6 C2 S" G# ^Setting up static identity map for 0xc0008400 - 0xc0008458
# i) V6 e3 i. o Rdevtmpfs: initialized
! W9 U$ r8 ~/ a M3 `: `0 rVFP support v0.3: not present4 |; O6 b) r( G# n- [
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
) m+ W$ s. n0 kfutex hash table entries: 256 (order: -1, 3072 bytes)& K; x% K9 \2 ~+ `) H
pinctrl core: initialized pinctrl subsystem! t" ^* K6 [; _- T
NET: Registered protocol family 16
$ F% D3 R3 ?3 {: xDMA: preallocated 256 KiB pool for atomic coherent allocations+ x: J$ }9 X( J4 Q
cpuidle: using governor ladder
" @* {8 v7 [$ b4 h8 V- ~5 ^cpuidle: using governor menu ~ A; d) b# U
EMAC: MII PHY configured' E$ S5 u9 A/ m: C( @
mux: initialized GPIO3_127 b; q/ ] z- |
mux: Setting register GPIO3_12# M3 V5 t) L } ]9 S: _
mux: PINMUX7 (0x0000001c) = 0x00110110 -> 0x00118110
8 J5 i, ^. r0 M" Z6 Fmux: initialized GPIO3_13
9 }! |$ l# {/ O" Cmux: Setting register GPIO3_13
6 {( O' S3 O" F) E9 emux: PINMUX7 (0x0000001c) = 0x00118110 -> 0x00118810/ D) ~. } ~: s- @/ ~* m0 a- j
mux: initialized GPIO2_4- Q) c# I& o, `* J; a# X
mux: Setting register GPIO2_4
0 Q, ]& |6 \1 d) S1 U5 V4 {mux: PINMUX6 (0x00000018) = 0x00000000 -> 0x00008000
3 ^7 N8 [/ {8 ^) X, Vmux: initialized GPIO6_13
7 F7 R% o9 _5 \ Mmux: Setting register GPIO6_13
j6 a% v$ y- i. P% g6 s+ k, \6 I5 Rmux: PINMUX13 (0x00000034) = 0x00000000 -> 0x000008008 Z$ r6 z5 p0 \+ `+ l/ |
da8xx_register_rproc: memory not reserved for DSP, not registering DSP device" K' x) b. H9 A' f
omapl138_hawk_init: dsp/rproc registration failed: -124 w8 S, o% W+ h6 I9 A$ H, ?
edma edma.0: Legacy memcpy is enabled, things might not work
2 A% x- t9 F5 Y$ }7 H aedma edma.0: TI EDMA DMA engine driver$ `& z0 h! V* u% G$ j/ z
edma edma.1: Legacy memcpy is enabled, things might not work
- ]# z- L3 T* l) d% W9 F4 pedma edma.1: TI EDMA DMA engine driver, `% M- x1 C7 h* u
clocksource: Switched to clocksource timer0_1
: S( U- Q: U' S" h$ ?8 O( n' NNET: Registered protocol family 21 z+ \1 T; q8 q( j3 A6 v1 }; L" Y4 d/ {
TCP established hash table entries: 1024 (order: 0, 4096 bytes)
- [4 q! N. R0 a! m7 nTCP bind hash table entries: 1024 (order: 0, 4096 bytes)6 ?- s, [+ J% L
TCP: Hash tables configured (established 1024 bind 1024)' ?6 u2 [9 T" j; r0 x8 e3 Z5 \
UDP hash table entries: 256 (order: 0, 4096 bytes)
5 P M7 K) q% x s& W% _) h0 _/ qUDP-Lite hash table entries: 256 (order: 0, 4096 bytes)3 n* ~, e' H% [
NET: Registered protocol family 1
% n1 u# V- f6 ORPC: Registered named UNIX socket transport module.+ e, A4 {/ o: Q9 r
RPC: Registered udp transport module.
3 x; C, f- \* V1 ERPC: Registered tcp transport module.
. o @6 Z5 Y) N( V8 rRPC: Registered tcp NFSv4.1 backchannel transport module.
; w' S: X; r6 K. ~. yworkingset: timestamp_bits=14 max_order=15 bucket_order=10 }- }0 u6 R. f/ V% e/ t
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
! ]% ?- G6 a P2 V( e9 Rio scheduler noop registered (default), b1 K8 G* J" p) V" c0 c5 a1 H# c6 w- ^
Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled5 G3 L7 g( e3 S
serial8250.0: ttyS0 at MMIO 0x1c42000 (irq = 25, base_baud = 14250000) is a 16550A+ Y5 X' S- A) T
serial8250.1: ttyS1 at MMIO 0x1d0c000 (irq = 53, base_baud = 8250000) is a 16550A
* T$ ?! r0 u. ^: M. userial8250.2: ttyS2 at MMIO 0x1d0d000 (irq = 61, base_baud = 8250000) is a 16550A J, M" g/ H K+ |" e9 H
console [ttyS2] enabled% s+ Y$ t0 A" l$ W$ Q+ k: I
brd: module loaded
" y/ Q4 c+ x rlibphy: Fixed MDIO Bus: probed
- }5 e; O0 }- L3 k: l: odavinci_mdio davinci_mdio.0: davinci mdio revision 1.52 t0 Q6 h/ ]/ L, j v
davinci_mdio davinci_mdio.0: detected phy mask fffffffe
+ F( ~, {: _8 v5 v6 Y) Z& @/ x# Vlibphy: davinci_mdio.0: probed8 @3 A+ k5 Z4 W5 C4 P( R
davinci_mdio davinci_mdio.0: phy[0]: device davinci_mdio-0:00, driver SMSC LAN8710/LAN8720
# d2 @3 n* e* h& ]i2c /dev entries driver+ @! N( r, a" }+ n" ?+ a6 ?5 ?2 b) `
davinci_mmc da830-mmc.0: cannot find GPIO chip davinci_gpio.1" t+ P8 N7 A- p* H
davinci_mmc da830-mmc.0: cannot find GPIO chip davinci_gpio.1
. N+ d8 g7 y3 k/ B3 \davinci_mmc da830-mmc.0: Using DMA, 4-bit mode
3 w/ n r, |7 N' ]% xNET: Registered protocol family 103 B. _. k# h7 |+ p! r
sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver6 D: ^0 X* v$ A0 A
NET: Registered protocol family 171 s. _9 g3 s! o/ P( j
console [netcon0] enabled1 V+ R' v r, c3 e5 y2 Z3 d# J
netconsole: network logging started
7 E; E7 `# s K9 o! [8 D5 Qdavinci_emac davinci_emac.1: using random MAC addr: 0a:ed:9e:24:43:89
" }& D9 E- y3 O. Rhctosys: unable to open rtc device (rtc0)
0 P$ v8 [7 t% d* g, w# l( {libphy: PHY davinci_mdio-0:07 not found$ q) Z! Z; L0 u1 g3 @' ` G' w# M8 Q3 K
net eth0: could not connect to phy davinci_mdio-0:07& _1 {+ f" b. J( l+ q
IP-Config: Failed to open eth05 z* m. X% t) O! r) {) _5 N! {$ x
IP-Config: No network devices available
r8 d) s4 g' x; A0 b Ummc0: host does not support reading read-only switch, assuming write-enable
X# f& G4 D/ D4 |mmc0: new high speed SDHC card at address 59b4! [; O. ^( A$ t( C2 i
mmcblk0: mmc0:59b4 SS08G 7.41 GiB
' F9 ^ b& y) v: L6 M mmcblk0: p1 p2
2 J2 x; Z: t5 n
8 f9 c' E7 {% \! i/* 此处等待了一段时间 */) o) k3 p9 i) R& T
. o9 L; D. o( x# L
random: fast init done* y0 |( o8 ]% m5 G1 Q6 A
VFS: Unable to mount root fs via NFS, trying floppy.
3 E7 j6 ]& X" R' g5 Z4 [# [VFS: Cannot open root device "nfs" or unknown-block(2,0): error -6- [5 P* d$ Z% x3 T: S9 U7 ~
Please append a correct "root=" boot option; here are the available partitions:5 @+ }5 i: Q2 \4 S4 y3 {
0100 32768 ram0 (driver?)
( z$ ~& v2 `5 g4 l3 Q. P3 V4 Fb300 7764992 mmcblk0 driver: mmcblk
) y$ T. i( X5 M P' n N: d b301 71680 mmcblk0p1 cd4e1bc4-014 x( s" A) J9 S1 I) r
b302 7675904 mmcblk0p2 cd4e1bc4-02
4 N" R; Z( o4 u @" g+ YKernel panic - not syncing: VFS: Unable to mount root fs on unknown-block
5 ^# d* O8 |5 C8 X6 c, K( X3 R! O3 r4 [, y
8 n2 {2 `' r9 V, V |
|