yashsingh1/xdaforums huggingface dataset:
[JASJAR, XDA Exec, MDA Pro General] BigDamHero:
Hi goxboxlive, thanks for the reply.

Is there instructions on how to do this? That is what I'm struggling to find on my own. Both Ifconfig and Iwconfig dont seem to be recognised commands - and thats the limit of my Linux command line networking knowledge. Without WIFI obviously I can't update GPE.

Yeh I had read about that, but this is a different problem. They keyboard works outside of Opie in the shell itself (e.g. if you go to the menu - and select terminal 1) but not in the actual graphical enviroment. Just completely ignored the keys. If I hit keys randomly I got it to behave like the "9" key was jammed down. Then I had to soft reset!

Yes I totally appreciate this. Still amazing stuff and I can't resist playing with it :-) I'm a (casual) programmer but this is way beyond me.

Lewis
[JASJAR, XDA Exec, MDA Pro General] SOG:
Hi guys,

I am kind of new, but I wonder what can we gain by running Linux on the universal? can we run like desktop Linux software ? or it has to run "linux PDA software"? But I don't see any "linux PDA software" ...... so it can run Desktop linux software ? :p kind of confused :p

Jason
[JASJAR, XDA Exec, MDA Pro General] goxboxlive:
To get wifi running. Setup your wifi access point as DHCP.

the form a shell/terminal on universal: modprobe acx -> ifup wlan0 then your up and go.

The keybaord stuff i dont what is. I'll test a image to see if it happends with me to.

Gpe is up2date. All of the images i am making is buildt from the latest sources.
[JASJAR, XDA Exec, MDA Pro General] goxboxlive:
Yes if you crosscompile the osurces you are able to run most of the linux software on the Universal. But rememeber Universal is only suplied with 64MB of ram.

In example, i have been running Debian on my Universal. It ran slow, but it worked.

But, there is a bunch of applications for linux pda: http://www.angstrom-distribution.org/repo/
[JASJAR, XDA Exec, MDA Pro General] BigDamHero:
Hi again,

Sorry to keep asking for help but when I enter

modprobe acx -> ifup wlan0

I get a fatal error inserting acx. "Unknown symbol in module or unknown parameter"

Thanks

Lewis
[JASJAR, XDA Exec, MDA Pro General] BigDamHero:
Ok i just did instead

modprobe acx

And that seems to have activated the WiFi device. The green LED is flashing and in ifconfig I can see wlan0. I went into the "Network Settings" application that comes with GPE and entered an IP address and my Wireless Encryption Key and Channel etc.

...but its not working. Is the command I used about not correct?

Getting Closer !!! :->

Lewis
[JASJAR, XDA Exec, MDA Pro General] goxboxlive:
It was ment as:

modprobe acx [enter]

ifup wlan0 [enter]

You might also want to do: ifdown usb0 [enter]

On my machine wlan0 wouldnt work with usb0 loaded. Usb0 is loaded at boot.

I dont know about the gpe network config, i have never used it, i am only using the terminal: Here is the content of my /etc/network/interfaces file.

With this one you can in example do:

It will also load/deload the modules so you dont have to think about "modprobe acx" anymore.
[JASJAR, XDA Exec, MDA Pro General] BigDamHero:
Please see my next post
[JASJAR, XDA Exec, MDA Pro General] BigDamHero:
I have solved my wireless problem - and I think (dare I say it it) it was a problem with the drivers!

No matter what I put in /etc/network/interfaces for essid - the device will not connect unless the network is called "STA78C50F"

"STA78C50F" seems to be hardcoded into the drivers.

For example here is my interfaces file: (note the ESSID)

# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# Wireless interfaces
iface home inet dhcp
wireless_mode managed
wireless_channel 11
wireless_essid belkin54g
pre-up modprobe acx
post-down modprobe -r acx

After it fails to connect - i can run dmesg and see:

<4>ESSID doesn't match! ('belkin54g' station, 'STA78C50F', config)

Whatever you put in the file, it still looks for a network called STA78C50F

If I rename my wireless network to STA78C50F it connects just fine!!!!! At least for non encrypted networks. Still seems to have a problem with encryption.

any ideas?

thanks

Lewis
[JASJAR, XDA Exec, MDA Pro General] BoSJo:
Hi. loooong time no see :-)

Can confirm no keyboard and same Wifi troubbles as BigDamHero

Applies to both Opie images from snapshot.

I can however if I just rool my thumps over the keyboard get it working, but it just goes haywire and keeps entering the same letter.
[JASJAR, XDA Exec, MDA Pro General] cr2:
Something must be wrong with your /etc/network/interfaces file.

Try to run

iwconfig wlan0 essid FOOBAR

on the command line.
[JASJAR, XDA Exec, MDA Pro General] BigDamHero:
Nope, I've been over it numerous times. The file is fine. In fact I posted the content of mine above. It's getting that weird network name elsewhere (hard coded by accident?)

Iwconfig and Iwlist do not seem to be included with the distro. Was the first thing I tried.

I think it's the latest snapshot, especially as bosjo has the same problems.

Lewis
[JASJAR, XDA Exec, MDA Pro General] sponged:
I can confirm I'm having the same issue with the openmoko snapshot from gnulinux.biz and the corresponding kernel ( zImage-2.6.20-hh2+cvs20071029-htcuniversal-20070306184827 )

My /etc/network/interfaces file wlan0 section has:

iface wlan0 inet static
pre-up modprobe -v acx
post-down modprobe -r acx
address 10.0.0.9
netmask 255.0.0.0
wireless_mode managed
wireless_keymode open
wireless_channel 11
wireless_essid SWAMR-54108
wireless_key <my wep key>

After running ifdown usb0 and ifup wlan0 (I see the modprobe -v acx going through) my dmesg output looks like:

<4>scan table: SSID='SWAMR-54108' CH=11 SIR=49 SNR=38
<4>peer_cap 0x0471, needed_cap 0x0001
<4>ESSID doesn't match! ('SWAMR-54108' station, 'STA523C74' config)
<4>no matching station found in range yet
<4>acx_set_status(1):SCANNING
<4>starting radio scan
<4>acx_i_timer: adev->status=1 (SCANNING)
<4>continuing scan (1 sec)
<4>scan table: SSID='BTHomeHub-F479' CH=1 SIR=25 SNR=29
<4>peer_cap 0x0411, needed_cap 0x0001
<4>ESSID doesn't match! ('BTHomeHub-F479' station, 'STA523C74' config)
<4>scan table: SSID='SWAMR-54108' CH=11 SIR=47 SNR=38
<4>peer_cap 0x0471, needed_cap 0x0001
<4>ESSID doesn't match! ('SWAMR-54108' station, 'STA523C74' config)
<4>no matching station found in range yet
<4>acx_set_status(1):SCANNING
<4>starting radio scan
... and so on

It seems to be reading the essid of my wireless router on channel 11 (and that of my neighbour on channel 1!) but failing to match those against STA523C74. I don't know where it's getting that essid from - grepping for it in all files below /etc returns ... nothing. Most odd.

The image for opie prior to the most recent update at gnulinux.biz had a wlan that worked for me. I tried the currently available image for GPE, but the touchscreen wasn't working (booting either with or without wlan switched on in wm5 - maybe this was that /etc/ts.conf issue..?), and when I got past the screen calibration by blarting the k/b, the wlan failed intermittently, requiring the module reloading every 2 mins or so.

iwconfig isn't part of the Openmoko image, it seems. Certainly it's not on the path for root.
[JASJAR, XDA Exec, MDA Pro General] cr2:
Do we have a public ipk feed ? I've built opie yesterday and have

160MB of ipk's.
[JASJAR, XDA Exec, MDA Pro General] BigDamHero:
Hey guys,

Just a couple of additional points

I have another problem which *may or may not* be related to "the wireless issues" we're all having.

I can't run a lot of programs that use the internet/network because of seg faults. This is true of gpe-mini-browser and gaim, which both crash when trying to access the network. As they're all crashing with seg faults, and are accessing the net, anyone think they could be related?

NOTE gpe-mini-browser is only installable using the -force-overwrite command, otherwise it will fail for lack of libs (you can install these libs manually but get the same seg fault as above).

Lewis
[JASJAR, XDA Exec, MDA Pro General] BigDamHero:
You mean like?

http://www.angstrom-distribution.org/repo
[JASJAR, XDA Exec, MDA Pro General] cr2:
Yes. Get the wireless-tools from there.
[JASJAR, XDA Exec, MDA Pro General] BigDamHero:
Ah I'm with you cr2, my apologies. I'm having a slow day/week/life.

I'll give them a whirl later today see if they "override" this STA78C50F business.

Lewis
[JASJAR, XDA Exec, MDA Pro General] BigDamHero:
Hi,

OK I can confirm cr2's idea does indeed work. Using iwconfig does manage to change the essid. Not tried it with an actual network yet but I have checked my dmesg output and it is indeed looking for right station essid. So this may provide a solution of sorts.

So I imagine this narrows to problem down to being in the ifup and ifdown programs? and not the wireless drivers themselves?

I am still getting seg faults for applications when they try to access the network (see above posts)

thanks

Lewis
[JASJAR, XDA Exec, MDA Pro General] goxboxlive:
It seems like there is a bug in the file /etc/init.d/opie.

Add

export QWS_KEYBOARD=USB:/dev/input/event3

in the begining of the file where the other exports are listed. Seems like our opie file is removed from the openembedded db.

The wifi stuff i havent tested for a while either. There has been some updates to the acx code lately, i might be that. But before we report any bug to the acx driver maintainer i think we should fix our own htcuniversal_acx.c driver first, it's very buggy.
[JASJAR, XDA Exec, MDA Pro General] BigDamHero:
By changing the essid with iwconfig I can get a connection on an encrypted network ok. But it drops out when i run ipkg.

I left my universal pinging my router for 40 mins and the connection was fine. Soon as i ran ipkg the connections drops as soon as it tries to download something.

hope that helps!

Lewis
[JASJAR, XDA Exec, MDA Pro General] goxboxlive:
A new opie-image is uploaded with the export line in the opie file. This will make the keyboard work again in opie.

Wireless-tools isent included yet. I dont know why it is excluded from the images.
[JASJAR, XDA Exec, MDA Pro General] sponged:
Well, looks like the STAXXXXXX is coming from the initialisation in the acx driver:

adev->essid_len =
snprintf(adev->essid, sizeof(adev->essid), "STA%02X%02X%02X",
adev->dev_addr[3], adev->dev_addr[4], adev->dev_addr[5]);

in common.c ( http://handhelds.org/cgi-bin/cvsweb.../acx/common.c?rev=1.8&content-type=text/plain ) I guess something in userspace should be overwriting it, but isn't..

I'll try and get iwconfig from somewhere :-)
[JASJAR, XDA Exec, MDA Pro General] BigDamHero:
http://www.angstrom-distribution.org/repo/?action=details&pnm=wireless-tools

Lewis
[JASJAR, XDA Exec, MDA Pro General] goxboxlive:
** Updated images**

I have included wireless-tools in to the updated images. For now only Opie updated. I will also try to build the rest of the images and upload them. Keyboard should also work in Opie now.

Note: I havent tested the images, i have no time to test them all.

Report back if there is something that doesnt work.

Known bugs in Opie: Suspend doesnt work, opie sounds doesnt work.
[JASJAR, XDA Exec, MDA Pro General] BigDamHero:
I only tested new Opie breifly so I apologise if this is innacurate - but I believe I couldn't type any symbols (i.e. pressing function + key didnt work). Worked for normal letters and numbers though.

Also the wireless still won't stay connected. And I'm still getting Segmentation faults in the latest GPE image for..well pretty much everything (GPE-Mini-Browser and Gaim being examples).

thanks - keep up the amazing work

Lewis
[JASJAR, XDA Exec, MDA Pro General] BoSJo:
Tested new image.

Running 'Modprobe acx' just says that /lib/modules/2.6.20-hh1/modules.dep dossent exist, and it dossent.

2.6.20-hh3 does.

Wrong userspace in image?

Edit.

My bad....must have made some error along the way. Works now?
[JASJAR, XDA Exec, MDA Pro General] sponged:
Just to confirm wlan works nicely for me in the latest Opie image (Angstrom-opie-image-test-20070320-htcuniversal.rootfs.tar.bz2) and I have the same lack of fn-key/symbols reported above (eg Fn+1 gives "1", not "|".)

The wlan is stable enough for me to attempt "ipkg update" and "ipkg install dillo" - but the latter failed with an ipkg error to do with dependencies. Trying again with "ipkg -force-overwrite install dillo" installed dillo, but it won't run... Heh.

My ignorance of this platform is pretty much complete. Any suggestions for how to try and install a browser?

Also, goxboxlive, what version of gommunicator are you reporting success with on the handhelds.org universal status page? Any hints for installing it?

Thanks goxboxlive for your image repository! It is much appreciated here!

On edit: well, of course dillo wasn't going to work on opie without X! :)

I've downloaded and booted into the Mar. 20th openmoko image; the keyboard Fn-key mapping works, and wlan works well enough for me to use ipkg to install dillo, and dillo apparently works. Recommendations for web-browsers are still welcome though!
[JASJAR, XDA Exec, MDA Pro General] goxboxlive:
The symbols missing in Opie is a known issue. We havent got Opie to manage to read from the keymap file.

In the other images the symbols works, x is reading the symbols out of the kernel keymap file.

Wireless is unstable at 22Mbit/s. It might also be unstable at 11Mbit/s. I am allways running WLAN at 1Mbit/s (you wouldnt notice any diffrents form 22) because it seem like that is the most stable speed for now.

iwconfig wlan0 rate 1
[JASJAR, XDA Exec, MDA Pro General] goxboxlive:
I cant say trhis enough :-) "allways change the kernel zImage when installing a new image". This is because i am allways building out of the latest kernel source.

So in the folders where the images are hosted you will allways find a kernel zImage wich belongs to the image in the current folder.

example: The zImage wich is suplied in the gpe folder wouldnt work with the one in the OPIE folder. This is because Opie is newer build than GPE (currently i have som problems building GPE).
[JASJAR, XDA Exec, MDA Pro General] goxboxlive:
For using a web browser in Opie you can use konqueror embedded. I have often included this one in the image, but the ones i am building now is without it. But even though konq/e is included you have to set it up manually. Liek creating a shortcut in applications and export kdedir to /usr.

You will also have to install some fonts to let konq/e work. Check out openzaurs tips and trics, it's explained there.

The symbols doesnt work, it's explained in another post.

The gomunicator i tried out where build from the xanadux cvs, but i changed some of the code in it before compiling. But, just use the phone app. in Openmoko, it's allmost the same. But just remember to start gsmd before starting the phone app (have to tap phoen app twice to let it start).

gsmd -p /dev/ttyS0 -s 115200 -F

Yes, symbols works in X.
[JASJAR, XDA Exec, MDA Pro General] BigDamHero:
Thanks. With this wireless is definitely more stable - but still drops out pretty often. Not as stable as the 2.6.16 release which hardly ever drops out (for me).

Also it's rate 1M i think

Lewis
[JASJAR, XDA Exec, MDA Pro General] techbart:
Wifi woes

:( Sorry to sound knuckle-headed here, but I'm having some issues in getting wifi working in any way on the latest build of Opie for the Universal. In previous releases, I understand that the acx module had to be probed in orderto get it running, but even then I had no luck picking up networks from the network manager. However, in the lates release of Opie, I can't even modprobe acx anymore. Any ideas?
[JASJAR, XDA Exec, MDA Pro General] BigDamHero:
ModProbe should still be there...you definately in a root terminal?
[JASJAR, XDA Exec, MDA Pro General] goxboxlive:
Hi there.

It seem like you are using a older zImage than the opie-image. Update your zImage and try again.
[JASJAR, XDA Exec, MDA Pro General] techbart:
Doh!

Me again. Turns out there was nothing wrong with acx, it was just my SD card being a bit temperomental in being read. I can get wifi working now, but there seems to be no wifi tools or iwconfig support from the console, so I can't drop the rate to 1M to get the connection stable. Even besides that though, the built in network front end isn't displaying any avilable networks.

I know that my device is picking up networks because on checking the syslog, I'm seeing repeated scan requests that fail to lock onto a network because the ESSID is different from what it's expecting:

"<4>peer_cap 0x0411, needed_cap 0x0001"

"<4>ESSID doesn't match! ('linksys' station, STA795C94' config)"

"<4>scan table: SSID='linksys' CH=11 SIR=23 SNR=0"

The syslog is littered with similar attempts to connect to various other networks, and from what Interface Information is telling me in network manager, and comparing it to the syslog, it seems that the ESSID has been locked to 'STA795C94'. I guess this is the reason I can't connect to any network, but I dont get why nework manager won't display anything when I hit 'Rescan Neighbourhood', or how to go about changing my ESSID without iwconfig support. I'd appreciate any help you guys can give on this. Thanks:)

P.S., I am using the latest Opie build and Z-image.
[JASJAR, XDA Exec, MDA Pro General] goxboxlive:
Openmoko-dialer

Openmoko-dialer is working with some edited source, both incomming and outgoing calls. What's left now is to make some sound routing an then we will have a working phone at least. Now, i only can hear what people say, they cant hear me, so it is something with the audio routing.

I also tried out Openmoko-messages but it didnt work. Have to look further in to it.

I'll upload a new openmoko image for test.

Just so you know, i havent testet it with pin code activation on, so i dont know if it will work when you use a pin code on your sim.
[JASJAR, XDA Exec, MDA Pro General] EyeOfTheStorm:
Sounds very nice .... thanks ... can't wait to grab your new image
[JASJAR, XDA Exec, MDA Pro General] EyeOfTheStorm:
Bug in new OpenMoko build

Hi goxboxlive,

in your new SD image, the touchscreen calibration, does not work. I can not click the croshair. Maybe you missed to add the touchscreen driver into the kernel, or there is a bug in the image itselfe.

I just tryed the "all-image" ... will give the developer one a try now.
[JASJAR, XDA Exec, MDA Pro General] sponged:
goxboxlive: Thanks for the new image(s)... I tried booting both the openmoko-all and -devel from your dir on gnulinux.biz/files/... dated 2nd Apr, but at the calibration stage there was no response to my tapping the screen. (tried with wlan switched off in wince, then tried again with it on...) Can you think of anything I should check?

Edit: Heh, EyeOfThe Storm beat me to it while I was typing this. We're on parallel timtrack.. :)
[JASJAR, XDA Exec, MDA Pro General] EyeOfTheStorm:
Thanks for your post, so I don't have to test the other image any more :`). I guess it was a small fault, i think goxboxlive can fix it.
[JASJAR, XDA Exec, MDA Pro General] goxboxlive:
Hi both of you.

This is so strange. I have had the same problem, and i thought it was something with that i havent updated the kernel. I updated the kernel and tried out the image i uploaded, both the devel and the all image and the TS worked for me.

I know we have had some problems with TS when WLAN is activated in WinCE, but i had the problem also without WLAN activated in last.

Try to both with flight mode enabled and see if that helps. Also try without flight mode. Maybe a combination with something. I know i havent had bluetooth enabled.

I have also tried to copy the pointercal file to /etc but it havent helped that either. There has to be some conflict with some wince settings at boot. I actually have no idea, maybe cr2 can help us figureing what it might be.

Let me know how it went.
[JASJAR, XDA Exec, MDA Pro General] sponged:
Just tried with flight mode on, wlan off, and got the same.

I remember reading about adding (or possibly removing ) a line in ts.conf in relation to this problem, but I can't find the reference for that anywhere - but if you're booting from the same image, I guess we both have the same /etc/ts.conf!

Could it be the haret version? I'm using 20070128.

When I use ctrl-alt-backspace to quit out of X, I can see the line "Extended Input Devices not yet supported. Implement it at line 625 in kinput.c" on the terminal screen - don't know if that's connected...

uname shows "Linux htcuniversal 2.6.20-hh5 #1 Mon Apr 2 12:32:48 CEST 2007 armv5tel unknown".

Anything you'd like me to try to get more debug, I'm quite willing :)

Thanks for your efforts goboxlive! My IP must appear quite frequently in the gnulinux.biz logs.. ;-)

Edit: typos.
[JASJAR, XDA Exec, MDA Pro General] goxboxlive:
I just dont get it now.

I was using this image yesterday but today the TS wouldnt work. Cr2 says is has to be a kernel bug. I guess he will look in to it. I'll make some new images when we have the TS working again.
[JASJAR, XDA Exec, MDA Pro General] goxboxlive:
Hi.

I have tested and tested different kernel versions and I have found out that the TS stopped working after hh4.

I t seems like we have to do a update of the TS driver.

Cr2 could you update to the new TS driver, we are kind of stucked now without TS.

There is a way to use the uploaded images with a hh4 kernel. Just check out hh4 instead of hh5 and compile and install the hh4 modules in to the Image. Also remember to use the hh4 zImage you created.

The images should be suplied with the latest libgsmd stuff wich works with Universal.

I will create new images as soon as cr2 update our kernel sources.
[JASJAR, XDA Exec, MDA Pro General] goxboxlive:
I have uploaded a Openmoko-image. It has a working TS, but its kernel hh4 with no buggy lcd after resume. I'll look into if i can make a patch or something.

To test out phone just open Openmoko-dialer (tap twice, dont know why) and make/receive calls. But just be aware of that the other part has to end the phone call, it doesnt work with gui on universal yet.

In terminal you can end a phone call with /etc/init.d/gsmd stop

To power up the modem again use /etc/init.d/start

I'll try to make a gpe image to (it has a new name, angstrom-x11-image) with openmoko-dialer/libgsmd installed. I have tried it out and it seem like it's working. Btw, it works even bether than in Openmoko (?) . More gui windows supported. I also try to add openmoko-messages to see how it behave.

I made the lcd resume hack included, so the lcd should behave normal when resuming now.

Now we only need sound working (mic part) .
[JASJAR, XDA Exec, MDA Pro General] sponged:
Hi goxboxlive, I tried out the Angstrom-X11-test image, so far. gsmd starts apparently ok, the dialer comes up on the screen, and I can enter a number and tell it to dial, but nothing seems to happen (edit: I mean the phone I'm ringing to doesn't ring - the dialer shows that it thinks a call is going on alright) . I'll have a look and see if I can find out more detail - I've only had a quick play.

The wlan continues to be unstable. I guessed and added a line wireless_rate 1 in my /etc/network/interfaces file, and when I do ifup wlan0 the module loads then it seems to issue a rate command, because there's what looks like an ioctl type error saying rate is not supported, but doing iwconfig afterwards shows the rate has indeed been set to 1M. I'll try taking out my wireless_rate line and doing it manually with iwconfig.

I wonder if I were to copy over the 2.6.16 kernel and its /lib/modules tree from one of the earlier images, how much would break in the current image?

Thanks once more for your continued efforts on the Universal - it's really appreciated!