Welcome! Log In Create A New Profile

Advanced

Debian on Action Tech SG200 and MI424WR-rev-I

Posted by veriqster 
bkallus (not logged in)
Re: Debian on Action Tech SG200 and MI424WR-rev-I
April 23, 2021 07:16AM
According to ZTE's website (translated) you can email and ask for GPL source code here: tech.sp@zte.com.cn
I'm assuming you'd have to know Chinese though.
Re: Debian on Action Tech SG200 and MI424WR-rev-I
April 23, 2021 06:32PM
8086k,

> The device semmed to be using eth1, I'm not very
> sure.

The bootlog usually shows eth1 or eth0.

> The result is the same with each ethernet port.

Meaning u-boot actually initialize the switch, too. Not just a regular ethernet port.

> Download images

Sorry, I don't download images unless they are from dropbox or google drive. I'll use your text description instead, it is enough to know the switch needs to be taken care of.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Action Tech SG200 and MI424WR-rev-I
April 23, 2021 06:35PM
bkallus,

> According to ZTE's website (translated) you can
> email and ask for GPL source code here:
> tech.sp@zte.com.cn
> I'm assuming you'd have to know Chinese though.

I'd bet that's a wrong assumption! Chinese companies do communicate in both English and Chinese.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Action Tech SG200 and MI424WR-rev-I
April 24, 2021 12:59AM
bodhi,

I have sent an e-mail to this zte, waiting for reply. But I think ZTE is not very friendly to developers. Maybe ZTE won't even reply me.

In addition, the four ethernet ports are connected to the soc directly. And there are two SI32176 voice chips. It's wonderful if that could work. Do you need the firmware to do some hacking? I will get a google drive account.

8086k



Edited 1 time(s). Last edit at 04/24/2021 02:33AM by 8086k.
Re: Debian on Action Tech SG200 and MI424WR-rev-I
April 24, 2021 04:09AM
8086k,

> In addition, the four ethernet ports are connected
> to the soc directly.

If I understood you correctly, that's strange. Because for Marvell switch, usually only 1 port connected to the CPU, and it is not a physical port.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Action Tech SG200 and MI424WR-rev-I
April 24, 2021 04:53AM
bodhi,

I'm just describing what I see on the PCB, SOC is the 88f6560 chip on PCB. Maybe there is an internal switch inside 88f6560 chip.

8086k



Edited 1 time(s). Last edit at 04/24/2021 04:53AM by 8086k.
Re: Debian on Action Tech SG200 and MI424WR-rev-I
April 24, 2021 06:40PM
@8086k

> I'm just describing what I see on the PCB, SOC is
> the 88f6560 chip on PCB. Maybe there is an
> internal switch inside 88f6560 chip.

I see. Yes it is an internal switch in this 88f6560 SoC.


@Ray

The OpenWrt patch by Claudio was helpful to add more information. However, we don't really need most of the patches. Only the DTS files refreshed my memory about the DSA switch subject. So we don't need more patch to the kernel other than the DTS files we already have, and I will need to do more updates for these.


========


Done some kernel code reading today. Unfortunately, this switch is going to be a lot more works than I expected. The switch is not supported by the DSA infrastructure, so I need to find a close cousin and add supports. My guess in the DTS for MI424WR-rev-I is not good.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 04/24/2021 07:25PM by bodhi.
Re: Debian on Action Tech SG200 and MI424WR-rev-I
April 25, 2021 08:13AM
bodhi,

I have installed google drive and uploaded the files there. Here is the link
Download on GoogleDrive
Images and firmwares are all in this link.

Another thing, ZTE doesn't reply me any message, it is not a reliable company.

8086k



Edited 2 time(s). Last edit at 04/25/2021 08:23AM by 8086k.
Re: Debian on Action Tech SG200 and MI424WR-rev-I
April 25, 2021 05:39PM
> Another thing, ZTE doesn't reply me any message,
> it is not a reliable company.

Bummer! that will make it harder to get the box completely working. The switch PHY should be the same as in the MI424WR. But we don't know what the GPIOs are.

You should tell ZTE that we will report their GPL license violation, and see if you will get any response.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Action Tech SG200 and MI424WR-rev-I
April 25, 2021 06:08PM
8086k,

> I have installed google drive and uploaded the
> files there. Here is the link
> Download
> on GoogleDrive

> Images and firmwares are all in this link.

It does not work, link seems to be broken.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Action Tech SG200 and MI424WR-rev-I
April 26, 2021 05:12AM
bodhi,

I have truble in using google drive. So I use dropbox instead.

Download in DropBox

What are the GPIOs for? I think they are for LEDs and buttons. But these are not important things. I'm still using 3.14 kernel, I hope this will reduce the work. I guess we just need to know the phy number to make the ethernet work. Is it true?

8086k



Edited 1 time(s). Last edit at 04/26/2021 06:10AM by 8086k.
Re: Debian on Action Tech SG200 and MI424WR-rev-I
April 26, 2021 08:49AM
bodhi,

I have found the log from older version of uboot. It displays more information. It may be useful.

BootROM 1.34
Booting from NAND flash
BootROM: Image checksum verification PASSED


U-Boot 2009.08 (Sep 20 2011 - 17:28:41)

CPU: Feroceon (Rev 1) @ 1200Mhz - LE, L2 @ 400Mhz
DDR3 @ 400Mhz, TClock @ 200Mhz, P/V ID=7/13
DRAM: 128 MB
CS 0: base 0x00000000 size 128 MB
Addresses 26M - 0M are saved for the U-Boot usage.
NAND: 1bit HM ECC, Size: 32 MiB
Modules Detected:
GPON module detected.
TDM module.
Ethernet Switch on MAC0.
3xFE PHY Module.
GE-PHY on Switch port #0.
Net: egiga0 [PRIME], egiga1
Hit 1 to upgrade softwate version
Hit enter to stop autoboot: 0
select=0x0

I'm wondering if the other ports of the internal switch can be connected to any of the PHYs. Or one port is connected to one fixed PHY.
Re: Debian on Action Tech SG200 and MI424WR-rev-I
April 27, 2021 12:44AM
8086k,

> What are the GPIOs for? I think they are for LEDs
> and buttons. But these are not important things.
> I'm still using 3.14 kernel, I hope this will
> reduce the work. I guess we just need to know the
> phy number to make the ethernet work. Is it true?

If you want to use 3.14 kernel, then the right place to look is the old driver mvsw6171 in the kernel GPL source. It might have patches that were implemented for the ZTE box.

Usually with the same switch chip, the same PHY addr is used. That's number 0x8 in the MI424WR-rev-I box . However, I cannot be sure because I don't know your box's kernel.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 04/27/2021 12:46AM by bodhi.
Re: Debian on Action Tech SG200 and MI424WR-rev-I
April 27, 2021 07:37AM
bodhi,

The dts of MI424WR REV I box contains a switch node(It is 88e6171 in Claudio's one, 88e6085 in yours).
But the dts of aruba box doesn't contain any switch node.
Is that node for the internal switch of 88f6560? Or the external switch chip of MI424WR REV I. I don't know why did you remove it in the dts of aruba box.

I'm afraid I must try all the possible PHYs, it don't seemed to be much.

8086k
Re: Debian on Action Tech SG200 and MI424WR-rev-I
April 27, 2021 06:31PM
8086k,

> But the dts of aruba box doesn't contain any
> switch node.

> don't know why did you remove it in the dts of
> aruba box.

The Aruba and SG200 are not router. There is only Ethernet 2 ports in these boxes. So usually in that hardware configuration there is no switch.

The DSA node should be the same for internal or external switch. The 88e6085 is the compatible name for 6171 in modern kernel. What's imortant is when the kernel detects the switch it will identify the correct Hardware ID. In this case, I suspect that it is not 6171, but the proper ID might be 6560.

Claudio original DTS was using the old driver, and that's how that driver is used.

Kernel log might show the switch ID. But I did not see it in the MI424WR-rev-I stock boot log.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Action Tech SG200 and MI424WR-rev-I
April 27, 2021 08:59PM
bodhi,

I'm reasonably certain that the Aruba AP-134 and AP-135 are using the internal switch on the 88F6560. There is a Marvell 88E1510M Phy on the board and with 2 Gigabit ports it is very likely that these devices are using 2 of the internal switch ports. It may be possible to obtain source code for this device by following instructions at https://www.arubanetworks.com/open_source/. According to https://www.arubanetworks.com/assets/support/EOS_AP-13x.pdf

End of Support Life (EOSL) date(hardware): July 31, 2020

Which means source code should be available until July 31, 2023.

Ray



Edited 1 time(s). Last edit at 04/27/2021 09:08PM by rayknight.
Re: Debian on Action Tech SG200 and MI424WR-rev-I
April 27, 2021 10:09PM
Ray,

Cool! thanks for the info, good to know.

Quote

There is a Marvell 88E1510M Phy on the board and with 2 Gigabit ports it is very likely that these devices are using 2 of the internal switch ports.

If there is a LAN chip 88E1510 , then that LAN chip is for one port, and the switch is for the other port. Tthat'd make it 2 internal ports in the switch definition, one for CPU port (no PHY).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Action Tech SG200 and MI424WR-rev-I
April 28, 2021 10:04AM
bodhi,

Maybe I should post the log of new kernel.
BootROM 1.34
Booting from NAND flash
BootROM: Image checksum verification PASSED
l

U-Boot 2009.08 ( 5月 13 2013 - 18:06:09)

Hit enter to stop autoboot:  0
=>
=>
=>
=>
=>
=>
=>
=> wdtdbg watchdog 0
disable watchdog
=> nboot 0x2000000 0 0x80000

Loading from NAND 32MiB 3,3V 8-bit, offset 0x80000
   Image Name:   ARM OpenWrt Linux-3.14.34
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1600009 Bytes =  1.5 MB
   Load Address: 00008000
   Entry Point:  00008000
=> bootm
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   ARM OpenWrt Linux-3.14.34
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1600009 Bytes =  1.5 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK
----------------------
|-->setup start tag...
----------------------
|-->setup memory tag...
----------------------
|-->setup cmdline tag...
----------------------
|-->setup marvell tag...
----------------------
|-->setup versioninfo tag...
----------------------
|-->setup end tag...
----------------------

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 3.14.34 (user@ubuntu) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r44647) ) #6 Fri Apr 16 07:41:48 PDT 2021
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine model: Actiontec MI424WR-I
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200n8 earlyprintk
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    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] Memory: 125236K/131072K available (3218K kernel code, 151K rwdata, 916K rodata, 136K init, 181K bss, 5836K reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xc8800000 - 0xff000000   ( 872 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0411d5c   (4136 kB)
[    0.000000]       .init : 0xc0412000 - 0xc0434134   ( 137 kB)
[    0.000000]       .data : 0xc0436000 - 0xc045bd7c   ( 152 kB)
[    0.000000]        .bss : 0xc045bd7c - 0xc0489210   ( 182 kB)
[    0.000000] NR_IRQS:114
[    0.000011] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 21474836475ns
[    0.000111] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
[    0.090100] pid_max: default: 32768 minimum: 301
[    0.090197] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090209] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.091916] CPU: Testing write buffer coherency: ok
[    0.092176] Setting up static identity map for 0x11180 - 0x111bc
[    0.093446] pinctrl core: initialized pinctrl subsystem
[    0.094011] regulator-dummy: no parameters
[    0.094324] NET: Registered protocol family 16
[    0.094628] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.095973] cpuidle: using governor ladder
[    0.096010] Avanta: MV88F6560-Rev-2.
[    0.096145] Feroceon L2: Cache support initialised.
[    0.109527] bio: create slab <bio-0> at 0
[    0.110837] SCSI subsystem initialized
[    0.111684] usbcore: registered new interface driver usbfs
[    0.111860] usbcore: registered new interface driver hub
[    0.112052] usbcore: registered new device driver usb
[    0.113619] Switched to clocksource orion_clocksource
[    0.115624] NET: Registered protocol family 2
[    0.116455] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.116482] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.116505] TCP: Hash tables configured (established 1024 bind 1024)
[    0.116556] TCP: reno registered
[    0.116570] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.116594] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.116766] NET: Registered protocol family 1
[    0.118172] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.118673] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.118686] jffs2: version 2.2 (NAND) (SUMMARY) (ZLIB) (RTIME) (RUBIN) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.118852] msgmni has been set to 244
[    0.119551] io scheduler noop registered
[    0.119562] io scheduler deadline registered (default)
[    0.120502] kirkwood-pinctrl f1018000.pinctrl: registered pinctrl driver
[    0.121235] mvebu-pcie pcie-controller.1: PCI host bridge to bus 0000:00
[    0.121255] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.121270] pci_bus 0000:00: root bus resource [mem 0xf3000000-0xf4000000]
[    0.121284] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.121610] PCI: bus0: Fast back to back transfers disabled
[    0.121627] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.121849] PCI: bus1: Fast back to back transfers enabled
[    0.121902] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.203782] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.205267] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 33, base_baud = 12500000) is a 16550A
[    0.604412] console [ttyS0] enabled
[    0.609864] nand: device found, Manufacturer ID: 0x20, Chip ID: 0x75
[    0.616276] nand: ST Micro NAND 32MiB 3,3V 8-bit
[    0.620918] nand: 32MiB, SLC, page size: 512, OOB size: 16
[    0.626446] Scanning device for bad blocks
[    0.726981] Bad eraseblock 1792 at 0x000001c00000
[    0.745446] 3 ofpart partitions found on MTD device orion_nand
[    0.751309] Creating 3 MTD partitions on "orion_nand":
[    0.756490] 0x000000000000-0x000000080000 : "u-boot"
[    0.762648] 0x000000080000-0x000000280000 : "kernel"
[    0.768706] 0x000000280000-0x000002000000 : "ubi"
[    0.775482] libphy: Fixed MDIO Bus: probed
[    0.779895] libphy: orion_mdio_bus: probed
[    0.786844] mvneta f1074000.ethernet eth0: Using hardware mac address 00:50:43:00:00:02
[    0.797356] mvneta f1070000.ethernet eth1: Using hardware mac address 00:50:43:00:00:01
[    0.805585] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.812145] ehci-pci: EHCI PCI platform driver
[    0.816799] ehci-platform: EHCI generic platform driver
[    0.822241] ehci-orion: EHCI orion driver
[    0.826395] orion-ehci f1050000.ehci: EHCI Host Controller
[    0.831934] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    0.839752] orion-ehci f1050000.ehci: irq 23, io mem 0xf1050000
[    0.863637] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    0.870487] hub 1-0:1.0: USB hub found
[    0.874313] hub 1-0:1.0: 1 port detected
[    0.878864] usbcore: registered new interface driver usb-storage
[    0.886347] TCP: cubic registered
[    0.889684] NET: Registered protocol family 17
[    0.894432] 8021q: 802.1Q VLAN Support v1.8
[    0.899704] regulator-dummy: disabling
[    0.904113] UBI: auto-attach mtd2
[    0.907454] UBI: attaching mtd2 to ubi0
[    1.169648] UBI: scanning is finished
[    1.186294] UBI: attached mtd2 (name "ubi", size 29 MiB) to ubi0
[    1.192338] UBI: PEB size: 16384 bytes (16 KiB), LEB size: 15872 bytes
[    1.198925] UBI: min./max. I/O unit sizes: 512/512, sub-page size 256
[    1.205412] UBI: VID header offset: 256 (aligned 256), data offset: 512
[    1.212058] UBI: good PEBs: 1887, bad PEBs: 1, corrupted PEBs: 0
[    1.218105] UBI: user volume: 2, internal volumes: 1, max. volumes count: 92
[    1.225200] UBI: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 1850413067
[    1.234299] UBI: available PEBs: 0, total reserved PEBs: 1887, PEBs reserved for bad PEB handling: 39
[    1.243892] UBI: background thread "ubi_bgt0d" started, PID 765
[    1.250429] UBI: ubiblock0_0 created from ubi0:0(rootfs)
[    1.255792] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[    1.263166] mvsw61xx 8.mvsw6171: Found MV88F6560 built-in at f1072004.mdio-bu:08
[    1.270623] mvsw61xx 8.mvsw6171: Using indirect addressing
[    1.276328] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[    1.296704] random: nonblocking pool is initialized
[    1.446769] irq 33: nobody cared (try booting with the "irqpoll" option)
[    1.453510] CPU: 0 PID: 1 Comm: swapper Not tainted 3.14.34 #6
[    1.459370] Backtrace:
[    1.461861] [<c0014aa8>] (dump_backtrace) from [<c0014cd0>] (show_stack+0x18/0x1c)
[    1.469465]  r6:00000021 r5:c0447954 r4:c0447920 r3:00000000
[    1.475208] [<c0014cb8>] (show_stack) from [<c0198418>] (dump_stack+0x20/0x28)
[    1.482473] [<c01983f8>] (dump_stack) from [<c0048b18>] (__report_bad_irq.isra.7+0x20/0xb8)
[    1.490870] [<c0048af8>] (__report_bad_irq.isra.7) from [<c0048e08>] (note_interrupt+0x1ec/0x2d8)
[    1.499781]  r5:00000000 r4:c0447920
[    1.503401] [<c0048c1c>] (note_interrupt) from [<c0047548>] (handle_irq_event_percpu+0x17c/0x1b0)
[    1.512312]  r10:c043cbeb r9:c0447920 r8:00000021 r7:00000000 r6:00000000 r5:00000000
[    1.520234]  r4:00000000 r3:00000000
[    1.523855] [<c00473cc>] (handle_irq_event_percpu) from [<c00475ac>] (handle_irq_event+0x30/0x40)
[    1.532767]  r10:00000001 r9:c7833a68 r8:00000001 r7:c0483e20 r6:00000000 r5:00000021
[    1.540689]  r4:c0447920
[    1.543251] [<c004757c>] (handle_irq_event) from [<c0049538>] (handle_level_irq+0xd8/0xe8)
[    1.551553]  r4:c0447920 r3:00020000
[    1.555171] [<c0049460>] (handle_level_irq) from [<c0046e9c>] (generic_handle_irq+0x28/0x3c)
[    1.563646]  r4:c043c108 r3:c0049460
[    1.567268] [<c0046e74>] (generic_handle_irq) from [<c00127b8>] (handle_IRQ+0x68/0x88)
[    1.575227] [<c0012750>] (handle_IRQ) from [<c0008510>] (orion_handle_irq+0x74/0xa8)
[    1.583005]  r6:c78034e4 r5:00000001 r4:00000002 r3:00000040
[    1.588741] [<c000849c>] (orion_handle_irq) from [<c0008f20>] (__irq_svc+0x40/0x4c)
[    1.596433] Exception stack(0xc7833a68 to 0xc7833ab0)
[    1.601515] 3a60:                   00000a24 ffffffff 00001300 c000c410 c79ccc00 00000000
[    1.609738] 3a80: 00000001 c7833b38 00000000 c79cce38 00000000 c7833b2c c78ec000 c7833ab0
[    1.617955] 3aa0: c0220508 c000c44c 20000013 ffffffff
[    1.623029]  r10:00000000 r9:c79cce38 r8:00000000 r7:c7833a9c r6:ffffffff r5:20000013
[    1.630952]  r4:c000c44c
[    1.633516] [<c02201e8>] (nand_do_read_ops) from [<c0220b1c>] (nand_read+0x60/0x80)
[    1.641205]  r10:c7a3e000 r9:00001000 r8:c7a3e000 r7:c7833c0c r6:c79cce38 r5:00000000
[    1.649127]  r4:00288200
[    1.651692] [<c0220abc>] (nand_read) from [<c0215010>] (part_read+0x50/0x90)
[    1.658773]  r9:00000002 r8:00000000 r7:00000000 r6:c79d3600 r5:00000000 r4:00280000
[    1.666615] [<c0214fc0>] (part_read) from [<c02124f8>] (mtd_read+0x80/0xbc)
[    1.673608]  r8:c79d3600 r7:00000000 r6:01d80000 r5:00000000 r4:01d77e00
[    1.680408] [<c0212478>] (mtd_read) from [<c022ccfc>] (ubi_io_read+0x13c/0x2e4)
[    1.687749]  r8:00000200 r7:00000004 r6:c7825000 r5:00001000 r4:c7833c0c
[    1.694543] [<c022cbc0>] (ubi_io_read) from [<c022a76c>] (ubi_eba_read_leb+0x2e0/0x434)
[    1.702582]  r10:00000002 r9:00000000 r8:00000000 r7:c7a3e000 r6:00001000 r5:c7a25a00
[    1.710503]  r4:c7825000
[    1.713065] [<c022a48c>] (ubi_eba_read_leb) from [<c02297bc>] (ubi_leb_read+0xcc/0x130)
[    1.721105]  r10:00000000 r9:c7a3e000 r8:00000006 r7:c7a3e000 r6:00001000 r5:00000000
[    1.729027]  r4:c7a25a00
[    1.731593] [<c02296f0>] (ubi_leb_read) from [<c014b674>] (ubifs_leb_read+0x30/0x90)
[    1.739371]  r7:00000000 r6:00000000 r5:00001000 r4:00000000
[    1.745108] [<c014b644>] (ubifs_leb_read) from [<c014d2a8>] (ubifs_read_node+0x144/0x2e4)
[    1.753323]  r7:00001000 r6:00000000 r5:c7a2e000 r4:00000000
[    1.759061] [<c014d164>] (ubifs_read_node) from [<c0149b10>] (ubifs_read_sb_node+0x5c/0x78)
[    1.767449]  r10:00000000 r9:c7a2e008 r8:c7a2d7c0 r7:c7a40e00 r6:c0481fac r5:c7a3e000
[    1.775370]  r4:c7a2e000
[    1.777933] [<c0149ab4>] (ubifs_read_sb_node) from [<c014a7b8>] (ubifs_read_superblock+0xc44/0x15bc)
[    1.787106]  r5:c7a2e000 r4:00000028
[    1.790729] [<c0149b74>] (ubifs_read_superblock) from [<c0148ba4>] (ubifs_mount+0x90c/0x1660)
[    1.799291]  r10:00000000 r9:c7a2e008 r8:c7a2d7c0 r7:c7a40e00 r6:c0481fac r5:c7a2e000
[    1.807213]  r4:00000028
[    1.809782] [<c0148298>] (ubifs_mount) from [<c0093500>] (mount_fs+0x1c/0xd0)
[    1.816950]  r10:c0445190 r9:c7a2d820 r8:c0457b54 r7:00000000 r6:c0457b54 r5:c7a2d800
[    1.824870]  r4:c780e420
[    1.827441] [<c00934e4>] (mount_fs) from [<c00a9a10>] (vfs_kern_mount+0x50/0xdc)
[    1.834871]  r6:00008000 r5:c7a2d800 r4:c780e420
[    1.839550] [<c00a99c0>] (vfs_kern_mount) from [<c00ac630>] (do_mount+0x81c/0x97c)
[    1.847153]  r8:c7a2d800 r7:00000020 r6:00008000 r5:00000000 r4:c0457b54 r3:00000000
[    1.854992] [<c00abe14>] (do_mount) from [<c00aca50>] (SyS_mount+0x8c/0xc0)
[    1.861985]  r10:00000045 r9:c042ea08 r8:c0480ba8 r7:00008000 r6:c03ab970 r5:c7853000
[    1.869907]  r4:00000000
[    1.872471] [<c00ac9c4>] (SyS_mount) from [<c04131a4>] (mount_root+0x30/0xbc)
[    1.879638]  r7:c04859f8 r6:c042ea00 r5:c042ea28 r4:c045bd88
[    1.885377] [<c0413174>] (mount_root) from [<c041336c>] (prepare_namespace+0x13c/0x194)
[    1.893417]  r4:c045bd88
[    1.895980] [<c0413230>] (prepare_namespace) from [<c0412ca4>] (kernel_init_freeable+0x17c/0x1c8)
[    1.904891]  r5:00000007 r4:c0433f28
[    1.908514] [<c0412b28>] (kernel_init_freeable) from [<c000c4e4>] (kernel_init+0x10/0x10c)
[    1.916815]  r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:c000c4d4
[    1.924737]  r4:00000000
[    1.927298] [<c000c4d4>] (kernel_init) from [<c00086d0>] (ret_from_fork+0x14/0x24)
[    1.934901]  r4:00000000 r3:c7832000
[    1.938512] handlers:
[    1.940802] [<c01e9d04>] serial8250_interrupt
[    1.945188] Disabling IRQ #33
[    1.954378] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[    1.962043] Freeing unused kernel memory: 136K (c0412000 - c0434000)
[    2.522864] init: Console is alive
[    3.527209] init: - preinit -
Failed to find gpio-button-hotplug. Maybe it is a built in module ?
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
[    5.643669] mvneta f1074000.ethernet eth0: link up
[    6.887835] UBIFS: background thread "ubifs_bgt0_1" started, PID 810
[    6.894559] UBIFS: recovery needed
[    6.928080] UBIFS: recovery completed
[    6.931844] UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[    6.938342] UBIFS: LEB size: 15872 bytes (15 KiB), min./max. I/O unit sizes: 512 bytes/512 bytes
[    6.947204] UBIFS: FS size: 27188736 bytes (25 MiB, 1713 LEBs), journal size 1364992 bytes (1 MiB, 86 LEBs)
[    6.957003] UBIFS: reserved for root: 1284190 bytes (1254 KiB)
[    6.962870] UBIFS: media format: w4/r0 (latest is w4/r0), UUID 829E9375-20B6-4778-B34F-2D50CE787684, small LPT model
[    6.979076] mount_root: switching to jffs2 overlay
[    7.005020] procd: - early -
[   11.742523] procd: - ubus -
[   12.764762] procd: - init -
Please press Enter to activate this console.
[   13.259281] NET: Registered protocol family 10
[   13.267700] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   13.278967] Loading modules backported from Linux version master-2014-11-04-0-gf3660a2
[   13.286956] Backport generated by backports.git backports-20141023-2-g4ff890b
[   13.296042] ip_tables: (C) 2000-2006 Netfilter Core Team
[   13.307764] nf_conntrack version 0.5.0 (1958 buckets, 7832 max)
[   13.334553] xt_time: kernel timezone is -0000
[   13.353845] cfg80211: Calling CRDA to update world regulatory domain
[   13.361696] cfg80211: World regulatory domain updated:
[   13.366895] cfg80211:  DFS Master region: unset
[   13.371274] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[   13.381087] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   13.389145] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   13.397202] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[   13.405259] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[   13.413306] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
[   13.422845] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[   13.430986] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[   13.439043] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[   13.480663] PPP generic driver version 2.4.2
[   13.486724] NET: Registered protocol family 24
[   17.877729] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   17.884014] device eth0 entered promiscuous mode
[   17.891829] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   19.873660] mvneta f1074000.ethernet eth0: link up
[   19.878508] br-lan: port 1(eth0) entered forwarding state
[   19.883984] br-lan: port 1(eth0) entered forwarding state
[   19.889465] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   19.896669] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   21.883658] br-lan: port 1(eth0) entered forwarding state



BusyBox v1.22.1 (2021-02-01 11:02:33 PST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 CHAOS CALMER (Bleeding Edge, r44647)
 -----------------------------------------------------
  * 1 1/2 oz Gin            Shake with a glassful
  * 1/4 oz Triple Sec       of broken ice and pour
  * 3/4 oz Lime Juice       unstrained into a goblet.
  * 1 1/2 oz Orange Juice
  * 1 tsp. Grenadine Syrup
 -----------------------------------------------------
root@OpenWrt:/#

If I remove the phy config and switch config, the log is like this.
=> tftp openwrt-avanta-mi424wr-squashfs-combined0420.bin
Using egiga0 device
TFTP from server 192.168.1.100; our IP address is 192.168.1.1
Filename 'openwrt-avanta-mi424wr-squashfs-combined0420.bin'.
Load address: 0x2000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         ###############
done
Bytes transferred = 4030464 (3d8000 hex)
=> nand write 0x2000000 0x80000 0x3d8000
NAND write: 4030464 bytes
=> wdtdbg watchdog 0
disable watchdog
=> bootm
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   ARM OpenWrt Linux-3.14.34
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1599420 Bytes =  1.5 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK
----------------------
|-->setup start tag...
----------------------
|-->setup memory tag...
----------------------
|-->setup cmdline tag...
----------------------
|-->setup marvell tag...
----------------------
|-->setup versioninfo tag...
----------------------
|-->setup end tag...
----------------------

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 3.14.34 (user@ubuntu) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r44647) ) #7 Tue Apr 20 02:48:44 PDT 2021
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine model: Actiontec MI424WR-I
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200n8 earlyprintk
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    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] Memory: 125240K/131072K available (3218K kernel code, 151K rwdata, 916K rodata, 136K init, 181K bss, 5832K reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xc8800000 - 0xff000000   ( 872 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0411d5c   (4136 kB)
[    0.000000]       .init : 0xc0412000 - 0xc0434134   ( 137 kB)
[    0.000000]       .data : 0xc0436000 - 0xc045bd7c   ( 152 kB)
[    0.000000]        .bss : 0xc045bd7c - 0xc0489210   ( 182 kB)
[    0.000000] NR_IRQS:114
[    0.000011] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 21474836475ns
[    0.000108] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
[    0.090099] pid_max: default: 32768 minimum: 301
[    0.090195] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090208] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.091829] CPU: Testing write buffer coherency: ok
[    0.092090] Setting up static identity map for 0x11180 - 0x111bc
[    0.093366] pinctrl core: initialized pinctrl subsystem
[    0.093939] regulator-dummy: no parameters
[    0.094251] NET: Registered protocol family 16
[    0.094556] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.095905] cpuidle: using governor ladder
[    0.095942] Avanta: MV88F6560-Rev-2.
[    0.096074] Feroceon L2: Cache support initialised.
[    0.109283] bio: create slab <bio-0> at 0
[    0.110591] SCSI subsystem initialized
[    0.111442] usbcore: registered new interface driver usbfs
[    0.111615] usbcore: registered new interface driver hub
[    0.111809] usbcore: registered new device driver usb
[    0.113370] Switched to clocksource orion_clocksource
[    0.115387] NET: Registered protocol family 2
[    0.116217] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.116244] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.116267] TCP: Hash tables configured (established 1024 bind 1024)
[    0.116320] TCP: reno registered
[    0.116333] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.116359] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.116525] NET: Registered protocol family 1
[    0.117935] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.118433] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.118445] jffs2: version 2.2 (NAND) (SUMMARY) (ZLIB) (RTIME) (RUBIN) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.118611] msgmni has been set to 244
[    0.119318] io scheduler noop registered
[    0.119329] io scheduler deadline registered (default)
[    0.120272] kirkwood-pinctrl f1018000.pinctrl: registered pinctrl driver
[    0.121000] mvebu-pcie pcie-controller.1: PCI host bridge to bus 0000:00
[    0.121021] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.121035] pci_bus 0000:00: root bus resource [mem 0xf3000000-0xf4000000]
[    0.121050] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.121375] PCI: bus0: Fast back to back transfers disabled
[    0.121392] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.121612] PCI: bus1: Fast back to back transfers enabled
[    0.121664] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.203356] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.204857] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 33, base_baud = 12500000) is a 16550A
[    0.603999] console [ttyS0] enabled
[    0.609442] nand: device found, Manufacturer ID: 0x20, Chip ID: 0x75
[    0.615856] nand: ST Micro NAND 32MiB 3,3V 8-bit
[    0.620497] nand: 32MiB, SLC, page size: 512, OOB size: 16
[    0.626026] Scanning device for bad blocks
[    0.726558] Bad eraseblock 1792 at 0x000001c00000
[    0.745024] 3 ofpart partitions found on MTD device orion_nand
[    0.750885] Creating 3 MTD partitions on "orion_nand":
[    0.756066] 0x000000000000-0x000000080000 : "u-boot"
[    0.762225] 0x000000080000-0x000000280000 : "kernel"
[    0.768297] 0x000000280000-0x000002000000 : "ubi"
[    0.775076] libphy: Fixed MDIO Bus: probed
[    0.779496] libphy: orion_mdio_bus: probed
[    0.783881] mvneta f1074000.ethernet: no PHY specified
[    0.789125] mvneta f1070000.ethernet: no PHY specified
[    0.794479] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.801040] ehci-pci: EHCI PCI platform driver
[    0.805686] ehci-platform: EHCI generic platform driver
[    0.811127] ehci-orion: EHCI orion driver
[    0.815279] orion-ehci f1050000.ehci: EHCI Host Controller
[    0.820816] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    0.828630] orion-ehci f1050000.ehci: irq 23, io mem 0xf1050000
[    0.853388] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    0.860218] hub 1-0:1.0: USB hub found
[    0.864051] hub 1-0:1.0: 1 port detected
[    0.868584] usbcore: registered new interface driver usb-storage
[    0.876054] TCP: cubic registered
[    0.879391] NET: Registered protocol family 17
[    0.884136] 8021q: 802.1Q VLAN Support v1.8
[    0.889401] regulator-dummy: disabling
[    0.893798] UBI: auto-attach mtd2
[    0.897137] UBI: attaching mtd2 to ubi0
[    1.154944] UBI: scanning is finished
[    1.195195] UBI: volume 1 ("rootfs_data") re-sized from 67 to 1728 LEBs
[    1.202766] UBI: attached mtd2 (name "ubi", size 29 MiB) to ubi0
[    1.208832] UBI: PEB size: 16384 bytes (16 KiB), LEB size: 15872 bytes
[    1.215405] UBI: min./max. I/O unit sizes: 512/512, sub-page size 256
[    1.221878] UBI: VID header offset: 256 (aligned 256), data offset: 512
[    1.228535] UBI: good PEBs: 1887, bad PEBs: 1, corrupted PEBs: 0
[    1.234582] UBI: user volume: 2, internal volumes: 1, max. volumes count: 92
[    1.241667] UBI: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 1999935278
[    1.250766] UBI: available PEBs: 0, total reserved PEBs: 1887, PEBs reserved for bad PEB handling: 39
[    1.260354] UBI: background thread "ubi_bgt0d" started, PID 740
[    1.273635] UBI: ubiblock0_0 created from ubi0:0(rootfs)
[    1.278977] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[    1.293465] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[    1.313805] random: nonblocking pool is initialized
[    1.464828] irq 33: nobody cared (try booting with the "irqpoll" option)
[    1.471570] CPU: 0 PID: 1 Comm: swapper Not tainted 3.14.34 #7
[    1.477429] Backtrace:
[    1.479922] [<c0014aa8>] (dump_backtrace) from [<c0014cd0>] (show_stack+0x18/0x1c)
[    1.487525]  r6:00000021 r5:c0447954 r4:c0447920 r3:00000000
[    1.493266] [<c0014cb8>] (show_stack) from [<c0198418>] (dump_stack+0x20/0x28)
[    1.500532] [<c01983f8>] (dump_stack) from [<c0048b18>] (__report_bad_irq.isra.7+0x20/0xb8)
[    1.508928] [<c0048af8>] (__report_bad_irq.isra.7) from [<c0048e08>] (note_interrupt+0x1ec/0x2d8)
[    1.517840]  r5:00000000 r4:c0447920
[    1.521462] [<c0048c1c>] (note_interrupt) from [<c0047548>] (handle_irq_event_percpu+0x17c/0x1b0)
[    1.530374]  r10:c043cbeb r9:c0447920 r8:00000021 r7:00000000 r6:00000000 r5:00000000
[    1.538294]  r4:00000000 r3:00000000
[    1.541915] [<c00473cc>] (handle_irq_event_percpu) from [<c00475ac>] (handle_irq_event+0x30/0x40)
[    1.550827]  r10:00000001 r9:c7833a40 r8:00000001 r7:c0483e20 r6:00000000 r5:00000021
[    1.558748]  r4:c0447920
[    1.561310] [<c004757c>] (handle_irq_event) from [<c0049538>] (handle_level_irq+0xd8/0xe8)
[    1.569610]  r4:c0447920 r3:00020000
[    1.573232] [<c0049460>] (handle_level_irq) from [<c0046e9c>] (generic_handle_irq+0x28/0x3c)
[    1.581706]  r4:c043c108 r3:c0049460
[    1.585326] [<c0046e74>] (generic_handle_irq) from [<c00127b8>] (handle_IRQ+0x68/0x88)
[    1.593286] [<c0012750>] (handle_IRQ) from [<c0008510>] (orion_handle_irq+0x74/0xa8)
[    1.601064]  r6:c78034e4 r5:00000001 r4:00000002 r3:00000040
[    1.606799] [<c000849c>] (orion_handle_irq) from [<c0008f20>] (__irq_svc+0x40/0x4c)
[    1.614490] Exception stack(0xc7833a40 to 0xc7833a88)
[    1.619573] 3a40: 00001874 ffffffff 00001300 c000c410 c79cbc00 c79cbe38 00000000 00000000
[    1.627795] 3a60: 00001441 c79cbe38 00000000 c7833aac c7833a88 c7833a88 c021ff60 c000c448
[    1.636011] 3a80: 20000013 ffffffff
[    1.639514]  r10:00000000 r9:c79cbe38 r8:00001441 r7:c7833a74 r6:ffffffff r5:20000013
[    1.647435]  r4:c000c448
[    1.649999] [<c021fd9c>] (nand_command) from [<c0220374>] (nand_do_read_ops+0x18c/0x50c)
[    1.658126]  r8:00000000 r7:c7833b38 r6:00000001 r5:00000000 r4:c79cbc00 r3:00001441
[    1.665966] [<c02201e8>] (nand_do_read_ops) from [<c0220b1c>] (nand_read+0x60/0x80)
[    1.673657]  r10:c7a33000 r9:00001000 r8:c7a33000 r7:c7833c0c r6:c79cbe38 r5:00000000
[    1.681578]  r4:00288200
[    1.684145] [<c0220abc>] (nand_read) from [<c0215010>] (part_read+0x50/0x90)
[    1.691225]  r9:00000002 r8:00000000 r7:00000000 r6:c79d2600 r5:00000000 r4:00280000
[    1.699065] [<c0214fc0>] (part_read) from [<c02124f8>] (mtd_read+0x80/0xbc)
[    1.706058]  r8:c79d2600 r7:00000000 r6:01d80000 r5:00000000 r4:01d77e00
[    1.712856] [<c0212478>] (mtd_read) from [<c022ccfc>] (ubi_io_read+0x13c/0x2e4)
[    1.720199]  r8:00000200 r7:00000004 r6:c7824000 r5:00001000 r4:c7833c0c
[    1.726995] [<c022cbc0>] (ubi_io_read) from [<c022a76c>] (ubi_eba_read_leb+0x2e0/0x434)
[    1.735035]  r10:00000002 r9:00000000 r8:00000000 r7:c7a33000 r6:00001000 r5:c79dc200
[    1.742958]  r4:c7824000
[    1.745520] [<c022a48c>] (ubi_eba_read_leb) from [<c02297bc>] (ubi_leb_read+0xcc/0x130)
[    1.753560]  r10:00000000 r9:c7a33000 r8:00000006 r7:c7a33000 r6:00001000 r5:00000000
[    1.761483]  r4:c79dc200
[    1.764050] [<c02296f0>] (ubi_leb_read) from [<c014b674>] (ubifs_leb_read+0x30/0x90)
[    1.771827]  r7:00000000 r6:00000000 r5:00001000 r4:00000000
[    1.777564] [<c014b644>] (ubifs_leb_read) from [<c014d2a8>] (ubifs_read_node+0x144/0x2e4)
[    1.785777]  r7:00001000 r6:00000000 r5:c7a38000 r4:00000000
[    1.791516] [<c014d164>] (ubifs_read_node) from [<c0149b10>] (ubifs_read_sb_node+0x5c/0x78)
[    1.799904]  r10:00000000 r9:c7a38008 r8:c7a5aba0 r7:c7a41600 r6:c0481fac r5:c7a33000
[    1.807826]  r4:c7a38000
[    1.810388] [<c0149ab4>] (ubifs_read_sb_node) from [<c014a7b8>] (ubifs_read_superblock+0xc44/0x15bc)
[    1.819560]  r5:c7a38000 r4:00000028
[    1.823183] [<c0149b74>] (ubifs_read_superblock) from [<c0148ba4>] (ubifs_mount+0x90c/0x1660)
[    1.831744]  r10:00000000 r9:c7a38008 r8:c7a5aba0 r7:c7a41600 r6:c0481fac r5:c7a38000
[    1.839667]  r4:00000028
[    1.842235] [<c0148298>] (ubifs_mount) from [<c0093500>] (mount_fs+0x1c/0xd0)
[    1.849403]  r10:c0445190 r9:c7a5ac00 r8:c0457b54 r7:00000000 r6:c0457b54 r5:c7a5abe0
[    1.857325]  r4:c780e420
[    1.859896] [<c00934e4>] (mount_fs) from [<c00a9a10>] (vfs_kern_mount+0x50/0xdc)
[    1.867325]  r6:00008000 r5:c7a5abe0 r4:c780e420
[    1.872008] [<c00a99c0>] (vfs_kern_mount) from [<c00ac630>] (do_mount+0x81c/0x97c)
[    1.879610]  r8:c7a5abe0 r7:00000020 r6:00008000 r5:00000000 r4:c0457b54 r3:00000000
[    1.887453] [<c00abe14>] (do_mount) from [<c00aca50>] (SyS_mount+0x8c/0xc0)
[    1.894446]  r10:00000045 r9:c042ea08 r8:c0480ba8 r7:00008000 r6:c03ab970 r5:c7852000
[    1.902365]  r4:00000000
[    1.904928] [<c00ac9c4>] (SyS_mount) from [<c04131a4>] (mount_root+0x30/0xbc)
[    1.912095]  r7:c04859f8 r6:c042ea00 r5:c042ea28 r4:c045bd88
[    1.917834] [<c0413174>] (mount_root) from [<c041336c>] (prepare_namespace+0x13c/0x194)
[    1.925874]  r4:c045bd88
[    1.928435] [<c0413230>] (prepare_namespace) from [<c0412ca4>] (kernel_init_freeable+0x17c/0x1c8)
[    1.937347]  r5:00000007 r4:c0433f28
[    1.940971] [<c0412b28>] (kernel_init_freeable) from [<c000c4e4>] (kernel_init+0x10/0x10c)
[    1.949273]  r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:c000c4d4
[    1.957193]  r4:00000000
[    1.959756] [<c000c4d4>] (kernel_init) from [<c00086d0>] (ret_from_fork+0x14/0x24)
[    1.967358]  r4:00000000 r3:c7832000
[    1.970971] handlers:
[    1.973263] [<c01e9d04>] serial8250_interrupt
[    1.977647] Disabling IRQ #33
[    2.549924] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[    2.557626] Freeing unused kernel memory: 136K (c0412000 - c0434000)
[    3.531674] init: Console is alive
[    5.544349] init: - preinit -
Failed to find gpio-button-hotplug. Maybe it is a built in module ?
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
[    8.989392] UBIFS: default file-system created
[    9.003875] UBIFS: background thread "ubifs_bgt0_1" started, PID 783
[    9.016266] UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[    9.022744] UBIFS: LEB size: 15872 bytes (15 KiB), min./max. I/O unit sizes: 512 bytes/512 bytes
[    9.031595] UBIFS: FS size: 27188736 bytes (25 MiB, 1713 LEBs), journal size 1364992 bytes (1 MiB, 86 LEBs)
[    9.041395] UBIFS: reserved for root: 1284190 bytes (1254 KiB)
[    9.047281] UBIFS: media format: w4/r0 (latest is w4/r0), UUID 8BEDA248-2B48-43EF-84CA-5CB49E07A4CA, small LPT model
[    9.059704] mount_root: switching to jffs2 overlay
[    9.075284] procd: - early -
[   13.821115] procd: - ubus -
[   14.834523] procd: - init -
Please press Enter to activate this console.
[   15.321070] NET: Registered protocol family 10
[   15.329216] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   15.340361] Loading modules backported from Linux version master-2014-11-04-0-gf3660a2
[   15.348349] Backport generated by backports.git backports-20141023-2-g4ff890b
[   15.357359] ip_tables: (C) 2000-2006 Netfilter Core Team
[   15.369174] nf_conntrack version 0.5.0 (1959 buckets, 7836 max)
[   15.395993] xt_time: kernel timezone is -0000
[   15.419302] cfg80211: Calling CRDA to update world regulatory domain
[   15.447498] cfg80211: World regulatory domain updated:
[   15.452673] cfg80211:  DFS Master region: unset
[   15.457078] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[   15.466894] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   15.474971] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   15.483016] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[   15.491073] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[   15.499133] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
[   15.508673] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[   15.516816] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[   15.524873] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[   15.542318] PPP generic driver version 2.4.2
[   15.548342] NET: Registered protocol family 24



BusyBox v1.22.1 (2021-02-01 11:02:33 PST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 CHAOS CALMER (Bleeding Edge, r44647)
 -----------------------------------------------------
  * 1 1/2 oz Gin            Shake with a glassful
  * 1/4 oz Triple Sec       of broken ice and pour
  * 3/4 oz Lime Juice       unstrained into a goblet.
  * 1 1/2 oz Orange Juice
  * 1 tsp. Grenadine Syrup
 -----------------------------------------------------
root@OpenWrt:/#

8086k
Re: Debian on Action Tech SG200 and MI424WR-rev-I
April 28, 2021 04:45PM
> It may be possible to obtain source
> code for this device by following instructions at
> https://www.arubanetworks.com/open_source/.
> According to
> https://www.arubanetworks.com/assets/support/EOS_AP-13x.pdf

Yeah, bkallus has mentioned that before. Costs $10 to receive the GPL source. I wonder why HP cannot provide a website location for people to download the GPL source for free (they did for HP Thin Client boxes). Somebody could pay $10 and host the source in GitHub (I don't think they can restrict people from doing that).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Action Tech SG200 and MI424WR-rev-I
April 30, 2021 06:40AM
bodhi,

I have analysed the structure of the ethernet on my box. I think the MAC device is connected to the switch with GMII or RGMII. The gigabit port is connected to the internal PHY and this internal PHY is connected to the other GMII port of MAC.

There is one thing I can't understant, Why are there two ethernet devices in devicetree? Does it mean two MACs or two MII ports? Or neither.

Does the internal switch need to be configured in dts? I think the mii ports can be connected to many devices by software. Maybe the internal switch has a mii device ID like PHY too.

8086k
Re: Debian on Action Tech SG200 and MI424WR-rev-I
April 30, 2021 07:20AM
8086k,


-------------------------------------------------------
> bodhi,
>
> I have analysed the structure of the ethernet on
> my box. I think the MAC device is connected to the
> switch with GMII or RGMII. The gigabit port is
> connected to the internal PHY and this internal
> PHY is connected to the other GMII port of MAC.
>
> There is one thing I can't understant, Why are
> there two ethernet devices in devicetree? Does it
> mean two MACs or two MII ports? Or neither.

One is for the switch, one is for the Alaska chip.

>
> Does the internal switch need to be configured in
> dts? I think the mii ports can be connected to
> many devices by software. Maybe the internal
> switch has a mii device ID like PHY too.
>

It does need to be in the DTS, the internal switch chip should behave the same as the external switch chip (I could be wrong, because I have not seen the datasheet for 6560).

But that’s how it should work for all Marvell switch chips using DSA.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Action Tech SG200 and MI424WR-rev-I
April 30, 2021 06:59PM
bodhi,

Do you have mi424wr rev i? I want to know the interrupts table of its official firmware. Because I notice f660's official firmware uses 7 and 15 as interrupts of two ETH devices. The ETH device in official firmware using interrupt 7 is the working one(connected to the internal switch). It's different from custom device tree for 88f6560.

8086k



Edited 1 time(s). Last edit at 04/30/2021 07:05PM by 8086k.
Re: Debian on Action Tech SG200 and MI424WR-rev-I
April 30, 2021 08:45PM
8086k,

You've read my mind:) I was about to do boot back to stock on the MI424WR to find out if I can get the list of interrupts. OpenRG Linux shell might have that info.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Action Tech SG200 and MI424WR-rev-I
April 30, 2021 10:06PM
MI424WR-rev-I stock OS.

Wireless Broadband Router> system shell
Temporary setting log_level off


BusyBox v1.01 (2005.09.07-07:38+0000) Built-in shell (lash)
Enter 'help' for a list of built-in commands.

/ # cat /proc/interrupts 
           CPU0
  1:      10427   kw_tick
  7:         64   mv_eth
 11:          0   mv_eth
 23:         77   ehci_hcd:usb1
 25:      56264   wifi0
 33:        993   serial
 50:          0   mv64xxx_i2c
 78:          0   error_pex0
109:          0   Reset button
123:          0   WPS button
Err:          0

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Action Tech SG200 and MI424WR-rev-I
May 01, 2021 09:23AM
bodhi,

Thanks for offering that. I have figured out some of the configuration of F660's ethernet. But it is still not working. I think the only problem is the port config of switch. I want to read the uboot source code of mi424wr rev i. But the code package is in jpkg format. I don't know how to extract it.

And, why are there two cpu port defined in the old mvsw6171 driver? It just have one exactly connected to cpu.

8086k



Edited 1 time(s). Last edit at 05/01/2021 09:35AM by 8086k.
bkallus (not logged in)
Re: Debian on Action Tech SG200 and MI424WR-rev-I
May 01, 2021 10:08AM
You're in luck; the MI424WR Rev. I U-Boot source code is available here:
https://opensource.actiontec.com/sourcecode/mi424wr/rev_i/actiontec_opensrc_mi424wr-rev-i_fw-40-19-20.tar.gz
Extract the tarball, then navigate to rg/vendor/marvell/feroceon/u-boot.
Re: Debian on Action Tech SG200 and MI424WR-rev-I
May 01, 2021 08:01PM
bkallus,

Thank you for that.

8086k
Re: Debian on Action Tech SG200 and MI424WR-rev-I
May 01, 2021 10:52PM
bodhi,


Why are there two cpu port defined in the old mvsw6171 driver? It just have one exactly connected to cpu.



Edited 1 time(s). Last edit at 05/01/2021 10:52PM by 8086k.
Re: Debian on Action Tech SG200 and MI424WR-rev-I
May 01, 2021 11:22PM
8086k,

> Why are there two cpu port defined in the old
> mvsw6171 driver? It just have one exactly
> connected to cpu.

The driver just covers all possible cases. Some switches have 2. But the 6171 uses only 1 CPU port, IIRC.

Quote

Because I notice f660's official firmware uses 7 and 15 as interrupts of two ETH devices. The ETH device in official firmware using interrupt 7 is the working one(connected to the internal switch). It's different from custom device tree for 88f6560.

That's interesting. So the swtich uses interrupt 7.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Action Tech SG200 and MI424WR-rev-I
May 02, 2021 01:41AM
bodhi,

ZTE had put many things into the boot log
  o Loading Switch QuarterDeck driver
    o Internal GE PHY Connected to Switch Port 0 Detected
    o Setting Switch CPU port (port #4) for 1000 Full with FC
    o Disable disconnected switch port (port #5) and force link down
    o Disable disconnected switch port (port #6) and force link down

If I want to set port 4 as cpu port, how should I set the two ports in the old dts?

  o Port 0 is connected to Linux netdevice
      o Using UBoot netconfig string
        net_config_str: 0
  o Working in External Switch mode
        giga p=0: mtu=1500, mac=c0b69f72
    o mii0, ifindex = 1, GbE port = 0

  o Warning: GbE port 1 is not connected to PHY/RGMII/Switch, skipping initialization


  o Port 2 is connected to Linux netdevice
        pon p=2: mtu=1500, mac=c0b69f72
    o mii1, ifindex = 2, GbE port = 2

Quote
bodhi
That's interesting. So the swtich uses interrupt 7.
I think it is becase of the GPON/EPON support. Maybe F660 is more similar to google GFRG110.

Good news, after changing the dts, I can ping F660 successfully from my pc. But F660 can't ping my pc, I think it's because my pc is using static IP address.

8086k



Edited 4 time(s). Last edit at 05/02/2021 06:58AM by 8086k.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: