Aruba AP-303H NAND

Under Construction!
This page is currently under construction. You can edit the article to help completing it.

This page assumes you have a serial console and working tftp boot. Please see the standard install instructions to set that up.

My AP-303H is came with a 2016 bootloader called APBoot that looks an awful lot like U-Boot. But it's at least 8 years old and doesn't have a lot of current U-Boot features.

The AP-303H has a 128 MB NAND chip, divided into 3 partitions:

apboot> mtdparts

device nand0 <nand0>, # parts = 3
 #: name		size		offset		mask_flags
 0: aos0                0x02000000	0x00000000	0
 1: aos1                0x02000000	0x02000000	0
 2: ubifs               0x04000000	0x04000000	0

Partition sizes are 32, 32, and 64 MB.

The standard install instructions put OpenWrt on aos1, the second 32 MB partition.

You can adjust the install instructions to place OpenWrt on any of the three partitions, but you cannot change the partition sizes or the bootloader won't be able to find it. Furthermore, all three partitions must be valid ubi partitions. So if you use dd to mangle any of the partitions, the bootloader won't find OpenWrt, even if it's on an unaffected NAND partition.

to recover

kernel commandline, ro to rw

ubiformat

power cycle, warm reboot not enough

[ Hold reset button during power-on. ] APBoot 2.1.4.7 (build 57679) Built: 2016-12-08 at 15:41:41 Model: AP-303H DRAM: 512 MiB Flash: Detected MX25L3205D: total 4 MiB NAND: Detected MX35LFxGE4AB: total 128 MiB Power: 802.3at POE Net: eth0 Radio: ipq4029#0, ipq4029#1 Reset: cold **** Configuration Reset Requested by User **** Clearing state... Checking OS image and flags Invalid image format version: 0x0 Continuing with OS clear 512 bytes written to volume aos0 Erasing UBIFS ...OK done Purging environment... preserving os_partition (1) Erasing SPI flash...Writing to SPI flash...done Erasing SPI flash...Writing to SPI flash...done FIPS: passed Hit <Enter> to stop autoboot: 2  0 [ Hit Enter. Show partition info. ] apboot> mtdparts device nand0 <nand0>, # parts = 3 #: name size offset mask_flags 0: aos0 0x02000000 0x00000000 0 1: aos1 0x02000000 0x02000000 0 2: ubifs 0x04000000 0x04000000 0 active partition: nand0,0 - (aos0) 0x02000000 @ 0x00000000 defaults: mtdids : nand0=nand0 mtdparts: none [ Show first partition info. ] apboot> ubi part aos0 apboot> ubi info UBI: MTD device name: "mtd=0" UBI: MTD device size: 32 MiB UBI: physical eraseblock size: 131072 bytes (128 KiB) UBI: logical eraseblock size: 126976 bytes UBI: number of good PEBs: 256 UBI: number of bad PEBs: 0 UBI: smallest flash I/O unit: 2048 UBI: VID header offset: 2048 (aligned 2048) UBI: data offset: 4096 UBI: max. allowed volumes: 128 UBI: wear-leveling threshold: 4096 UBI: number of internal volumes: 1 UBI: number of user volumes: 1 UBI: available PEBs: 4 UBI: total number of reserved PEBs: 252 UBI: number of PEBs reserved for bad PEB handling: 4 UBI: max/mean erase counter: 12/4 apboot> ubi info layout UBI: volume information dump: UBI: vol_id 0 UBI: reserved_pebs 244 UBI: alignment 1 UBI: data_pad 0 UBI: vol_type 3 UBI: name_len 4 UBI: usable_leb_size 126976 UBI: used_ebs 244 UBI: used_bytes 30982144 UBI: last_eb_bytes 126976 UBI: corrupted 0 UBI: upd_marker 0 UBI: name aos0 UBI: volume information dump: UBI: vol_id 2147479551 UBI: reserved_pebs 2 UBI: alignment 1 UBI: data_pad 0 UBI: vol_type 3 UBI: name_len 13 UBI: usable_leb_size 126976 UBI: used_ebs 2 UBI: used_bytes 253952 UBI: last_eb_bytes 2 UBI: corrupted 0 UBI: upd_marker 0 UBI: name layout volume [ Show second partition info. ] apboot> ubi part aos1 apboot> ubi part aos1 ubi info layout ubi info UBI: MTD device name: "mtd=1" UBI: MTD device size: 32 MiB UBI: physical eraseblock size: 131072 bytes (128 KiB) UBI: logical eraseblock size: 126976 bytes UBI: number of good PEBs: 256 UBI: number of bad PEBs: 0 UBI: smallest flash I/O unit: 2048 UBI: VID header offset: 2048 (aligned 2048) UBI: data offset: 4096 UBI: max. allowed volumes: 128 UBI: wear-leveling threshold: 4096 UBI: number of internal volumes: 1 UBI: number of user volumes: 1 UBI: available PEBs: 4 UBI: total number of reserved PEBs: 252 UBI: number of PEBs reserved for bad PEB handling: 4 UBI: max/mean erase counter: 7/5 apboot> ubi info ubi part aos1 ubi info layout UBI: volume information dump: UBI: vol_id 0 UBI: reserved_pebs 244 UBI: alignment 1 UBI: data_pad 0 UBI: vol_type 3 UBI: name_len 4 UBI: usable_leb_size 126976 UBI: used_ebs 244 UBI: used_bytes 30982144 UBI: last_eb_bytes 126976 UBI: corrupted 0 UBI: upd_marker 0 UBI: name aos1 UBI: volume information dump: UBI: vol_id 2147479551 UBI: reserved_pebs 2 UBI: alignment 1 UBI: data_pad 0 UBI: vol_type 3 UBI: name_len 13 UBI: usable_leb_size 126976 UBI: used_ebs 2 UBI: used_bytes 253952 UBI: last_eb_bytes 2 UBI: corrupted 0 UBI: upd_marker 0 UBI: name layout volume [ Show third partition info. ] apboot> ubi part ubifs apboot> ubi part ubifs ubi info layout ubi info UBI: MTD device name: "mtd=2" UBI: MTD device size: 64 MiB UBI: physical eraseblock size: 131072 bytes (128 KiB) UBI: logical eraseblock size: 126976 bytes UBI: number of good PEBs: 511 UBI: number of bad PEBs: 1 UBI: smallest flash I/O unit: 2048 UBI: VID header offset: 2048 (aligned 2048) UBI: data offset: 4096 UBI: max. allowed volumes: 128 UBI: wear-leveling threshold: 4096 UBI: number of internal volumes: 1 UBI: number of user volumes: 4 UBI: available PEBs: 4 UBI: total number of reserved PEBs: 507 UBI: number of PEBs reserved for bad PEB handling: 10 UBI: max/mean erase counter: 11/9 apboot> ubi info ubi part ubifs ubi info layout UBI: volume information dump: UBI: vol_id 0 UBI: reserved_pebs 25 UBI: alignment 1 UBI: data_pad 0 UBI: vol_type 3 UBI: name_len 6 UBI: usable_leb_size 126976 UBI: used_ebs 25 UBI: used_bytes 3174400 UBI: last_eb_bytes 126976 UBI: corrupted 0 UBI: upd_marker 0 UBI: name kernel UBI: volume information dump: UBI: vol_id 1 UBI: reserved_pebs 32 UBI: alignment 1 UBI: data_pad 0 UBI: vol_type 3 UBI: name_len 6 UBI: usable_leb_size 126976 UBI: used_ebs 32 UBI: used_bytes 4063232 UBI: last_eb_bytes 126976 UBI: corrupted 0 UBI: upd_marker 0 UBI: name rootfs UBI: volume information dump: UBI: vol_id 2 UBI: reserved_pebs 431 UBI: alignment 1 UBI: data_pad 0 UBI: vol_type 3 UBI: name_len 11 UBI: usable_leb_size 126976 UBI: used_ebs 431 UBI: used_bytes 54726656 UBI: last_eb_bytes 126976 UBI: corrupted 0 UBI: upd_marker 0 UBI: name rootfs_data UBI: volume information dump: UBI: vol_id 3 UBI: reserved_pebs 5 UBI: alignment 1 UBI: data_pad 0 UBI: vol_type 3 UBI: name_len 5 UBI: usable_leb_size 126976 UBI: used_ebs 5 UBI: used_bytes 634880 UBI: last_eb_bytes 126976 UBI: corrupted 0 UBI: upd_marker 0 UBI: name ubifs UBI: volume information dump: UBI: vol_id 2147479551 UBI: reserved_pebs 2 UBI: alignment 1 UBI: data_pad 0 UBI: vol_type 3 UBI: name_len 13 UBI: usable_leb_size 126976 UBI: used_ebs 2 UBI: used_bytes 253952 UBI: last_eb_bytes 2 UBI: corrupted 0 UBI: upd_marker 0 UBI: name layout volume [ Add kernel commandline to make all partitions writeable. We use the same addresses and sizes as the default, but no 'ro' flag. ] apboot> setenv bootargs_openwrt "setenv bootargs console=ttyMSM0,9600n8 mtdparts=spi0.1:0x2000000(aos0),0x2000000(aos1),0x4000000(ubi)" [ Install OpenWrt on 3rd partition "ubifs". Std install uses 2nd part "aos1". ] apboot> setenv nandboot_openwrt "run bootargs_openwrt; ubi part ubifs; ubi read 0x85000000 kernel; set fdt_high 0x87000000; bootm 0x85000000" [ Set the bootloader IP and the tftp server IP. You must add your IPs here. ] apboot> setenv ramboot_openwrt "run bootargs_openwrt; setenv ipaddr 192.168.5.49; setenv serverip 192.168.5.30; netget; set fdt_high 0x87000000; bootm" apboot> setenv bootcmd "run nandboot_openwrt" apboot> printenv autoload=n autostart=yes baudrate=9600 boardname=Aberlour bootargs=console=ttyMSM0,9600n8 rdinit=/sbin/init ubi.mtd=aos0 ubi.mtd=aos1 ubi.mtd=ubifs bootargs_openwrt=setenv bootargs console=ttyMSM0,9600n8 mtdparts=spi0.1:0x2000000(aos0),0x2000000(aos1),0x4000000(ubi) bootcmd=run nandboot_openwrt bootdelay=2 bootfile=ipq40xx.ari ethaddr=20:4c:03:22:87:58 mtddevname=aos0 mtddevnum=0 mtdids=nand0=nand0 mtdparts=mtdparts=nand0:0x2000000@0x0(aos0),0x2000000@0x2000000(aos1),0x4000000@0x4000000(ubifs) nandboot_openwrt=run bootargs_openwrt; ubi part ubifs; ubi read 0x85000000 kernel; set fdt_high 0x87000000; bootm 0x85000000 os_partition=1 partition=nand0,0 ramboot_openwrt=run bootargs_openwrt; setenv ipaddr 192.168.5.49; setenv serverip 192.168.5.30; netget; set fdt_high 0x87000000; bootm servername=aruba-master Environment size: 855/65532 bytes [ Write env vars to NOR flash. ] apboot> saveenv Saving Environment to SPI Flash... Erasing SPI flash...Writing to SPI flash...done [ Tftp boot with the new kernel commandline. ] apboot> run ramboot_openwrt eth0 up: 1 Gb/s full duplex Using eth0 device TFTP from server 192.168.5.30; our IP address is 192.168.5.49 Filename 'ipq40xx.ari'. Load address: 0x84000000 Loading: *################################################################# ########################################## 821.3 KiB/s done Bytes transferred = 6835196 (684bfc hex) Invalid image format version: 0x684bfc Uncompressing Kernel Image ... OK ipq: fdt fixup unable to find compatible node [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 5.15.150 (builder@buildhost) (arm-openwrt-linux-muslgnueabi-gcc (OpenWrt GCC 12.3.0 r23809-234f1a2efa) 12.3.0, GNU ld (GNU Binutils) 2.40.0) #0 SMP Fri Mar 22 22:09:42 2024 [ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d [ 0.000000] CPU: div instructions available: patching division code [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache [ 0.000000] OF: fdt: Machine model: Aruba AP-303H [ 0.000000] Memory policy: Data cache writealloc [ 0.000000] Zone ranges: [ 0.000000] Normal [mem 0x0000000080000000-0x000000009fffffff] [ 0.000000] HighMem empty [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000080000000-0x0000000087dfffff] [ 0.000000] node 0: [mem 0x0000000087e00000-0x0000000087ffffff] [ 0.000000] node 0: [mem 0x0000000088000000-0x000000009fffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x000000009fffffff] [ 0.000000] percpu: Embedded 12 pages/cpu s19660 r8192 d21300 u49152 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 129920 [ 0.000000] Kernel command line: console=ttyMSM0,9600n8 mtdparts=spi0.1:0x2000000(aos0),0x2000000(aos1),0x4000000(ubi) [ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear) [ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear) [ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off [ 0.000000] Memory: 494572K/524288K available (6751K kernel code, 610K rwdata, 1020K rodata, 13312K init, 246K bss, 29716K reserved, 0K cma-reserved, 0K highmem) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1 [ 0.000000] rcu: Hierarchical RCU implementation. [ 0.000000] Tracing variant of Tasks RCU enabled. [ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies. [ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16 [ 0.000000] arch_timer: cp15 timer(s) running at 48.00MHz (virt). [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xb11fd3bfb, max_idle_ns: 440795203732 ns [ 0.000001] sched_clock: 56 bits at 48MHz, resolution 20ns, wraps every 4398046511096ns [ 0.000026] Switching to timer-based delay loop, resolution 20ns [ 0.000341] Calibrating delay loop (skipped), value calculated using timer frequency.. 96.00 BogoMIPS (lpj=480000) [ 0.000368] CPU: Testing write buffer coherency: ok [ 0.000430] pid_max: default: 32768 minimum: 301 [ 0.001280] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.001310] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.003382] qcom_scm: convention: smc legacy [ 0.004605] Setting up static identity map for 0x80300000 - 0x8030003c [ 0.004783] rcu: Hierarchical SRCU implementation. [ 0.005386] smp: Bringing up secondary CPUs ... [ 0.008999] smp: Brought up 1 node, 4 CPUs [ 0.009040] SMP: Total of 4 processors activated (384.00 BogoMIPS). [ 0.009056] CPU: All CPU(s) started in SVC mode. [ 0.015818] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5 [ 0.015992] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.016030] futex hash table entries: 1024 (order: 4, 65536 bytes, linear) [ 0.016430] pinctrl core: initialized pinctrl subsystem [ 0.018514] NET: Registered PF_NETLINK/PF_ROUTE protocol family [ 0.018910] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.020307] thermal_sys: Registered thermal governor 'step_wise' [ 0.020764] cpuidle: using governor ladder [ 0.020833] cpuidle: using governor menu [ 0.029322] gpio-435 (USB-power): hogged as output/high [ 0.049493] cryptd: max_cpu_qlen set to 1000 [ 0.054368] usbcore: registered new interface driver usbfs [ 0.054449] usbcore: registered new interface driver hub [ 0.054543] usbcore: registered new device driver usb [ 0.054602] pps_core: LinuxPPS API ver. 1 registered [ 0.054616] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it> [ 0.054645] PTP clock support registered [ 0.056962] clocksource: Switched to clocksource arch_sys_counter [ 0.058394] NET: Registered PF_INET protocol family [ 0.058665] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear) [ 0.059883] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear) [ 0.059943] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear) [ 0.059966] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear) [ 0.060030] TCP bind hash table entries: 4096 (order: 3, 32768 bytes, linear) [ 0.060227] TCP: Hash tables configured (established 4096 bind 4096) [ 0.060401] UDP hash table entries: 256 (order: 1, 8192 bytes, linear) [ 0.060453] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear) [ 0.060802] NET: Registered PF_UNIX/PF_LOCAL protocol family [ 0.060858] PCI: CLS 0 bytes, default 64 [ 0.063925] workingset: timestamp_bits=14 max_order=17 bucket_order=3 [ 0.070297] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.070340] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. [ 0.202798] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248) [ 0.207463] bam-dma-engine 8e04000.dma: num-channels unspecified in dt [ 0.207517] bam-dma-engine 8e04000.dma: num-ees unspecified in dt [ 0.209587] tcsr 1953000.ess_tcsr: setting ess interface select = 0 [ 0.209728] tcsr 1949000.tcsr: setting wifi_glb_cfg = 41000000 [ 0.209837] tcsr 194b000.tcsr: setting usb hs phy mode select = e700e7 [ 0.209938] tcsr 1957000.tcsr: setting wifi_noc_memtype_m0_m2 = 2222222 [ 0.210358] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled [ 0.212749] msm_serial 78af000.serial: msm_serial: detected port #0 [ 0.212819] msm_serial 78af000.serial: uartclk = 1843200 [ 0.212934] 78af000.serial: ttyMSM0 at MMIO 0x78af000 (irq = 34, base_baud = 115200) is a MSM [ 0.212985] msm_serial: console setup on port #0 [ 6.896436] printk: console [ttyMSM0] enabled [ 6.953251] msm_serial 78b0000.serial: msm_serial: detected port #1 [ 7.003778] msm_serial 78b0000.serial: uartclk = 48000000 [ 7.076712] 78b0000.serial: ttyMSM1 at MMIO 0x78b0000 (irq = 35, base_baud = 3000000) is a MSM [ 7.143732] msm_serial: driver initialized [ 7.251609] loop: module loaded [ 7.295575] spi_qup 78b5000.spi: IN:block:16, fifo:64, OUT:block:16, fifo:64 [ 7.331900] spi-nor spi0.0: mx25l3205d (4096 Kbytes) [ 7.418439] 15 fixed-partitions partitions found on MTD device spi0.0 [ 7.477759] OF: Bad cell count for /soc/spi@78b5000/flash@0/partitions [ 7.553764] OF: Bad cell count for /soc/spi@78b5000/flash@0/partitions [ 7.631219] OF: Bad cell count for /soc/spi@78b5000/flash@0/partitions [ 7.708973] OF: Bad cell count for /soc/spi@78b5000/flash@0/partitions [ 7.787472] Creating 15 MTD partitions on "spi0.0": [ 7.865210] 0x000000000000-0x000000040000 : "sbl1" [ 7.923107] 0x000000040000-0x000000060000 : "mibib" [ 7.981466] 0x000000060000-0x0000000c0000 : "qsee" [ 8.038730] 0x0000000c0000-0x0000000d0000 : "cdt" [ 8.097488] 0x0000000d0000-0x0000000e0000 : "ddrparams" [ 8.154405] 0x0000000e0000-0x0000000f0000 : "appsblenv" [ 8.214766] 0x0000000f0000-0x0000001f0000 : "appsbl" [ 8.277260] 0x0000001f0000-0x000000200000 : "ART" [ 8.339813] 0x000000200000-0x000000370000 : "osss" [ 8.395019] 0x000000370000-0x000000380000 : "pds" [ 8.451197] 0x000000380000-0x000000390000 : "apcd" [ 8.508564] 0x000000390000-0x0000003a0000 : "mfginfo" [ 8.564802] 0x0000003a0000-0x0000003b0000 : "fcache" [ 8.626177] 0x0000003b0000-0x0000003c0000 : "u-boot-env-bak" [ 8.686617] 0x0000003c0000-0x000000400000 : "u-boot-env" [ 8.761414] spi-nand spi0.1: Macronix SPI NAND was found. [ 8.817316] spi-nand spi0.1: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64 [ 8.881212] mtd: Found partition defined in DT for aos0. Assigning OF node to support nvmem. [ 8.881236] 3 cmdlinepart partitions found on MTD device spi0.1 [ 9.079779] Creating 3 MTD partitions on "spi0.1": [ 9.147481] 0x000000000000-0x000002000000 : "aos0" [ 9.303567] 0x000002000000-0x000004000000 : "aos1" [ 9.401009] 0x000004000000-0x000008000000 : "ubi" [ 9.710793] i2c_dev: i2c /dev entries driver [ 9.711137] i2c_qup 78b7000.i2c: using default clock-frequency 100000 [ 9.753421] sdhci: Secure Digital Host Controller Interface driver [ 9.826519] sdhci: Copyright(c) Pierre Ossman [ 9.899406] sdhci-pltfm: SDHCI platform and OF driver helper [ 9.956819] NET: Registered PF_INET6 protocol family [ 10.023220] Segment Routing with IPv6 [ 10.080772] In-situ OAM (IOAM) with IPv6 [ 10.123470] NET: Registered PF_PACKET protocol family [ 10.171394] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this. [ 10.231084] 8021q: 802.1Q VLAN Support v1.8 [ 10.387025] Registering SWP/SWPB emulation handler [ 10.466254] qca8k-ipq4019 c000000.switch: configuring for fixed/internal link mode [ 10.492420] qca8k-ipq4019 c000000.switch: Link is Up - 1Gbps/Full - flow control rx/tx [ 10.590291] qca8k-ipq4019 c000000.switch lan1 (uninitialized): PHY [90000.mdio-1:01] driver [Qualcomm QCA8075] (irq=POLL) [ 10.760275] qca8k-ipq4019 c000000.switch lan2 (uninitialized): PHY [90000.mdio-1:02] driver [Qualcomm QCA8075] (irq=POLL) [ 10.890368] qca8k-ipq4019 c000000.switch lan3 (uninitialized): PHY [90000.mdio-1:03] driver [Qualcomm QCA8075] (irq=POLL) [ 11.021879] qca8k-ipq4019 c000000.switch wan (uninitialized): PHY [90000.mdio-1:04] driver [Qualcomm QCA8075] (irq=POLL) [ 11.073305] DSA: treˇ[ 11.263102] Freeing unused kernel image (initmem) memory: 13312K [ 11.263404] Run /init as init process [ 11.788521] init: Console is alive [ 11.788892] init: - watchdog - [ 11.825738] kmodloader: loading kernel modules from /etc/modules-boot.d/* [ 11.955845] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller [ 11.955929] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1 [ 12.008310] xhci-hcd xhci-hcd.0.auto: hcc params 0x0220f665 hci version 0x100 quirks 0x0000008002010010 [ 12.098723] xhci-hcd xhci-hcd.0.auto: irq 104, io mem 0x06000000 [ 12.211335] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller [ 12.286161] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2 [ 12.349688] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed [ 12.441057] hub 1-0:1.0: USB hub found [ 12.519531] hub 1-0:1.0: 1 port detected [ 12.567982] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM. [ 12.613902] hub 2-0:1.0: USB hub found [ 12.710154] hub 2-0:1.0: config failed, hub doesn't have any ports! (err -19) [ 12.756071] kmodloader: done loading kernel modules from /etc/modules-boot.d/* [ 12.844613] init: - preinit - [ 12.906971] usb 1-1: new full-speed USB device number 2 using xhci-hcd [ 13.108228] random: jshn: uninitialized urandom read (4 bytes read) [ 13.117100] usb 1-1: device descriptor read/64, error -71 [ 13.154186] random: jshn: uninitialized urandom read (4 bytes read) [ 13.263597] random: jshn: uninitialized urandom read (4 bytes read) [ 13.437087] usb 1-1: device descriptor read/64, error -71 [ 13.516666] ipqess-edma c080000.ethernet eth0: configuring for fixed/internal link mode [ 13.517533] qca8k-ipq4019 c000000.switch lan1: configuring for phy/psgmii link mode [ 13.598196] ipqess-edma c080000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx [ 13.746974] usb 1-1: new full-speed USB device number 3 using xhci-hcd [ 13.957005] usb 1-1: device descriptor read/64, error -71 [ 14.226999] usb 1-1: device descriptor read/64, error -71 [ 14.347200] usb usb1-port1: attempt power cycle [ 14.518456] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ 14.532109] random: procd: uninitialized urandom read (4 bytes read) Press the [f] key and hit [enter] to enter failsafe mode Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level [ 14.816989] usb 1-1: new full-speed USB device number 4 using xhci-hcd [ 14.817153] usb 1-1: Device not responding to setup address. [ 15.097051] usb 1-1: Device not responding to setup address. [ 15.316965] usb 1-1: device not accepting address 4, error -71 [ 15.466969] usb 1-1: new full-speed USB device number 5 using xhci-hcd [ 15.467098] usb 1-1: Device not responding to setup address. [ 15.747089] usb 1-1: Device not responding to setup address. [ 15.966975] usb 1-1: device not accepting address 5, error -71 [ 15.967241] usb usb1-port1: unable to enumerate USB device [ 16.638746] procd: - early - [ 16.638973] procd: - watchdog - [ 17.221975] procd: - watchdog - [ 17.222382] procd: - ubus - [ 17.251326] random: ubusd: uninitialized urandom read (4 bytes read) [ 17.295622] random: ubusd: uninitialized urandom read (4 bytes read) [ 17.357823] random: ubusd: uninitialized urandom read (4 bytes read) [ 17.435967] procd: - init - Please press Enter to activate this console. [ 17.827774] kmodloader: loading kernel modules from /etc/modules.d/* [ 17.836543] Loading modules backported from Linux version v6.1.24-0-g0102425ac76b [ 17.892480] Backport generated by backports.git v5.15.92-1-44-gd6ea70fafd36 [ 18.068598] PPP generic driver version 2.4.2 [ 18.069660] NET: Registered PF_PPPOX protocol family [ 18.663942] urngd: v1.0.2 started. [ 18.938945] ath10k_ahb a000000.wifi: qca4019 hw1.0 target 0x01000000 chip_id 0x003900ff sub 0000:0000 [ 18.939023] ath10k_ahb a000000.wifi: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0 [ 19.040744] ath10k_ahb a000000.wifi: firmware ver 10.4b-ct-4019-fW-13-5ae337bb1 api 5 features mfp,peer-flow-ctrl,txstatus-noack,wmi-10.x-CT,ratemask-CT,regdump-CT,txrate-CT,flush-all-CT,pingpong-CT,ch-regs-CT,nop-CT,set-special-CT,tx-rc-CT,cust-stats-CT,txrate2-CT,beacon-cb-CT,wmi-block-ack-CT,wmi-bcn-rc-CT crc32 6b2b5c5b [ 19.208058] random: crng init done [ 19.258181] ath10k_ahb a000000.wifi: Loading BDF type 0 [ 19.478659] random: 29 urandom warning(s) missed due to ratelimiting [ 19.533567] ath10k_ahb a000000.wifi: board_file api 2 bmi_id 0:20 crc32 d140cd7d [ 20.950595] ath10k_ahb a000000.wifi: 10.4 wmi init: vdevs: 16 peers: 48 tid: 96 [ 20.950678] ath10k_ahb a000000.wifi: msdu-desc: 2500 skid: 32 [ 21.070542] ath10k_ahb a000000.wifi: wmi print 'P 48/48 V 16 K 144 PH 176 T 186 msdu-desc: 2500 sw-crypt: 0 ct-sta: 0' [ 21.096594] ath10k_ahb a000000.wifi: wmi print 'free: 53252 iram: 13432 sram: 35752' [ 21.404661] ath10k_ahb a000000.wifi: htt-ver 2.2 wmi-op 6 htt-op 4 cal pre-cal-nvmem max-sta 32 raw 0 hwcrypto 1 [ 22.441200] ath10k_ahb a800000.wifi: qca4019 hw1.0 target 0x01000000 chip_id 0x003900ff sub 0000:0000 [ 22.441286] ath10k_ahb a800000.wifi: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0 [ 22.543023] ath10k_ahb a800000.wifi: firmware ver 10.4b-ct-4019-fW-13-5ae337bb1 api 5 features mfp,peer-flow-ctrl,txstatus-noack,wmi-10.x-CT,ratemask-CT,regdump-CT,txrate-CT,flush-all-CT,pingpong-CT,ch-regs-CT,nop-CT,set-special-CT,tx-rc-CT,cust-stats-CT,txrate2-CT,beacon-cb-CT,wmi-block-ack-CT,wmi-bcn-rc-CT crc32 6b2b5c5b [ 22.760350] ath10k_ahb a800000.wifi: Loading BDF type 0 [ 22.993218] ath10k_ahb a800000.wifi: board_file api 2 bmi_id 0:21 crc32 d140cd7d [ 24.333452] ath10k_ahb a800000.wifi: 10.4 wmi init: vdevs: 16 peers: 48 tid: 96 [ 24.333528] ath10k_ahb a800000.wifi: msdu-desc: 2500 skid: 32 [ 24.453011] ath10k_ahb a800000.wifi: wmi print 'P 48/48 V 16 K 144 PH 176 T 186 msdu-desc: 2500 sw-crypt: 0 ct-sta: 0' [ 24.479439] ath10k_ahb a800000.wifi: wmi print 'free: 53252 iram: 13432 sram: 35752' [ 24.742253] ath10k_ahb a800000.wifi: htt-ver 2.2 wmi-op 6 htt-op 4 cal pre-cal-nvmem max-sta 32 raw 0 hwcrypto 1 [ 24.870290] kmodloader: done loading kernel modules from /etc/modules.d/* [ 52.993270] ipqess-edma c080000.ethernet eth0: Link is Down [ 52.998905] ipqess-edma c080000.ethernet eth0: configuring for fixed/internal link mode [ 53.045943] ipqess-edma c080000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx [ 53.054685] qca8k-ipq4019 c000000.switch lan1: configuring for phy/psgmii link mode [ 53.242010] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ 53.333813] br-lan: port 1(lan1) entered blocking state [ 53.408052] br-lan: port 1(lan1) entered disabled state [ 53.471002] device lan1 entered promiscuous mode [ 53.532995] device eth0 entered promiscuous mode [ 53.609390] qca8k-ipq4019 c000000.switch lan2: configuring for phy/psgmii link mode [ 53.649157] br-lan: port 2(lan2) entered blocking state [ 53.735163] br-lan: port 2(lan2) entered disabled state [ 53.798077] device lan2 entered promiscuous mode [ 53.868686] qca8k-ipq4019 c000000.switch lan3: configuring for phy/psgmii link mode [ 53.920578] br-lan: port 3(lan3) entered blocking state [ 54.006996] br-lan: port 3(lan3) entered disabled state [ 54.069848] device lan3 entered promiscuous mode [ 54.141319] qca8k-ipq4019 c000000.switch wan: configuring for phy/psgmii link mode [ 57.278123] qca8k-ipq4019 c000000.switch wan: Link is Up - 1Gbps/Full - flow control off [ 57.278211] IPv6: ADDRCONF(NETDEV_CHANGE): wan: link becomes ready BusyBox v1.36.1 (2024-03-22 22:09:42 UTC) built-in shell (ash) _______ ________ __ | |.-----.-----.-----.| | | |.----.| |_ | - || _ | -__| || | | || _|| _| |_______|| __|_____|__|__||________||__| |____| |__| W I R E L E S S F R E E D O M ----------------------------------------------------- OpenWrt 23.05.3, r23809-234f1a2efa ----------------------------------------------------- === WARNING! ===================================== There is no root password defined on this device! Use the "passwd" command to set up a new password in order to prevent unauthorized SSH logins. -------------------------------------------------- root@OpenWrt:/# mount tmpfs on / type tmpfs (rw,relatime) proc on /proc type proc (rw,nosuid,nodev,noexec,noatime) sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,noatime) cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate) tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime) tmpfs on /dev type tmpfs (rw,nosuid,noexec,noatime,size=512k,mode=755) devpts on /dev/pts type devpts (rw,nosuid,noexec,noatime,mode=600,ptmxmode=000) debugfs on /sys/kernel/debug type debugfs (rw,noatime) bpffs on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,noatime,mode=700) root@OpenWrt:/# cat /proc/mtd dev: size erasesize name mtd0: 00040000 00010000 "sbl1" mtd1: 00020000 00010000 "mibib" mtd2: 00060000 00010000 "qsee" mtd3: 00010000 00010000 "cdt" mtd4: 00010000 00010000 "ddrparams" mtd5: 00010000 00010000 "appsblenv" mtd6: 00100000 00010000 "appsbl" mtd7: 00010000 00010000 "ART" mtd8: 00170000 00010000 "osss" mtd9: 00010000 00010000 "pds" mtd10: 00010000 00010000 "apcd" mtd11: 00010000 00010000 "mfginfo" mtd12: 00010000 00010000 "fcache" mtd13: 00010000 00010000 "u-boot-env-bak" mtd14: 00040000 00010000 "u-boot-env" mtd15: 02000000 00020000 "aos0" mtd16: 02000000 00020000 "aos1" mtd17: 04000000 00020000 "ubi" root@OpenWrt:/# ubinfo -a UBI version: 1 Count of UBI devices: 0 UBI control device major/minor: 10:126 [ My 3rd partition "ubi" is corrupt. Formatting fixes it. ] root@OpenWrt:/# ubidetach -p /dev/mtd17 ubidetach: error!: cannot detach "/dev/mtd17" error 19 (No such device) root@OpenWrt:/# ubiformat /dev/mtd17 ubiformat: mtd17 (nand), size 67108864 bytes (64.0 MiB), 512 eraseblocks of 131072 bytes (128.0 KiB), min. I/O size 2048 bytes libscan: scanning eraseblock 511 -- 100 % complete ubiformat: 4 eraseblocks have valid erase counter, mean value is 10 ubiformat: 507 eraseblocks are supposedly empty ubiformat: 1 bad eraseblocks found, numbers: 126 ubiformat: warning!: only 4 of 511 eraseblocks have valid erase counter ubiformat: erase counter 0 will be used for all eraseblocks ubiformat: note, arbitrary erase counter value may be specified using -e option ubiformat: continue? (y/N) y ubiformat: use erase counter 0 for all eraseblocks ubiformat: formatting eraseblock 511 -- 100 % complete [ Format the other two partitions for good measure. ] root@OpenWrt:/# ubiformat /dev/mtd16 ubiformat: mtd16 (nand), size 33554432 bytes (32.0 MiB), 256 eraseblocks of 131072 bytes (128.0 KiB), min. I/O size 2048 bytes libscan: scanning eraseblock 255 -- 100 % complete ubiformat: 256 eraseblocks have valid erase counter, mean value is 5 ubiformat: formatting eraseblock 255 -- 100 % complete root@OpenWrt:/# root@OpenWrt:/# ubiformat /dev/mtd15 ubiformat: mtd15 (nand), size 33554432 bytes (32.0 MiB), 256 eraseblocks of 131072 bytes (128.0 KiB), min. I/O size 2048 bytes libscan: scanning eraseblock 255 -- 100 % complete ubiformat: 256 eraseblocks have valid erase counter, mean value is 4 ubiformat: formatting eraseblock 255 -- 100 % complete [ Do sysupgrade. ] root@OpenWrt:/# scp ryan@192.168.5.20:aruba-ap-303h/openwrt-23.05.3-fa3757f605bb-ipq40xx-generic-aruba_ap-303h-squashfs-sysupgrade.bin /tmp/openwrt-sysupgrade.bin root@OpenWrt:/# sysupgrade -n /tmp/openwrt-sysupgrade.bin Sat Apr 20 19:50:30 UTC 2024 upgrade: Commencing upgrade. Closing all shell sessions. - watchdog - Watchdog did not previously reset the system Sat Apr 20 19:50:31 UTC 2024 upgrade: Sending TERM to remaining processes ... Sat Apr 20 19:50:35 UTC 2024 upgrade: Sending KILL to remaining processes ... [ 361.756610] stage2 (4182): drop_caches: 3 Sat Apr 20 19:50:41 UTC 2024 upgrade: Switching to ramdisk... Sat Apr 20 19:50:43 UTC 2024 upgrade: Performing system upgrade... verifying sysupgrade tar file integrity [ 364.584178] ubi0: attaching mtd17 [ 365.847870] ubi0: scanning is finished [ 365.877077] ubi0: attached mtd17 (name "ubi", size 64 MiB) [ 365.879185] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes [ 365.944843] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048 [ 366.027135] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096 [ 366.109423] ubi0: good PEBs: 511, bad PEBs: 1, corrupted PEBs: 0 [ 366.190659] ubi0: user volume: 0, internal volumes: 1, max. volumes count: 128 [ 366.265671] ubi0: max/mean erase counter: 0/0, WL threshold: 4096, image sequence number: 315897415 [ 366.350042] ubi0: available PEBs: 488, total reserved PEBs: 23, PEBs reserved for bad PEB handling: 19 [ 366.457355] ubi0: background thread "ubi_bgt0d" started, PID 4880 UBI device number 0, total 511 LEBs (64884736 bytes, 61.8 MiB), available 488 LEBs (61964288 bytes, 59.0 MiB), LEB size 126976 bytes (124.0 KiB) Volume ID 0, size 25 LEBs (3174400 bytes, 3.0 MiB), LEB size 126976 bytes (124.0 KiB), dynamic, name "kernel", alignment 1 Volume ID 1, size 32 LEBs (4063232 bytes, 3.8 MiB), LEB size 126976 bytes (124.0 KiB), dynamic, name "rootfs", alignment 1 Set volume size to 54726656 Volume ID 2, size 431 LEBs (54726656 bytes, 52.1 MiB), LEB size 126976 bytes (124.0 KiB), dynamic, name "rootfs_data", alignment 1 sysupgrade� [ Sysupgrade does a warm reboot, but the bootloader will not see the cleanly-formatted partitions. The AP must be power-cycled first. ] APBoot 2.1.4.7 (build 57679) Built: 2016-12-08 at 15:41:41 Model: AP-303H DRAM: 512 MiB Flash: Detected MX25L3205D: total 4 MiB NAND: Detected MX35LFxGE4AB: total 128 MiB Power: 802.3at POE Volume aos0 not found! Creating dynamic volume aos0 of size 30982144 Volume aos1 not found! Creating dynamic volume aos1 of size 30982144 Volume ubifs not found! Creating dynamic volume ubifs of size 634880 Net: eth0 Radio: ipq4029#0, ipq4029#1 Reset: warm FIPS: passed Hit <Enter> to stop autoboot: 2  1  0 No size specified -> Using max size (3174400) Uncompressing Kernel Image ... � [ Power cycle now. When APBoot restarts, it will see the clean partitions and be happy. ] APBoot 2.1.4.7 (build 57679) Built: 2016-12-08 at 15:41:41 Model: AP-303H DRAM: 512 MiB Flash: Detected MX25L3205D: total 4 MiB NAND: Detected MX35LFxGE4AB: total 128 MiB Power: 802.3at POE Net: eth0 Radio: ipq4029#0, ipq4029#1 Reset: cold FIPS: passed Hit <Enter> to stop autoboot: 2  1  0 No size specified -> Using max size (3174400) Uncompressing Kernel Image ... OK ipq: fdt fixup unable to find compatible node [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 5.15.150 (builder@buildhost) (arm-openwrt-linux-muslgnueabi-gcc (OpenWrt GCC 12.3.0 r23809-234f1a2efa) 12.3.0, GNU ld (GNU Binutils) 2.40.0) #0 SMP Fri Mar 22 22:09:42 2024 [ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d [ 0.000000] CPU: div instructions available: patching division code [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache [ 0.000000] OF: fdt: Machine model: Aruba AP-303H [ 0.000000] Memory policy: Data cache writealloc [ 0.000000] Zone ranges: [ 0.000000] Normal [mem 0x0000000080000000-0x000000009fffffff] [ 0.000000] HighMem empty [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000080000000-0x0000000087dfffff] [ 0.000000] node 0: [mem 0x0000000087e00000-0x0000000087ffffff] [ 0.000000] node 0: [mem 0x0000000088000000-0x000000009fffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x000000009fffffff] [ 0.000000] percpu: Embedded 12 pages/cpu s19660 r8192 d21300 u49152 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 129920 [ 0.000000] Kernel command line: console=ttyMSM0,9600n8 mtdparts=spi0.1:0x2000000(aos0),0x2000000(aos1),0x4000000(ubi) [ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear) [ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear) [ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off [ 0.000000] Memory: 506860K/524288K available (6751K kernel code, 610K rwdata, 1020K rodata, 1024K init, 246K bss, 17428K reserved, 0K cma-reserved, 0K highmem) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1 [ 0.000000] rcu: Hierarchical RCU implementation. [ 0.000000] Tracing variant of Tasks RCU enabled. [ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies. [ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16 [ 0.000000] arch_timer: cp15 timer(s) running at 48.00MHz (virt). [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xb11fd3bfb, max_idle_ns: 440795203732 ns [ 0.000001] sched_clock: 56 bits at 48MHz, resolution 20ns, wraps every 4398046511096ns [ 0.000025] Switching to timer-based delay loop, resolution 20ns [ 0.000339] Calibrating delay loop (skipped), value calculated using timer frequency.. 96.00 BogoMIPS (lpj=480000) [ 0.000368] CPU: Testing write buffer coherency: ok [ 0.000428] pid_max: default: 32768 minimum: 301 [ 0.001275] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.001308] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.003392] qcom_scm: convention: smc legacy [ 0.004619] Setting up static identity map for 0x80300000 - 0x8030003c [ 0.004801] rcu: Hierarchical SRCU implementation. [ 0.005412] smp: Bringing up secondary CPUs ... [ 0.009037] smp: Brought up 1 node, 4 CPUs [ 0.009075] SMP: Total of 4 processors activated (384.00 BogoMIPS). [ 0.009091] CPU: All CPU(s) started in SVC mode. [ 0.015850] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5 [ 0.016024] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.016061] futex hash table entries: 1024 (order: 4, 65536 bytes, linear) [ 0.016451] pinctrl core: initialized pinctrl subsystem [ 0.018540] NET: Registered PF_NETLINK/PF_ROUTE protocol family [ 0.018940] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.020346] thermal_sys: Registered thermal governor 'step_wise' [ 0.020849] cpuidle: using governor ladder [ 0.020919] cpuidle: using governor menu [ 0.029416] gpio-435 (USB-power): hogged as output/high [ 0.049659] cryptd: max_cpu_qlen set to 1000 [ 0.054572] usbcore: registered new interface driver usbfs [ 0.054655] usbcore: registered new interface driver hub [ 0.054750] usbcore: registered new device driver usb [ 0.054809] pps_core: LinuxPPS API ver. 1 registered [ 0.054821] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it> [ 0.054852] PTP clock support registered [ 0.057127] clocksource: Switched to clocksource arch_sys_counter [ 0.058565] NET: Registered PF_INET protocol family [ 0.058834] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear) [ 0.060037] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear) [ 0.060183] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear) [ 0.060213] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear) [ 0.060280] TCP bind hash table entries: 4096 (order: 3, 32768 bytes, linear) [ 0.060374] TCP: Hash tables configured (established 4096 bind 4096) [ 0.060530] UDP hash table entries: 256 (order: 1, 8192 bytes, linear) [ 0.060580] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear) [ 0.060930] NET: Registered PF_UNIX/PF_LOCAL protocol family [ 0.060989] PCI: CLS 0 bytes, default 64 [ 0.063340] workingset: timestamp_bits=14 max_order=17 bucket_order=3 [ 0.069281] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.069317] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. [ 0.200624] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248) [ 0.204643] bam-dma-engine 8e04000.dma: num-channels unspecified in dt [ 0.204678] bam-dma-engine 8e04000.dma: num-ees unspecified in dt [ 0.206294] tcsr 1953000.ess_tcsr: setting ess interface select = 0 [ 0.206410] tcsr 1949000.tcsr: setting wifi_glb_cfg = 41000000 [ 0.206503] tcsr 194b000.tcsr: setting usb hs phy mode select = e700e7 [ 0.206595] tcsr 1957000.tcsr: setting wifi_noc_memtype_m0_m2 = 2222222 [ 0.206966] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled [ 0.209174] msm_serial 78af000.serial: msm_serial: detected port #0 [ 0.209237] msm_serial 78af000.serial: uartclk = 1843200 [ 0.209338] 78af000.serial: ttyMSM0 at MMIO 0x78af000 (irq = 34, base_baud = 115200) is a MSM [ 0.209384] msm_serial: console setup on port #0 [ 6.891789] printk: console [ttyMSM0] enabled [ 6.948588] msm_serial 78b0000.serial: msm_serial: detected port #1 [ 6.999124] msm_serial 78b0000.serial: uartclk = 48000000 [ 7.072068] 78b0000.serial: ttyMSM1 at MMIO 0x78b0000 (irq = 35, base_baud = 3000000) is a MSM [ 7.139079] msm_serial: driver initialized [ 7.246773] loop: module loaded [ 7.290935] spi_qup 78b5000.spi: IN:block:16, fifo:64, OUT:block:16, fifo:64 [ 7.327532] spi-nor spi0.0: mx25l3205d (4096 Kbytes) [ 7.413792] 15 fixed-partitions partitions found on MTD device spi0.0 [ 7.473073] OF: Bad cell count for /soc/spi@78b5000/flash@0/partitions [ 7.549116] OF: Bad cell count for /soc/spi@78b5000/flash@0/partitions [ 7.626593] OF: Bad cell count for /soc/spi@78b5000/flash@0/partitions [ 7.704335] OF: Bad cell count for /soc/spi@78b5000/flash@0/partitions [ 7.782832] Creating 15 MTD partitions on "spi0.0": [ 7.860564] 0x000000000000-0x000000040000 : "sbl1" [ 7.918478] 0x000000040000-0x000000060000 : "mibib" [ 7.976807] 0x000000060000-0x0000000c0000 : "qsee" [ 8.034098] 0x0000000c0000-0x0000000d0000 : "cdt" [ 8.092511] 0x0000000d0000-0x0000000e0000 : "ddrparams" [ 8.149646] 0x0000000e0000-0x0000000f0000 : "appsblenv" [ 8.210078] 0x0000000f0000-0x0000001f0000 : "appsbl" [ 8.272632] 0x0000001f0000-0x000000200000 : "ART" [ 8.335170] 0x000000200000-0x000000370000 : "osss" [ 8.390467] 0x000000370000-0x000000380000 : "pds" [ 8.446577] 0x000000380000-0x000000390000 : "apcd" [ 8.503949] 0x000000390000-0x0000003a0000 : "mfginfo" [ 8.560189] 0x0000003a0000-0x0000003b0000 : "fcache" [ 8.621497] 0x0000003b0000-0x0000003c0000 : "u-boot-env-bak" [ 8.681988] 0x0000003c0000-0x000000400000 : "u-boot-env" [ 8.756572] spi-nand spi0.1: Macronix SPI NAND was found. [ 8.812685] spi-nand spi0.1: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64 [ 8.876472] mtd: Found partition defined in DT for aos0. Assigning OF node to support nvmem. [ 8.876499] 3 cmdlinepart partitions found on MTD device spi0.1 [ 9.075115] Creating 3 MTD partitions on "spi0.1": [ 9.142853] 0x000000000000-0x000002000000 : "aos0" [ 9.271304] 0x000002000000-0x000004000000 : "aos1" [ 9.341531] 0x000004000000-0x000008000000 : "ubi" [ 9.537042] i2c_dev: i2c /dev entries driver [ 9.537397] i2c_qup 78b7000.i2c: using default clock-frequency 100000 [ 9.579613] sdhci: Secure Digital Host Controller Interface driver [ 9.652764] sdhci: Copyright(c) Pierre Ossman [ 9.725656] sdhci-pltfm: SDHCI platform and OF driver helper [ 9.782623] NET: Registered PF_INET6 protocol family [ 9.849136] Segment Routing with IPv6 [ 9.906984] In-situ OAM (IOAM) with IPv6 [ 9.949728] NET: Registered PF_PACKET protocol family [ 9.997606] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this. [ 10.057288] 8021q: 802.1Q VLAN Support v1.8 [ 10.213271] Registering SWP/SWPB emulation handler [ 10.272500] qca8k-ipq4019 c000000.switch: configuring for fixed/internal link mode [ 10.318655] qca8k-ipq4019 c000000.switch: Link is Up - 1Gbps/Full - flow control rx/tx [ 10.420418] qca8k-ipq4019 c000000.switch lan1 (uninitialized): PHY [90000.mdio-1:01] driver [Qualcomm QCA8075] (irq=POLL) [ 10.580537] qca8k-ipq4019 c000000.switch lan2 (uninitialized): PHY [90000.mdio-1:02] driver [Qualcomm QCA8075] (irq=POLL) [ 10.720524] qca8k-ipq4019 c000000.switch lan3 (uninitialized): PHY [90000.mdio-1:03] driver [Qualcomm QCA8075] (irq=POLL) [ 10.852038] qca8k-ipq4019 c000000.switch wan (uninitialized): PHY [90000.mdio-1:04] driver [Qualcomm QCA8075] (irq=POLL) [ 10.899478] DSA: tree 0 setup [ 11.031690] UBI: auto-attach mtd17 [ 11.064256] ubi0: attaching mtd17 [ 12.147143] random: crng init done [ 12.239728] ubi0: scanning is finished [ 12.265317] ubi0 warning: 0xc0709018: cannot reserve enough PEBs for bad PEB handling, reserved 14, need 19 [ 12.272124] ubi0: attached mtd17 (name "ubi", size 64 MiB) [ 12.386692] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes [ 12.453349] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048 [ 12.535634] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096 [ 12.617927] ubi0: good PEBs: 511, bad PEBs: 1, corrupted PEBs: 0 [ 12.699169] ubi0: user volume: 4, internal volumes: 1, max. volumes count: 128 [ 12.774176] ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 315897415 [ 12.858553] ubi0: available PEBs: 0, total reserved PEBs: 511, PEBs reserved for bad PEB handling: 14 [ 12.965869] ubi0: background thread "ubi_bgt0d" started, PID 132 [ 12.967884] block ubiblock0_1: created from ubi0˛[ 13.232586] VFS: Mounted root (squashfs filesystem) readonly on device 254:0. [ 13.234635] Freeing unused kernel image (initmem) memory: 1024K [ 13.347386] Run /sbin/init as init process [ 13.930144] init: Console is alive [ 13.930511] init: - watchdog - [ 15.187773] kmodloader: loading kernel modules from /etc/modules-boot.d/* [ 15.446114] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller [ 15.446200] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1 [ 15.498569] xhci-hcd xhci-hcd.0.auto: hcc params 0x0220f665 hci version 0x100 quirks 0x0000008002010010 [ 15.588999] xhci-hcd xhci-hcd.0.auto: irq 104, io mem 0x06000000 [ 15.701600] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller [ 15.776432] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2 [ 15.839957] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed [ 15.931355] hub 1-0:1.0: USB hub found [ 16.009839] hub 1-0:1.0: 1 port detected [ 16.058160] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM. [ 16.104193] hub 2-0:1.0: USB hub found [ 16.200431] hub 2-0:1.0: config failed, hub doesn't have any ports! (err -19) [ 16.246319] kmodloader: done loading kernel modules from /etc/modules-boot.d/* [ 16.337722] init: - preinit - [ 16.397134] usb 1-1: new full-speed USB device number 2 using xhci-hcd [ 16.607208] usb 1-1: device descriptor read/64, error -71 [ 16.877187] usb 1-1: device descriptor read/64, error -71 [ 17.147236] usb 1-1: new full-speed USB device number 3 using xhci-hcd [ 17.297268] usb 1-1: device descriptor read/64, error -71 [ 17.567268] usb 1-1: device descriptor read/64, error -71 [ 17.687504] usb usb1-port1: attempt power cycle [ 17.689410] ipqess-edma c080000.ethernet eth0: configuring for fixed/internal link mode [ 17.727907] qca8k-ipq4019 c000000.switch lan1: configuring for phy/psgmii link mode [ 17.823143] ipqess-edma c080000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx [ 18.317133] usb 1-1: new full-speed USB device number 4 using xhci-hcd [ 18.317282] usb 1-1: Device not responding to setup address. [ 18.597245] usb 1-1: Device not responding to setup address. [ 18.786704] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ 18.817201] usb 1-1: device not accepting address 4, error -71 Press the [f] key and hit [enter] to enter failsafe mode Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level [ 19.007147] usb 1-1: new full-speed USB device number 5 using xhci-hcd �[ 19.367210] usb 1-1: Device not responding to setup address. [ 19.587130] usb 1-1: device not accepting address 5, error -71 [ 19.587377] usb usb1-port1: unable to enumerate USB device [ 20.989010] UBIFS (ubi0:2): default file-system created [ 20.991335] UBIFS (ubi0:2): Mounting in unauthenticated mode [ 21.037264] UBIFS (ubi0:2): background thread "ubifs_bgt0_2" started, PID 239 [ 21.255932] UBIFS (ubi0:2): UBIFS: mounted UBI device 0, volume 2, name "rootfs_data" [ 21.255998] UBIFS (ubi0:2): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes [ 21.337309] UBIFS (ubi0:2): FS size: 53456896 bytes (50 MiB, 421 LEBs), max 431 LEBs, journal size 2666496 bytes (2 MiB, 21 LEBs) [ 21.456047] UBIFS (ubi0:2): reserved for root: 2524900 bytes (2465 KiB) [ 21.595616] UBIFS (ubi0:2): media format: w5/r0 (latest is w5/r0), UUID 07C7E3FF-218C-4877-B3BD-7B58AA6C14CA, small LPT model [ 21.677557] mount_root: overlay filesystem has not been fully initialized yet [ 21.810895] mount_root: switching to ubifs overlay [ 21.905628] urandom-seed: Seed file not found (/etc/urandom.seed) [ 22.181651] procd: - early - [ 22.181877] procd: - watchdog - [ 22.867962] procd: - watchdog - [ 23.018810] procd: - ubus - [ 23.194968] procd: - init - Please press Enter to activate this console. [ 23.964844] kmodloader: loading kernel modules from /etc/modules.d/* [ 24.185831] Loading modules backported from Linux version v6.1.24-0-g0102425ac76b [ 24.185891] Backport generated by backports.git v5.15.92-1-44-gd6ea70fafd36 [ 24.374761] PPP generic driver version 2.4.2 [ 24.375945] NET: Registered PF_PPPOX protocol family [ 24.881233] urngd: v1.0.2 started. [ 25.842756] ath10k_ahb a000000.wifi: qca4019 hw1.0 target 0x01000000 chip_id 0x003900ff sub 0000:0000 [ 25.842829] ath10k_ahb a000000.wifi: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0 [ 25.944559] ath10k_ahb a000000.wifi: firmware ver 10.4b-ct-4019-fW-13-5ae337bb1 api 5 features mfp,peer-flow-ctrl,txstatus-noack,wmi-10.x-CT,ratemask-CT,regdump-CT,txrate-CT,flush-all-CT,pingpong-CT,ch-regs-CT,nop-CT,set-special-CT,tx-rc-CT,cust-stats-CT,txrate2-CT,beacon-cb-CT,wmi-block-ack-CT,wmi-bcn-rc-CT crc32 6b2b5c5b [ 26.161895] ath10k_ahb a000000.wifi: Loading BDF type 0 [ 26.505540] ath10k_ahb a000000.wifi: board_file api 2 bmi_id 0:20 crc32 d140cd7d [ 27.798731] ath10k_ahb a000000.wifi: 10.4 wmi init: vdevs: 16 peers: 48 tid: 96 [ 27.798811] ath10k_ahb a000000.wifi: msdu-desc: 2500 skid: 32 [ 27.918381] ath10k_ahb a000000.wifi: wmi print 'P 48/48 V 16 K 144 PH 176 T 186 msdu-desc: 2500 sw-crypt: 0 ct-sta: 0' [ 27.944716] ath10k_ahb a000000.wifi: wmi print 'free: 53252 iram: 13432 sram: 35752' [ 28.280224] ath10k_ahb a000000.wifi: htt-ver 2.2 wmi-op 6 htt-op 4 cal pre-cal-nvmem max-sta 32 raw 0 hwcrypto 1 [ 29.888293] ath10k_ahb a800000.wifi: qca4019 hw1.0 target 0x01000000 chip_id 0x003900ff sub 0000:0000 [ 29.888368] ath10k_ahb a800000.wifi: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0 [ 29.990100] ath10k_ahb a800000.wifi: firmware ver 10.4b-ct-4019-fW-13-5ae337bb1 api 5 features mfp,peer-flow-ctrl,txstatus-noack,wmi-10.x-CT,ratemask-CT,regdump-CT,txrate-CT,flush-all-CT,pingpong-CT,ch-regs-CT,nop-CT,set-special-CT,tx-rc-CT,cust-stats-CT,txrate2-CT,beacon-cb-CT,wmi-block-ack-CT,wmi-bcn-rc-CT crc32 6b2b5c5b [ 30.207452] ath10k_ahb a800000.wifi: Loading BDF type 0 [ 30.440286] ath10k_ahb a800000.wifi: board_file api 2 bmi_id 0:21 crc32 d140cd7d [ 31.780595] ath10k_ahb a800000.wifi: 10.4 wmi init: vdevs: 16 peers: 48 tid: 96 [ 31.780674] ath10k_ahb a800000.wifi: msdu-desc: 2500 skid: 32 [ 31.900151] ath10k_ahb a800000.wifi: wmi print 'P 48/48 V 16 K 144 PH 176 T 186 msdu-desc: 2500 sw-crypt: 0 ct-sta: 0' [ 31.926581] ath10k_ahb a800000.wifi: wmi print 'free: 53252 iram: 13432 sram: 35752' [ 32.190270] ath10k_ahb a800000.wifi: htt-ver 2.2 wmi-op 6 htt-op 4 cal pre-cal-nvmem max-sta 32 raw 0 hwcrypto 1 [ 32.323315] kmodloader: done loading kernel modules from /etc/modules.d/* [ 55.798151] ipqess-edma c080000.ethernet eth0: Link is Down [ 55.803293] ipqess-edma c080000.ethernet eth0: configuring for fixed/internal link mode [ 55.850711] ipqess-edma c080000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx [ 55.861417] qca8k-ipq4019 c000000.switch lan1: configuring for phy/psgmii link mode [ 56.046945] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ 56.139009] br-lan: port 1(lan1) entered blocking state [ 56.212977] br-lan: port 1(lan1) entered disabled state [ 56.275908] device lan1 entered promiscuous mode [ 56.337873] device eth0 entered promiscuous mode [ 56.413594] qca8k-ipq4019 c000000.switch lan2: configuring for phy/psgmii link mode [ 56.454111] br-lan: port 2(lan2) entered blocking state [ 56.540063] br-lan: port 2(lan2) entered disabled state [ 56.602922] device lan2 entered promiscuous mode [ 56.673285] qca8k-ipq4019 c000000.switch lan3: configuring for phy/psgmii link mode [ 56.725404] br-lan: port 3(lan3) entered blocking state [ 56.811855] br-lan: port 3(lan3) entered disabled state [ 56.874738] device lan3 entered promiscuous mode [ 56.947003] qca8k-ipq4019 c000000.switch wan: configuring for phy/psgmii link mode [ 60.158327] qca8k-ipq4019 c000000.switch wan: Link is Up - 1Gbps/Full - flow control off [ 60.158415] IPv6: ADDRCONF(NETDEV_CHANGE): wan: link becomes ready BusyBox v1.36.1 (2024-04-17 05:04:46 UTC) built-in shell (ash) _______ ________ __ | |.-----.-----.-----.| | | |.----.| |_ | - || _ | -__| || | | || _|| _| |_______|| __|_____|__|__||________||__| |____| |__| W I R E L E S S F R E E D O M ----------------------------------------------------- OpenWrt 23.05.3, r23809-234f1a2efa ----------------------------------------------------- === WARNING! ===================================== There is no root password defined on this device! Use the "passwd" command to set up a new password in order to prevent unauthorized SSH logins. -------------------------------------------------- root@OpenWrt:/# cat /proc/mtd dev: size erasesize name mtd0: 00040000 00010000 "sbl1" mtd1: 00020000 00010000 "mibib" mtd2: 00060000 00010000 "qsee" mtd3: 00010000 00010000 "cdt" mtd4: 00010000 00010000 "ddrparams" mtd5: 00010000 00010000 "appsblenv" mtd6: 00100000 00010000 "appsbl" mtd7: 00010000 00010000 "ART" mtd8: 00170000 00010000 "osss" mtd9: 00010000 00010000 "pds" mtd10: 00010000 00010000 "apcd" mtd11: 00010000 00010000 "mfginfo" mtd12: 00010000 00010000 "fcache" mtd13: 00010000 00010000 "u-boot-env-bak" mtd14: 00040000 00010000 "u-boot-env" mtd15: 02000000 00020000 "aos0" mtd16: 02000000 00020000 "aos1" mtd17: 04000000 00020000 "ubi" root@OpenWrt:/# ubinfo -a UBI version: 1 Count of UBI devices: 1 UBI control device major/minor: 10:126 Present UBI devices: ubi0 ubi0 Volumes count: 4 Logical eraseblock size: 126976 bytes, 124.0 KiB Total amount of logical eraseblocks: 511 (64884736 bytes, 61.8 MiB) Amount of available logical eraseblocks: 0 (0 bytes) Maximum count of volumes 128 Count of bad physical eraseblocks: 1 Count of reserved physical eraseblocks: 14 Current maximum erase counter value: 1 Minimum input/output unit size: 2048 bytes Character device major/minor: 245:0 Present volumes: 0, 1, 2, 3 Volume ID: 0 (on ubi0) Type: dynamic Alignment: 1 Size: 25 LEBs (3174400 bytes, 3.0 MiB) State: OK Name: kernel Character device major/minor: 245:1 ----------------------------------- Volume ID: 1 (on ubi0) Type: dynamic Alignment: 1 Size: 32 LEBs (4063232 bytes, 3.8 MiB) State: OK Name: rootfs Character device major/minor: 245:2 ----------------------------------- Volume ID: 2 (on ubi0) Type: dynamic Alignment: 1 Size: 431 LEBs (54726656 bytes, 52.1 MiB) State: OK Name: rootfs_data Character device major/minor: 245:3 ----------------------------------- Volume ID: 3 (on ubi0) Type: dynamic Alignment: 1 Size: 5 LEBs (634880 bytes, 620.0 KiB) State: OK Name: ubifs Character device major/minor: 245:4 root@OpenWrt:/# mount /dev/root on /rom type squashfs (ro,relatime,errors=continue) proc on /proc type proc (rw,nosuid,nodev,noexec,noatime) sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,noatime) cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate) tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime) /dev/ubi0_2 on /overlay type ubifs (rw,noatime,assert=read-only,ubi=0,vol=2) overlayfs:/overlay on / type overlay (rw,noatime,lowerdir=/,upperdir=/overlay/upper,workdir=/overlay/work) tmpfs on /dev type tmpfs (rw,nosuid,noexec,noatime,size=512k,mode=755) devpts on /dev/pts type devpts (rw,nosuid,noexec,noatime,mode=600,ptmxmode=000) debugfs on /sys/kernel/debug type debugfs (rw,noatime) bpffs on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,noatime,mode=700) root@OpenWrt:/# df -h Filesystem Size Used Available Use% Mounted on /dev/root 4.0M 4.0M 0 100% /rom tmpfs 248.0M 64.0K 247.9M 0% /tmp /dev/ubi0_2 46.5M 156.0K 43.9M 0% /overlay overlayfs:/overlay 46.5M 156.0K 43.9M 0% / tmpfs 512.0K 0 512.0K 0% /dev root@OpenWrt:/# root@OpenWrt:/# root@OpenWrt:/# root@OpenWrt:/# root@OpenWrt:/#


This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
  • Last modified: 2024/04/20 22:52
  • by ryanrs