EA8500 and other models not booting after 53562 builds

Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next
Author Message
dale_gribble39
DD-WRT Guru


Joined: 11 Jun 2022
Posts: 1848

PostPosted: Fri Nov 17, 2023 21:23    Post subject: Reply with quote
Serial flashing is the method which you already know.

https://openwrt.org/toh/linksys/ea8500

_________________
"The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep." - Robert Frost

"I am one of the noticeable ones - notice me" - Dale Frances McKenzie Bozzio

<fact>code knows no gender</fact>

This is me, knowing I've ruffled your feathers, and not giving a ****
Some people are still hard-headed.

--------------------------------------
Mac Pro (Mid 2012) - Two 2.4GHz 6-Core Intel Xeon E5645 processors 64GB 1333MHz DDR3 ECC SDRAM OpenSUSE Leap 15.5
Sponsor
lexridge
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 899
Location: WV, USA

PostPosted: Fri Nov 17, 2023 21:52    Post subject: Reply with quote
dale_gribble39 wrote:
Serial flashing is the method which you already know.

https://openwrt.org/toh/linksys/ea8500

Yeah. Looks like TFTP flashing is the only game in town.

I did find a few interesting threads over on OpenWRT forums. Here is one:
https://forum.openwrt.org/t/solved-facing-issue-in-mounting-root-fs-on-mtd-block/15679

As mentioned in this thread, checking the kernel .config file might be a good start. It might be interesting to compare the MTD parts of the k4.9 with the k6.1 .config. Also, I found this interesting and actually did the hexdumps on the MTD parts (mtd13-16) for 53562 and all look good. I just need to reflash a k6.1 build and try the same there.

From the aforementioned forum thread (please note these MTDs are NOT the same for the EA8500, but the principal seems sound):

There is one finding on this issue,
The partition following the kernel is alone treated as valid to mount the squash fs on.

The magic check "#define SQUASHFS_MAGIC_SWAP 0x68737173" on the rootfs (/dev/mtd3) is passed, since the first block of a valid fs partition should contain "hsqs/sqhs" as below:

root@OpenWrt:/# hexdump -C /dev/mtd3
00000000 68 73 71 73 25 08 00 00 b8 b8 27 5b 00 00 04 00 |hsqs%.....'[....|

Whereas the partition which is failing to mount the squashfs on it has this block corrupted,


root@OpenWrt:/# hexdump -C /dev/mtd4
00000000 0e f3 54 96 b1 95 14 96 62 20 de e5 e2 bc 47 2f |..T.....b ....G/|

How is this magic written on to this /dev/mtd3 partition is still a question!
Is there a way to replicate the same for the secondary rootfs /dev/mtd4 as well ?

_________________
Linksys EA8500 (Internet Gateway, AP/VAP) - DD-WRT r53562
Features in use: WDS-AP, Multiple VLANs, Samba, WireGuard, Entware: mqtt, mlocate, gcc

Netgear R7800 (WDS-AP, WAP, VAP) - DD-WRT r53562
Features in use: multiple VLANs over single trunk port, multiple VAPs

Linksys EA8500 WDS Station x2 - DD-WRT r53562

OSes: Fedora 38, 9 RPis (2,3,4,5), 20 ESP8266s: Straight from Amiga to Linux in '94, never having owned a Windows PC.

Member #248
lexridge
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 899
Location: WV, USA

PostPosted: Sat Nov 18, 2023 3:02    Post subject: Reply with quote
So, now for something completely different. Tried going back to factory firmware on both partitions. It goes onto partition 1 just fine and does boot, but flashing and forcing it to boot from partition 2 results only booting to uboot. So even the factory firmware can no longer boot from partition 2. I wonder if the k6.1 kernel builds has totally fscked partition 2? Still working on this. Results may change later. Ugh!!!!
_________________
Linksys EA8500 (Internet Gateway, AP/VAP) - DD-WRT r53562
Features in use: WDS-AP, Multiple VLANs, Samba, WireGuard, Entware: mqtt, mlocate, gcc

Netgear R7800 (WDS-AP, WAP, VAP) - DD-WRT r53562
Features in use: multiple VLANs over single trunk port, multiple VAPs

Linksys EA8500 WDS Station x2 - DD-WRT r53562

OSes: Fedora 38, 9 RPis (2,3,4,5), 20 ESP8266s: Straight from Amiga to Linux in '94, never having owned a Windows PC.

Member #248
mrjcd
DD-WRT Guru


Joined: 31 Jan 2015
Posts: 6257
Location: Texas

PostPosted: Sat Nov 18, 2023 4:23    Post subject: Reply with quote
I usually put r53562 on both parts just for hellofit.
just now installed it back to part 1 ...so we all good here Smile
Code:
mrjcd@daDeb:~$ ssh root@ea8500.mrjcd.com
DD-WRT v3.0-r53562 std (c) 2023 NewMedia-NET GmbH
Release: 10/03/23
Board: Linksys EA8500
==========================================================
 
     ___  ___     _      _____  ______       ____  ___
    / _ \/ _ \___| | /| / / _ \/_  __/ _  __|_  / / _ \
   / // / // /___/ |/ |/ / , _/ / /   | |/ //_ <_/ // /
  /____/____/    |__/|__/_/|_| /_/    |___/____(_)___/
                                                     
                       DD-WRT v3.0
                   https://www.dd-wrt.com


==========================================================


BusyBox v1.36.1 (2023-10-03 02:16:29 +07) built-in shell (ash)

root@EA8500:~# ubootenv get boot_part
a_pEnv->crc = cd7de424
crc32 = cd7de424
1
root@EA8500:~# ubootenv set boot_part 2 && reboot
a_pEnv->crc = cd7de424
crc32 = cd7de424
root@EA8500:~# Connection to ea8500.mrjcd.com closed by remote host.
Connection to ea8500.mrjcd.com closed.
mrjcd@daDeb:~$ ssh root@ea8500.mrjcd.com
DD-WRT v3.0-r53562 std (c) 2023 NewMedia-NET GmbH
Release: 10/03/23
Board: Linksys EA8500
==========================================================
 
     ___  ___     _      _____  ______       ____  ___
    / _ \/ _ \___| | /| / / _ \/_  __/ _  __|_  / / _ \
   / // / // /___/ |/ |/ / , _/ / /   | |/ //_ <_/ // /
  /____/____/    |__/|__/_/|_| /_/    |___/____(_)___/
                                                     
                       DD-WRT v3.0
                   https://www.dd-wrt.com


==========================================================


BusyBox v1.36.1 (2023-10-03 02:16:29 +07) built-in shell (ash)

root@EA8500:~# ubootenv get boot_part
a_pEnv->crc = d52feed7
crc32 = d52feed7
2
root@EA8500:~# date
Fri Nov 17 22:17:49 CST 2023
root@EA8500:~#
Connection to ea8500.mrjcd.com closed.
mrjcd@daDeb:~$ neofetch
       _,met$$$$$gg.          mrjcd@daDeb
    ,g$$$$$$$$$$$$$$$P.       -----------
  ,g$$P"     """Y$$.".        OS: Debian GNU/Linux trixie/sid x86_64
 ,$$P'              `$$$.     Host: OptiPlex 7010 01
',$$P       ,ggs.     `$$b:   Kernel: 6.5.0-4-amd64
`d$$'     ,$P"'   .    $$$    Uptime: 2 days, 3 hours, 15 mins
 $$P      d$'     ,    $$P    Packages: 2687 (dpkg)
 $$:      $$.   -    ,d$$'    Shell: bash 5.2.15
 $$;      Y$b._   _,d$P'      Resolution: 1600x900, 1600x900
 Y$$.    `.`"Y$$$$P"'         DE: GNOME 44.5
 `$$b      "-.__              WM: Mutter
  `Y$$                        WM Theme: Adwaita
   `Y$$.                      Theme: Adwaita [GTK2/3]
     `$$b.                    Icons: gnome [GTK2/3]
       `Y$$b.                 Terminal: gnome-terminal
          `"Y$b._             CPU: Intel i5-3570 (4) @ 3.800GHz
              `"""            GPU: NVIDIA GeForce GT 1030
                              Memory: 1619MiB / 15945MiB

                                                     


mrjcd@daDeb:~$ date
Fri Nov 17 10:18:00 PM CST 2023
mrjcd@daDeb:~$
lexridge
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 899
Location: WV, USA

PostPosted: Sat Nov 18, 2023 4:24    Post subject: Reply with quote
Okay, this is not really easy to explain, but finally got rebooted with r53562 on partition 1 with r54079 on an unbootable partition 2 and checked the MTD block headers. Then I flashed r54079 onto both partitions and did the same. Not sure what exactly this tells us, but there does seem to be some discrepancies here, but this is all ground breaking stuff for me. Maybe somebody who knows this stuff better can look and see if anything looks problematic.
Code:

Header dump MTD13 linux r53562 part1
00000000  27 05 19 56 37 5f f2 1f  65 1b 19 36 00 23 ff 7f  |'..V7_..e..6.#..|

Header dump MTD14 rootfs r53562 part1
00000000  68 73 71 73 17 0c 00 00  2e 19 1b 65 00 00 04 00  |hsqs.......e....|

Header dump mtd15 linux2 r54079 part2
00000000  27 05 19 56 b1 5a 65 89  65 56 b2 49 00 3f ff 7f  |'..V.Ze.eV.I.?..|

Header dump mtd16 rootfs2 r54079 part2
00000000  68 73 71 73 1a 0c 00 00  40 b2 56 65 00 00 04 00  |hsqs....@.Ve....|

Header dump mtd13 linux r54079 part1
00000000  27 05 19 56 b1 5a 65 89  65 56 b2 49 00 3f ff 7f  |'..V.Ze.eV.I.?..|

Header dump mtd14 rootfs r54079 part1
00000000  68 73 71 73 1a 0c 00 00  40 b2 56 65 00 00 04 00  |hsqs....@.Ve....|

Header dump mtd15 rootfs_data r54079 part?
00000000  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
00ee0000  27 05 19 56 b1 5a 65 89  65 56 b2 49 00 3f ff 7f  |'..V.Ze.eV.I.?..|

Header dump mtd16 linux2 r54079 part2
00000000  27 05 19 56 b1 5a 65 89  65 56 b2 49 00 3f ff 7f  |'..V.Ze.eV.I.?..|

To note, this rootfs_data new partition takes the place of linux2 and linux2 is moved to mtd16 with k6.1 builds. Could this be our issue?

Also worth noting, after flashing r54079 to both partitions, it took about 12 attempts to get booted and erased nvram twice during the process. I didn't capture the log as mrjcd already did that earlier today.

_________________
Linksys EA8500 (Internet Gateway, AP/VAP) - DD-WRT r53562
Features in use: WDS-AP, Multiple VLANs, Samba, WireGuard, Entware: mqtt, mlocate, gcc

Netgear R7800 (WDS-AP, WAP, VAP) - DD-WRT r53562
Features in use: multiple VLANs over single trunk port, multiple VAPs

Linksys EA8500 WDS Station x2 - DD-WRT r53562

OSes: Fedora 38, 9 RPis (2,3,4,5), 20 ESP8266s: Straight from Amiga to Linux in '94, never having owned a Windows PC.

Member #248
lexridge
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 899
Location: WV, USA

PostPosted: Sat Nov 18, 2023 17:51    Post subject: Reply with quote
Here are the kernel config files for the ipq806x:
https://svn.dd-wrt.com/browser/src/linux/universal/linux-6.1/.config_ipq806x
https://svn.dd-wrt.com/browser/src/linux/universal/linux-4.9/.config_ipq806x

I was comparing the 4.9 and 6.1 kernel config files for EA8500 (.config_ipq806x) and found this:

k4.9
Code:

CONFIG_MTD=y
# CONFIG_MTD_TESTS is not set
CONFIG_MTD_ROOTFS_ROOT_DEV=y
# CONFIG_MTD_ROOTFS_SPLIT is not set
# CONFIG_MTD_TRXSPLIT is not set
# CONFIG_MTD_REDBOOT_PARTS is not set
# CONFIG_MTD_CMDLINE_PARTS is not set
# CONFIG_MTD_AFS_PARTS is not set
CONFIG_MTD_OF_PARTS=y
# CONFIG_MTD_AR7_PARTS is not set
CONFIG_MTD_QCOM_SMEM_PARTS=y

#
# Partition parsers
#

#
# User Modules And Translation Layers
#
CONFIG_MTD_BLKDEVS=y
CONFIG_MTD_BLOCK=y

k6.1
Code:

CONFIG_MTD=y

#
# OpenWrt specific MTD options
#
CONFIG_MTD_ROOTFS_ROOT_DEV=y
CONFIG_MTD_SPLIT_FIRMWARE=y
CONFIG_MTD_SPLIT_FIRMWARE_NAME="firmware"
CONFIG_MTD_SPLIT=y
CONFIG_MTD_SPLIT_SUPPORT=y

#
# Rootfs partition parsers
#
CONFIG_MTD_SPLIT_SQUASHFS_ROOT=y

#
# Firmware partition parsers
#
# CONFIG_MTD_SPLIT_BCM63XX_FW is not set
# CONFIG_MTD_SPLIT_BCM_WFI_FW is not set
# CONFIG_MTD_SPLIT_SEAMA_FW is not set
# CONFIG_MTD_SPLIT_WRGG_FW is not set
CONFIG_MTD_SPLIT_UIMAGE_FW=y
CONFIG_MTD_SPLIT_FIT_FW=y

Maybe k6.1 requires this. No idea. Maybe we could get a build with the MTD_SPLIT turned off to see if it cures our problems.

_________________
Linksys EA8500 (Internet Gateway, AP/VAP) - DD-WRT r53562
Features in use: WDS-AP, Multiple VLANs, Samba, WireGuard, Entware: mqtt, mlocate, gcc

Netgear R7800 (WDS-AP, WAP, VAP) - DD-WRT r53562
Features in use: multiple VLANs over single trunk port, multiple VAPs

Linksys EA8500 WDS Station x2 - DD-WRT r53562

OSes: Fedora 38, 9 RPis (2,3,4,5), 20 ESP8266s: Straight from Amiga to Linux in '94, never having owned a Windows PC.

Member #248
lexridge
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 899
Location: WV, USA

PostPosted: Sun Nov 19, 2023 22:25    Post subject: Reply with quote
Just thinking out loud. If I were to boot to r53562 on partition 1, then once booted, dd the linux (mtd13) partition over top of linux2 (mtd15), would that allow r54079 to boot to a k4.9 kernel? I am sure it would wreak lots of things, but who knows...it might actually boot it, if this is even possible. I dunno.
Code:

dd if=/dev/mtdblock13 of=/dev/mtdblock15

_________________
Linksys EA8500 (Internet Gateway, AP/VAP) - DD-WRT r53562
Features in use: WDS-AP, Multiple VLANs, Samba, WireGuard, Entware: mqtt, mlocate, gcc

Netgear R7800 (WDS-AP, WAP, VAP) - DD-WRT r53562
Features in use: multiple VLANs over single trunk port, multiple VAPs

Linksys EA8500 WDS Station x2 - DD-WRT r53562

OSes: Fedora 38, 9 RPis (2,3,4,5), 20 ESP8266s: Straight from Amiga to Linux in '94, never having owned a Windows PC.

Member #248
mrjcd
DD-WRT Guru


Joined: 31 Jan 2015
Posts: 6257
Location: Texas

PostPosted: Sun Nov 19, 2023 22:32    Post subject: Reply with quote
lexridge wrote:
Just thinking out loud. If I were to boot to r53562 on partition 1, then once booted, dd the linux (mtd13) partition over top of linux2 (mtd15), would that allow r54079 to boot to a k4.9 kernel? I am sure it would wreak lots of things, but who knows...it might actually boot it, if this is even possible. I dunno.
Code:

dd if=/dev/mtdblock13 of=/dev/mtdblock15

yous be playin with stuff that will prolly NOT turn out well Twisted Evil
lexridge
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 899
Location: WV, USA

PostPosted: Sun Nov 19, 2023 23:34    Post subject: Reply with quote
mrjcd wrote:

yous be playin with stuff that will prolly NOT turn out well Twisted Evil

Yep, I figured as much, but nothing that I couldn't fix with a partition 2 re-flash....I think. lol Very Happy

Going out on a limb and trying weird stuff seems to grasping at straws, and perhaps it is. My biggest concern is wearing out my NAND chip on this unit.

I also maybe toasted my second ttyUSB adaptor. It's starting to give me jibberish until I unplug it from USB then plug it back in (actually just a button toggle), then it's fine again for a moment or three, then back to jibberish. I already put in for a return. What could be causing these things to go bad? I even soldered on a header connector on both routers just to make sure it wasn't a connection fault. Frustrating for sure!

_________________
Linksys EA8500 (Internet Gateway, AP/VAP) - DD-WRT r53562
Features in use: WDS-AP, Multiple VLANs, Samba, WireGuard, Entware: mqtt, mlocate, gcc

Netgear R7800 (WDS-AP, WAP, VAP) - DD-WRT r53562
Features in use: multiple VLANs over single trunk port, multiple VAPs

Linksys EA8500 WDS Station x2 - DD-WRT r53562

OSes: Fedora 38, 9 RPis (2,3,4,5), 20 ESP8266s: Straight from Amiga to Linux in '94, never having owned a Windows PC.

Member #248
mrjcd
DD-WRT Guru


Joined: 31 Jan 2015
Posts: 6257
Location: Texas

PostPosted: Mon Nov 20, 2023 0:16    Post subject: Reply with quote
lexridge wrote:
My biggest concern is wearing out my NAND chip on this unit.
I also maybe toasted my second ttyUSB adaptor

many many builds installed since 2016 and also same ttyUSB since 1st installed DD-WRT
BUT yea you CAN break anything Laughing

...good thing is Debian has builtin drivers for it Smile
Code:
root@daDeb:~# dmesg | tail -7
[342091.384442] usb 3-1: new full-speed USB device number 3 using xhci_hcd
[342091.533226] usb 3-1: New USB device found, idVendor=067b, idProduct=2303, bcdDevice= 3.00
[342091.533234] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[342091.533238] usb 3-1: Product: USB-Serial Controller
[342091.533240] usb 3-1: Manufacturer: Prolific Technology Inc.
[342091.534090] pl2303 3-1:1.0: pl2303 converter detected
[342091.534845] usb 3-1: pl2303 converter now attached to ttyUSB0
root@daDeb:~# date
Sun Nov 19 06:06:59 PM CST 2023
root@daDeb:~#
lexridge
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 899
Location: WV, USA

PostPosted: Mon Nov 20, 2023 0:36    Post subject: Reply with quote
Same with Fedora w/6.5.10 kernel.
Code:

Nov 19 19:35:24 garage kernel: usb 2-4.3: new full-speed USB device number 90 using ehci-pci
Nov 19 19:35:24 garage kernel: usb 2-4.3: New USB device found, idVendor=067b, idProduct=2303, bcdDevice= 3.00
Nov 19 19:35:24 garage kernel: usb 2-4.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Nov 19 19:35:24 garage kernel: usb 2-4.3: Product: USB-Serial Controller
Nov 19 19:35:24 garage kernel: usb 2-4.3: Manufacturer: Prolific Technology Inc.
Nov 19 19:35:24 garage kernel: pl2303 2-4.3:1.0: pl2303 converter detected
Nov 19 19:35:24 garage kernel: usb 2-4.3: pl2303 converter now attached to ttyUSB1

_________________
Linksys EA8500 (Internet Gateway, AP/VAP) - DD-WRT r53562
Features in use: WDS-AP, Multiple VLANs, Samba, WireGuard, Entware: mqtt, mlocate, gcc

Netgear R7800 (WDS-AP, WAP, VAP) - DD-WRT r53562
Features in use: multiple VLANs over single trunk port, multiple VAPs

Linksys EA8500 WDS Station x2 - DD-WRT r53562

OSes: Fedora 38, 9 RPis (2,3,4,5), 20 ESP8266s: Straight from Amiga to Linux in '94, never having owned a Windows PC.

Member #248
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12780
Location: Netherlands

PostPosted: Thu Nov 23, 2023 7:21    Post subject: Reply with quote
For EA8500 it is possible your trouble will be over in the next build, please test when it is out and report back preferably with serial log if anything is amiss

https://svn.dd-wrt.com/changeset/54104

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087


Last edited by egc on Thu Nov 23, 2023 11:13; edited 1 time in total
BrainSlayer
Site Admin


Joined: 06 Jun 2006
Posts: 7463
Location: Dresden, Germany

PostPosted: Thu Nov 23, 2023 10:52    Post subject: Reply with quote
or just try it this way
_________________
"So you tried to use the computer and it started smoking? Sounds like a Mac to me.." - Louis Rossmann https://www.youtube.com/watch?v=eL_5YDRWqGE&t=60s
mrjcd
DD-WRT Guru


Joined: 31 Jan 2015
Posts: 6257
Location: Texas

PostPosted: Thu Nov 23, 2023 11:43    Post subject: Reply with quote
Linksys EA8500
DD-WRT v3.0-r54103 std (11/23/23)
Linux 6.1.63 #48 SMP Thu Nov 23 12:37:33 +07 2023 armv7l

thanky Sir BrainSlayer

https://mrjcd.com/junk/dd-wrt/EA8500/r54103.html

--
EDIT:
most all looked good although SAMBA share is still whackedup
Connected fine using android Total Commander 3.42 ...copy files perfect.
Share does have username & PW ..Total Commander set to SMB3 only

Could NOT connect with Debian OS
Could NOT connect with android Cx File Explorer 2.0.3
it is also set to SMB3 ...anyways that is when I lost the EA8500
finally got out of the easy chair to check what I knew was happening...
...sure enough EA8500 was in its forever bootloop.
Back on r53562 so we's good again

most likely parts of samba encryption mojo is bad in k6.1.x Rolling Eyes
worky fine with r53562
BrainSlayer
Site Admin


Joined: 06 Jun 2006
Posts: 7463
Location: Dresden, Germany

PostPosted: Thu Nov 23, 2023 16:33    Post subject: Reply with quote
log shows its working. rest is irrelevant. fix your security options in your samba client on debian etc. newer linux kernels dropped insecure security options
_________________
"So you tried to use the computer and it started smoking? Sounds like a Mac to me.." - Louis Rossmann https://www.youtube.com/watch?v=eL_5YDRWqGE&t=60s
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next Display posts from previous:    Page 4 of 10
Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum