irclog2html for #htc-linux on 20060501

05:43.52*** join/#htc-linux goxboxlive (n=goxboxli@ti500710a080-14919.bb.online.no)
07:15.33*** join/#htc-linux awelux__ (n=awelux__@dslb-084-058-163-210.pools.arcor-ip.net)
09:02.41*** join/#htc-linux rob_w (n=bob@p213.54.218.51.tisdip.tiscali.de)
09:20.30*** join/#htc-linux immolo (i=mahdusmq@cpc3-cosh1-4-0-cust151.cos2.cable.ntl.com)
09:42.52*** join/#htc-linux goxboxlive (n=goxboxli@ti500710a080-14919.bb.online.no)
10:07.07*** join/#htc-linux goxboxlive (n=goxboxli@ti500710a080-14919.bb.online.no)
10:17.56*** join/#htc-linux goxboxlive_ (n=goxboxli@ti500710a080-14919.bb.online.no)
10:23.23*** join/#htc-linux awelux (n=awelux__@dslb-084-058-163-210.pools.arcor-ip.net)
10:26.37aweluxXfbdev works. I got a X in the middle of the typical X background :)
11:35.05*** join/#htc-linux BabelOued (n=BabelOue@lun34-2-82-238-28-28.fbx.proxad.net)
13:03.14m1ndI'm trying to build a quite extensice package (the EFL) for the arm arch... But I've never dealth with quite so extensive packages... Using autogen and libtoolize... Anyone that might help out a bit?
13:09.30aweluxm1nd, rofl. that is a cool idea. But it's been ages since I build efl for a normal desktop.
13:13.39m1ndhehe, okthen... They work mighty fine on my desktop ;)
13:14.16m1ndStill, do you know what options need to be set for automake, libtoolize etc to cross-compile for arm?
13:15.22m1ndawelux: I just built the eem on my desktop, works really well ;) I'm thinking about taking it from a demo and make it into a real project ;) If anyone would like to help out, please join #eem @irc.freenode.net
14:54.15*** join/#htc-linux goxboxlive (n=goxboxli@ti500710a080-14919.bb.online.no)
15:33.32m1ndI must need some new google skills but I can't find what args automake will take anywhere..?!
16:28.08aweluxdoesn't automake just process the Makefile.am input files ?
16:52.17cr2hi awelux
16:52.23aweluxhi
16:52.36cr2i have looked at your ts driver.
16:52.41aweluxI've seen the X cursor for the first time now.
16:52.57aweluxI didn't change much in the ts part yet.
16:53.00cr2but you obviously can't move it.
16:53.08aweluxhehe. true.
16:53.14aweluxYou have a suggestion ?
16:53.33cr2magiciangpio says that ssp1 is used for audio.
16:54.09aweluxoh.
16:54.15cr2so you should use ssp2 like on hx4700
16:54.33aweluxI couldn't read it out of the gpio table. Where is that info?
16:55.02cr2you need to correct htcmagician-gpio.h file, so it reflects the magiciangpio data.
16:55.47cr2<PROTECTED>
16:55.52aweluxah
16:56.09cr2GPIO 88    SSPRXD2
16:56.16cr2GPIO 89    SSPTXD2
16:56.36cr2and
16:56.39cr2GPIO 115    touchscreen    I1    FE
16:57.00cr2do you have the HTCMAGICIAN_IRQ macro ?
16:57.16aweluxno.
16:57.42cr2ok, but you need the right entries in htcmagician-gpio.h anyway.
16:57.45aweluxthere is a special macro for that ?
16:58.17aweluxworking is a bit tricky and slow this weekend without a mouse.
16:58.33cr2#define HTCUNIVERSAL_IRQ(gpio) \
16:58.33cr2<PROTECTED>
16:58.45aweluxwhere is that ?
16:58.46goxboxlivecr2: I read that pocketloox720 had managed to boot kernel 2.6.16. Is it just a coinsidence that all those who have managed to boot .16 has gone frome .13 and not .12 as we are trying to?
16:58.53aweluxusually I would past that to a grep.
16:59.02aweluxbut copy/paste is offline ....
16:59.42cr2goxboxlive: i think the problem is the phone and its USB datapath.
17:00.12goxboxliveok
17:00.35cr2if the FFUART (modem datapath) is switched off, the memory is corrupted somehow.
17:01.20goxboxlivehave you tried the 16 kernel with FFUART on?
17:01.29cr2haret needs some more debugging code to watch for the memory changes after the irq off.
17:01.37cr2yes. but it does not help.
17:01.52aweluxif that's a big issue I could try to issolate this problem.
17:02.22aweluxThe code used to debug the boot process would be very handy.
17:02.32aweluxBut it seams like a minor problem for now.
17:03.15cr2awelux, can you compile the latest haret version ?
17:03.25cr2it has the pxa27xssp dump.
17:03.31aweluxah. ok
17:03.40aweluxsure. Will put it on the list
17:04.15aweluxwhy doesn't the _ts driver reference SSPRXD ?
17:04.16cr2yes you have the macro:
17:04.20cr2#define HTCMAGICIAN_IRQ(gpio) \
17:04.20cr2<PROTECTED>
17:04.47cr2but the entries are just copied from universal
17:04.50cr2#define GPIO_NR_HTCMAGICIAN_PWM_OUT1                    115
17:05.03cr2you should correct these.
17:05.12cr2it is your ts irq.
17:05.47cr2goxboxlive: do you have 'acx' oopses ?
17:05.52aweluxok. So my ts irq is the pen down gpio and not the ssp irq ?
17:06.10cr2yes.
17:06.34goxboxlivecr2: What do u mean about oops. Yes it carsh alot. Have reprobe acx and start network again
17:07.20cr2awelux: look at the hx4700 code, not on universal.
17:07.35cr2oops is in the syslog.
17:07.49aweluxok. I was confused because hx4700 seams to use asic3 for irq as well
17:07.58cr2the register dumps on a in-kernel bugs.
17:08.12cr2asic3 is for the buttons.
17:08.27cr2the irq on hx4700 is on pxa
17:08.40cr2universal has the ts irq on asic3.
17:09.20cr2you need to take the hx4700 ts driver, comment out the asic3 stuff, and change the ts irq number in htcmagician-gpio.h
17:09.24cr2that's all.
17:10.19cr2goxboxlive: if you have lost the wifi connection, do 'dmesg' and look if there are any register dumps there.
17:13.15aweluxok. So I start from the hx4700_ts.c file now
17:13.56goxboxliveYES
17:14.40cr2then it's a bug in the acx driver ;)
17:16.12cr2and you can complain on the hx4700 list :)
17:17.23cr2we need to create a bug list. the *_power module has some wrong things too.
17:18.32cr2awelux: look at the pxa-mci driver too. since you know the irq, it should work right out of the box if you will setup the driver.
17:19.10aweluxmci ?
17:22.06aweluxoh you mean for sd cards?
17:22.11aweluxthat works already.
17:22.33cr2ok.
17:23.23cr2goxboxlive: i get such messages in the log
17:23.26cr2acx: unknown EID 42 in mgmt frame at offset 57. IE: 2A 01 00
17:23.26cr2acx: unknown EID 47 in mgmt frame at offset 60. IE: 2F 01 00
17:23.26cr2acx: unknown EID 221 in mgmt frame at offset 69. IE: DD 05 00 10 18 01 01
17:23.37cr2wtf is that ?
17:24.12goxboxliveHere is mine when it's fail and goes on again: http://pastebin.com/692616
17:26.56goxboxliveAlso have does in line 72-73
17:27.46cr2but not EID 221
17:29.02goxboxlivethat's right. Do u have both the radio and wlangen firmware? I have also another one form the sdg website.
17:30.12cr2yes.
17:30.27cr2do you know how to enter the wep key with iwconfig ?
17:31.22cr264bit (40)
17:31.31goxboxliveI am not using any wep/wpa , i have a fully open net ( live on a small friendly place on an island in Norway:-) )
17:33.27goxboxliveexample: iwconfig wlan0 key "key"
17:33.30cr2:) i'm forbidden to do that here :)
17:33.32cr2but what do the '-' mean  ? i will read the howto.
17:34.00cr2ah it's for wep104
17:34.16goxboxlivewhere is the "-"
17:37.17goxboxliveI have allways used WPA but the wpasupplicant supplied in the image doesnt support the 'acx' interface.
17:39.02aweluxI just checked out the cvs, used the current magician_defconfig, and got a working kernel.
17:39.38aweluxBut I used Image and not zImage because it doesn'T care as much about memory corruption
17:51.36cr2goxboxlive: why the gps is running on /dev/ttyS1 ???
18:01.45cr2GPS_DEV="/dev/ttyS1"
18:01.51cr2this is wrong.
18:04.47cr2i don't remember about 2.28 but after some version it was not necessary to specify the port.
18:05.09cr2you can later tell gpsd to open any device (and even multiple ones)
18:05.57cr2http://gpsd.berlios.de is unreachable here...
18:13.05goxboxliveBecause it is setup after install to use ttyS3
18:14.46cr2i can associate with a wep ap ;)
18:38.00cr2ok, it works now (1Mb), but suffers horribly from transmit timeouts.
18:44.56cr2set txpower to 20
18:45.24cr2wlan0: less than 5 minutes since last radio recalibration, not recalibrating (maybe card is too hot?)
18:45.24cr2NETDEV WATCHDOG: wlan0: transmit timed out
18:45.24cr2wlan0: FAILED to free any of the many full tx buffers. Switching to emergency freeing. Please report!
18:45.24cr2wlan0: tx timeout!
18:49.28goxboxlivei have managed to use it eith both 6Mb and 11Mb but it failes after short time
18:51.59cr211Mb works, but transmit fails after some time. i think it is some driver-firmware problem.
18:52.16cr2the undecoded EIDs are probably harmless.
18:53.36goxboxliveok
18:53.58cr2ok. that means the userspace is ok.
18:53.59goxboxliveWhat are you running your gpsd on?
18:54.17cr2i can't connect to my bt gps.
18:54.34goxboxliveok.
18:54.51cr2and sdio too, but its not practical anyway (the SD slot is used)
18:54.55goxboxlivewhy isent the ttyS1 the right port? I just couldnt set rfcomm.
18:55.30cr2ttyS1 is where ALL the bt services run. after hciattach you should forget about it.
18:55.38cr2the same if with IRda
18:55.58cr2the problem is IMHO the missing BT irq.
18:56.24cr2it signals something, like data buffer overflow or such.
18:56.53cr2we can probably set an isr there without doing anything.
18:57.12cr2when the BT is initialzed in wince, it flips quite aften.
18:58.22cr2so you should use rfcomm, but it should not be put into /etc/init.d/gpsd
18:58.45cr2can you compile the 2.30 version ? or is the 2.31 the last ?
18:59.33cr2aah. the berlios.de is back.
18:59.49cr22.32
19:00.39cr22006-03-13
19:01.05cr2you should update your .bb script
19:10.31goxboxliveI jhave done an update today, i also had to delete the work folder becaise i was running out of diskspace. So i have no clue if the bitbake works. I'll try now.
19:10.49awelux:)
19:11.01aweluxI got data from the ts.
19:11.18aweluxBut I don't know exactly why.
19:12.21aweluxI still can't move the cursor in xfbdev
19:12.44aweluxbut event0 and tsraw0 give a lot of data
19:16.41goxboxlivecr2: The latest gpsd in the bitbake cvs is 2.28.
19:19.55cr2awelux: put the source in CVS. and run the ts_* tools first.
19:20.01aweluxok
19:20.14aweluxI just commited the src
19:20.25cr2goxboxlive: does 2.28 need the device on the command line ?
19:20.28cr2ok.
19:21.02goxboxliveIt need the device in /etc/init.d/gpsd
19:21.51goxboxliveI also cleaned the my bitbake sources and it did a new download, but it stills download the 2.28. I can se if i can edit something.
19:21.55cr2can you comment it out ? also on the line where it is referenced.
19:22.46aweluxbtw. cr2, when you start from SD card
19:22.52cr2it is stupid to add rfcomm, while it is, generally speaking, does not exist.
19:22.59aweluxis it supposed to use the SD directly as the root device ?
19:23.04cr2yes.
19:23.08aweluxthere is no xfbdev on the SD card?
19:23.18cr2if you use gpe
19:23.30cr2opie writes into the framebuffer.
19:23.40cr2directly, (qpe)
19:23.42aweluxah
19:23.56aweluxgood
19:24.07cr2just run opie, and login over usb.
19:26.15aweluxbtw. Do you know a way around this problem:
19:26.37aweluxbefore the pda or my pc detects the usbnet module
19:26.46aweluxI've to disconnect and reconnect the usb
19:27.11cr2yes. it is always so,. even on ba. i have forgot what is the reason.
19:29.28goxboxlivecr2: I changed the name of the bb gpsd file to version 2.32 and now it buildt the gpsd_2.32.
19:31.38aweluxif it has been like that forever for you I take it that the usb plug is stable enough for all this repluging ?
19:32.09cr2officially 5000 times.
19:32.59cr2the lcd backlight also has similar limits ;)
19:33.33aweluxoh
19:33.56aweluxdoesn't sound much for the backlight
19:34.09awelux5000 for the plug should be ok
19:34.21cr2on sharp zaurus i have seen such numbers.
19:35.02aweluxSo basically they say you can switch it on about 7 times per day for two years.
19:36.16cr2after two years you are supposed to throw it away.
19:36.31aweluxYes. obviously
19:36.35cr2if it breaks.
19:38.06aweluxI just realized that with an usb dsl modem and wifi these devices will be very expensive routers :)
19:38.17aweluxif the backlight breaks down
19:39.12cr2or lcd.
19:40.41aweluxyes. or that
19:41.03aweluxanything else these devices are usefullfor without lcd ?
19:41.24cr2a fileserver :)
19:41.28aweluxhehe.
19:41.38aweluxmotion detector via camera perhaps
19:42.23cr2do you have opie now ?
19:42.30aweluxno not yet.
19:42.59cr2i mean, have you downloaded it ?
19:43.24aweluxoh. yes I did
19:43.38aweluxI tried to compile it myself but that didn't work :/
19:43.45aweluxSo I took your image
19:43.51cr2untarred to the sd ?
19:44.16aweluxyes. I can access it when I load via initrd
19:44.26aweluxkernel oooooooops
19:44.47aweluxso far it doesn't look that bad
19:44.52aweluxo.O
19:44.59aweluxwhy does it  just work ?
19:45.16awelux<- mad laughter
19:45.37aweluxts needs calibration
19:45.59aweluxand I'm missing the keys.
19:45.59cr2login over ssh.
19:46.13cr2keys ? buttons.
19:46.33cr2it is easy.
19:46.34aweluxbuttons
19:46.36aweluxyes
19:46.48aweluxI just started ts_calibrate
19:46.51cr2check the calibration. it is interesting.
19:47.00cr2VERY interesting.
19:47.44aweluxI think I already noticed nonlinearities when I did od -x -v
19:47.54aweluxhmm. how to get back to opie ?
19:48.14cr2ctrl-c
19:48.18aweluxxres = 240, yres = 320
19:48.18aweluxTook 80 samples...
19:48.19aweluxTop left : X = 14732 Y = 21032
19:48.19aweluxTook 103 samples...
19:48.19aweluxTop right : X = 7472 Y = 20984
19:48.19aweluxTook 127 samples...
19:48.21aweluxBot right : X = 4008 Y = 5136
19:48.23aweluxTook 76 samples...
19:48.25aweluxBot left : X = 10304 Y = 4972
19:48.27aweluxTook 103 samples...
19:48.31aweluxCenter : X = 9312 Y = 12968
19:48.33awelux241.874695 -0.020505 0.005075
19:48.35awelux340.137817 -0.000106 -0.013763
19:48.37aweluxCalibration constants: 15851500 -1343 332 22291272 -6 -901 65536
19:48.39aweluxctrl-c is a problem :)
19:48.41aweluxwithout keys
19:48.50cr2wtf, why is it 15bit ?
19:48.52cr2ssh ?
19:49.07cr2try ts_test now.
19:49.25aweluxok
19:50.45aweluxIt's slightly nonlinear
19:50.52aweluxbut not a big problem
19:51.11aweluxoh
19:51.23aweluxsomehow opie came back to the front with the bt manager.
19:52.17cr2it will not work ;)
19:52.22cr2slightly ?
19:53.10aweluxyes. the vertical part is very good
19:53.18cr2http://forum.xda-developers.com/viewtopic.php?t=35972&postdays=0&postorder=asc&start=725
19:53.27aweluxthe horizontal values are slightly off
19:53.41aweluxthe right side looks very much like your right side
19:54.37aweluxmuch better than these pictures
19:54.57cr2ok. it should be, your display is 1/4 of that.
19:55.16cr2in 2D
19:55.20aweluxnow how do I get opie to use a calibrated TS ?
19:55.43cr2ts_calibrate has created /etc/pointercal
19:55.47cr2just restart opie
19:56.01aweluxok
19:56.04cr2<PROTECTED>
19:56.39aweluxoh
19:56.48aweluxI was going for the kill ;)
20:09.07aweluxok. TS needs a little more work it seams. Much better already but some opie buttons are really small.
20:09.31aweluxBut it's still fun to play with
20:53.46aweluxhmm.
20:53.58aweluxI try to rerun ts_calibrate
20:54.07aweluxBtu nothing happens
21:53.18aweluxOk. I can boot with your normal haret too.
21:53.46*** join/#htc-linux husam (n=kvirc@217.206.111.105)
22:31.52aweluxcr2, I did the ts_harvest part
22:32.59aweluxthe whole screen seams to be tilted
22:33.48aweluxI'm pretty sure there is some kind of driver for the TS which does the initial adjustment.
22:34.03aweluxThe windows adjustment is just finetuning.
22:35.08cr2awelux, you have strong nerves :)
22:35.29aweluxhehe. After 4 month this was nothing ;)
22:35.53cr2may i look at the data ? i'd like to overlay it over my data.
22:36.06cr2i don't really understand why it is 15bit.
22:36.10aweluxsure. I will try to upload it somewhere
22:36.18cr2bzip2
22:36.39aweluxit's probably not 15 bit
22:36.45cr2imho, you should try to boot 2.6.16 now.
22:36.47cr2why ?
22:36.51cr225000
22:36.55cr2is not 12bit
22:36.59cr2as in the docs
22:37.03aweluxI never see values ending with odd numbers
22:37.14cr2hmm. i'd look at mine.
22:37.42aweluxIt looks like everything could be divided by 4
22:38.05cr2the even are more often, but the odd are also there.
22:38.16cr2it's just averaging.
22:38.16aweluxhmm.
22:38.22cr2hmm. you mean the raw data ?
22:38.29aweluxyes. There was some averaging in the driver
22:38.45cr2look at the raw data. i like your idea :)
22:39.07cr2but it should be dividable by 8
22:39.20cr21<<3
22:40.31aweluxyep. here too
22:40.53aweluxwhen I use ts_print_raw everything is dividable by 8
22:41.46cr2ok.
22:42.22cr2then you can just divide the reported data by 8.
22:42.44cr2in the driver
22:43.10aweluxFor averaging this can be pretty usefull
22:43.52cr2? it is artificial.
22:43.56cr2the ADC has 12bit resolution.
22:44.44aweluxthe values seamed to have a huge variation anyway.
22:45.33aweluxWell. it doesn'T really matter where we scale back to 320x240 or 640x480 in your case
22:45.56cr224000+/8 != 4096
22:45.57aweluxAnd other devices might not have 12 bit resolution but something else
22:46.08cr2but makes sense.
22:46.10cr2which ?
22:46.28aweluxmore or less resolution when other ts chips are used
22:46.48aweluxso the ts libraries shouldn't be 12 bit only anyway.
22:46.54cr2input_report_abs(&ts->input, ABS_X, x);
22:46.59cr2input_report_abs(&ts->input, ABS_X, x>>3);
22:47.15cr2i will try.
22:47.24aweluxyes. but for now it's just an additional operation.
22:47.56aweluxwhere should I get 2.6.16 from?
22:48.03cr2hh.org cvs
22:48.22aweluxIs this a unified tree just as the universal tree?
22:48.30aweluxthe 2.6.16 tree ?
22:48.42cr2unified ?
22:48.49aweluxlike for multiple devices.
22:48.58cr2you should add the magician directory to mach-pxa
22:49.01cr2yes.
22:49.16cr2and make some minor changes to magician.c
22:51.32aweluxhttp://home.arcor.de/awelux/tmp/ts_harvest.out
22:53.56cr2you have some big 'spikes'
22:54.23aweluxyes.
22:54.46aweluxMaybe because I've a screen protector foil.
22:55.07cr2hmm. i have 25000x25000, but you have only one half in one direction.
22:55.10aweluxAnd human error
22:55.22cr2me too. human error - most probable.
22:55.50aweluxnot all of it
22:56.07aweluxsince some dot's are in parts I should not be able to touch
22:56.22aweluxBut some averaging should do the trick.
22:56.34aweluxhttp://home.arcor.de/awelux/pic/pda-dots.jpg
22:56.51aweluxThis is a picture of my early booting tests btw.
22:57.10aweluxI should be able to use that to identify why it doesn't boot in flight mode.
22:57.25cr2looks funny.
22:57.28cr2?
22:57.49cr2i can't boot in flight mode too.
22:58.10cr2still, you have a good affine picture.
22:58.16cr2unlike me.
22:58.22aweluxThe dot's mean I've reached a certain part in the code. And I've printed some values as binariy values to the screen
22:59.02aweluxSo I should see very fast where it stops when using flight mode
22:59.25aweluxYes. the TS is almost useable even now
22:59.59aweluxBut in the corners the nonlinearities become noticeable.
23:00.25cr2i'd like to have a loop over the lower 8MB plotting 16bit page checksums as pixels
23:00.27aweluxit's almost imposible to hit something in the top right or bottom left corner
23:00.39cr2it's such driver.
23:01.03aweluxcr2. yes. that's a good idea.
23:08.07cr2but i must be remapped first.
23:08.19cr2s/ i / it /
23:13.38aweluxok. enough for today. Thanks for all the usefull hints cr2. And the nice opie image.
23:14.33cr2good night.
23:14.39aweluxgn8

Generated by irclog2html.pl by Jeff Waugh - find it at freshmeat.net! Modified by Tim Riker to work with blootbot logs, split per channel, etc.