stm32h7-uboot-uclinux 完成部分分享给大家

2019-07-20 03:13发布

代码地址: https://github.com/huayuguo/uboot-stm32h743_eth

U-Boot 2018.11-rc2-01080-g5eae3c68ae-dirty (Nov 05 2018 - 15:11:07 +0800)

Model: STMicroelectronics STM32H743i-EVAL board
DRAM:  32 MiB
MMC:   STM32 SDMMC2: 0
In:    serial@40011000
Out:   serial@40011000
Err:   serial@40011000
Net:   Net Initialization Skipped
No ethernet found.
Hit SPACE in 3 seconds to stop autoboot.
stm32_sdmmc2_send_cmd: send cmd 0 data: 0x0 @ 0x0
stm32_sdmmc2_send_cmd: send cmd 8 data: 0x0 @ 0x0
stm32_sdmmc2_send_cmd: send cmd 55 data: 0x0 @ 0x0
stm32_sdmmc2_send_cmd: send cmd 41 data: 0x0 @ 0x0
stm32_sdmmc2_send_cmd: send cmd 55 data: 0x0 @ 0x0
stm32_sdmmc2_send_cmd: send cmd 41 data: 0x0 @ 0x0
stm32_sdmmc2_send_cmd: send cmd 55 data: 0x0 @ 0x0
stm32_sdmmc2_send_cmd: send cmd 41 data: 0x0 @ 0x0
stm32_sdmmc2_send_cmd: send cmd 2 data: 0x0 @ 0x0
stm32_sdmmc2_send_cmd: send cmd 3 data: 0x0 @ 0x0
stm32_sdmmc2_send_cmd: send cmd 9 data: 0x0 @ 0x0
stm32_sdmmc2_send_cmd: send cmd 7 data: 0x0 @ 0x0
stm32_sdmmc2_send_cmd: send cmd 55 data: 0x0 @ 0x0
stm32_sdmmc2_send_cmd: send cmd 51 data: 0x8 @ 0x61ea2604
stm32_sdmmc2_send_cmd: send cmd 6 data: 0x40 @ 0x61ea2614
stm32_sdmmc2_send_cmd: send cmd 55 data: 0x0 @ 0x0
stm32_sdmmc2_send_cmd: send cmd 6 data: 0x0 @ 0x0
stm32_sdmmc2_send_cmd: send cmd 6 data: 0x40 @ 0x61ea265c
stm32_sdmmc2_send_cmd: send cmd 55 data: 0x0 @ 0x0
stm32_sdmmc2_send_cmd: send cmd 13 data: 0x40 @ 0x61ea265c
stm32_sdmmc2_send_cmd: send cmd 16 data: 0x0 @ 0x0
stm32_sdmmc2_send_cmd: send cmd 17 data: 0x200 @ 0x61ea232c
switch to partitions #0, OK
mmc0 is current device
stm32_sdmmc2_send_cmd: send cmd 16 data: 0x0 @ 0x0
stm32_sdmmc2_send_cmd: send cmd 17 data: 0x200 @ 0x61ea22cc
Scanning mmc 0:1...
stm32_sdmmc2_send_cmd: send cmd 16 data: 0x0 @ 0x0
stm32_sdmmc2_send_cmd: send cmd 18 data: 0x400 @ 0x61ea218c
stm32_sdmmc2_send_cmd: send cmd 12 data: 0x0 @ 0x0
stm32_sdmmc2_send_cmd: send cmd 16 data: 0x0 @ 0x0
stm32_sdmmc2_send_cmd: send cmd 18 data: 0xc00 @ 0x61ea2174
stm32_sdmmc2_send_cmd: send cmd 12 data: 0x0 @ 0x0
stm32_sdmmc2_send_cmd: send cmd 16 data: 0x0 @ 0x0
stm32_sdmmc2_send_cmd: send cmd 18 data: 0xc00 @ 0x61ea2124
stm32_sdmmc2_send_cmd: send cmd 12 data: 0x0 @ 0x0
stm32_sdmmc2_send_cmd: send cmd 16 data: 0x0 @ 0x0
stm32_sdmmc2_send_cmd: send cmd 18 data: 0xc00 @ 0x61ea2124
stm32_sdmmc2_send_cmd: send cmd 12 data: 0x0 @ 0x0
stm32_sdmmc2_send_cmd: send cmd 16 data: 0x0 @ 0x0
stm32_sdmmc2_send_cmd: send cmd 18 data: 0xc00 @ 0x61ea2174
stm32_sdmmc2_send_cmd: send cmd 12 data: 0x0 @ 0x0
stm32_sdmmc2_send_cmd: send cmd 16 data: 0x0 @ 0x0
stm32_sdmmc2_send_cmd: send cmd 18 data: 0xc00 @ 0x61ea2124
stm32_sdmmc2_send_cmd: send cmd 12 data: 0x0 @ 0x0
stm32_sdmmc2_send_cmd: send cmd 16 data: 0x0 @ 0x0
stm32_sdmmc2_send_cmd: send cmd 18 data: 0xc00 @ 0x61ea2124
stm32_sdmmc2_send_cmd: send cmd 12 data: 0x0 @ 0x0
U-Boot > env set bootargs "root=/dev/ram console=ttyS0,115200"
U-Boot > fatload mmc 0 60008000 uImage;fatload mmc 0 60800000 stm32h743i-eval.dtb
stm32_sdmmc2_send_cmd: send cmd 16 data: 0x0 @ 0x0
stm32_sdmmc2_send_cmd: send cmd 18 data: 0xc00 @ 0x61ea2b74
stm32_sdmmc2_send_cmd: send cmd 12 data: 0x0 @ 0x0
stm32_sdmmc2_send_cmd: send cmd 16 data: 0x0 @ 0x0
stm32_sdmmc2_send_cmd: send cmd 18 data: 0xc00 @ 0x61ea2bdc
stm32_sdmmc2_send_cmd: send cmd 12 data: 0x0 @ 0x0
stm32_sdmmc2_send_cmd: send cmd 16 data: 0x0 @ 0x0
stm32_sdmmc2_send_cmd: send cmd 18 data: 0xc00 @ 0x61ea2bdc
stm32_sdmmc2_send_cmd: send cmd 12 data: 0x0 @ 0x0
stm32_sdmmc2_send_cmd: send cmd 16 data: 0x0 @ 0x0
stm32_sdmmc2_send_cmd: send cmd 18 data: 0x14f600 @ 0x61ea2bcc
stm32_sdmmc2_send_cmd: send cmd 12 data: 0x0 @ 0x0
stm32_sdmmc2_send_cmd: send cmd 16 data: 0x0 @ 0x0
stm32_sdmmc2_send_cmd: send cmd 17 data: 0x200 @ 0x61ea29ac
1374200 bytes read in 3004 ms (446.3 KiB/s)
stm32_sdmmc2_send_cmd: send cmd 16 data: 0x0 @ 0x0
stm32_sdmmc2_send_cmd: send cmd 18 data: 0xc00 @ 0x61ea2b74
stm32_sdmmc2_send_cmd: send cmd 12 data: 0x0 @ 0x0
stm32_sdmmc2_send_cmd: send cmd 16 data: 0x0 @ 0x0
stm32_sdmmc2_send_cmd: send cmd 18 data: 0xc00 @ 0x61ea2bdc
stm32_sdmmc2_send_cmd: send cmd 12 data: 0x0 @ 0x0
stm32_sdmmc2_send_cmd: send cmd 16 data: 0x0 @ 0x0
stm32_sdmmc2_send_cmd: send cmd 18 data: 0x2c00 @ 0x61ea2bcc
stm32_sdmmc2_send_cmd: send cmd 12 data: 0x0 @ 0x0
stm32_sdmmc2_send_cmd: send cmd 16 data: 0x0 @ 0x0
stm32_sdmmc2_send_cmd: send cmd 17 data: 0x200 @ 0x61ea29ac
11680 bytes read in 1999 ms (4.9 KiB/s)
U-Boot > bootm 60008000 - 60800000
## Booting kernel from Legacy Image at 60008000 ...
   Image Name:   linux
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1374136 Bytes = 1.3 MiB
   Load Address: 60008000
   Entry Point:  60008000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 60800000
   Booting using the fdt blob at 0x60800000
   Loading Kernel Image ... OK
   Using Device Tree in place at 60800000, end 60805d9f

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.15.2 (xiao@xd) (gcc version 6.3.1 20170620 (15:6.3.1+svn253039-1build1)) #4 PREEMPT Mon Nov 5 17:14:31 CST 2018
[    0.000000] CPU: ARMv7-M [411fc271] revision 1 (ARMv7M), cr=00000000
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] OF: fdt: Machine model: STMicroelectronics STM32H743i-EVAL board
[    0.000000] On node 0 totalpages: 8192
[    0.000000]   Normal zone: 64 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 8192 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 on.  Total pages: 8128
[    0.000000] Kernel command line: root=/dev/ram console=ttyS0,115200
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Memory: 30220K/32768K available (1115K kernel code, 127K rwdata, 388K rodata, 364K init, 114K bss, 2548K 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)
[    0.000000]     lowmem  : 0x60000000 - 0x62000000   (  32 MB)
[    0.000000]       .text : 0x(ptrval) - 0x(ptrval)   (1116 kB)
[    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   ( 364 kB)
[    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   ( 128 kB)
[    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 115 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Tasks RCU enabled.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] interrupt-controller@58000000: bank0, External IRQs available:0x3fffff
[    0.000000] interrupt-controller@58000000: bank1, External IRQs available:0xa0000
[    0.000000] interrupt-controller@58000000: bank2, External IRQs available:0x740000
[    0.000000] clocksource: arm_system_timer: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 29863442 ns
[    0.000000] ARM System timer initialized as clocksource
[    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... 444.82 BogoMIPS (lpj=2224128)
[    0.070000] pid_max: default: 4096 minimum: 301
[    0.070000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.070000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.070000] Hierarchical SRCU implementation.
[    0.070000] devtmpfs: initialized
[    0.090000] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.090000] pinctrl core: initialized pinctrl subsystem
[    0.110000] stm32h743-pinctrl soc:pin-controller: GPIOA bank added
[    0.110000] stm32h743-pinctrl soc:pin-controller: GPIOB bank added
[    0.110000] stm32h743-pinctrl soc:pin-controller: GPIOC bank added
[    0.110000] stm32h743-pinctrl soc:pin-controller: GPIOD bank added
[    0.110000] stm32h743-pinctrl soc:pin-controller: GPIOE bank added
[    0.110000] stm32h743-pinctrl soc:pin-controller: GPIOF bank added
[    0.110000] stm32h743-pinctrl soc:pin-controller: GPIOG bank added
[    0.110000] stm32h743-pinctrl soc:pin-controller: GPIOH bank added
[    0.110000] stm32h743-pinctrl soc:pin-controller: GPIOI bank added
[    0.110000] stm32h743-pinctrl soc:pin-controller: GPIOJ bank added
[    0.120000] stm32h743-pinctrl soc:pin-controller: GPIOK bank added
[    0.120000] stm32h743-pinctrl soc:pin-controller: Pinctrl STM32 initialized
[    0.130000] stm32-mdma 52000000.dma: STM32 MDMA driver registered
[    0.140000] clocksource: Switched to clocksource arm_system_timer
[    0.260000] workingset: timestamp_bits=30 max_order=13 bucket_order=0
[    0.270000] random: fast init done
[    0.280000] io scheduler noop registered (default)
[    0.280000] io scheduler mq-deadline registered
[    0.280000] io scheduler kyber registered
[    0.290000] STM32 USART driver initialized
[    0.290000] 40011000.serial: ttyS0 at MMIO 0x40011000 (irq = 32, base_baud = 7000000) is a stm32-usart
[    0.650000] console [ttyS0] enabled
[    0.650000] stm32-usart 40011000.serial: rx dma alloc failed
[    0.650000] stm32-usart 40011000.serial: interrupt mode used for rx (no dma)
[    0.660000] stm32-usart 40011000.serial: tx dma alloc failed
[    0.670000] stm32-usart 40011000.serial: interrupt mode used for tx (no dma)
[    0.670000] stm32_rtc 58004000.rtc: rtc core: registered 58004000.rtc as rtc0
[    0.680000] stm32_rtc 58004000.rtc: Date/Time must be initialized
[    0.690000] i2c /dev entries driver
[    0.720000] stm32f7-i2c 40005400.i2c: STM32F7 I2C-0 bus adapter
[    0.760000] stm32_rtc 58004000.rtc: setting system clock to 2000-01-01 01:21:19 UTC (946689679)
[    0.770000] Freeing unused kernel memory: 364K
[    0.770000] 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 01:21:19 login[53]: root login on 'console'
~ # ls
~ # pwd
/root
~ # cat /proc/cpuinfo
processor       : 0
model name      : ARMv7-M rev 1 (v7ml)
BogoMIPS        : 444.82
Features        : half thumb fastmult edsp idivt
CPU implementer : 0x41
CPU architecture: 7M
CPU variant     : 0x1
CPU part        : 0xc27
CPU revision    : 1

Hardware        : STM32 (Device Tree Support)
Revision        : 0000
Serial          : 0000000000000000
~ # top
sh: can't execute 'top': No such file or directory




友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。