Restoring wlan-ng.conf, no "sdmgr" problem....
I'm very new to my sl-5500, and to linux in general. I'm attempting to use a Lucent (Orinoco) WaveLAN Gold wireless card with my Zaurus via pcmcia to cf adapter. While editing wlan-ng.conf with vi, I must have made a mistake as it didn't work, and now I have no sd card support. Upon startup I can see something about sdmgr[97]: no such device. Any idea what I did to cause the sd issues? If someone could post the beginning and end of their wlan-ng.conf for rebuilding purposes, it would be much appreciated. I would just reload the ROM, but I have no input method now as I can't sync, and have no cf card. Also, is it going to be necessary to edit spectrum.conf?, as I have seen this discussed as well. I should add that the only sign of the card's presence is the output from cardctl ident: product info: "Lucent Technologies", "WaveLAN/IEEE", "Version 01.01", manfid: 0x0156, 0x002
function:6 (network) . No wireless extensions listed. Thanks.
- Login or register to post comments
- Email this page


Restoring wlan-ng.conf
If you have access to a command line (either through terminal console or by booting to single user mode), you can restore a pristine copy of wlan-ng.conf from a tarball in ROM:
tar -xvf /root/.home_default.tar home/etc/pcmcia/wlan-ng.conf
No idea on the sd card or WiFi issues.
-David
wlan-ng.conf
Thanks for the reply , I'm learning basic linux commands/structure little by little, but all that I know about .tar is that its a type of compression, right? Sorry to be so helpless but could you explain the steps further? Also I'm assuming that this is something that I can perform without reading from a card given my situation. Thanks a lot.
Well, I executed the
Well, I executed the command, and the system didn't object visibly, but no dice. Wlan-ng.conf remains unchanged from its corrupted state. What does this command do exactly? My guess is that it somehow decompresses just this target file and overwrites it correct? How do you just get wlan-ng from default.tar and nothing else? Also any idea why it didn't work? Thanks.
Yes, tar is a compression
Yes, tar is a compression program, much like zip in Windows. The first item after the tar command is a set of flags: x=extract, v=verbose, f=filename specified (Tar was originally designed to work on tape units in Unix, hence its name "Tape ARchive"). The second item is the name & path of the tar file. The following items are a list of files to extract from the archive -- in this case just the home/etc/pcmcia/wlan-ng.conf file.
Can't think of any reason at the moment why it wouldn't work for you. I'll have to think it over...
Well I figured out the SD
Well I figured out the SD problem, it was unsurprisingly unrelated (formatting issue). So now I can re-flash I guess. I've noticed that the terminal says unfinished jobs now when I quit, after entering that command line. If someone with an sl-5500 could give some advice on how to re-edit my wlan-ng.conf for use with this orinoco card as listed above it would be great. I wonder if the orinoco driver is included in this rom? (2.4.18) Thanks.
That's ROM 3.1x and I'm on
That's ROM 3.1x and I'm on 2.38 using dialup so rather clueless.
Did you do a search at oesf to see what other people did there?
If those unfinished jobs are old, I would kill them. Maybe start another thread about using the command line to do stuff? Also see the stuff I have on my two sites for newbies?
Ah, bunch of stuff with the following search:
http://www.google.com/search?hl=en&ie=ISO-8859-1&q=orinoco+driver+zaurus...
sdjf
sl5500 ROM 2.38
Lynx Version 2.8.1rel.2
http://www.sdjf.esmartdesign.com
http://www.sdjf.wordpress.com
Yeah I've been to oesf quite
Yeah I've been to oesf quite a lot, (have it bookmarked) and it has some pertinent information. A lot of my problem I think is format and not having any experience with linux command line. I'll keep on trying though. Thanks.
I have more time now, so I
I have more time now, so I can give you the URL of my command line newbie page:
http://sdjf.esmartdesign.com/new.html
It has annotated links to what I think are the best places to go for people who aren't techies to learn stuff. And gives URLs of the relevant page(s) in my blog as well.
I really like the article I used when I got back into the computer world again, called something like "learn unix in 10 minutes." It's a really good starting place.
You might also look at the hints I give on my console tutorial page about troubleshooting.
http://sdjf.esmartdesign.com/tutorial.html
I try really hard on the site to explain stuff instead of expecting people to know it all, although it's harder to do on the ipk installation page, which is so complex.
Anyhow, I think the most important thing to do is post exact copy of commandline activity so people can help better diagnose. If you are at least set up to sync with a main computer, you could copy and paste console stuff into a file, sync to main computer, and post from there.
Another really helpful place to go would be irc.freenode.net for chat, where you can get instant feedback. Folks on the channels there have helped me over some rough spots, a whole lot. Catch is that their tolerance for people who haven't done their homework by reading the man page and trying stuff out first is extremely limited.
People on #zaurus should be understanding if anyone is actively reading. And, since the commands are bash commands, after you read the man page for the relevant command (and get royally confused), #bash is a good place to go for clarity and suggestions for helpful webpages.
sdjf
sl5500 ROM 2.38
Lynx Version 2.8.1rel.2
http://www.sdjf.esmartdesign.com
http://www.sdjf.wordpress.com
I appreciate the advice, and
I appreciate the advice, and your time used in response. I have myself felt irritation when people
want everyone to do their research for them. Whats tricky for me is generating the search terms for
a topic that I know little about. Ive tried to sync with no success yet. I can ping the zaurus however,
to there is a connection of sorts. Ive tried the obvious firewall settings etc, but its been a while. I
would imagine that its possible to edit files on the zaurus via a secure shell right? That might be the
way to go for ease of typing/navigating. Half of the problem is my difficulty navigating vi with the mini
keyboard. Thanks for the links/help.
Gosh, I have no trouble with
Gosh, I have no trouble with vi on my Collie, but maybe that is because I do not use visual mode in vi. I use it to enter stuff, but often pop back out into command mode to do a lot of stuff.
See, I am kind of a nerd about syncing and firewalls as I've never done it, all I have on site is my Zaurus, and all the ssh I do is via my modem on the web to my friends' Linux machines.
The idea of a secure shell sounds right, but that's a shakey area for me. I just know I do fine with vi, like it better than all the other editors I have as I can enter global commands. But the 47 character display is definitely a problem. I have learned to NOT use command line append :a or insert :i modes as the version I have doesn't save more than some of what I enter if I do long lines. Instead, I go into 'append' or 'insert' in visual mode, and then I know the text I enter is secure, no matter how long the lines.
I used vi on Unix back when Linux didn't exist yet, and I recall getting very confused by the need to keep track of visual commands. Uh, maybe it was 'ed', or 'ex', but I like things that I can see in front of me while I work.
sdjf
sl5500 ROM 2.38
Lynx Version 2.8.1rel.2
http://www.sdjf.esmartdesign.com
http://www.sdjf.wordpress.com
Oh, about that wlan-ng.conf
Oh, about that wlan-ng.conf file, can you get an unedited, un-messed-up copy off of a backup? Wait...I have never edited mine in ROM 2.38. It might have some things in different directories, but if you want to PM me your email address, I can email mine to you for comparison if you want. Too long to post it here. Hmmm...the other thing I could do is put it on my feed here if you want. Actually, that'd be quicker and easier for me if you want. I wish another 3.10 user would pop in and offer you theirs. Have you asked at oesf if anyone could PM you an unedited ROM 3.10 one? Surely someone wouldn't mind.
sdjf
sl5500 ROM 2.38
Lynx Version 2.8.1rel.2
http://www.sdjf.esmartdesign.com
http://www.sdjf.wordpress.com
Hmmm. If there isn't
Hmmm. If there isn't anything you need to hang on to, you could always do a hard reset (do you have a manual?) and start out with the unmodified ROM the way it came after you flashed it??
I'm getting lost about how far you've gotten, but I'm sure if you post in the Networking or in the Sharp ROM Forum, you'll get helpful response. I think oesf'ers can understand your getting lost and needing more detailed help. So many more people read both those subforums regularly.
You do need to get the sdmgr working again, and my 2.38 is most likely way different for that, it's better not to mess with files at this stage that aren't for your ROM as you can't make a backup the way stuff is now, right?
sdjf
sl5500 ROM 2.38
Lynx Version 2.8.1rel.2
http://www.sdjf.esmartdesign.com
http://www.sdjf.wordpress.com
Did you do an ls -l of
Did you do an ls -l of (please post precise results):
ls -l home/etc/pcmcia/wlan-ng.conf
And can you post copy of input/output when you tried doseas' tar command? What directory are you in? Enter "pwd" to find out.
His command, if you ran from /home/root, will have put the conf file in:
/home/root/home/etc/pcmcia/wlan-ng.conf
Try and ls -l of that as well:
ls -l /home/root/home/etc/pcmcia/wlan-ng.conf
if there are 2 separate files, you should back up the messed up one first:
cp -p /home/etc/pcmcia/wlan-ng.conf /home/etc/pcmcia/wlan-ng.conf.bak
And then move the extracted one into that position, assuming tar extracted the file:
mv home/etc/pcmcia/wlan-ng.conf /home/etc/pcmcia/wlan-ng.conf
The reason for the mess may be that the above two are very different paths to the file.
Does any of this make sense? When you unpacked, since you were probably in /home/root/, it probably put the file in /home/root/home/etc/pcmcia/wlan-ng.conf. If you wanted it to go into /home/etc/pcmcia/wlan-ng.conf, then you would have had to do "cd /" before running tar.
How to extract a single file from a tar is at http://sdjf.wordpress.com/extract.html
I also have trouble unpacking tars, never am sure where the file is going to end up, so it isn't just you. ;)
sdjf
sl5500 ROM 2.38
Lynx Version 2.8.1rel.2
http://www.sdjf.esmartdesign.com
http://www.sdjf.wordpress.com
Wow, nothing new for a day
Wow, nothing new for a day or two and now a whole bunch of info to read.... Thanks for the ideas
sdjf. If you want to post your wlan-ng.conf for comparison that would be great, because I think that I
just made some kind error with format or spacing etc. I'm going to do some more looking around in
subdirectories for that unpacked .conf as well. Thanks for the help.
Okay, well it took a while
Okay, well it took a while to figure out how to tell ftp the right path, but I've finally got copies of my wlan-ng.conf and wlan-ng.opts on my feed.
Now, awckk...the urls...hey, I got em right, they work! But there's a page title that isn't part of the files if you view in browser.
http://sdjf.tyrannozaurus.com/sl5500/wlan-ng.conf
http://sdjf.tyrannozaurus.com/sl5500/wlan-ng.opts
no guarantees, but they are the ones that my Z came with, dated from 2002. Grabbed the opts file in case it might be needed.
Remember I've a different ROM... the files were in /home/etc/pcmcia/ and may be elsewhere on your ROM.
gotta run.
sdjf
sl5500 ROM 2.38
Lynx Version 2.8.1rel.2
http://www.sdjf.esmartdesign.com
http://www.sdjf.wordpress.com
you said: " sdmgr[97]: no
you said:
" sdmgr[97]: no such device."
Let's see if you have the sdmgr for sure. The message may have meant no recognized sd card was inserted as of startup.
Do the following and copy exact results:
ls -l /sbin/sdmgr
find / -name sdmgr
I think it may be same locale as mine. If not, double check with the "find" command as above and that'll tell you if it's anywhere on your system. Let's see these results before I make more suggestions.
cheers
sdjf
sl5500 ROM 2.38
Lynx Version 2.8.1rel.2
http://www.sdjf.esmartdesign.com
http://www.sdjf.wordpress.com
Another important command
Another important command that will give us a clue about your expansion cards and their status is the "mount" command, no arguments.
Also, have you seen my expansion card page?
http://sdjf.esmartdesign.com/cards.html
Lots of advanced stuff there with examples for figuring out if cards are okay or not, a little too advanced right now, but maybe bookmark it for later.
sdjf
sl5500 ROM 2.38
Lynx Version 2.8.1rel.2
http://www.sdjf.esmartdesign.com
http://www.sdjf.wordpress.com
I just noticed your
I just noticed your additional posts, I tried to execute the command but my crappy original battery
died. I have my a/c charge at home and will try a little bit later today. Thanks for posting the .conf
and .opts files. Much appreciated. Just a side note, maybe the Zaurus is gaining in popularity,
every time I have been here there are a good number of guests. Interesting.
I don't think it's
I don't think it's popularity has gained. It is more like the site was down a while, so traffic due search engine hits died out and takes a while to build back up again. I am sure our posts are giving the search engines more to find. ;)
At least, that's my impression. Oh, also, sometimes people don't bother signing in, either.
Yeah, batteries can be a major issue. Some people buy an extra to have around, or get other portable charging devices like the one from Boxwave.
sdjf
sl5500 ROM 2.38
Lynx Version 2.8.1rel.2
http://www.sdjf.esmartdesign.com
http://www.sdjf.wordpress.com
Okay, in order:
Okay, in order: -rwxrwxr-x 1 root root 6316 Dec 31 1969 /sbin/sdmgr
and: /sbin/sdmgr
I'm not sure why, but I had to su to issue the second command. Otherwise it says permission denied
about 50 times. I have a Linksys WCF11 coming in the mail from China sometime pretty soon, and
just got an sl-5600 running OZ, so I might just devote time to making the network applicatons that
I'm interested in run on that instead. I know nothing about compiling, so that might be a bigger
hassle than the ones I have now. Sorry for the wait on those commands, and thanks again.
Okay, so it wasn't true that
Okay, so it wasn't true that you have no sdmgr or sd support.
I think " sdmgr[97]: no such device" meant no recognized device was in the SD slot.
Next time, try googling the messages you get to see what they mean? I usually do that, if I can, before asking for advice because I know that's what my mentors would do if they didn't know what something meant.
Yeah, su is something you have to use a lot on your ROM. I'm glad I don't have to hassle with it on my outmoded but very user friendly 2.38. ;)
sdjf
sl5500 ROM 2.38
Lynx Version 2.8.1rel.2
http://www.sdjf.esmartdesign.com
http://www.sdjf.wordpress.com