Re: GTI Mirabox and Netgear RN120/RN104 (Armada 370) Installation & Kernel Upgrade (Linux-6.5.7) January 23, 2024 12:07PM |
Registered: 8 months ago Posts: 10 |
Re: GTI Mirabox and Netgear RN120/RN104 (Armada 370) Installation & Kernel Upgrade (Linux-6.5.7) January 23, 2024 10:45PM |
Admin Registered: 13 years ago Posts: 18,900 |
Re: GTI Mirabox and Netgear RN120/RN104 (Armada 370) Installation & Kernel Upgrade (Linux-6.5.7) January 24, 2024 01:53AM |
Registered: 8 months ago Posts: 10 |
Re: GTI Mirabox and Netgear RN120/RN104 (Armada 370) Installation & Kernel Upgrade (Linux-6.5.7) January 24, 2024 12:50PM |
Admin Registered: 13 years ago Posts: 18,900 |
Re: GTI Mirabox and Netgear RN120/RN104 (Armada 370) Installation & Kernel Upgrade (Linux-6.5.7) January 24, 2024 03:06PM |
Registered: 8 months ago Posts: 10 |
Re: GTI Mirabox and Netgear RN120/RN104 (Armada 370) Installation & Kernel Upgrade (Linux-6.5.7) January 25, 2024 02:08AM |
Registered: 8 months ago Posts: 10 |
static void orion_mdio_shutdown(struct platform_device *pdev) { struct mii_bus *bus = platform_get_drvdata(pdev); u16 rega, regb; int i; /* replaces /proc/power_mode_2 */ /* Force 10Mbps half duplex, disable autoneg */ for (i = 0; i < 2; i++) { orion_mdio_write(bus, i, 0x16, 0x0); orion_mdio_write(bus, i, 0x0, 0x8000); } if (system_state == SYSTEM_RESTART) { /* Clear MII_88E1318S_PHY_LED_TCR_INT_ACTIVE_LOW, or the system ** will not reboot. RN2120 appears to rely on a PHY link change ** interrupt to "reboot", so make sure it's enabled. */ orion_mdio_write(bus, 0, 0x16, 0x3); rega = orion_mdio_read(bus, 0, 0x12); regb = (rega | BIT(7)) & ~(BIT(11)); } else { /* WoL enabled? */ orion_mdio_write(bus, 0, 0x16, 0x11); rega = orion_mdio_read(bus, 0, 0x10); if (rega & BIT(14)) { /* Enable interrupt only on WOL event. ** We get an immediate poweron with large MTU without this */ for (i = 0; i < 2; i++) { orion_mdio_write(bus, i, 0x16, 0x0); orion_mdio_write(bus, i, 0x12, 0x80); } /* Magic packet enable, Clear WOL status, ..., 10BT LPM */ regb = BIT(14) | BIT(12) | BIT(10) | BIT(8) | BIT(7); pr_debug("MII_88E1318S_PHY_WOL_CTRL: 0x%x => 0x%x\n", rega, regb); for (i = 0; i < 2; i++) { orion_mdio_write(bus, i, 0x16, 0x11); orion_mdio_write(bus, i, 0x10, regb); orion_mdio_write(bus, i, 0x16, 0x3); } rega = orion_mdio_read(bus, 0, 0x12); regb = rega | BIT(11) | BIT(7); } else { for (i = 0; i < 2; i++) { orion_mdio_write(bus, i, 0x16, 0x0); orion_mdio_write(bus, i, 0x0, BMCR_PDOWN); orion_mdio_write(bus, i, 0x12, 0x0); orion_mdio_write(bus, i, 0x16, 0x3); } rega = orion_mdio_read(bus, 0, 0x12); regb = rega & ~(BIT(11) | BIT(7)); } } pr_debug("MII_88E1318S_LED_TCR: 0x%x => 0x%x\n", rega, regb); for (i = 0; i < 2; i++) { orion_mdio_write(bus, 0, 0x12, regb); orion_mdio_write(bus, 0, 0x16, 0x0); } }
Re: GTI Mirabox and Netgear RN120/RN104 (Armada 370) Installation & Kernel Upgrade (Linux-6.5.7) January 25, 2024 02:22AM |
Registered: 8 months ago Posts: 10 |
Re: GTI Mirabox and Netgear RN120/RN104 (Armada 370) Installation & Kernel Upgrade (Linux-6.5.7) January 25, 2024 11:55PM |
Admin Registered: 13 years ago Posts: 18,900 |
Quote
i found interestin patch in Netgear ReadyNASOS kernel, is this patch included in newest kernel?
Quote
This tarball contains 6 files:
linux-image-6.5.7-mvebu-370xp-tld-1_1_armhf.deb
linux-headers-6.5.7-mvebu-370xp-tld-1_1_armhf.deb
zImage-6.5.7-mvebu-370xp-tld-1
config-6.5.7-mvebu-370xp-tld-1
linux-dtb-6.5.7-mvebu-370xp-tld-1.tar
linux-6.5.7-mvebu-370xp-tld-1.patch
Re: GTI Mirabox and Netgear RN120/RN104 (Armada 370) Installation & Kernel Upgrade (Linux-6.5.7) February 07, 2024 12:59PM |
Registered: 5 years ago Posts: 258 |
&mdio { phy0: ethernet-phy@0 { reg = <0>; //LED0: on/blink on act, LED1: off (not connected) LED2: Force off (connected to power button gpio, signals shutdown/restart) marvell,reg-init = <0x3 0x10 0xf000 0x0881>; }; };
$phytool write eth0/0/22 3 if [ "$1" == "halt" ] || [ "$1" == "poweroff" ]; then $phytool write eth0/0/16 0x0881 else $phytool write eth0/0/16 0x0981 fi $phytool write eth0/0/22 0
Re: GTI Mirabox and Netgear RN120/RN104 (Armada 370) Installation & Kernel Upgrade (Linux-6.5.7) February 10, 2024 03:18AM |
Registered: 8 months ago Posts: 10 |
Re: GTI Mirabox and Netgear RN120/RN104 (Armada 370) Installation & Kernel Upgrade (Linux-6.5.7) February 11, 2024 09:40AM |
Registered: 5 years ago Posts: 258 |
Re: GTI Mirabox and Netgear RN120/RN104 (Armada 370) Installation & Kernel Upgrade (Linux-6.5.7) February 24, 2024 02:11AM |
Admin Registered: 13 years ago Posts: 18,900 |
md5: e5911eb470ecfb07b3264cb79b418673 sha256: fc24f03aefe8da9bf0ef4287ff6f03942ef7064c0d65b09243ed9cc272ad0f57This tarball contains 6 files:
linux-image-6.7.5-mvebu-370xp-tld-2_2_armhf.deb linux-headers-6.7.5-mvebu-370xp-tld-2_2_armhf.deb zImage-6.7.5-mvebu-370xp-tld-2 config-6.7.5-mvebu-370xp-tld-2 linux-dtb-6.7.5-mvebu-370xp-tld-2.tar linux-6.7.5-mvebu-370xp-tld-2.patch
Re: GTI Mirabox and Netgear RN120/RN104 (Armada 370) Installation & Kernel Upgrade (Linux-6.5.7) February 25, 2024 11:51AM |
Registered: 7 years ago Posts: 181 |
Re: GTI Mirabox and Netgear RN120/RN104 (Armada 370) Installation & Kernel Upgrade (Linux-6.5.7) February 25, 2024 01:49PM |
Admin Registered: 13 years ago Posts: 18,900 |
Re: GTI Mirabox and Netgear RN120/RN104 (Armada 370) Installation & Kernel Upgrade (Linux-6.5.7) February 25, 2024 01:55PM |
Admin Registered: 13 years ago Posts: 18,900 |
Re: GTI Mirabox and Netgear RN120/RN104 (Armada 370) Installation & Kernel Upgrade (Linux-6.5.7) February 25, 2024 02:39PM |
Admin Registered: 13 years ago Posts: 18,900 |
Re: GTI Mirabox and Netgear RN120/RN104 (Armada 370) Installation & Kernel Upgrade (Linux-6.5.7) February 26, 2024 03:33PM |
Admin Registered: 13 years ago Posts: 18,900 |
Re: GTI Mirabox and Netgear RN120/RN104 (Armada 370) Installation & Kernel Upgrade (Linux-6.5.7) February 26, 2024 04:44PM |
Registered: 7 years ago Posts: 181 |
Re: GTI Mirabox and Netgear RN120/RN104 (Armada 370) Installation & Kernel Upgrade (Linux-6.5.7) February 26, 2024 05:13PM |
Admin Registered: 13 years ago Posts: 18,900 |
Re: GTI Mirabox and Netgear RN120/RN104 (Armada 370) Installation & Kernel Upgrade (Linux-6.5.7) February 29, 2024 12:33AM |
Registered: 7 years ago Posts: 181 |
Error: invalid dtb and unrecognized/unsupported machine ID
Re: GTI Mirabox and Netgear RN120/RN104 (Armada 370) Installation & Kernel Upgrade (Linux-6.5.7) February 29, 2024 01:31AM |
Admin Registered: 13 years ago Posts: 18,900 |
-rwxr-xr-x 1 root root 5099248 Feb 21 15:13 zImage-6.7.5-mvebu-370xp-tld-2
## Booting kernel from Legacy Image at 02000000 ... Image Name: Linux-6.7.5-mvebu-370xp-tld-2 Created: 2024-02-28 21:24:10 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 5099248 Bytes = 4.9 MiB
Re: GTI Mirabox and Netgear RN120/RN104 (Armada 370) Installation & Kernel Upgrade (Linux-6.5.7) February 29, 2024 02:32PM |
Registered: 7 years ago Posts: 181 |
Re: GTI Mirabox and Netgear RN120/RN104 (Armada 370) Installation & Kernel Upgrade (Linux-6.5.7) February 29, 2024 03:12PM |
Admin Registered: 13 years ago Posts: 18,900 |
Re: GTI Mirabox and Netgear RN120/RN104 (Armada 370) Installation & Kernel Upgrade (Linux-6.5.7) March 01, 2024 04:33AM |
Registered: 7 years ago Posts: 181 |
-rw-r--r-- 1 root root 5665854 Mar 1 09:13 initrd.img-6.7.5-mvebu-370xp-tld-2 -rw-r--r-- 1 root root 5665918 Mar 1 09:13 uInitrdOn the 2nd:
-rw-r--r-- 1 root root 10744490 Mar 1 08:53 initrd.img-6.7.5-mvebu-370xp-tld-2 -rw-r--r-- 1 root root 10744554 Mar 1 08:55 uInitrd
$ fw_printenv Configuration file wrong or corrupted $ cat /etc/fw_env.config # MTD device name Device offset Env. size Flash sector size Number of sectors /dev/mtd1 0x0 0x20000 0x20000 1 $ cat /proc/mtd dev: size erasesize name mtd0: 00180000 00020000 "u-boot" mtd1: 00020000 00020000 "u-boot-env" mtd2: 00600000 00020000 "uImage" mtd3: 00400000 00020000 "minirootfs" mtd4: 07400000 00020000 "ubifs"
Re: GTI Mirabox and Netgear RN120/RN104 (Armada 370) Installation & Kernel Upgrade (Linux-6.5.7) March 01, 2024 02:54PM |
Admin Registered: 13 years ago Posts: 18,900 |
cat /etc/initramfs-tools/initramfs.conf | grep MODULES
> $ fw_printenv > Configuration file wrong or corrupted > $ cat /etc/fw_env.config > # MTD device name Device offset Env. size Flash > sector size Number of sectors > /dev/mtd1 0x0 0x20000 0x20000 1 > $ cat /proc/mtd > dev: size erasesize name > mtd0: 00180000 00020000 "u-boot" > mtd1: 00020000 00020000 "u-boot-env" > mtd2: 00600000 00020000 "uImage" > mtd3: 00400000 00020000 "minirootfs" > mtd4: 07400000 00020000 "ubifs" >
/dev/mtd1 0x0 0x20000 0x20000Note that tab or space is not relevant. And "Number of sectors" is not used anymore (it should not hurt to have, though).
Re: GTI Mirabox and Netgear RN120/RN104 (Armada 370) Installation & Kernel Upgrade (Linux-6.5.7) March 02, 2024 04:53AM |
Registered: 7 years ago Posts: 181 |
Quote
Check the modules load option on both boxes:
cat /etc/initramfs-tools/initramfs.conf | grep MODULES
If MODULES=dep then this rootfs started from Debian-6.6.2-mvebu-tld-1-rootfs-bodhi.tar.bz2. That'd explain why the uInitrd is much smaller. The previous rootfs has MODULES=most.
$ LC_TIME= ls -AlF /tmp/initramfs.conf.1st /tmp/initramfs.conf.2nd -rw-r--r-- 1 tme tme 1582 Dec 12 23:03 /tmp/initramfs.conf.1st -rw-r--r-- 1 tme tme 1365 Jan 14 2021 /tmp/initramfs.conf.2nd $ diff /tmp/initramfs.conf.1st /tmp/initramfs.conf.2nd 20c20 < MODULES=dep --- > MODULES=most 45,57d44 < < # < # COMPRESSLEVEL: ... < # < # Set a compression level for the compressor. < # Defaults vary by compressor. < # < # Valid values are: < # 1 - 9 for gzip|bzip2|lzma|lzop < # 0 - 9 for lz4|xz < # 0 - 19 for zstd < # < # COMPRESSLEVEL=3
$ LC_TIME= ls -AlF /boot/uInitrd* -rw-r--r-- 1 root root 10744554 Mar 2 11:25 /boot/uInitrd -rw-r--r-- 1 root root 5665918 Mar 1 09:13 /boot/uInitrd.orig.1st -rw-r--r-- 1 root root 10744554 Mar 1 11:11 /boot/uInitrd.orig.2ndmost likely because 'mkimage' on the 2nd box do not support 'MODULES=dep':
tme@rn102_1st:~$ cat /etc/debian_version 12.4 tme@rn102_1st:~$ mkimage -V mkimage version 2023.01 tme@rn102_2nd:~$ cat /etc/debian_version 11.7 tme@rn102_2nd:~$ mkimage -V mkimage version 2021.01+dfsg-5
Re: GTI Mirabox and Netgear RN120/RN104 (Armada 370) Installation & Kernel Upgrade (Linux-6.5.7) March 02, 2024 05:22AM |
Registered: 7 years ago Posts: 181 |
Quote
Indeed a strange problem! Could you delete the /etc/fw_env.config file and create it again by manually typing in
/dev/mtd1 0x0 0x20000 0x20000
Note that tab or space is not relevant. And "Number of sectors" is not used anymore (it should not hurt to have, though).
$ hexdump -C /etc/fw_env.config 00000000 23 20 4d 54 44 20 64 65 76 69 63 65 20 6e 61 6d |# MTD device nam| 00000010 65 09 44 65 76 69 63 65 20 6f 66 66 73 65 74 09 |e.Device offset.| 00000020 45 6e 76 2e 20 73 69 7a 65 09 46 6c 61 73 68 20 |Env. size.Flash | 00000030 73 65 63 74 6f 72 20 73 69 7a 65 09 4e 75 6d 62 |sector size.Numb| 00000040 65 72 20 6f 66 20 73 65 63 74 6f 72 73 0a 2f 64 |er of sectors./d| 00000050 65 76 2f 6d 74 64 31 09 09 30 78 30 09 09 30 78 |ev/mtd1..0x0..0x| 00000060 32 30 30 30 30 09 09 30 78 32 30 30 30 30 09 09 |20000..0x20000..| 00000070 09 31 0a |.1.|
$ ls -AlF /dev/mtd? crw------- 1 root root 90, 0 Feb 29 21:14 /dev/mtd0 crw------- 1 root root 90, 2 Feb 29 21:14 /dev/mtd1 crw------- 1 root root 90, 4 Feb 29 21:14 /dev/mtd2 crw------- 1 root root 90, 6 Feb 29 21:14 /dev/mtd3 crw------- 1 root root 90, 8 Feb 29 21:14 /dev/mtd4so 'sudo fw_printenv' works fine.
$ which fw_printenv /usr/bin/fw_printenvI think the solution to this issue for Debian would be to move 'fw_printenv' etc. to '/usr/sbin'. Right?
Re: GTI Mirabox and Netgear RN120/RN104 (Armada 370) Installation & Kernel Upgrade (Linux-6.5.7) March 02, 2024 05:56AM |
Registered: 7 years ago Posts: 181 |
Re: GTI Mirabox and Netgear RN120/RN104 (Armada 370) Installation & Kernel Upgrade (Linux-6.5.7) March 02, 2024 02:11PM |
Admin Registered: 13 years ago Posts: 18,900 |
fdt_skip_update=yes
Re: GTI Mirabox and Netgear RN120/RN104 (Armada 370) Installation & Kernel Upgrade (Linux-6.5.7) March 02, 2024 02:51PM |
Admin Registered: 13 years ago Posts: 18,900 |
Quote
apt-cache show libubootenv-tool | grep -i maintainer
Maintainer: Nobuhiro Iwamatsu <iwamatsu@debian.org>