Skip to content

Instantly share code, notes, and snippets.

@KunYi
Created October 3, 2021 09:08
Show Gist options
  • Save KunYi/b3b382aea67f989d03f34c3165fb0b47 to your computer and use it in GitHub Desktop.
Save KunYi/b3b382aea67f989d03f34c3165fb0b47 to your computer and use it in GitHub Desktop.
Capsule Update on SRG-IM8P for SystemReady IR
U-Boot SPL 2021.04-5.10.35-2.0.0+g79943c815e (Aug 26 2021 - 10:28:03 +0000)
DDRINFO: start DRAM init
DDRINFO: DRAM rate 3000MTS
DDRINFO:ddrphy calibration done
DDRINFO: ddrmix config done
SEC0: RNG instantiated
Normal Boot
WDT: Not found!
Trying to boot from BOOTROM
image offset 0x0, pagesize 0x200, ivt offset 0x0
Authenticate image from DDR location 0x401fcdc0...
NOTICE: BL31: v2.4(release):lf-5.10.35-2.0.0-rc2-0-gec35fef92
NOTICE: BL31: Built : 09:05:55, May 28 2021
U-Boot 2021.04-5.10.35-2.0.0+g79943c815e (Aug 26 2021 - 10:28:03 +0000)
CPU: i.MX8MP[6] rev1.1 1600 MHz (running at 1200 MHz)
CPU: Industrial temperature grade (-40C to 105C) at 40C
Reset cause: POR
Model: AAEON SRG-IM8P IoT Gateway
DRAM: 2 GiB
MMC: FSL_SDHC: 1, FSL_SDHC: 2
Loading Environment from MMC... OK
[*]-Video Link 0fail to find output device
probe video device failed, ret -19
[0] lcd-controller@32e80000, video
fail to find output device
probe video device failed, ret -19
In: serial
Out: serial
Err: serial
SEC0: RNG instantiated
BuildInfo:
- ATF ec35fef
flash target is MMC:2
Net:
Warning: ethernet@30be0000 (eth0) using random MAC address - 1e:4b:9b:d4:83:17
Warning: ethernet@30bf0000 (eth1) using random MAC address - 56:6f:83:f7:44:e3
eth0: ethernet@30be0000, eth1: ethernet@30bf0000 [PRIME]
Fastboot: Normal
Normal Boot
Hit any key to stop autoboot: 0
u-boot=> env set dfu_alt_info "mmc 2=1 raw 0 0x2000 mmcpart 1"
u-boot=> saveenv
Saving Environment to MMC... Writing to redundant MMC(2)... OK
u-boot=> efidebug boot add 0 Boot0000 mmc 2:1 capsule1.bin
MMC: no card present
Scanning disk [email protected]...
Disk [email protected] not ready
Scanning disk [email protected]...
Found 5 disks
** Unable to read file ubootefi.var **
Failed to load EFI variables
fail to find output device
u-boot=> efidebug boot next 0
u-boot=> setenv -e -nv -bs -rt -v OsIndications =0x04
GUID: 8be4df61-93ca-11d2-aa0d-00e098032b8c EFI_GLOBAL_VARIABLE_GUID
Attributes: 0x7
Value:
00000000: 04 .
u-boot=> fatload mmc 2:1 $loadaddr EFI/capsule1.bin
3632860 bytes read in 22 ms (157.5 MiB/s)
u-boot=> fatwrite mmc 2:1 ${loadaddr} /EFI/UpdateCapsule/capsule1.bin 0x${filesize}
3632860 bytes written in 80 ms (43.3 MiB/s)
u-boot=> efidebug capsule disk-update
#u-boot=> reset
resetting ...
U-Boot SPL 2021.04-5.10.35-2.0.0+g3463140881 (Jun 08 2021 - 01:39:44 +0000)
DDRINFO: start DRAM init
DDRINFO: DRAM rate 3000MTS
DDRINFO:ddrphy calibration done
DDRINFO: ddrmix config done
SEC0: RNG instantiated
Normal Boot
WDT: Not found!
Trying to boot from BOOTROM
image offset 0x0, pagesize 0x200, ivt offset 0x0
Authenticate image from DDR location 0x401fcdc0...
NOTICE: BL31: v2.4(release):lf-5.10.35-2.0.0-rc2-0-gec35fef92
NOTICE: BL31: Built : 09:05:55, May 28 2021
U-Boot 2021.04-5.10.35-2.0.0+g3463140881 (Jun 08 2021 - 01:39:44 +0000)
CPU: i.MX8MP[6] rev1.1 1600 MHz (running at 1200 MHz)
CPU: Industrial temperature grade (-40C to 105C) at 47C
Reset cause: POR
Model: AAEON SRG-IM8P IoT Gateway
DRAM: 2 GiB
MMC: FSL_SDHC: 1, FSL_SDHC: 2
Loading Environment from MMC... OK
[*]-Video Link 0fail to find output device
probe video device failed, ret -19
[0] lcd-controller@32e80000, video
fail to find output device
probe video device failed, ret -19
In: serial
Out: serial
Err: serial
SEC0: RNG instantiated
BuildInfo:
- ATF ec35fef
flash target is MMC:2
Net:
Warning: ethernet@30be0000 (eth0) using random MAC address - 82:0f:c6:eb:77:e2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment