uboot环境变量 以下所有的命令,都在串口工具进行执行
ubifsmount- mount UBIFS volume
ubifsumount- unmount UBIFS volume
ums - Use the UMS [USB Mass Storage]
usb - USB sub-system
usbboot - boot from USB device
version - print monitor, compiler and linker version
STM32MP> help uboot
Unknown command 'uboot' - try 'help' without arguments for list of all known com
mandsSTM32MP> help loadb
loadb - load binary file over serial line (kermit mode)Usage:
loadb [ off ] [ baud ]
- load binary file over serial line with offset 'off' and baudrate 'baud'
STM32MP> help go
go - start application at address 'addr'Usage:
go addr [arg ...]
- start application at address 'addr'
passing 'arg' as argumentsUsage:
gpio <input|set|clear|toggle> <pin>
- input/set/clear/toggle the specified pin
gpio status [-a] [<bank> | <pin>] - show [all/claimed] GPIOs
STM32MP> arch=arm
STM32MP> baudrate=115200
STM32MP> board=stm32mp1
STM32MP> board_name=hqyj,stm32mp157a-fsmp1a
STM32MP> bootdelay=20
STM32MP> bootargs=root=/dev/nfs nfsroot=192.168.1.210:/home/ubuntu/nfs/rootfs,tc
p,v4 console=ttySTM0,115200 init=/linuxrc ip=192.168.1.250
STM32MP> bootcmd=tftp 0xc0008000 asm-led.bin;go 0xc0008000
Unknown command 'bootcmd=tftp' - try 'help'
## Starting application at 0xC0008000 ...
undefined instruction
pc : [<c00710bc>] lr : [<ddc457d7>]
reloc pc : [<a25320bc>] lr : [<c01067d7>]
sp : dbaec420 ip : 00000000 fp : 00000002
r10: ddcf40e0 r9 : dbaffec0 r8 : dbc4ae00
r7 : ddc5fd79 r6 : 00000002 r5 : 000000fd r4 : dbc4ae04
r3 : c0008000 r2 : dbc4ae04 r1 : dbc4ae04 r0 : 00000001
Flags: nzCv IRQs off FIQs off Mode SVC_32
Code: a57a3d74 74efffef 67f5b66c dc8ffaff (77f5bf7f)
Resetting CPU ...resetting ...
INFO: PSCI Power Domain Map:
INFO: Domain Node : Level 1, parent_node -1, State ON (0x0)
INFO: Domain Node : Level 0, parent_node 0, State ON (0x0)
INFO: CPU Node : MPID 0x0, parent_node 0, State ON (0x0)
INFO: CPU Node : MPID 0xffffffff, parent_node 0, State OFF (0x2)
NOTICE: CPU: STM32MP157AAA Rev.B
NOTICE: Model: HQYJ STM32MP157 FSMP1A EXTENDED Discovery Board
INFO: Reset reason (0x54):
INFO: System reset generated by MPU (MPSYSRST)
INFO: Using EMMC
INFO: Instance 2
INFO: Boot used partition fsbl1
NOTICE: BL2: v2.2-r1.0(debug):a70053f
NOTICE: BL2: Built : 09:55:29, Nov 5 2020
INFO: Using crypto library 'stm32_crypto_lib'
INFO: BL2: Doing platform setup
INFO: RAM: DDR3-DDR3L 16bits 533000Khz
INFO: Memory size = 0x20000000 (512 MB)
INFO: BL2 runs SP_MIN setup
INFO: BL2: Loading image id 4
INFO: Loading image id=4 at address 0x2ffed000
INFO: Image id=4 loaded: 0x2ffed000 - 0x2ffff000
INFO: BL2: Loading image id 5
INFO: Loading image id=5 at address 0xc0100000
INFO: STM32 Image size : 907542
INFO: Image id=5 loaded: 0xc0100000 - 0xc01dd916
WARNING: Skip signature check (header option)
NOTICE: ROTPK is not deployed on platform. Skipping ROTPK verification.
NOTICE: BL2: Booting BL32
INFO: Entry point address = 0x2ffed000
INFO: SPSR = 0x1d3
INFO: Cannot find st,stpmic1 node in DT
NOTICE: SP_MIN: v2.2-r1.0(debug):a70053f
NOTICE: SP_MIN: Built : 09:55:29, Nov 5 2020
INFO: ARM GICv2 driver initialized
INFO: stm32mp IWDG1 (12): Secure
INFO: ETZPC: CRYP1 (9) could be non secure
INFO: SP_MIN: Initializing runtime services
INFO: SP_MIN: Preparing exit to normal world
U-Boot 2020.10 (Jun 02 2022 - 17:19:23 +0800)CPU: STM32MP157AAA Rev.B
Model: HQYJ STM32MP157A-FSMP1A Discovery Board
Board: stm32mp1 in trusted mode (hqyj,stm32mp157a-fsmp1a)
DRAM: 512 MiB
Clocks:
- MPU : 650 MHz
- MCU : 208.878 MHz
- AXI : 266.500 MHz
- PER : 24 MHz
- DDR : 533 MHz
WDT: Stop with servicing
NAND: 0 MiB
MMC: STM32 SD/MMC: 0, STM32 SD/MMC: 1
Loading Environment from MMC... OK
In: serial
Out: serial
Err: serial
Net: eth0: ethernet@5800a000
starting USB...
Bus usbh-ehci@5800d000: USB EHCI 1.00
scanning bus usbh-ehci@5800d000 for devices... 2 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot: 0
ethernet@5800a000 Waiting for PHY auto negotiation to complete.... done
Using ethernet@5800a000 device
TFTP from server 192.168.1.100; our IP address is 192.168.1.250
Filename 'uImage'.
Load address: 0xc2000000
Loading: *
ARP Retry count exceeded; starting again
Using ethernet@5800a000 device
TFTP from server 192.168.1.100; our IP address is 192.168.1.250
Filename 'stm32mp157a-fsmp1a.dtb'.
Load address: 0xc4000000
Loading: *
ARP Retry count exceeded; starting again
Wrong Image Format for bootm command
ERROR: can't get kernel image!
STM32MP>
STM32MP> gatewayip=192.168.1.1
STM32MP> serverip=192.168.1.250
STM32MP> netmask=255.255.255.0
STM32MP> 192.168.1.100
Unknown command '192.168.1.100' - try 'help'
STM32MP> ipaddr=192.168.1.100
STM32MP> run bootcmd
Using ethernet@5800a000 device
TFTP from server 192.168.1.100; our IP address is 192.168.1.250
Filename 'uImage'.
Load address: 0xc2000000
Loading: *
ARP Retry count exceeded; starting again
Using ethernet@5800a000 device
TFTP from server 192.168.1.100; our IP address is 192.168.1.250
Filename 'stm32mp157a-fsmp1a.dtb'.
Load address: 0xc4000000
Loading: *
ARP Retry count exceeded; starting again
Wrong Image Format for bootm command
ERROR: can't get kernel image!
STM32MP>
Using ethernet@5800a000 device
TFTP from server 192.168.1.100; our IP address is 192.168.1.250
Filename 'uImage'.
Load address: 0xc2000000
Loading: NOTICE: CPU: STM32MP157AAA Rev.B
NOTICE: Model: HQYJ STM32MP157 FSMP1A EXTENDED Discovery Board
INFO: Reset reason (0x15):
INFO: Power-on Reset (rst_por)
INFO: Using EMMC
INFO: Instance 2
INFO: Boot used partition fsbl1
NOTICE: BL2: v2.2-r1.0(debug):a70053f
NOTICE: BL2: Built : 09:55:29, Nov 5 2020
INFO: Using crypto library 'stm32_crypto_lib'
INFO: BL2: Doing platform setup
INFO: RAM: DDR3-DDR3L 16bits 533000Khz
INFO: Memory size = 0x20000000 (512 MB)
INFO: BL2 runs SP_MIN setup
INFO: BL2: Loading image id 4
INFO: Loading image id=4 at address 0x2ffed000
INFO: Image id=4 loaded: 0x2ffed000 - 0x2ffff000
INFO: BL2: Loading image id 5
INFO: Loading image id=5 at address 0xc0100000
INFO: STM32 Image size : 907542
INFO: Image id=5 loaded: 0xc0100000 - 0xc01dd916
WARNING: Skip signature check (header option)
NOTICE: ROTPK is not deployed on platform. Skipping ROTPK verification.
NOTICE: BL2: Booting BL32
INFO: Entry point address = 0x2ffed000
INFO: SPSR = 0x1d3
INFO: Cannot find st,stpmic1 node in DT
NOTICE: SP_MIN: v2.2-r1.0(debug):a70053f
NOTICE: SP_MIN: Built : 09:55:29, Nov 5 2020
INFO: ARM GICv2 driver initialized
INFO: stm32mp IWDG1 (12): Secure
INFO: ETZPC: CRYP1 (9) could be non secure
INFO: SP_MIN: Initializing runtime services
INFO: SP_MIN: Preparing exit to normal world
U-Boot 2020.10 (Jun 02 2022 - 17:19:23 +0800)CPU: STM32MP157AAA Rev.B
Model: HQYJ STM32MP157A-FSMP1A Discovery Board
Board: stm32mp1 in trusted mode (hqyj,stm32mp157a-fsmp1a)
DRAM: 512 MiB
Clocks:
- MPU : 650 MHz
- MCU : 208.878 MHz
- AXI : 266.500 MHz
- PER : 24 MHz
- DDR : 533 MHz
WDT: Stop with servicing
NAND: 0 MiB
MMC: STM32 SD/MMC: 0, STM32 SD/MMC: 1
Loading Environment from MMC... OK
In: serial
Out: serial
Err: serial
Net: eth0: ethernet@5800a000
starting USB...
Bus usbh-ehci@5800d000: USB EHCI 1.00
scanning bus usbh-ehci@5800d000 for devices... 2 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot: 0
STM32MP>
STM32MP>
STM32MP>Model: HQYJ STM32MP157A-FSMP1A Discovery Board
Board: stm32mp1 in trusted mode (hqyj,stm32mp157a-fsmp1a)
DRAM: 512 MiB
Clocks:
- MPU : 650 MHz
- MCU : 208.878 MHz
- AXI : 266.500 MHz
- PER : 24 MHz
- DDR : 533 MHz
WDT: Stop with servicing
NAND: 0 MiB
MMC: STM32 SD/MMC: 0, STM32 SD/MMC: 1
Loading Environment from MMC... OK
In: serial
Out: serial
Err: serial
Net: eth0: ethernet@5800a000
starting USB...
Bus usbh-ehci@5800d000: USB EHCI 1.00
scanning bus usbh-ehci@5800d000 for devices... 2 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot: 0
STM32MP>
STM32MP>STM32MP> setenv bootcmd u-boot命令1\; u-boot命令2\;..........
STM32MP> saveenv
Saving Environment to MMC... Writing to MMC(1)... OK
在windows下的超级终端可以用这些协议发送文件,但是在ubuntu下基本只能用kermit协议。一下使用C-kermit来发送一个文件到mini2440。
上面已经启动了U-boot的kermit传输协议, 这时按下 Ctrl + \ , 再按 c, 三个键一起按,切换到C-kermit的命令行模式,输入命令:send <文件路径>,回车。
[u-boot@MINI2440]# loadb
## Ready for binary (kermit) download to 0x30008000 at 115200 bps...Saving Environment to MMC... Writing to MMC(1)... OK
STM32MP> i)loadb 0xc0008000
Unknown command 'i)loadb' - try 'help'
STM32MP> loadb 0xc0008000
## Ready for binary (kermit) download to 0xC0008000 at 115200 bps...
## Total Size = 0x00000000 = 0 Bytes
## Start Addr = 0xC0008000
STM32MP>
STM32MP> go 0xc0008000
## Starting application at 0xC0008000 ...
undefined instruction
pc : [<c00710bc>] lr : [<ddc457d7>]
reloc pc : [<a25320bc>] lr : [<c01067d7>]
sp : dbaec420 ip : 00000000 fp : 00000002
r10: ddcf40e0 r9 : dbaffec0 r8 : dbc45080
r7 : ddc5fd79 r6 : 00000002 r5 : 000000fd r4 : dbc45084
r3 : c0008000 r2 : dbc45084 r1 : dbc45084 r0 : 00000001
Flags: nzCv IRQs off FIQs off Mode SVC_32
Code: a57a3d74 74efffef 67f5b66c dc8ffaff (77f5bf7f)
Resetting CPU ...resetting ...
INFO: PSCI Power Domain Map:
INFO: Domain Node : Level 1, parent_node -1, State ON (0x0)
INFO: Domain Node : Level 0, parent_node 0, State ON (0x0)
INFO: CPU Node : MPID 0x0, parent_node 0, State ON (0x0)
INFO: CPU Node : MPID 0xffffffff, parent_node 0, State OFF (0x2)
NOTICE: CPU: STM32MP157AAA Rev.B
NOTICE: Model: HQYJ STM32MP157 FSMP1A EXTENDED Discovery Board
INFO: Reset reason (0x54):
INFO: System reset generated by MPU (MPSYSRST)
INFO: Using EMMC
INFO: Instance 2
INFO: Boot used partition fsbl1
NOTICE: BL2: v2.2-r1.0(debug):a70053f
NOTICE: BL2: Built : 09:55:29, Nov 5 2020
INFO: Using crypto library 'stm32_crypto_lib'
INFO: BL2: Doing platform setup
INFO: RAM: DDR3-DDR3L 16bits 533000Khz
INFO: Memory size = 0x20000000 (512 MB)
INFO: BL2 runs SP_MIN setup
INFO: BL2: Loading image id 4
INFO: Loading image id=4 at address 0x2ffed000
INFO: Image id=4 loaded: 0x2ffed000 - 0x2ffff000
INFO: BL2: Loading image id 5
INFO: Loading image id=5 at address 0xc0100000
INFO: STM32 Image size : 907542
INFO: Image id=5 loaded: 0xc0100000 - 0xc01dd916
WARNING: Skip signature check (header option)
NOTICE: ROTPK is not deployed on platform. Skipping ROTPK verification.
NOTICE: BL2: Booting BL32
INFO: Entry point address = 0x2ffed000
INFO: SPSR = 0x1d3
INFO: Cannot find st,stpmic1 node in DT
NOTICE: SP_MIN: v2.2-r1.0(debug):a70053f
NOTICE: SP_MIN: Built : 09:55:29, Nov 5 2020
INFO: ARM GICv2 driver initialized
INFO: stm32mp IWDG1 (12): Secure
INFO: ETZPC: CRYP1 (9) could be non secure
INFO: SP_MIN: Initializing runtime services
INFO: SP_MIN: Preparing exit to normal world
U-Boot 2020.10 (Jun 02 2022 - 17:19:23 +0800)CPU: STM32MP157AAA Rev.B
Model: HQYJ STM32MP157A-FSMP1A Discovery Board
Board: stm32mp1 in trusted mode (hqyj,stm32mp157a-fsmp1a)
DRAM: 512 MiB
Clocks:
- MPU : 650 MHz
- MCU : 208.878 MHz
- AXI : 266.500 MHz
- PER : 24 MHz
- DDR : 533 MHz
WDT: Stop with servicing
NAND: 0 MiB
MMC: STM32 SD/MMC: 0, STM32 SD/MMC: 1
Loading Environment from MMC... OK
In: serial
Out: serial
Err: serial
Net: eth0: ethernet@5800a000
starting USB...
Bus usbh-ehci@5800d000: USB EHCI 1.00
scanning bus usbh-ehci@5800d000 for devices... 2 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot: 0
Unknown command 'u-boot命令1' - try 'help'
Unknown command 'u-boot命令2' - try 'help'
Unknown command '..........' - try 'help'
STM32MP>
STM32MP> setenv bootcmd loadb 0xc0008000\;go 0xc0008000
STM32MP> saveenv
Saving Environment to MMC... Writing to redundant MMC(1)... OK
STM32MP> pri bootcmd
bootcmd=loadb 0xc0008000;go 0xc0008000
STM32MP> run bootcmd
## Ready for binary (kermit) download to 0xC0008000 at 115200 bps...
## Total Size = 0x00000000 = 0 Bytes
## Start Addr = 0xC0008000
## Starting application at 0xC0008000 ...
undefined instruction
pc : [<c00710bc>] lr : [<ddc457d7>]
reloc pc : [<a25320bc>] lr : [<c01067d7>]
sp : dbaec2f0 ip : 00000000 fp : 00000002
r10: ddcf40e0 r9 : dbaffec0 r8 : dbc44290
r7 : ddc5fd79 r6 : 00000002 r5 : 000000fd r4 : dbc44294
r3 : c0008000 r2 : dbc44294 r1 : dbc44294 r0 : 00000001
Flags: nzCv IRQs off FIQs off Mode SVC_32
Code: a57a3d74 74efffef 67f5b66c dc8ffaff (77f5bf7f)
Resetting CPU ...resetting ...
INFO: PSCI Power Domain Map:
INFO: Domain Node : Level 1, parent_node -1, State ON (0x0)
INFO: Domain Node : Level 0, parent_node 0, State ON (0x0)
INFO: CPU Node : MPID 0x0, parent_node 0, State ON (0x0)
INFO: CPU Node : MPID 0xffffffff, parent_node 0, State OFF (0x2)
NOTICE: CPU: STM32MP157AAA Rev.B
NOTICE: Model: HQYJ STM32MP157 FSMP1A EXTENDED Discovery Board
INFO: Reset reason (0x54):
INFO: System reset generated by MPU (MPSYSRST)
INFO: Using EMMC
INFO: Instance 2
INFO: Boot used partition fsbl1
NOTICE: BL2: v2.2-r1.0(debug):a70053f
NOTICE: BL2: Built : 09:55:29, Nov 5 2020
INFO: Using crypto library 'stm32_crypto_lib'
INFO: BL2: Doing platform setup
INFO: RAM: DDR3-DDR3L 16bits 533000Khz
INFO: Memory size = 0x20000000 (512 MB)
INFO: BL2 runs SP_MIN setup
INFO: BL2: Loading image id 4
INFO: Loading image id=4 at address 0x2ffed000
INFO: Image id=4 loaded: 0x2ffed000 - 0x2ffff000
INFO: BL2: Loading image id 5
INFO: Loading image id=5 at address 0xc0100000
INFO: STM32 Image size : 907542
INFO: Image id=5 loaded: 0xc0100000 - 0xc01dd916
WARNING: Skip signature check (header option)
NOTICE: ROTPK is not deployed on platform. Skipping ROTPK verification.
NOTICE: BL2: Booting BL32
INFO: Entry point address = 0x2ffed000
INFO: SPSR = 0x1d3
INFO: Cannot find st,stpmic1 node in DT
NOTICE: SP_MIN: v2.2-r1.0(debug):a70053f
NOTICE: SP_MIN: Built : 09:55:29, Nov 5 2020
INFO: ARM GICv2 driver initialized
INFO: stm32mp IWDG1 (12): Secure
INFO: ETZPC: CRYP1 (9) could be non secure
INFO: SP_MIN: Initializing runtime services
INFO: SP_MIN: Preparing exit to normal world
U-Boot 2020.10 (Jun 02 2022 - 17:19:23 +0800)CPU: STM32MP157AAA Rev.B
Model: HQYJ STM32MP157A-FSMP1A Discovery Board
Board: stm32mp1 in trusted mode (hqyj,stm32mp157a-fsmp1a)
DRAM: 512 MiB
Clocks:
- MPU : 650 MHz
- MCU : 208.878 MHz
- AXI : 266.500 MHz
- PER : 24 MHz
- DDR : 533 MHz
WDT: Stop with servicing
NAND: 0 MiB
MMC: STM32 SD/MMC: 0, STM32 SD/MMC: 1
Loading Environment from MMC... OK
In: serial
Out: serial
Err: serial
Net: eth0: ethernet@5800a000
starting USB...
Bus usbh-ehci@5800d000: USB EHCI 1.00
scanning bus usbh-ehci@5800d000 for devices... 2 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot: 0
## Ready for binary (kermit) download to 0xC0008000 at 115200 bps...
## Total Size = 0x00000000 = 0 Bytes
## Start Addr = 0xC0008000
## Starting application at 0xC0008000 ...
undefined instruction
pc : [<c00710bc>] lr : [<ddc457d7>]
reloc pc : [<a25320bc>] lr : [<c01067d7>]
sp : dbaec408 ip : 00000000 fp : 00000002
r10: ddcf40e0 r9 : dbaffec0 r8 : dbc4a9e0
r7 : ddc5fd79 r6 : 00000002 r5 : 000000fd r4 : dbc4a9e4
r3 : c0008000 r2 : dbc4a9e4 r1 : dbc4a9e4 r0 : 00000001
Flags: nzCv IRQs off FIQs off Mode SVC_32
Code: a57a3d74 74efffef 67f5b66c dc8ffaff (77f5bf7f)
Resetting CPU ...resetting ...
INFO: PSCI Power Domain Map:
INFO: Domain Node : Level 1, parent_node -1, State ON (0x0)
INFO: Domain Node : Level 0, parent_node 0, State ON (0x0)
INFO: CPU Node : MPID 0x0, parent_node 0, State ON (0x0)
INFO: CPU Node : MPID 0xffffffff, parent_node 0, State OFF (0x2)
NOTICE: CPU: STM32MP157AAA Rev.B
NOTICE: Model: HQYJ STM32MP157 FSMP1A EXTENDED Discovery Board
INFO: Reset reason (0x54):
INFO: System reset generated by MPU (MPSYSRST)
INFO: Using EMMC
INFO: Instance 2
INFO: Boot used partition fsbl1
NOTICE: BL2: v2.2-r1.0(debug):a70053f
NOTICE: BL2: Built : 09:55:29, Nov 5 2020
INFO: Using crypto library 'stm32_crypto_lib'
INFO: BL2: Doing platform setup
INFO: RAM: DDR3-DDR3L 16bits 533000Khz
INFO: Memory size = 0x20000000 (512 MB)
INFO: BL2 runs SP_MIN setup
INFO: BL2: Loading image id 4
INFO: Loading image id=4 at address 0x2ffed000
INFO: Image id=4 loaded: 0x2ffed000 - 0x2ffff000
INFO: BL2: Loading image id 5
INFO: Loading image id=5 at address 0xc0100000
INFO: STM32 Image size : 907542
INFO: Image id=5 loaded: 0xc0100000 - 0xc01dd916
WARNING: Skip signature check (header option)
NOTICE: ROTPK is not deployed on platform. Skipping ROTPK verification.
NOTICE: BL2: Booting BL32
INFO: Entry point address = 0x2ffed000
INFO: SPSR = 0x1d3
INFO: Cannot find st,stpmic1 node in DT
NOTICE: SP_MIN: v2.2-r1.0(debug):a70053f
NOTICE: SP_MIN: Built : 09:55:29, Nov 5 2020
INFO: ARM GICv2 driver initialized
INFO: stm32mp IWDG1 (12): Secure
INFO: ETZPC: CRYP1 (9) could be non secure
INFO: SP_MIN: Initializing runtime services
INFO: SP_MIN: Preparing exit to normal world
U-Boot 2020.10 (Jun 02 2022 - 17:19:23 +0800)CPU: STM32MP157AAA Rev.B
Model: HQYJ STM32MP157A-FSMP1A Discovery Board
Board: stm32mp1 in trusted mode (hqyj,stm32mp157a-fsmp1a)
DRAM: 512 MiB
Clocks:
- MPU : 650 MHz
- MCU : 208.878 MHz
- AXI : 266.500 MHz
- PER : 24 MHz
- DDR : 533 MHz
WDT: Stop with servicing
NAND: 0 MiB
MMC: STM32 SD/MMC: 0, STM32 SD/MMC: 1
Loading Environment from MMC... OK
In: serial
Out: serial
Err: serial
Net: eth0: ethernet@5800a000
starting USB...
Bus usbh-ehci@5800d000: USB EHCI 1.00
scanning bus usbh-ehci@5800d000 for devices... 2 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot: 0
STM32MP>
STM32MP>
STM32MP>
STM32MP> help ping
ping - send ICMP ECHO_REQUEST to network hostUsage:
ping pingAddress
STM32MP> help tftp
tftpboot - boot image via network using TFTP protocolUsage:
tftpboot [loadAddress] [[hostIPaddr:]bootfilename]
STM32MP>
STM32MP> setenv saveenv
STM32MP> setenv bootdelay 15
STM32MP> saveenv
Saving Environment to MMC... Writing to MMC(1)... OK
STM32MP> pri bootdelay
bootdelay=15
STM32MP>
STM32MP> help ping
ping - send ICMP ECHO_REQUEST to network hostUsage:
ping pingAddress
STM32MP> help tftp
tftpboot - boot image via network using TFTP protocolUsage:
tftpboot [loadAddress] [[hostIPaddr:]bootfilename]
STM32MP> setenv saveenv
STM32MP> setenv bootdelay 15
STM32MP> saveenv
Saving Environment to MMC... Writing to MMC(1)... OK
STM32MP> pri bootdelay
bootdelay=15
STM32MP> setenv serverip 192.168.1.100
STM32MP> setenv netmask 255.255.255.0
STM32MP> setenv gatewayip 192.168.1.1
STM32MP> setenv ipaddr 192.168.1.250
STM32MP> saveenv
Saving Environment to MMC... Writing to redundant MMC(1)... OK
STM32MP>
.ping不成功解决方法
1)防火墙是否关闭
2)检查以太网网卡是否设置为百兆全双工模式
3)检查ubuntuIP地址是否设置为静态ip
4)检查串口工具中uboot环境变量参数是否设置正确(ipaddr\serverip\netmask\gatewayip)
5)检查网线是否连接
Saving Environment to MMC... Writing to redundant MMC(1)... OK
STM32MP> ping 192.168.1.100
ethernet@5800a000 Waiting for PHY auto negotiation to complete.... done
Using ethernet@5800a000 device
host 192.168.1.100 is alive
STM32MP>
测试tftp命令
STM32MP> tftp 0xc0008000 asm-led.bin
Using ethernet@5800a000 device
TFTP from server 192.168.1.100; our IP address is 192.168.1.250
Filename 'asm-led.bin'.
Load address: 0xc0008000
Loading: #
0 Bytes/s
done
STM32MP> go 0xc00080000
## Starting application at 0x00080000 ...
prefetch abort
pc : [<0007fffc>] lr : [<ddc457d7>]
reloc pc : [<e2540ffc>] lr : [<c01067d7>]
sp : dbaec420 ip : 00000000 fp : 00000002
r10: ddcf40e0 r9 : dbaffec0 r8 : dbc45110
r7 : ddc5fd79 r6 : 00000002 r5 : 00080000 r4 : dbc45114
r3 : 00080000 r2 : dbc45114 r1 : dbc45114 r0 : 00000001
Flags: nzCv IRQs off FIQs off Mode SVC_32
Code: data abort
pc : [<ddc40c7a>] lr : [<ddc40c69>]
reloc pc : [<c0101c7a>] lr : [<c0101c69>]
sp : dbaec328 ip : 00000000 fp : 00000002
r10: ddcd00fa r9 : dbaffec0 r8 : ddcd00f2
r7 : 00000000 r6 : 00000008 r5 : 0007fffc r4 : fffffffc
r3 : 00000001 r2 : 00000028 r1 : 00000000 r0 : 00000006
Flags: NzCv IRQs on FIQs on Mode SVC_32 (T)
Code: a05c b927 2c00 dc04 (f855) 2024
Resetting CPU ...resetting ...
INFO: PSCI Power Domain Map:
INFO: Domain Node : Level 1, parent_node -1, State ON (0x0)
INFO: Domain Node : Level 0, parent_node 0, State ON (0x0)
INFO: CPU Node : MPID 0x0, parent_node 0, State ON (0x0)
INFO: CPU Node : MPID 0xffffffff, parent_node 0, State OFF (0x2)
NOTICE: CPU: STM32MP157AAA Rev.B
NOTICE: Model: HQYJ STM32MP157 FSMP1A EXTENDED Discovery Board
INFO: Reset reason (0x54):
INFO: System reset generated by MPU (MPSYSRST)
INFO: Using EMMC
INFO: Instance 2
INFO: Boot used partition fsbl1
NOTICE: BL2: v2.2-r1.0(debug):a70053f
NOTICE: BL2: Built : 09:55:29, Nov 5 2020
INFO: Using crypto library 'stm32_crypto_lib'
INFO: BL2: Doing platform setup
INFO: RAM: DDR3-DDR3L 16bits 533000Khz
INFO: Memory size = 0x20000000 (512 MB)
INFO: BL2 runs SP_MIN setup
INFO: BL2: Loading image id 4
INFO: Loading image id=4 at address 0x2ffed000
INFO: Image id=4 loaded: 0x2ffed000 - 0x2ffff000
INFO: BL2: Loading image id 5
INFO: Loading image id=5 at address 0xc0100000
INFO: STM32 Image size : 907542
INFO: Image id=5 loaded: 0xc0100000 - 0xc01dd916
WARNING: Skip signature check (header option)
NOTICE: ROTPK is not deployed on platform. Skipping ROTPK verification.
NOTICE: BL2: Booting BL32
INFO: Entry point address = 0x2ffed000
INFO: SPSR = 0x1d3
INFO: Cannot find st,stpmic1 node in DT
NOTICE: SP_MIN: v2.2-r1.0(debug):a70053f
NOTICE: SP_MIN: Built : 09:55:29, Nov 5 2020
INFO: ARM GICv2 driver initialized
INFO: stm32mp IWDG1 (12): Secure
INFO: ETZPC: CRYP1 (9) could be non secure
INFO: SP_MIN: Initializing runtime services
INFO: SP_MIN: Preparing exit to normal world
U-Boot 2020.10 (Jun 02 2022 - 17:19:23 +0800)CPU: STM32MP157AAA Rev.B
Model: HQYJ STM32MP157A-FSMP1A Discovery Board
Board: stm32mp1 in trusted mode (hqyj,stm32mp157a-fsmp1a)
DRAM: 512 MiB
Clocks:
- MPU : 650 MHz
- MCU : 208.878 MHz
- AXI : 266.500 MHz
- PER : 24 MHz
- DDR : 533 MHz
WDT: Stop with servicing
NAND: 0 MiB
MMC: STM32 SD/MMC: 0, STM32 SD/MMC: 1
Loading Environment from MMC... OK
In: serial
Out: serial
Err: serial
Net: eth0: ethernet@5800a000
starting USB...
Bus usbh-ehci@5800d000: USB EHCI 1.00
scanning bus usbh-ehci@5800d000 for devices... 2 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot: 0
STM32MP>