|
|
0. 开发板型号: TL138/6748/1808F-EasyEVM-A2, 开发版启动模式模式为SD卡启动
# i5 J+ d. ^1 {" c4 i- E' E- H b& T+ c' L
1. 在ubantu16.04(64bit)按照官网安装ti-processor-sdk-linux-omapl138-lcdk-04.00.00.04-Linux-x86-Install.bin9 a9 Q" K4 N+ B9 L
# N: w S. a( }: _' L
2. 把uboot, kernel, filesystem写入SD卡, 拨码开关设置为SD启动, 能够正常启动能够进入嵌入式开发版
5 B/ B4 {$ r7 Z( J2 ^
! L0 a; c. |. h' P" e! O; t3. SD卡启动方式保持不变,但是在uboot中配置为tftp下载内核和nfs挂载方式
- V8 ~: L" h* v7 b+ ]8 s$ I f# h/ i" r: P2 Z a2 Q
uboot配置参数如下(由于没有开发板没有自动获取mac地址,所以自己设置为: setenv ethaddr 00:0c:29:bc:7e:9a):9 g" s0 f4 u& J9 h3 a
6 y! d+ w( x M& l$ ^setenv uboot_macaddr 1
* h- @1 y! W' i' W2 ^setenv ethaddr 00:0c:29:bc:7e:9a
- ?5 l* Z8 a3 c* Msetenv serverip 192.168.2.192. q& X2 ]# j4 B v H/ o. ]6 K
setenv ipaddr 192.168.2.1918 ~5 H4 A7 M; k- m0 ~
. f) d8 o7 Q! Fbootcmd=tftp c0700000 zImage;bootz c0700000
) q1 ~% U& N: P# b; V1 F( L6 K
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
' n( n J0 Y6 d4 g8 a$ q3 R8 y; P' `8 y. u
4. 能够通过tftp下载并启动内核,但是在挂载NFS文件系统之前报错(错误在下面内核启动信息的最后):
1 ]4 F9 K1 l+ }# o- P1 [4 x# u. h3 u" X- Y: B: F6 W2 i$ ` `
boot命令后的完整启动信息:
0 m1 U9 D7 l! J) d7 {$ H3 _+ \) t9 e$ R& n. a
=> boot
5 ]6 h6 K2 J* M, S% h K+ NUsing DaVinci-EMAC device
8 D! ~ O3 P$ GTFTP from server 192.168.2.192; our IP address is 192.168.2.191/ N' e0 `: E/ v2 s2 B# d, p
Filename 'zImage'.+ N& S- `1 G2 U/ u2 h, T; F
Load address: 0xc0700000
% n) x0 \% M* G. }Loading: #################################################################
0 [1 y" _% @2 J5 d1 R7 ` #################################################################0 z* C2 `/ J3 c6 @
################################
6 G( G6 Q! [3 Q, v6 N8 d/ n, o/ u 288.1 KiB/s3 k$ e. ^- ]3 C
done
) D/ k3 ]& |) ]+ f- TBytes transferred = 2367360 (241f80 hex)
3 e' ]; I4 s/ b* U' t" g& y% e' T( ~% K5 M
Starting kernel ...5 u! `" |7 K' m* H1 e
. m% N: e# S& E3 QUncompressing Linux... done, booting the kernel.
! e) r* x; S% ABooting Linux on physical CPU 0x0
. f1 W' J- M; v/ X& S$ [, N( FLinux 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) v5 @; @3 X% `4 q: f& _1 ^( r( r
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
* B) @/ y5 S8 A! e- hCPU: VIVT data cache, VIVT instruction cache
4 \: J( c1 Q* E5 m2 G. i- | ?Machine: AM18x/OMAP-L138 Hawkboard, T4 S5 F7 G ^% O1 r
da8xx_rproc_reserve_cma: 'rproc_mem=nn@address' badly specified$ R6 p+ l7 e& }; z3 A* Q( [" c
'nn' and 'address' must both be non-zero
( T/ W$ K4 I+ y. gcma: Reserved 16 MiB at 0xc6c000009 O, a9 k: U# Y% q
Memory policy: Data cache writethrough3 w* K8 q; v& O( S& c( C
DaVinci da850/omap-l138/am18x variant 0x1
' \1 u1 I+ ?$ U! @6 y5 t+ A$ W8 C. ABuilt 1 zonelists in Zone order, mobility grouping on. Total pages: 32480. F! l0 Y; k4 j* G9 M. b, h4 B
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
9 M1 B) E8 w PPID hash table entries: 512 (order: -1, 2048 bytes)6 e; H; J. w P$ S8 W
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes). ]# o' U( P& h4 F
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) h2 f3 g0 N, J$ _# C
Memory: 106592K/131072K available (4529K kernel code, 308K rwdata, 1500K rodata, 228K init, 162K bss, 8096K reserved, 16384K cma-reserved)
5 i4 r1 o6 a7 d, a7 a& S/ p( B3 TVirtual kernel memory layout:% e4 Z( `; [% y3 y. M
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
3 y; R* Z# w/ T3 a1 z" O, Y R fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
7 l6 {$ z& n @: a2 f3 N vmalloc : 0xc8800000 - 0xff800000 ( 880 MB)" B* o; Q/ o1 ]
lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)0 J- s$ B+ ?& h, A& Y$ r. ~
modules : 0xbf000000 - 0xc0000000 ( 16 MB)
$ T" h! S2 x" W; ]; N7 @ .text : 0xc0008000 - 0xc0474b38 (4531 kB)) U. a' c3 [' h" _3 G: q
.init : 0xc05ed000 - 0xc0626000 ( 228 kB)$ ?4 r4 ]# u- R3 _
.data : 0xc0626000 - 0xc0673110 ( 309 kB)
9 J! Q! Z9 D4 |" A; X$ E .bss : 0xc0673110 - 0xc069bc08 ( 163 kB)
: C2 D3 R& ^! T. I% l5 bSLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=12 v q' [" {4 p5 L. g, Z7 k" i
Preemptible hierarchical RCU implementation.( Y- X& b/ i9 R- M' u
Build-time adjustment of leaf fanout to 32.7 z( e( y, z8 L
NR_IRQS:245
, K$ e8 l3 Y/ P6 g$ u; yclocksource: timer0_1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
0 m" q$ G8 C6 F$ y3 Csched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns3 |/ G9 H7 z4 H3 R) k3 s
Console: colour dummy device 80x30
. Z, z: u# J( h/ N- M4 UCalibrating delay loop... 227.32 BogoMIPS (lpj=1136640)
# d" N0 g4 F$ P bpid_max: default: 32768 minimum: 301* o2 h9 S& a7 g- V4 m; h* U; Y+ t
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)3 V+ ?3 L' Z/ n% X8 H4 s. T1 ?. f
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)" i/ k- h6 k% |8 p
CPU: Testing write buffer coherency: ok1 |! A& d5 S8 N! p$ b+ X" b2 Z) e
Setting up static identity map for 0xc0008400 - 0xc0008458
9 y" G) |, q9 N& S2 |devtmpfs: initialized+ k9 z$ j+ {+ r. z, r' ~ h5 F& w
VFP support v0.3: not present
5 E# b( E! Z% K) a: m! tclocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns- d- h/ w- s7 h I
futex hash table entries: 256 (order: -1, 3072 bytes)
t4 r* a/ n. r u3 h7 G" M1 \pinctrl core: initialized pinctrl subsystem
5 i) R j4 k+ A1 eNET: Registered protocol family 16) C; T: B; L/ ~6 C% i% Y9 c
DMA: preallocated 256 KiB pool for atomic coherent allocations6 I" X5 B& L+ ^
cpuidle: using governor ladder6 Z% `9 C. o2 k5 V
cpuidle: using governor menu t0 {2 W, W& q1 q! t! _
EMAC: MII PHY configured7 T! {, q: Z/ R5 z4 T' J
mux: initialized GPIO3_12& x. B P" k7 j1 ]! e
mux: Setting register GPIO3_12$ S6 t6 x _2 U8 ?
mux: PINMUX7 (0x0000001c) = 0x00110110 -> 0x00118110
% \8 A9 h( j7 T0 U: S9 h) vmux: initialized GPIO3_13
0 ~. [! C, }3 P3 I2 R: nmux: Setting register GPIO3_13
' O6 L# `: F: p9 D; M5 l) h" hmux: PINMUX7 (0x0000001c) = 0x00118110 -> 0x00118810
( _6 c+ [% ~7 }3 f+ ? ?9 ]mux: initialized GPIO2_4
- F3 m5 c( @3 L8 X- Y6 O1 R5 Bmux: Setting register GPIO2_4- n1 y/ `" p- {0 u8 p( q- ]& I* u$ K) `
mux: PINMUX6 (0x00000018) = 0x00000000 -> 0x00008000
R' G5 D9 V8 w7 k1 p' Kmux: initialized GPIO6_13
; k" S8 f6 |3 B$ w- Nmux: Setting register GPIO6_13
3 [1 L9 Z. _. h4 @: [) C, z: Nmux: PINMUX13 (0x00000034) = 0x00000000 -> 0x00000800
" Y. m" Z* e2 v3 j7 F0 I. m/ q0 ^da8xx_register_rproc: memory not reserved for DSP, not registering DSP device" f/ d3 b, ]1 l" y
omapl138_hawk_init: dsp/rproc registration failed: -12/ Z# ]7 f3 T& ^/ J+ A" d! D7 P! [. E
edma edma.0: Legacy memcpy is enabled, things might not work1 g) T+ ^( x8 |* E1 J5 g- g3 I- S
edma edma.0: TI EDMA DMA engine driver( t$ s5 B8 Z0 `& z# V
edma edma.1: Legacy memcpy is enabled, things might not work) Y; } N/ N. n: G
edma edma.1: TI EDMA DMA engine driver, _7 v' T" h4 C, R. u1 c5 O
clocksource: Switched to clocksource timer0_1, J- M5 N z& P
NET: Registered protocol family 2& u4 S4 u# w9 i! ]( }
TCP established hash table entries: 1024 (order: 0, 4096 bytes)
( N, p0 V% A" b- O" t" ?TCP bind hash table entries: 1024 (order: 0, 4096 bytes)6 Y/ F; o$ h6 h" g5 C3 t+ a6 X Q
TCP: Hash tables configured (established 1024 bind 1024)
6 _! [$ X) [7 L6 G2 `, x2 T! eUDP hash table entries: 256 (order: 0, 4096 bytes)
( o- i3 g+ J2 F" R4 G" V% `UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)! |3 T; G% Q# ~
NET: Registered protocol family 1
. X9 w* M% }5 f+ O' J1 Y3 aRPC: Registered named UNIX socket transport module.
) L6 V% D& g8 }/ nRPC: Registered udp transport module.
" R* _- { `# u2 \9 x" {+ e" fRPC: Registered tcp transport module.4 e$ h! e: h6 J# k& M; l7 D
RPC: Registered tcp NFSv4.1 backchannel transport module." S: h8 z" N, ?8 r* r9 P5 }
workingset: timestamp_bits=14 max_order=15 bucket_order=1
q5 L9 M+ f& L4 S. sBlock layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
" g. _+ {9 t* xio scheduler noop registered (default)
( C$ q. d4 S- W- RSerial: 8250/16550 driver, 10 ports, IRQ sharing disabled
2 ?* E9 t. e+ i3 c6 _( G4 Y0 Eserial8250.0: ttyS0 at MMIO 0x1c42000 (irq = 25, base_baud = 14250000) is a 16550A8 r2 @$ b3 h8 P5 o, r6 Z
serial8250.1: ttyS1 at MMIO 0x1d0c000 (irq = 53, base_baud = 8250000) is a 16550A
! g/ {- u. a. N6 zserial8250.2: ttyS2 at MMIO 0x1d0d000 (irq = 61, base_baud = 8250000) is a 16550A
6 h% E. |, v- j% ]: {+ [. [% k1 sconsole [ttyS2] enabled7 O' Q+ X/ E' ~" w) }- J
brd: module loaded4 f. [8 z& a+ n6 i3 `' I2 D
libphy: Fixed MDIO Bus: probed
" a/ d% Z. \& [/ }9 e! }2 ?davinci_mdio davinci_mdio.0: davinci mdio revision 1.5
) X6 A4 c$ h8 ]0 ~& m+ Odavinci_mdio davinci_mdio.0: detected phy mask fffffffe. Z. d0 e9 k" s' H0 Y
libphy: davinci_mdio.0: probed
2 [1 f, A5 @ A5 Z0 l* Z% Ddavinci_mdio davinci_mdio.0: phy[0]: device davinci_mdio-0:00, driver SMSC LAN8710/LAN87203 f4 M. f G3 | P& Y* u. t
i2c /dev entries driver
3 ~3 E! [+ u$ ?0 u# _davinci_mmc da830-mmc.0: cannot find GPIO chip davinci_gpio.15 k/ i8 a2 N, C: d# c
davinci_mmc da830-mmc.0: cannot find GPIO chip davinci_gpio.1
! \5 u1 Z* ]% C9 _& N7 {! rdavinci_mmc da830-mmc.0: Using DMA, 4-bit mode( M0 g, z9 i4 O" s0 t( I# ~( K5 q
NET: Registered protocol family 104 c- j, d1 R6 I3 b
sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver G& p! w3 I E& ^: u& F* W& @
NET: Registered protocol family 178 O$ T8 l- d9 W0 ]
console [netcon0] enabled9 i' ?( d+ |% k
netconsole: network logging started7 C% M4 k$ J ]3 o3 ^
davinci_emac davinci_emac.1: using random MAC addr: 0a:ed:9e:24:43:89
- ~5 g6 E) n0 r3 p# Chctosys: unable to open rtc device (rtc0)
' P+ r- G* Q, k/ k- vlibphy: PHY davinci_mdio-0:07 not found
1 t" v7 U' J c6 qnet eth0: could not connect to phy davinci_mdio-0:07$ x) L9 @4 ~( c) k4 |9 m
IP-Config: Failed to open eth0, Q3 i: r. E- Y3 S! R3 [: F
IP-Config: No network devices available. T( h) e( u7 v# F& m
mmc0: host does not support reading read-only switch, assuming write-enable6 W$ S+ Y( P4 Z& V
mmc0: new high speed SDHC card at address 59b4
& D; G: u5 R7 y* n/ D' Tmmcblk0: mmc0:59b4 SS08G 7.41 GiB 0 R- e# W+ @3 \& c- f' O/ k8 B
mmcblk0: p1 p2
- X9 [; y+ m) m- G) @0 }# P- W+ y- ?2 [
/* 此处等待了一段时间 */
3 Z& F1 z: @. a/ u6 N
. K3 F0 _/ g' yrandom: fast init done
: F/ l# B7 B% l) `7 l" gVFS: Unable to mount root fs via NFS, trying floppy.# l' e8 p* n' c
VFS: Cannot open root device "nfs" or unknown-block(2,0): error -6
& A" s3 g; Z* T$ ~6 J1 lPlease append a correct "root=" boot option; here are the available partitions:
5 `2 @! J9 G- n6 ~( [$ g0100 32768 ram0 (driver?)/ p- B+ `1 ]6 a% F
b300 7764992 mmcblk0 driver: mmcblk
* n1 ]; `. {; m6 D, ] b301 71680 mmcblk0p1 cd4e1bc4-01
2 g4 Z0 E! }7 G- b b302 7675904 mmcblk0p2 cd4e1bc4-02
2 r8 P* y2 E* z; N/ VKernel panic - not syncing: VFS: Unable to mount root fs on unknown-block
# h9 e1 q0 \* _ h& ]3 W
* D, L. ]4 Q! Q% }
1 M" n: o* G, G+ O8 f |
|