本帖最后由 stone-363407 于 2018-12-7 16:42 编辑 6 Q1 g* C1 a: a 代码地址: http://github.com/huayuguo/uboot-stm32h743_eth 7 k' c+ ]# q' o" i* o U-Boot 2018.09-rc2-gc16d658 (Dec 06 2018 - 16:00:30 +0800) - I* K7 f/ X" ~* ^* Q Model: STMicroelectronics STM32H743i-EVAL board4 W6 H. L# V. {5 h X8 y c DRAM: 32 MiB7 U: g/ t7 [ u. Q0 r MMC: STM32 SDMMC2: 0# i3 m: {3 W1 b# h8 Z5 G6 y0 q: _ In: serial@40011000 Out: serial@40011000 Err: serial@400110007 B( |& I. K. r. l5 D! i0 m Net: 3 R) c" x% ]2 j( I- ~, P Warning: ethernet@40028000 (eth0) using random MAC address - fe:f8:94:5f:5e:26 eth0: ethernet@40028000+ \- }% s8 `) ?1 m! W1 B) K& Z Hit SPACE in 3 seconds to stop autoboot. switch to partitions #0, OK" D- c: i2 z* {$ y mmc0 is current device I" f, [6 X& `* e5 M( z 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; U-Boot > env set bootargs "root=/dev/ram console=ttyS0,115200 " U-Boot > tftpboot 61000000 192.168.10.25:uImage;tftpboot 61300000 192.168.10.25:stm32h743i-eval.dtb; 6 E6 A! S$ J+ h0 d ethernet@40028000 Waiting for PHY auto negotiation to complete. done Using ethernet@40028000 device0 o2 t: X- Q2 O8 n/ J TFTP from server 192.168.10.25; our IP address is 192.168.10.226 `9 O# b" L3 Q4 n Filename 'uImage'. Load address: 0x610000002 d0 U" g4 S% ?& k \6 O: I9 ~ Loading: #################################################################" t3 O0 w3 }2 F #################################################################/ }2 d. M! H: z& s' j3 u ##########: h/ Q) m! @ n 1.4 MiB/s done Bytes transferred = 2048568 (1f4238 hex)5 A6 ?, c9 u7 l( @! r ethernet@40028000 Waiting for PHY auto negotiation to complete. done Using ethernet@40028000 device TFTP from server 192.168.10.25; our IP address is 192.168.10.229 C% X5 F# T/ }# Z( P Filename 'stm32h743i-eval.dtb'.3 w* B% `( i1 |# V& f' b Load address: 0x613000003 I: @. ^5 A( f) |5 p1 v Loading: #; W# _7 u# N' d) U: i; O3 F8 x: | 999 KiB/s& N) `' w; _2 r( @3 d0 B done9 i9 k; [' i7 ~4 x Bytes transferred = 5115 (13fb hex) U-Boot > bootm 61000000 - 61300000 ! K. Q1 P; G9 F R) H* e ## Booting kernel from Legacy Image at 61000000 ... w& |# q7 X4 a' ^9 f- V Image Name: linux& i3 l! a8 {8 k Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 2048504 Bytes = 2 MiB Load Address: 61000000 Entry Point: 610000000 R- t& \* Q8 Z4 q! B Verifying Checksum ... OK9 B) g8 Q* n+ i5 t% c4 J ## Flattened Device Tree blob at 61300000) K2 F$ _* f: l Booting using the fdt blob at 0x61300000/ i3 E3 j* e3 d$ J Loading Kernel Image ... OK0 R! Q. ~) u: a( A$ t } Using Device Tree in place at 61300000, end 613043fa( `) F$ w# U- y4 [ 6 B4 Q1 m! E. U3 M Starting kernel ...+ d# l* f. r2 U( i7 {" y% e& a " u$ J! I5 F% ^& M ~1 q [ 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 [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache( m& a# \ s! g0 s6 T [ 0.000000] OF: fdt: Machine model: STMicroelectronics STM32H743i-EVAL board! k0 j( Q/ N) U, o4 g* v$ a [ 0.000000] Reserved memory: created DMA memory pool at 0x61000000, size 2 MiB [ 0.000000] OF: reserved mem: initialized node linux,dma, compatible id shared-dma-pool [ 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) k0 w. ^6 l+ H% Y) ` [ 0.000000] On node 0 totalpages: 4096% y9 R; r! E8 E2 R( N! y [ 0.000000] Normal zone: 32 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved# }- _) o9 N) o( u B4 d [ 0.000000] Normal zone: 4096 pages, LIFO batch:0 [ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768 [ 0.000000] pcpu-alloc: [0] 0 [ 0.000000] Built 1 zonelists, mobility grouping off. Total pages: 4064, B# a) h# O$ p s [ 0.000000] Kernel command line: root=/dev/ram console=ttyS0,115200 [ 0.000000] Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)) c9 M+ _1 X% j, A4 l" ` l [ 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)- g& t! R0 T+ F5 Q4 h [ 0.000000] Virtual kernel memory layout:5 \0 h; F+ |; F3 Q# [/ U [ 0.000000] vector : 0x00000000 - 0x00001000 ( 4 kB)6 d: u8 {2 g2 F3 |: D5 ] B7 ? [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB) [ 0.000000] vmalloc : 0x00000000 - 0xffffffff (4095 MB)$ p! V* J! R, i) T [ 0.000000] lowmem : 0x60000000 - 0x61000000 ( 16 MB) [ 0.000000] .text : 0x(ptrval) - 0x(ptrval) (1597 kB) [ 0.000000] .init : 0x(ptrval) - 0x(ptrval) ( 632 kB)$ N8 w1 H# A% a. ?! L [ 0.000000] .data : 0x(ptrval) - 0x(ptrval) ( 155 kB) [ 0.000000] .bss : 0x(ptrval) - 0x(ptrval) ( 131 kB) [ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1. S, X0 `+ v7 m& h8 g" D* c [ 0.000000] Preemptible hierarchical RCU implementation. [ 0.000000] Tasks RCU enabled. [ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16' ]8 U# c- T5 b, S* O7 H* h [ 0.000000] clocksource: arm_system_timer: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 18664651 ns4 S8 g# n' _3 d( g$ _ [ 0.000000] ARM System timer initialized as clocksource2 l9 y/ F3 F, y/ q [ 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)9 I% _- Y. L# r: Y0 ?" ?) w [ 0.100000] pid_max: default: 4096 minimum: 301 B0 j# ?) W; ?0 U7 t9 d [ 0.100000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)8 ?) p+ ?. y# e# C1 _' K- v o. Y5 u [ 0.100000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes), t* k# R9 s. f' K/ m$ g [ 0.100000] Hierarchical SRCU implementation. [ 0.100000] devtmpfs: initialized [ 0.110000] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns% z3 E- {+ O. z) M4 a2 l [ 0.110000] pinctrl core: initialized pinctrl subsystem [ 0.110000] DMA: default coherent area is set8 g+ t F$ w" Y6 ]+ }' d1 }+ v [ 0.110000] random: get_random_u32 called from bucket_table_alloc+0xc9/0xf4 with crng_init=0 [ 0.110000] NET: Registered protocol family 168 C. A7 r/ D8 _/ l2 e; H [ 0.120000] cpuidle: using governor ladder [ 0.120000] cpuidle: using governor menu [ 0.130000] stm32h743-pinctrl soc:pin-controller: GPIOA bank added3 \; X! h9 v5 @8 f2 J' [) ? [ 0.130000] stm32h743-pinctrl soc:pin-controller: GPIOB bank added' g/ w5 @# x; ~! R- `% H- D [ 0.130000] stm32h743-pinctrl soc:pin-controller: GPIOC bank added- \$ ?1 s; U+ Y% K [ 0.130000] stm32h743-pinctrl soc:pin-controller: GPIOD bank added& c$ D; ^ w' D [ 0.130000] stm32h743-pinctrl soc:pin-controller: GPIOE bank added6 v1 B3 L; e& w- ~! [( ^ u [ 0.130000] stm32h743-pinctrl soc:pin-controller: GPIOF bank added7 o. t i' r1 L8 o# Z6 M) B% P [ 0.140000] stm32h743-pinctrl soc:pin-controller: GPIOG bank added0 `& L+ E/ Y1 {8 s8 }1 ^ [ 0.140000] stm32h743-pinctrl soc:pin-controller: GPIOH bank added) W% H" {; S; I9 ^( ? [ 0.140000] stm32h743-pinctrl soc:pin-controller: GPIOI bank added [ 0.140000] stm32h743-pinctrl soc:pin-controller: GPIOJ bank added( ~ t( X; \. R& r [ 0.140000] stm32h743-pinctrl soc:pin-controller: GPIOK bank added! M- w# u* H* V! \ [ 0.140000] stm32h743-pinctrl soc:pin-controller: Pinctrl STM32 initialized5 I2 Z4 f/ I+ [2 w) v- Q6 q/ ^7 \5 ` [ 0.160000] pps_core: LinuxPPS API ver. 1 registered [ 0.160000] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it> [ 0.160000] PTP clock support registered. s! G1 x& F" A# F7 s [ 0.160000] clocksource: Switched to clocksource arm_system_timer [ 0.170000] NET: Registered protocol family 25 \- i E y3 P5 m+ l: B [ 0.170000] TCP established hash table entries: 1024 (order: 0, 4096 bytes) [ 0.170000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)& ^) o2 ]$ V9 s4 G4 @" e [ 0.170000] TCP: Hash tables configured (established 1024 bind 1024)3 R( {# u2 r% x8 ?& s& ~; C [ 0.170000] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.170000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.170000] NET: Registered protocol family 15 I8 Y4 v: \+ ^ [ 0.360000] workingset: timestamp_bits=30 max_order=12 bucket_order=0 [ 0.380000] random: fast init done9 ~! G6 B* Z p7 k0 |1 O8 v [ 0.400000] io scheduler noop registered [ 0.400000] io scheduler deadline registered) u! U, L1 L, e* @4 m# K# Y' Z [ 0.400000] io scheduler cfq registered (default). g, S4 K/ F g+ ` N [ 0.400000] io scheduler mq-deadline registered' E! J6 T& h9 o: z1 M [ 0.400000] io scheduler kyber registered* x! ]" W6 N6 b# L- V* R [ 0.400000] STM32 USART driver initialized [ 0.400000] 40011000.serial: ttyS0 at MMIO 0x40011000 (irq = 17, base_baud = 12500000) is a stm32-usart4 u2 R7 }% c9 V) A5 q [ 0.850000] console [ttyS0] enabled3 L1 h4 H6 t7 a4 Q. ]$ W; i9 W5 Y [ 0.850000] stm32-usart 40011000.serial: rx dma alloc failed# F' N! |& [9 ^7 q) E [ 0.860000] stm32-usart 40011000.serial: interrupt mode used for rx (no dma)) A+ F+ i v" f. X [ 0.870000] stm32-usart 40011000.serial: tx dma alloc failed [ 0.870000] stm32-usart 40011000.serial: interrupt mode used for tx (no dma)# b3 E7 Y, l j [ 0.880000] libphy: Fixed MDIO Bus: probed G! V+ w6 f7 H1 t2 U2 _+ i6 j8 |; w3 Q [ 0.890000] tun: Universal TUN/TAP device driver, 1.6 [ 0.890000] stm32-dwmac 40028000.ethernet: Found phy-handle subnode$ {3 x$ j( ]7 E* z. Z6 z [ 0.900000] stm32-dwmac 40028000.ethernet: Found MDIO subnode [ 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 [ 0.930000] stm32-dwmac 40028000.ethernet: DMA HW capability register supported8 F& T- P$ Z8 [* ]3 s [ 0.930000] stm32-dwmac 40028000.ethernet: RX Checksum Offload Engine supported [ 0.950000] stm32-dwmac 40028000.ethernet: TX Checksum insertion supported, A [- X _" m, x& `. {% U [ 0.950000] stm32-dwmac 40028000.ethernet: Wake-Up On Lan supported [ 0.950000] stm32-dwmac 40028000.ethernet: TSO supported [ 0.970000] stm32-dwmac 40028000.ethernet: Enable RX Mitigation via HW Watchdog Timer [ 0.970000] stmmac_mdio_reset : reset gpio direction num=28 $ E2 h+ ^7 T! M" J. R: T [ 1.080000] libphy: stmmac: probed [ 1.090000] stm32-dwmac 40028000.ethernet: register the MDIO bus [ 1.100000] u32 classifier8 Z# b: L4 T# g; y8 D" w% L$ \ [ 1.100000] Initializing XFRM netlink socket [ 1.110000] NET: Registered protocol family 178 ^7 T2 l5 C& d! l [ 1.110000] NET: Registered protocol family 15 [ 1.110000] 8021q: 802.1Q VLAN Support v1.8( N8 \' r5 z( x [ 1.120000] Key type dns_resolver registered [ 1.130000] Freeing unused kernel memory: 632K) M; K7 t0 s; j, b: X [ 1.140000] This architecture does not have kernel memory protection.4 B ]" ]6 k" K Q% i can't run '/sbin/swapon': No such file or directory Initializing random number generator... done.# q( B' i& x; N# C4 w Jan 1 00:00:01 login[59]: root login on 'console' ~ # |
cpu 400Mhz sdram 100mhz cas=2 ) ^! R8 r: D) P) D$ ~* V) _
测试软件:iperf3 4 |) w2 K6 O2 F
系统跑了25个线程测试速度如下。。。。没有原子裸奔的那个快............- S' L5 Z& p r+ @4 E6 ?
65.8 Mbits/sec4 Q) H8 D4 R0 p
~ # cat /proc/cpuinfo * M9 O" X2 d7 A7 z" y
processor : 0% L& c6 g& z9 _ b
model name : ARMv7-M rev 1 (v7ml)
BogoMIPS : 795.443 q) ?& Y, T: |1 G3 } V7 f
Features : half thumb fastmult edsp idivt 1 X: J; \7 p; l; }: [' c
CPU implementer : 0x41
CPU architecture: 7M
CPU variant : 0x1
CPU part : 0xc27
CPU revision : 1; O0 p2 `1 u" M8 D, y8 E
Hardware : STM32 (Device Tree Support)8 g6 i. _) w; _( v* v
Revision : 0000
Serial : 0000000000000000
~ # iperf3 -c 192.168.10.26
Connecting to host 192.168.10.26, port 52017 ~3 f' F1 Y' K1 L
[ 4] local 192.168.10.22 port 41328 connected to 192.168.10.26 port 5201
[ ID] Interval Transfer Bandwidth Retr Cwnd
[ 4] 0.00-1.01 sec 7.57 MBytes 63.0 Mbits/sec 0 173 KBytes
[ 4] 1.01-2.03 sec 8.22 MBytes 67.3 Mbits/sec 0 181 KBytes % I' R6 D) i2 B9 h
[ 4] 2.03-3.15 sec 8.75 MBytes 66.0 Mbits/sec 0 181 KBytes
[ 4] 3.15-4.04 sec 6.90 MBytes 65.0 Mbits/sec 0 181 KBytes , c- A# q ^0 c7 ~& j
[ 4] 4.04-5.15 sec 8.70 MBytes 65.4 Mbits/sec 0 181 KBytes
[ 4] 5.15-6.10 sec 7.40 MBytes 65.5 Mbits/sec 0 181 KBytes % ]" {* _7 L$ Y; N# X
[ 4] 6.10-7.01 sec 7.37 MBytes 67.7 Mbits/sec 0 191 KBytes 9 e8 J! U& m" V3 u, D
[ 4] 7.01-8.16 sec 8.95 MBytes 65.6 Mbits/sec 0 191 KBytes - v$ i( f7 _# k# t) Z2 Y
[ 4] 8.16-9.02 sec 6.86 MBytes 66.5 Mbits/sec 0 191 KBytes / b+ e2 t$ J, ~4 g: Z3 x7 u9 s
[ 4] 9.02-10.13 sec 8.73 MBytes 65.9 Mbits/sec 0 191 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bandwidth Retr" [& T9 S5 Q) ~( P
[ 4] 0.00-10.13 sec 79.4 MBytes 65.8 Mbits/sec 0 sender
[ 4] 0.00-10.13 sec 79.4 MBytes 65.8 Mbits/sec receiver
8 U/ J8 r9 _) s) X8 P" C) t
iperf Done.
~ # ps
PID USER VSZ STAT COMMAND8 l. g3 N2 v# [- i
1 root 400 S init
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]8 ]3 R" H# |; ?3 ^8 z! _
9 root 0 IW [rcu_sched]% b- t' Z. x0 l# Y- m
10 root 0 IW [rcu_bh]# O& w$ r$ n6 c8 O8 R# x
11 root 0 SW [kdevtmpfs]9 N: u: Z; d6 b5 l( N; ` E' S$ P+ Z- c0 [
12 root 0 SW [rcu_tasks_kthre]9 I8 L# C$ x! W# H% i' V* z& ?2 u
14 root 0 IW< [writeback]0 x I% i9 o5 z/ I) g( v" k
15 root 0 IW< [crypto]' t- l% c; ~ G. `; f
16 root 0 IW< [kblockd]0 I- `% P: ^9 y
17 root 0 IW< [watchdogd], |; c* z8 }8 p4 |# _( G* j
18 root 0 SW [kswapd0]
41 root 0 SW [irq/17-40011000]! E! H. f( a7 }- x. ]+ \
59 root 420 S -sh
60 root 0 IW [kworker/u2:1]
61 root 0 IW [kworker/u2:2]
64 root 0 IW [kworker/0:2]
65 root 0 IW [kworker/0:3]
71 root 0 IW [kworker/0:0]; r2 ?1 O( @8 k
75 root 396 R ps
) h2 T# g% C( a& }+ k
楼主,您好,看了您的贴子,手头正好有一块stm32f746-disco 的板子,按照您的思路,移植了uboot2016.09,移植了uboot eth驱动,因为没有移植MMC驱动,就打算把linux内核加载在SDRAM上,再从SDRAM启动内核;使用的是linux4.19.24默认的stm32配置,但是现在一直卡在“Starting kernel ...”,内核应该是没有起来;不知道您调试过程中是否遇到这个问题。附上打印的信息:1 g5 u" B( o$ b
U-Boot 2016.09-g83ec55b-dirty (Feb 22 2019 - 18:30:58 +0800)' ?' g6 r G' ], c6 w
DRAM: 8 MiB
WARNING: Caches not enabled
Flash: 1 MiB$ p- ?. d/ G7 h) X! R
Using default environment4 n _; o+ U/ A) c
In: serial_stm32x7
Out: serial_stm32x7
Err: serial_stm32x7; q3 r& x( a$ {$ W7 J+ K
Net:
stm32 eth probe start. {: r4 O }) Q
stm32 eth probe end3 g0 U1 X' b/ t# Z. ]& o
stm32_read_rom_hwaddr) ^5 O9 f' R8 K8 q
( W- r3 C# p# F. T
Warning: eth_stm32_eth using MAC address from ROM2 `1 v! { i; j9 x1 S! O0 d
eth0: eth_stm32_eth5 q" g+ G1 Q2 g; m) W* }, l6 U
stm32_write_hwaddr- I3 m2 A( A( O, T% D3 V/ ^
Hit SPACE in 3 seconds to stop autoboot.
U-Boot > set ipaddr 10.0.0.2
U-Boot > set serverip 10.0.0.6
U-Boot > tftp c0400000 uImage.bin
stm32_eth_stop start
stm32_eth_stop end
stm32_eth_start start
stm32_eth_start end7 G" y# w4 a' o1 Q4 |5 L
Using eth_stm32_eth device
TFTP from server 10.0.0.6; our IP address is 10.0.0.2
Filename 'uImage.bin'.; F7 Q! t* p* c% J+ I" }! c0 l& {
Load address: 0xc0400000
Loading: #################################################################4 d+ |" e) M4 ]/ g) K. \: X
###########################
2 MiB/s
done; l( B3 Z+ s# ?( L+ q |
Bytes transferred = 1337888 (146a20 hex)$ ^: O0 G0 m N7 H& |
stm32_eth_stop start
stm32_eth_stop end0 O3 a) B# n' }; q
U-Boot > tftp c0600000 discodtb.bin5 ?' w) }0 C. y2 h) t& j: J
stm32_eth_stop start; q M2 f9 }. x2 `
stm32_eth_stop end [8 `1 W% q' d+ c
stm32_eth_start start% N% B$ A' S8 K6 o
stm32_eth_start end. S- _! }8 t+ T! A- g1 c9 Y, e) r
Using eth_stm32_eth device6 m$ z1 u8 ^) I8 k% ?: y
TFTP from server 10.0.0.6; our IP address is 10.0.0.2% p) f1 X: W: ]4 Q7 J6 Y" F% h9 z
Filename 'discodtb.bin'.9 k8 ^ h4 G; c2 C
Load address: 0xc0600000
Loading: ##
966.8 KiB/s: X$ G( \: p, D9 T z
done- l/ N+ l, |% Y3 M1 F6 ~
Bytes transferred = 14858 (3a0a hex)
stm32_eth_stop start
stm32_eth_stop end$ a l3 m1 q$ @6 h3 j( d/ {; D: n
U-Boot > bootm c0400000 - c0600000& p! k, V P& ~/ Y% a- r
## Booting kernel from Legacy Image at c0400000 ...8 n) t- ]; m; y# ]1 T8 a* r
Image Name: Linux-4.19.246 A4 ?: _ F/ G9 a
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1337824 Bytes = 1.3 MiB; ?0 c- V; G6 s, D# A8 i& C
Load Address: c0008000
Entry Point: c0008000
Verifying Checksum ... OK
## Flattened Device Tree blob at c0600000
Booting using the fdt blob at 0xc0600000
Loading Kernel Image ... OK
Loading Device Tree to c07c7000, end c07cda09 ... OK6 M+ O8 h& E; I( O
Starting kernel ...0 p% }, b* M; p `) u
5 d. g& I- a4 J$ l3 [. b N* s
U-Boot 2018.09-rc2-g36b739b (Nov 25 2018 - 10:45:48 +0800)/ w/ }7 } ^8 I+ c
Model: STMicroelectronics STM32H743i-EVAL board# S0 {* f/ U& i" a1 O
DRAM: 32 MiB
MMC: STM32 SDMMC2: 0
In: serial@40011000
Out: serial@400110009 I. C4 ]( [5 I# [" c L6 k5 g5 m
Err: serial@40011000: X7 c) l# i6 z1 r0 n% E
Net: % `, H0 x. u' y7 ~
Warning: ethernet@40028000 (eth0) using random MAC address - b6:1d:0e:15:99:e36 y9 z& s1 b1 N% i% ]+ g. N, s' W
eth0: ethernet@400280006 E$ W0 H1 c. q) S
Hit SPACE in 3 seconds to stop autoboot.
Card did not respond to voltage select!
U-Boot > tftpboot 0x60001000 192.168.1.103:u-boot.bin
ethernet@40028000 Waiting for PHY auto negotiation to complete... done! I" [ a1 T2 S
*** ERROR: `ipaddr' not set
U-Boot > set ipaddr 192.168.1.101;set serverip 192.168.1.1;set ethaddr d6:54:97:9f:9a:90;
U-Boot > tftpboot 0x60001000 192.168.1.103:u-boot.bin
ethernet@40028000 Waiting for PHY auto negotiation to complete... done
Using ethernet@40028000 device
TFTP from server 192.168.1.103; our IP address is 192.168.1.101
Filename 'u-boot.bin'." u1 Z9 A0 b* ~9 V0 O
Load address: 0x60001000! a% Q$ A# m6 d
Loading: ##################
1.8 MiB/s1 ^: {; I7 Z& \8 G1 P
done
Bytes transferred = 257336 (3ed38 hex)0 `' H$ w& f- r/ q3 {0 I
U-Boot > cmp.b 60001000 8000000 3ed38
Total of 257336 byte(s) were the same2 S! Y. V5 W7 m+ l# T
7 j5 {$ p! ~ {# P/ i4 x' @6 k) e
接下来看看kernel 咋能。
a2 Y E2 P0 R6 k; s
说下eth dma 最大的注意事项,就是cache dma ram 一致性, 卡了好个晚上,对于这个一致性,没有多少经验,希望大家给点经验指导下。
switch to partitions #0, OK; \9 w" g/ \ B
mmc0 is current device0 P- O3 {3 c( m# F" A6 w6 g4 H$ x
Scanning mmc 0:1...7 m" u$ p9 q, |' G0 [+ ], h/ o' x
U-Boot > fatload mmc 0 60008000 uImage;fatload mmc 0 60800000 stm32h743i-eval.dtb
1926672 bytes read in 19 ms (96.7 MiB/s)5 h4 }8 s# e$ ]8 C! u
9370 bytes read in 2 ms (4.5 MiB/s)
U-Boot >
请查看串口定义部分 高版本内核串口的定义不一样 ttys0 具体看下驱动代码
看下这个如果你用的内核版本是这样+ ?" C3 R( e {8 X
git\linux-4.19.9\drivers\tty\serial\stm32-usart.h
#define _SERIAL_NAME "ttySTM"* l6 l2 @9 j; a- t$ `3 e4 g
把这个 U-Boot > env set bootargs "root=/dev/ram console=ttyS0,115200 "
改成这个
+ b& h. \% E. G; y) i
env set bootargs "root=/dev/ram console=ttySTM,115200 " ; {1 g3 \5 {6 D* ?: ?2 U
! s. s. w- I' U, I4 c
这个STM工程师比较那个,我也被坑了,各种分析,内存BUFF分析 等等 我就像骂一句 mmp
谢楼主啊,我回头试一下
楼主您好,linux内核确实是你说的那样,但是改了uboot的bootargs后,仍然不能在启动内核后打印信息。。。stm的工程师看来是只管写不管有没有用啊。。。