|
0. 开发板型号: TL138/6748/1808F-EasyEVM-A2, 开发版启动模式模式为SD卡启动
. k6 Y# Q' c/ H* [% y f) K; a7 A
8 S$ o: R+ e _0 F! D/ x+ W- G1. 在ubantu16.04(64bit)按照官网安装ti-processor-sdk-linux-omapl138-lcdk-04.00.00.04-Linux-x86-Install.bin
2 S) i) K+ T0 c3 [
9 k% y+ Z: j2 n& _2. 把uboot, kernel, filesystem写入SD卡, 拨码开关设置为SD启动, 能够正常启动能够进入嵌入式开发版1 F5 _1 Q# p3 O+ x& ?3 M
) V& |6 Y( ]0 F1 I( m& o3. SD卡启动方式保持不变,但是在uboot中配置为tftp下载内核和nfs挂载方式& K6 [2 b5 [( _ Q P! J
. R5 @9 X5 o( g, R3 u8 z
uboot配置参数如下(由于没有开发板没有自动获取mac地址,所以自己设置为: setenv ethaddr 00:0c:29:bc:7e:9a): ^; l7 ^9 e1 `) Z$ o
7 _3 [6 _ j" P/ Q( T
setenv uboot_macaddr 11 S H" C1 v# F1 F4 l9 N5 `
setenv ethaddr 00:0c:29:bc:7e:9a
6 M8 z2 \5 [' E, r$ L" Rsetenv serverip 192.168.2.1923 b2 p- y; o2 Y% n2 S4 j% k
setenv ipaddr 192.168.2.1914 x( i# B* t, u2 r6 M; d
# f3 h3 F8 V3 y* I, X/ C* u- ~% fbootcmd=tftp c0700000 zImage;bootz c0700000
% b h/ W5 Q5 I$ K; T6 }6 f8 A$ L( f! o/ j7 R# e8 n
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
Q7 m' E5 `5 i/ Y' K" f0 h5 M7 i9 l
4. 能够通过tftp下载并启动内核,但是在挂载NFS文件系统之前报错(错误在下面内核启动信息的最后):
. |, [$ _$ E5 z
$ h' [. W' y4 W) z" Vboot命令后的完整启动信息:, H/ `# C7 u8 z/ x z
4 Y; k {4 O( I: t( g; p+ l
=> boot1 w6 ~7 S8 s4 ]: Z& l+ z
Using DaVinci-EMAC device/ i: b* |1 w6 i) U, B9 ]
TFTP from server 192.168.2.192; our IP address is 192.168.2.1913 p* f9 z& X: ~9 s" _
Filename 'zImage'.* n- y1 Z% z4 g' Q/ o
Load address: 0xc07000007 o; a L: b+ y# H+ M: d
Loading: #################################################################
: B3 b; K. X" w5 [ #################################################################7 q$ J$ O" W% V! A) Q+ T' f/ }7 p6 D7 \
################################. N. ^( J7 k, y$ g6 s/ T
288.1 KiB/s
- n- [ i1 v+ @- ldone
4 g+ J' X7 p+ \& |Bytes transferred = 2367360 (241f80 hex)
9 r A; `8 G5 q) r
& ^: Z A/ W8 D6 Z1 m% lStarting kernel ...
! j' r" ?. y& R2 N6 b; v) _/ m8 W' M* H, {2 C2 R" x- p
Uncompressing Linux... done, booting the kernel.
) f A$ d1 X" \Booting Linux on physical CPU 0x0
+ f3 K' g' Q8 V- y; Q' [& lLinux 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
% p) [ H) v+ h6 E5 t# cCPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f- S; r ~4 K" z F6 P2 H! S0 }& }
CPU: VIVT data cache, VIVT instruction cache- ~+ p: U1 p" e. _
Machine: AM18x/OMAP-L138 Hawkboard
' i) z0 s0 B2 {6 k# H: ~8 _da8xx_rproc_reserve_cma: 'rproc_mem=nn@address' badly specified
" s& }7 G2 O% W1 _1 [# @: j! G 'nn' and 'address' must both be non-zero
/ e8 S* a! g7 J) d! ?cma: Reserved 16 MiB at 0xc6c00000
/ u0 X. N8 p1 t3 y9 xMemory policy: Data cache writethrough+ `6 I, s9 @% e" a& y3 Y
DaVinci da850/omap-l138/am18x variant 0x10 i3 E# F7 c5 {1 F7 a# Z& K
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32480
: G" ]" r" N: V4 }1 M6 j( yKernel 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
# f& B/ w: n- |6 ~) d8 U; j3 O$ y; rPID hash table entries: 512 (order: -1, 2048 bytes)9 r- f q3 y T: ]% _% W1 Z
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)2 ]8 T% U+ L; W, s- {
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
' Q, y$ l. H5 E, w& o. _Memory: 106592K/131072K available (4529K kernel code, 308K rwdata, 1500K rodata, 228K init, 162K bss, 8096K reserved, 16384K cma-reserved)
) H* w6 j# P8 B+ ?4 I" b1 AVirtual kernel memory layout:$ C' n! P0 S8 M S6 v d
vector : 0xffff0000 - 0xffff1000 ( 4 kB)" q: X- V7 d- F* Y) L9 D
fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
2 g0 x& Z8 C2 y vmalloc : 0xc8800000 - 0xff800000 ( 880 MB)
8 ?6 U3 m# w; v y p5 [; |/ R lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)
% D6 p% `( Z; c: U, G modules : 0xbf000000 - 0xc0000000 ( 16 MB)# M& R) v: M# j' ?9 G9 o
.text : 0xc0008000 - 0xc0474b38 (4531 kB)
! B" [/ D- E' k' S% v9 K .init : 0xc05ed000 - 0xc0626000 ( 228 kB)
6 x; |6 l* @- z* q .data : 0xc0626000 - 0xc0673110 ( 309 kB)) ?( k& S) z' A3 B' r3 _: ]. n4 n' i
.bss : 0xc0673110 - 0xc069bc08 ( 163 kB)
- o0 x+ b5 B3 X* |SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1( U* M; ?4 ^0 }
Preemptible hierarchical RCU implementation.
X) z( e; @2 f! ~6 h Build-time adjustment of leaf fanout to 32.6 `. c* [7 @7 q
NR_IRQS:245
* i" B, O; e N2 P: @/ dclocksource: timer0_1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
8 x7 ?$ y Q* Usched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns& u- Y R7 K: P5 F) [
Console: colour dummy device 80x306 T* A7 s# k0 T9 b
Calibrating delay loop... 227.32 BogoMIPS (lpj=1136640)9 E% f- b$ t' S, D4 p
pid_max: default: 32768 minimum: 301
" H# ^1 s8 @/ M9 U4 D: N2 z$ NMount-cache hash table entries: 1024 (order: 0, 4096 bytes)
$ _0 G( ~/ C p$ c* Z lMountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
( |5 J# Z3 H" j. e aCPU: Testing write buffer coherency: ok
$ J* _2 e( s. M% h! XSetting up static identity map for 0xc0008400 - 0xc0008458
+ N5 t# W- g8 ^8 m V8 }devtmpfs: initialized
1 G, c; ?8 O8 e Y4 B* p/ \6 p; VVFP support v0.3: not present' z: l0 }' e# y' p0 K0 U" l
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
6 k4 l# N% X9 x) v( S1 B* n: Rfutex hash table entries: 256 (order: -1, 3072 bytes)
: q# N$ w9 x l" epinctrl core: initialized pinctrl subsystem
4 ^# e, p A0 C" q) C, o0 lNET: Registered protocol family 16
* y, Y9 }/ o1 ~DMA: preallocated 256 KiB pool for atomic coherent allocations$ t- l- W% K4 g! C: T$ e
cpuidle: using governor ladder1 l& {9 s! w7 L. H4 R2 \# A
cpuidle: using governor menu6 E; r3 L; c2 G+ u# [8 W+ y; H
EMAC: MII PHY configured% B5 `* t' U: L) \
mux: initialized GPIO3_12
* T* u: {5 c! _. ymux: Setting register GPIO3_128 A2 ]) a7 w+ s; B+ d' w
mux: PINMUX7 (0x0000001c) = 0x00110110 -> 0x00118110
5 q% B) ~# }: | ~5 k+ | s6 Wmux: initialized GPIO3_13" U4 v4 p V& h' k: L
mux: Setting register GPIO3_13
: Z) Y2 }# B2 S+ Z: H% \mux: PINMUX7 (0x0000001c) = 0x00118110 -> 0x001188103 b# \6 Z |4 J- |5 b- a
mux: initialized GPIO2_46 W/ F: u6 k# O
mux: Setting register GPIO2_4
, l4 M) e6 u. j4 a! B: y9 nmux: PINMUX6 (0x00000018) = 0x00000000 -> 0x00008000
5 j1 c+ o. i+ G0 z5 ~mux: initialized GPIO6_13
2 j0 ^- l M1 H. W1 tmux: Setting register GPIO6_13$ l8 \# B- i0 N" E0 i
mux: PINMUX13 (0x00000034) = 0x00000000 -> 0x00000800
) h' F% J+ s! i3 E; ada8xx_register_rproc: memory not reserved for DSP, not registering DSP device
6 D, ?$ `' L. |omapl138_hawk_init: dsp/rproc registration failed: -128 R7 r: g1 I$ D* l) ~; V! o3 H
edma edma.0: Legacy memcpy is enabled, things might not work
/ i9 l8 A% e* Y3 ? iedma edma.0: TI EDMA DMA engine driver
7 b+ P; `# b% ^8 ~+ f: i! _edma edma.1: Legacy memcpy is enabled, things might not work
0 Q _2 G" H* n+ Q- b# R7 qedma edma.1: TI EDMA DMA engine driver& k) E4 q: O. k+ A8 Y
clocksource: Switched to clocksource timer0_1
7 _6 d* u1 P9 S3 Z4 FNET: Registered protocol family 2' M0 g* u4 i% d b5 P
TCP established hash table entries: 1024 (order: 0, 4096 bytes)$ w* p' G9 Q R; D5 E
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)8 L+ r8 ~. h9 S2 A) |4 y- R
TCP: Hash tables configured (established 1024 bind 1024)7 U$ c2 h% U: _6 n
UDP hash table entries: 256 (order: 0, 4096 bytes): g' W% s, t9 i2 R
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)/ B8 s: V' e% R
NET: Registered protocol family 11 v1 Z' U6 u( ]. \. M8 I+ h( u
RPC: Registered named UNIX socket transport module.# H& e5 F4 e3 m* u( [' n/ G
RPC: Registered udp transport module.
0 ^9 J* N* n4 y8 X! YRPC: Registered tcp transport module.
1 `& o+ i; P/ {" y- ~$ f8 [8 jRPC: Registered tcp NFSv4.1 backchannel transport module.
1 [ a& S4 ~+ k3 D' Aworkingset: timestamp_bits=14 max_order=15 bucket_order=1
) ?" Y$ _/ _) B; OBlock layer SCSI generic (bsg) driver version 0.4 loaded (major 250)& e3 P6 z* `. Z$ S8 g( d) j* S
io scheduler noop registered (default)- g/ R# Q. m/ Q( u
Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
. w! Q% o" d; t8 O* h' Y5 [serial8250.0: ttyS0 at MMIO 0x1c42000 (irq = 25, base_baud = 14250000) is a 16550A
% K9 W P2 o P% `serial8250.1: ttyS1 at MMIO 0x1d0c000 (irq = 53, base_baud = 8250000) is a 16550A0 U* _8 ^ w5 p) y9 e! Q
serial8250.2: ttyS2 at MMIO 0x1d0d000 (irq = 61, base_baud = 8250000) is a 16550A$ d a9 ?: f, ?: n
console [ttyS2] enabled; I7 v* T/ \5 b, A, V/ m
brd: module loaded y1 W6 M' v! A% f7 J# H
libphy: Fixed MDIO Bus: probed
4 S3 I4 F( `3 K0 M% e: Vdavinci_mdio davinci_mdio.0: davinci mdio revision 1.5
1 d6 G- [; n( ]% ydavinci_mdio davinci_mdio.0: detected phy mask fffffffe% P+ M4 @6 x* ]2 j
libphy: davinci_mdio.0: probed
0 |4 s$ R/ R: F" e+ Fdavinci_mdio davinci_mdio.0: phy[0]: device davinci_mdio-0:00, driver SMSC LAN8710/LAN87205 E' _/ ~5 e9 Y4 {
i2c /dev entries driver
. y9 w2 Z5 S* i8 T; Gdavinci_mmc da830-mmc.0: cannot find GPIO chip davinci_gpio.1
" g1 F% g1 Z; B* F) {0 ~davinci_mmc da830-mmc.0: cannot find GPIO chip davinci_gpio.1
0 A& d5 U5 D% {2 s: _: edavinci_mmc da830-mmc.0: Using DMA, 4-bit mode
, F( X: n& Z* p5 PNET: Registered protocol family 10$ q* p$ o& A- u: I, Y
sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver* V ^4 u/ M9 n& \1 Y# K+ T2 D
NET: Registered protocol family 178 g1 T9 _% P; K; ]5 ?$ ]
console [netcon0] enabled
0 n5 m* \. r6 t) N( Vnetconsole: network logging started o3 H; j3 t" Q( o' i4 g
davinci_emac davinci_emac.1: using random MAC addr: 0a:ed:9e:24:43:89
; a& h1 ~9 j2 B, k8 yhctosys: unable to open rtc device (rtc0)
' O+ g& i% }# T% \# tlibphy: PHY davinci_mdio-0:07 not found
. c; B8 F$ Z- v0 k4 @2 znet eth0: could not connect to phy davinci_mdio-0:07
8 O1 i! c1 E2 p# q) p+ R. pIP-Config: Failed to open eth0
: q0 K# |0 S0 R2 `6 \IP-Config: No network devices available0 \. q7 r, u, x" L0 R5 w; j' q/ g1 x
mmc0: host does not support reading read-only switch, assuming write-enable
: a, y4 Z1 {, ]6 z6 ^) ^; Bmmc0: new high speed SDHC card at address 59b4
! h/ ]' {) c* h3 [6 P+ pmmcblk0: mmc0:59b4 SS08G 7.41 GiB
6 n1 m' [/ y6 ? mmcblk0: p1 p2
X- {' N7 J" m- W# W' _+ W8 \; B4 X. i) g3 G
/* 此处等待了一段时间 */
3 V4 w- f0 `, j, F. B3 u; H& o' u/ Q
random: fast init done
! D7 O7 a3 h) ?" L1 {VFS: Unable to mount root fs via NFS, trying floppy.% _# ~) n" b; i& `& Z
VFS: Cannot open root device "nfs" or unknown-block(2,0): error -6
9 a4 C* Q' ?" |1 nPlease append a correct "root=" boot option; here are the available partitions:: e7 ^+ G4 h' {/ [& x- c
0100 32768 ram0 (driver?)# L' Z9 @# P- [( s; P1 t7 |
b300 7764992 mmcblk0 driver: mmcblk
: K. w+ x1 o6 A: Y$ F b301 71680 mmcblk0p1 cd4e1bc4-01& U! G' s6 T/ n: b1 A0 x [- V* ~
b302 7675904 mmcblk0p2 cd4e1bc4-02 1 M ]9 \# k$ D) v+ G3 y
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block
1 Y* y1 t0 M. l6 Y7 b9 H! Z% ~; r8 b/ F$ ^1 P2 y
& @& i) A" J8 t8 T5 i
|
|