|
0. 开发板型号: TL138/6748/1808F-EasyEVM-A2, 开发版启动模式模式为SD卡启动' | @ V, D: t |/ R
- c0 b: K! y T4 w1. 在ubantu16.04(64bit)按照官网安装ti-processor-sdk-linux-omapl138-lcdk-04.00.00.04-Linux-x86-Install.bin
! W/ g& c6 F; O ~; ]' q$ t) t" n! p3 n0 ^: e5 R# F6 p" b) F+ S% p
2. 把uboot, kernel, filesystem写入SD卡, 拨码开关设置为SD启动, 能够正常启动能够进入嵌入式开发版
( H9 t+ n! j: O+ I# O+ M2 \+ B$ i/ I
3. SD卡启动方式保持不变,但是在uboot中配置为tftp下载内核和nfs挂载方式
3 N! B8 D6 B4 \* \ P4 }' v: W: {
5 s1 A: I% y$ f, [0 f1 D# ~: ^uboot配置参数如下(由于没有开发板没有自动获取mac地址,所以自己设置为: setenv ethaddr 00:0c:29:bc:7e:9a):, P7 e0 T% P* |' B$ X
$ M' e& V9 _. Rsetenv uboot_macaddr 19 _) a; s6 T6 E- \1 F! U( [+ {( j
setenv ethaddr 00:0c:29:bc:7e:9a - h! ?0 z5 }6 _% O. f0 P2 [* o. T
setenv serverip 192.168.2.192" [: P' V6 G% Q* f$ y
setenv ipaddr 192.168.2.191
# X$ Q: Z( @ ^, _9 I) l8 J9 s! h* E1 Z2 L) U1 `
bootcmd=tftp c0700000 zImage;bootz c0700000
1 F$ W4 R: A% ?8 K* a2 D7 I
# y1 ]' M) @+ [1 lbootargs=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
# D+ _" f! p% _* K3 c$ }. ]0 @( Q
6 b# B4 |7 @0 _. m! U' `4. 能够通过tftp下载并启动内核,但是在挂载NFS文件系统之前报错(错误在下面内核启动信息的最后):
# c) T8 i8 ~: w/ p
9 R& \2 Q# Z" F& e7 X! Iboot命令后的完整启动信息:
: b8 o: {5 E; I2 N! i1 X
, i. g8 O4 c5 k6 Y- f=> boot# c: P1 F, Y& X2 o0 A* q2 m' h$ q
Using DaVinci-EMAC device
6 o1 q) z! E0 j$ Q* ?/ d& y- I2 iTFTP from server 192.168.2.192; our IP address is 192.168.2.191
; M, V) F5 e' V6 J3 }; pFilename 'zImage'.
' H; t5 Y+ Q- K- d. H' NLoad address: 0xc0700000
. F! Y& x( _' |( {( [. s- FLoading: #################################################################
" d9 U- P R$ h! o. v+ M #################################################################
, `, V1 x0 l0 W) G) u# }3 P3 L1 p0 o ################################; I5 j' b( u, @+ z* m' w# G% n
288.1 KiB/s
8 {( X% y+ A$ ?0 u; z6 sdone
6 c1 v* s! {" j ZBytes transferred = 2367360 (241f80 hex)
1 ]1 L6 ? ^. z z0 q1 `- ? a. Z
a) L7 O4 E' ?: Z9 r- |Starting kernel ...
% ^8 q2 u9 o, F9 M( g0 k# o% W+ \
Uncompressing Linux... done, booting the kernel.9 X4 |# D. s* C; B
Booting Linux on physical CPU 0x0
) m* F$ o$ B% k4 t3 W7 B- u( S/ E5 J7 ?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
' Y$ ^# L" }% S# ^( s- B( nCPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f" g+ e( r" x' u6 M+ ^4 T" O/ S# D
CPU: VIVT data cache, VIVT instruction cache
; h8 i0 i/ f. d2 y1 m* _& E. qMachine: AM18x/OMAP-L138 Hawkboard8 [7 f" R( L- _. [+ ^" g! i9 V
da8xx_rproc_reserve_cma: 'rproc_mem=nn@address' badly specified0 Y! u* j* U; ^# C) {
'nn' and 'address' must both be non-zero
3 l$ P/ U4 F; U# y j9 I9 n1 G# W% ccma: Reserved 16 MiB at 0xc6c00000
6 s7 L3 _1 p/ \0 y4 fMemory policy: Data cache writethrough
2 r( @1 r4 S1 u1 K& MDaVinci da850/omap-l138/am18x variant 0x1/ h5 Y" S' N% P
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 324801 x6 y* ?1 b+ G$ y" L9 a
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* U8 _ F: V0 T. y' r
PID hash table entries: 512 (order: -1, 2048 bytes)
4 Y1 C* b# t. p% T+ MDentry cache hash table entries: 16384 (order: 4, 65536 bytes)
% ]- _) o( {7 ^/ qInode-cache hash table entries: 8192 (order: 3, 32768 bytes)
8 F5 S0 j4 d+ [ O" C/ p8 ~. rMemory: 106592K/131072K available (4529K kernel code, 308K rwdata, 1500K rodata, 228K init, 162K bss, 8096K reserved, 16384K cma-reserved); N) T2 P j* h& R# d; K: `
Virtual kernel memory layout:
) |$ p& g, d0 M vector : 0xffff0000 - 0xffff1000 ( 4 kB)! `3 j% W2 @. W0 X7 f# n
fixmap : 0xffc00000 - 0xfff00000 (3072 kB)- y9 H. X$ R2 D0 J& n7 r
vmalloc : 0xc8800000 - 0xff800000 ( 880 MB)
8 E6 O. k- y# { lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)4 b* A$ f; y, v4 n" w, X& Q' O
modules : 0xbf000000 - 0xc0000000 ( 16 MB): l! Q; }/ X# H9 i
.text : 0xc0008000 - 0xc0474b38 (4531 kB)" e4 [" D' s; Q3 d6 J* t
.init : 0xc05ed000 - 0xc0626000 ( 228 kB)4 v! R1 g5 G! f. s
.data : 0xc0626000 - 0xc0673110 ( 309 kB) f! h$ v' L5 y" r
.bss : 0xc0673110 - 0xc069bc08 ( 163 kB)
& P2 C* g* B! B( U: W1 g% o+ }SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1* D& i! a8 S) c3 Q
Preemptible hierarchical RCU implementation.
+ K/ n7 p# H7 t( B/ o4 E) O& x! r Build-time adjustment of leaf fanout to 32.) [5 D% J) _ U8 {
NR_IRQS:245. q; a& i2 }' L1 s: H
clocksource: timer0_1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns) P1 x! W, ~' `5 \7 B: P0 H
sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
6 R6 g: V* R& M/ EConsole: colour dummy device 80x309 X M; o' J2 H, M3 l* J
Calibrating delay loop... 227.32 BogoMIPS (lpj=1136640)+ H. y# n4 r1 z! O. z7 G/ ]5 p5 d
pid_max: default: 32768 minimum: 301
5 t' I# b' X, U+ JMount-cache hash table entries: 1024 (order: 0, 4096 bytes)
( o0 g" v- x) o" [Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)0 `, ?# _- n/ r+ z! t$ F
CPU: Testing write buffer coherency: ok
* Q5 F% ?! g- Q& V+ D* OSetting up static identity map for 0xc0008400 - 0xc00084581 w" I2 R1 o U) O- N5 i
devtmpfs: initialized
3 n3 V' T/ |/ O; rVFP support v0.3: not present1 @1 O; {6 ^4 X+ S9 V
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
2 i% z; \7 b, W8 Sfutex hash table entries: 256 (order: -1, 3072 bytes)
$ i& y' ^' @$ M$ P, w( H$ Y8 Dpinctrl core: initialized pinctrl subsystem
3 h. d/ |5 g# W5 gNET: Registered protocol family 16
8 F) _0 _; o, RDMA: preallocated 256 KiB pool for atomic coherent allocations
0 q9 E2 m! U) `* Qcpuidle: using governor ladder. M2 y# @2 }7 [3 ~) ?+ s2 h1 d
cpuidle: using governor menu
- \# J! u/ ^6 Q2 REMAC: MII PHY configured E3 F6 W8 \: W& f
mux: initialized GPIO3_12
$ L, m+ x$ h3 y" fmux: Setting register GPIO3_12, i# T; a% B* [# \7 F
mux: PINMUX7 (0x0000001c) = 0x00110110 -> 0x00118110
. U4 n7 x( l3 L& [4 P( Lmux: initialized GPIO3_13
) ?5 k/ E {% ]0 omux: Setting register GPIO3_13
, Y; I' @2 A5 t1 o' C! ]mux: PINMUX7 (0x0000001c) = 0x00118110 -> 0x00118810" j) K( Y9 I5 c" F
mux: initialized GPIO2_4
0 ]" @5 X/ j% \mux: Setting register GPIO2_4+ B: @! ~/ p2 l2 j1 g T# A
mux: PINMUX6 (0x00000018) = 0x00000000 -> 0x00008000
5 a1 `2 g' x" K3 V: W! L3 amux: initialized GPIO6_13
9 n3 ?" p- ~% M( wmux: Setting register GPIO6_137 k" Q- h6 H3 `
mux: PINMUX13 (0x00000034) = 0x00000000 -> 0x000008004 v/ y, d; A2 t3 z
da8xx_register_rproc: memory not reserved for DSP, not registering DSP device
6 T4 m) O$ K# b" B/ pomapl138_hawk_init: dsp/rproc registration failed: -12! T. \! I! K$ E/ W! ^
edma edma.0: Legacy memcpy is enabled, things might not work
) u W: Q3 _* fedma edma.0: TI EDMA DMA engine driver
8 E3 v! o- R: S" L I" e; L- M, iedma edma.1: Legacy memcpy is enabled, things might not work
: }9 D) Z* \% X. bedma edma.1: TI EDMA DMA engine driver1 ^+ y! _1 d+ w" g f; J3 Q: u2 L
clocksource: Switched to clocksource timer0_1
: |6 k$ P1 w ^, A+ I( T7 rNET: Registered protocol family 2. w; R( _2 ^9 i
TCP established hash table entries: 1024 (order: 0, 4096 bytes): [! I- \( F2 i- u! v( m O
TCP bind hash table entries: 1024 (order: 0, 4096 bytes) `. r. g2 I5 w: T5 m; d; U
TCP: Hash tables configured (established 1024 bind 1024)0 H0 X6 i+ z* W# _/ e1 y
UDP hash table entries: 256 (order: 0, 4096 bytes)# u( G* [+ E5 U2 y, J& z
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
' d' @$ L* y+ u$ cNET: Registered protocol family 1# M1 N, g9 q( g
RPC: Registered named UNIX socket transport module.
8 S+ Z" a. \$ ~( ~+ ~0 ~! T# GRPC: Registered udp transport module.
9 _, x8 D6 B* K/ Y7 XRPC: Registered tcp transport module.
% {9 a# B3 d8 `( { \5 V2 fRPC: Registered tcp NFSv4.1 backchannel transport module.
3 Q4 g! L% L8 K) P. Z1 J W/ Xworkingset: timestamp_bits=14 max_order=15 bucket_order=1
/ j8 v$ U7 [' d ^* n6 \% Q m" RBlock layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
$ D, c8 I1 c( J- P- F8 Nio scheduler noop registered (default)7 r3 E4 _0 n& U) o
Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
; ~- @+ n1 m6 f3 F: D, w1 Aserial8250.0: ttyS0 at MMIO 0x1c42000 (irq = 25, base_baud = 14250000) is a 16550A8 [: x( o: y; u& M) Q; R. k& X
serial8250.1: ttyS1 at MMIO 0x1d0c000 (irq = 53, base_baud = 8250000) is a 16550A* v+ l5 w- D' i
serial8250.2: ttyS2 at MMIO 0x1d0d000 (irq = 61, base_baud = 8250000) is a 16550A o: e: |9 E. y
console [ttyS2] enabled6 F6 ]: s/ Q0 `! l
brd: module loaded
% k k. a9 u8 R5 rlibphy: Fixed MDIO Bus: probed
0 Z1 V' m- B. Y( S9 U* h9 Kdavinci_mdio davinci_mdio.0: davinci mdio revision 1.5# A& b4 R0 i/ ~9 @9 \1 e* `
davinci_mdio davinci_mdio.0: detected phy mask fffffffe
+ D3 l; C o' F7 ]libphy: davinci_mdio.0: probed: H4 \: P4 e! ^5 v5 m+ o, ]
davinci_mdio davinci_mdio.0: phy[0]: device davinci_mdio-0:00, driver SMSC LAN8710/LAN8720
: e. W$ W' i8 E. Ci2c /dev entries driver
( r8 r" M/ M" H- Tdavinci_mmc da830-mmc.0: cannot find GPIO chip davinci_gpio.14 K0 e4 D# t5 ~5 V( I+ r( G! |) A
davinci_mmc da830-mmc.0: cannot find GPIO chip davinci_gpio.1
' ?( Q9 D3 J6 h$ Odavinci_mmc da830-mmc.0: Using DMA, 4-bit mode2 |" r5 \; p& r. c8 U
NET: Registered protocol family 101 W# g& z5 [/ K8 u) x
sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver1 t# k5 ]0 W" ]
NET: Registered protocol family 17
0 b& p. Z y, @, Gconsole [netcon0] enabled5 Z& {% P+ s8 T# [( D
netconsole: network logging started
& w$ d# L% E$ x# P! k* R* Bdavinci_emac davinci_emac.1: using random MAC addr: 0a:ed:9e:24:43:89( i. e- K$ W* o k: j# L6 w" k
hctosys: unable to open rtc device (rtc0), U: \ Y& r& c
libphy: PHY davinci_mdio-0:07 not found% Q3 [1 v, o6 ^! V
net eth0: could not connect to phy davinci_mdio-0:07; ~' a% E4 h6 A( P
IP-Config: Failed to open eth0/ `0 O5 }8 r7 c# T+ {( K
IP-Config: No network devices available
* P9 d4 A! ^8 a) X# Y+ P: @mmc0: host does not support reading read-only switch, assuming write-enable
) {4 v. T- W; x$ Q2 u" vmmc0: new high speed SDHC card at address 59b40 _& C. n# B+ q- p* f
mmcblk0: mmc0:59b4 SS08G 7.41 GiB 5 |& [3 I- s# T$ ]/ a& a- B
mmcblk0: p1 p2
7 w7 b/ m0 W. G, @* H9 Z
/ @; P, W; Y9 C+ ?9 W4 T/* 此处等待了一段时间 */
6 B: |0 j3 p k" N" U! k W% L; }4 y
random: fast init done
' B1 B6 r5 B4 h3 k: qVFS: Unable to mount root fs via NFS, trying floppy.0 K# D p; R- Y! v( \
VFS: Cannot open root device "nfs" or unknown-block(2,0): error -6' _$ d5 ]- l8 O2 l1 [; O0 Z! b
Please append a correct "root=" boot option; here are the available partitions:9 a" ^' n! I7 _& `6 m
0100 32768 ram0 (driver?)
5 V0 s$ f* ^( |7 ~b300 7764992 mmcblk0 driver: mmcblk
% U' I: P! p: U b301 71680 mmcblk0p1 cd4e1bc4-01
, }/ {, J$ T+ L3 J1 ` b302 7675904 mmcblk0p2 cd4e1bc4-02 + X* g7 K# m" M" \' k
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block& v& j2 L$ P2 ~5 ^
! S/ t q% \3 T5 ~( P+ s
, `; `' f M% E) `7 C K
|
|