Skip to content

Instantly share code, notes, and snippets.

@ZachAR3
Created August 12, 2023 07:18
Show Gist options
  • Save ZachAR3/a00bbf1ccc6112e45289e951c2cc57de to your computer and use it in GitHub Desktop.
Save ZachAR3/a00bbf1ccc6112e45289e951c2cc57de to your computer and use it in GitHub Desktop.
(IPQ) # run flashimg
Using eth1 device
TFTP from server 192.168.1.254; our IP address is 192.168.1.1
Filename 'macan.bin'.
Load address: 0x42000000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################
done
Bytes transferred = 26869760 (19a0000 hex)
Automatic boot of image at addr 0x42000000 ...
Image Name: Linux-3.4.103
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1897920 Bytes = 1.8 MiB
Load Address: 41508000
Entry Point: 41508000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
mtdids not defined, no default present
info: "mtdparts" not set
Using machid 0x1260 from environment
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0
[ 0.000000] Linux version 3.4.103 (root@build-vm) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #1 SMP PREEMPT Sat Aug 4 11:00:38 PDT 2018
[ 0.000000] CPU: ARMv7 Processor [512f04d0] revision 0 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[ 0.000000] Machine: Linksys EA7500 WiFi Router.
[ 0.000000] msm_reserve_memory: 0x44600000, 0x200000
[ 0.000000] memory pool 3 (start 4fc00000 size 400000) initialized
[ 0.000000] Memory policy: ECC disabled, Data cache writealloc
[ 0.000000] smem_find(137, 80): wrong size 72
[ 0.000000] socinfo_init: v6, id=202, ver=2.0, raw_id=2064, raw_ver=2064, hw_plat=0, hw_plat_ver=65536
[ 0.000000] accessory_chip=0 hw_plat_subtype=0
[ 0.000000] PERCPU: Embedded 8 pages/cpu @c0a4b000 s11072 r8192 d13504 u32768
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 58154
[ 0.000000] Kernel command line: console=ttyHSL1,115200n8 init=/sbin/init rootfstype=squashfs ubi.mtd=14,2048 ubi.block=0,0 root=/dev/ubiblock0_0 rootwait ro
[ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Memory: 49MB 180MB = 229MB total
[ 0.000000] Memory: 223660k/229804k available, 10836k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] vmalloc : 0xcf000000 - 0xff000000 ( 768 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xceb00000 ( 235 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0519000 (5188 kB)
[ 0.000000] .init : 0xc0600000 - 0xc0702b40 (1035 kB)
[ 0.000000] .data : 0xc0704000 - 0xc07a1160 ( 629 kB)
[ 0.000000] .bss : 0xc07a1184 - 0xc0849e4c ( 676 kB)
[ 0.000000] SLUB: Genslabs=11, HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] NR_IRQS:1689
[ 0.000000] sched_clock: 32 bits at 32kHz, resolution 31240ns, wraps every 134175798ms
[ 0.000000] Console: colour dummy device 80x30
[ 0.150390] Calibrating delay using timer specific routine.. 12.55 BogoMIPS (lpj=62799)
[ 0.150421] pid_max: default: 32768 minimum: 301
[ 0.150890] Mount-cache hash table entries: 512
[ 0.152358] CPU: Testing write buffer coherency: ok
[ 0.152577] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.152608] hw perfevents: enabled with ARMv7 Krait PMU driver, 5 counters available
[ 0.152733] Setting up static identity map for 0x418cbd80 - 0x418cbe08
[ 0.155045] CPU1: Booted secondary processor
[ 0.155107] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.155201] Brought up 2 CPUs
[ 0.155232] SMP: Total of 2 processors activated (25.11 BogoMIPS).
[ 0.171540] dummy:
[ 0.172258] NET: Registered protocol family 16
[ 0.173102] AXI: msm_bus_fabric_init_driver(): msm_bus_fabric_init_driver
[ 0.175570] meminfo_init: smem ram ptable found: ver: 0 len: 5
[ 0.175570] Found 1 memory banks grouped into 8 memory regions
[ 0.175882] gpiochip_add: registered GPIOs 0 to 151 on device: msmgpio
[ 0.176507] smem_find(137, 80): wrong size 72
[ 0.176538] socinfo_init: v6, id=202, ver=2.0, raw_id=2064, raw_ver=2064, hw_plat=0, hw_plat_ver=65536
[ 0.176538] accessory_chip=0 hw_plat_subtype=0
[ 0.176601] msm_rpm_init: RPM firmware 3.0.16777342
[ 0.184598] clk_tbl_nss - loaded
[ 0.212246] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.212246] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.212652] msm_dmov_memcpy_init: Success
[ 0.219837] sps:BAM 0x12244000 enabled: ver:0x5, number of pipes:20
[ 0.219837] sps:BAM 0x12244000 is registered.
[ 0.220087] sps:sps is ready.
[ 0.260980] msm_pcie_setup: link initialized
[ 0.261355] PCI host bridge to bus 0000:00
[ 0.261355] pci_bus 0000:00: root bus resource [mem 0x08000000-0x0fefffff]
[ 0.261886] PCI: bus0: Fast back to back transfers disabled
[ 0.261886] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 0.262699] PCI: bus1: Fast back to back transfers disabled
[ 0.300968] msm_pcie_setup: link initialized
[ 0.301312] PCI host bridge to bus 0000:02
[ 0.301343] pci_bus 0000:02: root bus resource [mem 0x2e000000-0x31efffff]
[ 0.301811] PCI: bus2: Fast back to back transfers disabled
[ 0.301811] pci 0000:02:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 0.302530] PCI: bus3: Fast back to back transfers disabled
[ 0.421337] msm_pcie_setup: link initialization failed
[ 0.421587] pci 0000:02:00.0: BAR 8: assigned [mem 0x2e000000-0x2e1fffff]
[ 0.421587] pci 0000:03:00.0: BAR 0: assigned [mem 0x2e000000-0x2e1fffff 64bit]
[ 0.421618] pci 0000:02:00.0: PCI bridge to [bus 03-03]
[ 0.421649] pci 0000:02:00.0: bridge window [mem 0x2e000000-0x2e1fffff]
[ 0.421711] PCI: enabling device 0000:02:00.0 (0140 -> 0143)
[ 0.421774] pci 0000:00:00.0: BAR 8: assigned [mem 0x08000000-0x081fffff]
[ 0.421805] pci 0000:01:00.0: BAR 0: assigned [mem 0x08000000-0x081fffff 64bit]
[ 0.421836] pci 0000:00:00.0: PCI bridge to [bus 01-01]
[ 0.421868] pci 0000:00:00.0: bridge window [mem 0x08000000-0x081fffff]
[ 0.421899] PCI: enabling device 0000:00:00.0 (0140 -> 0143)
[ 0.448984] bio: create slab <bio-0> at 0
[ 0.450546] SCSI subsystem initialized
[ 0.453358] spi_qsd spi_qsd.5: master is unqueued, this is deprecated
[ 0.455826] spi_qsd spi_qsd.6: master is unqueued, this is deprecated
[ 0.460199] Switching to clocksource gp_timer
[ 0.482286] NET: Registered protocol family 2
[ 0.492002] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.492627] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.492721] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.492845] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.492845] TCP: reno registered
[ 0.492877] UDP hash table entries: 128 (order: 0, 4096 bytes)
[ 0.492877] UDP-Lite hash table entries: 128 (order: 0, 4096 bytes)
[ 0.493314] NET: Registered protocol family 1
[ 0.494782] Detected 5 counters on the L2CC PMU.
[ 0.496001] smd: register irq failed on wcnss_a11
[ 0.496001] smd: deregistering IRQs
[ 0.496094] SMD: smd_core_platform_init() failed
[ 0.497063] Partition(from smem) SBL1 -- Offset:0 Size:2
[ 0.497063] Partition(from smem) MIBIB -- Offset:2 Size:a
[ 0.497094] Partition(from smem) SBL2 -- Offset:c Size:a
[ 0.497125] Partition(from smem) SBL3 -- Offset:16 Size:14
[ 0.497157] Partition(from smem) DDRCONFIG -- Offset:2a Size:9
[ 0.497157] Partition(from smem) SSD -- Offset:33 Size:9
[ 0.497188] Partition(from smem) TZ -- Offset:3c Size:14
[ 0.497219] Partition(from smem) RPM -- Offset:50 Size:14
[ 0.497219] Partition(from smem) ART -- Offset:64 Size:a
[ 0.497250] Partition(from smem) APPSBL -- Offset:6e Size:8
[ 0.497282] get_nand_partitions: partition name=rootfs found.
[ 0.497313] Overlaying Olympus partition
[ 0.497313] Olympus partition u_env -- Offset:76 Size:2
[ 0.497344] Olympus partition s_env -- Offset:78 Size:2
[ 0.497344] Olympus partition devinfo -- Offset:7a Size:2
[ 0.497375] Olympus partition kernel -- Offset:7c Size:140
[ 0.497375] Olympus partition rootfs -- Offset:94 Size:128
[ 0.497375] Olympus partition alt_kernel -- Offset:1bc Size:140
[ 0.497407] Olympus partition alt_rootfs -- Offset:1d4 Size:128
[ 0.497407] Olympus partition sysdiag -- Offset:2fc Size:8
[ 0.497438] Olympus partition syscfg -- Offset:304 Size:0
[ 0.497469] get_bootconfig_partition: magic not found
[ 0.515401] acpuclk-ipq806x acpuclk-ipq806x: SPEED BIN: 0
[ 0.515432] acpuclk-ipq806x acpuclk-ipq806x: ACPU PVS: 1
[ 0.522149] acpuclk-ipq806x acpuclk-ipq806x: CPU0: 6 frequencies supported
[ 0.522149] acpuclk-ipq806x acpuclk-ipq806x: CPU1: 6 frequencies supported
[ 0.523836] msm_rpm_log_probe: OK
[ 0.548016] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.548047] jffs2: version 2.2. (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) © 2001-2006 Red Hat, Inc.
[ 0.549953] msgmni has been set to 436
[ 0.551733] io scheduler noop registered
[ 0.551765] io scheduler deadline registered (default)
[ 0.553701] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 0.556950] msm_serial_hs.0: ttyHS0 at MMIO 0x12490000 (irq = 227) is a MSM HS UART
[ 0.557638] msm_serial_hs module loaded
[ 0.557794] msm_serial_hsl: detected port #1
[ 0.557919] msm_serial_hsl.1: ttyHSL1 at MMIO 0x16340000 (irq = 184) is a MSM
[ 0.558325] msm_serial_hsl: console setup on port #1
[ 1.368416] console [ttyHSL1] enabled
[ 1.371727] msm_serial_hsl: driver initialized
[ 1.380193] ahci ahci.0: forcing PORTS_IMPL to 0x1
[ 1.384004] ahci ahci.0: AHCI 0001.0300 32 slots 1 ports 6 Gbps 0x1 impl platform mode
[ 1.393533] ahci ahci.0: flags: ncq sntf pm led clo only pmp pio slum part ccc apst
[ 1.401655] scsi0 : ahci_platform
[ 1.404654] ata1: SATA max UDMA/133 mmio [mem 0x29000000-0x2900017f] port 0x100 irq 241
[ 1.414557] msm_nand_probe: phys addr 0x1ac00000
[ 1.418213] msm_nand_probe: dmac 0x3
[ 1.421868] msm_nand_probe: allocated dma buffer at ffdfc000, dma_addr 4f590000
[ 1.430521] status: e00020
[ 1.432177] nandid: 1580a101 maker 01 device a1
[ 1.436707] ONFI probe : Found an ONFI compliant device S34MS01G2
[ 1.443986] Found a supported NAND device
[ 1.447797] NAND Controller ID : 0x4030
[ 1.451671] NAND Device ID : 0x1580a101
[ 1.455545] Buswidth : 8 Bits
[ 1.458481] Density : 128 MByte
[ 1.461730] Pagesize : 2048 Bytes
[ 1.465010] Erasesize: 131072 Bytes
[ 1.468478] Oobsize : 64 Bytes
[ 1.471633] CFG0 Init : 0xa8d408c0
[ 1.475070] CFG1 Init : 0x0004745c
[ 1.478537] ECCBUFCFG : 0x00000203
[ 1.482849] Creating 19 MTD partitions on "msm_nand":
[ 1.487066] 0x000000000000-0x000000040000 : "SBL1"
[ 1.494814] 0x000000040000-0x000000180000 : "MIBIB"
[ 1.502842] 0x000000180000-0x0000002c0000 : "SBL2"
[ 1.510777] 0x0000002c0000-0x000000540000 : "SBL3"
[ 1.520681] 0x000000540000-0x000000660000 : "DDRCONFIG"
[ 1.528897] 0x000000660000-0x000000780000 : "SSD"
[ 1.536676] 0x000000780000-0x000000a00000 : "TZ"
[ 1.546173] 0x000000a00000-0x000000c80000 : "RPM"
[ 1.555732] 0x000000c80000-0x000000dc0000 : "ART"
[ 1.563605] 0x000000dc0000-0x000000ec0000 : "APPSBL"
[ 1.571508] 0x000000ec0000-0x000000f00000 : "u_env"
[ 1.578194] 0x000000f00000-0x000000f40000 : "s_env"
[ 1.584973] 0x000000f40000-0x000000f80000 : "devinfo"
[ 1.591940] 0x000000f80000-0x000003780000 : "kernel"
[ 1.654045] 0x000001280000-0x000003780000 : "rootfs"
[ 1.711933] 0x000003780000-0x000005f80000 : "alt_kernel"
[ 1.760262] ata1: SATA link down (SStatus 0 SControl 300)
[ 1.778850] 0x000003a80000-0x000005f80000 : "alt_rootfs"
[ 1.837738] 0x000005f80000-0x000006080000 : "sysdiag"
[ 1.845766] 0x000006080000-0x000008000000 : "syscfg"
[ 1.897813] UBI: attaching mtd14 to ubi0
[ 1.900781] UBI: physical eraseblock size: 131072 bytes (128 KiB)
[ 1.906966] UBI: logical eraseblock size: 126976 bytes
[ 1.912402] UBI: smallest flash I/O unit: 2048
[ 1.917025] UBI: VID header offset: 2048 (aligned 2048)
[ 1.923149] UBI: data offset: 4096
[ 2.183692] UBI: max. sequence number: 0
[ 2.187097] UBI error: ubi_read_volume_table: the layout volume was not found
[ 2.194595] UBI error: ubi_init: cannot attach mtd14
[ 2.199187] UBI error: ubiblock_create_from_param: block: can't open volume, err=-19
[ 2.199187]
[ 2.208434] UBI error: ubi_init: block: cannot initialize, error -19
[ 2.247485] GPIO Bitbanged MDIO: probed
[ 2.252733] PPP generic driver version 2.4.2
[ 2.256669] NET: Registered protocol family 24
[ 2.260606] PPTP driver version 0.8.5
[ 2.271758] cpuidle: using governor ladder
[ 2.274820] cpuidle: using governor menu
[ 2.281724] Netfilter messages via NETLINK v0.30.
[ 2.285504] nf_conntrack version 0.5.0 (3494 buckets, 13976 max)
[ 2.292377] ctnetlink v0.93: registering with nfnetlink.
[ 2.296719] nf_conntrack_rtsp v0.7 loading
[ 2.300937] ip_set: protocol 6
[ 2.304186] gre: GRE over IPv4 demultiplexor driver
[ 2.308653] ip_gre: GRE over IPv4 tunneling driver
[ 2.315620] nf_nat_rtsp v0.7 loading
[ 2.318244] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 2.324148] TCP: cubic registered
[ 2.328772] NET: Registered protocol family 10
[ 2.334926] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 2.339862] IPv6 over IPv4 tunneling driver
[ 2.347297] NET: Registered protocol family 17
[ 2.351015] Bridge firewalling registered
[ 2.354732] Ebtables v2.0 registered
[ 2.358450] L2TP core driver, V2.0
[ 2.361730] PPPoL2TP kernel driver, V2.0
[ 2.365542] L2TP netlink interface
[ 2.368978] 8021q: 802.1Q VLAN Support v1.8
[ 2.373414] VFP support v0.3: implementor 51 architecture 64 part 4d variant 2 rev 0
[ 2.380912] Registering SWP/SWPB emulation handler
[ 2.385598] clock_late_init: Removing enables held for handed-off clocks
[ 2.401280] ipq_nss_get_mac_addr: MAC[0]: ff:ff:ff:ff:ff:ff
[ 2.406091] ipq_nss_get_mac_addr: MAC[1]: ff:ff:ff:ff:ff:ff
[ 2.411652] ipq_nss_get_mac_addr: MAC[2]: ff:ff:ff:ff:ff:ff
[ 2.417182] ipq_nss_get_mac_addr: MAC[3]: ff:ff:ff:ff:ff:ff
[ 2.422711] no pmic restart interrupt specified
[ 2.428647] msm_cache_dump_probe: could not register L2 buffer ret = -22.
[ 2.436113] Waiting for root device /dev/ubiblock0_0...
U-Boot .07 [Standard IPQ806X.LN,r40331] (Nov 05 2015 - 14:44:22)
CBT U-Boot ver: 1.1.4
smem ram ptable found: ver: 0 len: 5
DRAM: 235 MiB
NAND: SF: Unsupported manufacturer 00
ipq_spi: SPI Flash not found (bus/cs/speed/mode) = (0/0/48000000/0)
128 MiB
MMC:
PCI0 Link Intialized
PCI1 Link Intialized
In: serial
Out: serial
Err: serial
cdp: get part failed for 0:HLOS
Net: MAC1 addr:0:3:7f:ba:db:1
athrs17_reg_init: complete
athrs17_vlan_config ...done
S17c init done
MAC2 addr:0:3:7f:ba:db:2
eth0
Warning: eth0 MAC addresses don't match:
Address in SROM is 00:03:7f:ba:db:01
Address in environment is 00:06:3b:01:41:00
, eth1
Updating boot_count ... done
Saving Environment to NAND...
Erasing Nand...
Erasing at 0xec0000 -- 100% complete.
Writing to Nand... done
Hit any key to stop autoboot: 0
MMC Device 0 not found
MMC Device 0 not found
Loading from nand0, offset 0x3780000
** Unknown image type
Write Reg: 0x00000660: Oldval = 0x00140002 Newval = 0x0014007e
Write Reg: 0x0000066c: Oldval = 0x00140001 Newval = 0x0014007d
Write Reg: 0x00000678: Oldval = 0x00140078 Newval = 0x0014007b
Write Reg: 0x00000684: Oldval = 0x00140074 Newval = 0x00140077
Write Reg: 0x00000690: Oldval = 0x0014006c Newval = 0x0014006f
Write Reg: 0x0000069c: Oldval = 0x0014005c Newval = 0x0014005f
Write Reg: 0x000006a8: Oldval = 0x0014003c Newval = 0x0014003f
Write Reg: 0x00000420: Oldval = 0x00020001 Newval = 0x00010001
Write Reg: 0x00000428: Oldval = 0x00020001 Newval = 0x00010001
Write Reg: 0x00000430: Oldval = 0x00010001 Newval = 0x00010001
Write Reg: 0x00000438: Oldval = 0x00010001 Newval = 0x00010001
Write Reg: 0x00000440: Oldval = 0x00010001 Newval = 0x00010001
Write Reg: 0x00000448: Oldval = 0x00010001 Newval = 0x00010001
Write Reg: 0x00000450: Oldval = 0x00010001 Newval = 0x00010001
(IPQ) #
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment