Hi opt12,
I run the latest kernel 6.1 on my NAS4220. Since I did not want to mess around with the original Redboot flash layout I decided to implement some patches. You find them in the repo below.
Would be great if you want to give it a try.
1.) clone the repo
|
Source code
|
1
2
|
git clone https://github.com/Smartsmurf/openwrt-ib4220.git
cd openwrt-ib4220
|
2.) update feeds
|
Source code
|
1
2
|
./scripts/feeds update -a
./scripts/feeds install -a
|
3.) copy config-default to .config
|
Source code
|
1
|
cp config-default to .config
|
4.) make menuconfig
-> select packages
5.) make
finally you find the update under
./bin/targets/gemini/generic
and you find all the nice packages under
./bin/packages/arm_fa526
To install the packages I recommend to insert USB flash drive (4 GB are more than sufficient) and configure this as overlay. All installations will be put on the drive since flash memory is spare. Then configure the software sources to point to the arm_fa526 (or copy it locally on the HDD somewhere).The main benefit is that my fork is flash layout compatible with the original Raidsonic firmware. So when you want to revert you can just install the original FW.
Good luck SM
PS: the default root password is "welcome" (without quotes), but you can put any hash you want into the template "target/linux/gemini/base-files/etc/passwd"
Hello.
I have been runing the smartsmurf release for a long time. The ethernet driver is not optimal, sometimes, I seem to see glitches in the network whenver i read/send data to/from the nas.
Still, the nas itself is enough even for day to day stuff and I would like to keep it running like this as it is mostly ok for normal home related activities.
I tried to build the openwrt release but I get an error on the the ethernet patch:
Any idea regarding how to fix that?:
(meanwhile, i wanted to add a usb wifi card driver in the process, but the outcome is identical even if i dont add the driver to the build)Applying /home/olivier/openwrt-ib4220/target/linux/gemini/patches-6.6/970-net-ethernet-cortina.patch using plaintext:
patching file drivers/net/ethernet/cortina/gemini.c
Hunk #1 succeeded at 82 with fuzz 2 (offset -1 lines).
Hunk #2 succeeded at 149 (offset -1 lines).
Hunk #3 succeeded at 209 (offset -1 lines).
Hunk #4 succeeded at 610 (offset -3 lines).
Hunk #5 succeeded at 713 (offset -3 lines).
Hunk #6 succeeded at 740 (offset -3 lines).
Hunk #7 succeeded at 765 (offset -3 lines).
Hunk #8 succeeded at 778 (offset -3 lines).
Hunk #9 succeeded at 801 (offset -3 lines).
Hunk #10 succeeded at 833 (offset -3 lines).
Hunk #11 succeeded at 847 (offset -3 lines).
Hunk #12 succeeded at 881 (offset -3 lines).
Hunk #13 succeeded at 915 (offset -3 lines).
Hunk #14 succeeded at 923 (offset -3 lines).
Hunk #15 succeeded at 938 (offset -3 lines).
Hunk #16 succeeded at 963 (offset -3 lines).
Hunk #17 succeeded at 972 (offset -3 lines).
Hunk #18 succeeded at 1200 (offset 45 lines).
Hunk #19 succeeded at 1407 (offset 45 lines).
Hunk #20 succeeded at 1441 (offset 49 lines).
Hunk #21 succeeded at 1510 (offset 49 lines).
Hunk #22 succeeded at 1777 (offset 48 lines).
Hunk #23 FAILED at 2037.
Hunk #24 succeeded at 2528 (offset 60 lines).
Hunk #25 succeeded at 2595 (offset 52 lines).
1 out of 25 hunks FAILED -- saving rejects to file drivers/net/ethernet/cortina/gemini.c.rej
Patch failed! Please fix /home/olivier/openwrt-ib4220/target/linux/gemini/patches-6.6/970-net-ethernet-cortina.patch!
make[4]: *** [Makefile:40: /home/olivier/openwrt-ib4220/build_dir/target-arm_fa526_musl_eabi/linux-gemini_generic/linux-6.6.58/.prepared_bc6c7b9cfb5f3af425403e45de205b97] Error 1
make[4]: Leaving directory '/home/olivier/openwrt-ib4220/target/linux/gemini'
make[3]: *** [Makefile:11: compile] Error 2
make[3]: Leaving directory '/home/olivier/openwrt-ib4220/target/linux'
time: target/linux/compile#10.15#6.23#12.29
ERROR: target/linux failed to build.
make[2]: *** [target/Makefile:32: target/linux/compile] Error 1
make[2]: Leaving directory '/home/olivier/openwrt-ib4220'
make[1]: *** [target/Makefile:25: /home/olivier/openwrt-ib4220/staging_dir/target-arm_fa526_musl_eabi/stamp/.target_compile] Error 2
make[1]: Leaving directory '/home/olivier/openwrt-ib4220'
make: *** [/home/olivier/openwrt-ib4220/include/toplevel.mk:248: world] Error 2
olivier@debnascompil:~/openwrt-ib4220$
$ cat ./build_dir/target-arm_fa526_musl_eabi/linux-gemini_generic/linux-6.6.58/drivers/net/ethernet/cortina/gemini.c.rej
--- drivers/net/ethernet/cortina/gemini.c 2019-03-15 14:28:50.689390331 +0100
+++ drivers/net/ethernet/cortina/gemini.c 2019-03-15 15:31:34.009462305 +0100
@@ -2037,7 +2012,8 @@
}
*values++ = port->tx_frags_linearized;
*values++ = port->tx_hw_csummed;
-
+ *values++ = port->geth->freeq_replaced;
+ *values++ = port->geth->freeq_lost;
} while (u64_stats_fetch_retry_irq(&port->tx_stats_syncp, start));
}
olivier@debnascompil:~/openwrt-ib4220$
thanks !!!