|
0. 开发板型号: TL138/6748/1808F-EasyEVM-A2, 开发版启动模式模式为SD卡启动( l8 E6 z7 s8 I; M3 x" l, R7 h
, q: F9 ]# ~4 ^7 |
1. 在ubantu16.04(64bit)按照官网安装ti-processor-sdk-linux-omapl138-lcdk-04.00.00.04-Linux-x86-Install.bin' h' _' ]& k7 T3 N0 D# M
" N3 {# c# d) L' x9 K6 |) ^4 p
2. 把uboot, kernel, filesystem写入SD卡, 拨码开关设置为SD启动, 能够正常启动能够进入嵌入式开发版
3 Z! ~4 `, W$ l* G" }7 _/ E2 e
1 O0 S) [+ b7 B; a; D7 @1 H3. SD卡启动方式保持不变,但是在uboot中配置为tftp下载内核和nfs挂载方式" n& G6 }5 ]) B' }% Y
* D; \9 i8 l0 kuboot配置参数如下(由于没有开发板没有自动获取mac地址,所以自己设置为: setenv ethaddr 00:0c:29:bc:7e:9a):
8 P! H8 f. N( p6 K* f7 W! E
/ ^( _: U X2 u0 ~6 qsetenv uboot_macaddr 1
8 j, J. l, u+ t6 g6 E4 esetenv ethaddr 00:0c:29:bc:7e:9a
1 |# ?) I" ?, Q( I: ^setenv serverip 192.168.2.1926 z6 s: B6 |& G8 n( I! ^
setenv ipaddr 192.168.2.1915 i1 y9 L _( m9 c8 g* o
* b6 U8 ~# J0 \1 K k1 X
bootcmd=tftp c0700000 zImage;bootz c0700000
3 I6 h$ t& T# g; a2 a* b# i
/ W$ w1 D" x6 }2 Dbootargs=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
0 ?3 A; n# K. R0 X: U: E
) c& ~; q. m) v8 X$ \4. 能够通过tftp下载并启动内核,但是在挂载NFS文件系统之前报错(错误在下面内核启动信息的最后):
2 n: L! Q0 A0 ?5 y# f+ M4 V+ {$ y/ r
boot命令后的完整启动信息:- p, g, S0 C* s2 ?+ I# L
6 B3 w& d' N* u( A5 j% ^
=> boot
, @7 W: w. G; `Using DaVinci-EMAC device# X0 R7 Q0 H& J, a& ^1 M2 t7 r
TFTP from server 192.168.2.192; our IP address is 192.168.2.191/ Z& D8 l) m- Q
Filename 'zImage'.2 C' ^' A3 Z( [& c5 I! i* M, Q
Load address: 0xc0700000
: C& V) l; h }* }: z+ XLoading: #################################################################
9 ]7 C* e8 u8 o" d& q( @ #################################################################2 ?9 n1 S) K# N. }4 {
################################3 z" L4 F6 d6 J8 \0 i& J
288.1 KiB/s
: h$ k! N% u6 a8 d- Ddone% ^& i; q& k: X# \5 K- k0 f
Bytes transferred = 2367360 (241f80 hex)
5 _' n7 n T3 {6 v/ a$ L- f$ Q6 K8 H6 G' D+ ?$ H9 e- S9 e5 M z, c$ y
Starting kernel ...4 e, v9 Q" ~2 }& m
2 w( J" G- |( K+ \' B# eUncompressing Linux... done, booting the kernel.
5 f( X7 }" w, ?; S& sBooting Linux on physical CPU 0x07 z/ w. V& A0 z& ~( P. m+ p r( A3 [
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
7 X8 C3 J9 N$ X% N0 Z# d) w" FCPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
' `4 j- f5 c. d# V6 B3 ~CPU: VIVT data cache, VIVT instruction cache- A" t$ z+ t+ n7 G: V
Machine: AM18x/OMAP-L138 Hawkboard
7 j: i2 b' E! v6 h. c0 Tda8xx_rproc_reserve_cma: 'rproc_mem=nn@address' badly specified
$ a2 V4 D% Q# r% \ 'nn' and 'address' must both be non-zero
- }3 ]8 |$ ]" M' ^cma: Reserved 16 MiB at 0xc6c00000$ U$ s( v2 u( i% |1 l( i* E6 ~" C
Memory policy: Data cache writethrough
% {6 R/ p+ L" p1 y4 l& F7 [DaVinci da850/omap-l138/am18x variant 0x1; t* w; h" u- }9 z- E! j7 d# v' p
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 324806 w7 D( t. C' K2 R* 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
3 F( D& n- s; [& i2 G7 _PID hash table entries: 512 (order: -1, 2048 bytes)
) ~0 J$ i, A2 ^5 q+ E; v6 IDentry cache hash table entries: 16384 (order: 4, 65536 bytes)
" D4 g( g- Q# ]1 P% \7 bInode-cache hash table entries: 8192 (order: 3, 32768 bytes)
# g1 U( ?2 o" K: u4 c9 J* w# xMemory: 106592K/131072K available (4529K kernel code, 308K rwdata, 1500K rodata, 228K init, 162K bss, 8096K reserved, 16384K cma-reserved)! d$ B) q0 h( @% |/ c
Virtual kernel memory layout:
6 i4 }, F7 ~/ V" O vector : 0xffff0000 - 0xffff1000 ( 4 kB)1 v+ ?# Y6 g7 v# T
fixmap : 0xffc00000 - 0xfff00000 (3072 kB)6 g! G1 N5 W/ `! R1 F, `( K; R
vmalloc : 0xc8800000 - 0xff800000 ( 880 MB)
- v" O* B3 o8 B/ B lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)
$ n8 z8 y: l7 R* j% v modules : 0xbf000000 - 0xc0000000 ( 16 MB)
# ^4 y8 U' G3 Q2 u3 W- T7 f7 Y4 I .text : 0xc0008000 - 0xc0474b38 (4531 kB); r- |: S& |: P: F
.init : 0xc05ed000 - 0xc0626000 ( 228 kB)) z7 Y4 U; x9 E4 u
.data : 0xc0626000 - 0xc0673110 ( 309 kB)2 G( O% b8 A2 I N
.bss : 0xc0673110 - 0xc069bc08 ( 163 kB)
, O8 b! V7 O8 [$ k& F+ rSLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
9 H" f- c7 b9 x- y0 Y. z& mPreemptible hierarchical RCU implementation.
1 K& J7 \- b# {1 S Build-time adjustment of leaf fanout to 32.
1 q9 m5 T0 X/ r5 XNR_IRQS:245
8 |9 W9 {6 H+ i5 K# Nclocksource: timer0_1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns" s7 T6 ^; p/ x k" b$ }7 _/ |1 W' @
sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns# h; H9 |( p' @
Console: colour dummy device 80x302 u- s- J# O& W+ ]& T' q
Calibrating delay loop... 227.32 BogoMIPS (lpj=1136640)
4 o" n7 _1 |5 ~/ W* epid_max: default: 32768 minimum: 3013 A' h+ O/ f0 O( X9 v" F
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)8 Q: }6 F9 k9 V6 X9 D% k
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
8 h- a* m$ `) ]+ V0 \CPU: Testing write buffer coherency: ok
. O) U0 X; U2 r9 E# H* JSetting up static identity map for 0xc0008400 - 0xc0008458+ C& O* M6 V2 X) y* L+ [& M
devtmpfs: initialized( d4 Q' S, V6 y+ l- _
VFP support v0.3: not present1 X( P' a+ p% N) r5 m& X
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns! P% Z( B% S5 `+ s+ A/ A
futex hash table entries: 256 (order: -1, 3072 bytes)
: ]8 p1 z" G5 B& _0 O$ Hpinctrl core: initialized pinctrl subsystem' f8 D f" t9 [9 v6 H0 o7 L! f6 J
NET: Registered protocol family 16, W) x; F" D, ?5 w; I# a T4 D
DMA: preallocated 256 KiB pool for atomic coherent allocations
2 v, M! v' y7 }0 {; h, lcpuidle: using governor ladder6 [2 @7 W0 t+ _8 V. T I% c
cpuidle: using governor menu
^) ~! e4 b7 G# {EMAC: MII PHY configured/ J) r$ f1 M9 ~( d( u) g% _
mux: initialized GPIO3_12" p$ j R, C/ [
mux: Setting register GPIO3_12% j8 p% o* P9 N2 L
mux: PINMUX7 (0x0000001c) = 0x00110110 -> 0x00118110" `# v; M3 N* E$ i6 h
mux: initialized GPIO3_13
2 k* q* T% u# r, |7 U" xmux: Setting register GPIO3_13
0 V6 R/ A, r! X8 A5 {mux: PINMUX7 (0x0000001c) = 0x00118110 -> 0x00118810
% }9 B. d* c) W& t4 K5 M& ^mux: initialized GPIO2_46 e3 S D1 d9 e G/ j' c
mux: Setting register GPIO2_4
: H; [& m9 H3 w6 L& kmux: PINMUX6 (0x00000018) = 0x00000000 -> 0x00008000
z8 n1 v+ Q6 c/ umux: initialized GPIO6_13. @! N/ W- V. N6 ` j. _
mux: Setting register GPIO6_13
* G4 r6 B6 @! Dmux: PINMUX13 (0x00000034) = 0x00000000 -> 0x00000800
( x1 C$ ?0 Z5 }. N" J+ G3 Xda8xx_register_rproc: memory not reserved for DSP, not registering DSP device$ j x9 R, H; t: u
omapl138_hawk_init: dsp/rproc registration failed: -12/ _) j) v/ J* _
edma edma.0: Legacy memcpy is enabled, things might not work
8 ]8 ?; W! }, m- u2 Redma edma.0: TI EDMA DMA engine driver2 y8 v/ E/ a) ?& L+ L& G* `
edma edma.1: Legacy memcpy is enabled, things might not work, n e- y" Q4 K
edma edma.1: TI EDMA DMA engine driver
. X' b C f' K8 Gclocksource: Switched to clocksource timer0_1; E/ t/ w# }. h* U( V' v7 ^6 p6 U
NET: Registered protocol family 2
5 s2 X% T" ?, ~" aTCP established hash table entries: 1024 (order: 0, 4096 bytes)6 ?3 g- T$ U4 q
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)# ] P) a0 H2 }" ~; `1 J
TCP: Hash tables configured (established 1024 bind 1024)
; Z- r- T5 j; DUDP hash table entries: 256 (order: 0, 4096 bytes)
" i4 E( F4 G: S, J% z) z$ ^UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)4 R5 w E) P' r. j | ?
NET: Registered protocol family 1' f* E& ?" f4 f: q4 z7 g
RPC: Registered named UNIX socket transport module.9 v9 A# G/ d5 Q" A( w E. r1 I
RPC: Registered udp transport module.
$ t b+ w- }5 @/ x. y7 D0 G+ mRPC: Registered tcp transport module.
3 t5 s; U$ P" o9 G2 pRPC: Registered tcp NFSv4.1 backchannel transport module.% J9 B7 a# \/ O8 G; _- D4 j" u8 ]3 P
workingset: timestamp_bits=14 max_order=15 bucket_order=1
$ W% e3 e. t' L3 v! e: i2 DBlock layer SCSI generic (bsg) driver version 0.4 loaded (major 250)' g/ e! [3 N' s; T3 m9 j
io scheduler noop registered (default)4 x3 N l, W: N7 y
Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled; o& p! |6 o, t( K3 y! k# ^
serial8250.0: ttyS0 at MMIO 0x1c42000 (irq = 25, base_baud = 14250000) is a 16550A
4 Y7 Y3 I: A2 o( jserial8250.1: ttyS1 at MMIO 0x1d0c000 (irq = 53, base_baud = 8250000) is a 16550A
2 h1 o# d5 R, }serial8250.2: ttyS2 at MMIO 0x1d0d000 (irq = 61, base_baud = 8250000) is a 16550A
: d8 q' d+ k8 H3 S, ]: iconsole [ttyS2] enabled
. i/ E7 R/ U" W2 R7 n: G8 s7 h" fbrd: module loaded
$ Q; R' g- z2 h8 E: X/ Hlibphy: Fixed MDIO Bus: probed8 t# g t9 b: P0 X8 D( u6 N
davinci_mdio davinci_mdio.0: davinci mdio revision 1.5, E; i' I$ G: l. b, A
davinci_mdio davinci_mdio.0: detected phy mask fffffffe! R" V B( X1 `
libphy: davinci_mdio.0: probed: o, E/ d( V' q9 ^/ m+ i+ [; a
davinci_mdio davinci_mdio.0: phy[0]: device davinci_mdio-0:00, driver SMSC LAN8710/LAN8720
& F( ~, h3 Z6 _i2c /dev entries driver
$ a3 O! M' g! @5 L: x$ Y2 `davinci_mmc da830-mmc.0: cannot find GPIO chip davinci_gpio.1
6 ~' U. D$ \: T1 Vdavinci_mmc da830-mmc.0: cannot find GPIO chip davinci_gpio.1
6 I2 N B: y. m; Q! _9 D, \davinci_mmc da830-mmc.0: Using DMA, 4-bit mode& Y; V" y4 U$ d
NET: Registered protocol family 10; X7 v1 j) n% u0 f7 u6 o
sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
4 p7 N- N- W3 w1 x4 k2 E3 s: M' \NET: Registered protocol family 17, L0 O% k2 A! t: z6 _
console [netcon0] enabled1 B7 C3 ]0 q' g
netconsole: network logging started
9 @: d1 a- ~: A6 x' Ydavinci_emac davinci_emac.1: using random MAC addr: 0a:ed:9e:24:43:899 z4 f* u& M- g* S/ A; q% V3 k
hctosys: unable to open rtc device (rtc0)' m2 ~9 a9 x0 I1 ?% u
libphy: PHY davinci_mdio-0:07 not found" q! ?' Z$ z: S0 w( s# F
net eth0: could not connect to phy davinci_mdio-0:07
6 X, o* z/ Q& M ]0 D9 W, hIP-Config: Failed to open eth0 d$ _7 J0 \* k3 y4 b
IP-Config: No network devices available
$ X8 q- X6 T9 W- X" S7 mmmc0: host does not support reading read-only switch, assuming write-enable* S- h: C, T. u4 c* m2 A
mmc0: new high speed SDHC card at address 59b4 L! s. c8 c, F
mmcblk0: mmc0:59b4 SS08G 7.41 GiB + F% b8 R% ~$ l
mmcblk0: p1 p2
- X. @) k6 U* B" ^" H, x' j0 h0 g' G9 a
/* 此处等待了一段时间 */- \8 r) @; Q: Y5 S5 @
7 L; |4 B9 d. ~2 S8 Xrandom: fast init done
% E& X0 V7 q% |8 y6 m" t NVFS: Unable to mount root fs via NFS, trying floppy.
& D3 F3 i! [' l) B3 O) MVFS: Cannot open root device "nfs" or unknown-block(2,0): error -6! Y5 [# l- N$ L4 y
Please append a correct "root=" boot option; here are the available partitions:
0 Z0 y6 h. ]! S- g1 Y* p0100 32768 ram0 (driver?)- M% }; C6 f* [9 T, }
b300 7764992 mmcblk0 driver: mmcblk6 ~' F7 J. T. A8 s" z' i
b301 71680 mmcblk0p1 cd4e1bc4-01! J% _: @3 J" v1 q# ?; B
b302 7675904 mmcblk0p2 cd4e1bc4-02
d5 J, b6 b2 m6 r) aKernel panic - not syncing: VFS: Unable to mount root fs on unknown-block
: X! F# N' w+ O+ Q6 p W6 d, x5 H2 T4 I {
n, B; z! r9 V2 \% q1 c( {
|
|