|
0. 开发板型号: TL138/6748/1808F-EasyEVM-A2, 开发版启动模式模式为SD卡启动
3 b+ E1 W& B- b" ]; m. \0 F' A+ |8 l( t+ u7 f$ l; U8 l7 x
1. 在ubantu16.04(64bit)按照官网安装ti-processor-sdk-linux-omapl138-lcdk-04.00.00.04-Linux-x86-Install.bin
, R; [( C! D* ~7 ]- W7 ^1 S q# P, E
2. 把uboot, kernel, filesystem写入SD卡, 拨码开关设置为SD启动, 能够正常启动能够进入嵌入式开发版6 i5 Z1 D" `6 y
6 u. [: \9 K1 x- g3 G3. SD卡启动方式保持不变,但是在uboot中配置为tftp下载内核和nfs挂载方式
7 Y5 x5 u. | Y' W5 N8 [# {& ]# O1 g: O. I5 W, ?7 |) d
uboot配置参数如下(由于没有开发板没有自动获取mac地址,所以自己设置为: setenv ethaddr 00:0c:29:bc:7e:9a):
1 q, L% f8 s7 J& @, x1 T' _- h. X) ^& f; h- {& J, c
setenv uboot_macaddr 18 V: k$ w6 w& g2 S3 N
setenv ethaddr 00:0c:29:bc:7e:9a
( X4 g% D: X. H- `setenv serverip 192.168.2.192; R9 V' F4 G7 C/ X6 i
setenv ipaddr 192.168.2.191
9 G. L) Z" e& q2 n
/ c- O3 Y2 y+ W1 S; e) Ebootcmd=tftp c0700000 zImage;bootz c0700000) O- L% x; A% f1 K% k# l7 m
3 I' p1 K9 Q0 w6 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/nfs% Z$ k- G8 ~0 f, R) ^ y
1 O/ [1 n2 A* f4. 能够通过tftp下载并启动内核,但是在挂载NFS文件系统之前报错(错误在下面内核启动信息的最后):* d: c9 Q2 R8 C7 v) I9 d
: T6 L6 E) z8 F. V
boot命令后的完整启动信息:* @5 {& O- p1 b L0 l+ Q2 S: R1 e
, W* T c! ]" z# E1 s! v1 v! J+ e=> boot
6 R, a* ]# p# O7 g9 @1 g6 E1 Z/ A: wUsing DaVinci-EMAC device. M0 A+ b7 P- Y. J: Q8 k; X
TFTP from server 192.168.2.192; our IP address is 192.168.2.191
5 Y3 b# g8 D) R9 a. k' a8 ]Filename 'zImage'.* U7 o, x1 ~1 G6 D& h6 p! q+ Z
Load address: 0xc0700000
/ t6 Z0 j! v1 ?% XLoading: #################################################################
. S) b, B( R8 O+ ] #################################################################0 `1 X6 ?+ O! C# O: c0 a+ L
################################
5 }4 T$ W7 w9 i6 m% `2 v 288.1 KiB/s
/ w1 V7 H" v5 E( Pdone
2 a. r, n4 ^ Z7 V( O u- @Bytes transferred = 2367360 (241f80 hex)& q1 P+ W k7 f+ t# E8 h
! K2 y; R! N& i0 O5 c: [1 D5 FStarting kernel ...2 \7 F5 l$ ^: u$ _
* Z% N" ~5 [4 a6 g5 G: p8 lUncompressing Linux... done, booting the kernel.8 v) ]2 }* C. U8 A4 y0 Q
Booting Linux on physical CPU 0x0( c0 L8 I9 n! I/ N5 s- O9 h
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% k4 G; `( C9 }/ F
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f$ L7 Z# z* w( \6 f' O7 j+ p2 m
CPU: VIVT data cache, VIVT instruction cache. E2 M1 ~8 D4 |5 h
Machine: AM18x/OMAP-L138 Hawkboard
5 j: E% p7 X: c4 ^9 i, U6 gda8xx_rproc_reserve_cma: 'rproc_mem=nn@address' badly specified
7 K& A; n# S' k6 ~' N) i 'nn' and 'address' must both be non-zero( B5 C L/ n* c+ b8 T2 Z. M! B" N4 I! W
cma: Reserved 16 MiB at 0xc6c000004 k& A9 J% Z' j3 ?* r
Memory policy: Data cache writethrough
5 l! o- C9 a% v: y: t+ lDaVinci da850/omap-l138/am18x variant 0x1
: `7 _+ x! Y7 F) c; h) uBuilt 1 zonelists in Zone order, mobility grouping on. Total pages: 324805 B8 d2 v0 E9 ~7 k
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; o" v* P. z- E6 @& @4 w
PID hash table entries: 512 (order: -1, 2048 bytes)
: \( T* V+ M$ R1 I ADentry cache hash table entries: 16384 (order: 4, 65536 bytes)
5 i1 h+ Z: \ K; e* ^Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)9 H% U) Q3 ^* X' M# D6 M3 d
Memory: 106592K/131072K available (4529K kernel code, 308K rwdata, 1500K rodata, 228K init, 162K bss, 8096K reserved, 16384K cma-reserved)
8 y H1 _3 f5 {& @" xVirtual kernel memory layout:
9 B2 {2 f4 I1 p; l( x vector : 0xffff0000 - 0xffff1000 ( 4 kB)9 M( L/ Z/ q7 s* {3 \: a
fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
$ Z8 o0 k9 F2 D4 s! Z5 V vmalloc : 0xc8800000 - 0xff800000 ( 880 MB)
( }8 z) y! D( H: O8 u0 _7 W+ p lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)7 {7 S- g5 F; u ^
modules : 0xbf000000 - 0xc0000000 ( 16 MB)) T8 E0 m. _5 N% X
.text : 0xc0008000 - 0xc0474b38 (4531 kB)# g6 x( a! T+ V g4 u
.init : 0xc05ed000 - 0xc0626000 ( 228 kB)
% I+ i$ }/ @* c! e .data : 0xc0626000 - 0xc0673110 ( 309 kB)
& p5 N$ Q. z- K1 H4 P .bss : 0xc0673110 - 0xc069bc08 ( 163 kB)- h4 V( s8 L' t h9 d# X$ {
SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
5 v. O8 G" ]' jPreemptible hierarchical RCU implementation.
* o% m1 [: `- d+ { Build-time adjustment of leaf fanout to 32.
4 A) ?0 t; }3 R* z: d0 }# i# j y4 bNR_IRQS:245' M" x0 l: ]+ N8 e" J3 t* {' e
clocksource: timer0_1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns6 F6 z# u$ |4 T2 r$ W' l2 Q) ]2 Q
sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns. R4 B5 [; r1 |# N6 C; L* t: q
Console: colour dummy device 80x306 n$ B- d" `) s R1 q) z/ u |
Calibrating delay loop... 227.32 BogoMIPS (lpj=1136640)( [ S7 ?5 G& G; s8 \
pid_max: default: 32768 minimum: 301( c5 x. g/ v) y4 Z
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)9 R5 B+ o4 o- c
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)" S2 D" \" |: ~2 F6 C' l8 t' E
CPU: Testing write buffer coherency: ok, C+ K0 b: m' r, \0 ^( W1 F
Setting up static identity map for 0xc0008400 - 0xc0008458
, a! y/ c$ M8 c- I% k& Gdevtmpfs: initialized: T/ V' q) n2 Q- m& h$ g
VFP support v0.3: not present
2 K R* e; L) h9 B4 ^5 B1 P; zclocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns' c7 i; y1 J/ J, U
futex hash table entries: 256 (order: -1, 3072 bytes) L- N4 }' F) h
pinctrl core: initialized pinctrl subsystem
4 L, f& t+ z, x4 D/ a0 `5 z* ?NET: Registered protocol family 16/ u. R8 p! S9 |: b/ p
DMA: preallocated 256 KiB pool for atomic coherent allocations8 l* M% p) |4 a1 [4 @
cpuidle: using governor ladder% w, x( Y d* E8 ?7 X" G- R
cpuidle: using governor menu; X+ `% z3 k4 r$ C( ~
EMAC: MII PHY configured
7 h( i3 n5 h! G" F6 Imux: initialized GPIO3_12$ c r: u* y! [& |7 m5 D v# e
mux: Setting register GPIO3_12! F- T9 C) x' T' F o# ]
mux: PINMUX7 (0x0000001c) = 0x00110110 -> 0x00118110
: e e" Y: |, v4 d* S8 j: }9 F9 a2 Fmux: initialized GPIO3_13
G Y3 j6 |* S6 a9 |) fmux: Setting register GPIO3_13; Y5 V: ?; O. b) P2 V
mux: PINMUX7 (0x0000001c) = 0x00118110 -> 0x00118810" Q* v: Y3 }3 v ^1 M9 M$ c% s
mux: initialized GPIO2_4
_1 [' {- h4 s: K5 [/ A2 ymux: Setting register GPIO2_42 I; E5 a2 R6 G
mux: PINMUX6 (0x00000018) = 0x00000000 -> 0x00008000
5 \ |) Z# r9 R# }# O6 ~mux: initialized GPIO6_13 A8 L! C6 E7 y* i: x( ]
mux: Setting register GPIO6_13$ ? X. M& N" s' G* n. g/ t5 n
mux: PINMUX13 (0x00000034) = 0x00000000 -> 0x00000800
& K! F7 c8 V& d4 T8 P1 T. jda8xx_register_rproc: memory not reserved for DSP, not registering DSP device; b) F, b7 R7 g& |: v7 c) |" w0 K
omapl138_hawk_init: dsp/rproc registration failed: -128 ~% \% ?2 l, w2 O7 \
edma edma.0: Legacy memcpy is enabled, things might not work5 Q0 r0 z W* l
edma edma.0: TI EDMA DMA engine driver: u* j! c6 w; s& ^+ _1 z
edma edma.1: Legacy memcpy is enabled, things might not work
4 o" v$ S1 Z2 x0 c4 n% Wedma edma.1: TI EDMA DMA engine driver
, |: ]$ O& `) h1 rclocksource: Switched to clocksource timer0_1
: [$ w0 F* A( R4 Q& |NET: Registered protocol family 2& a4 i7 { a/ }4 R* ~2 J) J7 ~
TCP established hash table entries: 1024 (order: 0, 4096 bytes)
- y7 ~! P) d0 P# F1 G; V/ @3 \TCP bind hash table entries: 1024 (order: 0, 4096 bytes). ?3 @5 i$ P. C7 z+ g5 _
TCP: Hash tables configured (established 1024 bind 1024)" @; T) Q6 v3 e R' @: d8 j
UDP hash table entries: 256 (order: 0, 4096 bytes)
; I- X6 ~0 H" J' D& m& H% p& U" ~! CUDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
0 P$ I1 g. [+ v0 u: X# CNET: Registered protocol family 1. m) _. r: T7 ]. G
RPC: Registered named UNIX socket transport module.
: q" c8 }: c8 A" w5 I# sRPC: Registered udp transport module.. `, u3 E& C3 q0 L
RPC: Registered tcp transport module.
' [& X3 _. p% X+ j N6 l, ^6 B8 HRPC: Registered tcp NFSv4.1 backchannel transport module.
% ~) y8 d* p* Aworkingset: timestamp_bits=14 max_order=15 bucket_order=1
) B: N0 j; g2 L9 r$ e# aBlock layer SCSI generic (bsg) driver version 0.4 loaded (major 250)# S8 w/ r m# T. P* e, }
io scheduler noop registered (default)
: R% K3 ?5 z X! i( p wSerial: 8250/16550 driver, 10 ports, IRQ sharing disabled
5 ]) h2 r; V# a6 T! f6 _; }8 b$ pserial8250.0: ttyS0 at MMIO 0x1c42000 (irq = 25, base_baud = 14250000) is a 16550A, C3 c0 l+ P. ?( @
serial8250.1: ttyS1 at MMIO 0x1d0c000 (irq = 53, base_baud = 8250000) is a 16550A" A$ q& g/ q8 D& E# @/ q
serial8250.2: ttyS2 at MMIO 0x1d0d000 (irq = 61, base_baud = 8250000) is a 16550A; H" k& c/ R: _% U4 S
console [ttyS2] enabled; C- |0 g2 H9 \% z9 V
brd: module loaded
2 l; A# G7 e) h+ d# ?9 | glibphy: Fixed MDIO Bus: probed
& B' R1 Y& }" ? b+ f: e" u% [davinci_mdio davinci_mdio.0: davinci mdio revision 1.5+ X3 q" C6 }. X8 k- L8 O
davinci_mdio davinci_mdio.0: detected phy mask fffffffe
! t2 g# Y C" [libphy: davinci_mdio.0: probed
" f' l6 T4 N# R: O; bdavinci_mdio davinci_mdio.0: phy[0]: device davinci_mdio-0:00, driver SMSC LAN8710/LAN8720
$ x$ J W) x; G, C) Y5 C3 d5 i; L' Ai2c /dev entries driver# b5 e1 j+ W: K& [8 Y
davinci_mmc da830-mmc.0: cannot find GPIO chip davinci_gpio.1! [0 z" s7 W! g+ T6 l
davinci_mmc da830-mmc.0: cannot find GPIO chip davinci_gpio.1
0 m O \9 {' G: y5 p& [+ \% Xdavinci_mmc da830-mmc.0: Using DMA, 4-bit mode
1 \% K! D1 n, ^* jNET: Registered protocol family 10
4 S. e/ h3 J: }/ Q# [6 t! Vsit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
( N* S$ f b2 M9 F4 nNET: Registered protocol family 17
" {) b! P9 K& Nconsole [netcon0] enabled
' L) d! m7 I x7 O: B7 E2 Unetconsole: network logging started8 d1 |2 ^4 d0 @! F, Y' v6 w
davinci_emac davinci_emac.1: using random MAC addr: 0a:ed:9e:24:43:89+ r0 F/ M8 x/ A( V8 n. K9 p8 i$ e3 s
hctosys: unable to open rtc device (rtc0)
% F( ]4 M0 r% q* ~libphy: PHY davinci_mdio-0:07 not found. G3 z) |0 k L
net eth0: could not connect to phy davinci_mdio-0:07
5 w1 H8 w% x+ p6 ]) mIP-Config: Failed to open eth0
% M- n0 U) F, q* vIP-Config: No network devices available6 H' ~" u& P+ T1 Z; B* o
mmc0: host does not support reading read-only switch, assuming write-enable
# ?+ g. q" T" S& Hmmc0: new high speed SDHC card at address 59b4
2 d4 g0 t7 T3 o2 K, K' C- Qmmcblk0: mmc0:59b4 SS08G 7.41 GiB # c: a& I$ h- W. O# L! ?9 d( I
mmcblk0: p1 p2) g5 {& x4 |7 V8 y4 V: t- _7 {
6 `% ~1 w- M0 C$ c$ C) }/* 此处等待了一段时间 */
/ ]9 Q' G3 c3 D& i) k+ [9 d7 j0 D# C3 R7 e x0 W
random: fast init done
, J* J1 r, e0 gVFS: Unable to mount root fs via NFS, trying floppy.
3 i: ^7 \+ F4 k- v mVFS: Cannot open root device "nfs" or unknown-block(2,0): error -6- G7 [$ f+ I& N3 d: O9 c" z& Y+ a
Please append a correct "root=" boot option; here are the available partitions:
9 W$ s# X# ?% ~2 b }) t7 [0100 32768 ram0 (driver?)
5 D ^% N. o* J4 Ib300 7764992 mmcblk0 driver: mmcblk
3 m% {3 L' z% I b301 71680 mmcblk0p1 cd4e1bc4-01
9 R- A0 g' a. a, _4 U9 N) L' ^" T$ e; H b302 7675904 mmcblk0p2 cd4e1bc4-02 $ N s& [% C/ P1 b& ?- N- n
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block+ D) v2 ]% B9 d& K) \
8 g' k1 g7 H, w+ x. N/ A
" D9 G) J ^& H7 @ |
|