|
本帖最后由 stone-363407 于 2018-12-7 16:42 编辑 / z7 w/ W& v$ r 代码地址: http://github.com/huayuguo/uboot-stm32h743_eth ) _$ A. B- N, f6 o U-Boot 2018.09-rc2-gc16d658 (Dec 06 2018 - 16:00:30 +0800)1 W0 R, `5 N4 N4 h$ ~ 5 }4 C+ l) ?9 @# U0 ?( G+ f$ ] 0 O v( b7 m# r4 |. [! a& o- @ Model: STMicroelectronics STM32H743i-EVAL board DRAM: 32 MiB MMC: STM32 SDMMC2: 0) O, h& Y) a% Y5 k# P In: serial@40011000/ m6 x* k% h7 ?8 S: v" f Out: serial@40011000 Err: serial@40011000 Net: Warning: ethernet@40028000 (eth0) using random MAC address - fe:f8:94:5f:5e:268 m2 L) l7 v) ]6 l8 l8 l! v eth0: ethernet@40028000: g1 Y8 R: p2 h7 M Hit SPACE in 3 seconds to stop autoboot. switch to partitions #0, OK4 t) }) r8 W. X8 k7 e! C mmc0 is current device Scanning mmc 0:1... U-Boot > setenv gatewayip 192.168.10.1;setenv ipaddr 192.168.10.22;setenv netmask 255.255.255.0;setenv ethaddr 1a:5a:38:ef:38:d8;2 v+ }, F, U' e0 r6 B6 W, A( G U-Boot > env set bootargs "root=/dev/ram console=ttyS0,115200 " ' [, n. u4 z Q8 N" C U-Boot > tftpboot 61000000 192.168.10.25:uImage;tftpboot 61300000 192.168.10.25:stm32h743i-eval.dtb; ethernet@40028000 Waiting for PHY auto negotiation to complete. done Using ethernet@40028000 device6 \; d% x: H/ i/ q TFTP from server 192.168.10.25; our IP address is 192.168.10.22: K4 v" @0 f/ N' K Filename 'uImage'.: Z) |) p# }0 Z, @& I) { Load address: 0x61000000% u W7 C0 ]+ D) z! {8 \: z$ Z Loading: ################################################################# #################################################################4 o7 T, x3 e/ L% K1 M" f t% f) h ########## 1.4 MiB/s done Bytes transferred = 2048568 (1f4238 hex), j, h+ u' ^2 H& V Z- W ethernet@40028000 Waiting for PHY auto negotiation to complete. done/ k+ ^( [+ K7 M) V2 K: y6 A4 T Using ethernet@40028000 device3 ~! j) ?% O5 l, P5 I9 |# N TFTP from server 192.168.10.25; our IP address is 192.168.10.22 Filename 'stm32h743i-eval.dtb'.2 T9 A. l8 h @8 g Load address: 0x613000009 o0 q- @% y! `5 c3 c7 s Loading: #; Z# H* Z+ I5 g! P 999 KiB/s1 h8 X7 S7 G$ f! w1 t done+ Y2 i. e0 X# m3 V/ p! S- j9 _ Bytes transferred = 5115 (13fb hex)- B3 s# H) G, P2 z6 X5 M2 K' x U-Boot > bootm 61000000 - 61300000 0 Q, k4 W* [0 V ## Booting kernel from Legacy Image at 61000000 ..." x! g, O- h) W- h) I" W4 n; ~2 e Image Name: linux: V7 J- L! [# k/ F. o3 H- ?- F8 I1 c Image Type: ARM Linux Kernel Image (uncompressed)( ]! H- H( o5 D9 o7 T& f Data Size: 2048504 Bytes = 2 MiB- I$ z, [4 d! T' A1 B w Load Address: 610000005 u/ B G, T0 }9 Z Entry Point: 61000000 Verifying Checksum ... OK ## Flattened Device Tree blob at 61300000 Booting using the fdt blob at 0x61300000 Loading Kernel Image ... OK( D4 d% |7 {0 Y8 _$ Z8 V Using Device Tree in place at 61300000, end 613043fa9 _0 {4 y) B0 R& E7 D 4 C0 e. O' _% G& M3 s9 t1 b Starting kernel ... ) v' f) L' _" U& O F+ ~ * m" y$ O. U& {0 c: a" W [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.15.2-gb37c1e299-dirty (xiao@xd) (gcc version 6.3.1 20170620 (15:6.3.1+svn253039-1build1)) #134 PREEMPT Fri Dec 7 13:45:02 CST 2018 [ 0.000000] CPU: ARMv7-M [411fc271] revision 1 (ARMv7M), cr=00000000' }1 T7 w% A, U8 O, g [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache$ E$ X5 u# p. @- f0 y" q [ 0.000000] OF: fdt: Machine model: STMicroelectronics STM32H743i-EVAL board+ \* T* h0 s9 ~/ { [ 0.000000] Reserved memory: created DMA memory pool at 0x61000000, size 2 MiB* `* E# G5 F* p/ X [ 0.000000] OF: reserved mem: initialized node linux,dma, compatible id shared-dma-pool/ {! E+ {4 e# b- n: d! O4 }2 X [ 0.000000] Ignoring RAM after 0x61000000, memory at 0x61200000 ignored [ 0.000000] Using ARMv7 PMSA Compliant MPU. Region independence: No, Used 2 of 16 regions P+ o3 k; l6 w1 a& \ [ 0.000000] On node 0 totalpages: 4096 [ 0.000000] Normal zone: 32 pages used for memmap/ @) D' F( m$ I2 F8 G7 `& Y! B [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 4096 pages, LIFO batch:02 y8 k/ Y; M1 s$ N; l [ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768 [ 0.000000] pcpu-alloc: [0] 0 7 W# |$ ]$ N/ t+ L5 K; @ [ 0.000000] Built 1 zonelists, mobility grouping off. Total pages: 40649 y: E; ]) i& M4 x( L) q6 d* \1 N [ 0.000000] Kernel command line: root=/dev/ram console=ttyS0,115200 [ 0.000000] Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)0 N2 H, J4 B V9 c4 v [ 0.000000] Inode-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.000000] Memory: 13080K/16384K available (1596K kernel code, 154K rwdata, 496K rodata, 632K init, 130K bss, 3304K reserved, 0K cma-reserved) [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0x00000000 - 0x00001000 ( 4 kB) [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB) [ 0.000000] vmalloc : 0x00000000 - 0xffffffff (4095 MB)$ v2 m4 o" z0 K/ t/ u [ 0.000000] lowmem : 0x60000000 - 0x61000000 ( 16 MB)9 U2 a9 x* z+ R( I7 g [ 0.000000] .text : 0x(ptrval) - 0x(ptrval) (1597 kB)( l9 a+ ?* Y! e3 L% j/ H, x [ 0.000000] .init : 0x(ptrval) - 0x(ptrval) ( 632 kB) [ 0.000000] .data : 0x(ptrval) - 0x(ptrval) ( 155 kB) [ 0.000000] .bss : 0x(ptrval) - 0x(ptrval) ( 131 kB)9 o2 |4 R2 b4 u [ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1% S* {) @2 Y* V9 K [ 0.000000] Preemptible hierarchical RCU implementation. [ 0.000000] Tasks RCU enabled.' u/ E+ {4 K9 ^7 m; i0 V6 b" B; A [ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 161 l, s0 I# X3 a8 ?8 c' X [ 0.000000] clocksource: arm_system_timer: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 18664651 ns [ 0.000000] ARM System timer initialized as clocksource6 z% Q: @$ F1 x. G1 [6 F [ 0.000000] /soc/timer@40000c00: STM32 clockevent driver initialized (32 bits) [ 0.000000] sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 21474836475000000ns [ 0.010000] Calibrating delay loop... 795.44 BogoMIPS (lpj=3977216); e) E) X# k7 N [ 0.100000] pid_max: default: 4096 minimum: 301 [ 0.100000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)* c- }$ H+ V/ U c8 C [ 0.100000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.100000] Hierarchical SRCU implementation.! {' `7 A" [/ B2 a# x [ 0.100000] devtmpfs: initialized! b3 y/ n+ e" G' A" U# ` [ 0.110000] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.110000] pinctrl core: initialized pinctrl subsystem [ 0.110000] DMA: default coherent area is set [ 0.110000] random: get_random_u32 called from bucket_table_alloc+0xc9/0xf4 with crng_init=02 h1 F% M0 p. A) r [ 0.110000] NET: Registered protocol family 16 [ 0.120000] cpuidle: using governor ladder [ 0.120000] cpuidle: using governor menu [ 0.130000] stm32h743-pinctrl soc:pin-controller: GPIOA bank added2 }/ \3 D% l3 f [ 0.130000] stm32h743-pinctrl soc:pin-controller: GPIOB bank added [ 0.130000] stm32h743-pinctrl soc:pin-controller: GPIOC bank added+ Q/ I- ^3 q. F- V+ [/ f [ 0.130000] stm32h743-pinctrl soc:pin-controller: GPIOD bank added [ 0.130000] stm32h743-pinctrl soc:pin-controller: GPIOE bank added [ 0.130000] stm32h743-pinctrl soc:pin-controller: GPIOF bank added+ ]+ `8 y8 M. b, l( x [ 0.140000] stm32h743-pinctrl soc:pin-controller: GPIOG bank added [ 0.140000] stm32h743-pinctrl soc:pin-controller: GPIOH bank added [ 0.140000] stm32h743-pinctrl soc:pin-controller: GPIOI bank added* Y1 I! ^ I" m2 L- J$ m$ ?) k [ 0.140000] stm32h743-pinctrl soc:pin-controller: GPIOJ bank added [ 0.140000] stm32h743-pinctrl soc:pin-controller: GPIOK bank added [ 0.140000] stm32h743-pinctrl soc:pin-controller: Pinctrl STM32 initialized [ 0.160000] pps_core: LinuxPPS API ver. 1 registered, ?+ }# |6 E* x; w$ \& R7 Y [ 0.160000] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>6 [( t) m: e: h3 _4 @9 k( N [ 0.160000] PTP clock support registered [ 0.160000] clocksource: Switched to clocksource arm_system_timer [ 0.170000] NET: Registered protocol family 2 [ 0.170000] TCP established hash table entries: 1024 (order: 0, 4096 bytes) [ 0.170000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes) [ 0.170000] TCP: Hash tables configured (established 1024 bind 1024) [ 0.170000] UDP hash table entries: 256 (order: 0, 4096 bytes)7 l. {! K/ s0 E# t6 P! G0 h( t [ 0.170000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)5 Y8 K& n8 w; [ [ 0.170000] NET: Registered protocol family 1 [ 0.360000] workingset: timestamp_bits=30 max_order=12 bucket_order=0* y! L$ c0 w( P2 _/ H6 `; } [ 0.380000] random: fast init done [ 0.400000] io scheduler noop registered [ 0.400000] io scheduler deadline registered9 f, ~1 {: c" ]6 S% z$ O) D0 C8 i) C [ 0.400000] io scheduler cfq registered (default)5 e- U1 D- E( S3 D# \" \ [ 0.400000] io scheduler mq-deadline registered- h; K+ `) Y `+ b" ]5 u& x7 M [ 0.400000] io scheduler kyber registered+ \: t& ]5 U# O( U [ 0.400000] STM32 USART driver initialized [ 0.400000] 40011000.serial: ttyS0 at MMIO 0x40011000 (irq = 17, base_baud = 12500000) is a stm32-usart$ D, _/ r5 E1 O* P [ 0.850000] console [ttyS0] enabled [ 0.850000] stm32-usart 40011000.serial: rx dma alloc failed1 P1 G' A- S( f3 T _ [ 0.860000] stm32-usart 40011000.serial: interrupt mode used for rx (no dma)" G b7 `$ B# C! N7 W2 H [ 0.870000] stm32-usart 40011000.serial: tx dma alloc failed [ 0.870000] stm32-usart 40011000.serial: interrupt mode used for tx (no dma)1 Q! b9 u: t& \# j( q [ 0.880000] libphy: Fixed MDIO Bus: probed* x8 X/ E( V" z1 ^* z3 S [ 0.890000] tun: Universal TUN/TAP device driver, 1.6 ~4 K: Q' ]9 _, o$ G [ 0.890000] stm32-dwmac 40028000.ethernet: Found phy-handle subnode0 K; h# V& d& R1 n6 a [ 0.900000] stm32-dwmac 40028000.ethernet: Found MDIO subnode6 K% R2 w: L, o: f+ O& ~/ J8 e- v+ H [ 0.910000] stm32-dwmac 40028000.ethernet: use snps,dwmac-4.00.. [ 0.910000] stm32-dwmac 40028000.ethernet: PTP uses main clock [ 0.910000] stm32-dwmac 40028000.ethernet: no reset control found [ 0.930000] stmmac - user ID: 0x30, Synopsys ID: 0x41! e1 l, O% r, S/ M7 y [ 0.930000] stm32-dwmac 40028000.ethernet: DMA HW capability register supported [ 0.930000] stm32-dwmac 40028000.ethernet: RX Checksum Offload Engine supported# [! N+ A# @5 [2 x$ E [ 0.950000] stm32-dwmac 40028000.ethernet: TX Checksum insertion supported [ 0.950000] stm32-dwmac 40028000.ethernet: Wake-Up On Lan supported0 X( \1 b: E3 G M/ ^ [ 0.950000] stm32-dwmac 40028000.ethernet: TSO supported3 X, A# r( g/ m2 H1 R [ 0.970000] stm32-dwmac 40028000.ethernet: Enable RX Mitigation via HW Watchdog Timer [ 0.970000] stmmac_mdio_reset : reset gpio direction num=28 [ 1.080000] libphy: stmmac: probed [ 1.090000] stm32-dwmac 40028000.ethernet: register the MDIO bus2 V+ Y P+ q$ E8 n% z! i [ 1.100000] u32 classifier" E2 h9 ^* c1 k; C1 z D [ 1.100000] Initializing XFRM netlink socket6 y2 B4 A, f$ R4 O [ 1.110000] NET: Registered protocol family 17" p5 O# b2 U, r' c1 q6 S G& | [ 1.110000] NET: Registered protocol family 15 [ 1.110000] 8021q: 802.1Q VLAN Support v1.8) r& \' q7 r ?: A) J$ Q" ?9 z [ 1.120000] Key type dns_resolver registered [ 1.130000] Freeing unused kernel memory: 632K [ 1.140000] This architecture does not have kernel memory protection. can't run '/sbin/swapon': No such file or directory Initializing random number generator... done. Jan 1 00:00:01 login[59]: root login on 'console' ~ # 7 Q$ T" y% W1 G) t |
微信公众号
手机版
# N& ^3 X+ j3 w0 S
cpu 400Mhz sdram 100mhz cas=2 . u! T9 ]" [ J* Y- D4 q
测试软件:iperf3
系统跑了25个线程测试速度如下。。。。没有原子裸奔的那个快............
65.8 Mbits/sec9 { n/ K- X: q. o8 ?: W8 ` L
~ # cat /proc/cpuinfo ( x$ Z/ V" X9 O% [) E
processor : 0) S6 Y" [! |/ \2 D! |/ I$ K/ t
model name : ARMv7-M rev 1 (v7ml)
BogoMIPS : 795.44- m- ^- I( }* ^" g$ v
Features : half thumb fastmult edsp idivt
CPU implementer : 0x41
CPU architecture: 7M
CPU variant : 0x1
CPU part : 0xc27, K& O9 t3 s3 k9 v0 L
CPU revision : 1
Hardware : STM32 (Device Tree Support)
Revision : 0000. R& Z z4 X: _( h' U1 p$ Y5 _
Serial : 0000000000000000
~ # iperf3 -c 192.168.10.26 * K4 n0 w$ x) L9 |3 v& w; b
Connecting to host 192.168.10.26, port 52014 g4 y. a7 G+ ]* z( F
[ 4] local 192.168.10.22 port 41328 connected to 192.168.10.26 port 5201
[ ID] Interval Transfer Bandwidth Retr Cwnd' ?2 n# ]5 \, d4 E( P" b
[ 4] 0.00-1.01 sec 7.57 MBytes 63.0 Mbits/sec 0 173 KBytes 4 F4 U9 L; G4 T* E) e8 x
[ 4] 1.01-2.03 sec 8.22 MBytes 67.3 Mbits/sec 0 181 KBytes
[ 4] 2.03-3.15 sec 8.75 MBytes 66.0 Mbits/sec 0 181 KBytes 1 b/ E. _8 o8 T0 D6 Z! G$ h! t, L
[ 4] 3.15-4.04 sec 6.90 MBytes 65.0 Mbits/sec 0 181 KBytes / ]1 H1 x3 }% N2 J+ L) y
[ 4] 4.04-5.15 sec 8.70 MBytes 65.4 Mbits/sec 0 181 KBytes 4 q3 \' Y Y0 s h/ P# v" {
[ 4] 5.15-6.10 sec 7.40 MBytes 65.5 Mbits/sec 0 181 KBytes " }% t& y4 m } P& }! o0 \- K" B: M
[ 4] 6.10-7.01 sec 7.37 MBytes 67.7 Mbits/sec 0 191 KBytes % {/ _3 |1 A1 K9 Y) ^' m
[ 4] 7.01-8.16 sec 8.95 MBytes 65.6 Mbits/sec 0 191 KBytes 5 n# e9 K* f7 D, `( T# r0 d
[ 4] 8.16-9.02 sec 6.86 MBytes 66.5 Mbits/sec 0 191 KBytes
[ 4] 9.02-10.13 sec 8.73 MBytes 65.9 Mbits/sec 0 191 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bandwidth Retr& I4 X1 X! _2 P1 [0 V: U6 \
[ 4] 0.00-10.13 sec 79.4 MBytes 65.8 Mbits/sec 0 sender' ]7 p, C" u7 f' \! O
[ 4] 0.00-10.13 sec 79.4 MBytes 65.8 Mbits/sec receiver! p. w4 b. I9 i& v- Y- ] C( N1 M
" Q$ b" K- V3 d9 ^
iperf Done.# z/ n* L! ?+ P/ Y0 D
~ # ps
PID USER VSZ STAT COMMAND K5 O1 V3 U: P
1 root 400 S init% I0 |- i1 M. x
2 root 0 SW [kthreadd]
4 root 0 IW< [kworker/0:0H]
6 root 0 IW< [mm_percpu_wq]
7 root 0 SW [ksoftirqd/0]
8 root 0 IW [rcu_preempt]0 S+ Z B/ m4 h( w6 p9 x
9 root 0 IW [rcu_sched]
10 root 0 IW [rcu_bh]- i& \1 d# m! y9 j- ~8 f! G
11 root 0 SW [kdevtmpfs]9 s: H9 U% Y: j8 B3 E
12 root 0 SW [rcu_tasks_kthre]
14 root 0 IW< [writeback]
15 root 0 IW< [crypto]
16 root 0 IW< [kblockd]
17 root 0 IW< [watchdogd]
18 root 0 SW [kswapd0]
41 root 0 SW [irq/17-40011000]
59 root 420 S -sh, z3 a0 N6 u" B* Y
60 root 0 IW [kworker/u2:1]0 [8 W0 E6 X; G9 g/ Z& ^
61 root 0 IW [kworker/u2:2]1 K& l. A2 n# T$ ~7 W( x1 g+ U9 {5 f# F
64 root 0 IW [kworker/0:2]
65 root 0 IW [kworker/0:3]
71 root 0 IW [kworker/0:0]
75 root 396 R ps
楼主,您好,看了您的贴子,手头正好有一块stm32f746-disco 的板子,按照您的思路,移植了uboot2016.09,移植了uboot eth驱动,因为没有移植MMC驱动,就打算把linux内核加载在SDRAM上,再从SDRAM启动内核;使用的是linux4.19.24默认的stm32配置,但是现在一直卡在“Starting kernel ...”,内核应该是没有起来;不知道您调试过程中是否遇到这个问题。附上打印的信息:
U-Boot 2016.09-g83ec55b-dirty (Feb 22 2019 - 18:30:58 +0800)0 B7 g7 T% n# o2 t0 J, M$ e
DRAM: 8 MiB7 _: S4 c5 Y* V
WARNING: Caches not enabled. Y) ?# ?0 A( k/ e8 h b1 g
Flash: 1 MiB
Using default environment
( n5 {' Z# X$ N# x5 `
In: serial_stm32x7
Out: serial_stm32x7
Err: serial_stm32x7
Net:
stm32 eth probe start
stm32 eth probe end" ]* }" M5 @7 u- y9 S' C2 H8 O
stm32_read_rom_hwaddr
Warning: eth_stm32_eth using MAC address from ROM
eth0: eth_stm32_eth
stm32_write_hwaddr
4 S4 R. q. N. s3 [) a1 z
Hit SPACE in 3 seconds to stop autoboot.' [* C) E B5 {, V5 Z: f$ t9 |5 q0 ^
U-Boot > set ipaddr 10.0.0.2
U-Boot > set serverip 10.0.0.6
U-Boot > tftp c0400000 uImage.bin
& M4 j) ^9 e) D& R8 B; x9 Z3 e
stm32_eth_stop start
stm32_eth_stop end
stm32_eth_start start
stm32_eth_start end
Using eth_stm32_eth device
TFTP from server 10.0.0.6; our IP address is 10.0.0.2
Filename 'uImage.bin'.9 b3 q* M9 f# c) K* @( y
Load address: 0xc0400000
Loading: #################################################################) E: w$ g+ S* c+ q! a4 n! c7 q$ x! x
###########################' D" U9 I7 r: R- p3 g: v& J5 l( ^3 _
2 MiB/s
done
Bytes transferred = 1337888 (146a20 hex)
5 D' m3 _4 P$ F+ p9 v, M/ ]
stm32_eth_stop start
stm32_eth_stop end9 L6 J e1 b8 I
U-Boot > tftp c0600000 discodtb.bin
stm32_eth_stop start
stm32_eth_stop end
4 y: C9 Y& _/ `+ k! H4 U6 ^
stm32_eth_start start
stm32_eth_start end9 k( A e2 G9 k8 F$ X
Using eth_stm32_eth device* R- c8 R- s4 ?1 |6 A" j% ?' J. \
TFTP from server 10.0.0.6; our IP address is 10.0.0.24 a* @; |+ T! q- [) e* h0 f
Filename 'discodtb.bin'.5 O5 I/ }9 A R
Load address: 0xc0600000
Loading: ##' C/ a5 W& X/ t0 A# E) ]- N' Y
966.8 KiB/s9 }& [' G7 V, Q6 @+ m
done
Bytes transferred = 14858 (3a0a hex)7 `' o5 [1 s% g6 ~
stm32_eth_stop start% A6 _/ g F; A" P2 o
stm32_eth_stop end
U-Boot > bootm c0400000 - c0600000
## Booting kernel from Legacy Image at c0400000 ...
Image Name: Linux-4.19.24
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1337824 Bytes = 1.3 MiB
Load Address: c0008000
Entry Point: c0008000) j/ }- n. P2 e0 [) s+ K: b. F. z
Verifying Checksum ... OK `" u5 r4 M/ t% Y
## Flattened Device Tree blob at c0600000$ H& v3 X. y4 m
Booting using the fdt blob at 0xc0600000
Loading Kernel Image ... OK
Loading Device Tree to c07c7000, end c07cda09 ... OK
2 B( n$ Y: Z& z# n2 { r
Starting kernel ...
, ~& p8 n6 _2 w: w: L( d
U-Boot 2018.09-rc2-g36b739b (Nov 25 2018 - 10:45:48 +0800)8 ~/ T! T3 k9 `/ a/ G: e3 j& @
Model: STMicroelectronics STM32H743i-EVAL board
DRAM: 32 MiB3 ]# f- x, O! z8 j! b
MMC: STM32 SDMMC2: 0& R- q, i9 U5 n
In: serial@40011000
Out: serial@40011000
Err: serial@40011000
Net: 6 G* v. w$ s3 z. u0 D$ K
Warning: ethernet@40028000 (eth0) using random MAC address - b6:1d:0e:15:99:e3/ `. y" N: e/ z9 M7 U+ }( m2 t( T
eth0: ethernet@40028000
Hit SPACE in 3 seconds to stop autoboot., j& A5 C. c# r' N! \
Card did not respond to voltage select!
U-Boot > tftpboot 0x60001000 192.168.1.103:u-boot.bin " T( m% {8 g$ U
ethernet@40028000 Waiting for PHY auto negotiation to complete... done
*** ERROR: `ipaddr' not set2 j( r. H' p& m/ W T: J5 G4 h
U-Boot > set ipaddr 192.168.1.101;set serverip 192.168.1.1;set ethaddr d6:54:97:9f:9a:90; * h6 u7 b7 g3 |/ o6 H
U-Boot > tftpboot 0x60001000 192.168.1.103:u-boot.bin 5 l/ ~( u5 F; A. T9 z7 f
ethernet@40028000 Waiting for PHY auto negotiation to complete... done* }( c7 w# I0 F: {7 Q* P
Using ethernet@40028000 device- S5 y# ]/ _5 O0 t, ?8 z
TFTP from server 192.168.1.103; our IP address is 192.168.1.101
Filename 'u-boot.bin'.1 y4 w# M- t) r% A: f
Load address: 0x60001000, x; J# h9 |/ p$ n( N$ m3 g% _% M; S' z& l
Loading: ##################( S6 o" ^1 G, }
1.8 MiB/s5 ?4 z3 J T2 u* u, i. u
done
Bytes transferred = 257336 (3ed38 hex)9 @$ B" q g2 I
U-Boot > cmp.b 60001000 8000000 3ed38 % b* {4 K! T* y! U/ e4 z6 ^
Total of 257336 byte(s) were the same& a$ ]3 n) i8 i
( ?- x! C/ _: A0 s# [# v
接下来看看kernel 咋能。
8 l" z$ w0 b2 B: b/ ]' }, h! s" U+ w
说下eth dma 最大的注意事项,就是cache dma ram 一致性, 卡了好个晚上,对于这个一致性,没有多少经验,希望大家给点经验指导下。
switch to partitions #0, OK3 e+ z( U! z, @* B* _
mmc0 is current device/ D8 g. y; ^1 Z# N+ m
Scanning mmc 0:1...$ D4 Y9 }* v* j: G
U-Boot > fatload mmc 0 60008000 uImage;fatload mmc 0 60800000 stm32h743i-eval.dtb / `7 e( u2 Z8 o% m. P) f8 f
1926672 bytes read in 19 ms (96.7 MiB/s)2 F- n0 x4 Q6 S+ K
9370 bytes read in 2 ms (4.5 MiB/s)
U-Boot >
请查看串口定义部分 高版本内核串口的定义不一样 ttys0 具体看下驱动代码
看下这个如果你用的内核版本是这样% r D% V# S5 e9 i5 y5 T, r% ?
git\linux-4.19.9\drivers\tty\serial\stm32-usart.h
#define _SERIAL_NAME "ttySTM"
把这个 U-Boot > env set bootargs "root=/dev/ram console=ttyS0,115200 "
' `: `& [& L! v0 k9 c' i' {1 D
改成这个% @9 r2 j+ e8 N# H7 I7 F6 w: V
env set bootargs "root=/dev/ram console=ttySTM,115200 "
+ P- P9 U7 V1 Y! I$ W% j
- }; G, u- ]) d: ?6 c" h
这个STM工程师比较那个,我也被坑了,各种分析,内存BUFF分析 等等 我就像骂一句 mmp
谢楼主啊
楼主您好,linux内核确实是你说的那样,但是改了uboot的bootargs后,仍然不能在启动内核后打印信息。。。stm的工程师看来是只管写不管有没有用啊。。。