Aruba AP-105 SPI flash & problem with boot

I had soldered out chip and change uboot on it with ch341a
after that i soldered in back chip and start AP-105 start was sucsessful but
when i boot AP-105 start searching mips32.ari

RESET is pushed

## Error: "resetcmd" not defined
Hit any key to stop autoboot:  0
Using eth0 device
TFTP from server 192.168.0.56; our IP address is 192.168.0.61
Filename 'mips32.ari'.

Ok I renamed openwrt-19.07.2-ath79-generic-aruba_ap-105-squashfs-sysupgrade.bin to mips32.ari and it start loading

After reboot i've get another error -

 5.181001] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    5.270683] Please append a correct "root=" boot option; here are the available partitions:
[    5.370771] 1f00             256 mtdblock0
[    5.370774]  (driver?)
[    5.449112] 1f01           16000 mtdblock1
[    5.449114]  (driver?)
[    5.527463] 1f02              64 mtdblock2
[    5.527465]  (driver?)
[    5.605810] 1f03              64 mtdblock3
[    5.605812]  (driver?)
[    5.684158] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    5.784036] Rebooting in 1 seconds..

what is wrong ?

1 Like

Please post all the console output from the device

1 Like
U-Boot 1.1.4-g62c452c1 (May 11 2019 - 21:29:36)

AP-10x (ar7100) U-boot 0.0.1
DRAM:  128 MB
Flash: 16 MB
In:    serial
Out:   serial
Err:   serial
Net:   ag7100_enet_initialize...
ATHRF1E: Port 0, Neg Success
ATHRF1E: unit 0 phy addr 0 ATHRF1E: reg0 1000
eth0: d8:c7:c8:ce:be:94
eth0 up
eth0
RESET is un-pushed
Hit any key to stop autoboot:  0
Using eth0 device
TFTP from server 192.168.0.56; our IP address is 192.168.0.61
Filename 'mips32.ari'.
Load address: 0x81000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #############T ###########################
done
Bytes transferred = 4194577 (400111 hex)
Automatic boot of image at addr 0x81000000 ...
## Booting image at 81000000 ...
   Image Name:   MIPS OpenWrt Linux-4.19.122
   Created:      2020-05-13  20:00:28 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1919543 Bytes =  1.8 MB
   Load Address: 80060000
   Entry Point:  80060000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

Starting kernel ...

[    0.000000] Linux version 4.19.122 (builder@buildhost) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r13233-14f372428a)) #0 Wed May 13 20:00:28 2020
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[    0.000000] MIPS: machine is Aruba AP-105
[    0.000000] SoC: Atheros AR7161 rev 2
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] random: get_random_bytes called from start_kernel+0x98/0x4b0 with crng_init=0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32480
[    0.000000] Kernel command line: console=ttyS0,9600 rootfstype=squashfs,jffs2
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 122100K/131072K available (4568K kernel code, 188K rwdata, 1080K rodata, 1196K init, 214K bss, 8972K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 51
[    0.000000] CPU clock: 680.000 MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 5621354254 ns
[    0.000008] sched_clock: 32 bits at 340MHz, resolution 2ns, wraps every 6316128254ns
[    0.092801] Calibrating delay loop... 451.58 BogoMIPS (lpj=903168)
[    0.194745] pid_max: default: 32768 minimum: 301
[    0.250265] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.329460] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.418314] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.534971] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.608036] pinctrl core: initialized pinctrl subsystem
[    0.672838] NET: Registered protocol family 16
[    1.031544] PCI host bridge /ahb/apb/pcie-controller@17010000 ranges:
[    1.108714]  MEM 0x0000000010000000..0x0000000016ffffff
[    1.171263]   IO 0x0000000000000000..0x0000000000000000
[    1.251017] gpio-5 (sda): enforced open drain please flag it properly in DT/ACPI DSDT/board file
[    1.356296] gpio-4 (scl): enforced open drain please flag it properly in DT/ACPI DSDT/board file
[    1.461729] i2c-gpio i2c: using lines 5 (SDA) and 4 (SCL)
[    1.526651] PCI host bridge to bus 0000:00
[    1.575700] pci_bus 0000:00: root bus resource [mem 0x10000000-0x16ffffff]
[    1.658004] pci_bus 0000:00: root bus resource [io  0x0000]
[    1.724730] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    1.806029] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    1.902231] pci 0000:00:11.0: BAR 0: assigned [mem 0x10000000-0x1000ffff]
[    1.983543] pci 0000:00:12.0: BAR 0: assigned [mem 0x10010000-0x1001ffff]
[    2.068598] clocksource: Switched to clocksource MIPS
[    2.130059] NET: Registered protocol family 2
[    2.183083] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[    2.274836] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    2.358164] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    2.434251] TCP: Hash tables configured (established 1024 bind 1024)
[    2.510472] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    2.580322] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    2.655628] NET: Registered protocol family 1
[    2.710653] Crashlog allocated RAM at address 0x3f00000
[    2.774604] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[    2.857795] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.927676] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    3.055923] io scheduler noop registered
[    3.102885] io scheduler deadline registered (default)
[    3.165731] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    3.243958] console [ttyS0] disabled
[    3.286837] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 10, base_baud = 10625000) is a 16550A
[    3.392031] console [ttyS0] enabled
[    3.392031] console [ttyS0] enabled
[    3.475465] bootconsole [early0] disabled
[    3.475465] bootconsole [early0] disabled
[    3.580520] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[    3.641111] 4 fixed-partitions partitions found on MTD device spi0.0
[    3.717289] Creating 4 MTD partitions on "spi0.0":
[    3.774703] 0x000000000000-0x000000040000 : "u-boot"
[    3.834947] 0x000000040000-0x000000fe0000 : "firmware"
[    3.936066] 0x000000fe0000-0x000000ff0000 : "hwinfo"
[    3.996402] 0x000000ff0000-0x000001000000 : "u-boot-env"
[    4.062341] libphy: Fixed MDIO Bus: probed
[    4.442434] libphy: ag71xx_mdio: probed
[    4.489861] ag71xx 19000000.eth: connected to PHY at mdio.0:00 [uid=004dd04e, driver=Generic PHY]
[    4.596914] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode: rgmii
[    4.671216] i2c /dev entries driver
[    4.715233] NET: Registered protocol family 10
[    4.774095] Segment Routing with IPv6
[    4.818076] NET: Registered protocol family 17
[    4.871350] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    5.026633] 8021q: 802.1Q VLAN Support v1.8
[    5.078769] hctosys: unable to open rtc device (rtc0)
[    5.139278] random: fast init done
[    5.181001] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    5.270781] Please append a correct "root=" boot option; here are the available partitions:
[    5.370870] 1f00             256 mtdblock0
[    5.370873]  (driver?)
[    5.449210] 1f01           16000 mtdblock1
[    5.449212]  (driver?)
[    5.527561] 1f02              64 mtdblock2
[    5.527563]  (driver?)
[    5.605908] 1f03              64 mtdblock3
[    5.605911]  (driver?)
[    5.684256] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    5.784135] Rebooting in 1 seconds..

Ok, your u-boot has been correctly changed, maybe issue with u-boot env variables ?

Your mtd patitions do not match a normal working version

[    3.222763] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[    3.283328] 4 fixed-partitions partitions found on MTD device spi0.0
[    3.359516] Creating 4 MTD partitions on "spi0.0":
[    3.416930] 0x000000000000-0x000000040000 : "u-boot"
[    3.477156] 0x000000040000-0x000000fe0000 : "firmware"
[    3.540983] 2 uimage-fw partitions found on MTD device firmware
[    3.612000] Creating 2 MTD partitions on "firmware":
[    3.671462] 0x000000000000-0x000000190000 : "kernel"
[    3.731597] 0x000000190000-0x000000fa0000 : "rootfs"
[    3.791656] mtd: device 3 (rootfs) set to be root filesystem
[    3.859580] 1 squashfs-split partitions found on MTD device rootfs
[    3.933605] 0x000000c10000-0x000000fa0000 : "rootfs_data"
[    3.998893] 0x000000fe0000-0x000000ff0000 : "hwinfo"
[    4.059056] 0x000000ff0000-0x000001000000 : "u-boot-env"

check your

bootargs=console=ttyS0,9600 mtdparts=ar7100-nor0:256k(uboot),16000k(firmware),64k(hwinfo),64k(u-boot-env)

compare with mine, stop u-boot and run

printenv

ar7100> printenv
bootargs=console=ttyS0,9600 mtdparts=ar7100-nor0:256k(uboot),16000k(firmware),64k(hwinfo),64k(u-boot-env)
bootcmd=run bootap
bootdelay=3
baudrate=9600
ipaddr=192.168.1.2
serverip=192.168.1.101
autoload=n
loadUboot=tftpboot 0x80010000 u-boot.bin && erase 0xbf000000 +0x40000 && cp.b 0x80010000 0xbf000000 0x40000
loadLinux=tftpboot 0x80010000 firmware.bin && erase 0xbf040000 +0xfa0000 && cp.b 0x80010000 0xbf040000 $filesize
loadStock=tftpboot 0x80010000 ap-105-stock.bin && erase 0xbf000000 +0x1000000 && cp.b 0x80010000 0xbf000000 $filesize
loadAll=run loadUboot;run loadLinux;
resetcmd=run loadLinux;
bootLinux=bootm 0xbf040000;
bootap=run bootLinux; run loadLinux bootLinux; run bootap;
stdin=serial
stdout=serial
stderr=serial
ethact=eth0

Environment size: 744/65532 bytes

There is big difference
my printenv :

ar7100> printenv
bootdelay=2
baudrate=9600
autoload=n
boardname=Talisker
servername=aruba-master
ethaddr=d8:c7:c8:ce:be:94
gateway=192.168.0.1
bootcmd=tftp
autostart=yes
server=ip 192.168.0.56
bootfile=mips32.ari
stdin=serial
stdout=serial
stderr=serial
ethact=eth0
filesize=6bcf6c
fileaddr=81000000
gatewayip=192.168.0.1
netmask=255.255.255.0
ipaddr=192.168.0.61
serverip=192.168.0.56

Environment size: 369/65532 bytes

Can you send me u-boot.bin, firmware.bin files ?
or dump of mx25l12805 chip ?

i used same u-boot

firmware.bin yes i can share

but full dump you will have same mac address

I used Pomona flash method

send me PM with your email

i don't find button "send PM" -:frowning:
you can email me at palisade8 at ya.ru

your u-boot env needs fixup

use setenv 'comamnds'

and saveenv to save

1 Like

image
mac stored at ff0060 address isn't it ?

My ROM store the same parameters as you write ? but printenv don't show them :frowning: I;ve gust read my ROM via programmer

OK, i see

Other users wrote same flash file to other devices and ended up with duplicate MAC addresses.

Is there only 1 location where you find the MAC address ?

I will email you a full dump of one of my devices.

Zip containing before and after u-boot update

you will then have to fix you MAC address if you can

1 Like

There is only one 1 address where i found mac address.

I don't understand why i see correct settings in rom file and printenv don't display them.

did you get the email with full dump ?

2 Likes

Yes. Thanks.

i burned flash. it is trying to load firmware... Thanks a lot! it boot normally/

1 Like

Network boot an initramfs build. The initramfs runs everything from RAM, including the rootfs, so the contents of flash does not matter.

The initramfs only needs to run once, then you use it to flash a sysupgrade build which will allow a complete boot from flash.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.