Welcome! Log In Create A New Profile

Advanced

Debian on Action Tech SG200 and MI424WR-rev-I

Posted by veriqster 
Re: Debian on Action Tech SG200 and MI424WR-rev-I
February 13, 2021 08:39PM
Ray,

> Does it also automagically set the bootcmd?

No it does not. Every other envs are OK. Except bootdelay.

I've finished the mtds and envs configuration setting in Debian, will post that set up shortly.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on Action Tech SG200 and MI424WR-rev-I
February 13, 2021 08:57PM
By the way,

The GPL source we have (link in this thread)

https://forum.doozan.com/read.php?2,78499,78654#msg-78654
https://opensource.actiontec.com/sg200.html)

can only build the SG200 u-boot. The build scripts were not set up properly to build the MI4242WR-I box. Even that, the result SG200 u-boot binary is not usable.

That with the fact that the stock u-boot name is uboot-revI-128MbFlash.bin, I think the GPL is not up-to-date for MI4242WR.

I could not find how any of the build script can be used to build a binary named uboot-revI-128MbFlash.bin.

So there must be a build script for MI4242WR-I , but it is not in the GPL source.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on Action Tech SG200 and MI424WR-rev-I
February 13, 2021 10:19PM
bodhi,

https://opensource.actiontec.com/mi424wri.html

By the way, Verizon/Frontier used different firmware versions. Supposedly, Frontier had two Rev I units, one used 40.22.3.3 and the other used 52.0.7. The firmware were not interchangeable between the two units which suggests the use of slightly different hardware.

-budhi



Edited 10 time(s). Last edit at 02/13/2021 11:08PM by budhi.
Re: Debian on Action Tech SG200 and MI424WR-rev-I
February 13, 2021 10:53PM
budhi,

https://opensource.actiontec.com/mi424wri.html

Cool! Thanks for the info. That makes more sense :) hopefully I can find more info about the Ethernet Switch in this GPL. Everything else is easy, but the GPL switch info is a musthave to figure out how to write DTS correctly.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on Action Tech SG200 and MI424WR-rev-I
February 14, 2021 01:40PM
Wow; I didn't know they had two revisions of the Rev. I! I bet that's why they skipped straight from I to K (the gpl source for the google fiber network box refers to it as mi424wr rev k)

This also explains why a month ago, when I built the all firmwares from the actiontec gpl site you linked, I couldn't get any 5x firmware to boot, but the 4x firmwares all worked as expected. I guess that reveals which model I have.
Re: Debian on Action Tech SG200 and MI424WR-rev-I
February 14, 2021 02:00PM
Also, the U-Boot source code and config is distributed only with the 4x firmwares. I can't UART boot yet, but once I have that set up, I'll see if I can get the U-Boot source code to build, and if their config is portable to the a modern U-Boot.



Edited 1 time(s). Last edit at 02/14/2021 03:47PM by bkallus.
Re: Debian on Action Tech SG200 and MI424WR-rev-I
February 14, 2021 04:06PM
bkallus,

> and if their config is portable to the a modern
> U-Boot.

No, it is not. I've looked at the 5x FW briefly, it is the same as other Marvell u-boots. The information are valuable, though.

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 1 time(s). Last edit at 02/14/2021 04:25PM by bodhi.
Re: Debian on Action Tech SG200 and MI424WR-rev-I
February 14, 2021 05:03PM
Here to recap our current envs settings to boot Debian on USB. And also set up mtd partitions to allow u-boot envs read/write acess in Debian.

load_uimage=ext2load usb 0:1 0x800000 /boot/uImage
load_uinitrd=ext2load usb 0:1 0x2100000 /boot/uInitrd
usb_boot=echo Booting Debian ...; run load_uimage; run load_uinitrd; bootm 0x800000 0x2100000
usb_bootcmd=run usb_set_bootargs; run usb_boot
bootcmd_debian=usb start; run usb_bootcmd; usb stop; reset
bootcmd_stock=echo Booting Stock ...; ru jfs; ru jrun
mtdparts=mtdparts=orion_nand:2M(U-Boot),32M(JFFS2),80M(Firmware)
usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 ${mtdparts} earlyprintk=serial
bootcmd=run bootcmd_debian; run bootcmd_stock

Verify mtdparts in Debian:

# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00200000 00020000 "U-Boot"
mtd1: 02000000 00020000 "JFFS2"
mtd2: 05000000 00020000 "Firmware"

Set up envs area in Debian:

# cat /etc/fw_env.config
# MTD device name	Device offset	Env. size	Flash sector size	Number of sectors
/dev/mtd0		0xc0000		0x1000		0x20000

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 2 time(s). Last edit at 02/14/2021 05:08PM by bodhi.
Re: Debian on Action Tech SG200 and MI424WR-rev-I
March 09, 2021 06:08AM
bodhi,

I've been looking as time permits, and wondering about a couple of things related to the "mvneta" driver issue. Bear with me, I'm not the embedded developer that you are.

I have found postings from years ago that suggest an issue with changes to the driver build. Those changes seemed centered around enabling or disabling buffer management in the driver. Apparently, all was good until somebody enabled it. Then the complaints rolled in, then it was backed out. That's one thing.

When I was using my MI424RW-Rev-I router with Verizon FiOS in front of my DD-WRT router, I was surprised that my DD-WRT upstream connection to the MI424RW was auto-negotiated to half-duplex. I could get a great speed-test result in that mode, but it was horrible when I forced DD-WRT to uplink using full-duplex. Unless I'm wrong, that suggests to me that the OpenRG-based firmware was operating with that driver set with buffer management disabled.

From a common-sense and performance perspective, disabling buffers and running half-duplex seems wrong, but it did work surprisingly well. And, with an older version of that driver than what's likely available now. What I don't know is if that can be set in the DTB. Thoughts?

Dave
Re: Debian on Action Tech SG200 and MI424WR-rev-I
March 09, 2021 08:19PM
Dave,

That error about buffer management was real. But it was a long time ago. Armada 370 does not have hardware buffer in the NIC, so there was a time when it was correct to remove it. In the latest kernel, it is not an issue anymore. Armada 370, 380, XP Socs all use the same BM code, and the lack of HW buffer for the a370 is taken into account. (Side notes: this might be a significant factor in lesser network performance comparing to the a380 or aXP).

Also, what you said above "MI424RW was auto-negotiated to half-duplex" should be relevant only for the SG200 model, because it has only 2 Ethernet ports. The MI424WR Rev I has a 4-port switch, so a different driver is used. The new Ethernet Switch driver is Marvell DSA (the old driver is obsolete and no longer usable). This was the reason I modified Claudio DTS to have the nodes for DSA.

I have not revisited this box since my last post above. So consider it still a work-in-progress regarding Ethernet. Wifi is working fine, though. So that's made it less urgent for me, since we can ssh into the box with Wifi connection.

Also, the IRQs workd differently in the the old kernel 2.6.x, so now with the new IRQ domain in the latest kernel, the lack of binding in the DTS seems to cause IRQs conflicts.

To summarize where my DTS version is:

- Need to implement nodes for pin controller. I suspect this is somehow relevant to IRQs assignments.
- Need to mach up the new DSA nodes in DTS with old switch driver settings in stock u-boot/kernel. But the pin controller must be done first before we can even debug this DSA switch.

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 1 time(s). Last edit at 03/10/2021 04:26PM by bodhi.
Re: Debian on Action Tech SG200 and MI424WR-rev-I
March 10, 2021 04:12AM
bohdi,

Thanks for taking the time to write up the details, I truly appreciate it.

Dave
Re: Debian on Action Tech SG200 and MI424WR-rev-I
April 01, 2021 06:30PM
All,

There was a request from one of our forum members to have the Aruba DTS. So that will be next on my todo task for this on this Avanta SoC.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on Action Tech SG200 and MI424WR-rev-I
April 03, 2021 09:32PM
Here is the initial version for the Aruba Networks 134/135 box.

-bodhi
===========================
Forum Wiki
bodhi's corner
Attachments:
open | download - avanta-aruba-ap.dts (2.6 KB)
open | download - avanta-aruba-ap.dtb (7.4 KB)
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: