|
0. 开发板型号: TL138/6748/1808F-EasyEVM-A2, 开发版启动模式模式为SD卡启动
3 ^: f2 A$ _9 m$ ^) ^) \; a5 P
' D, o: i) @0 Q9 h) _& u; g1. 在ubantu16.04(64bit)按照官网安装ti-processor-sdk-linux-omapl138-lcdk-04.00.00.04-Linux-x86-Install.bin6 `6 I' b* o: T0 D
$ t/ D. j+ g+ S" g( u# g: x, G* i
2. 把uboot, kernel, filesystem写入SD卡, 拨码开关设置为SD启动, 能够正常启动能够进入嵌入式开发版: Z( O4 @" K" {7 j0 u2 h$ i
, {+ Y4 _% W5 u' c, s* b8 Q
3. SD卡启动方式保持不变,但是在uboot中配置为tftp下载内核和nfs挂载方式: _) d- \0 U; `$ E" G
, I& \, C* ]1 j/ E, p
uboot配置参数如下(由于没有开发板没有自动获取mac地址,所以自己设置为: setenv ethaddr 00:0c:29:bc:7e:9a):
6 J0 y) f. M1 Z8 J' Y& H# C" E: |( R0 x$ D2 c$ a; x
setenv uboot_macaddr 1" r& u) ]8 y v, [3 j
setenv ethaddr 00:0c:29:bc:7e:9a
! d5 x' |8 C1 h. esetenv serverip 192.168.2.1922 H! T) ~8 L3 Q) R
setenv ipaddr 192.168.2.1915 O6 @1 d, x9 p7 q% |# o. \) h
9 V2 D, I8 |) U* O6 P1 j4 r9 ]bootcmd=tftp c0700000 zImage;bootz c0700000
0 z( w: N; E7 N1 l) j+ c
1 m/ b7 C' E( E7 K$ bbootargs=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
" w3 j6 ~, l/ j! ]- u; r3 C% I9 p- J* ^
4. 能够通过tftp下载并启动内核,但是在挂载NFS文件系统之前报错(错误在下面内核启动信息的最后):
8 J. ~2 @1 X0 B$ }+ U+ y
9 X: [+ I2 y1 `2 p1 p" [boot命令后的完整启动信息:6 Y; h# r: ?$ a' _* c5 Q
7 l: Y. N& j! I- b! R% `! Z2 g9 m
=> boot
! a t$ ]1 P5 {Using DaVinci-EMAC device
6 _0 Y& `- R- KTFTP from server 192.168.2.192; our IP address is 192.168.2.1912 {3 s8 ]1 E X) T6 D
Filename 'zImage'.
% h! k: `' m% @: i# U; L& a$ M' E2 OLoad address: 0xc0700000# O) R* F1 _0 `7 Q
Loading: #################################################################2 W# r. i5 c7 f6 [
#################################################################
( {' s! p+ F) e0 y ################################' L3 P3 U* J9 X* K6 l
288.1 KiB/s
# R' `" p9 O: ]6 v# fdone. t |1 R9 M( l3 E# F) b& H, h2 Y
Bytes transferred = 2367360 (241f80 hex); M- P* }- V0 m
4 w( B# Z8 o6 m1 k$ C) ]
Starting kernel ...* k! F( x3 w0 P3 e6 `
* O* H1 L* F% u4 v
Uncompressing Linux... done, booting the kernel.# q% J2 J% O0 A. x4 f. d) Y
Booting Linux on physical CPU 0x0
$ w0 G4 G/ u8 t) _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( L( `6 r O0 v* @+ Z4 F. h
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
* D) a* d. a6 D/ S- }" `# s( B. ZCPU: VIVT data cache, VIVT instruction cache
1 D3 C; W4 ?; [$ kMachine: AM18x/OMAP-L138 Hawkboard
3 u! y, f, J1 M# [1 c. |da8xx_rproc_reserve_cma: 'rproc_mem=nn@address' badly specified$ `2 O* V% A( w* G
'nn' and 'address' must both be non-zero4 t% G0 Y* l( _9 u9 Y% K9 C
cma: Reserved 16 MiB at 0xc6c000005 m5 P L2 b6 p$ e
Memory policy: Data cache writethrough
) L. p* V) a) @- d! FDaVinci da850/omap-l138/am18x variant 0x1' c) V$ g) A( a1 ?
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32480
$ c8 W% ?" V5 H [3 ]; J ]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/nfs1 E; I( {* a! `, Q' K4 d6 b4 q
PID hash table entries: 512 (order: -1, 2048 bytes)
& R7 j! C* d# `9 U4 \5 o0 RDentry cache hash table entries: 16384 (order: 4, 65536 bytes); N( f: x v- f* ]
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)* {! R% ~; ^9 i! ^
Memory: 106592K/131072K available (4529K kernel code, 308K rwdata, 1500K rodata, 228K init, 162K bss, 8096K reserved, 16384K cma-reserved)1 c! U: x% r3 \- e+ `1 d
Virtual kernel memory layout:% m7 J6 o- { X& w2 i/ \
vector : 0xffff0000 - 0xffff1000 ( 4 kB)! X& y7 |8 ~- e7 E- m# _
fixmap : 0xffc00000 - 0xfff00000 (3072 kB) L! r+ ?2 v9 s
vmalloc : 0xc8800000 - 0xff800000 ( 880 MB)
7 ?4 v: S! M& @ lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)
6 z& S' T3 X, S" y% K; ~" y2 D4 `$ J- j modules : 0xbf000000 - 0xc0000000 ( 16 MB)4 S: g- a0 w! Z6 x1 ~! \) X
.text : 0xc0008000 - 0xc0474b38 (4531 kB)
1 J2 O8 D/ x1 ?8 \ .init : 0xc05ed000 - 0xc0626000 ( 228 kB)
+ D9 A; _: B: t" z3 W# L .data : 0xc0626000 - 0xc0673110 ( 309 kB)
( D* E$ R9 T( D) J% b& [& | .bss : 0xc0673110 - 0xc069bc08 ( 163 kB)) m6 p F2 B' Y
SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
) L ~% X" ]$ K7 B! {8 sPreemptible hierarchical RCU implementation.* ?& G& ^* x9 r
Build-time adjustment of leaf fanout to 32.- L* S5 d. \2 ?' S9 ]0 G3 i# n
NR_IRQS:245
+ }! P/ E# M3 w8 {# xclocksource: timer0_1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns- o! E' p" z' r9 Q
sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns( c8 C4 G( M8 e/ f& ]
Console: colour dummy device 80x30
y! C1 }6 y" LCalibrating delay loop... 227.32 BogoMIPS (lpj=1136640); J, y7 ~& Q6 ^& R# v
pid_max: default: 32768 minimum: 301+ R* L! Y5 I+ H, n6 k6 Q
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)7 L P4 U, O6 B
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
: P! ~6 P3 y' o+ I% p! v! CCPU: Testing write buffer coherency: ok
5 J8 c) K6 F4 R* O J, w# fSetting up static identity map for 0xc0008400 - 0xc00084580 y# r; \5 E; [5 L% p- w
devtmpfs: initialized9 R8 @* n5 x! q- y% z% y. }
VFP support v0.3: not present
: H% A' v6 v: a jclocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
9 E7 s" `6 c4 _; W5 E, E' s* s! U# S, q3 Cfutex hash table entries: 256 (order: -1, 3072 bytes)
8 l$ `; j+ H* ~ m! ]! k Hpinctrl core: initialized pinctrl subsystem
- c0 A0 J' W/ g) s; E2 e1 |# p# INET: Registered protocol family 16' k2 d" j2 d9 V% v* e, J
DMA: preallocated 256 KiB pool for atomic coherent allocations& @0 U; t1 B( Q
cpuidle: using governor ladder
$ o, _) F$ ~$ g! Pcpuidle: using governor menu6 Y7 d8 [& ^; F. ]8 h
EMAC: MII PHY configured
4 d3 K: E# x# U) ^! Pmux: initialized GPIO3_12
, j) [: p, s+ E) i6 j$ q- O! cmux: Setting register GPIO3_124 j" s& B4 Y4 E: ?; d1 h0 {
mux: PINMUX7 (0x0000001c) = 0x00110110 -> 0x00118110
/ Z. n! r+ ]$ Y9 rmux: initialized GPIO3_13! e& X! \% S$ ^% I8 X3 O! E
mux: Setting register GPIO3_13
6 j& y+ h+ G. f2 nmux: PINMUX7 (0x0000001c) = 0x00118110 -> 0x001188107 k) C5 x" U% \- I( X
mux: initialized GPIO2_4
$ z: x* b$ n% d% Emux: Setting register GPIO2_4
@! g7 U& f. G6 J% Hmux: PINMUX6 (0x00000018) = 0x00000000 -> 0x00008000+ S$ |- D# E/ f }- x8 U3 D6 ^# W) j
mux: initialized GPIO6_13* T+ n3 f5 C8 s* y5 L. L
mux: Setting register GPIO6_13 ]* m! J) K* z) y8 [, `
mux: PINMUX13 (0x00000034) = 0x00000000 -> 0x00000800
" _0 ]; }" ?: eda8xx_register_rproc: memory not reserved for DSP, not registering DSP device
; H" K+ W* L' T8 _* Bomapl138_hawk_init: dsp/rproc registration failed: -124 t$ ~0 I9 c i5 ]* J
edma edma.0: Legacy memcpy is enabled, things might not work+ L8 v9 k. L% Z% ?$ y3 J/ [
edma edma.0: TI EDMA DMA engine driver& J* T3 e4 r; i& e d/ W
edma edma.1: Legacy memcpy is enabled, things might not work
) N7 l& t6 x. Jedma edma.1: TI EDMA DMA engine driver+ i( A$ T3 Q& V0 {. }
clocksource: Switched to clocksource timer0_1
6 Q7 u/ D P, M6 r' P. {) JNET: Registered protocol family 2% l' K& m K5 v; Y6 H
TCP established hash table entries: 1024 (order: 0, 4096 bytes)
* T9 }# J; w+ Z% nTCP bind hash table entries: 1024 (order: 0, 4096 bytes)% j' s& d# N+ ?/ u. s+ M$ A! ~
TCP: Hash tables configured (established 1024 bind 1024) q1 ?% g$ \/ H9 w/ I
UDP hash table entries: 256 (order: 0, 4096 bytes)9 h" U6 t4 { G. @+ B
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
3 c3 q/ i) ^! w3 u- INET: Registered protocol family 1$ c3 ^ g$ i; V! Q2 F B3 ^
RPC: Registered named UNIX socket transport module.
0 a1 v- n% f4 uRPC: Registered udp transport module.
' \9 ?( ?2 {3 G( n3 vRPC: Registered tcp transport module.
& l* q+ t' T$ Z- h; \' FRPC: Registered tcp NFSv4.1 backchannel transport module.
$ E$ q, u7 V9 w: K4 M! A a- {) qworkingset: timestamp_bits=14 max_order=15 bucket_order=1
2 k- g! y2 n" H( FBlock layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
# \; o E/ w+ A" ~' bio scheduler noop registered (default)3 X3 E1 G9 g m9 O
Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
# O$ |. s) T1 E" `+ Q. @serial8250.0: ttyS0 at MMIO 0x1c42000 (irq = 25, base_baud = 14250000) is a 16550A0 K9 g8 n+ q* x1 W$ c
serial8250.1: ttyS1 at MMIO 0x1d0c000 (irq = 53, base_baud = 8250000) is a 16550A4 q$ j& n3 C% y& P/ a
serial8250.2: ttyS2 at MMIO 0x1d0d000 (irq = 61, base_baud = 8250000) is a 16550A9 n$ m9 ~# z) o, L' o$ h! I
console [ttyS2] enabled! l& D2 D9 O, v4 }$ r c# i
brd: module loaded
. \0 m0 ^- o0 T; u; t) p8 K: |. M) ylibphy: Fixed MDIO Bus: probed9 G/ ]' W% z/ c2 p1 Y( L
davinci_mdio davinci_mdio.0: davinci mdio revision 1.5
3 {( \: ^( }4 j+ u# Jdavinci_mdio davinci_mdio.0: detected phy mask fffffffe
- a8 M; ?, Z. F. b0 M# Rlibphy: davinci_mdio.0: probed
. C9 b* p' T/ t, O+ g' N/ Bdavinci_mdio davinci_mdio.0: phy[0]: device davinci_mdio-0:00, driver SMSC LAN8710/LAN8720
3 Z" a7 o4 }* R0 a* S7 ~i2c /dev entries driver
4 e8 _# A( P' Q) odavinci_mmc da830-mmc.0: cannot find GPIO chip davinci_gpio.1! ?. E6 w. `' c4 R
davinci_mmc da830-mmc.0: cannot find GPIO chip davinci_gpio.1
7 ~9 S2 N# t' }( jdavinci_mmc da830-mmc.0: Using DMA, 4-bit mode" V: s) h. s9 Z( z, M4 ^1 ]- y
NET: Registered protocol family 10 T- O8 d" m* l/ `
sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver" q( R" h/ r5 e" ^+ f3 I* |9 m
NET: Registered protocol family 17
" `/ U7 I$ D+ o' qconsole [netcon0] enabled/ V* U1 c5 g5 m( a/ |
netconsole: network logging started! j: F- H8 l4 a8 n6 w2 `
davinci_emac davinci_emac.1: using random MAC addr: 0a:ed:9e:24:43:89
3 T3 ^( v6 M/ r6 g9 ehctosys: unable to open rtc device (rtc0). ?: O( q7 X o% T- e6 X# L& B9 c0 ?
libphy: PHY davinci_mdio-0:07 not found
$ { a) _9 {* a9 K: W7 Y2 xnet eth0: could not connect to phy davinci_mdio-0:07
8 |6 w# j# u# j0 N) K" i" r0 IIP-Config: Failed to open eth03 O: P( d7 E- ?/ C8 E* P
IP-Config: No network devices available' k% V$ ?; p1 C- g: ^2 D
mmc0: host does not support reading read-only switch, assuming write-enable
) i: p$ I0 m( @9 rmmc0: new high speed SDHC card at address 59b4
# F3 ^- G6 |: p5 ^+ I$ }: j0 Lmmcblk0: mmc0:59b4 SS08G 7.41 GiB 6 T; E+ y! r. N
mmcblk0: p1 p27 L0 l( k8 H+ {- [: x% x
- ^4 q7 h1 ]2 t% l: `5 W) {( M
/* 此处等待了一段时间 */' G( w& l6 i* M- S3 `
2 f- s7 T% e! S4 m- l* o9 ^
random: fast init done! e7 Q# f# l& B* r; ^2 e( U, a% K
VFS: Unable to mount root fs via NFS, trying floppy.0 k8 r' V) i8 @* d$ v e
VFS: Cannot open root device "nfs" or unknown-block(2,0): error -6
: @/ t0 W v$ h) x0 K+ JPlease append a correct "root=" boot option; here are the available partitions:6 v" I+ E$ k6 i' u- C
0100 32768 ram0 (driver?)
4 R- W1 f5 d9 w2 X/ M- Z9 p( C0 ^" Xb300 7764992 mmcblk0 driver: mmcblk
* ~" u1 O& m( u5 `& U) ? b301 71680 mmcblk0p1 cd4e1bc4-01
! g6 B0 R. a: V# p; |1 g/ w' a$ _9 t b302 7675904 mmcblk0p2 cd4e1bc4-02
0 R; P* l5 f5 i* P. B3 N cKernel panic - not syncing: VFS: Unable to mount root fs on unknown-block* D/ L! [4 g, g: M5 b7 p6 v! y+ }' b
$ r7 f' y% p0 ?0 \9 L" G+ h! A
( V! q8 f" a9 R8 D% c7 F# n: J% I |
|