Update U-Boot Image via USB on AMC1
From DSignT Support Database
1 usb start
usb start
Initialize the USB controler and enumerate all USB devices
AMC1> usb start
starting USB...
USB0: Register 2000440 NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
AMC1>
usb info
Print detailed information of enumerated devices
AMC1> usb info
1: Hub, USB Revision 3.0
- U-Boot XHCI Host Controller
- Class: Hub
- PacketSize: 9 Configurations: 1
- Vendor: 0x0000 Product 0x0000 Version 1.0
Configuration: 1
- Interfaces: 1 Self Powered 0mA
Interface: 0
- Alternate Setting 0, Endpoints: 1
- Class Hub
- Endpoint 1 In Interrupt MaxPacket 8 Interval 255ms
2: Mass Storage, USB Revision 2.0
- USBest Technology USB Mass Storage Devie 1009135102477e
- Class: (from Interface) Mass Storage
- PacketSize: 64 Configurations: 1
- Vendor: 0x1307 Product 0x0165 Version 1.0
Configuration: 1
- Interfaces: 1 Bus Powered 98mA
Interface: 0
- Alternate Setting 0, Endpoints: 3
- Class Mass Storage, Transp. SCSI, Bulk only
- Endpoint 1 Out Bulk MaxPacket 512
- Endpoint 2 In Bulk MaxPacket 512
- Endpoint 3 In Interrupt MaxPacket 64 Interval 8ms
AMC1>
2 fatload
fatload usb 0 ${loadaddr} u-boot.bin
Load U-Boot image from USB mass storage device into RAM
AMC1> fatload usb 0 ${loadaddr} u-boot.bin
reading u-boot.bin
379008 bytes read in 228 ms (1.6 MiB/s)
AMC1>
3 write to QSPI FLASH
sf probe sf erase 0x0 0x70000 sf write ${loadaddr} 0x0 ${filesize}
Detect serial QSPI FLASH, erase boot sector and write new image
AMC1> sf probe
SF: Detected w25q64cv with page size 256 Bytes, erase size 4 KiB, total 8 MiB, m
apped at 30000000
AMC1> sf erase 0x0 0x70000
SF: 458752 bytes @ 0x0 Erased: OK
AMC1> sf write ${loadaddr} 0x0 ${filesize}
device 0 offset 0x0, size 0x5c880
SF: 379008 bytes @ 0x0 Written: OK
AMC1>
4 Additional Tags
Serial FLASH mapping on AMC1 Serial FLASH programming via U-Boot on AMC1