|
0. 开发板型号: TL138/6748/1808F-EasyEVM-A2, 开发版启动模式模式为SD卡启动
; u, @, m3 T) E0 N5 j
' A. B9 S, V" q. d) b1 \0 l1. 在ubantu16.04(64bit)按照官网安装ti-processor-sdk-linux-omapl138-lcdk-04.00.00.04-Linux-x86-Install.bin7 D& f) j3 _0 X& z8 {
. y1 @5 H }- u3 N% c! S
2. 把uboot, kernel, filesystem写入SD卡, 拨码开关设置为SD启动, 能够正常启动能够进入嵌入式开发版
& z& C, U! k' k
/ t- W/ c6 J% Y5 U3. SD卡启动方式保持不变,但是在uboot中配置为tftp下载内核和nfs挂载方式/ ^3 O; z6 ]7 [( Z- L
! m( D) c0 N0 x# ?1 h! D3 vuboot配置参数如下(由于没有开发板没有自动获取mac地址,所以自己设置为: setenv ethaddr 00:0c:29:bc:7e:9a):9 C5 ^' n) k) D7 T7 |* L, b1 ]
/ ?. Q ]' { Z5 o6 m
setenv uboot_macaddr 1
8 b6 k- H" U; {* J5 }3 r- Xsetenv ethaddr 00:0c:29:bc:7e:9a
1 R2 k3 T6 g3 ]8 D! b: M: P U# V+ Osetenv serverip 192.168.2.192% y* M( d! U1 E* ?7 l! p3 T$ n6 f
setenv ipaddr 192.168.2.191
7 ]5 K6 g. v! x% q' F! s, }/ _+ L1 h3 X4 k2 d
bootcmd=tftp c0700000 zImage;bootz c0700000
. a& h( f2 J' L/ J5 f! [( y4 w+ y% h) 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/nfs0 Y3 S6 B z5 ^6 D
9 t# M& k* b, s% D4. 能够通过tftp下载并启动内核,但是在挂载NFS文件系统之前报错(错误在下面内核启动信息的最后):* v' L6 Z i8 o& G% r# j
; A0 T" i8 N9 J# C; y, h0 r
boot命令后的完整启动信息:' h8 b- f5 o, \, U5 M3 ^' M* a2 Y m
' }; j( _0 ?5 R, X8 q$ x: O
=> boot
& }+ L! l1 t: @+ ZUsing DaVinci-EMAC device* Y: i+ j1 }# i5 x/ S: f( @/ T
TFTP from server 192.168.2.192; our IP address is 192.168.2.191* H- N6 b }$ |3 A- a/ D
Filename 'zImage'.
~% f, k5 H2 F( I* l GLoad address: 0xc0700000
3 s$ }% @2 T: t( X9 q$ f- RLoading: #################################################################
9 O X, F% m7 ]+ G* U2 e3 B #################################################################
! K1 C! [' h: _- m ################################
+ p9 Y5 y) b/ V 288.1 KiB/s0 f t9 ~4 u4 p& w; S5 s/ R. w
done
# p% N, x3 ]# E- f" S" V/ WBytes transferred = 2367360 (241f80 hex)2 L- a8 x0 ]4 [0 M0 h0 L
* ]& P$ c1 C$ e0 A6 X- rStarting kernel ...# A1 T& J/ M5 n# n# X
$ H* [; }& _* ? s
Uncompressing Linux... done, booting the kernel.
" X9 V, b; F, D' y/ f, i4 ~ ~Booting Linux on physical CPU 0x0
e: I* f! @% @5 OLinux 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
$ ]0 I, o/ A% y, m CCPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f0 g8 |* G7 i9 L- x4 R% K. i3 T
CPU: VIVT data cache, VIVT instruction cache* @: L. U% a$ G4 |+ u9 W* J
Machine: AM18x/OMAP-L138 Hawkboard
( Q0 \' S6 z6 l2 cda8xx_rproc_reserve_cma: 'rproc_mem=nn@address' badly specified5 a6 Y; w) W, c; \
'nn' and 'address' must both be non-zero
) w3 F4 {2 @ K0 G G( q. ]) ^2 Ucma: Reserved 16 MiB at 0xc6c00000
- S. ^# Y2 }$ v' UMemory policy: Data cache writethrough
" a! {: }2 w% w4 n3 YDaVinci da850/omap-l138/am18x variant 0x1, ?6 i/ ]% z; Z8 v& l
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32480, x5 q5 o1 N2 K# f3 u) v: ?
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! h2 X0 y$ ?- L" `
PID hash table entries: 512 (order: -1, 2048 bytes)
- N& K) N" N- ~# Q( o# ]1 |Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
; F/ k/ E" N# O& l3 B& F1 JInode-cache hash table entries: 8192 (order: 3, 32768 bytes). {* D0 Q+ b, }2 _0 L& i
Memory: 106592K/131072K available (4529K kernel code, 308K rwdata, 1500K rodata, 228K init, 162K bss, 8096K reserved, 16384K cma-reserved)
* F" a" k4 @: t+ n6 t' H' m7 `Virtual kernel memory layout:
# b d# F9 D+ M$ | vector : 0xffff0000 - 0xffff1000 ( 4 kB)
8 }4 H& k( y" {- t) c fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
( {9 ]; v) r" c5 ? vmalloc : 0xc8800000 - 0xff800000 ( 880 MB)$ F, ]% X J* ?" k
lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)
2 I- {! U& K* K4 g modules : 0xbf000000 - 0xc0000000 ( 16 MB): `2 i4 G2 p, I, g. C
.text : 0xc0008000 - 0xc0474b38 (4531 kB)* U5 z* |0 k' H' _& p% d
.init : 0xc05ed000 - 0xc0626000 ( 228 kB)
9 V. \" j/ n' D .data : 0xc0626000 - 0xc0673110 ( 309 kB)! T8 w: n6 c# F7 u. |1 F4 K
.bss : 0xc0673110 - 0xc069bc08 ( 163 kB)
4 f' J" Z7 p! E' E; R" i% ]" Y) \SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
2 E7 I* u! W% R uPreemptible hierarchical RCU implementation.
; q! o/ p, Z# g1 L Build-time adjustment of leaf fanout to 32.5 r3 Z8 T% Y6 g! D' @6 ?- c+ m
NR_IRQS:245& N" ?" I. B5 l; I
clocksource: timer0_1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns* R6 Z5 h: @0 c4 G$ Y( ~% K' w: e
sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns) W! w: ^( W# T6 n7 C9 [; w7 e
Console: colour dummy device 80x30( m7 h3 l1 q" {! ]
Calibrating delay loop... 227.32 BogoMIPS (lpj=1136640)
! l- k2 i2 v, n; U7 a |pid_max: default: 32768 minimum: 301
% _& E: s1 F; b; C; u+ IMount-cache hash table entries: 1024 (order: 0, 4096 bytes)5 t7 S. H4 a ?5 [6 g
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
' O+ H! T2 O9 P9 t# sCPU: Testing write buffer coherency: ok
! s9 {7 e9 R; n9 a2 N3 j/ BSetting up static identity map for 0xc0008400 - 0xc0008458& K! D \% @, F3 B: f
devtmpfs: initialized" U8 ^* i3 ^6 G6 h1 P0 t
VFP support v0.3: not present
( V9 Y5 A; t3 qclocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
2 H' y9 C. G) }( R; Dfutex hash table entries: 256 (order: -1, 3072 bytes)
z$ d3 Z. `) D7 Opinctrl core: initialized pinctrl subsystem3 n4 \' M4 D7 U: t% I
NET: Registered protocol family 169 ^8 E, Y9 T8 N
DMA: preallocated 256 KiB pool for atomic coherent allocations1 Z# c7 P ~' r2 S P
cpuidle: using governor ladder
$ J7 H; i! w: P% Lcpuidle: using governor menu
: J! k0 P a6 C) j9 N7 K3 VEMAC: MII PHY configured
2 l* K n9 X# r ymux: initialized GPIO3_12
* z/ z& w v; R, w1 k; \- _mux: Setting register GPIO3_12' t4 \3 d! ?% Y) J
mux: PINMUX7 (0x0000001c) = 0x00110110 -> 0x00118110
( Y. Z! Q& A( O/ S- ?) [mux: initialized GPIO3_131 D$ h. i. Q0 I
mux: Setting register GPIO3_13, {4 C* X$ c. S6 p) k% ^ S+ i
mux: PINMUX7 (0x0000001c) = 0x00118110 -> 0x00118810
& n8 L9 y# U5 \mux: initialized GPIO2_4
7 k& A% ]7 t9 V/ T" F4 m: [7 w9 `7 Wmux: Setting register GPIO2_48 @2 f% @" @% C) }3 J
mux: PINMUX6 (0x00000018) = 0x00000000 -> 0x000080008 G W/ \, n4 Y! Y9 [
mux: initialized GPIO6_131 k3 D& \% ?2 X$ }& ?- O
mux: Setting register GPIO6_131 S* p( X3 T, M2 Y
mux: PINMUX13 (0x00000034) = 0x00000000 -> 0x00000800* o8 A# ?6 V ~7 D x6 W
da8xx_register_rproc: memory not reserved for DSP, not registering DSP device
8 U6 ?$ U% X5 }4 I4 homapl138_hawk_init: dsp/rproc registration failed: -12
/ {9 |, {( i" [* M! nedma edma.0: Legacy memcpy is enabled, things might not work4 X' `+ M# v: s% y" M) h" t
edma edma.0: TI EDMA DMA engine driver) s) T9 w+ B( i, F( j
edma edma.1: Legacy memcpy is enabled, things might not work
# _/ R: l5 w2 ^. ]edma edma.1: TI EDMA DMA engine driver3 S5 e V Z0 T4 O: F9 o
clocksource: Switched to clocksource timer0_1
( h8 h, Z: p" V3 z# nNET: Registered protocol family 2
# K8 o q* ^, u5 ?, c, i6 [TCP established hash table entries: 1024 (order: 0, 4096 bytes), H) S: b* d8 R3 H' a
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
, g3 @* p' H( Q, x. n9 e/ nTCP: Hash tables configured (established 1024 bind 1024)* G9 R' F p" e. S/ b
UDP hash table entries: 256 (order: 0, 4096 bytes)
3 G" x; c! k4 k. OUDP-Lite hash table entries: 256 (order: 0, 4096 bytes)7 @1 M% S& A ]% h/ ~+ X7 m
NET: Registered protocol family 1
3 z# ~& p# j/ ~! g$ K4 N! e/ f2 a, iRPC: Registered named UNIX socket transport module./ T7 M1 A1 X! |
RPC: Registered udp transport module.
7 D% R* w! z, B4 ORPC: Registered tcp transport module.& R( _% |" X5 E( h4 E4 R" H2 Q- u
RPC: Registered tcp NFSv4.1 backchannel transport module.6 W1 u1 p9 G( v: a2 W+ N
workingset: timestamp_bits=14 max_order=15 bucket_order=1
) s- Q4 H4 m( L4 ~& b. a2 kBlock layer SCSI generic (bsg) driver version 0.4 loaded (major 250)8 H8 ~, [: @7 g3 a! n2 p0 y" `
io scheduler noop registered (default)
4 H* J' Z; X# ~; D& ySerial: 8250/16550 driver, 10 ports, IRQ sharing disabled& n" m3 [( k# m/ S Q+ b: u
serial8250.0: ttyS0 at MMIO 0x1c42000 (irq = 25, base_baud = 14250000) is a 16550A' i/ Q7 S5 Y" H; X
serial8250.1: ttyS1 at MMIO 0x1d0c000 (irq = 53, base_baud = 8250000) is a 16550A
_! J# R& @% rserial8250.2: ttyS2 at MMIO 0x1d0d000 (irq = 61, base_baud = 8250000) is a 16550A" [8 s8 d" O) M" x- k. H) g
console [ttyS2] enabled& p/ W z. |; M- A8 a3 D
brd: module loaded( ^& n. w- |# ]. B. [7 a- x0 D
libphy: Fixed MDIO Bus: probed
! E% z0 a2 f; O* a3 vdavinci_mdio davinci_mdio.0: davinci mdio revision 1.5 `! z1 ~- ~2 `
davinci_mdio davinci_mdio.0: detected phy mask fffffffe
2 Q9 ~2 _, [# P! flibphy: davinci_mdio.0: probed% A) o! D% |# j/ I- b2 ~8 t
davinci_mdio davinci_mdio.0: phy[0]: device davinci_mdio-0:00, driver SMSC LAN8710/LAN8720: u% ^& v3 \$ \+ h) K6 u
i2c /dev entries driver6 {( P; L7 h+ j8 y X
davinci_mmc da830-mmc.0: cannot find GPIO chip davinci_gpio.1- w, X/ l# J) x
davinci_mmc da830-mmc.0: cannot find GPIO chip davinci_gpio.1
0 p ]8 g. n2 |( @6 O4 Q; \; w; Z- cdavinci_mmc da830-mmc.0: Using DMA, 4-bit mode
1 J; F, z* K; V x6 ANET: Registered protocol family 10
* {4 N2 G# A+ e2 ~' B& i* \! Jsit: IPv6, IPv4 and MPLS over IPv4 tunneling driver3 h g' c: u; Z6 `2 M7 e) W
NET: Registered protocol family 17
9 M' |+ P m3 L" h3 U3 @' G" D9 _console [netcon0] enabled$ d6 L# V: v9 T3 {* I% w9 Y
netconsole: network logging started/ J V. R X# Z2 X& [! g* p
davinci_emac davinci_emac.1: using random MAC addr: 0a:ed:9e:24:43:89
( Q- j- ] R& }! Lhctosys: unable to open rtc device (rtc0)! |& ?, u+ L- x" ^; O
libphy: PHY davinci_mdio-0:07 not found; [" s% Y {4 [. s) p( N
net eth0: could not connect to phy davinci_mdio-0:07
& o9 G0 w) g7 LIP-Config: Failed to open eth0
+ {7 E: j; L/ s0 v# UIP-Config: No network devices available
1 M: ], J5 ]" _( q( e cmmc0: host does not support reading read-only switch, assuming write-enable
( m8 \7 F. p% O: D% ]mmc0: new high speed SDHC card at address 59b4
. u, g6 q9 z2 b1 g! i# lmmcblk0: mmc0:59b4 SS08G 7.41 GiB / y+ p% J8 ?. S( w( J1 r
mmcblk0: p1 p2
' o, T# }4 d1 R# }- o4 c5 T g; p$ G
6 q1 K" H7 b- ]# y1 ?/ t* r/* 此处等待了一段时间 */% H4 s4 Y& {0 H& I# M0 Z+ E3 i
0 M2 n; p, k9 n, R* L6 Q
random: fast init done9 A' \! }* x* t5 ]/ L$ t
VFS: Unable to mount root fs via NFS, trying floppy.6 L3 d4 S5 K# L( U0 C5 u9 v
VFS: Cannot open root device "nfs" or unknown-block(2,0): error -6, w6 o$ V' {5 P# b9 ^
Please append a correct "root=" boot option; here are the available partitions:
) \; w# ~2 v$ y3 a0100 32768 ram0 (driver?)7 E. c9 t$ i+ h* d4 ]( z- Q
b300 7764992 mmcblk0 driver: mmcblk1 G, Q2 f" h4 ?/ j) x& ^' `3 _% ]
b301 71680 mmcblk0p1 cd4e1bc4-01
* q3 j o Y2 b* G7 s% B# Z2 @( h b302 7675904 mmcblk0p2 cd4e1bc4-02 . K4 | u) q) M0 D. ?0 I. z, r
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block
* o4 g- x" r" U3 c9 ^5 |* b( K0 d& H
2 V0 K" U2 e( t
|
|