Debian Lenny on the NSA-220

Marvell Orion based
KeyCat
Posts: 70
Joined: Tue Apr 05, 2011 8:07 am

Re: Debian Lenny on the NSA-220

Post by KeyCat » Sun Oct 30, 2011 2:42 pm

Tested max serial port speed today and glad to see it support close to 1 Mbit/s (921600 bps)

/KC

KeyCat
Posts: 70
Joined: Tue Apr 05, 2011 8:07 am

Re: Debian Lenny on the NSA-220

Post by KeyCat » Thu Apr 05, 2012 3:34 pm

Just an heads up if anyone else getting errors with apt-get update. My NSA-220+ have been chugging along nicely on Debian 5.03 and I haven't touched it for a while but today when trying to install some new packages it failed.

Turns out that Debian 5.03 (a.k.a Lenny) reached end-of-life in February 2012 and the repositories have moved so you have to edit your /etc/apt/sources.list and add the following repository.

Code: Select all

deb http://archive.debian.org/debian/ lenny contrib main non-free
/KC

KeyCat
Posts: 70
Joined: Tue Apr 05, 2011 8:07 am

Re: Debian Lenny on the NSA-220

Post by KeyCat » Thu Jul 25, 2013 2:56 pm

Another tip for your /etc/apt/sources.list to keep Lenny as fresh as possible...

Code: Select all

deb http://archive.debian.org/debian-backports lenny-backports main contrib non-free
Do a "apt-get update" after adding it...

Read more about backports here..

http://backports.debian.org/

/KC

refe
Posts: 35
Joined: Thu Jan 28, 2010 6:13 pm

Re: Debian Lenny on the NSA-220

Post by refe » Thu Aug 01, 2013 2:35 pm

you can update ubuntu lenny (5.0) to ubuntu squeeze (6.0) following the link bellow (i did it and it worked for me)
http://www.cyberciti.biz/faq/apt-get-up ... 6-squeeze/
could anyone help me to compile a new kernel (or the same kernel) but with ntfs [read/write] support ?
it's verry important for me to be able to write on partitions that are formated ntfs

right now i have kernel 2.6.18.6-cs #27 Fri Dec 11 20:02:58 CET 2009 armv5tejl GNU/Linux on my Zyxel NSA220
after ubuntu squeeze i will try to upgrade to ubuntu Wheezy (found this link http://www.cyberciti.biz/faq/howto-debi ... -7-wheezy/ but i don't know if it works ...i will keep you informed
unfortunatly can't update from Ubuntu 6.0 to Ubuntu 7.0 because can't update libc6 because the kernel is older than 2.6.26 .
now i'm trying to build a new kernel that will boot (already made 2 zImage's but none of them booted the nsa-220 box) and will have ntfs write support.

KeyCat
Posts: 70
Joined: Tue Apr 05, 2011 8:07 am

Re: Debian Lenny on the NSA-220

Post by KeyCat » Tue Oct 22, 2013 11:47 am

Anyone got the HW RTC going? i2cdetect shows it's there at 0x51 (PCF8563 default HW address) but driver doesn't load according to dmesg and kernel is compiled with rtc and the PCF8563 driver...

Code: Select all

...
mice: PS/2 mouse device common for all mice
ts: Compaq touchscreen protocol output
i2c /dev entries driver
device-mapper: ioctl: 4.7.0-ioctl (2006-06-24) initialised: dm-devel@redhat.com
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
VFP support v0.3: not present
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
...

Code: Select all


#i2cdetect -q 0

WARNING! This program can confuse your I2C bus, cause data loss and worse!
I will probe file /dev/i2c-0 using quick write commands.
I will probe address range 0x03-0x77.
Continue? [Y/n] 
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- UU -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- 51 -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- --   
PS: 0x2e is the default HW address for ADT7463 Monitor IC.

/KC

iqlogic
Posts: 1
Joined: Sat Aug 20, 2016 9:34 am

Re: Debian Lenny on the NSA-220

Post by iqlogic » Sat Aug 20, 2016 12:23 pm

Hello, maybe it'll be stupid question but ... I really need help :)
What exactly I have to do after I put all files on USB stick, connect it to NAS and power on NAS? I can see IP address in Advanced IP Scanner but I do not know how to connect to this address.
I'm using Windows 7 64-bit :)

Many thanks ;)

Mijzelf
Posts: 6203
Joined: Mon Jun 16, 2008 10:45 am

Re: Debian Lenny on the NSA-220

Post by Mijzelf » Sat Aug 20, 2016 4:43 pm

startpost wrote:The box is running a telnet server. There is one user configured, root with password root.
So you'll need a telnet client. For Windows you can use PuTTY for that. Make sure you select the 'telnet' protocol.

User avatar
MrDini
Posts: 651
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Re: Debian Lenny on the NSA-220

Post by MrDini » Sat Sep 03, 2016 11:39 am

Hello Mijzelf!

First of all, sorry for the off topic question!

How Can I port the reloaded.ko to the nsa3** seria (for example the 320S)?

If I port it to the 320S, will it work with 325v2 too?

Thanks a lot! It will be very interesting. :D
Thanks nas-central the lot of help! :)

Mijzelf
Posts: 6203
Joined: Mon Jun 16, 2008 10:45 am

Re: Debian Lenny on the NSA-220

Post by Mijzelf » Sat Sep 03, 2016 5:46 pm

Theoretically you can just compile the module against the kernelsources, with the right .config file. Maybe that gives some unresolved name errors, in which case you have to either pull the source of the unresolved name from the kernel and add it to the module, or just add a variable with that name, if you think the function won't be called anyway.

In practise I already tried that, years ago, and it turned out a Kirkwood kernel just doesn't want to reload this way. I guess some cache has to be flushed, and maybe the CPU has to be in another state when loading the kernel.

If you really want to reload the kernel, you should check if kexec works on a Kirkwood (needs a kernel with kexec support to be active), and if yes, check which 'deinitialisation' is done before rebooting.

User avatar
MrDini
Posts: 651
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Re: Debian Lenny on the NSA-220

Post by MrDini » Sat Sep 03, 2016 8:02 pm

Hi!

I already tried compiling it, but says the following:

Code: Select all

make -C /mnt/HD_a2/build/kernel/trunk/linux-2.6.31.8/ M=/i-data/bf835951/build/reloaded CROSS_COMPILE= ARCH=arm modules
make[1]: Entering directory '/i-data/bf835951/build/kernel/trunk/linux-2.6.31.8'
  AS [M]  /i-data/bf835951/build/reloaded/proc-arm926.o
/i-data/bf835951/build/reloaded/proc-arm926.S:36:115: fatal error: /mnt/HD_a2/build/kernel/trunk/linux-2.6.31.8/arch/arm/mach-mv88fxx81/mv88f5181/mvSysHwConfig.h: No such file or directory
 #include "/mnt/HD_a2/build/kernel/trunk/linux-2.6.31.8/arch/arm/mach-mv88fxx81/mv88f5181/mvSysHwConfig.h"
                   ^
compilation terminated.
scripts/Makefile.build:264: recipe for target '/i-data/bf835951/build/reloaded/proc-arm926.o' failed
make[2]: *** [/i-data/bf835951/build/reloaded/proc-arm926.o] Error 1
Makefile:1386: recipe for target '_module_/i-data/bf835951/build/reloaded' failed
make[1]: *** [_module_/i-data/bf835951/build/reloaded] Error 2
make[1]: Leaving directory '/i-data/bf835951/build/kernel/trunk/linux-2.6.31.8'
Makefile:8: recipe for target 'all' failed
make: *** [all] Error 2
Yes, that's right, the mach-mv88fxx81 folder doesn't exist in my kernel sources. I have only an mach-mv78xx0 (which has similar name), and a lot of other...
Thanks nas-central the lot of help! :)

Mijzelf
Posts: 6203
Joined: Mon Jun 16, 2008 10:45 am

Re: Debian Lenny on the NSA-220

Post by Mijzelf » Sun Sep 04, 2016 6:41 pm

Then you have to edit proc-arm926.S, and change the path of the included file. But it's certainly possible that the whole included file itself doesn't exist anymore.

User avatar
MrDini
Posts: 651
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Re: Debian Lenny on the NSA-220

Post by MrDini » Sun Sep 04, 2016 6:43 pm

Yes, this folder doesn't exist at the NSA320S kernel source...

Is there any other way to solve the problem?
Thanks nas-central the lot of help! :)

User avatar
MrDini
Posts: 651
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Re: Debian Lenny on the NSA-220

Post by MrDini » Sun Sep 11, 2016 4:36 pm

Up! :)
Thanks nas-central the lot of help! :)

Mijzelf
Posts: 6203
Joined: Mon Jun 16, 2008 10:45 am

Re: Debian Lenny on the NSA-220

Post by Mijzelf » Mon Sep 12, 2016 8:24 am

Download the NSA220 kernelsources here, have a look at the original .h file to see what it contributes to the module, find the corresponding functionality in the 300 sources, and edit the module sources to match the changed syntax/whatever.

sazerac
Posts: 6
Joined: Wed Sep 14, 2016 7:59 am

Re: Debian Lenny on the NSA-220

Post by sazerac » Wed Sep 14, 2016 8:15 am

hi can someone please help me,

tried multiple times to get it to work on my nsa220plus fw3.24, downgraded to fw 3.22 as described in a post, still no luck.

sys led keeps blinking, but cant connect with telnet, most of the times it doesnt even extract the tgz.

im sorry have only a faint idea how it all works, so cant really troubleshoot myself...

could someone at least point out how to find and interpret the log file?

drives me crazy, that i dont know what goes wrong...

thanks in advance

Post Reply