|
0. 开发板型号: TL138/6748/1808F-EasyEVM-A2, 开发版启动模式模式为SD卡启动
" Y7 [& R7 q, r( l7 B2 T/ \8 V" Z- u Z3 @
1. 在ubantu16.04(64bit)按照官网安装ti-processor-sdk-linux-omapl138-lcdk-04.00.00.04-Linux-x86-Install.bin2 ^) M0 L& L, v' q
/ a" y- D2 T$ d) _ C* s
2. 把uboot, kernel, filesystem写入SD卡, 拨码开关设置为SD启动, 能够正常启动能够进入嵌入式开发版/ ]1 o$ s7 K5 F
& @& b+ F' E" |9 [3. SD卡启动方式保持不变,但是在uboot中配置为tftp下载内核和nfs挂载方式9 l6 [$ y: x! Y* K! z( b
, V2 j x' Q6 B' F2 ~uboot配置参数如下(由于没有开发板没有自动获取mac地址,所以自己设置为: setenv ethaddr 00:0c:29:bc:7e:9a):
$ J7 t* m, m4 F# _* u( I p5 k0 o6 R
setenv uboot_macaddr 1
" L) b; ? V& Z: Tsetenv ethaddr 00:0c:29:bc:7e:9a ; Q' x" V! T0 F8 ]8 D0 `" }
setenv serverip 192.168.2.192
+ o0 I3 G- K" Y: S5 M4 e# o% q* Wsetenv ipaddr 192.168.2.191
. k+ v- H5 @' B% Z& @5 Z
- o* O3 {( O" a2 a- G/ Bbootcmd=tftp c0700000 zImage;bootz c0700000
, ^: g9 k: l s6 a4 @9 F5 K* R3 N* W, I
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
" H. g; B' j+ X; ?1 r/ n( L* {! y1 V) e3 y! H& d
4. 能够通过tftp下载并启动内核,但是在挂载NFS文件系统之前报错(错误在下面内核启动信息的最后):
3 O* Y3 p0 v! \" U$ l
' e9 u W2 i' k, T( Y4 I' E0 w1 @boot命令后的完整启动信息:
1 t* _3 | V$ o+ H8 F W& o
# k7 C2 O, w' N \& F=> boot
) d! U, Y% g4 dUsing DaVinci-EMAC device. ` `' _1 p, d2 t8 ~! c
TFTP from server 192.168.2.192; our IP address is 192.168.2.191/ ?9 x; a$ m' B2 `4 v7 [
Filename 'zImage'.
: j8 r- p/ s7 `# k G8 V& W+ zLoad address: 0xc0700000. o0 G4 w' A3 R2 ^
Loading: #################################################################( L$ a8 m6 M! D3 @0 D3 |. k
#################################################################% ~% f3 t+ V1 {* Z
################################, _/ K4 d$ E* k I# i$ s
288.1 KiB/s
1 H' o4 _2 H' L- v( m+ }0 [* F' fdone& \* q, S/ w3 R) O+ [
Bytes transferred = 2367360 (241f80 hex)
$ X$ }9 \8 l' ]0 D3 w5 x. R* k. @) K
0 k& A$ w) f1 Y+ p( `Starting kernel ...0 v7 i! t$ Q5 T' j% ~, l% S! z6 p
2 K- J- r9 V; O1 e* m
Uncompressing Linux... done, booting the kernel.9 o; D+ i2 z# ]* n$ H
Booting Linux on physical CPU 0x0
- A! b' {! d5 {; n9 ELinux 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
8 a: C/ H( ]* B) t) d4 e. ^. K' ?CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f: p$ n, u' l; [( L5 T+ n' {" s
CPU: VIVT data cache, VIVT instruction cache
9 n, p: O" u: V0 w, _1 |1 OMachine: AM18x/OMAP-L138 Hawkboard
2 [) Y( _& w% p" l3 Zda8xx_rproc_reserve_cma: 'rproc_mem=nn@address' badly specified
5 p* H5 t, N# s+ l/ W3 U* A 'nn' and 'address' must both be non-zero! j1 g' M1 n7 N* U% T
cma: Reserved 16 MiB at 0xc6c000002 _' M8 e1 J: a: p
Memory policy: Data cache writethrough" z) Q7 e6 a' Q3 @
DaVinci da850/omap-l138/am18x variant 0x1- {7 T! |, y: B, A. j( N
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32480
& ^# {8 W5 e* e; t. I8 r, z$ DKernel 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/nfs3 t- i$ B( F+ J. G
PID hash table entries: 512 (order: -1, 2048 bytes)3 S; R- Z2 |% k" `
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)5 ~* a# |1 E# ?# M p! N" ?
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)' P; O4 p+ t; d* u3 c' R
Memory: 106592K/131072K available (4529K kernel code, 308K rwdata, 1500K rodata, 228K init, 162K bss, 8096K reserved, 16384K cma-reserved)7 ?# O2 Q3 v Z2 {8 H# ^
Virtual kernel memory layout:/ ~4 J' ~8 r( s" A$ j1 v
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
& D c4 O. Y$ Y* U' P1 R6 Z. \3 e' Y' c fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
. ^- }) s$ s$ ^% `' |+ P vmalloc : 0xc8800000 - 0xff800000 ( 880 MB)
& J. a9 F. ~/ f0 Y; h; E$ v lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)
8 i( O& }0 _9 b, a% N5 [) m modules : 0xbf000000 - 0xc0000000 ( 16 MB)
8 H/ u/ E9 v3 Z% ~ .text : 0xc0008000 - 0xc0474b38 (4531 kB)
/ P4 Y( I- J' L1 ~. ?1 ~! ?& `/ K4 J, O .init : 0xc05ed000 - 0xc0626000 ( 228 kB)
) p1 V; c/ G/ H$ f. K+ Z. \ .data : 0xc0626000 - 0xc0673110 ( 309 kB)
: Y2 V# r/ U! r$ C .bss : 0xc0673110 - 0xc069bc08 ( 163 kB)5 p) R: l- B. L- @* W' X
SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1; n! ?$ T9 ?- {) e. w
Preemptible hierarchical RCU implementation.
1 a( Y, `/ O6 ~9 R% r Build-time adjustment of leaf fanout to 32.
: O# R, S3 n9 u( O% k9 pNR_IRQS:245( B- o! ~" J i* a! l8 x! z
clocksource: timer0_1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns3 q. ~' `7 x4 `8 l. F4 O% i
sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
4 S+ ?+ n5 ]9 n, P+ ^ T3 MConsole: colour dummy device 80x30; @- a( N# G1 d$ [$ q
Calibrating delay loop... 227.32 BogoMIPS (lpj=1136640); r6 G: C( k2 D% Q$ w
pid_max: default: 32768 minimum: 301' j$ ]" w& @; r, c! C+ v+ t# m) K# g
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
4 P3 c% s: Y% g% ]3 p( l* PMountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
. u/ H: ]/ k+ d8 l7 q. j4 s) eCPU: Testing write buffer coherency: ok% i, ^( X- f& G9 S3 Z& _- y
Setting up static identity map for 0xc0008400 - 0xc0008458' E6 _* R. H g
devtmpfs: initialized
+ I+ f' m! s d$ l4 r2 r8 ]7 OVFP support v0.3: not present6 r4 y0 n: v; J% A
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
7 b6 y# Q* a1 D2 rfutex hash table entries: 256 (order: -1, 3072 bytes)
( s: A* e" R# V. K% L5 b- dpinctrl core: initialized pinctrl subsystem: I6 _$ L; Y# t6 G' V
NET: Registered protocol family 16 v- F2 b) D8 Y2 |; x
DMA: preallocated 256 KiB pool for atomic coherent allocations* B$ m/ `/ m5 M/ F
cpuidle: using governor ladder
- s- ?2 a! Z8 o) {# qcpuidle: using governor menu
) }7 t/ `% c) z( TEMAC: MII PHY configured7 `7 h2 q( ~$ O/ E
mux: initialized GPIO3_12! K) D$ g" N# ?0 `+ Q
mux: Setting register GPIO3_124 o+ X+ P* \. r
mux: PINMUX7 (0x0000001c) = 0x00110110 -> 0x001181105 _, q( [1 l. e5 `6 z
mux: initialized GPIO3_13
9 v- O5 r9 O' i$ i" [& [5 O4 L8 Kmux: Setting register GPIO3_13
^3 I2 V/ c6 w1 K: t$ ymux: PINMUX7 (0x0000001c) = 0x00118110 -> 0x001188104 }3 a& k. q0 m4 L3 y9 G
mux: initialized GPIO2_42 V/ Y9 i: W8 {
mux: Setting register GPIO2_40 t8 K7 E3 x e$ {3 K# V' D8 r
mux: PINMUX6 (0x00000018) = 0x00000000 -> 0x00008000
Z, I) f. s9 ~2 d" Kmux: initialized GPIO6_13
% q9 {0 I6 e. W8 gmux: Setting register GPIO6_135 J; e# B# s3 Y6 d* q
mux: PINMUX13 (0x00000034) = 0x00000000 -> 0x00000800
% R, _# {8 A. V) s6 S5 Y/ _da8xx_register_rproc: memory not reserved for DSP, not registering DSP device) K! T9 {) A, H$ }! c9 o" a
omapl138_hawk_init: dsp/rproc registration failed: -12' m( {3 k0 ]! J0 ]+ r
edma edma.0: Legacy memcpy is enabled, things might not work
+ d! S% q; V/ @: }% Uedma edma.0: TI EDMA DMA engine driver/ j; P4 L$ F4 A7 g5 I# J
edma edma.1: Legacy memcpy is enabled, things might not work
4 F9 g- Q* I2 v& M) G4 s& h( O% Kedma edma.1: TI EDMA DMA engine driver5 w; b7 p: |$ q% @+ Z3 X6 G0 Z, u
clocksource: Switched to clocksource timer0_1& N2 a3 C% ]) z. x0 B) ~
NET: Registered protocol family 2
, Y; e/ {) u7 h1 S1 J) @! p1 i3 O0 c- B2 vTCP established hash table entries: 1024 (order: 0, 4096 bytes)
* `! X% O; I) P' n. O! ETCP bind hash table entries: 1024 (order: 0, 4096 bytes)
/ L8 M) U! T8 W$ nTCP: Hash tables configured (established 1024 bind 1024)
# E6 ?) `5 |, r2 S0 QUDP hash table entries: 256 (order: 0, 4096 bytes)1 R# j# _. U9 E- n, \; U) Y8 H
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes). S# o# `$ y$ |+ m' c& y# O
NET: Registered protocol family 1
5 W" T Y" w' B8 A; FRPC: Registered named UNIX socket transport module.
9 X c- L$ s1 ZRPC: Registered udp transport module.
" V0 q: ~1 Z G9 i, E* O4 ?RPC: Registered tcp transport module.
- W. m8 \& C! T; M' s* ?RPC: Registered tcp NFSv4.1 backchannel transport module.- w' W9 m! U- j. D
workingset: timestamp_bits=14 max_order=15 bucket_order=1
0 J! d" R# i9 s8 z2 CBlock layer SCSI generic (bsg) driver version 0.4 loaded (major 250)9 Z/ W! _& _1 ^, N& M" B/ q
io scheduler noop registered (default)
2 N1 v& `' I6 _# q3 G# i0 ^/ sSerial: 8250/16550 driver, 10 ports, IRQ sharing disabled; O9 A" ~& q: B8 J3 E# |. y" e
serial8250.0: ttyS0 at MMIO 0x1c42000 (irq = 25, base_baud = 14250000) is a 16550A; E6 b5 U- v. J& c& @5 Y+ P
serial8250.1: ttyS1 at MMIO 0x1d0c000 (irq = 53, base_baud = 8250000) is a 16550A5 E4 |$ c! t. R
serial8250.2: ttyS2 at MMIO 0x1d0d000 (irq = 61, base_baud = 8250000) is a 16550A
: J; v, M" N+ z& ^console [ttyS2] enabled/ Y$ y% [, w$ P( n* I) U
brd: module loaded- t3 G! m) }" o) H" z0 c1 F
libphy: Fixed MDIO Bus: probed
! l. w) q: R8 r- L* Bdavinci_mdio davinci_mdio.0: davinci mdio revision 1.5$ q3 I4 o$ ], ~: ^( s
davinci_mdio davinci_mdio.0: detected phy mask fffffffe) F2 k8 O# y9 K* v' S/ p& p+ \
libphy: davinci_mdio.0: probed
* s5 c1 S) g! ~davinci_mdio davinci_mdio.0: phy[0]: device davinci_mdio-0:00, driver SMSC LAN8710/LAN8720. m; Q% q8 C, L! z; k, ]
i2c /dev entries driver$ E5 {' t9 S3 |: E, w% A
davinci_mmc da830-mmc.0: cannot find GPIO chip davinci_gpio.14 y% `5 @+ o$ r
davinci_mmc da830-mmc.0: cannot find GPIO chip davinci_gpio.1
$ a" {/ r6 S4 |7 J- B1 _davinci_mmc da830-mmc.0: Using DMA, 4-bit mode+ x1 b* w/ u- j1 V
NET: Registered protocol family 10
6 X, D* T+ k* g1 S( o, o0 @sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver3 x' ~3 ?* Y6 c5 ]. U7 q
NET: Registered protocol family 17
) |: {! T6 b* Qconsole [netcon0] enabled) g* D4 ^$ R2 p( k( \
netconsole: network logging started3 v. J" ^9 F6 f4 e. ?3 K
davinci_emac davinci_emac.1: using random MAC addr: 0a:ed:9e:24:43:894 S' j( a; n8 ?/ C$ R
hctosys: unable to open rtc device (rtc0)
" H+ V0 c' t9 g4 @" Z6 [; }; M5 {- hlibphy: PHY davinci_mdio-0:07 not found
3 c8 v0 @' y6 i5 O" h# Lnet eth0: could not connect to phy davinci_mdio-0:07
. K$ ]/ k" F5 R8 P ]IP-Config: Failed to open eth03 F' _/ k- b! }
IP-Config: No network devices available$ A; K8 s$ v# A) r2 f7 a
mmc0: host does not support reading read-only switch, assuming write-enable2 Q! g! `6 _% n# E1 j" w
mmc0: new high speed SDHC card at address 59b4- i3 ^2 G) \) J# {) h4 V9 M- a
mmcblk0: mmc0:59b4 SS08G 7.41 GiB 9 q) l! R* `3 _4 s3 v0 S7 M% q
mmcblk0: p1 p2
, I! f0 q4 |+ d2 Y% g. e# l h. x3 T0 k0 F0 Q
/* 此处等待了一段时间 */
- Q) {8 U% h3 K' F4 V: J$ u. c
; W" T" u( s1 Z8 Frandom: fast init done _9 _0 M( ]. S6 ^
VFS: Unable to mount root fs via NFS, trying floppy.
4 G. p* K m0 W ^2 WVFS: Cannot open root device "nfs" or unknown-block(2,0): error -63 H3 f7 p. K8 @, _
Please append a correct "root=" boot option; here are the available partitions:; e6 U/ {* m# F, d5 M2 |& f1 f0 c1 @! V
0100 32768 ram0 (driver?)+ v/ a* ?; F7 [) @* `
b300 7764992 mmcblk0 driver: mmcblk
( `) u* p& i( _( _ b301 71680 mmcblk0p1 cd4e1bc4-01
) U* {" Q5 r! E9 y) w b302 7675904 mmcblk0p2 cd4e1bc4-02 * t5 q. w4 m% `% I/ F, Y. h
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block, S4 J3 U9 x; w
O4 f y/ r) O
9 M$ t+ K% m: U6 n7 j4 U! P1 Q9 m$ z |
|