章鱼哥听歌

news2024/11/26 10:33:15

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
mands

STM32MP> 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 arguments

Usage:
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@MINI2440]# loadb
## Ready for binary (kermit) download to 0x30008000 at 115200 bps...
    上面已经启动了U-boot的kermit传输协议, 这时按下 Ctrl + \ , 再按 c, 三个键一起按,切换到C-kermit的命令行模式,输入命令:send  <文件路径>,回车。

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 host

Usage:
ping pingAddress
STM32MP> help tftp
tftpboot - boot image via network using TFTP protocol

Usage:
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 host

Usage:
ping pingAddress
STM32MP> help tftp
tftpboot - boot image via network using TFTP protocol

Usage:
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>

 

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/333118.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

EasyX精准帧率控制打气球小游戏

&#x1f386;音乐分享 New Boy —— 房东的猫 之前都用Sleep&#xff08;&#xff09;来控制画面帧率&#xff0c;忽略了绘制画面的时间 如果绘制画面需要很长的时间&#xff0c;那么就不能忽略了。 并且Sleep&#xff08;&#xff09;函数也不是特别准确&#xff0c;那么就…

day3——有关java运算符的笔记

今天主要学习的内容有java的运算符 赋值运算符算数运算符关系运算符逻辑运算符位运算符&#xff08;专门写一篇笔记&#xff09;条件运算符运算符的优先级流程控制 赋值运算符 赋值运算符&#xff08;&#xff09;主要用于给变量赋值&#xff0c;可以跟算数运算符相结合&…

【✨十五天搞定电工基础】基本放大电路

本章要求1. 理解放大电路的放大作用和共发射极放大电路的性能特点&#xff1b; 2. 掌握静态工作点的估算方法和放大电路的微变等效电路分析法&#xff1b; 3. 了解放大电路输入、输出电阻和电压放大倍数的计算方法&#xff0c;了解放大电路的频率特性、 互补功率放大…

八、STM32串口通信

目录 一、串口通信 1.1串口通信物理层 1.2USB转串口模块 1.3串口通信的其他应用 1.4串口数据包的基本组成 二、串口的结构体与函数讲解 2.1串口讲解 2.2结构体讲解 2.3串口初始化函数讲解 三、串口发送字符 3.1如何配置串口的发送 3.2项目实战 四、串口的中断接收 …

一文搞懂 什么是CPU上下文?为什么要切换?如何减少切换?

最近经常有小伙伴问到的一些问题&#xff0c;比较集中的是关于CPU切换. 实际用C/C&#xff0c;go开发&#xff0c;你会特别注意内存和CPU的使用情况&#xff0c;那些对于CPU使用情况特别关注&#xff0c;或者性能特别关注的朋友可以看看这篇文章&#xff0c;相信看完结尾的示例…

二、Linux文件 - Open函数讲解实战

目录 1.Open函数讲解 2.open函数实战 2.1 man 1 ls 查询Shell命令 2.2 man 2 open 查看系统调用函数 2.3项目实战 2.3.1O_RDWR和O_CREAT 2.3.2O_APPEND的用法 1.Open函数讲解 高频使用的Linux系统调用&#xff1a;open write read close Linux自带的工具&#xf…

C语言实现五子棋(n子棋)

五子棋的历史背景&#xff1a; 五子棋起源于中国&#xff0c;是全国智力运动会竞技项目之一&#xff0c;是一种两人对弈的纯策略型棋类游戏。双方分别使用黑白两色的棋子&#xff0c;下在棋盘直线与横线的交叉点上&#xff0c;先形成五子连珠者获胜。五子棋容易上手&#xff0c…

c/c++开发,无可避免的文件访问开发案例

一、缓存文件系统 ANSI C标准中的C语言库提供了fopen, fclose, fread, fwrite, fgetc, fgets, fputc, fputs, freopen, fseek, ftell, rewind等标准函数&#xff0c;这些函数在不同的操作系统中应该调用不同的内核API&#xff0c;从而支持开发者跨平台实现对文件的访问。 在Lin…

【九宫格坐标排列 Objective-C语言】

一、这个案例做好之后的效果如图: 1.这个下载是可以点击的,当你点击之后,弹出一个框,过一会儿,框框自动消失,这里变成“已安装” 2.那么,我现在先问大家一句话:大家认为在这一个应用里面,它包含几个控件, 3个,哪3个:一个是图片框,一个是Label,一个是按钮, 这…

python学习笔记-查看数据结构、均值、中位数、分位数、众数、离中趋势(标准差、方差、求和、偏态系数、风险系数)正态分布pdf、cdf、ppf

①引入pandas包&#xff0c;命名为pd。 import pandas as pd ②读入HR.csv数据 dfpd.read_csv(“./data/HR.csv”) ③查看是什么结构 type(df) ④查看单个类别satisfaction_level的数据结构 type(df[“satisfaction_level”]) ⑤查看均值的数据结构 type(df.mean()) …

运行Whisper笔记(1)

最近chatGPT很火&#xff0c;就去逛了一下openai的github项目。发现了这个项目。 这个项目可以识别视频中的音频&#xff0c;转换出字幕。 带着一颗好奇的心就尝试自己去部署玩一玩 跟着这篇文章一步步来进行安装&#xff0c;并且跟着这篇文章解决途中遇到的问题。 途中还会遇…

男,26岁,做了一年多的自动化测试,最近在纠结要不要转行,求指点。?

最近一个粉丝在后台问我&#xff0c;啊大佬我现在26了&#xff0c;做了做了一年多的自动化测试&#xff0c;最近在纠结要不要转行&#xff0c;求指点。首选做IT这条路&#xff0c;就是很普通的技术蓝领。对于大部分来说干一辈子问题不大&#xff0c;但是发不了什么财。如果你在…

第015天:将APP发布到应用商店(完结)

应用已经开发出来了&#xff0c;下一步我们需要思考推广方面的工作。那么如何才能让更多的用户知 道并使用我们的应用程序呢&#xff1f;在手机领域&#xff0c;最常见的做法就是将程序发布到某个应用商店中&#xff0c;这 样用户就可以通过商店找到我们的应用程序&#xff0c;…

前端修行 - 与后端配合的那些事情

最近总结一下个人作为前端&#xff0c;与后端、测试、以及产品经理、UI设计之间配合的那些事情&#xff0c;想到哪里说到哪里 1 关于正确认识项目研发一号位都是后端的这个事情 项目研发一号位&#xff0c;在有的公司可能会叫做SDM&#xff08;software development manger&am…

springboot 接入websocket实现定时推送消息到客户端

目录说明代码实现说明 如标题&#xff0c;举例需求场景&#xff1a; 前端与后端websocket连接上后&#xff0c;多用户登录&#xff0c;后端根据不同用户定时发消息给前端用于展示 代码实现 1、 <dependency><groupId>org.springframework.boot</groupId>…

vit-pytorch实现 MobileViT注意力可视化

项目链接 https://github.com/lucidrains/vit-pytorch 注意一下参数设置&#xff1a; Parameters image_size: int. Image size. If you have rectangular images, make sure your image size is the maximum of the width and heightpatch_size: int. Number of patches. im…

git:详解git rebase命令

背景 今天无意中打开 git 官网&#xff0c;发现 git 命令还是很多的&#xff0c;然而我们常用的就那几个&#xff0c;今天来学习一个也不怎么常用的命令 rebase 官网链接 都说学一个东西最好的方式就是读他的 官方文档&#xff0c;这里我读了一遍&#xff0c;把一些核心的地…

读书思考:步步惊心的《技术陷阱》

《技术陷阱》这本书450页&#xff0c;43万字之巨&#xff0c;信息量密密麻麻&#xff0c;采集的资料极其丰富&#xff0c;复习了一遍大停滞、大分流、大平衡、大逆转时代&#xff0c;并展望未来。看完了有很多想法&#xff0c;随手写了下来&#xff0c;希望不是蹭热点。&#x…

vue 最详细教学篇(一)

文章目录前言前景Vue 的长期技术支持 (LTS)、终止支持 (EOL) 及其延长版服务学习vue 要掌握那些技能-为什么学习 vue走进vueHello World 起手提示&#xff1a;示例&#xff1a;示例解析编辑器 VSCodevsCode 插件正式使用 vue.js要使用 vue 就绕不开生命周期 下面是生命周期图&a…

全国青少年编程等级考试scratch一级真题2022年9月(含题库答题软件账号)

青少年编程等级考试scratch真题答题考试系统请点击电子学会-全国青少年编程等级考试真题Scratch一级&#xff08;2019年3月&#xff09;在线答题_程序猿下山的博客-CSDN博客_小航答题助手1点击绿旗&#xff0c;下列哪个选项可以实现播放马叫声并在声音全部播放完后&#xff0c;…