|
0. 开发板型号: TL138/6748/1808F-EasyEVM-A2, 开发版启动模式模式为SD卡启动
+ |9 c, c" N ]9 J- o) W: N& r- F. n. |* u; h- G- k
1. 在ubantu16.04(64bit)按照官网安装ti-processor-sdk-linux-omapl138-lcdk-04.00.00.04-Linux-x86-Install.bin
+ Y% b: F; A2 ^ B4 M$ \! E; E b
2. 把uboot, kernel, filesystem写入SD卡, 拨码开关设置为SD启动, 能够正常启动能够进入嵌入式开发版5 S- v: b& p9 H
4 d9 g1 m* n8 v$ L9 S
3. SD卡启动方式保持不变,但是在uboot中配置为tftp下载内核和nfs挂载方式, D! L0 I2 s! \1 n$ C2 s$ A. i& x4 v+ ^
& L- h' x; r! }2 r) c. p
uboot配置参数如下(由于没有开发板没有自动获取mac地址,所以自己设置为: setenv ethaddr 00:0c:29:bc:7e:9a):9 s! C6 t) \- O. ^! `% @
9 U! N9 r/ q' T- d; ? m# isetenv uboot_macaddr 1
8 [9 @! k# B1 [7 J. b$ S3 M5 Isetenv ethaddr 00:0c:29:bc:7e:9a
- J5 r# r8 X/ g3 Qsetenv serverip 192.168.2.192
' H5 L: |/ q0 h" g6 Q8 n# D# ssetenv ipaddr 192.168.2.191. v% p* S9 a: ^9 V9 m2 ^! N( v
. H/ p& n. b% Q+ }+ o x9 `1 _bootcmd=tftp c0700000 zImage;bootz c07000001 j0 Q- K. i8 m* C* [
. P% A$ L8 r* ~- }
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& v. ?+ i0 h: }2 F' b3 v' Z
* V$ E- l' a1 c3 y# z3 {! f5 H
4. 能够通过tftp下载并启动内核,但是在挂载NFS文件系统之前报错(错误在下面内核启动信息的最后):" k* T8 h' l$ a+ M1 U4 W( ^6 Y
1 }* Z& d4 `- O" B
boot命令后的完整启动信息:
# [8 O3 X" }2 }7 h' q" S4 _% |/ K+ V0 q7 ?1 l
=> boot. [* w" x3 b! U) F' U$ v& |7 U
Using DaVinci-EMAC device
5 ^7 S2 K7 ^, I- r/ A" dTFTP from server 192.168.2.192; our IP address is 192.168.2.191
9 c2 e2 E" \& J5 {Filename 'zImage'.
3 G+ v% J: V i' b. n- wLoad address: 0xc0700000
J2 n' c! s F. X6 g" ~4 |* \1 ]Loading: #################################################################& R2 H- a& B' j, u( j S% e
#################################################################
0 W N9 J( a! q, u1 x4 a ################################, H/ b$ G- f e* e: D: @
288.1 KiB/s
' h1 t; i! t4 Kdone
) X8 ?: F/ {! j$ j4 ^ ~% d- bBytes transferred = 2367360 (241f80 hex)
$ g* F: q- W c+ c. C& Y. E9 _0 j6 @5 o7 Y
Starting kernel ...
3 m( U6 ?5 K: F/ C- }3 z3 h
% G5 }2 D* }% I0 r9 | J2 [. Y7 JUncompressing Linux... done, booting the kernel.
8 E7 X/ E0 R6 }5 k' T& q* i" `1 jBooting Linux on physical CPU 0x0. D2 @6 k1 E& ^3 X) k' j' e
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- ~3 p9 K! |: y. m/ G& `( r
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f1 }& v- C4 Z: M
CPU: VIVT data cache, VIVT instruction cache5 m& ~; Q' i! M8 N9 V' Y7 Y
Machine: AM18x/OMAP-L138 Hawkboard
! p0 k5 }8 [* n+ v& \! @, j M9 Vda8xx_rproc_reserve_cma: 'rproc_mem=nn@address' badly specified
& M3 I" W/ u* X6 n8 G. S" J" N! ~- f 'nn' and 'address' must both be non-zero
8 Q6 r4 l9 p. _: o; b6 P; Kcma: Reserved 16 MiB at 0xc6c00000
9 X1 v9 s! c% a7 D6 fMemory policy: Data cache writethrough
; A4 V; G3 T, L, Y4 S. z$ g6 GDaVinci da850/omap-l138/am18x variant 0x19 e" I F1 Q( o8 y( r. @9 g
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 324807 S5 t/ c2 p" H6 p
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
i. c0 c4 y3 a5 _8 X5 b3 {PID hash table entries: 512 (order: -1, 2048 bytes)8 ~2 B9 T6 F9 d, v; T+ Q! g
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
6 }2 U# _- t. F* r+ yInode-cache hash table entries: 8192 (order: 3, 32768 bytes)
% m. Z6 n# H; W- ^. Y* U6 U$ d' ZMemory: 106592K/131072K available (4529K kernel code, 308K rwdata, 1500K rodata, 228K init, 162K bss, 8096K reserved, 16384K cma-reserved)' v2 n+ G1 X4 T/ u" G+ w* s
Virtual kernel memory layout:) b( f5 {% r9 Q3 x
vector : 0xffff0000 - 0xffff1000 ( 4 kB)+ X- `2 m4 s) t* _
fixmap : 0xffc00000 - 0xfff00000 (3072 kB)7 x; E/ Z" g" {* v8 f- p
vmalloc : 0xc8800000 - 0xff800000 ( 880 MB)" ~! l# O& W0 w, f8 e& l w, N6 S
lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)
8 [" q) o* N+ R" _& { modules : 0xbf000000 - 0xc0000000 ( 16 MB)
% U3 \3 o& i/ C% Z. z! R .text : 0xc0008000 - 0xc0474b38 (4531 kB)5 n, Z4 m& q! F7 n v9 L
.init : 0xc05ed000 - 0xc0626000 ( 228 kB)# p( E. ~) ]! n4 [0 H
.data : 0xc0626000 - 0xc0673110 ( 309 kB)
+ k8 O- D* n: A& C. n9 A O* w .bss : 0xc0673110 - 0xc069bc08 ( 163 kB)0 s u" u5 j0 \7 p5 A7 K$ k
SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=12 ]: J# O" b9 A9 T! K, Y) k$ a0 {4 F
Preemptible hierarchical RCU implementation.
% K- u. o1 J( t1 v$ H, }% L: o$ A Build-time adjustment of leaf fanout to 32." [" }( Z# S4 t4 }# [/ C
NR_IRQS:245
1 R m9 M* `6 z$ E' L mclocksource: timer0_1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns7 w2 n3 v0 |! ?/ [3 F
sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns% |# |+ ^; M5 p* k' c8 D! w
Console: colour dummy device 80x30* `- o6 G v! Q, v' X2 J
Calibrating delay loop... 227.32 BogoMIPS (lpj=1136640); V1 d z9 F1 B) O- f; l
pid_max: default: 32768 minimum: 301# m) \" ^+ {: w4 D, b9 L5 G" L
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)- b4 U6 x. o" b
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)2 h* O$ ` S: A/ P; ^
CPU: Testing write buffer coherency: ok
" u$ M. _0 N v1 E. J1 WSetting up static identity map for 0xc0008400 - 0xc0008458: h& R$ g$ n- B
devtmpfs: initialized/ A" K. m4 R1 _: [- C/ ]2 L
VFP support v0.3: not present
+ i# T/ \ \0 s4 jclocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns3 P: y: s! h1 | v0 z
futex hash table entries: 256 (order: -1, 3072 bytes)
( O8 e5 b t6 t/ O' fpinctrl core: initialized pinctrl subsystem9 c! D' |8 d$ L% N, E
NET: Registered protocol family 16
" X* n% ~) I+ S- ADMA: preallocated 256 KiB pool for atomic coherent allocations3 c2 c5 E/ `' M. c t4 Z6 u
cpuidle: using governor ladder; Q" e$ ~9 x* E/ Y+ d. ~2 L
cpuidle: using governor menu
4 j m* `6 m, _ L/ g% I5 cEMAC: MII PHY configured
t) J# H b9 a( T* _% X8 pmux: initialized GPIO3_12" p* a; U0 j. t: v
mux: Setting register GPIO3_12
1 `0 C% X6 Y6 c. ]/ Nmux: PINMUX7 (0x0000001c) = 0x00110110 -> 0x001181108 G/ F( H L- b9 b
mux: initialized GPIO3_13' i) [3 E% C0 j; S8 t1 J
mux: Setting register GPIO3_139 B( D- s; D8 \# `: Z+ o
mux: PINMUX7 (0x0000001c) = 0x00118110 -> 0x00118810
. B0 T1 @& T+ emux: initialized GPIO2_4& \! r' M6 E4 R) [6 [. c
mux: Setting register GPIO2_4
/ r+ [9 T5 d2 d, Hmux: PINMUX6 (0x00000018) = 0x00000000 -> 0x00008000
# _0 ]' Y9 g5 W8 ]" U1 [mux: initialized GPIO6_13! \ H; J0 K0 I4 O- T8 K* g
mux: Setting register GPIO6_13
- z* P* V, m1 ^* w% Mmux: PINMUX13 (0x00000034) = 0x00000000 -> 0x00000800
2 ~. _" @0 j1 |; F1 c+ ~( nda8xx_register_rproc: memory not reserved for DSP, not registering DSP device) Q C$ Y- M5 E, l9 ]0 }# r
omapl138_hawk_init: dsp/rproc registration failed: -12+ ?1 F5 A, F1 w9 g: e4 z' s
edma edma.0: Legacy memcpy is enabled, things might not work+ o" u' @, Y, ]# X# \5 B8 [
edma edma.0: TI EDMA DMA engine driver4 Q$ t6 |9 d- k, P! ?% J/ o1 f
edma edma.1: Legacy memcpy is enabled, things might not work
: \) X: y/ J( t# ^edma edma.1: TI EDMA DMA engine driver0 Z$ R- S0 P+ f+ _% C
clocksource: Switched to clocksource timer0_1
& j2 B" Q# I2 X; e' U& e; U1 ^NET: Registered protocol family 2
# u$ D! L# m z+ P5 l1 Q) w5 gTCP established hash table entries: 1024 (order: 0, 4096 bytes)3 v+ N$ ]; S% K7 m2 c
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)1 z, X+ p8 y$ y) N6 O v ^
TCP: Hash tables configured (established 1024 bind 1024)
- K) D$ G' f! u3 ~5 B0 qUDP hash table entries: 256 (order: 0, 4096 bytes). D- q' K9 `& r, G. h
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)) z4 ]# Y$ ~; w$ Q8 [4 v; t
NET: Registered protocol family 1
" F4 l5 Q$ A5 ^" ?5 X# nRPC: Registered named UNIX socket transport module.6 M- E: |) }: ^* q
RPC: Registered udp transport module.
0 t& q5 t/ P, d+ q& L* wRPC: Registered tcp transport module./ c! t* a$ S7 Z% C K
RPC: Registered tcp NFSv4.1 backchannel transport module.
2 h7 t) \) A6 m3 T" v+ y: Yworkingset: timestamp_bits=14 max_order=15 bucket_order=1
* X$ i; N5 u! |* S) i. |$ [/ kBlock layer SCSI generic (bsg) driver version 0.4 loaded (major 250)/ F: i. V5 U( |8 U5 e* I2 u+ n: G
io scheduler noop registered (default)
/ C6 H& {" a9 V- G H, uSerial: 8250/16550 driver, 10 ports, IRQ sharing disabled8 D/ w* p4 J: a- f' p
serial8250.0: ttyS0 at MMIO 0x1c42000 (irq = 25, base_baud = 14250000) is a 16550A
! s% Y$ n* Y- Y3 z4 ~8 Oserial8250.1: ttyS1 at MMIO 0x1d0c000 (irq = 53, base_baud = 8250000) is a 16550A
) E( e/ \/ E" ]: O& c7 aserial8250.2: ttyS2 at MMIO 0x1d0d000 (irq = 61, base_baud = 8250000) is a 16550A% D( J0 L0 I5 Z. f
console [ttyS2] enabled
+ e5 E8 j$ O' }( r' u8 q% Rbrd: module loaded
5 m* i( b, w/ V( R/ ^libphy: Fixed MDIO Bus: probed
! @! a/ u# g' B6 }- ^davinci_mdio davinci_mdio.0: davinci mdio revision 1.5
- B' |/ t2 Z) f: ndavinci_mdio davinci_mdio.0: detected phy mask fffffffe
0 u) t& K5 ?# Y& f- }: ^; j Alibphy: davinci_mdio.0: probed' @; H4 I) ?! Q' m" P
davinci_mdio davinci_mdio.0: phy[0]: device davinci_mdio-0:00, driver SMSC LAN8710/LAN87208 s- O) X# B) V# K3 b7 [4 V
i2c /dev entries driver
+ O& y) A7 b9 c6 v3 I% V+ i: Bdavinci_mmc da830-mmc.0: cannot find GPIO chip davinci_gpio.1
1 O5 f9 Z, D0 a( l4 m5 W/ Q: T! xdavinci_mmc da830-mmc.0: cannot find GPIO chip davinci_gpio.1
# x9 ]: u' ^' V1 c) k1 ]1 Fdavinci_mmc da830-mmc.0: Using DMA, 4-bit mode( d7 B4 }- z, k) M$ l9 b# p
NET: Registered protocol family 10& f* M9 ?" V: f G
sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver5 C# u0 C+ s- U V' e2 b
NET: Registered protocol family 177 q: a P. s6 u5 ^2 U
console [netcon0] enabled
' [& ~; ~6 g# f* {1 E1 f2 l0 c; n0 r7 v! Unetconsole: network logging started
: v9 F5 p2 I9 l* @4 P' u& k) Vdavinci_emac davinci_emac.1: using random MAC addr: 0a:ed:9e:24:43:89# i Y8 ~: f, D+ d7 O
hctosys: unable to open rtc device (rtc0)) C0 ^3 B) e2 D" q& _( V
libphy: PHY davinci_mdio-0:07 not found8 y9 D! G4 l& B( o5 }
net eth0: could not connect to phy davinci_mdio-0:07
! u; K0 a; s6 ~9 _IP-Config: Failed to open eth0
1 K! v9 a* V+ ZIP-Config: No network devices available; d9 v8 {7 G# n. F
mmc0: host does not support reading read-only switch, assuming write-enable
4 ]# c& U2 K- C+ P. m1 H3 j; [6 cmmc0: new high speed SDHC card at address 59b49 `; `; X4 P' D! e. p8 z
mmcblk0: mmc0:59b4 SS08G 7.41 GiB
) F2 S% t2 ~& _0 B9 L mmcblk0: p1 p21 J3 Q+ W6 H }. L, B/ B) a6 G
2 X t4 [0 i7 Y- E2 r5 s9 r/* 此处等待了一段时间 */: |0 w& K& B) x1 Y! B# E O- ~
; u4 j1 i8 q# G v3 lrandom: fast init done8 J( A- ?& b% `9 C+ G- v
VFS: Unable to mount root fs via NFS, trying floppy.
1 k9 z" Q" G @/ ?1 M5 GVFS: Cannot open root device "nfs" or unknown-block(2,0): error -69 o$ P# p' l3 T" N7 L
Please append a correct "root=" boot option; here are the available partitions:, j% i' ] I; ?. J
0100 32768 ram0 (driver?)& \: _: ^/ _) J% @
b300 7764992 mmcblk0 driver: mmcblk2 U% I5 Y9 n4 V+ _
b301 71680 mmcblk0p1 cd4e1bc4-01
: t3 D6 F) y6 d( d: x4 a b302 7675904 mmcblk0p2 cd4e1bc4-02 , s" @( O, c6 i- K4 l/ q
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block4 @% _; q0 Y% Y& m6 v
6 m3 R# ]' D& h8 T4 i1 D+ D
! M+ C2 l5 q0 X; C; T |
|