Welcome! Log In Create A New Profile

Advanced

GTI Mirabox and Netgear RN120 (Armada 370) Installation & Kernel Upgrade (Linux-5.19.2)

Posted by bodhi 
Re: GTI Mirabox and Netgear RN120 (Armada 370) Installation & Kernel Upgrade
December 06, 2020 12:05PM
iperf only

[  4] local 192.168.7.28 port 5001 connected with 192.168.7.48 port 54852
[ ID] Interval       Transfer     Bandwidth
[  4]  0.0-10.0 sec  1.10 GBytes   941 Mbits/sec
[  4] local 192.168.7.28 port 5001 connected with 192.168.7.48 port 54854
[  4]  0.0-10.0 sec  1.04 GBytes   896 Mbits/sec
[  4] local 192.168.7.28 port 5001 connected with 192.168.7.48 port 54856
[  4]  0.0-10.0 sec  1.06 GBytes   909 Mbits/sec
[  4] local 192.168.7.28 port 5001 connected with 192.168.7.48 port 54858
[  4]  0.0-10.0 sec  1.02 GBytes   877 Mbits/sec
[  4] local 192.168.7.28 port 5001 connected with 192.168.7.48 port 54860
[  4]  0.0-10.0 sec  1.03 GBytes   888 Mbits/sec

Linux Mirabox 5.9.3-mvebu-370xp-tld-3
--------------------------------------------------------------------------------------------------
[  4] local 192.168.7.28 port 5001 connected with 192.168.7.48 port 35082
[  4]  0.0-10.0 sec   717 MBytes   601 Mbits/sec
[  4] local 192.168.7.28 port 5001 connected with 192.168.7.48 port 35084
[  4]  0.0-10.0 sec   734 MBytes   614 Mbits/sec
[  4] local 192.168.7.28 port 5001 connected with 192.168.7.48 port 35086
[  4]  0.0-10.0 sec   728 MBytes   610 Mbits/sec
[  4] local 192.168.7.28 port 5001 connected with 192.168.7.48 port 35088
[  4]  0.0-10.0 sec   721 MBytes   604 Mbits/sec
[  4] local 192.168.7.28 port 5001 connected with 192.168.7.48 port 35090
[  4]  0.0-10.0 sec   725 MBytes   608 Mbits/sec

Linux Mirabox 5.9.3-mvebu-370xp-tld-4
--------------------------------------------------------------------------------------------------

Linux Mirabox 5.9.3-mvebu-370xp-tld-3 is still the best
Re: GTI Mirabox and Netgear RN120 (Armada 370) Installation & Kernel Upgrade
December 06, 2020 03:34PM
Thanks David!

Looks like that IO coherency patch does not work (by itself).

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: GTI Mirabox and Netgear RN120 (Armada 370) Installation & Kernel Upgrade
December 06, 2020 05:43PM
So apparently, either

- The target has enough juice (the M300 is 2Ghz, 2GB RAM), this kernel has no problem maxing out the network speed.

- Something in the network configuration with the Mirabox that causes the slow down if it is the recipient.


root@Mirabox:~# uname -a
Linux Mirabox 5.9.3-mvebu-370xp-tld-3 #3.0 PREEMPT Sun Nov 29 14:33:38 PST 2020 armv7l GNU/Linux
root@Mirabox:~# dmesg | grep flow
[  188.423040] mvneta d0070000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off

root@M300:~# uname -a
Linux M300 5.9.12-kirkwood-tld-1 #1.0 PREEMPT Sat Dec 5 14:05:39 PST 2020 armv5tel GNU/Linux
root@M300:~# dmesg | grep flow
[   34.171088] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled


root@Mirabox:~# iperf -n4000M -i 3 -c 192.168.0.232
------------------------------------------------------------
Client connecting to 192.168.0.232, TCP port 5001
TCP window size: 43.8 KByte (default)
------------------------------------------------------------
[  3] local 192.168.0.252 port 53616 connected with 192.168.0.232 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0- 3.0 sec   337 MBytes   942 Mbits/sec
[  3]  3.0- 6.0 sec   338 MBytes   944 Mbits/sec
[  3]  6.0- 9.0 sec   337 MBytes   941 Mbits/sec
[  3]  9.0-12.0 sec   336 MBytes   940 Mbits/sec
[  3] 12.0-15.0 sec   338 MBytes   945 Mbits/sec
[  3] 15.0-18.0 sec   337 MBytes   942 Mbits/sec
[  3] 18.0-21.0 sec   336 MBytes   941 Mbits/sec
[  3] 21.0-24.0 sec   336 MBytes   940 Mbits/sec
[  3] 24.0-27.0 sec   337 MBytes   941 Mbits/sec
[  3] 27.0-30.0 sec   337 MBytes   943 Mbits/sec
[  3] 30.0-33.0 sec   336 MBytes   939 Mbits/sec
[  3]  0.0-35.6 sec  3.91 GBytes   942 Mbits/sec

root@M300:~# iperf -n4000M -i 3 -c 192.168.0.252
------------------------------------------------------------
Client connecting to 192.168.0.252, TCP port 5001
TCP window size: 43.8 KByte (default)
------------------------------------------------------------
[  3] local 192.168.0.232 port 58530 connected with 192.168.0.252 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0- 3.0 sec   231 MBytes   646 Mbits/sec
[  3]  3.0- 6.0 sec   229 MBytes   641 Mbits/sec
[  3]  6.0- 9.0 sec   231 MBytes   645 Mbits/sec
[  3]  9.0-12.0 sec   230 MBytes   643 Mbits/sec
[  3] 12.0-15.0 sec   230 MBytes   643 Mbits/sec
[  3] 15.0-18.0 sec   229 MBytes   641 Mbits/sec
[  3] 18.0-21.0 sec   231 MBytes   645 Mbits/sec
[  3] 21.0-24.0 sec   230 MBytes   643 Mbits/sec
[  3] 24.0-27.0 sec   230 MBytes   642 Mbits/sec
[  3]  0.0-29.1 sec  2.18 GBytes   643 Mbits/sec

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: GTI Mirabox and Netgear RN120 (Armada 370) Installation & Kernel Upgrade
December 09, 2020 05:46AM
David,

If you could, test the Mirabox with the M300 (see new Kirkwood kernel: https://forum.doozan.com/read.php?2,12096,112319#msg-112319).

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: GTI Mirabox and Netgear RN120 (Armada 370) Installation & Kernel Upgrade
December 09, 2020 10:57AM
M300 has better performance with the new kernel. Better than Mirabox.

root@OptiPlex790:~# iperf -s
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size:  128 KByte (default)
------------------------------------------------------------
[  4] local 192.168.7.28 port 5001 connected with 192.168.7.48 port 50150
[ ID] Interval       Transfer     Bandwidth
[  4]  0.0-10.0 sec  1002 MBytes   840 Mbits/sec
[  4] local 192.168.7.28 port 5001 connected with 192.168.7.48 port 50152
[  4]  0.0-10.0 sec  1.05 GBytes   902 Mbits/sec
[  4] local 192.168.7.28 port 5001 connected with 192.168.7.48 port 50154
[  4]  0.0-10.0 sec  1.05 GBytes   900 Mbits/sec
[  4] local 192.168.7.28 port 5001 connected with 192.168.7.48 port 50156
[  4]  0.0-10.0 sec  1.04 GBytes   892 Mbits/sec

Linux Mirabox 5.9.3-mvebu-370xp-tld-3

--------------------------------------------------------------------------------------------------

[  4] local 192.168.7.28 port 5001 connected with 192.168.7.109 port 40602
[  4]  0.0-10.0 sec   980 MBytes   821 Mbits/sec
[  4] local 192.168.7.28 port 5001 connected with 192.168.7.109 port 40604
[  4]  0.0-10.0 sec   980 MBytes   822 Mbits/sec
[  4] local 192.168.7.28 port 5001 connected with 192.168.7.109 port 40606
[  4]  0.0-10.0 sec   984 MBytes   824 Mbits/sec

Linux m301 5.2.9-kirkwood-tld-2 #1 PREEMPT Wed Aug 28 03:55:21 PDT 2019 armv5tel GNU/Linux

--------------------------------------------------------------------------------------------------

[  4] local 192.168.7.28 port 5001 connected with 192.168.7.109 port 48438
[  4]  0.0-10.0 sec  1.10 GBytes   940 Mbits/sec
[  4] local 192.168.7.28 port 5001 connected with 192.168.7.109 port 48440
[  4]  0.0-10.0 sec  1.10 GBytes   940 Mbits/sec
[  4] local 192.168.7.28 port 5001 connected with 192.168.7.109 port 48442
[  4]  0.0-10.0 sec  1.10 GBytes   940 Mbits/sec

Linux m301 5.9.12-kirkwood-tld-1 #1.0 PREEMPT Sat Dec 5 14:05:39 PST 2020 armv5tel GNU/Linux


--------------------------------------------------------------------------------------------------


940Mbit/sec is about the maximum I can get from any machine on this spot to my i3 server (192.168.7.28).
Re: GTI Mirabox and Netgear RN120 (Armada 370) Installation & Kernel Upgrade
December 09, 2020 04:02PM
Cool!

That's what I am seeing above:

https://forum.doozan.com/read.php?2,92514,112279#msg-112279

Mirabox to M300 : ~940 Mbs

And with the new Kirkwood kernel 5.9.12-kirkwood-tld-1, most of the boxes ( that I have tested so far: Pogo E02, GH Home, GF Net) will be able to achieve the ~940 Mbs.

======

The configuration I am using for the test:

Mirabox -- DLink DAP-1522 Wireless bridge -- M300

This bridge has 4 Gbit ports. Based on the iperf tests number, it does not have flow control enabled in itself (which is usually an unknown variable unless you run OpenWrt or other open source switch/router).

======

The Armada 370 SoC has some HW disadvantage comparing to the Armada 38x or XP. So I'm not sure if we could get it to perform as well if it is the receiver of network traffics.

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



Edited 1 time(s). Last edit at 12/10/2020 05:28AM by bodhi.
Re: GTI Mirabox and Netgear RN120 (Armada 370) Installation & Kernel Upgrade
January 27, 2021 02:16PM
Hi bodhi again,
Could we get 5.10.7 kernel if possible?If it will not increase network problem please don't bother.
Regards.
Re: GTI Mirabox and Netgear RN120 (Armada 370) Installation & Kernel Upgrade
January 27, 2021 06:13PM
whitepawn,

> Could we get 5.10.7 kernel if possible?If it will
> not increase network problem please don't bother.

Sure I will build that in the next few days (I meant to but was a little bit busy)

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: GTI Mirabox and Netgear RN120 (Armada 370) Installation & Kernel Upgrade
January 30, 2021 09:23PM
Kernel linux-5.10.7-mvebu-370xp-tld-1 package has been uploaded. Please see 1st for download link.

NOTE: this is the special kernel version for GTI Mirabox and Netgear RN102 boxes only.

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



Edited 1 time(s). Last edit at 01/30/2021 09:24PM by bodhi.
Hi Bodhi,

After a long pause, I powered up my Netgear RN-102 NAS again today and upgraded the kernel to version 5.10.7 dated 30 Jan 2021. No issues.

For the bulk of MVEBU boxes, your current version is 5.18.6. Do you intend to keep Mirabox and RN-102 current in the future?

The stable Debian version is now bullseye rather than buster. Is it safe to follow the standard Debian release upgrade procedure or should I start over from the your latest MVEBU root file system?

Regards,
Trond Melen
Re: GTI Mirabox and Netgear RN120 (Armada 370) Installation & Kernel Upgrade (Linux-5.10.7)
August 05, 2022 04:09PM
Hi Trond,

> For the bulk of MVEBU boxes, your current version
> is 5.18.6. Do you intend to keep Mirabox and
> RN-102 current in the future?

Yes, I will. I just forgot about it because nobody mentioned this.

> The stable Debian version is now bullseye rather
> than buster. Is it safe to follow the standard
> Debian
> release upgrade procedure
or should I start
> over from the your latest MVEBU root file system?

Sure, upgrade is OK from buster to bullseye. The only gotcha is that Debian security site changed. Here is my MVEBU boxes apt sources

# cat /etc/apt/sources.list
deb http://ftp.us.debian.org/debian bullseye main contrib non-free
deb-src http://ftp.us.debian.org/debian bullseye main contrib non-free

deb https://security.debian.org/debian-security bullseye-security main contrib non-free

deb  http://http.debian.net/debian bullseye-updates main contrib non-free
deb-src http://http.debian.net/debian bullseye-updates main contrib non-free

And please remember to backup rootfs. It's a massive change.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: GTI Mirabox and Netgear RN120 (Armada 370) Installation & Kernel Upgrade (Linux-5.19.2)
August 22, 2022 06:00PM
Kernel linux-5.19.2-mvebu-370xp-tld-1 package has been uploaded. Please see 1st post for download link.

NOTE: this is the special kernel version for GTI Mirabox and Netgear RN102 boxes only

-bodhi
===========================
Forum Wiki
bodhi's corner
@bodhi
Long time no see, how are you?
Nice to see some upgrade. I am using my RN120 as daily driver with your older kernel and openmediavault. Does this new kernel includes better network performance?

@tme
Did you made any iperf tests?
Re: GTI Mirabox and Netgear RN120 (Armada 370) Installation & Kernel Upgrade (Linux-5.19.2)
October 12, 2022 11:16PM
whitepawn,

I did not run any network performance test for this new kernel.

-bodhi
===========================
Forum Wiki
bodhi's corner
tme
Re: GTI Mirabox and Netgear RN120 (Armada 370) Installation & Kernel Upgrade (Linux-5.19.2)
November 26, 2022 02:44PM
Hi bodhi,

> Kernel linux-5.19.2-mvebu-370xp-tld-1 package has been uploaded. Please see 1st post for download link.

The file 'Linux-5.8.5-mvebu-370xp-tld-1-bodhi.tar.bz2' (see under Updated 06 Sept 2020) required for first install has been deleted from Dropbox. How do I proceed without it (i.e. without running dpkg)?

Regards,
Trond Melen
Re: GTI Mirabox and Netgear RN120 (Armada 370) Installation & Kernel Upgrade (Linux-5.19.2)
November 26, 2022 03:57PM
Hi Trond,

Sorry, looks like I've removed it by mistake while pugrging old files on my Dropbox.

Please try using linux-5.19.2-mvebu-370xp-tld-1-bodhi.tar.bz2 (replace 5.8.5 with 5.19.2 in the instruction). It should work the same way.

-bodhi
===========================
Forum Wiki
bodhi's corner
tme
Re: GTI Mirabox and Netgear RN120 (Armada 370) Installation & Kernel Upgrade (Linux-5.19.2)
November 28, 2022 01:01AM
Hi bodhi,

Following you advice, I successfully did a first install of Debian using 'linux-5.19.2-mvebu-370xp-tld-1-bodhi.tar.bz2'. The log is attached for reference.

U-boot detects some bad blocks, but they don't seem to interfere with the boot. Should I do something about it?
NAND:  (ID 0xf1ad)      128 MiB
MMC:   MRVL_MMC: 0
Bad block table found at page 65472, version 0x01
Bad block table found at page 65408, version 0x01
nand_read_bbt: Bad block at 0x000000f20000
nand_read_bbt: Bad block at 0x000002da0000

Regards,
Trond Melen
Attachments:
open | download - 2022-11-27-linux-5.19.2-mvebu-370xp.lst (38.5 KB)
Re: GTI Mirabox and Netgear RN120 (Armada 370) Installation & Kernel Upgrade (Linux-5.19.2)
November 28, 2022 02:24PM
Hi Trond,

> Following you advice, I successfully did a first
> install of Debian using
> 'linux-5.19.2-mvebu-370xp-tld-1-bodhi.tar.bz2'.
> The log is attached for reference.

Thanks! I'll update the instruction to reflect that.


> Bad block table found at page 65472, version 0x01
> Bad block table found at page 65408, version 0x01
> nand_read_bbt: Bad block at 0x000000f20000
> nand_read_bbt: Bad block at 0x000002da0000

These bad blocks are far from the u-boot location, so it is OK. We're not using stock FW or the flash for anything other than booting.

-bodhi
===========================
Forum Wiki
bodhi's corner
tme
Re: GTI Mirabox and Netgear RN120 (Armada 370) Installation & Kernel Upgrade (Linux-5.19.2)
December 02, 2022 01:28PM
Hi bodhi,

I have sucessfully booted the RN-102 from an SSD connected to the eSATA port on the back of the box. The advantages compared to booting from a USB stick or an SSD connected to the USB 2.0 port at the front panel are:
  • faster booting and higher performance, espesially when swapping memory blocks to disk
  • the front door may be opened while the box is running to mount or hot swap raid disks in the 2 bays
  • the USB port at the front panel may be used for a USB-to-ethernet dongle (or something else)
  • the box looks better with a clean front

The eSATA port does not provide 5V power, so a cable that splits the SSDs SATA connector into an eSATA connector and a USB connector for power (see attached picture) is needed. 12V is not neccessary for an SSD.

While the RN-102 was still booted from an SSD conneted to the USB port at the front, I did (as 'root'):
fw_setenv bootcmd 'ide reset; run SATA_bootcmd; reset'
fw_setenv load_uimage 'ext2load ide 0:1 0x2000000 /boot/uImage'
fw_setenv load_uinitrd 'ext2load ide 0:1 0x3000000 /boot/uInitrd'
fw_setenv SATA_bootcmd 'run SATA_set_bootargs; run SATA_boot'
fw_setenv SATA_boot 'run load_uimage; if run load_uinitrd; then bootm 0x2000000 0x3000000; else bootm 0x2000000; fi'
fw_setenv SATA_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial'
fw_printenv
and verified the output (attached for reference). Shut down and the box, disconnected the power, attached the same SSD to the eSATA port on the back and powered up.

The time it takes U-Boot to load 'uImage' and 'uInitrd' is down from 50 s to 5 s when booting the RN-102 from the eSATA port. Not bad.

Thank you very much for keeping this forum alive, updated and interesting!

Regards,
Trond Melen
Attachments:
open | download - rn-102-switch-to-sata-boot.lst (3.2 KB)
open | download - eSATA-With-USB-Power-to-22P-SATA-3-0-Adapter-Cable-connects-with-External-2-5.jpg (55.7 KB)
Re: GTI Mirabox and Netgear RN120 (Armada 370) Installation & Kernel Upgrade (Linux-5.19.2)
December 02, 2022 05:48PM
Hi Trond,

Excellently done!

Thanks for the write up. I'll add eSATA booting to the installation post.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: GTI Mirabox and Netgear RN120 (Armada 370) Installation & Kernel Upgrade (Linux-5.19.2)
December 03, 2022 04:30PM
Sure!

Also re-read posts by dtd.2512 from here:

https://forum.doozan.com/read.php?2,99079,99354#msg-99354

-bodhi
===========================
Forum Wiki
bodhi's corner
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: