irclog2html for #htc-linux on 20061120

00:08.33*** join/#htc-linux Speedy2 (n=Javier_6@cpe-70-95-210-2.san.res.rr.com)
00:13.17*** join/#htc-linux TripleDES (n=sergio@84.77.161.251)
01:39.31lkclcr2: o bollocks.  oh well.
01:40.14lkclcr2: i still have a copy.
01:45.17cr2lkcl: i'm going to bed.
01:45.21cr2good night.
01:45.26lkclnight dude
02:23.44lkclahh... in the ak4641.c code there is headphone detect, speaker detect, etc. and also there is code where, if the hp or spk are detected, i2c commands are sent to the ak4641.
04:08.32*** join/#htc-linux dashbox (n=whatever@h460bd66d.area7.spcsdns.net)
04:08.41dashboxhey is anyone in here?
04:08.42dashbox??
04:26.59dashboxhumm
04:52.57*** join/#htc-linux g3gg0_ (n=g3gg0@ppp-82-135-88-194.dynamic.mnet-online.de)
07:12.13*** join/#htc-linux LunohoD_ (n=alex@e180116219.adsl.alicedsl.de)
07:19.16*** join/#htc-linux alex-begin (n=345rt@84.232.212.62)
08:28.08lkclno nobody here dude :)
08:28.17lkcloh hes gone anyway
08:28.21lkclha ha
08:35.21*** join/#htc-linux Fossi (n=cmewes@195.177.48.115)
08:41.30pierroxhi
08:41.46pierroxlkcl: i just send you an email about haret
08:42.10pierroxlkcl: where is supposed to be the "right" version of haret ?
08:42.18lkclthere are many, pierrox.
08:42.39pierroxthere are too many, efforts are lost
08:44.04pierroxlkcl: you know how sirf binary looks ?
08:45.53cr2pierrox: Kevin2 tries to change that.
08:46.28cr2sirf binary? look at the gpsd source.
08:46.28pierroxcr2: i see that there enormous changes in the hh.org repository
08:46.44cr2enormous ?
08:47.22pierroxcr2: since 2 months i see that there is a lot of changes
08:47.23cr2yes. i see them too.
08:48.01pierroxcr2: switching from msvc-arm to cegcc is not the smallest change
08:48.42cr2pierrox: in the "main" haret ? i've done it long ago.
08:49.23Fossiwhy's that an either or thing?
08:50.28pierroxcr2: no more than 2 months, it is short for me because i am not fast :-)
08:50.33cr2running ms tool in wine is a too harsh requirement
08:50.50cr2at least for me
08:51.57Fossii understand, but can't both be supported?
08:52.05pierroxcr2: certainly but i must admit that i begin to have some doubt about cegcc reliability (maybe only my version though)
08:52.26Fossior does one have such big advantages that it's a clear choice?
08:52.44cr2pierrox: if you'll dump the internal cpu stuff, things will go faster.
08:54.07pierroxcr2: which things will go faster ? you mean the values of registers ?
08:54.31cr2Fossi: it's a clear choice, imho. i'm running gcc-compiled haret for almost a year. if it's good enough for vlc, the it is good for such simple programs like haret.
08:55.17cr2pierrox: yes, the dump functions in haret. look how long did it take to do that for the universal, and how fast we worked on sable.
08:56.44cr2Fossi: and it's much easier to do (and control) many things with gcc. inline asm, linking and so on.
08:57.26Fossii'm not talking against supporting gcc
08:57.45Fossibut the discussion made me wonder why there can't be support for both
08:58.33Fossii mean there are loads of crosscompiler workspace setup toolchains.
08:58.43Fossimaybe it's not worth the effort...
08:58.47Fossi*shrug*
08:59.23pierroxcr2: i agree with this, but for example i was writting some code to watch gpios on s3c24xx but it seems to have been already done elsewhere
09:00.37pierroxcr2: i wonder if i work on a stable or moving ground
09:01.09pierroxcr2: you told me about pxa dump function, but it is not in the hh.org haret version
09:02.53cr2Fossi: i don't know how far is Kevin with the main haret, maybe it's possible to use a ms tool .there are many, and they are all incompatible. i would have dropped it completely, to save the maintenance effort.
09:02.54pierroxabout the compiler, personnally i would prefer to keep 2 separate makefiles for the moment, one for gcc, and one for msvc-arm
09:03.50cr2pierrox: all the pxa functions are in the haret-gnu version in xanadux CVS.
09:04.51cr2pierrox: to be honest, i don't see _any_ benefit of msvc over gcc.
09:05.54lkclpierrox: no i don't know what SiRF looks like but apparently people have been successful in partially decoding it.  gpsd i believe supports it
09:06.17pierroxcr2: i can't access the xanadux CVS as shown in the HaRET wiki page : anoncvs and no paswword does not work. i had a look at the sf.net page and browsing the CVS source tree tell me that sources have not been modified since 4 weeks
09:06.24cr2lkcl: afaik, it is even possible to reflash a sirf device in linux.
09:06.31lkcloooo
09:07.09lkclhttp://www.die.net/doc/linux/man/man1/sirfmon.1.html
09:07.11pierroxcr2: i hate msvc tools but it seems that my cegcc compiler produces bad code unfortunately
09:07.44cr2pierrox: i'll try myself an anonymous checkout. it's good when the sources are stable for a month :)
09:07.47pierroxcr2: yes, and i have even the datasheet of the flash chip for the gps :-)
09:08.55pierroxi was able to read some characters from the uart, they seems to be from the gps but as they are binary i was wondering, and also i am not sure of stty parameters
09:08.58cr2pierrox: it's actually more interesting to dump the flash. they have come to an idea to charge for the sirf3 firmware updates, and have crippled the firmware compared to sirf2!
09:09.38cr2pierrox: use sirfmon
09:09.55cr2hmm. you don't have linux running yet ;)
09:10.50pierroxcr2: not on my pda unfortunately
09:10.54lkcloh btw cr2: looked up details on the ak4641: you remember i mentioned that i2c traffic yesterday when doing those GPIO phone watches?
09:11.16lkclwell the ak4641 has i2c commands it accepts, to switch headphone/speaker audio routing.
09:11.30lkclwhich you probably knew anyway.
09:11.41lkclbut it explains why there was so little gpio going on.
09:12.18lkclalso i looked last night at the asoc sourcecode/patch - i really don't get it.
09:12.53lkcland - the annoying thing is that the HTC Hermes _also_ uses the ak4641 so that's at least _four_ phones with that soundchip and it wasn't included in the damn asoc rewrite
09:15.18lkclhow about.... suspend/resume?  that'd keep me busy for a while ha ha
09:15.33lkclcr2 what was that about lcd, anyway?
09:16.10lkcldamnit this _always_ happens when i do linux kernel hacking:
09:16.13lkcl[35]   Stopped                 vi dis.py  (wd: ~/hw6915)
09:16.13lkcl[36]   Stopped                 vi acxwi.txt  (wd: ~/hw6915)
09:16.13lkcl[37]   Stopped                 vi sound/arm/htcsable_audio.c
09:16.13lkcl[38]-  Stopped                 vi sound/arm/htcuniversal_audio.c
09:16.13lkcl[39]+  Stopped                 vi sound/soc/codecs/ak4535.c
09:16.14lkclha ha
09:19.21pierroxi had a stupid idea this moring : it should be possible to find where a dll is mapped into memory (brute force search for example), and then change the code into memory to insert some branching to another function -> this way we could do some sort of "breakpoint" in system dll code ?
09:19.37pierroxit would require some special memory mapping and other tricks
09:19.53pierroxbut has anyone already worked on such a thing ?
09:22.11pierroxi have a phone call, shit
09:23.58lkclwell speak to Kevin2 because you can always do some sort of suspend on memory watching, with wi.
09:24.41cr2lkcl: have you dumped the IPL ?
09:24.59lkclIPL?  yes?  i think you told me about that one on... 20th oct or so
09:25.23lkclmaybe - no don't think so.
09:25.26cr2for lcd trace 'pwrlcd 1' and 'pwrlcd 4'. i should have made more userfriendly command names ;)
09:25.44lkclwell as long as they're in HELP, it's ok
09:25.49lkcl... and they're... not :)
09:26.02cr2lkcl: i think yes. imo, suspend will be easy. i'll look.
09:26.25lkcljust a straight pd of that page, right?
09:26.32lkclhow much of it?
09:26.38cr2pd ipl 0x0 0x800
09:27.10cr2we should create the mtd mapping for it in linux :)
09:27.33cr2it's the better way.
09:28.22lkclack.
09:28.30cr2look at the blueangel_rom.c
09:28.51lkclokie.
09:28.53cr2it maps 32MB pxa flash. you need only 0x800 bytes :)
09:30.19lkclahh right
09:31.54lkcloh no don't tell me - let me guess: you want me to create an mtd device from this, so i can get to that area under linux??
09:32.22cr2lkcl: there a 6 known (to me) devices with ak4641
09:32.24cr2yes.
09:33.06lkclok it's worth emailing to kd@hh.org then.  what's the other one?  hx4700, hermes, universal, hw6915..
09:33.57cr2beetles and apache.
09:34.35cr24 in "active" production.
09:34.38lkclok.  ta.
09:42.11lkclwhich of beetles or apache is in active production?
09:42.35cr2apache
09:42.50cr2in the US. Kevin has one.
09:42.55lkclyaay.  ok
09:43.00cr2it's a CDMA phone.
09:43.52cr2beetles is an old sable with normal SD slot and no wifi. the rest is the same.
09:44.10cr2SD+miniSD.
09:44.20cr2SD on asic3 and miniSD on pxa.
09:44.37lkclcool.
09:44.43cr2it even booted linux from miniSD
09:45.07cr2a cheaper device to hack on the gps :)
09:45.30cr2NickBee had it before.
09:45.36lkclta.
10:01.46pierrox|awthe pxa haret version uses intel specific features for the wi command and associated :-( can't work on s3c24xx, snif
10:44.17*** join/#htc-linux dullard (n=jim@adsl-static-1-30.uklinux.net)
10:53.50cr2pierrox|aw: it was written only recently. all the 'wgpio'-type stuff and the hardware related commands is portable to any cpu. if i had a samsung cpu, and read the manual, i've added it too.
10:54.51cr2i have 'wgpio' and 'dump gpio', 'wreg' and so on running on strongarm wince 2.11 (!)
11:09.06*** join/#htc-linux scatterp- (n=zsirc@212.32.67.196)
12:42.59pierroxcr2: yes, because wgpio and wreg are polling functions, but wi is using coprocessor values that are implementation defined. these specific features (software debug) are what i was looking for, but unfortunately they are not available on samsung
12:53.12cr2:(
13:04.09lkclcan anyone think of a reason why wi would not pick up the acx memory address being modified/accessed?  i wanted to trace memory-access to 0xab000000 and... well... nothing happens!  could it be due to dma?
13:08.33*** part/#htc-linux vitb (n=vitb@85.21.88.2)
13:09.30pierroxmaybe this has something to do with software debug register and exception handlers in irq.cpp ? perhaps additional configuration of p14 is needed
13:10.27Speedy2re
13:10.57pierroxre
13:16.08cr2lkcl: you can run wi on the dma registers
13:16.20lkclah cool
13:16.35lkclallo Speedy2
13:17.28lkclbtw pof was going to have a look at the CEOS.nbf for sable, for me, see if he can get stuff out of it cos it's in a different format from one's he's seen before
13:41.09*** join/#htc-linux pH5 (n=ph5@p54866378.dip.t-dialin.net)
13:42.56*** join/#htc-linux prpplague (n=billybob@69.73.209.14)
13:43.13prpplagueho ho ho, merry freakin monday
13:46.28prpplaguei don't see any info on the wiki pages about jtag for the hermes
13:46.37prpplaguehas anyone got that identified?
13:57.03prpplagueanyone done a board disassembly?
14:05.22pH5prpplague: not that I know of, but then again I'm probably not the best informed person on that topic.
14:06.09*** join/#htc-linux JTRipper_ (n=jtripper@p54B1D5E5.dip.t-dialin.net)
14:07.08prpplaguepH5: ahh ok
14:07.37prpplaguethere are plenty of potential pins on the board, just surprised no one has done more hardware research
14:11.07pH5because I don't have one and my brother wouldn't let me take his apart
14:12.39pH5prpplague: are you going to jumpstart the hermes port now?
14:13.21prpplaguepH5: not sure yet, we have a new s3c24xx starting soon, so i might grab some s3c24xx based phones to do some prototyping and code testing
14:17.56pH5Ah, ok. I haven't seen any Hermes activity besides what can be found on the wiki and in the forums, which is a pity. I think it is a really nice device.
14:36.15*** join/#htc-linux WizMaui (n=WizMaui@62.112.90.179)
15:28.00*** join/#htc-linux alex-begin (n=345rt@84.232.212.62)
15:43.02*** join/#htc-linux pH5 (n=ph5@e178217016.adsl.alicedsl.de)
15:43.09prpplaguepH5: re
15:55.05cr2prpplague: i think himalaya is the only htc phone, where jtag is identified.
15:55.50*** join/#htc-linux goxboxlive (n=goxboxli@9.80-202-160.nextgentel.com)
15:56.41prpplaguecr2: ahh
16:04.07prpplaguecr2: should be that hard to identify after removing all the componnents
16:07.30*** join/#htc-linux psokolovsky (n=psokolov@ip.85.202.124.214.dyn.sub-9.broadband.voliacable.com)
16:09.59*** join/#htc-linux pleemans (n=peter@d51A5E421.access.telenet.be)
16:10.53cr2prpplague: if you have a budget for it ;)
16:15.51prpplaguecr2: yea
16:31.11goxboxlivehi
16:31.16pH5hi goxboxlive
16:31.41cr2hi
16:32.10cr2pH5: did you move forward with asic3 owm ?
16:32.13goxboxlivei orderd a new battery today. The sevice senter wanted me to ship in universal and the battery. Well, that would have been takeing allmost a month.
16:32.33goxboxlivehmm seems like the handhelds cvs is down.
16:32.35cr2crazy.
16:41.33*** join/#htc-linux mndctrl_ (n=mind@2.81-167-1.customer.lyse.net)
16:43.20goxboxlivecr2: did you try out the latest sounddriver
16:49.03cr2goxboxlive: which one ?
16:49.30goxboxlivethe one you updated yesterday :-)
16:49.36cr2no.
16:49.55cr2you are the main testing person :)
16:50.32goxboxlive:-)
16:50.41goxboxliveDid you see my post at xda?
16:51.01goxboxliveWe have get rid of one failure message
16:51.19goxboxliveThere got to be something else right?
16:56.58cr2goxboxlive: i've read your post right now.
16:57.11goxboxlivegood
16:57.22cr2ALSA sound/core/oss/pcm_oss.c:940: HW_PARAMS failed: -22
16:57.31cr2i think this one comes as a result of
16:57.48cr2i2c_adapter i2c-0: master_xfer[0] W, addr=0x12, len=2
16:58.03cr2is it an error message ? or just a debug message ?
16:58.15cr2what is 22 in errno.h ?
16:59.17cr2#define EINVAL          22      /* Invalid argument */
16:59.40goxboxlivei dont know, but as you saw, we got rid of the other message
17:00.01cr2<PROTECTED>
17:00.01cr2<PROTECTED>
17:00.01cr2<PROTECTED>
17:00.01cr2<PROTECTED>
17:00.46cr2this one shows that the command was sent to 0x12 (ak4641)
17:00.49cr2i2c_adapter i2c-0: master_xfer[0] W, addr=0x12, len=2
17:01.10cr2have you enabled all i2 debugging messages ?
17:01.19cr2s/i2 /i2c /
17:07.43goxboxliveI havent added anything debug other than wahts in the htcuniversal_defconfig
17:08.39goxboxliveI can try to do that, but it seems like the hh.org anoncvs is down at the moment, so i dont have any kernels to compile
17:20.25cr2ok.
17:21.45*** join/#htc-linux asylumed (n=insanity@196.211.116.2)
17:22.38goxboxlivecr2 could you try to login to hh.org, not as a user but as a anoncvs
17:22.52goxboxlivebash$ export CVSROOT=:pserver:anoncvs@anoncvs.handhelds.org:/cvs
17:22.52goxboxlivebash$ cvs login
17:22.52goxboxlivepassword: anoncvs
17:24.11cr2no. it hangs.
17:30.03cr2hmm. wince sends ak4641 i2c commands, that linux ak4641 does not even know ;)
17:30.25cr2they are not implemented.
17:30.39cr2must look in the datasheet.
17:32.04goxboxlivehmm ok, sounds intresting
17:32.45cr2it is a solution for our problem, but anyway.
17:40.09goxboxlivecr2: Should i enable this in the kernel: Intel PXA2XX I2C Slave comms support (I2C_PXA_SLAVE)
17:41.02cr2no.
17:41.21cr2mic switch and mic power are done by commands, not gpio.
17:41.54goxboxliveok
17:42.26goxboxlivewhat about this then: I2C/SMBus Test Stub (I2C_STUB)
17:43.15goxboxliveIf not i have all the debug messaging active.
17:43.59cr2no.
17:46.23cr2hmm. looks like a bug in wince.
17:47.24goxboxliverealy
17:48.25cr2it's a _feature_, but i don't like it this way.
17:49.41cr2we can delete the mic power function, it's done over i2c on universal.
17:50.24goxboxliveok
17:55.40cr2equalizer is not implemented. also used by wince.
17:59.22cr2interesting. there is an  asic3 gpio that tells you that mic is on, although it is controlled by i2c command :)
18:11.36*** join/#htc-linux BabelOued (n=Fabrice@lun34-2-82-238-28-28.fbx.proxad.net)
18:14.17goxboxlivehave to reboot
18:16.54cr2BabelOued: can you trace the camera on blueangel ?
18:20.03*** join/#htc-linux asylume2 (n=insanity@196.211.116.2)
18:20.59cr2asylumed: hi
18:21.23asylumedcr2: hey
18:21.43cr2can you check the camera i2c id ?
18:22.03asylumedsure... how though?
18:22.14cr2i think i have also found a bug in the sound driver.
18:22.36cr2set trace 0xae301688
18:22.40*** join/#htc-linux goxboxlive (n=goxboxli@9.80-202-160.nextgentel.com)
18:22.46cr2and then switch the camera on/off
18:23.00cr2post the log to pastebin.
18:23.50cr2i have added the PWM macros/definitions to ipaq-asic3.h, you should fix the ba backlight driver.
18:24.25asylumedk, will have a look a little later at that...
18:27.39asylumedcr2: during wi?
18:28.05asylumedcr2: it spits out alot...
18:28.21asylumedcr2: after i ignore many irq's
18:28.34cr2asylumed: mask 7,10,
18:28.39cr2asic3
18:28.40cr2hmm
18:29.02cr23,11
18:29.12asylumed00ba5e03: debug 010b20c8: e5c20000(strb) 000000a4 ae301688
18:29.15asylumed00ba5edf: debug 010b21c8: e5c13000(strb) 000000c0 ae301688
18:29.21cr2ok.
18:29.31cr20xa4/2=0x52
18:29.54asylumed?
18:29.56cr2http://wiki.xda-developers.com/index.php?pagename=HTC_I2C_IDs
18:30.04cr2question solved.
18:30.32asylumedkewl
18:30.37cr2you have adcm2650 cam
18:30.49cr2but imho, there are models with a different cam
18:31.31BabelOuedcr2: hi
18:31.48BabelOuedcr2: i m working on acx_cs.c
18:32.16cr2BabelOued: the hx4700_pcmcia is buggy
18:32.35cr2it does not handle the asic3 clocks properly.
18:32.45*** join/#htc-linux mreimer (n=mreimer@bilbo.vpop.net)
18:32.45asylumedcr2: what is a 2408W btw?
18:32.51cr2i have fixed 1 bug (indirectly), but that's not all.
18:33.03cr2asylumed: wifi eeprom.
18:33.23cr2eth addr & other settings.
18:39.09pH5cr2: the first byte in the i2c stream is the address*2?
18:39.20pH5then the magician has the camera at 0x30
18:40.23*** join/#htc-linux goxboxlive (n=goxboxli@9.80-202-160.nextgentel.com)
18:48.48*** join/#htc-linux RoEn_PC (n=roen@p54A6615B.dip.t-dialin.net)
19:10.21alex-begincr2: is the HARET Reverse eng tool designed specially for HTC devices or works on any kind of ARM device?
19:16.34*** join/#htc-linux goxboxlive (n=goxboxli@9.80-202-160.nextgentel.com)
19:33.18cr2pH5: it's 2*id for write, 2*id+1 for read
19:33.47cr2alex-begin: for many arm devices, maybe for ,ost
19:34.44cr2pH5: welcome to the club:  OV9650
19:35.01goxboxliveare cr2: you figureing something out with the sound driver
19:36.01cr2goxboxlive: how can we test the pxa DMA ?
19:38.39goxboxlivei dont know
19:39.05cr2the lcd uses its own separate dma channels
19:39.21cr2udc ?
19:40.05cr2camera is a good candidate, but we don't have the tested and working drivers.
19:41.59goxboxliveI have the latest kernel running now, copied the cource from my desktop pc.
19:42.14goxboxliveIs there any test you want me to do while i have it running?
19:43.05cr2no. at least not yet.
19:45.59goxboxliveok
19:51.00*** join/#htc-linux doepiedoe (n=doepiedo@84-53-96-51.fiber.unet.nl)
20:02.17*** join/#htc-linux RoEn_PC (n=roen@p54A6615B.dip.t-dialin.net)
20:04.04pH5How is the backlight of the phone keys supposed to be hooked up? I currently have a magician:keys led in the led driver.
20:05.45cr2pH5: nobody knows, because there are no free software phones.
20:06.27pH5cr2: I also wonder about the vibra. Should I put it as force-feedback device on the keypad? ;)
20:06.52cr2we have all events on /dev/input/event1 now, and it is hardcoded in opie. ugly ;)
20:07.13cr2i think it's a pure userspace issue.-
20:07.35cr2which program will use/manipulate it ?
20:08.16pH5cr2: the vibra motor or the keypad illumination?
20:08.52cr2keypad is tied to the lcd backlight in wince.
20:08.59pH5first one should be used by phone and calendar(alarm) software, the latter could blink for alarms, but otherwise we could just connect it to the backlight as in wince
20:09.02pH5ah, yes :)
20:09.09cr2you mean, the phone keypad ?
20:09.38cr2i have 3 "backlights": keyboard, phone keys, lcd
20:10.00pH5yes, only the lift/hangup keys are illuminated here.
20:10.01pH5does the universal also have one of those light sensors?
20:10.03cr2well, we need a general solution.
20:10.08cr2yes.
20:10.42pH5do you have a hwmon driver for it?
20:10.55cr2it's a button. no.
20:11.09pH5oh. just a gpio line?
20:11.27cr2yes, you can't measure w/m^2 with it :)
20:12.06pH5:) schade
20:12.13cr2it's not a photometer ;)
20:13.02cr2next you would like to have a spectral resolution, measure in near infrared ...
20:13.16cr2i'd enjoy something like that too :D
20:13.45cr2or in UV.
20:14.38pH5ok, I see we're expecting too much from htc :)
20:16.19cr2why don't you have a working phone ? even lkcl has it :)
20:16.42goxboxlivecr2: We had the light sensor working in .12 . Why is it disabled now? COuldnt we link it to the keyboard light so it will switch on/off?
20:16.49pH5http://en.pastebin.ca/253443
20:17.08pH5I just hooked it up to the pxa_serial_funcs of the btuart - what could I do next?
20:18.06pH5is the light sensor on a pxa gpio, or on asic3? there is one on the hx4700, too, but I never noticed any code to handle it.
20:18.29cr2pH5: do you understand the phone protocol ?
20:18.34cr2asic3 gpio.
20:18.50*** join/#htc-linux RoEn_PC (n=roen@p54A6615B.dip.t-dialin.net)
20:19.00pH5cr2: \x02\x16AT-COMMAND\r\x02
20:19.11cr2there was an opie handler for light  sensor long ago.
20:19.12pH5with that I can start to reproduce the commands I traced with haret
20:19.22cr2ok.
20:19.45pH5but I don't have sound yet..
20:20.20cr2goxboxlive: there is no such "input" in linux/input.h ;)
20:20.32goxboxliveok
20:20.36doepiedoehttp://the.taoofmac.com/space/AT%20Commands
20:20.48cr2there is LID, and ROTATE. that's all.
20:21.30cr2doepidoe: http://wiki.xda-developers.com/index.php?pagename=HTC_GSM
20:21.46doepiedoe:)
20:22.11cr2it seems zaurus has only these 2 "inputs".
20:22.13doepiedoei want to run linux on my universal, but SD seems to be defect :S
20:22.23cr2SD ?
20:22.27doepiedoeyeah SD slot
20:22.36cr2in wince ?
20:22.38doepiedoeyeah
20:22.56doepiedoecan't boot linux without rootfs
20:23.01doepiedoeyou can boot
20:23.01doepiedoe;)
20:23.02cr2we don't have a doc g3 driver yet.
20:23.14doepiedoebut you can't do much
20:23.22pH5cr2: do your phones survive suspend? (open gsm ctrl -> suspend -> resume -> does it still work without reset?)
20:23.37cr2you can flash linux.
20:23.47doepiedoeis there a bootloader already for universal?
20:23.51cr2pH5: ask goxboxlive, i'm not a linux user myself :)
20:24.15cr2doepiedoe: it is possible to write one.
20:24.21doepiedoelol
20:24.23doepiedoeindeed ;)
20:24.32cr2but i'll be a bit reluctant to be the first to flash it.
20:24.39doepiedoe:P
20:24.43doepiedoei'll flash mine ;)
20:24.49cr2no, really. hx4700 has a linux bootloader.
20:25.02cr2we only need to adjust the gpios.
20:25.06doepiedoeaha
20:25.16cr2and hx4700 flashes it.
20:25.16doepiedoesounds nice
20:25.31cr2the problem is that we need a g3 driver.
20:26.11cr2the first step will be to write a "readonly" raw block mtd device driver
20:26.34cr2it sounds awfully complex, but most of the research is already done.
20:26.57doepiedoesome day i will help this community ;)
20:27.28doepiedoeg3 is for which part>?
20:27.29cr2http://wiki.xda-developers.com/index.php?pagename=HTC_DiskOnChip
20:27.33doepiedoeahhh
20:27.34doepiedoe;)
20:27.38doepiedoelike on the onld mda
20:27.49doepiedoeyeah, then i don't need SD anymore
20:28.08doepiedoeso the doc contains the bootloader?
20:28.12cr2yes.
20:28.25cr2it contains everything.
20:28.34doepiedoeso can't it be done by jtag?
20:28.40cr2so it's better to test the g3 driver first on blueangel.
20:28.45doepiedoeahhh
20:28.51doepiedoeget it
20:29.08cr2you know the pins and want to solder and don't care about the warranty ?
20:29.15cr2well, you maybe :)
20:29.32doepiedoewould you like to write linux support for flash and then flash the bootloader?
20:29.35lkclBabelOued: you're dealing with acx, right?
20:29.37lkclallo darlins
20:29.40cr2blueangel has the bootloader and wince in pxa flash
20:29.53doepiedoepxa of ba has flash?
20:29.54cr2so the trashed g3 is not a problem.
20:30.08cr2yes, it's 263
20:30.09doepiedoeor flash connected to it...
20:30.12doepiedoenice
20:30.15cr232MN
20:30.19cr232MB
20:30.20doepiedoei had one to once ;)
20:30.25doepiedoebut broke the display....
20:30.37cr2me too :(
20:30.39lkcldoepiedoe i got a blueangel, himalaya, executive, hp6915 - i could do say the blueangel plus i know someone who smashed their screen so i could do that one.
20:30.40doepiedoe:S
20:30.47cr2but i have replaced it myself.
20:30.48doepiedoe;
20:31.11lkcldamn things are glass
20:31.33cr2ba is a nice phone.
20:31.36doepiedoemine were h3900,h5450,h5550,h2210,xda1,mda1,mda2,h6340,blueangel,universal,hw6515
20:31.38lkclso doepiedo, you can do g3 right?
20:31.42doepiedoei miss a couple :P
20:31.47doepiedoeg3?
20:31.53doepiedoe3g
20:31.55cr2we only need to understand the ati vidcap register layout.
20:31.59lkclcool!  oh you have a htc beetles!
20:32.07doepiedoethere was a guy on the main channel
20:32.08doepiedoenoone
20:32.13doepiedoewho wrote an ati driver
20:32.18cr2and finally find the wifi there.
20:32.26doepiedoefor h740 or something
20:32.38cr2with video capture ?
20:33.04lkclg3 - DoC m-systems
20:33.14cr2the chip has even more stuff packed in, but it's not used by htc
20:33.50doepiedoehttp://www.mnementh.co.uk/eseries/
20:33.58doepiedoedont know, but think it was ati
20:34.03doepiedoenot the same chip
20:34.04cr2asylumed: what kernel version are you using ?
20:34.07doepiedoebut this guy was good ;)
20:34.16asylumed2.6.18-hh0
20:34.28doepiedoeATI 215W100AFA12   FA51571   024100   Taiwan
20:34.41cr2it's more simple chip.
20:34.49doepiedoeok
20:34.59cr2and the w100 driver was available on zaurus
20:35.06doepiedoeaha
20:35.21doepiedoei'll have to go ;) will be back soon, nice talking to you :)
20:36.13pH5hey lkcl, where is your code to talk to your phone again?
20:36.22lkclque? which one, dude?
20:36.47pH5you played with the sable's phone chipset lately, right?
20:38.23pH5lkcl: can you do anything against the pxa serial ports being shut down during suspend?
20:38.28cr2pH5: http://hands.com/~lkcl/hp6915/
20:38.42pH5I haven't figured out yet how to not reset the GSM chip with a suspend/resume cycle
20:38.43pH5lkcl: thanks!
20:39.16lkclpH5: you give me a little more credit than i deserve by asking me that question: i haven't a clue :)
20:39.18cr2pH5: how do you suspend the CPLD ?
20:39.59pH5cr2: not at all, it comes back as I left it.
20:40.16cr2on blueangel the GSM alert gpio is on pxa, but on universal it is on asic3.
20:40.24cr2ok.
20:41.58pH5Perhaps I can do something more to save some energy, but the cpld controls the power to the gsm chip, so I think it can't be completely shut down anyway.
20:43.23*** join/#htc-linux RoEn_PC (n=roen@p54A6615B.dip.t-dialin.net)
20:43.31lkclph5: oh - yes, i did play with the gsm on the hw5915, for a bit.
20:44.02lkclenough to work out the protocol - and then, knowing that i could come back to it any time, left it at that.
20:44.08cr2lkcl: do you have a raw 0x800 dump ? i forgot how to convert hexdump to binary.
20:44.16lkclsure.  hehe
20:44.19lkclmmm......
20:44.37lkcli did - i just haven't copied it off the memorycard yet..
20:45.03cr2ok, do it, then we'll probably have a working cpu suspend for you.
20:45.54lkclhttp://hands.com/~lkcl/hp6915/pd.0x0.0x800
20:46.03lkclbut a hexdump doesn't quite look right o well
20:46.25lkcland i'm sure it hasn't taken enough...
20:46.30*** join/#htc-linux g3gg0__ (n=g3gg0@ppp-82-135-10-33.dynamic.mnet-online.de)
20:46.38lkclor too much.
20:47.25lkcllooks very odd.  gonna do it again
20:47.32cr2the first instruction is awy, but it's not a problem.
20:47.38cr20x37312e47
20:47.46cr2this is your "magic"
20:48.44cr2i had one for Kevin's apache, and for my universal. need to ask goxboxlive about his value. hopefully it's the same number for a given device type.
20:49.16cr2do you have an mtd driver for it ? :)
20:49.44lkcloh, oops - gimme a few seconds minutes or something ha ha
20:54.19lkclhmmm... i have to define CONFIG_MTD_MAP_BANK_WIDTH_N
20:55.09cr2also for the readonly device ?
20:55.58cr2lkcl: i have found your dump. but write the mtd driver anyway :) it can be reused on other phones.
20:56.03lkclack
20:56.09goxboxlivethis was fun: http://www.gsm-modem.de/gsm-modem-faq.html
20:57.00goxboxliveWHat value?
21:02.09lkclwell it helped to put _some_ devices in...
21:02.50cr2goxboxlive: the second 4bytes of IPL.
21:03.12cr2pd 0x4 4
21:03.14cr2in haret
21:03.50goxboxlivedo i have to do that now? I am trying to send a sms
21:04.01cr2no.
21:04.21cr2by hand ? :)
21:09.14goxboxliveyes with 'cu'
21:09.14cr2cool.
21:10.11pH5goxboxlive: :D
21:13.31cr2lkcl: you can just grab the suspend driver from the universal.
21:13.49lkcli think that's where i started o no it was the hx4700 one
21:13.54cr2i wonder if we need 10 clones of it ;)
21:14.14cr2hx4700 is really weird. like blueangel.
21:16.25cr2lkcl: we need a little brainstorming to get the raw g3/g4 minidriver.
21:16.34lkclokie.  sure
21:17.06cr2the idb is in paq69/
21:17.15*** join/#htc-linux alex-begin (n=345rt@84.232.212.62)
21:17.26cr2i was already trying to convert asm to c.
21:17.36goxboxliveyyiiihhhaaa i have send a sms
21:17.46cr2to yourself ?
21:18.12goxboxliveno to my girfriends phone
21:18.19goxboxliveI can try to send to my self to
21:18.43lkclok can do gimme a moment - asm to c is... fuuun.  can you do a print/dump or point me in the direction of what option i'm supposed to get an asm dump to text file?  i forgot...
21:18.46cr2i'm curious if you'll get it in cu :)
21:19.30lkclwell done goboxlive
21:19.33cr2lkcl: should i save the lst file for you ?
21:19.38*** join/#htc-linux Scott_Waye (n=scott@213-152-36-33.dsl.eclipse.net.uk)
21:19.41lkclanywhere doesn't matter
21:19.53lkcl/home/cr2/paq69 is as good a place as any
21:22.20lkclok now i am the proud buyer (not owner...) of an htc hermes.  hooray!
21:23.01cr2crazy.
21:23.03lkclok i gotta rest for a bit before tackling asm to c.  get food, get drink etc.
21:23.04pH5wow, this seems to be a good day for hermes development
21:23.06lkclyep.
21:23.30lkclwell it's one with a samsung processor and i wanted to try that one, see if it's any easier than this frickin about.
21:23.38mreimerpH5: why, what happened? (I'm trying to get hermes 2.5 working on an i.MX device.)
21:23.40lkclall these htc proprietary chips are pissing me off
21:23.58cr2pH5: a proper s3* haret is needed anyway.
21:24.09lkcland i suspect they are annoying htc as well :)
21:24.18cr2lkcl: which ?
21:24.26lkclhello htc, nice to see you're watching the irc logs!
21:24.33lkcldo say hello one day, ok?
21:25.20pH5mreimer: htc hermes, not hermes wlan
21:25.31cr2lkcl: i've saved the hw6900_ipl.lst file, but let me put my own commented file for universal.
21:25.34mreimerpH5: ah, ok
21:26.11cr2lkcl: hermes has the 54mbit successor to acx100 ? good luck :)
21:27.12cr2lkcl: the relevant code starts at loc_25C:
21:28.03pH5also it has one of the popular ati imageon chipsets
21:29.48cr2pH5: accel video ? the fb address is in SRAM.
21:30.14cr2and video/audio capture. will take some time to get right.
21:30.34cr2lkcl: ipldump_jar.lst3
21:39.28lkclta cr2
21:39.45lkclha ha cr2.  all i really want is a phone :)
21:42.08lkclone i can say is mine, all mine mwahahaha
21:43.09pH5good  night
21:44.07lkclseg000:0000025C                 STR     R2, [R3]
21:44.07lkclseg000:00000260                 LDR     R3, MDMRS
21:44.16lkclstarting from there?
21:44.17cr2lkcl: the label
21:44.35lkclyou mean loc_23C:
21:44.37lkcl?
21:45.43cr2take better this file ipldump_jar.lst3
21:45.48cr2in the root dir
21:46.00lkcli did.
21:46.24cr2loc_2B0
21:46.44lkclokie.
21:47.12cr2keep this page open
21:47.14cr2http://wiki.xda-developers.com/index.php?pagename=HTC_DiskOnChip
21:48.28cr2we need to understand exactly which blocks are read there, so we may try to read the others.
21:51.29lkclk
21:51.37lkclwhat does MVN R2, R2 mean?
21:53.36cr2move negate
21:54.01cr2R2=~R2
21:54.01lkclMove Not        Rd =    NOT Op2
21:54.08lkclfull bit-reverse?
21:54.20lkclyep it is
21:54.30cr2yes. to check  chipid_1 (G3=0xfdff(~200), G4=0xfbff(~400))
21:54.59cr2BNE     ret0
21:55.03*** part/#htc-linux Scott_Waye (n=scott@213-152-36-33.dsl.eclipse.net.uk)
21:55.06cr2means not found.
21:55.10lkclo bugger.  arm processors are pipelined, right?
21:55.36cr2yes, but this code is straitforward.
21:56.10goxboxlivehmm what does this mean then: +CNMI: 0,0,0,0,0
21:56.10goxboxlive+CNMI: (0,1,2),(0,1,2,3),(0,2),(0,2),(0,1)
21:56.57cr2http://wiki.xda-developers.com/index.php?pagename=HTC_GSM
21:57.20cr2Display new incoming SMS
22:01.23goxboxlivewhen i try to recive a sms with at+cmgr=1 i get this failure: +CMS ERROR: 321
22:05.32cr2hmm. one more 16bit reg.
22:06.38cr2put into wiki.
22:07.03cr2goxboxlive: can you read it with gomunicator ?
22:07.20goxboxliveno i dont think so. I am running opie
22:07.25lkclok i'm getting _really_ confused.
22:07.39goxboxliveIs there a way to get gommunicator running with Opie?
22:07.48lkclLDRH R1, [R2] is equivalent to
22:08.04lkclr1 = *((short*)r2)
22:08.06lkclright?
22:09.06lkclack about the extra reg, cr2
22:09.20goxboxlivecr2: am i using UMTS ? +BANDSEL: 2,121
22:12.20goxboxlive+BANDSEL: 2,121
22:12.21goxboxlivecu: Got termination signal
22:12.21goxboxliveDisconnected.
22:12.25cr2lkcl: yes
22:12.42lkclack
22:12.43cr2goxboxlive: 121 ?
22:12.53goxboxlivei dont know what that is
22:13.00goxboxliveit came up when i use the bandsel
22:13.03cr2bandsel=2 -> UMTS, 1 -> GSM
22:13.13goxboxliveThen i am using UMTS
22:13.31cr2btw, do you can /dev/ttyUSB0 ?
22:13.36lkclcr2 device id select and device ID select are 0xa and 0x1a.  why both?
22:13.43cr2s/can/have/
22:14.23cr2lkcl: are they documented ?
22:14.24goxboxliveno
22:14.32lkclboth are documented as device id select
22:14.39lkclone is capitalised :)
22:14.47cr2hmm. don't remember.
22:15.06cr2goxboxlive: but you have usbhost loaded ?
22:15.13cr2mount usbfs
22:15.17goxboxliveno
22:15.19cr2look in /sys/
22:15.37goxboxliveno usbfs there
22:15.51cr2well, we can force creation of /dev/ttyUSB0 and /dev/ttyUSB1
22:15.57cr2with right modules
22:16.15lkclcr2: a byte is being stored in 0x3 and the doc page says it's a short.  this a problem?
22:16.16goxboxlivewhy do i want usbfs?
22:16.17cr2then you are supposed to see something on /dev/ttyUSB0
22:16.24goxboxliveok
22:16.43cr2lkcl: don't think so, but it's dumb.
22:16.45lkclok
22:17.28cr2i can look into the docs.
22:18.21doepiedoecan someone tell me what asic3 is?
22:18.30doepiedoean extender for pxa proc?
22:19.27cr2doepiedoe: a companion chip. it's traditional since sa1100 to have such device.
22:19.42doepiedoeahh ok
22:19.44cr2for other useful functions.
22:20.07cr2like usb host, gpio, SD , etc.
22:20.30doepiedoeso gpio goes via asic3?
22:20.46lkclit's to complement the fact that there's not enough gpio on a pxa to do phone functionality.  it has another 64 bits of gpio, it has another SPI bus - lots and LOTS of stuff.
22:21.01*** join/#htc-linux alex-begin (n=345rt@84.232.212.62)
22:21.16alex-beginanyone here started to hack the HTC METEOR
22:21.18alex-begin?
22:21.34*** join/#htc-linux lamikr|lap (n=chatzill@aragorn.kortex.jyu.fi)
22:22.02alex-beginhas got a Q U A L C O M M MSM6275 chipset solution
22:22.05doepiedoeyeah i did, and now it's dead :)
22:22.20alex-beginneed some docs from qualcom site
22:22.32alex-beginseems you need some special code or something
22:22.48alex-begini sent some emails and they neverreplied
22:23.20doepiedoe(HTC MTeoR) has the same Processor/ Chipsets Qualcomm MSM6275 as the HERMES
22:23.35alex-beginooo
22:24.03doepiedoeit seems to be only radio chip
22:24.15doepiedoeno
22:24.17doepiedoeits cpu
22:24.40doepiedoesamsung 300mhz :S
22:24.42alex-beginare there any manuals about the MSM6275 and RF and TX controllers used on these devices?
22:24.46alex-begini mean detailed ones
22:24.54*** join/#htc-linux florian__ (n=fuchs@84.245.179.44)
22:24.56alex-beginnot HARET stuff
22:25.10doepiedoelike this? http://www.sierrawireless.com/resources/documents/products/MC8755_65%20Datasheet%20rev%201.2.pdf
22:25.39*** join/#htc-linux florian__ (n=fuchs@84.245.179.44)
22:26.30alex-beginnope
22:26.42doepiedoeit seems there's just a linux driver available for the chip...
22:26.57alex-begindoepiode : why did your phone die?
22:26.59doepiedoefrom pcidevs.txt: D000CQualcomm MSM6275 UMTS chip
22:29.16florianre
22:29.27doepiedoecrappy
22:29.51alex-beginwhat happened
22:29.52alex-begin?
22:29.53cr2universal has MSM6250
22:30.40cr2and you talk on the serial port. there is also an usb port, but it's for the umts, and we don't know what to do with it.
22:31.10cr2the rest is not your business :) it runs some RT unix.
22:32.14*** join/#htc-linux ljp (n=lpotter@203.94.178.46)
22:33.24doepiedoei just drove over my toe
22:33.39lkclwell done, doepiedoe!
22:34.21cr2lkcl: 0x1a wiki info is wrong, i'll correct it.
22:34.28lkclok hooray
22:34.33alex-beginall my friends with htc devices only had very minor problems with their hardware
22:36.44lkclwell until linux is on them i ain't using them, so i only have one problem: wince is on them,
22:36.58lkclit's a pretty big problem.
22:37.09lkclthe up-side is: all my htc devices are in pretty good condition :)
22:37.25alex-beginheard about this : RTR6250, RFR6250???
22:37.39cr2done.
22:38.08doepiedoeanyone knows if theres a key combination to flash the wince image to a SD card on the Universal?
22:40.31cr2lkcl: the 0x800-0x1000 is the "flash window". you select it in some way, and it's mapped. i was curious why 0x800 is so special in the code.
22:40.46cr2mapped to the real data.
22:40.51lkclooo
22:41.23lkclwhat's BL?
22:41.30cr2and the 0x101a is the read register if i understand correctly.
22:41.30lkclbranch long?
22:41.34lkclok
22:41.58cr2branch & link. 'call' in fortran & basic :)
22:43.13cr20x800 it's 2K chunk ?
22:43.33lkclah cool
22:43.39lkclwtf _this_ ORR R0, R0, R2,LSL#16
22:43.52lkclr0 |= (r2 >> 16)
22:43.53lkcl?
22:44.02cr2yes.
22:44.10lkclnot r2 << 16 ?
22:44.16cr2left
22:44.19cr2<<
22:44.24lkcl:)
22:53.30lkclso far: http://hands.com/~lkcl/hp6915/g3.c
22:53.36lkclgonna take a break.  v. intense.
22:53.55cr2lkcl: the manual has some primitive sample code, i'll try to rip it out.
23:01.41*** join/#htc-linux g3gg0_ (n=g3gg0@ppp-82-135-10-33.dynamic.mnet-online.de)
23:05.38*** join/#htc-linux Kmarc (i=kari@markos.biz) [NETSPLIT VICTIM]
23:05.50*** join/#htc-linux g3gg0__ (n=g3gg0@ppp-82-135-10-33.dynamic.mnet-online.de) [NETSPLIT VICTIM]
23:05.50*** join/#htc-linux mreimer (n=mreimer@bilbo.vpop.net) [NETSPLIT VICTIM]
23:05.50*** join/#htc-linux TeringTuby (n=maarten@189-66-dsl.ipact.nl) [NETSPLIT VICTIM]
23:07.45cr2lkcl: great job.
23:08.16cr2there are some mistakes. R1=0x1000. always.
23:08.21cr2*((char*)R1 + 0x3E)
23:08.46cr2this means -- some_delay();

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.