macsat.com OpenWrt and ASUS WL Forum
November 21, 2008, 11:24:46 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?
Login with username, password and session length
News: Back to macsat.com
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: SMCWAPS-G and 2.6 Kernel  (Read 2247 times)
0 Members and 1 Guest are viewing this topic.
Go_CP
Newbie
*
Offline Offline

Posts: 7


View Profile
« on: February 28, 2008, 00:32:42 AM »

The  MGB100_400S07 FW uses 2.4 kernel on SMCWAPS-G. Has some one tried to upgrade the kernel to 2.6.

Most of the development packages that I use in debian complains that the Kernel is too old. Is it hard to upgrade the kernel. Is there a wiki or is there a high probability that I will brick the device
Logged
bpr
Newbie
*
Offline Offline

Posts: 12


View Profile
« Reply #1 on: February 29, 2008, 12:21:58 PM »

The forum search does the trick: have a jtag when experimenting. This enables you to recover from flashing garbage (which will inevitably happen)

Also one big problem would be the size growth of the kernel. Ofcourse I would also be thrilled to see 2.6 running on my box.
Logged
grobbel
Newbie
*
Offline Offline

Posts: 4


View Profile
« Reply #2 on: May 20, 2008, 12:20:22 PM »

Hello,

I see you are running Debian on a smcswap-g? Could you please enlighten me on how to get the wireless working with WPA/PSK? The wireless connection works very well with Schufti's firmware. I'm running a normal Debian x86 version from built-in disk, so no uClibc version.

Could this rt2500apd binary have anything to do with it?
Readelf tells me it won't run without uClibc, so I put those libraries on the debian partition aswell, and now this program can be executed. It just doesn't seem to do very much...

Is this rt2500 driver module similar with the ralink rt2x00 driver which is available in the Linux 2.6 tree? Then I would be interested in trying to get a bootloader installed wich can boot a newer kernel to make wpa_supplicant work. Did somebody make a howto about something like that by any chance?

I'm a complete newbee, just interested in playing/learning some new stuff, hopefully without bricking my precious little wlan bridge (as it is my laptops only means of communication :-)

Thank you for your time!
Joost de Greef (Berlin)
Logged
Go_CP
Newbie
*
Offline Offline

Posts: 7


View Profile
« Reply #3 on: May 20, 2008, 17:26:05 PM »

I could not get the 2.6 kernel to work with the time I had.

I am running debian etch with 2.4 kernel. I could not get "insmod rt2500sta" to work for wireless. Did not know what I was doing wrong. So I downloaded the wireless-tools and udhcpc packages from debian and used the following in etc/init.d/rcS to get the wireless connection. (make sure you replaces the x below with the relavent information for your environment)


#-----------------------------------------------------------------------------------------------------------------------
# Configure interfaces
#
ifconfig wl0  0.0.0.0 up &
ifconfig eth1 0.0.0.0 &
ifconfig lo   127.0.0.1 up
iwconfig wl0 essid xxx mode Managed channel xx ap xx:xx:xx:xx:xx:xx wl0 rts off frag off key open xxxx-xxxx-xx
#-----------------------------------------------------------------------------------------------------------------------
# Bridge Network
#
brctl addbr br0
brctl addif br0 eth1
brctl addif br0 wl0
ifconfig eth1 0.0.0.0
ifconfig wl0  0.0.0.0
ifconfig br0  0.0.0.0 up
/sbin/udhcpc -i br0                                              #Added in order to obtain an ip-address from the router
#-----------------------------------------------------------------------------------------------------------------------
Logged
grobbel
Newbie
*
Offline Offline

Posts: 4


View Profile
« Reply #4 on: May 22, 2008, 09:40:13 AM »

Kudos!

Your reply made things work here too. I now use iwpriv and udhcpc as you suggested. Still, about half the time the bridge doesn't get an IP it seems. The default dhclient installed by debian doesn't work at all with the kernel provided in Shufti's firmware. I'm going out for parts today to have a look at the serial output.

How did you start kernel 2.6? Do you use redboot/grub or something?
Did you merge the '2 button-pressed==restore firmware' code from the original kernel with your bootloader somehow?

Thanks a lot.
Joost de Greef.
Logged
karoly
Newbie
*
Offline Offline

Posts: 2


View Profile
« Reply #5 on: June 01, 2008, 03:07:09 AM »

Hello there,

Could you guys enlighten me how Debian etch can be installed on SMCWAPS-G? I didn't know it was possible until I read this thread.

Thanks.
Logged
grobbel
Newbie
*
Offline Offline

Posts: 4


View Profile
« Reply #6 on: June 05, 2008, 13:26:44 PM »

First, know what to expect. your smcswaps-g is a 486 with 32MB ram, which won't make for a very fast machine after you install debian :-)

I'm a newbee too, so i used a newbee method:
- upgrade the firmware to one of Shufti's latest versions with autoinit/autofs support.
- create a root/swap/home partition using the web interface
- dump a debian image onto the home partition (i used one from colinux which was lying around here anyway).
- copy the files from the image to your root directory.
- check if you have all the files required in new_root/dev
after that; chroot new_root bash
- make sure the debian /etc/network/interfaces file is configured
- edit your debian /etc/fstab.
- make a link from sbin/init to autoinit
- install sshd or make sure your telnet accepts logins from root (aptitude should work now)
- exit from the chroot
after that;
- reboot your machine...
- use tune2fs to change your root/home partitions to ext3 (optional ofcourse)
- mkswap your swap partition
- reboot again.

getting the wlan to work properly was a bit tricky, it seems the dhclient which comes with debian requires some extra kernel options, and the wpa/psk settings have to be set in a specific order.

for me, the machine works perfectly as a bridge, but everything else is a little slughish. I'm still trying to find time to figure out which bootloader i should use to start a 'normal' kernel and how to get that bootloader to behave nicely should i want to 'repair' the firmware.
There are some instructions around on this forum on how to make serial port connection, which is a fun project and a serial connection helps should you mess up the network settings (remember to run a getty on ttyS0).

I hope it works for you too!
Joost.
Logged
karoly
Newbie
*
Offline Offline

Posts: 2


View Profile
« Reply #7 on: June 09, 2008, 07:22:43 AM »

Thanks a lot for your detailed instructions! I haven't been able to make it work yet though. I keep trying...
Logged
grobbel
Newbie
*
Offline Offline

Posts: 4


View Profile
« Reply #8 on: July 06, 2008, 19:54:08 PM »

Did you manage?
If not, where did you get stuck?
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

English Steel 1.6 © Saxon North Technologies
Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.558 seconds with 24 queries.