Skip to content

Instantly share code, notes, and snippets.

@kylemd
Last active March 9, 2022 21:44
Show Gist options
  • Save kylemd/c3cd8f387672ef47f0d1438b07d3aae9 to your computer and use it in GitHub Desktop.
Save kylemd/c3cd8f387672ef47f0d1438b07d3aae9 to your computer and use it in GitHub Desktop.
Arcadyan AW1000 UBoot Log + Outputs
Format: Log Type - Time(microsec) - Message - Optional Info
Log Type: B - Since Boot(Power On Reset), D - Delta, S - Statistic
S - QC_IMAGE_VERSION_STRING=BOOT.BF.3.3.1-00158
S - IMAGE_VARIANT_STRING=HAACANAZA
S - OEM_IMAGE_VERSION_STRING=CRM
S - Boot Config, 0x000002e5
B - 201 - PBL, Start
B - 2736 - bootable_media_detect_entry, Start
B - 3449 - bootable_media_detect_success, Start
B - 3453 - elf_loader_entry, Start
B - 7634 - auth_hash_seg_entry, Start
B - 7880 - auth_hash_seg_exit, Start
B - 69813 - elf_segs_hash_verify_entry, Start
B - 132655 - PBL, End
B - 147620 - SBL1, Start
B - 200842 - GCC [RstStat:0x10, RstDbg:0x600000] WDog Stat : 0x4
B - 207461 - pm_device_init, Start
B - 332846 - PM_SET_VAL:Skip
D - 124867 - pm_device_init, Delta
B - 335286 - pm_driver_init, Start
D - 5398 - pm_driver_init, Delta
B - 341569 - clock_init, Start
D - 2135 - clock_init, Delta
B - 345626 - boot_flash_init, Start
D - 16531 - boot_flash_init, Delta
B - 365847 - boot_config_data_table_init, Start
D - 3995 - boot_config_data_table_init, Delta - (575 Bytes)
B - 373198 - Boot Setting : 0x00000618
B - 377315 - CDT version:2,Platform ID:8,Major ID:1,Minor ID:0,Subtype:8
B - 384147 - sbl1_ddr_set_params, Start
B - 387960 - CPR configuration: 0x30c
B - 391406 - cpr_init, Start
B - 394182 - Rail:0 Mode: 5 Voltage: 840000
B - 399397 - CL CPR settled at 792000mV
B - 402234 - Rail:1 Mode: 5 Voltage: 896000
B - 406412 - Rail:1 Mode: 7 Voltage: 944000
D - 16531 - cpr_init, Delta
B - 413305 - Pre_DDR_clock_init, Start
B - 417301 - Pre_DDR_clock_init, End
B - 420595 - DDR Type : PCDDR3
B - 426359 - do ddr sanity test, Start
D - 1067 - do ddr sanity test, Delta
B - 431117 - DDR: Start of HAL DDR Boot Training
B - 435875 - DDR: End of HAL DDR Boot Training
B - 441548 - DDR: Checksum to be stored on flash is 347078735
B - 451857 - Image Load, Start
D - 215971 - QSEE Image Loaded, Delta - (1376448 Bytes)
B - 667919 - Image Load, Start
D - 61 - SEC Image Loaded, Delta - (0 Bytes)
B - 675605 - Image Load, Start
D - 11987 - DEVCFG Image Loaded, Delta - (26008 Bytes)
B - 687683 - Image Load, Start
D - 23028 - RPM Image Loaded, Delta - (86584 Bytes)
B - 710802 - Image Load, Start
D - 88633 - APPSBL Image Loaded, Delta - (563504 Bytes)
B - 799557 - QSEE Execution, Start
D - 61 - QSEE Execution, Delta
B - 805383 - USB D+ check, Start
D - 0 - USB D+ check, Delta
B - 811757 - SBL1, End
D - 666455 - SBL1, Delta
S - Flash Throughput, 6903 KB/s (2053791 Bytes, 297517 us)
S - DDR Frequency, 466 MHz
S - Core 0 Frequency, 1651 MHz
U-Boot 2016.01 (Mar 19 2021 - 12:06:59 +0800)
DRAM: smem ram ptable found: ver: 1 len: 4
1 GiB
NAND: Could not find nand_gpio in dts, using defaults
Not an ONFI device
ONFI probe failed
ID = 2691a398
Vendor = 98
Device = a3
qpic_nand: changing oobsize to 160 from 256 bytes
SF: Unsupported flash IDs: manuf ff, jedec ffff, ext_jedec ffff
ipq_spi: SPI Flash not found (bus/cs/speed/mode) = (0/0/48000000/0)
1024 MiB
MMC: sdhci: Node Not found, skipping initialization
PCI0 is not defined in the device tree
PCI1 is not defined in the device tree
In: serial@78B3000
Out: serial@78B3000
Err: serial@78B3000
machid: 8010008
MMC Device 0 not found
[arc_board_setting]
[serial_register_init]
Hit any key to stop autoboot: 0
Net: MAC0 addr:ec:6c:9a:b8:33:ba
PHY ID1: 0x4d
PHY ID2: 0xd0b1
PHY ID1: 0x4d
PHY ID2: 0xd101
EDMA ver 1 hw init
Num rings - TxDesc:1 (0-0) TxCmpl:1 (7-7)
RxDesc:1 (15-15) RxFill:1 (7-7)
ipq807x_edma_alloc_rings: successfull
ipq807x_edma_setup_ring_resources: successfull
ipq807x_edma_configure_rings: successfull
ipq807x_edma_hw_init: successfull
eth0
IPQ807x# ?
? - alias for 'help'
aq_load_fw- LOAD aq-fw-binary
aq_phy_restart- Restart Aquantia phy
arc_fuseipq- arcadyan fuse QFPROM registers from memory
arc_manuf- arcadyan manufacturing board data utility
base - print or set address offset
bdinfo - print Board Info structure
bootipq - bootipq from flash device
bootm - boot application image from memory
bootp - boot image via network using BOOTP/TFTP protocol
bootz - boot Linux zImage image from memory
canary - test stack canary
chpart - change active partition
cmp - memory compare
cp - memory copy
crc32 - checksum calculation
dcache - enable or disable data cache
dhcp - boot image via network using DHCP/TFTP protocol
dm - Driver model low level access
echo - echo args to console
env - environment handling commands
erase - erase FLASH memory
exectzt - execute TZT
exit - exit script
false - do nothing, unsuccessfully
fdt - flattened device tree utility commands
flash - flash part_name
flash part_name load_addr file_size
flasherase- flerase part_name
flinfo - print FLASH memory information
fuseipq - fuse QFPROM registers from memory
go - start application at address 'addr'
help - print command description/usage
i2c - I2C sub-system
icache - enable or disable instruction cache
imxtract- extract a part of a multi-image
ipq_mdio- IPQ mdio utility commands
is_sec_boot_enabled- check secure boot fuse is enabled or not
itest - return true/false on integer compare
loop - infinite loop on address range
md - memory display
mii - MII utility commands
mm - memory modify (auto-incrementing address)
mmc - MMC sub system
mmcinfo - display MMC info
mtdparts- define flash/nand partitions
mtest - simple RAM read/write test
mw - memory write (fill)
nand - NAND sub-system
nboot - boot from NAND device
nm - memory modify (constant address)
pci - list and access PCI Configuration Space
ping - send ICMP ECHO_REQUEST to network host
printenv- print environment variables
protect - enable or disable FLASH write protection
reset - Perform RESET of the CPU
run - run commands in an environment variable
runmulticore- Enable and schedule secondary cores
saveenv - save environment variables to persistent storage
secure_authenticate- authenticate the signed image
setenv - set environment variables
sf - SPI flash sub-system
showvar - print local hushshell variables
sleep - delay execution for some time
smeminfo- print SMEM FLASH information
source - run script from memory
test - minimal test like /bin/sh
tftpboot- boot image via network using TFTP protocol
tftpput - TFTP put command, for uploading files to a server
true - do nothing, successfully
uart - UART sub-system
ubi - ubi commands
usb - USB sub-system
usbboot - boot from USB device
version - print monitor, compiler and linker version
IPQ807x# version
U-Boot 2016.01 (Mar 19 2021 - 12:06:59 +0800)
arm-openwrt-linux-muslgnueabi-gcc (OpenWrt GCC 5.2.0 038aa3060+r49254) 5.2.0
GNU ld (GNU Binutils) 2.24.0
IPQ807x# smeminfo
flash_type: 0x2
flash_index: 0x0
flash_chip_select: 0x0
flash_block_size: 0x40000
flash_density: 0x100000
partition table offset 0x0
No.: Name Attributes Start Size
0: 0:SBL1 0x0000ffff 0x0 0x100000
1: 0:MIBIB 0x0000ffff 0x100000 0x100000
2: 0:BOOTCONFIG 0x0000ffff 0x200000 0x80000
3: 0:BOOTCONFIG1 0x0000ffff 0x280000 0x80000
4: 0:QSEE 0x0000ffff 0x300000 0x300000
5: 0:QSEE_1 0x0000ffff 0x600000 0x300000
6: 0:DEVCFG 0x0000ffff 0x900000 0x80000
7: 0:DEVCFG_1 0x0000ffff 0x980000 0x80000
8: 0:APDP 0x0000ffff 0xa00000 0x80000
9: 0:APDP_1 0x0000ffff 0xa80000 0x80000
10: 0:RPM 0x0000ffff 0xb00000 0x80000
11: 0:RPM_1 0x0000ffff 0xb80000 0x80000
12: 0:CDT 0x0000ffff 0xc00000 0x80000
13: 0:CDT_1 0x0000ffff 0xc80000 0x80000
14: 0:APPSBLENV 0x0000ffff 0xd00000 0x80000
15: 0:APPSBL 0x0000ffff 0xd80000 0x100000
16: 0:APPSBL_1 0x0000ffff 0xe80000 0x100000
17: 0:ART 0x0000ffff 0xf80000 0x80000
18: rootfs 0x0000ffff 0x1000000 0x6400000
19: 0:WIFIFW 0x0000ffff 0x7400000 0x1880000
20: rootfs_1 0x0000ffff 0x8c80000 0x6400000
21: 0:WIFIFW_1 0x0000ffff 0xf080000 0x1880000
22: 0:ETHPHYFW 0x0000ffff 0x10900000 0x240000
23: 0:board_data 0x0000ffff 0x10b40000 0x100000
24: 0:arc_datadump 0x0000ffff 0x10c40000 0x800000
25: 0:arc_data 0x0000ffff 0x11440000 0x2cbc0000
IPQ807x# showvar
HUSH_VERSION=0.01
IPQ807x# sf
sf - SPI flash sub-system
IPQ807x# printenv
baudrate=115200
bootargs=console=ttyMSM0,115200n8 pcie_dev=RG50
bootcmd=bootipq
bootcount=0
bootdelay=2
eth1addr=ec:6c:9a:b8:33:ba
eth2addr=ec:6c:9a:b8:33:ba
eth3addr=ec:6c:9a:b8:33:ba
eth4addr=ec:6c:9a:b8:33:ba
eth5addr=ec:6c:9a:b8:33:ba
ethact=eth0
ethaddr=ec:6c:9a:b8:33:ba
fdt_high=0x4A400000
fdtcontroladdr=4a9727a0
flash_type=2
ipaddr=192.168.1.254
machid=8010008
netmask=255.255.255.0
serverip=192.168.1.2
soc_version_major=2
soc_version_minor=0
stderr=serial@78B3000
stdin=serial@78B3000
stdout=serial@78B3000
Environment size: 567/262140 bytes
IPQ807x# pci
pci_bus_to_hose() failed
IPQ807x# nand info
Device 0: nand0, sector size 256 KiB
Page size 4096 b
OOB size 160 b
Erase size 262144 b
subpagesize 0 b
options 0x 0
bbt options 0x 0
IPQ807x# mtdparts
mtdids not defined, no default present
IPQ807x# mmcinfo
No MMC device available
IPQ807x# mmc
mmc - MMC sub system
IPQ807x# md
md - memory display
IPQ807x# is_sec_boot_enabled
secure boot fuse is not enabled
IPQ807x# bdinfo
arch_number = 0x08010008
boot_params = 0x40000100
DRAM bank = 0x00000000
-> start = 0x40000000
-> size = 0x40000000
eth0name = eth0
ethaddr = ec:6c:9a:b8:33:ba
current eth = eth0
ip_addr = 192.168.1.254
baudrate = 115200 bps
TLB addr = 0x4A9D0000
relocaddr = 0x4A900000
reloc off = 0x00000000
irq_sp = 0x4A77FA90
sp start = 0x4A77FA80
IPQ807x# base
Base Address: 0x00000000
IPQ807x# md asdf
0000000a:data abort
pc : [<4a9529fc>] lr : [<4a9529d0>]
reloc pc : [<4a9529fc>] lr : [<4a9529d0>]
sp : 4a77f8a8 ip : c068ec13 fp : 0000000a
r10: 0000000a r9 : 4a77fea0 r8 : 00000004
r7 : 00000000 r6 : 00000004 r5 : 00000004 r4 : 00000040
r3 : 0000000a r2 : 000a0dff r1 : 4a77f8b8 r0 : 00000009
Flags: nZCv IRQs off FIQs off Mode SVC_32
Resetting CPU ...
resetting ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment