17:23.50 | *** join/#htc-linux apt (i=ibot@pdpc/supporter/active/TimRiker/bot/apt) |
17:23.50 | *** topic/#htc-linux is HTC Linux Channel: Find logs at http://apt.rikers.org/%23htc-linux/ | please check http://handhelds.org/moin/moin.cgi/HTC_2dPhones | http://wiki.xda-developers.com/index.php?pagename=Xanadux | <cr2> let's define a common setup. |
17:47.12 | BabelO | good evening ;) |
17:48.26 | BabelO | pH5: can i do some test for you with BA ? |
18:12.36 | *** join/#htc-linux goxboxlive (n=goxboxli@176.84-48-210.nextgentel.com) |
18:20.00 | *** join/#htc-linux pleemans (n=peter@d51A5E76A.access.telenet.be) |
18:22.36 | *** join/#htc-linux scorpio16v (n=scorpio1@AC9EF97F.ipt.aol.com) |
18:34.27 | *** join/#htc-linux WizMaui (n=WizMaui@62.112.90.250) |
18:43.17 | *** join/#htc-linux awelux (n=awelux@lvps87-230-8-217.dedicated.hosteurope.de) |
19:17.14 | *** part/#htc-linux scorpio16v (n=scorpio1@AC9EF97F.ipt.aol.com) |
19:17.32 | *** join/#htc-linux gundam (n=gundam@slackware.it/staff/gundam) |
19:31.41 | *** join/#htc-linux pleemans (n=peter@d51A5E76A.access.telenet.be) |
19:42.06 | *** part/#htc-linux DTMonterrey (n=evandro@cornelius.estig.ipb.pt) |
19:46.51 | *** join/#htc-linux gundam (n=gundam@slackware.it/staff/gundam) |
19:51.40 | *** join/#htc-linux JuNuKN (n=chatzill@p549A8E38.dip0.t-ipconnect.de) |
20:03.42 | *** join/#htc-linux pancake (n=xxx@55.pool85-52-227.static.orange.es) |
20:03.57 | pancake | hi* |
20:44.25 | pH5 | BabelO: could you turn on the phone in wince and check haret's wi output? |
20:44.41 | pH5 | (set ii(x) 1 the annoying irqs that always fire) |
20:45.08 | pH5 | I'd like to know if there is a second irq gpio that fires during gsm powerup besides gpio6 |
20:45.12 | BabelO | pH5: sure, i ve a special exe to power on / off phone ;) |
20:45.35 | pH5 | :) cool |
20:46.11 | BabelO | need to do some set trace 0xXXXXXX ? |
20:47.02 | cr2 | BabelO: SetSystemPowerState(NULL,POWER_STATE_SUSPEND, POWER_FORCE); |
20:47.08 | pH5 | BabelO: i think haret can trace the gpio irqs just like that. |
20:47.56 | BabelO | cr2: what this function doing ? |
20:48.00 | cr2 | pH5: where are you going to store the output for 'suspend' ? |
20:48.25 | cr2 | BabelO: suspends the device. == apm --suspend |
20:48.44 | BabelO | ok with your latest are i suppose |
20:48.58 | cr2 | BabelO: not yet. |
20:49.12 | cr2 | i don't know if it makes sense to implement it. |
20:49.14 | pH5 | cr2: I'm sorry, I didn't follow. What output and why suspend? |
20:49.43 | cr2 | pH5: this wince command can be called for force suspend in software. |
20:49.56 | cr2 | but i don't understand how it can be traced in haret. |
20:50.10 | cr2 | because the wifi/usb/LCD et al. will be suspended too. |
20:50.41 | pH5 | ah, ok. I don't know. does wince freeze haret before doing the actual suspend? |
20:50.59 | cr2 | maybe it is possible to allocate a big buffer in RAM, and store the output there. |
20:51.03 | cr2 | i guess it should. |
20:58.22 | BabelO | pH5, cr2 : got two irq only this one irq 25(DMA) and irq 22(FFUART) |
20:58.39 | BabelO | i don't know what is 25 irq ? |
21:00.42 | pH5 | hm.. those aren't gpio irqs. what uses dma - did it play a sound? |
21:01.21 | cr2 | probably. FFUART does not use DMA (although it can). |
21:01.32 | BabelO | and also irq 10(GPIOx) |
21:01.45 | BabelO | for sound i try to shutdown sound, maybe it is a click |
21:01.57 | cr2 | GPIOx must be demux'd |
21:02.05 | pH5 | doesn't haret do that automatically? |
21:02.11 | cr2 | into pxa or asic3. |
21:02.20 | cr2 | pxa - yes. asic3 - no. |
21:02.21 | pH5 | I always get a second irq after GPIOx on pxa27x |
21:02.30 | pH5 | ah, asic goes3 into gpio 10, too? |
21:02.35 | cr2 | no. |
21:02.40 | pH5 | s/asic goes3/asic3 goes/ |
21:02.55 | cr2 | there should be a pxa asic3 mux gpio. |
21:02.55 | pH5 | but then there should be the asic3 gpio irq after irq 10, right? |
21:03.01 | cr2 | yes. |
21:03.07 | pH5 | ok |
21:03.39 | cr2 | i forgot the number. need to look into wiki. |
21:03.57 | *** join/#htc-linux florian_ (n=fuchs@84.245.185.57) |
21:04.02 | pH5 | should be gpio 3 |
21:04.10 | cr2 | yes. |
21:04.11 | BabelO | so i can mask irq 10 too |
21:04.11 | pH5 | (from htcblueangel-gpio.h) |
21:04.37 | pH5 | BabelO: yes, but look out for the irq of gpio 3 |
21:04.50 | cr2 | the only unknown irq is gpio38. |
21:05.07 | cr2 | i've observed it, since it's called 'NO INFO' in the wiki. |
21:05.35 | cr2 | BabelO: which gpio is the DCD ? |
21:05.50 | cr2 | it must be in the logs, but i've forgot. |
21:06.00 | BabelO | 36 |
21:06.15 | BabelO | for FFUART right ? |
21:06.17 | cr2 | either 60 or 63. |
21:06.18 | cr2 | yes. |
21:06.43 | cr2 | hm. |
21:06.58 | BabelO | ok i try again , restarting haret |
21:07.05 | cr2 | it's an ALT gpio on ba. |
21:09.13 | BabelO | yes got some gpio 3 witj gpio 10 |
21:09.31 | BabelO | sorry irq 10 |
21:10.39 | pH5 | oh great, where are the asic3 irq registers on ba? |
21:11.24 | BabelO | yes after two power on / off got irq22(ffuart) and irq 37(gpio3) |
21:12.23 | BabelO | don't know, where can i check ? |
21:13.43 | pH5 | htcblueangel-asic.h says it is at CS3+0x01800000 (CS3 is 0x0C000000) |
21:14.02 | cr2 | BabelO: they are decoded by gnu-haret with 'wasic3gpio' |
21:14.18 | cr2 | together with the pxa gpios. |
21:14.19 | BabelO | ok check with this command |
21:14.20 | pH5 | woo, very good :) |
21:14.34 | cr2 | you only need to mask the junk bits. |
21:14.40 | cr2 | like asic3 pwm0 and 1. |
21:14.46 | cr2 | CONTROL_CX |
21:14.54 | BabelO | yes but never ermember how ? ;) |
21:15.04 | cr2 | set iasic3gpioa(11) 1 |
21:15.24 | cr2 | set igpio(x) 1 |
21:16.35 | pH5 | the great thing with haret is somebody always already implemented whatever I happen to need. |
21:18.59 | BabelO | eh eh ;) |
21:18.59 | cr2 | :) |
21:19.00 | BabelO | so for power on |
21:20.31 | BabelO | got gpio59 gpio102 gpio6 gpio36 gpio63 gpio35 gpio60 gpio 34 gpio 39 |
21:20.41 | BabelO | maybe there is some parasit, need to clean |
21:22.09 | BabelO | got a lot of gpio 85 too, but not related to phone power on or off |
21:22.24 | BabelO | 102 is not on pxa263 |
21:24.36 | cr2 | yes, these are stray bits from pxa27x code. |
21:25.06 | BabelO | gpio59= gsm reset, gpio6 = gsm alert, gpio 36 is DCD, 35 is CTS, 60 and 63 unknown, 34 =RXD GSM and 39 txd GSM |
21:25.17 | cr2 | 36 and 63 are together ? that's good. |
21:25.49 | BabelO | GPIO6 S 1 1631109 |
21:25.53 | BabelO | GPIO36 S 0 1631632 |
21:25.53 | BabelO | GPIO63 S 0 1631633 |
21:25.53 | BabelO | GPIO35 S 0 1631692 |
21:25.54 | BabelO | GPIO36 S 1 1631863 |
21:25.54 | BabelO | GPIO60 S 0 1631864 |
21:25.54 | BabelO | GPIO63 S 1 1631865 |
21:26.38 | BabelO | and after toggle 34 and and 39 |
21:27.41 | pH5 | so there is no asic3 gpio now at all? |
21:28.55 | BabelO | seems no |
21:30.32 | BabelO | don't know what it is this gpio 85 :( |
21:31.27 | BabelO | so pH5 your question is why asic3 related irq are toggle during power on / off and there is no asic3 related here |
21:31.38 | pH5 | BabelO: I guess it's noise from the pxa27x implementation. does pxa263 have gpio 85 at all? |
21:32.04 | BabelO | yes have 89 gpio |
21:32.06 | pH5 | BabelO: exactly. are 60,63 inputs or outputs? |
21:32.17 | BabelO | input |
21:34.41 | BabelO | pH5: is it possible GPIO85 is ds1wm related ? because it toggle periodically 10 times |
21:37.05 | pH5 | BabelO: I don't think so. The OWM irq is known, and ds1wm only has one interrupt line. |
21:37.19 | BabelO | ok |
21:38.34 | pH5 | so now we know that the gsm ready irq could be one of 60,63 or some asic3 irq? |
21:38.58 | BabelO | i think asic3 irq are due to sound |
21:38.59 | cr2 | BabelO: gpio85 has nothing to do with ds1wm. |
21:39.22 | cr2 | pH5: i think it's 63. |
21:39.28 | BabelO | cr2: ok, it is only because i show it periodically like a call to something |
21:39.49 | cr2 | BabelO: i've looked at the battery.dll code. |
21:40.09 | cr2 | if you'll tell me which dll/exe uses gpio85, i'll tell you what it can be. |
21:40.44 | BabelO | ok , with your friend IDA ;) |
21:41.45 | cr2 | does haret show the address of an instruction for wi ? |
21:42.09 | cr2 | then we can guess which dll it is. |
21:42.26 | cr2 | by the dll base load addreess. |
21:42.41 | BabelO | no str or ldr during wi |
21:43.32 | cr2 | ok. |
21:43.49 | pH5 | cr2: does the wasic3 code work for blueangel? maybe the memory address is wrong? |
21:44.20 | pH5 | BabelO: for that you'd have to trace the GPLR2 register and check the ldr's. |
21:44.56 | BabelO | ok |
21:47.12 | pH5 | hm.. where is the ASIC3GPIOBASE haret variable set? |
21:47.13 | BabelO | pH5: i set trace 0x40E00008 0x8; wi 30 |
21:47.21 | BabelO | but nothing appear |
21:49.48 | cr2 | pH5: they are hardcoded. depending on the machine. |
21:50.27 | cr2 | pH5: wasic3 works on ba/hima/universal. i've tested all of them |
21:50.49 | pH5 | ok, then I'll trust you that they are correct :) |
21:50.56 | cr2 | the only device where there were some problems recently is ipaq. |
21:51.05 | cr2 | it's all in the wiki. |
22:39.23 | *** join/#htc-linux cr2 (n=konversa@crpl22.physik.uni-wuppertal.de) |
22:56.43 | pof | anyone knows how can i redirect 'cu' output to a file ? |
22:56.56 | pancake | hi pof |
22:57.03 | pof | hi pancake :) |
22:57.11 | pancake | maybe with libfdsniff |
22:57.33 | cr2 | pof: run 'script' |
22:58.08 | pof | thanks! |
22:58.13 | *** part/#htc-linux rmoravcik (n=rmoravci@adsl-d181.84-47-56.t-com.sk) |
22:59.21 | pof | nah... not working :( |
22:59.24 | pof | hangs my terminal |
22:59.28 | pof | it's binary data |
22:59.34 | pof | i'm trying to capture a 'rbmc' dump |
22:59.49 | pancake | pof: let me try ;) |
23:04.20 | pancake | hey pof |
23:04.23 | pancake | use this: # ((sleep 1 && echo rbmc file 50000000 80000 ) | cu -l /dev/ttyUSB0 ) > pop |
23:06.00 | pof | thanks pancake, it works :) |
23:06.49 | cr2 | you can pipe to hexdump, and then recover. |
23:07.35 | BabelO | cr2: gpio 4 is toggle web camera image is displayed, maybe ati capture irq ? |
23:09.34 | pancake | pof. you can embed this system() call in your flasher |
23:10.14 | pancake | bu would be good not to depend on cu |
23:11.00 | cr2 | BabelO: wiki ? |
23:11.28 | BabelO | cr2: yes wiki say this ATI irq? ... |
23:11.49 | cr2 | yes. it's how wince kernel names it. |
23:12.18 | BabelO | i see it only when i activate camera |
23:13.13 | cr2 | so it's capture-related. |
23:13.27 | BabelO | yes ;) |
23:13.46 | BabelO | i m looking for recording sound |
23:15.08 | *** join/#htc-linux cyrill62 (n=user@ble59-5-82-233-205-36.fbx.proxad.net) |
23:38.35 | *** join/#htc-linux bd2 (n=cbou@89.113.85.104) |
23:43.29 | *** join/#htc-linux psokolovsky (n=psokolov@empty-crossing.volia.net) |
23:48.27 | pancake | cr2: what's the next step on hermes-linux? |
23:57.13 | cr2 | pancake: to fix the 2.6.21 kernel |
23:59.23 | pancake | what's the problem? |