yashsingh1/xdaforums huggingface dataset:
[JASJAR, XDA Exec, MDA Pro General] goxboxlive:
Some answers to the #htc-linux irc log

I read the irc log yesterday, and saw some comments for a opie-image based on angstrom distro.

Cr2 you wrote:

What do you mean by that? It is more updated thatn familiar. There are non updateing the OE for familiar, so i guess it's bether to stay with angstrom.

Yes i am aware of that, i guess it has something with the uncomment line in angstrom-glibc.conf. Have bnop idea actually.

But a way to get rid of it is to either boot with the physical lcd screen in portait mode, or you could after opie has started hit restart opie and everything should work fine again. Do not use the [restart] opie button, it work sometimes and sometiomes not. Restartas you restart X on your computer.

This i havent noticed, what do you mean by that?

This i have noticed, i can try to look in to it, otherwise i report to the angstrom team.

This is done by me, i dont want it to be autoloaded. Because i am using WLAN most of the time, and WLAN wouldnt work if USB0 has started. But a easy way to handle this is to add a a file named 'g_ether' with 'g_ether'. written in it in the /etc/modutils/ folder. I havce aslo done the same with ACX. I am using 'pre-up modprobe acx and post-down modprobe -r acx' in the /etc/network/interfaces. This is because i just want the modules loaded when i do a 'ifup wlan0/usb0, and unloaded when bringing them down.[/quote]

This, i have never tried, what does it mean?

I have noticed this, but i dont know what it is.

Also, scatterp has complained about the zImage for ramdisk kernel 2.6.12 is not working with SD cards bigger than 1GB, but that seems to be wrong. I tried it my self today, and it works with my 2GB SD card.

Also, i guess you just forgot to mention this. But when you do a reboot, the maschine will hang at prompt. Just hit a lether on the keybaord, hit enter and then write again reboot and the machine will reboot. This is a known bug in busybox, but i dont know how to fix it.

goxboxlive.
[JASJAR, XDA Exec, MDA Pro General] cr2:
It has hidden the boot messages with the nice picture. if there was a crash, i'll never know about it.

I was in the landscape mode, but suddenly it began drawing in the portrait. maybe it

is linked to the "cursor" problem.

I can make a screenshot, if you'd like.

Also an angstrom bug ?

Manual LCD suspend.

Something went wrong at the line 164 of this script.

PS. I'll post the roadmap_cvs.bb patch later.
[JASJAR, XDA Exec, MDA Pro General] hackfanatic:
Hmm...

the yes.. even i faced the cursor error .. in both portrait and landscape mode..

on using some applicaitions or just typing into the screen when the cursor appears it seems to expand onto the whole screen ( hope im making it clear enough :rolleyes: )

btw.. how do u switch off the WLAN... bluetooth and IR turn off from the tray icons but i cudnt switch Wlan off... Its a HUGE battery hog..!!

.....!!
[JASJAR, XDA Exec, MDA Pro General] goxboxlive:
The cursor error is now fixed. The problem was the boostplash. So i have disabled it and it works allright now. New images are available where you found the earlier ones.

The wlan can be shut off from the console by typing 'ifdown wlan0' to bring it up again you have to do 'ifup wlan0'. Just be sure that the acx module is loaded. It can be removed with 'modprobe -r acx' and reloaded with 'modprobe acx'.

To see if it is loaded or not do 'lsmod' and see if it is listed. The module htcuniversal_acx should be in the list. Do not unload it, leave it as it is
[JASJAR, XDA Exec, MDA Pro General] EyeOfTheStorm:
Battery problems

Hi goxboxlive,

I just read about your shutdown problem on IRC log. I have the same problem since 2 weeks now. The battery is loaded around 60% and the universal powers complitly off in wince. I got my Universal replaced from T-Mobile, they thought it was a device problem, but it is not. I have the same with the new device, now I have ordered a new battery, I will get it in the next days.

Do you have the same problem on your device?

The problem first apears one or two days, after I was trying one of the newer Kernel versions, could it be the case, that the kernel is writing a wrong value to the battery?

If this is the case, maybe we can fix the batterys ...

Regards EyeOfTheStorm
[JASJAR, XDA Exec, MDA Pro General] goxboxlive:
Yes this is still a problem i have. Also in WinCE. It has happend the last two-three days nowI guess there might be a problem with some of the latest kernel source updates.

Cr2: Do you have a clue what this can be?

EyeOfTheStorm: Are you using the powermodule? It is not in the kernel default, you have to enable it when in xconfig or whatever you use.
[JASJAR, XDA Exec, MDA Pro General] thePTS:
Hi, I want to say I am *VERY* happy about this project, and that now the phone is soon working, that is amazing! The windows distro with this phone has basically destroyed it (in many ways, my old qtek 2020 is actually more responsive / useable).

Question though:

Is it possible to get GCC running under opie?
[JASJAR, XDA Exec, MDA Pro General] EyeOfTheStorm:
Hi goxboxlive,

it could be the install kernel (initrd) from the hh.org install instruction, or the one in your angstrom build 2 weeks ago. I did not build my own kernel.

cr2: It would be nice, if we can find a solution for this problem, if was realy a kernels power fault. Then I do not havt to throw my old battery away.

If it helps, instruct me how I can grab infos from the battery.

Btw, T-Mobile spend me the new one :`)

The other point is, I love the progress, that has been made in the last days. It is so good to hear, that the phone is working. Hope, that it will be useable soon.

Greatings to all involved in the project,

EyeOfTheStorm.
[JASJAR, XDA Exec, MDA Pro General] EyeOfTheStorm:
Hi goxboxlive,

I had a look around in the forum and fould a very big number of users having the same problems and they never head something about linux.

Now I guess, this is normal for a 1 year old battery inside a universal to die in this way.

So we can forget the power module as source of this problem .... simply by a new battery.
[JASJAR, XDA Exec, MDA Pro General] goxboxlive:
Ok, my device is now 1 year and 1 month, so that's why then. But the strangest thing is that when it has booted and just running as a phone all works allright ( i have bluetooth disabled), but when i use it as linux or use it with my GPS the unit dies. Maybe it has something to do that the battery cant deliver enough power anymore.

I'll try to enable my bluetooth now to see what's happening.
[JASJAR, XDA Exec, MDA Pro General] EyeOfTheStorm:
The same on my side .... with bluetooth or wlan enabled, the device is crashing on a higher power value.
[JASJAR, XDA Exec, MDA Pro General] adamdon89:
Hi guys!

I'm go'na try and get this working again, were can get the latest files? Does the How-To on Handhelds.org still work?

Thanks, Adam...
[JASJAR, XDA Exec, MDA Pro General] goxboxlive:
Well, strangest thing. It hasent happend since we started to talk about it here :-) . But as mather of fact, i havent booted linux since either.
[JASJAR, XDA Exec, MDA Pro General] EyeOfTheStorm:
Realy strange ... btw. I am still waiting for my replacement battery :`)
[JASJAR, XDA Exec, MDA Pro General] goxboxlive:
*UPDATE*

But when i started linx yesterday with no cable plugged in the device shut's it self off after about 15min. But when it got rebooted the battery meter where at 75% and wince has been unning since then.
[JASJAR, XDA Exec, MDA Pro General] EyeOfTheStorm:
Hi, I just got my replacement battery :`)

Btw. I also have UMTS contract and can test what ever you like. Also I have BT Headset from Plantronics with A2DP as well.

So please, advice me on what I can do.
[JASJAR, XDA Exec, MDA Pro General] cr2:
It's not yet clear how to grab this data.

Is it possible to play music to this headset ?
[JASJAR, XDA Exec, MDA Pro General] EyeOfTheStorm:
In wince, yes. Since T-Mobile has released the AKU 2.0 ROM 12/05 it is possible (and works well), but it is only a software thing. No chips are involved in realtime audio encoding. I am currently using it on a daylie base on my way to work.

You can also have both .... stereo audio and phone ... connected to this headphone. On my universal running wince it works well. If someone calles, it stopps playing sound and the GSM takes controll over the headphone and the other way round, when stopping phone call.
[JASJAR, XDA Exec, MDA Pro General] thePTS:
Hi, sorry to interrupt the thread again.. is there any possibility of getting gcc running on the universal?

PS:

I see this is mostly a developers thread, which (like now) is interrupted by non-dev queries. ^^ Is there another thread or forum for the discussion of these kind of (user-)issues?

If there is, I will delete this and post my query there in stead. =)
[JASJAR, XDA Exec, MDA Pro General] tripledes:
Hi, this more a linux question than thread's point. But if you wanna get gcc just cross compile it on a PC and copy it to the universal taking care of its dependencies.
[JASJAR, XDA Exec, MDA Pro General] goxboxlive:
Sound UNI .18 kernel

It was oposite, i'll post a new update one.
[JASJAR, XDA Exec, MDA Pro General] EyeOfTheStorm:
Hi goxboxlive, cr2,

I had a think about batery issues, i don't think wince is storring data about the battery for longer time or for reuse. One small sample .... what if you replace your empty batery with a full one, that's no problem ... so the storred data can't be used for this batery. Also if you are using your batery for temp in one other device.

So this can't be the case .... and if the power modules don't write data into the batery ... the dead of our 2 baterys was normal for one year livetime, maybe.

I got a new one on friday and i don't have any problems any more ... not in wince and also not in linux ... but for save, i don't used power modules.
[JASJAR, XDA Exec, MDA Pro General] goxboxlive:
cr2:

After i logged out form #htc-linux yesterday i found out that one of the failure messages was gone after you changed the sounddriver. This one is NOT: gone. This still remain.

But this one is now gone. It doesnt report this failure anymore.

Also another thing i noticed is that there are more *buzz* in the stereo speakers now than before. Like when i start a mp3 file it louds *bzzzzzzzz* while playing, not loud, but louder than it was.

I guess we are getting closer to a working sound driver now.
[JASJAR, XDA Exec, MDA Pro General] goxboxlive:
More of battery stuff. I actually orderd a battery yesterday. I could had it on my waranty, but the servicecenter would have have my phone and battery, and they would have had it for allmost a month so i just orderd one insted. I havent recived it yet, but i guess it's on it's way.

But, i noticed something weird yesterday, i was playing with the phone part on my universal yesterday running linux, but i removed the powermodule so it didnt load at boot. And i noticed that it didnt reboot at all, i used it with USB connection for allmost 3 hours. When i have been using the power module i havent been able to run the universal on USB connection for so many hours. And, when i reboot and started linx again i noticed that my battery was 98% full. So maybe after all the rauto reboot has something to do with the power module?
[JASJAR, XDA Exec, MDA Pro General] cr2:
I hope you understand that it is unrealistic ? :)

Please, don't use the power module now. The fact that it does not detect the interrupts

makes it suspicious. Not taking into account other issues with this driver.
[JASJAR, XDA Exec, MDA Pro General] goxboxlive:
I meant booting WIINCE again, not linux. The battery meter was 98% when i chekced it after using linux for opver three hours with the usb connected to my laptop.

I agree, we shouldnt use the power module for now, but i think it will be a good idea to remove it form the .config (htcuniversal_defconfig) in the cvs. Because it is choosen to be compiled in to the kernel now.

*** UPDATE ***

Ok, that's for sure, my battery is allmost dead. I lyed a little with the phone again in linux, and it dies after a couple of minutes (before booted linux the battery indicator showed me 98%). I ran it without any usb/power connection.

After i died i tried to reboot in to WINCE, but i died again while booting WINCE. Then i conncted my USB connection, it booted and the battery indicator showed me that it was about 88% left. And i didnt use the power module at all. So i guess i should be glad i orderd a new battery.

Case closed.
[JASJAR, XDA Exec, MDA Pro General] madkat:
Hey guys :-)

I've been busy, and now have a new job now in a different company! Anyway, I see there's no new (published) files since July... What's new?
[JASJAR, XDA Exec, MDA Pro General] EyeOfTheStorm:
Hi,

as far as I understand right, we are on kernel 2.6.18 now (cr2, goxboxlive ... correct me if i am wrong).

Suspend / resume works for most of the drivers

Audio is broken but on work

GSM works now ... but we have no Audio and gomunicator does not work right

Power module is not working right

the rest you can find in the wiki at hh.org
[JASJAR, XDA Exec, MDA Pro General] goxboxlive:
Well, yes that is right EOTS, we have moved over to 2.6.18.

The status is about same as, well maybe a little further ahead than with .12.

What's missing that was working in .12 is to turn off the LCD and use of sound. We have sound working from the speaker on the lcd side, but it is only working during a phone call. But i guess that is how it should be.

But what we have working here wich we didnt in the .12 is suspend/resume and the phone. So i guess the .18 has comed further than .12 now. We also managed to get USBHOST working yesterday.

Welcome back madkat. Now how about that wince automatic installer application you where planing to make, are you on it?
[JASJAR, XDA Exec, MDA Pro General] cr2:
IMHO, this is not really an issue anymore with the work done by Kevin.

We need to write down a new task plan.
[JASJAR, XDA Exec, MDA Pro General] skearon:
Device as WiFi Access Point

I would like my Jasjar to act as a WiFi Access Point for other devices, it would appear this is not possible with WM5; however is/would this possible with Linux ?
[JASJAR, XDA Exec, MDA Pro General] madkat:
Wow, loads of progress :D Can't wait to start playing with it again.

Yes, I would expect it would be easily possible for the device to run a DHCP server on the WiFi interface and have another IP assigned on the wired USB interface, with some sort of gateway Daemon running. In fact you could probably also use it as an Access Point to a GPRS or UMTS connection...
[JASJAR, XDA Exec, MDA Pro General] cr2:
You can route between any IP interfaces. wifi to PPP over IR for example :)
[JASJAR, XDA Exec, MDA Pro General] Ferret-Simpson:
Waaaaait wait wait.

USB host linking to the baseband processsor for UMTS. . . Or USB host as in you can connect a DVDRW to your Uni, Zaurus style? (As in external USB host port.)

Looks like things are almost together!

I guess it won't be long before the phone and sound are fully operational. When it is, then what is the next plan?

The UMTS will need finishing, unless it's part of the phone system, to allow access to video calling and high speed data transfer, the Cameras aswell.

Can I ask nicely (I still can't code to save my life. . .) For internal flash support, and a bootloader to allow me to replace Windows Mobile Entirely? After all, you can do alot more with 128mb in embedded linux (Which is both more lightweight and more powerful) than you can in WM5, which is also incredibly slow. I usually carry and swap between SD cards of different files, use them for file transfer, music, video, all sorts, so I need an OS that can run without taking up my socket. :)

I officially love you guys. Hallowed is the Torvalds!
[JASJAR, XDA Exec, MDA Pro General] goxboxlive:
The bootloader is kind of ready, but no one has the currage to test it. You can be the first if you like ?
[JASJAR, XDA Exec, MDA Pro General] madkat:
An eerie silence descended over the forum...
[JASJAR, XDA Exec, MDA Pro General] rjtd:
Greets.

I'm sorry because I didn't read the all thread (it is gigantic).

I just want to know if we need to wipe out the Windows Mobile to get Linux to work on Universal, or if we can run Linux from an SD+Haret without messing up with WM5.0. ON my Magician, running Linux with Haret means an hard-reset. Is it the same on this one?

Regards.
[JASJAR, XDA Exec, MDA Pro General] cr2:
You can't physically wipe wince5 on universal, because there is no working DoC G3 driver yet

available. Run haret, boot linux and then either reboot of press reset.

It will return you to wince as on any dualboot desktop/notebook computer.

Magician is wince2003 and stores a lot of system data in RAM, which will be wiped by running linux.
[JASJAR, XDA Exec, MDA Pro General] Ferret-Simpson:
Maybe, when I have a Job, and car afford the excess if l brick it.

How do we have a bootloader if we don't have a hdd driver?
[JASJAR, XDA Exec, MDA Pro General] cr2:
It is in the memory mapped zero page of 0x800 bytes.

We have a bare-bones C code for reading from G3/G4,

so if you want to improve it feel free to contact me.
[JASJAR, XDA Exec, MDA Pro General] Ralith:
So DoC rw has been implemented, but not driver-ified and/or lacking significant features? Can you give more specifics as to what needs doing, and perhaps post a link to/attach the code? I personally doubt I'd be able to do much for it, but I'm sure there are others around here who might be spurred to take a look if it's easily accessible.
[JASJAR, XDA Exec, MDA Pro General] cr2:
It's the translation of the second stage bootloader load code, so it is readonly for now.

The first step is to prove that linux can read the bootloader.

check reading the bootloader, check reading the entire flash, find out how to write,

how to use hw ECC, how to use dma.

The registers are documented here

http://wiki.xda-developers.com/index.php?pagename=HTC_DiskOnChip

And the code is here:

http://hands.com/~lkcl/hp6915/g3.c
[JASJAR, XDA Exec, MDA Pro General] EyeOfTheStorm:
Something about audio routing.

Today I had a verylong call with german t-com support line. I spend nearly a full hour in waiting loop. That was enough time to test something. Normaly if you flip the screen during call the audio output will be switched betwin the 2 speakers on the inside and outside of the screen. But after I was waiting the first quarter, wince goes to suspend and only the phone still alive. In this mode, audio routing does not work on universal. It does not switch the 2 speakers of the screen and it also does not change into handsfree mode by holding the green button.

Maybe this info can help a bit.
[JASJAR, XDA Exec, MDA Pro General] Ferret-Simpson:
Can't code to save my life, so I'm honestly not the guy you want on this.

WOOP! UNILINUX!!!
[JASJAR, XDA Exec, MDA Pro General] speculatrix:
bootloader

we just need a volunteer to go into a phone shop, buy one, brick it (or not) the same day and take it back ASAP!!
[JASJAR, XDA Exec, MDA Pro General] goxboxlive:
Universal Status

Well yesterday we managed sound working with the mainspeakers. There are still some bugz with it, like it wouldnt route the sound over to headphones when headphones beeing plugged and "visa versa" (is that a english word? ).

So when playing a mp3 file without headphones attached the sound is playing thrue the steroespeakers. And also if you start a mp3 file with headphones attached the sound comes thrue headphones.

But if you unplugg the headphones you have to restart the music player application you are using, otherwise no sound (that also goes for 'cat music-file > /dev/dsp, not only GUI music player).

So i guess that we now are far over the status we had with .12 kernel. This mean that (AFAIK) .12 is dead and will not be maintained anymore, and removed from hh.org wiki page.

The only thing that is missing now to use it as a PDA daily is the resume part for keyboard. Everything works great, even charging (thow it seems like WLAN has becomed more unstable compared the status we had in .12) .

When it comes to the phone part we still miss a GUI application for Opie. With GPE we have Gomunicator wich works to make and receive a phonecall (thow mic doesnt work when having a call), thow it's still not fully functional. SMS is still not working from it. But i have been able to send when using CU (terminal application).

The mic issue is probably some AT+ routing. Beacuse i have the main mic working when i use the universal as a pda, but not with phone.

I have also noticed some "flickering" on my screen after resume. Cr2 cant see that on his device so could the rest of you also try this out so we can see if it is only my device or if it is a bug.

Do as follows:

Go to terminal (the shell, not console in opie) by terminating Opie. Run 'apm --suspend' . Let is suspend and hit the powerbutton to wake it up (the keyboard wouldnt work after resume). Look at your screen, do you see some "flicker" (distortion) on your screen (i can see some on the lethers)???

If you use GPE, just hit the suspend icon and it will suspend. Doesnt work in Opie yet.

Please test and let me know the result.
[JASJAR, XDA Exec, MDA Pro General] cr2:
http://en.wikipedia.org/wiki/List_of_Latin_phrases_(P-Z)

Agreed.

I'll try to debug it.

Something gnokii-based should be really appreciated, because it supports 7bit, utf8 and utf16 for SMS.

http://sourceforge.net/projects/qgnokii

After studying the AK4641 datasheet and the block diagramm i have

some new ideas what we can do with the sound routing :)

Should we try to resolve the opie bugs, or wait for opie2 ?
[JASJAR, XDA Exec, MDA Pro General] goxboxlive:
Ill take a look at it. I guess it is included in oe.dev.

No if OpieII is realised before new year i dont think we should bother with it. Let's concentrate on rest of the drivers instaed and then move over to OpieII.
[JASJAR, XDA Exec, MDA Pro General] goxboxlive:
Status december 06

Hello again.

Well we allmost have a fully functional linux port for the Universal now.

The resume of keyboard after suspending is now working, and the clock is also up2date in GPE (doesnt need to use ntp). It reads it from the internal clock.

cr2 is now working on the sound mixer to have that fully functional. And when that is finished the phopne will work as in wince (thow we need a GUI app).

Here the status so far:

http://www.handhelds.org/moin/moin.cgi/UniversalStatus (soon all green :-D )

But as i said in my last thread, could someone try out the suspend, and take a look at the screen after resuming, so we can see if it is anyone else that have the same bug as I.
[JASJAR, XDA Exec, MDA Pro General] Moray:
cc1: error: invalid option `abi=aapcs-linux'

Hi,

I've done a google search and I seem to be the only person in the world encountering this problem - that, or google is no all powerful after all.

I'm trying to follow the tip sheet for compiling a Linux kernel from the handhelds.org site.

http://handhelds.org/moin/moin.cgi/UniversalKernel

I have checked out the kernel from cvs and installed the gcc from the link on the page, put it in the path etc.

When I get to make I get the following error. If anyone could help, it would be much appreciated.

scripts/kconfig/conf -s arch/arm/Kconfig

drivers/usb/gadget/Kconfig:492:warning: choice values currently only support a single prompt

drivers/usb/gadget/Kconfig:473:warning: choice values currently only support a single prompt

CHK include/linux/version.h

SYMLINK include/asm-arm/arch -> include/asm-arm/arch-pxa

make[1]: `include/asm-arm/mach-types.h' is up to date.

CHK include/linux/utsrelease.h

CC arch/arm/kernel/asm-offsets.s

cc1: error: invalid option `abi=aapcs-linux'

make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1

make: *** [prepare0] Error 2
[JASJAR, XDA Exec, MDA Pro General] goxboxlive:
.

The cross compiler on the wiki is a bit outdated. I guess you are able to use it, but you have to disable eabi support in the kernel .config.

Then i guess it will compile.

I am using gcc 4.1.1 with eabi support when i am compiling. I dont know where to get the crosscompiler other than out of OE.

Merry Christmas everybody.