DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2007-07-24 12:30:45

sala
Member / Site Admin
From: Estonia
Registered: 2006-07-28
Posts: 731
Website

rt2500 driver

Here are some progress with new rt2500 driver which is needed for gentoo/debian hdd-boot/loader.o systems.

I have successfully compiled RT2500-Linux-STA-1.4.6.6(attached to this post) and rt2500 v1.1.0-b4 versions.
rt2500 v1.1.0-b4 is already tested by cwilson and it fails to authenticate.

Unfortunately I have had no luck to get rt2500-cvs-daily compiled. I guess it does not like this old kernel.

Code:

raivo Module # CC="powerpc-linux-uclibc-gcc" CXX="powerpc-linux-uclibc-g++" CPP="powerpc-linux-uclibc-cpp" LD="powerpc-linux-uclibc-ld" make
make[1]: Entering directory `/home/sala/ppclinux'
make -C  /home/sala/rt2500-cvs-2007072402/Module CFLAGS="-D__KERNEL__ -I/home/sala/ppclinux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -I/home/sala/ppclinux/arch/ppc -fsigned-char -msoft-float -pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring -DMODULE" MAKING_MODULES=1 modules
make[2]: Entering directory `/home/sala/rt2500-cvs-2007072402/Module'
powerpc-linux-gcc -D__KERNEL__ -I/home/sala/ppclinux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -I/home/sala/ppclinux/arch/ppc -fsigned-char -msoft-float -pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring -DMODULE -I. -nostdinc -iwithprefix include -DKBUILD_BASENAME=rtmp_main  -c -o rtmp_main.o rtmp_main.c
In file included from rtmp_main.c:50:
rt_config.h:133: warning: #warning Compiling for big endian machine.
rtmp_main.c:205: parse error before `RT2500_init_one'
rtmp_main.c:208: warning: return-type defaults to `int'
rtmp_main.c:229: parse error before `RT2500_probe'
rtmp_main.c:232: warning: return-type defaults to `int'
rtmp_main.c:926: parse error before `RT2500_remove_one'
rtmp_main.c:928: warning: return-type defaults to `int'
rtmp_main.c: In function `RT2500_remove_one':
rtmp_main.c:930: warning: implicit declaration of function `netdev_priv'
rtmp_main.c:930: warning: initialization makes pointer from integer without a cast
rtmp_main.c:951: warning: control reaches end of non-void function
rtmp_main.c: At top level:
rtmp_main.c:1041: parse error before `__devinitdata'
rtmp_main.c:1041: warning: type defaults to `int' in declaration of `__devinitdata'
rtmp_main.c:1043: warning: braces around scalar initializer
rtmp_main.c:1043: warning: (near initialization for `__devinitdata')
rtmp_main.c:1043: warning: excess elements in scalar initializer
rtmp_main.c:1043: warning: (near initialization for `__devinitdata')
rtmp_main.c:1043: warning: excess elements in scalar initializer
rtmp_main.c:1043: warning: (near initialization for `__devinitdata')
rtmp_main.c:1043: warning: excess elements in scalar initializer
rtmp_main.c:1043: warning: (near initialization for `__devinitdata')
rtmp_main.c:1043: warning: excess elements in scalar initializer
rtmp_main.c:1043: warning: (near initialization for `__devinitdata')
rtmp_main.c:1043: warning: excess elements in scalar initializer
rtmp_main.c:1043: warning: (near initialization for `__devinitdata')
rtmp_main.c:1043: warning: excess elements in scalar initializer
rtmp_main.c:1043: warning: (near initialization for `__devinitdata')
rtmp_main.c:1044: warning: braces around scalar initializer
rtmp_main.c:1044: warning: (near initialization for `__devinitdata')
rtmp_main.c:1044: warning: excess elements in scalar initializer
rtmp_main.c:1044: warning: (near initialization for `__devinitdata')
rtmp_main.c:1045: warning: data definition has no type or storage class
rtmp_main.c:1046: `rt2500_pci_tbl' undeclared here (not in a function)
rtmp_main.c:1054: `rt2500_pci_tbl' undeclared here (not in a function)
rtmp_main.c:1054: initializer element is not constant
rtmp_main.c:1054: (near initialization for `rt2500_driver.id_table')
rtmp_main.c:1061: warning: implicit declaration of function `__devexit_p'
rtmp_main.c:1061: initializer element is not constant
rtmp_main.c:1061: (near initialization for `rt2500_driver.remove')
rtmp_main.c:1065: initializer element is not constant
rtmp_main.c:1065: (near initialization for `rt2500_driver')
rtmp_main.c:1065: initializer element is not constant
rtmp_main.c:1065: (near initialization for `rt2500_driver')
rtmp_main.c:1073: parse error before `rt2500_init_module'
rtmp_main.c:1074: warning: return-type defaults to `int'
rtmp_main.c:1081: parse error before `rt2500_cleanup_module'
rtmp_main.c:1082: warning: return-type defaults to `int'
rtmp_main.c: In function `rt2500_cleanup_module':
rtmp_main.c:1084: warning: control reaches end of non-void function
rtmp_main.c: At top level:
rtmp_main.c:1086: warning: type defaults to `int' in declaration of `module_init'
rtmp_main.c:1086: warning: parameter names (without types) in function declaration
rtmp_main.c:1086: warning: data definition has no type or storage class
rtmp_main.c:1087: warning: type defaults to `int' in declaration of `module_exit'
rtmp_main.c:1087: warning: parameter names (without types) in function declaration
rtmp_main.c:1087: warning: data definition has no type or storage class
make[2]: *** [rtmp_main.o] Error 1
make[2]: Leaving directory `/home/sala/rt2500-cvs-2007072402/Module'
make[1]: *** [_mod_/home/sala/rt2500-cvs-2007072402/Module] Error 2
make[1]: Leaving directory `/home/sala/ppclinux'

DSM-G600 - NetBSD hdd-boot - 80GB Samsung SP0802N
NSA-220 - Gentoo armv5tel 20110121 hdd-boot - 2x 2TB WD WD20EADS

Offline

 

#2 2007-07-26 08:30:01

cwilson
Member
Registered: 2007-07-16
Posts: 19

Re: rt2500 driver

Thanks for giving it a shot. I can get by without wireless right now; it's more important for my project that I get a webcam up and running, so I'm going to concentrate on that for now.  I've got nfs (using the kernel module available elsewhere on this site) and samba running under gentoo_boot, so except for wireless and web-configuration my little box is working the same under gentoo_boot as under the customized firmware.  Unfortunately, getting a cross-build environment set up is blocked by my need to update my "real" linux machine's OS and backup all the data.  That's tomorrow's project.

Yes, that means I built samba using a native emerge on the dsmg600.  It ran all night. 8-P

[OT]:
I did create binary packages[1], so I suppose one could set up a repository of those, and people could install them using emerge -k?  (I created 'em, but I'm not sure exactly how to use 'em just yet.  I reckon your KEYWORDS and USE values need to be identical, or emerge will build anew, rather than use the binpkg?)

[1] it's a long list, but includes the portmap, nfs-utils, syslog-ng, vixie-cron, samba, (a bunch of graphics libs and freetype/fontconfig [2]), ghostscript, etc.

[2] this group because I wanted to get w3cam up and running with freetype support, so I could label images...still working on that.

Offline

 

#3 2009-02-08 17:03:31

sala
Member / Site Admin
From: Estonia
Registered: 2006-07-28
Posts: 731
Website

Re: rt2500 driver

I had some time to mess around with my DSM-G600 lately, so I also tried to get wifi working.
I did recompile rt2500 v1.1.0-b4 driver (latest cvs did still fail to compile).
Test results:
With no encryption - 100% working
With WPA-PSK1 TKIP encryption - WRT54GS with OpenWrt 2.6 kernel r13958 will give (might be openwrt fault):

Code:

Feb  8 17:03:01 OpenWrt daemon.info hostapd: wlan0: STA 00:0f:a3:74:5b:2c IEEE 802.11: authenticated
Feb  8 17:03:01 OpenWrt daemon.info hostapd: wlan0: STA 00:0f:a3:74:5b:2c IEEE 802.11: associated (aid 1)
Feb  8 17:03:04 OpenWrt daemon.info hostapd: wlan0: STA 00:0f:a3:74:5b:2c IEEE 802.11: deauthenticated due to local deauth request

With WPA-PSK2 AES or TKIP encryption - not supported by RT2500 driver
With WPA-PSK1 AES encryption - supported by RT2500 driver but no configurable in Kamikaze (might test this with some other router)

In WPA-PSK1 TKIP testing I did use:

Code:

insmod rt2500.o
ifconfig ra0 up
iwconfig ra0 essid OpenWrt
iwconfig ra0 mode managed
iwpriv ra0 set Channel=5
iwpriv ra0 set AuthMode=WPAPSK
iwpriv ra0 set EncrypType=TKIP
iwpriv ra0 set WPAPSK=somekey
iwpriv ra0 set TxRate=0
dhcpcd ra0

DSM-G600 - NetBSD hdd-boot - 80GB Samsung SP0802N
NSA-220 - Gentoo armv5tel 20110121 hdd-boot - 2x 2TB WD WD20EADS

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB