Debian Lenny on the NSA-220

Marvell Orion based
Mijzelf
Posts: 6224
Joined: Mon Jun 16, 2008 10:45 am

Re: Debian Lenny on the NSA-220

Post by Mijzelf » Wed May 26, 2010 12:27 pm

Not with this package. This package relies on a kernelmodule (reloaded.ko) to boot a different kernel with a different cmdline and initrd. This kernelmodule won't work on a NSA-210. Maybe it's possible to compile one for the NSA-210, but I don't have one, so I cannot test it.

User avatar
Berserk
Posts: 2
Joined: Sat Oct 16, 2010 9:59 pm

Re: Debian Lenny on the NSA-220

Post by Berserk » Sun Oct 17, 2010 10:19 am

Hi! I'm new in using linux and I'm no native speaker, so please excuse if my using of terms, definitions and times is not always correct.

I have a question for installing Lenny on my NSA-220. Is it possible to use a vnc-client to connect to lenny? I installed x11vnc and xfce on lenny and use realvnc on my netbook on linux mint but it can't get the server running on lenny. Error message: x11vnc was unable to open the X DISPLAY: ":0", it cannot continue. Maybe because there is no graphic card installed in the nsa?

In this case, would it be possible to use some sort of html facing to control Lenny remotely?

Please no discussion about using just the terminal for working with an operating system. I think in 21st century this may be contemporary in some satellites from the early 80's of the last century, but not today. I was glad as MS-DOS was replaced by windows and I am glad about Gnome, KDE, LXDE and XFCE.
Do what you can do. That's all that matters.

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

Re: Debian Lenny on the NSA-220

Post by Mijzelf » Sun Oct 17, 2010 11:14 am

Error message: x11vnc was unable to open the X DISPLAY: ":0", it cannot continue. Maybe because there is no graphic card installed in the nsa?
The lack of a graphics card should be no problem. Maybe this can help you?
would it be possible to use some sort of html facing to control Lenny remotely?
Have a look at webmin.
I was glad as MS-DOS was replaced by windows and I am glad about Gnome, KDE, LXDE and XFCE.
Of course a GUI is convenient in many cases, but for configuration purposes it's a bit limited. How often did you have to edit the Registry just because the GUI didn't have the interface? And there are always more settings possible in the conf files then there are exposed in the GUI shell.

User avatar
Berserk
Posts: 2
Joined: Sat Oct 16, 2010 9:59 pm

Re: Debian Lenny on the NSA-220

Post by Berserk » Tue Oct 19, 2010 9:25 pm

Thanks in advance. :D I'll check your suggestions as soon as I have time and motivation for it again. ;)
Of course a GUI is convenient in many cases, but for configuration purposes it's a bit limited. How often did you have to edit the Registry just because the GUI didn't have the interface?
Well, it's a matter of navigating. It's much easier to find what you're looking for with a surface which can show you all paths, files and information in a well-arranged way, than on a DOS-Shell or terminal. In a terminal you have to know many instructions, in an GUI thats not necessary because the system knows and uses them. It gives you the freedom to concentrate on the problem and how to solve it, not wasting time with looking for basic commands. To use a editor and manipulate files, I just have to find the correct ones. Sure, there are more settings I can do in special ini, cfg, reg and many other files, but thats no argument for a text based surface. The only argument are the used ressources, but nowadays? :)
Do what you can do. That's all that matters.

harryzimm
Posts: 2
Joined: Tue Dec 14, 2010 1:56 pm

Re: Debian Lenny on the NSA-220

Post by harryzimm » Tue Dec 14, 2010 2:01 pm

Hi,

Is it possible to use a swap partition on the usb or hdd? Would doing this free up some ram? I've got it up and running and i'm using sabnzbdplus and sickbeard, but they are using a lot of resources. Any advice is appreciated.

cheers

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

Re: Debian Lenny on the NSA-220

Post by Mijzelf » Tue Dec 14, 2010 2:31 pm

Yes, of course.

Doesn't it already use the dedicated swap partitions, sda1 and sdb1 of the firmware? Maybe on newer firmwares it's no swap partition anymore.

Anyway, you can just create a swappartition and/or file, and switch it on:
mkswap /dev/sdxn
swapon /dev/sdxn

or
dd if=/dev/zero of=/path/to/myswapfile bs=4096 count=32768
mkswap /path/to/myswapfile
swapon /path/to/myswapfile

harryzimm
Posts: 2
Joined: Tue Dec 14, 2010 1:56 pm

Re: Debian Lenny on the NSA-220

Post by harryzimm » Tue Dec 14, 2010 7:41 pm

Thanks very much for the information and the fast response. :D . I kinda thought it would work but i wanted to make sure. "top" reports no swap file so i'm guessing its the newer firmware. I will give it a shot later and report back.

cheers

ab5031
Posts: 4
Joined: Sun Dec 26, 2010 9:38 am

Re: Debian Lenny on the NSA-220

Post by ab5031 » Sun Dec 26, 2010 10:05 am

Is it possible to add support for UPS to this system? When I connect APC-800 by USB Cable and check listing the UPS correctly but it have "driver=(none)" instead of "driver=(hid)". I suppose that kernel patch apply is necessary, but how to do this or may have another way?

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

Re: Debian Lenny on the NSA-220

Post by Mijzelf » Sun Dec 26, 2010 12:35 pm

Did you read this?

ab5031
Posts: 4
Joined: Sun Dec 26, 2010 9:38 am

Re: Debian Lenny on the NSA-220

Post by ab5031 » Sun Dec 26, 2010 2:36 pm

Yes, but I have not experience with custom kernel compiling. If this is not so hard, could you update your set with usbhid support kernel? Or please advice were I can find and how to install this kernel to existing set. Sorry for disturb ...

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

Re: Debian Lenny on the NSA-220

Post by Mijzelf » Sun Dec 26, 2010 9:13 pm

I cannot remember if the kernel provided with the Debian package had hid support. Anyway, I compiled a new kernel with modules, you can find it here.

ab5031
Posts: 4
Joined: Sun Dec 26, 2010 9:38 am

Re: Debian Lenny on the NSA-220

Post by ab5031 » Mon Dec 27, 2010 2:10 pm

Thank a lot! I'm very much appreciated!
Bu I still in same position. I replaced kernel file & modules and kernel seems started:

Code: Select all

Linux NSA-220 2.6.18.6.native #4 Sun Dec 26 16:40:56 CET 2010 armv5tejl
But when I connect UPS i see the same:

Code: Select all

root@NSA-220:/# cat /proc/bus/usb/devices

T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 1
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.06
S:  Manufacturer=Linux 2.6.18.6.native ehci_hcd
S:  Product=EHCI Host Controller
S:  SerialNumber=ehci_platform.16781
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=256ms

T:  Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=1.5 MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=051d ProdID=0002 Rev= 1.06
S:  Manufacturer=American Power Conversion
S:  Product=Back-UPS BR  800 FW:9.o5 .I USB FW:o5
S:  SerialNumber=BB0100009999
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr= 24mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=00 Prot=00 Driver=(none)
E:  Ad=81(I) Atr=03(Int.) MxPS=   6 Ivl=10ms
Any Idea?

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

Re: Debian Lenny on the NSA-220

Post by Mijzelf » Tue Dec 28, 2010 8:54 am

usbhid is a module:

Code: Select all

Mijzelf@Fileserver:~$ zcat /proc/config.gz | grep CONFIG_USB_HID
CONFIG_USB_HID=m
CONFIG_USB_HIDINPUT=y
# CONFIG_USB_HIDINPUT_POWERBOOK is not set
CONFIG_USB_HIDDEV=y
Did you load it?

Code: Select all

cat /proc/modules
su
modprobe usbhid

ab5031
Posts: 4
Joined: Sun Dec 26, 2010 9:38 am

Re: Debian Lenny on the NSA-220

Post by ab5031 » Tue Dec 28, 2010 9:52 am

You are Magic Man! Many thanks! One question more - how to auto-load usbhid module after NAS reboot?

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

Re: Debian Lenny on the NSA-220

Post by Mijzelf » Tue Dec 28, 2010 11:02 am

Code: Select all

echo usbhid >>/etc/modules

Post Reply