|
0. 开发板型号: TL138/6748/1808F-EasyEVM-A2, 开发版启动模式模式为SD卡启动
# q% ]; L/ D: o( i! r5 M! H6 G2 N( P& t* B6 f! C
1. 在ubantu16.04(64bit)按照官网安装ti-processor-sdk-linux-omapl138-lcdk-04.00.00.04-Linux-x86-Install.bin; W' z4 A& |! T7 d% m$ I8 z' ]
) [$ v' J6 @7 h- \$ g# \2. 把uboot, kernel, filesystem写入SD卡, 拨码开关设置为SD启动, 能够正常启动能够进入嵌入式开发版/ @& @4 T/ i+ ~1 q6 ^8 ]
9 C- ~' t7 q9 Q8 p0 b5 t7 f1 B
3. SD卡启动方式保持不变,但是在uboot中配置为tftp下载内核和nfs挂载方式' r1 ] g9 L) N m: \+ s
( x# i% V0 P* |: ?1 xuboot配置参数如下(由于没有开发板没有自动获取mac地址,所以自己设置为: setenv ethaddr 00:0c:29:bc:7e:9a):
2 D# o$ H, S3 \4 H$ n- V o( ~/ Y. J* g$ w0 r) a" @ Y1 z
setenv uboot_macaddr 1# j0 V" R s6 k( v/ @7 M$ o" z
setenv ethaddr 00:0c:29:bc:7e:9a
; I# M3 l) h$ P, Gsetenv serverip 192.168.2.192( w# g$ H) X4 d' N5 \
setenv ipaddr 192.168.2.191; d& c. n5 \5 x( Q- M( I' ^
0 M( M" b2 A& R P
bootcmd=tftp c0700000 zImage;bootz c0700000+ h& r, y$ J" i& n5 V2 p
: n8 L( H& ]+ X- t% x
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
* L$ Y k. v6 k/ ^ b
" q% B. R, \& {2 n4 R& `- Y# E( ?) V4. 能够通过tftp下载并启动内核,但是在挂载NFS文件系统之前报错(错误在下面内核启动信息的最后):
- W: W! Q/ W0 u, s. }5 _2 m' m! @3 B
/ z/ n2 t2 R* o9 ^1 g& V' ]8 ]boot命令后的完整启动信息:
. r/ A3 ~7 I& ^* _+ m( x# y7 z6 O) n, x! Z
=> boot
# h; h. D- Z. r& m3 l$ }9 A+ C3 _Using DaVinci-EMAC device( |$ n& n+ I& }9 e, J
TFTP from server 192.168.2.192; our IP address is 192.168.2.191
8 |( N2 j5 s2 D/ l1 v- D) i6 ^Filename 'zImage'.
" K _ _2 L7 J) ^Load address: 0xc0700000
4 b5 [2 W$ u, g9 nLoading: #################################################################/ P! F- c E5 p1 ]6 [/ h9 V
#################################################################& P) v4 C. }: \' X& l# j" ^8 B$ m/ U9 w
################################
' [4 t- S1 u+ X: V 288.1 KiB/s
& W! M( r. j, Q2 Z! R# W- Gdone! p* L% [$ k; a5 R- L' Q
Bytes transferred = 2367360 (241f80 hex)
( e, \' J) ?% G7 S. U
# @! \1 H9 N5 |0 Z9 y9 }Starting kernel ...+ `5 r6 Q4 W* M% C: `# y
1 v0 r# @7 {2 {! L- }8 Y! ]3 aUncompressing Linux... done, booting the kernel.2 T7 z8 g! H4 u5 }
Booting Linux on physical CPU 0x0# j0 z# v% o, R) 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- R1 n" i' f. V s- p
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f; p5 W! o2 D$ S" v3 ?7 ^2 J
CPU: VIVT data cache, VIVT instruction cache" W, Z( B& c. H
Machine: AM18x/OMAP-L138 Hawkboard) J1 C( v- h% S. e# Z8 O
da8xx_rproc_reserve_cma: 'rproc_mem=nn@address' badly specified9 l2 b% g% b- K# ^* B Z
'nn' and 'address' must both be non-zero
( V8 ?& e$ W2 e) c0 qcma: Reserved 16 MiB at 0xc6c00000! ]5 n. S" i: `' N
Memory policy: Data cache writethrough
" \5 @1 N- h+ q w+ rDaVinci da850/omap-l138/am18x variant 0x1
2 w. W2 H2 a) X' |, N4 N# fBuilt 1 zonelists in Zone order, mobility grouping on. Total pages: 32480* x3 r5 [3 w& `) q$ `( 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' {, W% j3 ^3 ~7 D
PID hash table entries: 512 (order: -1, 2048 bytes)
5 H9 D- Z* ?# {Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)+ B$ c+ K7 [+ H7 H" O. N7 h' e
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)' ^- [* N1 V9 M3 r
Memory: 106592K/131072K available (4529K kernel code, 308K rwdata, 1500K rodata, 228K init, 162K bss, 8096K reserved, 16384K cma-reserved)
: Q, m: S! f3 e/ y/ J0 N( EVirtual kernel memory layout:
: l1 b" v- i( A. E' g) ]1 F. h- g vector : 0xffff0000 - 0xffff1000 ( 4 kB)" W$ O1 |" g m# }: T. Y
fixmap : 0xffc00000 - 0xfff00000 (3072 kB)# g) n% i9 G; J/ u; s, u2 x
vmalloc : 0xc8800000 - 0xff800000 ( 880 MB)
* v" Q: ^6 z9 \; \1 B& Z c8 g lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)" H8 h" F/ v2 @% E
modules : 0xbf000000 - 0xc0000000 ( 16 MB)
' ~4 W3 y9 d+ \& P .text : 0xc0008000 - 0xc0474b38 (4531 kB)
2 I4 Y# G4 T4 `$ s .init : 0xc05ed000 - 0xc0626000 ( 228 kB)
1 ^ t) }* t; M- L; L" L: w/ f .data : 0xc0626000 - 0xc0673110 ( 309 kB)+ A* X3 } ]7 A5 C& S
.bss : 0xc0673110 - 0xc069bc08 ( 163 kB)
! V. t3 n- z$ [$ e, V3 DSLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1( f# Z8 p2 n9 g* G2 j; X6 e
Preemptible hierarchical RCU implementation.1 j2 f' E$ u* A! p" @
Build-time adjustment of leaf fanout to 32.
- f' j5 N% o+ ]' Q$ _8 MNR_IRQS:2459 j% P N5 ~) d0 P7 g1 ^- N( X2 _
clocksource: timer0_1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns6 H; h% c% c! Y: i+ k
sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
/ s, }" ]! O% Y7 a) @$ dConsole: colour dummy device 80x307 i7 w6 C3 t" L/ P
Calibrating delay loop... 227.32 BogoMIPS (lpj=1136640)
; f. }# \5 g! S1 N: f2 p3 H% apid_max: default: 32768 minimum: 301* y& {' \4 G7 C) `- }
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
) G! e& z3 a% q, |& T( _# mMountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)& n: q3 c7 m r. S: {3 f7 Z
CPU: Testing write buffer coherency: ok
( }% B+ I+ Z6 }9 U+ s3 B) F" ?7 _/ BSetting up static identity map for 0xc0008400 - 0xc0008458
7 J' W- K" [- O; \' ], Cdevtmpfs: initialized
; E8 o1 ^: e; M0 uVFP support v0.3: not present
9 {, r7 ]7 L+ `* |clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns) W8 D! W V5 N" |6 i; s0 j' o0 h
futex hash table entries: 256 (order: -1, 3072 bytes)5 k; v. O# c" j8 S! r
pinctrl core: initialized pinctrl subsystem
7 j& l9 ~* } a) T0 L& p$ oNET: Registered protocol family 16
) S: C* \7 g; I9 {) n5 jDMA: preallocated 256 KiB pool for atomic coherent allocations
7 \6 {% i- J* d6 g& B. c% K" T9 Pcpuidle: using governor ladder
1 \( o# Q& r3 L6 P6 M n/ tcpuidle: using governor menu, U4 h7 @/ w! ]7 F: C7 E6 c, {4 |: d
EMAC: MII PHY configured: E( }, K. P: S9 m" W4 J! l& k& F3 a/ Y
mux: initialized GPIO3_12" @% \5 m5 ^; u- x( [) R
mux: Setting register GPIO3_12
7 W# }) ]4 P# {0 i3 v; s \mux: PINMUX7 (0x0000001c) = 0x00110110 -> 0x00118110
: _; \8 \/ e' o8 I1 O9 j, m! B0 Smux: initialized GPIO3_13: H B: c+ p/ g% |
mux: Setting register GPIO3_13
1 d1 c+ l. w+ r# Z! M& F3 I- |4 ~mux: PINMUX7 (0x0000001c) = 0x00118110 -> 0x00118810
. I0 y- f, Y& Z! Lmux: initialized GPIO2_4
0 I4 U; j. O8 m1 kmux: Setting register GPIO2_4
) J8 n% D4 {- ]2 T- Y# t' Z9 }mux: PINMUX6 (0x00000018) = 0x00000000 -> 0x00008000
; V2 t( O5 n' N/ z& Amux: initialized GPIO6_13
$ d; Z, x. l. X' kmux: Setting register GPIO6_13
! R1 ~) g. I% N$ K5 [% Q8 f- d+ dmux: PINMUX13 (0x00000034) = 0x00000000 -> 0x00000800, E- Y! t+ ^1 B, F
da8xx_register_rproc: memory not reserved for DSP, not registering DSP device
% p6 C8 s q, D( f6 x* Qomapl138_hawk_init: dsp/rproc registration failed: -12
: N9 S1 v6 X) \! U* g7 X. [edma edma.0: Legacy memcpy is enabled, things might not work
9 L7 F K* T+ F7 a' sedma edma.0: TI EDMA DMA engine driver$ Z& K" n) p: U" W" K; [% f
edma edma.1: Legacy memcpy is enabled, things might not work/ e* W/ P$ k5 o2 M* V
edma edma.1: TI EDMA DMA engine driver
* ^( n _& M1 hclocksource: Switched to clocksource timer0_19 k( K8 e4 w) Q2 D
NET: Registered protocol family 2
. S7 E2 t% ^1 [ xTCP established hash table entries: 1024 (order: 0, 4096 bytes)
, Z7 A3 ~/ c( \. }2 A2 N! pTCP bind hash table entries: 1024 (order: 0, 4096 bytes)
7 O2 r8 V2 T! U, h$ p% [TCP: Hash tables configured (established 1024 bind 1024)
) C1 g s5 N6 Q* o% z/ ?. XUDP hash table entries: 256 (order: 0, 4096 bytes)
6 A+ y9 O! z# |7 f* XUDP-Lite hash table entries: 256 (order: 0, 4096 bytes)9 K+ G" K8 H, i/ e* f( H2 f
NET: Registered protocol family 1
2 j4 a. X/ A& _7 x% O/ Q( a2 PRPC: Registered named UNIX socket transport module.8 {7 o |, P; ]7 e9 x. d9 K
RPC: Registered udp transport module., @! j7 ^1 L0 ?
RPC: Registered tcp transport module.
5 U' k `' S) w X2 CRPC: Registered tcp NFSv4.1 backchannel transport module.
! ]$ N5 W2 h+ v2 Y. ?workingset: timestamp_bits=14 max_order=15 bucket_order=18 t6 B- j3 G6 H! `- ^1 T2 l& G/ o& e
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
/ F! N2 Y8 x$ m, x9 Hio scheduler noop registered (default)
0 C6 E8 H, y/ L' G; g; E1 q YSerial: 8250/16550 driver, 10 ports, IRQ sharing disabled
0 m- H2 s" R: z+ Yserial8250.0: ttyS0 at MMIO 0x1c42000 (irq = 25, base_baud = 14250000) is a 16550A
& B o* V: t) s1 G3 Q% ?serial8250.1: ttyS1 at MMIO 0x1d0c000 (irq = 53, base_baud = 8250000) is a 16550A; N* i3 q; r! O M* P5 I
serial8250.2: ttyS2 at MMIO 0x1d0d000 (irq = 61, base_baud = 8250000) is a 16550A9 k* r% W: _7 N5 T6 B9 W6 d
console [ttyS2] enabled5 G+ q0 f0 g8 J
brd: module loaded
0 O, T) H0 Z Wlibphy: Fixed MDIO Bus: probed( M' F' Y& M( N0 Q5 {
davinci_mdio davinci_mdio.0: davinci mdio revision 1.51 L/ s8 H$ _" m, x
davinci_mdio davinci_mdio.0: detected phy mask fffffffe
/ R* J- L. l( Q1 z4 Ilibphy: davinci_mdio.0: probed
$ D+ p0 N( E9 \8 @0 i# p2 xdavinci_mdio davinci_mdio.0: phy[0]: device davinci_mdio-0:00, driver SMSC LAN8710/LAN8720
; C/ O; d+ f6 a' Ti2c /dev entries driver
3 `7 a. S# k" |" n# M: rdavinci_mmc da830-mmc.0: cannot find GPIO chip davinci_gpio.1# S% `# Y' S& X, b9 F
davinci_mmc da830-mmc.0: cannot find GPIO chip davinci_gpio.1' U, p, x5 j4 g& r f& [
davinci_mmc da830-mmc.0: Using DMA, 4-bit mode
+ _3 A, ~2 ]8 \! Q. g# H& v# FNET: Registered protocol family 10! \" U$ V' D2 s7 m' D
sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver: z) `- W* y4 C9 ]8 J3 q
NET: Registered protocol family 17& g3 s3 i p1 ]8 f% C
console [netcon0] enabled$ H* ]. e9 V( e/ v5 `3 T
netconsole: network logging started
* R4 A. W' W; C$ P" s, \davinci_emac davinci_emac.1: using random MAC addr: 0a:ed:9e:24:43:89 d6 i8 y' r3 U' P1 d
hctosys: unable to open rtc device (rtc0)& c9 X( D; O6 h2 a% E
libphy: PHY davinci_mdio-0:07 not found
+ @! r) \+ [7 F4 Inet eth0: could not connect to phy davinci_mdio-0:07* ^* U) I6 Q- @, D0 H& r
IP-Config: Failed to open eth0
8 [1 r# Q) d# M( A7 @ x& lIP-Config: No network devices available, j5 j f2 p, A8 g' K. K
mmc0: host does not support reading read-only switch, assuming write-enable0 D8 f& N6 t- F# ?/ _ d* v
mmc0: new high speed SDHC card at address 59b4
/ v. O K) S, t) V& N$ B5 Bmmcblk0: mmc0:59b4 SS08G 7.41 GiB
5 M; n N# j+ a `0 I1 _5 g8 h mmcblk0: p1 p2
1 }# Q, x/ t: Y/ N) E% o4 k' q2 o1 z M5 S7 g/ S3 p) i
/* 此处等待了一段时间 */
1 O; r1 J; [5 J5 n7 e& \2 x9 r* v- r [9 I
random: fast init done
% e0 L% k4 p" GVFS: Unable to mount root fs via NFS, trying floppy.
q! \, Z$ ?% v1 Y" h4 i% F5 A) {8 xVFS: Cannot open root device "nfs" or unknown-block(2,0): error -6
& K' m1 M( Q2 ]' g+ }3 R' uPlease append a correct "root=" boot option; here are the available partitions:
) ~- L; T6 z% S& a! M- ~0100 32768 ram0 (driver?)
5 g# T% v9 ~6 P$ Y, J6 p) Ib300 7764992 mmcblk0 driver: mmcblk5 y) I6 D: t6 @8 V+ [
b301 71680 mmcblk0p1 cd4e1bc4-01
* y7 n3 P4 ]8 F/ \" h b302 7675904 mmcblk0p2 cd4e1bc4-02 % [* B7 W3 G) ?. z
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block+ c: X8 P/ H$ B+ g8 O4 d
+ Q0 q2 R$ Q# i* H! z$ v) s: E" [. z2 a5 D, l6 ?8 R$ h+ g
|
|