IRC log for #htc-linux on 20080315

00:19.59BabelOgood night
00:55.31*** join/#htc-linux noelcragg (n=noel@adsl-69-232-228-255.dsl.pltn13.pacbell.net)
00:59.08noelcraggapologies for the newbie question: is there a wiki page that contains pointers to the latest source / binaries for HTC Sable?
01:16.47*** join/#htc-linux Marex (n=marex@gwfm10-3-250.802.cz)
02:13.16*** join/#htc-linux rmoravcik (n=rmoravci@ip-89-102-255-171.karneval.cz)
02:25.27*** join/#htc-linux ltxda (n=ltxda@unaffiliated/ltxda)
03:38.41*** join/#htc-linux Zoolooc (n=fredsiba@nrbg-4dbfb10f.pool.einsundeins.de)
03:50.10*** join/#htc-linux dcordes (n=snoopdog@unaffiliated/dcordes)
04:01.13*** join/#htc-linux joschkop179 (n=joschi@ACAE2306.ipt.aol.com)
04:59.41*** join/#htc-linux joschkopf79 (n=joschi@AC9E531D.ipt.aol.com)
06:31.27*** join/#htc-linux CVirus (n=GoD@196.205.192.125)
07:37.51*** join/#htc-linux goxboxlive (n=goxboxli@208.84-48-176.nextgentel.com)
08:54.34*** join/#htc-linux rmoravcik (n=rmoravci@ip-89-102-255-171.karneval.cz)
09:42.13*** join/#htc-linux dcordes (n=snoopdog@unaffiliated/dcordes)
09:56.04*** join/#htc-linux pH5 (n=ph5@p5485DA1E.dip.t-dialin.net)
09:59.26*** join/#htc-linux swc-666 (n=no@24.143.67.18)
10:35.01*** part/#htc-linux swc-666 (n=no@24.143.67.18)
11:09.50*** join/#htc-linux patoche (n=patoche@lns-bzn-44-82-249-192-208.adsl.proxad.net)
11:16.36*** join/#htc-linux Marex (n=marex@gwfm10-3-250.802.cz)
11:17.34*** join/#htc-linux kiozen (n=kiozen@rgnb-4db1d929.pool.einsundeins.de)
11:52.45*** join/#htc-linux patoche (n=patoche@lns-bzn-44-82-249-192-208.adsl.proxad.net)
12:04.20*** join/#htc-linux rob_w|laptop (n=rob@X0930.x.pppool.de)
12:04.44MarexpH5, cr2, hi
12:05.00MarexpH5, cr2, I managed to switch the camera on, so it appears at 0x30 on i2c
12:05.31MarexpH5, cr2, Now is the time to bind i2c-ov96xx (or ov9640? )
12:06.50pH5hi Marex, that would be my next step, yes.
12:07.27Marexwell I compiled it as a module, set address to 0x30, but when I insmoded it, no function from that module was called
12:07.32MarexI did some stupid mistake :/
12:13.29pH5Marex: the current code is a bit ugly, the i2c_ov96xx_init etc. functions are called from the ov96xx driver in media/video
12:13.47Marexah I see
12:14.02MarexI surely havent compiled that one, thanks
12:33.43*** join/#htc-linux dcordes (n=snoopdog@unaffiliated/dcordes)
12:41.58*** join/#htc-linux BabelO (n=BabelO@lun34-2-82-238-28-28.fbx.proxad.net)
12:42.00*** join/#htc-linux BabelO_ (n=Fabrice@lun34-2-82-238-28-28.fbx.proxad.net)
12:43.13BabelOHi
12:45.10dcordeshi BabelO
12:50.11BabelOpH5: i install scratchbox, not so easy, installer script contain an error
12:52.50dcordesBabelO, what's that?
12:54.57pH5hi BabelO, I don't remember having to change anything in there to get it to work..
12:54.59pH5hi dcordes
12:55.12dcordeshi pH5
12:59.10BabelOpH5: for me login executable was only set to root owner, and can not start it
12:59.51BabelOpH5: i try to compile my usb webcam driver to run on maemo ;)
13:00.28BabelOdcordes: it is the n800 emulator
13:03.46pH5BabelO: very useful
13:04.20pH5my usb gadgets are similarly useless on the n810. a usb sound card, a sd card reader, a bluetooth dongle...
13:05.23*** join/#htc-linux kiozen (n=kiozen@rgnb-4db1dfe4.pool.einsundeins.de)
13:06.57*** join/#htc-linux the_sys0p (i=the_sys0@gateway/tor/x-e848c737e2563018)
13:07.22BabelOpH5: yes same here, my webcam has a better image and need less light
13:07.34BabelOHi kiozen
13:07.51kiozenhi BabelO et al
13:08.16pH5BabelO: true, there is no way it could be worse :)
13:08.26pH5hi kiozen
13:08.37dcordeshi kiozen
13:08.43dcordesBabelO, gspca?
13:09.07BabelOdcordes: yes, the only one
13:13.34dcordesBabelO, does n800 have usb2 or is only old usb required for webcam?
13:14.00*** join/#htc-linux diogene31 (n=rj@mur31-2-82-243-122-54.fbx.proxad.net)
13:14.20BabelOdcordes: don t know, maybe pH5 know that
13:16.33pH5dcordes: n8x0 is usb2 for both client/host
13:28.57dcordesneat
13:29.17dcordesI would like one of those n810 but for now my emedded device budget is burnout
14:23.08*** join/#htc-linux TimRiker (n=timr@70.1.153.92)
15:03.41*** join/#htc-linux bernt_ (n=bernt@dslb-084-061-247-156.pools.arcor-ip.net)
15:05.19*** part/#htc-linux BabelO (n=BabelO@lun34-2-82-238-28-28.fbx.proxad.net)
15:33.28cr2hi
15:51.40*** join/#htc-linux CVirus (n=GoD@82.201.222.170)
16:22.54*** join/#htc-linux ltxda0 (n=ltxda@unaffiliated/ltxda)
16:29.51noelcraggwhich source tree are you folks working from: xanadux.cvs.sourceforge.net or handhelds.org?
16:30.24*** join/#htc-linux gers (n=grts@p54A2CC38.dip.t-dialin.net)
16:31.44cr2noelcragg: hh.org
16:31.49noelcraggthx
16:42.05*** join/#htc-linux ltxda00 (n=ltxda@c-98-196-125-205.hsd1.tx.comcast.net)
16:53.08Marexcr2, hi
16:53.21Marexcr2, Im now looking at the SoC audio on 6515d
16:53.33Marexlooks like it's the same as in blueangel ...
16:53.57MarexI see more and more differences between sable and beetles :E
16:54.39noelcraggDoes anyone have info on which test points are JTAG pins on Sable?
17:00.08BabelO_pH5: any idea why i have no network under scratchbox ?
17:04.28*** join/#htc-linux ltxda (n=ltxda@unaffiliated/ltxda)
17:04.46*** join/#htc-linux BabelO (n=Fabrice@unaffiliated/babelo)
17:20.43*** join/#htc-linux blingwadman (n=bling@CPE001839b40c4e-CM0011e6ed09da.cpe.net.cable.rogers.com)
17:26.11gersA webbrowser for qtopia? http://www.geekzone.co.nz/content.asp?contentid=7632
17:27.24*** join/#htc-linux the_sys0p (i=the_sys0@gateway/tor/x-a0e13288445bebfb)
17:33.38goxboxlivegers: this is great news, we relly need a web browser in Qtopia
17:34.36cr2Marex: you need to check the clock source. BA is different from magician. and sable is different from beetles
17:38.25Marexcr2, I already checked that using haret
17:38.50MarexCKEN8 and CKEN23 - i2s and SSP
17:39.38Marexcr2, I mean ... blueangel driver might be possibly reused for beetles
17:44.38*** join/#htc-linux LunohoD_ (n=alex@e180076110.adsl.alicedsl.de)
18:00.56cr2Marex: yes, but does sable use the external SPI clock as BA ?
18:01.04cr2s/sable/beetles/
18:01.44cr2since it's pxa27x, it's probably doing the same as magician. but i'm not sure.
18:02.22Marexhm, I dont see GPIO27 (SSP_EXT_CLK) changing
18:02.30Marex(using haret that is)
18:02.47Marexbut 23,24 and 25 do change, so SSP is used for sure
18:04.04Marexcr2, btw I dont see that device on i2c at all :<
18:04.05Marex:/
18:06.58pH5Marex: is it using the alternate functions SSPSCLK, SSPSFRM and SSPTXD for 23,24,25? Does it set BCKD and ENB in the SACR0 register as magician?
18:07.34Marexnah, it doesnt use alt functions
18:07.59Marexbut is that important to detect the device on i2c ?
18:08.13MarexI thought for I2C I needed just power and reset
18:08.38pH5I don't remember, but with uda1380 there was something strange like some clock needed to drive the registers
18:08.55pH5not sure if that was needed for detection though
18:09.24MarexpH5, yea, I already red about that strangeness
18:09.27Marex:-(
18:11.55pH5hm, looking at the magician driver I only needed to power and reset in magician_init, the basic registers are run by the i2c clock
18:12.49MarexpH5, well I turned on SSP1 and SPI clock
18:12.56Marexs/SPI/I2C
18:12.59Marexs/SPI/I2C/
18:13.02Marex:E
18:13.09MarexpH5, well I turned on SSP1 and I2S clock
18:13.32Marexi2c should be on since I was able to detect camera there
18:13.47Marexnow I just need reset and power for that damned chip
18:13.56MarexpH5, how did you get the correct GPIOs ?
18:14.27pH5Marex: watching gpios and playing sound
18:14.33pH5(red button's clicks or whatever)
18:15.07cr2Marex: check 'dump pxa27x' in gnuharet
18:15.08MarexpH5, hm, that only turns on and off GPIOA6 which is audio routing
18:15.24Marexcr2, ok, thank you
18:15.33Marexbtw thanks for your patience ;-)
18:15.39cr2Marex: that will dump and decode the most important registers.
18:15.56pH5Marex: and also no pxa gpios switching?
18:18.10MarexpH5, just 23 24 25
18:18.21Marexcr2, ok
18:19.06pH5Marex: and they are all used as gpios, no alternate function? maybe you have your power/reset in there.
18:19.48MarexpH5, hm, three pins for that are a bit overkill, dont you think ? ;)
18:20.09Marexbtw all are outputs with ALT 0
18:20.22pH5I agree. Though I wonder what else are they used for, as it's not SSP?
18:21.49Marexthey can be SSP even without ALT
18:22.13cr2http://wiki.xda-developers.com/index.php?pagename=BeetlesGPIO
18:22.37cr2isn't it the same i2s IN, ssp out setup ?
18:22.49cr2s/out/OUT/
18:24.34cr2Marex: just run 'dump pxa27x' while playing sound
18:24.35pH5Marex: the ssp does drive those gpios even if they are set to af0?! or are they doing ssp in software?
18:25.01pH5both would seem very strange.
18:25.20MarexpH5, Im not as advanced as you :)
18:25.30pH5cr2: ah, you think they are set to af0 outputs to save power?
18:25.38pH5(while not playing sound only)
18:25.48pH5Marex: yet ;)
18:26.26cr2pH5: they are switched to ALT only while sound outpput.
18:26.29Marex-  CKEN     : 0x01594ee9 = 00000001 01011001 01001110 11101001  (Page 0)
18:26.29Marex+  CKEN     : 0x01d94ee9 = 00000001 11011001 01001110 11101001  (Page 0)
18:26.40MarexSSP1 off -> on
18:26.47Marex-  SSCR0_P1 : 0x4000001f = 01000000 00000000 00000000 00011111  (Page xxx)
18:26.47Marex+  SSCR0_P1 : 0x4000009f = 01000000 00000000 00000000 10011111  (Page xxx)
18:27.14pH5cr2: ok, I think they didn't do that on magician. might make sense though. or not, who knows..
18:27.16Marexand some stuff with DMA, LCD, USB ... totally unrelated
18:27.32Marexthe first was while not playing, the second while playing sound
18:27.49cr2Marex: LCD is just the pxafb, you'd mask these gpios anyway.
18:28.26cr2Marex: you should check the SSP1 clock register setup.
18:28.28Marexcr2, sure, I said those changes are unrelated
18:28.44cr2i guess it's the same setup as magician.
18:28.50Marexyea, just checking PXA manual
18:28.52cr2i.e. pxa27x clock.
18:29.27pH5Marex: perhaps GPIOA6 is the codec power and you just don't see the reset gpio..
18:29.43pH5cr2: doesn't gnuharet still use the busy loop with register readout for gpio watching?
18:29.52MarexpH5, when I plug in the headphone reduction (without headphones) it changes to GPIOA3
18:29.59pH5in that case it can miss a short reset gpio toggle.
18:30.02Marexso those are both audio routing GPIOs
18:30.13pH5Marex: oh, ok, I see.
18:30.31pH5they are the mic and speaker amp power gpios
18:30.56Marexwhich are not needed now as well ;)
18:31.10MarexpH5, really ... now it's the most important to even turn that IC on
18:31.31pH5Marex: do you have anything else on that board which could have gpios on it?
18:31.35pH5a pasic2/3?
18:31.41MarexASIC3
18:32.02Marexand also there is some CPLD, but I think that's used for camera only
18:32.16Marex(I get loads of EGPIO stuff in gnuharet when camera is on)
18:32.29pH5Marex: argh, nope, please watch this one again
18:32.43pH5You just remind me that magician has its sound gpios on the cpld, too.
18:33.05MarexGOD DAMN :E
18:33.16Marexdoesnt magician have xilinx CPLD ?
18:33.23MarexI have lattice iirc
18:33.43pH5Marex: yes
18:34.04*** join/#htc-linux joschkopf79 (n=joschi@f051107150.adsl.alicedsl.de)
18:38.19Marexhm, it only turns on SSE (synchronous serial transfers) in SSCR0
18:39.30Marexand turns on SSP1 clock
18:40.13pH5what about SACR?
18:40.27pH5(and never mind about the clocks until you have found the power gpio ;))
18:40.50Marexis it possible, that it's still on ?
18:41.12pH5Marex: it is only powered while playing or recording sound
18:41.22Marexok
18:41.48Marex<PROTECTED>
18:44.06Marexso BCKD is set to output
18:46.48pH5that looks all like the magician setup
18:47.52pH5SSCR0[ACS] selects the audio clock to drive the uda1380 interpolator via ssp, decimator is driven via the i2s clock.
18:48.21pH5I hope you can find power/reset gpios on the cpld and then just copy the magician.c setup.
18:48.44MarexpH5, any idea how to trace that CPLD>
18:48.45Marex?
18:49.20Marexah, google
18:51.05pH5http://wiki.xda-developers.com/index.php?pagename=MagicianCPLD has a small recipe
18:52.04pH5though I think that probably is not current anymore.
18:53.40MarexI just got to that page too, thank you
18:55.23Marexhm, I havent managed to connect wince PDA with haret over usb yet
18:55.31MarexI will just stick with a recipe
19:04.23BabelOpH5: i m not able to get maemo kernel under scratchbox , does it works for you ?
19:07.12pH5yes. compiling, patching and reflashing the kernel was one of the first things I tried :)
19:07.19pH5how does it fail for you?
19:07.44*** join/#htc-linux Zoolooc (n=fredsiba@nrbg-4dbfb10f.pool.einsundeins.de)
19:10.34BabelOpH5: ok i found why, it seem the maemo-4.x tutorial miss something, i create a new target with and add debian-etch, now it works ;)
19:10.46BabelOpH5: it is really nice to have all these tools
19:12.30pH5BabelO: I just used the default CHINOOK_ARMEL target
19:14.32BabelOpH5: ok, i ve created my own target like in tutorial
19:23.11cr2Marex: do you know where is the CPLD located ? somehow i doubt that it's used.
19:23.37Marexit's used for camera
19:23.50cr2Marex: sable has it for wifi/bt coexistance.
19:23.54cr2camera ?
19:24.08Marexwell I get loads of EGPIOxx stuff
19:24.12Marexwhen using camera
19:24.17cr2the CPLD as gpio extender does not make sense. because you already have asic3.
19:24.36MarexI know that myself too :S
19:24.50cr2well, it's because gnuharet is "tuned" for the universal.
19:24.50Marexbut as pH5 said, magician uses it as gpio extender
19:25.03cr2magician is a much more simple device.
19:25.08cr2it does not have asic3
19:25.54cr2n560 has a CPLD too. as a gpio extender.
19:26.12pH5cr2: even hx4700 has a cpld (used for wifi power for example)
19:27.02cr2pH5: beetles does not have wifi.
19:27.06Marex00572fab: debug 80083c14: 01c300b0(strh) 000001e3 a9200088
19:27.13Marexwhat's this in wi trace >
19:27.14Marex?
19:27.34Marexthere are loads of it
19:27.48pH5I'm just saying it is possible that they have gpios on the cpld used to power the codec.
19:27.57pH5If they are not on pxa and not on asic3, where else to look?
19:27.57cr2Marex: addr2mod 01c300b0
19:28.09pH5bbl, food
19:28.18cr2pH5: it's only 1 reg there.
19:29.26Marexcr2, gnuharet doesnt support that :/
19:29.55MarexI see
19:31.27cr2Marex: use gnuharet only for 'dump asic3', 'dump asic3gpio' and 'dump pxa27x'
19:31.43Marexok, I see
19:31.46cr2all these 3 functions are not implemented in mainline.
19:32.08cr2but are extremely helpful on pxa2xx/asic3 devices.
19:33.20cr2i'll look at the sable source, and check the wiki.
19:34.43Marexthanks
19:36.01cr2can you add the cam gpios to wiki ?
19:37.07Marexsure
19:37.15MarexI have some more too
19:37.21Marexcheck the LEDS patch
19:37.53MarexI will add them soon
19:40.31cr2ok.
19:44.45Marexsomething changed with set traceignore in haret 0.5.1?
19:45.54MarexI get loads of these 000000: 000d7868: mem IRQS(0) aed00000=00000800 (00000800)
19:45.54Marex000000: 000d7ace: debug 80083c14: 01c300b0(strh) 000001e3 a9200088
19:46.32cr2you use haretconsole ?
19:47.33Marexyes, over telnet
19:47.52Marexstrh is probably haret detecting itself
19:50.04cr2you should use the 'console' script, not the telnet directly. if you want that these messages were filtered out.
19:50.18cr2but then you need to adapt the asic3 tracing script.
19:52.08Marexisnt there a way to filter them ?
19:52.15Marexusing traceignore ?
19:53.06cr2the interrupts should be filtered out by pxa27x.py or something like that.
19:53.21cr2ibit **
19:53.47Marexah, now I know what you mean
19:58.22cr2regs_asic3.py
19:58.31cr2and regs_pxa.py
19:59.28cr2look at regs_misc.py
20:00.37cr2let's fix them for beetles/sable
20:02.44Marexharetconsole doesnt look way too stable
20:04.04cr2?
20:04.22Marexit dies all the time on some exceptions
20:05.21cr2cvs.handhelds.org seems to be very unhappy.
20:05.32Marexwhy ?
20:06.13cr2first it said 'no free space at /tmp/cvs-*' , and now i can't connect at all.
20:06.56Marex:S
20:09.00cr2can't create temporary directory /tmp/cvs-serv20052
20:09.00cr2No space left on device
20:10.33Marexpoor you :S
20:12.19cr2not me. the cvs.hh.org
20:13.50BabelOpH5: he he gspca works, but i need hub, so it is no more a mobile device ;)
20:15.23cr2BabelO: athena rules :)
20:15.41BabelOcr2: does athena drive engouh usb current ?
20:15.43cr2Marex: do you have pwm1 on ?
20:15.50cr2BabelO: yes.
20:15.57BabelOcr2: cool
20:16.05cr2BabelO: i connect the 1GB stick and boot qtopia off it.
20:16.13gersgoxboxlive: i have another news: poky 3.1 has experimental support for universal. http://pokylinux.org/releases/pinky-3.1/ and http://pokylinux.org/getit/
20:16.54BabelOcr2: yes for usb stick or card reader, it works, but webcan ormy bluetooth dongle , it is not enough
20:17.26cr2BabelO: then i use a hub.
20:18.08cr2BabelO: n560 has an external power directly on the connector, but i'm not sure about the max_current kernel setting...
20:18.11Marexcr2, iirc not
20:18.43BabelOcr2: does resume works on n560 now ?
20:19.16Marexcr2,   - PWM1  :                      off
20:19.28cr2BabelO: LCD does not resume properly.
20:19.39cr2Marex: ok. the same here.
20:23.59Marexcr2, any idea how to dump that CPLD ?
20:24.40cr2Marex: you need to know where it is mapped first.
20:25.21MarexI guess it'd be so one of 6 PXA MMIOs
20:25.29Marexthat's not too much possibilities
20:25.33Marex0x0 is flash
20:26.18cr2Marex: there are 2 suspicious areas
20:26.33cr2http://wiki.xda-developers.com/index.php?pagename=BeetlesMemoryMap
20:26.33Marex0x0c000000 and ?
20:26.36cr20x04 and 0x08
20:27.03cr2where is asic3sdio ?
20:27.14cr2the wiki is very incomplete ;)
20:27.50cr2hehe. no memory map for sable
20:27.52Marexnot more than my knowledge
20:28.09cr2check 0x04 and 0x08
20:28.20cr2if you can trace something there.
20:28.30cr2or just 'pd' first
20:29.35cr2ok, added sdio at 0x0e
20:30.00cr20x14* and 0x15 are probably the debug card.
20:30.01MarexHaRET(3)# pd 0xa4000000 4
20:30.01Marexa4000000 | 00000000                            | ....
20:30.03Marexnothing
20:30.06MarexIm setting trace
20:30.10cr2at least 0x100
20:30.16cr24 is too little.
20:30.26cr2and the EGPIO may be write-only
20:32.21Marexall zeros
20:33.08MarexHaRET(17)# pd 0x0c000000 0x100
20:33.09Marex0c000000 | ffffffff ffffffff ffffffff ffffffff | ................
20:33.46Marexboth 0x08 and 0x00 are zeros
20:34.23cr2Marex: 0x04000000 and 0x08000000
20:34.47cr20x0c000000 doesn't show up at all.
20:34.57Marex000.958(0002011)     IRQS    GEDR0: GPIO13(77)=1
20:35.01Marexwhile playing
20:35.27cr20x08000000 is acx100 wifi on sable.
20:35.31MarexI need to get rid of these
20:35.32Marex000.988(0007831)     IRQS     ICIP: USBc(11)=1
20:35.41Marexcr2, I see
20:35.43cr2ibit irqs 11
20:35.52cr2ibit irqs 77
20:35.58cr2ibit irqs 11,77
20:36.05Marexthank you
20:36.55cr2i don't see the lattice cpld used on sable.
20:37.05cr2all acx100 gpios are pxa+asic3
20:37.36Marexwhy do they have it there then?
20:37.46Marexbtw sable has differnt chip
20:38.15cr2don't know.
20:41.15Marexyea, I have UDA1380 and sable has AK14.. something
20:41.56cr2yes.
20:43.01cr2hmm.
20:43.50cr2pH5: are you back from eating ?
20:44.31pH5yup
20:44.48cr2i get a flood of
20:44.51cr2059999: mem aee00004=f4df8902 (08000000)
20:44.51cr2059999: mem aee00008=f0f7df3b (000010c4)
20:44.55cr2is it DMA ?
20:45.08MarexDMA25 is active while playing
20:45.14cr2aee = 0x400
20:45.47Marexyou mean 0x04 ?
20:46.13cr2Marex: what do you see at 0x04000000 0x100 ?
20:46.20Marexnothing
20:46.22Marexall zeros
20:46.26pH5cr2: phys 0x40000004 ?
20:46.26cr2ok.
20:46.30pH5that's dma, yes.
20:46.32cr2pH5: yes.
20:46.37cr2pH5: can i mask it ?
20:47.08cr2pH5: it seems i need to get some more python knowledge :)
20:48.25pH5cr2: magician has mapped 0xaee to 0x40e (gpio), maybe you copied the gpio setup from a machine that has the same?
20:49.40cr2pH5: aah. sorry.
20:49.58pH5cr2: aee somehow ended up in the IRQS or GPIOS list when it shouldn't, I guess.
20:50.15cr2pH5: i've did
20:50.18cr2Regs_Sable = regs_pxa.Regs_pxa27x.copy()
20:50.18cr2#Regs_Universal.update(getEGPIOdefs(0x0a000000, 1))
20:50.18cr2Regs_Sable.update(regs_asic3.getASIC3Defs(base=0x10000000, sd_base=0x0c000000
20:50.18cr2<PROTECTED>
20:50.19cr2memalias.RegsList['Sable'] = Regs_Sable
20:50.44cr2hmm, but it seems that they are not used.
20:51.14pH5cr2: what does p2v(0x40e00004) return?
20:51.22cr2pH5: these are the LCD gpio lines i guess.
20:51.55cr2pH5: the problem is that the python stuff does not decode 0x40e0000* as gpios.
20:52.04cr2for some reason...
20:53.21cr24 and 8 are GPLR0/1
20:54.28pH5GPLR1/2
20:55.01pH5(http://www.xkcd.com/386/)
20:55.04cr2yes.
20:55.11cr2show gpios looks ok.
20:55.14cr2HaRET(1)# show gpios
20:55.15cr2<PROTECTED>
20:55.15cr2<PROTECTED>
20:55.15cr2<PROTECTED>
20:55.38cr2hm. but no asic3 gpios.
20:56.55pH5cr2: I think you have to copy what Kevin2 did for Apache and Hermes in machlist.txt
20:57.11pH5add the asic3 registers manually. the python stuff is just for decoding
20:58.24cr2pH5: ok, i'll try.
21:01.02cr2pH5: it still does not explain why the pxa gpios are not decoded...
21:04.04cr2ok, checking with the latest haret.
21:04.39cr2great, now it works.
21:04.59cr2it seems i had a too old haret version on the miniSD card.
21:05.13pH5ah, good :)
21:05.35cr2a lot of 001.998(0012162)     IRQS    GEDR0: GPIO9(73)=1
21:05.45cr2this is the asic3 gpio mux
21:07.04cr2the machlist.txt compiled per-machine stuff seems to be illogical.
21:07.52cr2can i hook some per-machine exec after the console connect, depending on the mach id ?
21:11.35Marex0c000800 | 02003c12 149a3400 00020100 00000b00 | .<...4..........
21:11.35Marex0c000810 | 00000900 00000b00 00000900 00800780 | ................
21:11.35Marex0c000820 | 837f031d 02000000 000040ee 00002000 | .........@... ..
21:11.35Marex0c000830 | 00000000 00001000 00000000 00000000 | ................
21:11.35Marex0c000840 | 002a003f 00000000 00000000 00000000 | ?.*.............
21:11.39Marex0c000850 | 00000000 00000000 00000000 00000000 | ................
21:12.43cr2Marex: is it (mmu)traceable ?
21:13.13cr2pH5: hmm. so there is no real asic3 support for machines.txt ?
21:14.15Marexset trace 0x0c000000
21:14.17Marexwi 5
21:14.19Marexright >
21:14.20Marex?
21:14.34cr2trace size ?
21:15.03cr2addlist mmutrace p2v(0x0c000000) 0x100000
21:15.15cr2watch mmutrace 5
21:15.26pH5cr2: looks like it. Kevin2 would know.
21:15.43Marexline 22: Expected <watch list var>
21:15.57cr2pH5: didn't see him for a very long time.
21:16.44cr2pH5: the asic3 gpios are ok, but how do i trace 4 asic3 irq regs, indirectly through the level changes ?
21:18.12pH5cr2: ouh, I don't know how that is possible
21:18.56*** join/#htc-linux BabelO (n=Fabrice@lun34-2-82-238-28-28.fbx.proxad.net)
21:19.32cr2ok.
21:19.36cr2testing the gpios.
21:26.40cr2hm. ibit gpios 58-76 does not work
21:26.52cr2how did i mask the gpio range....
21:29.12cr2ah, help vars
21:34.24Marex<PROTECTED>
21:34.24Marex<PROTECTED>
21:34.24Marex<PROTECTED>
21:34.31Marex<PROTECTED>
21:34.32Marex<PROTECTED>
21:34.32Marex<PROTECTED>
21:34.38MarexBINGO!
21:37.05cr2ibit gpios 56..76
21:37.18cr2to mask out the px27x LCD
21:37.35cr2asic3 gpio names are still not decoded though.
21:38.48Marexcr2, how can I trace GPIO changes ?
21:39.53Marexsorry
21:41.20cr2watch gpios NN
21:41.31cr2but you should mask the pwm and LCD gpios.
21:41.39cr2ibit gpios 56..76
21:41.42cr2for the LCD
21:41.46cr2and
21:41.50cr2ibit gpios 16
21:41.53cr2for pwm0
21:42.00cr2backlight
21:43.16Marexyup, I see
21:45.18Marexibit gpios 56..76 doesnt mask them :/
21:45.40cr2which haret version do you have ?
21:46.02cr2haha. wifi is called 'phone' on n560
21:46.12MarexXD
21:46.34Marexah. I used wgpio
21:46.40Marexinstead of watch gpios
21:46.43Marexsorry
21:59.37Marexcr2,  is there something like watch asic3 ?
22:00.42cr2no, it should be included in the gpio list
22:00.59cr2i'm trying it for sable and n560 now
22:01.10cr2somehow the names are not decoded.
22:01.16cr2do you know python ?
22:01.54Marexnot at all :S
22:02.19*** join/#htc-linux patoche (n=patoche@lns-bzn-24-82-64-164-28.adsl.proxad.net)
22:03.42*** join/#htc-linux kiozen (n=kiozen@rgnb-4db1dfe4.pool.einsundeins.de)
22:03.59kiozencr2: need python?
22:07.06cr2kiozen: haretconsole does not want to decode the CPLD reg names
22:07.28kiozenany pointers into code
22:07.31kiozen?
22:07.46cr2kiozen: hmm. looking
22:08.14kiozencr2: where can I get your version
22:08.56cr2i jave it only locally. i'll pastebin in 2min.
22:09.41kiozenok
22:10.21cr2kiozen: http://handhelds.org/cgi-bin/cvsweb.cgi/haret/haretconsole/regs_misc.py?rev=1.5&content-type=text/x-cvsweb-markup
22:10.27cr2this is the original version
22:10.53cr2look at Kaiser
22:11.02cr2i've replaced it with Loox5xx
22:11.11cr2but it does not decode the names.
22:11.49cr2kiozen: btw, i've compiled qlandkarte 0.7.2 today, before i've used 0.6.2
22:12.38cr2kiozen: the StringTbl10 decoding is broken in 0.7.2, it was working in 0.6.2
22:13.13cr2i seem to hit a lot of bugs once i touch any software :)
22:13.24kiozenStringTbl10: ok have to check, there where some "fixes" for OSM :/
22:13.53kiozenRegs_Kaiser = regs_msm.Regs_msm7500.copy()
22:14.07kiozenthe intelligence is done in regs_msm et al
22:14.58cr2kiozen: is have regs_pxa
22:15.18cr2the problem is with EGPIO decoding.
22:15.29cr2def getEGPIOdefs(base, count, start=0):
22:15.38cr2in regs_misc
22:15.58cr2it was working before, so i'm surprised.
22:16.43kiozenany exception or just nothing?
22:16.55cr2just nothing
22:17.22cr2i see the raw addresses not being parsed.
22:17.37kiozenbest to place some print commands in getEGPIOdefs
22:18.20cr2kiozen: forget it. was some weird glitch.
22:18.27cr2works again now ;)
22:18.29kiozenok :)
22:18.47kiozenjust keep hitting it and it will owrk
22:19.00cr2yeah.
22:19.02kiozens/owrk/work/
22:19.44cr2btw, GT is excellent :) some minor enhancements here and there are needed, but it's already very useful.
22:20.00cr2i'm missing 1 thing though.
22:20.05kiozen:)
22:20.47cr2is it possible to drag-n-drop the wpts from one GT window to another as gcps ?
22:21.12kiozen2 instances of GT?
22:21.30cr2that's the only feature i'm missing compared to qgis.
22:21.38cr2well. maybe.
22:22.01kiozennot quite sure what you want
22:22.16cr2i open one GT and load the wpts.
22:22.28cr2they show up as nice 'balloons'
22:22.44cr2i open the second window, and begin calibrating.
22:23.12kiozen2nd window?
22:23.22cr2so i don't want to enter the gcp coordinates manually, but just pull then from the first window.
22:23.50kiozenwpts == wpts or wpts = ref.points?
22:23.53cr2yes, 2 GT programs running simultaneously.
22:24.22cr2wpt coords "dropped" into gcp Coord. field.
22:24.50kiozenok so you have wpts in one GT and want to drop them as gcp in another GT
22:24.56cr2ye.s
22:25.18kiozenok, never have done drag-n-drop. time to start
22:25.20cr2you can't have them both in one GT instance.
22:25.33cr2:)
22:25.55cr2maybe just 2 tabs.
22:25.57kiozenwell you could place wpts on the map switch to edit map and drag-n-drop them from the wpt toolview
22:26.00cr2but DND is more fun.
22:26.10cr2yes.
22:26.22kiozenlet's see the nect days
22:26.29cr2ok.
22:26.45cr2imho that's a killer feature.
22:26.51kiozenwhat's wrong with CGarminStrTbl10
22:26.52cr2ozi can't do it
22:27.09kiozenwho cares about ozi ;)
22:27.15cr2and i've hacked it into qgis some time ago, because a lot of people wanted it.
22:27.39cr2ozi is used by many people. it's like wince for raster gps maps :)
22:27.53*** join/#htc-linux ltxda (n=ltxda@unaffiliated/ltxda)
22:27.59kiozenyes it's quite confi if you reference raster via osm/Garmin maps
22:28.08BabelOcr2: http://pda-artemis.narod.ru/files/Artemis-Inside.pdf :)
22:28.47cr2BabelO: since i'm at haret CPLD hacking now, i'll add the artemis CPLD decoder now.
22:29.33*** join/#htc-linux joschkopf79 (n=joschi@e179051116.adsl.alicedsl.de)
22:30.56cr2BabelO: i can only see the usual CPLD on these pics.
22:31.33BabelOcr2: do you understand what is written ? http://pda-artemis.narod.ru/
22:32.10BabelOi use google translate but ...
22:32.19cr2kiozen: Tbl10 -> if i take the TW basemap, i only see the binary mess in the labels instead of the chinese glyphs in 0.7.2 in 0.6.2 it was correct.
22:32.47kiozenok, I'll check teh next days
22:32.53cr2BabelO: lol. they obviously used it vice versa :)
22:33.28goxboxlive<BabelO> goxboxlive: magic guy at #git give me the correct command git rm `git ls-files -d` "Sorry, need to have it in the log"
22:33.45BabelOgoxboxlive: ok :)
22:33.52goxboxlive:-)
22:36.40cr2BabelO: it's a lot of text. i can only guess that the HTC artemis firmware is buggy as hell
22:37.40BabelOyes it is, i can confirm, i ll try since many hours now to get bluetooth pan working :(, wm6 is speedy but ...
22:37.43*** join/#htc-linux ltxda0 (n=ltxda@unaffiliated/ltxda)
22:40.15cr2BabelO: did you put 0x0, 0x1, 0x2 into ArtemisCPLD wiki ?
22:40.46cr2yes, in the Version 4
22:41.12*** join/#htc-linux ltxda (n=ltxda@unaffiliated/ltxda)
22:42.33cr2it seems all these regs are 8bit, so we may use 0xff00 mask
22:43.04Marexcr2, is it possible to switch asic3 regs from running linux ?
22:43.12Marexover sysfs or so ... ?
22:43.25BabelOMarex: yes, with x tools :)
22:43.43BabelOMarex: or devmem
22:46.02cr2Marex: i think only /dev/mem (devmem2 or something like that). or x tools :)
22:46.13cr2hehe.
22:46.19Marexhm ok, thanks
22:46.23cr2BabelO: you was faster :)
22:46.40Marexbtw I was unable to watch asic gpios with haret
22:46.52Marexthe command watch gpios x just doesnt show asic gpios
22:47.41cr2Marex: you need
22:47.43cr2<PROTECTED>
22:47.43cr2<PROTECTED>
22:47.44cr2<PROTECTED>
22:47.44cr2<PROTECTED>
22:48.16cr2i've added that for sable, but the python doesn't parse it as i expect.
22:48.18MarexI see ... thanks
22:48.26cr2but you'll see them in raw dump.
22:52.30*** join/#htc-linux dcordes (n=snoopdog@unaffiliated/dcordes)
23:00.03Marexcr2, yea, I do see them
23:01.06cr2Marex: good. i don't have write access to this CVS.
23:01.18cr2Marex: so i can't update it.
23:01.40Marexcan you mail me the updated version ?
23:01.45cr2maybe just update the haret in xanadux CVS.
23:02.28Marexbtw I checked and I dont see any changes other than GPIO 23 24 25 27 29 31 113 (thats normal) and GPIOA6 (loudspeaker select)
23:03.43cr2ok.
23:03.59cr2sable has a bit different memory map
23:04.08cr2can you make 'dump mmu' ?
23:07.04MarexI did, how do I save it ?
23:07.56MarexI did "> somefile", but I cant find somefile :D
23:08.19Marexhang on
23:10.31Marexcr2, see PM
23:13.07*** join/#htc-linux joschkopf79 (n=joschi@e179057225.adsl.alicedsl.de)
23:13.36cr2Marex: OK.
23:14.28Marexcr2, well I have added both ASIC3 and GPIO regs on that device and yet I still cant see power and reset for the soundcard
23:14.33Marexit has to be on that CPLD
23:15.11cr2Marex: can't download.
23:15.45Marexclick on "dump.dump"
23:15.46cr2well, then you need to check ida.
23:16.32cr2ok :)
23:16.44cr2i really doubt that the cpld is used.
23:16.52cr2i'll look myself :)
23:17.47cr2Marex: wtf is 0x02 ?
23:18.31cr2hm. and 0x01.
23:18.32Marexwhere? how should I know that, you are the expert
23:18.39cr2how big is your ROM ?
23:18.51Marex64megs
23:18.56Marexsame as sables
23:19.04cr2your mmap has a lof of stuff mapped at these addresses.
23:19.07cr2pxa272 ?
23:19.12Marexyes
23:19.16MarexI see
23:19.27cr2sorry, it's been over a year i've hacked on beetles/sable ;)
23:19.31cr2ok.
23:19.56Marexyou really arent in position to apologize ;)
23:20.29Marex02000040 | 43454345 826cebf0 9000013c 00100000 | ECEC..l.<.......
23:20.32Marexthat's ROM
23:20.41cr2yes, it's ROM
23:20.48cr2from 0x00 to 0x04
23:20.51cr264MB.
23:21.06Marexright
23:21.20cr2nice. then you may flash linux . eventually.
23:21.32cr2but sable had mdoc g4 too ?
23:21.55Marexbeetles doesnt have doc g4
23:21.58dcordeshi all
23:22.08dcordescr2, Marex which machine are you h4xing on?
23:22.18Marexhtcbeetles
23:22.26cr2Marex: sable spec says 128MB ROM
23:22.39cr2dcordes: and n560 at the same time ;)
23:23.14cr2Marex: pxa270 says the spec. so it's only mdoc g4 on sable
23:23.27cr2http://www.pdadb.net/index.php?m=specs&id=151&view=1
23:24.00Marexthe device says 272 :S
23:24.44Marexit's stupid though, 272 has onboard flash
23:24.59Marexthough this device has some integrated chips around the CPU
23:25.16Kevin2cr2: I'm still around.
23:25.34Kevin2Marex: If you see an exception from haretconsole - please email it to haret@handhelds.org.
23:26.01MarexKevin2, ok, it might have been my fault
23:26.05cr2Marex: beetles is pxa272, you must be a happy guy.
23:27.09Marexthose ICs are rams ...
23:27.14Marexyea, that makes it clear
23:27.16cr2Kevin2: i've patched machtypes.txt and regs_misc.py to support more machines. but i can't get the asic3 to decode the bits. and i don't understand to to deal with asic3 irqs
23:27.40cr2Kevin2: the haret CVS says 'disk full', so i can't make cvs diff
23:28.40Kevin2Hrmm.   cvs diff works for me.
23:28.53cr2Marex: beetles does not have g4
23:29.06cr2Kevin2: trying again.
23:29.14Marexcr2, I know it doesnt
23:29.18Kevin2You can use the git repo at : http://git.linuxtogo.org/  -- it should be identical.
23:29.31cr2Kevin2: ok, it works now.
23:29.43cr2i'll send the patch to  haret@handhelds.org
23:30.19Kevin2So, what are you trying to do with asic3 and asic3 irqs?
23:30.42cr2i've added asic3 gpio read addresses to GPIOS
23:31.09cr2and added the asic3 'handler' to regs_misc.py
23:31.24cr2so i see the raw regs, but not the decoded bits.
23:31.57Kevin2Hrmm.  What are the lines you see?
23:33.01cr2need to reconnect.
23:33.43Kevin2Okay.  If you pastebin the patch (in addition to emailing it), I'll try to take a look through it.
23:34.04cr2000.000    GPIOS  a9200018=c087
23:34.04cr2000.000    GPIOS  a9200098=9662
23:34.11cr2ok, sending.
23:35.22cr2Kevin2: http://pastebin.ca/944241
23:36.26cr2Kevin2: if it'll be sorted out, i'll add some other asic3-based machines.
23:40.15Kevin2cr2: What machine doesn't show decoded asic3?
23:40.21cr2Sable
23:40.53cr2Marex can test it on beetles too.
23:41.09cr2the CPLD decoder works on Loox N560.
23:41.34Marexcr2, can I try that CPLD decoder ?
23:42.05cr2Marex: i'm talking about the asic3 decoder here.
23:42.32Kevin2cr2: I think I'm going to need a cut-and-paste of the raw line you end up seeing.
23:42.34MarexI was talking about "<cr2> the CPLD decoder works on Loox N560."
23:42.51cr2you need to prove that you see this CPLD first. and to find out it's base address and number of registers
23:43.02cr2Kevin2: ok.
23:43.17dcordeshow can I fetch this directory recrusively? http://www.algepop.net/users/alge/angstrom-ba/kernel-patches/
23:44.52cr2Kevin2: http://pastebin.ca/944256
23:46.06MarexCPLD on kaiser is at 0x98000000 ... wtf :E
23:46.47cr2Marex: kaiser != beetles
23:47.16Kevin2cr2: Are you sure you should have "shift=1" ?
23:47.17Marexcr2, I know, but I thought there were just those six MMAPable places
23:48.17cr2Kevin2: yes. 0x18 is shift 1
23:48.48cr2Kevin2: http://wiki.xda-developers.com/index.php?pagename=ASIC3
23:49.29cr2Marex: msm7xxx is a completely different beast
23:49.42Marexsorry, I see
23:49.47MarexIm tired
23:50.11cr2Marex: we support not only the pxa. omap850 has the cpld in a completely different place.
23:50.29Marexcr2, I hacked on palmz71/omap310 :)
23:50.39MarexI know the mapping is different
23:50.46cr2ok.
23:51.08Kevin2cr2: Can you try it with "shift=0"?
23:51.15cr2Kevin2: ok.
23:51.59Marexhttp://www.handhelds.org/moin/moin.cgi/EtenG500Hardware has the same CPLD
23:52.13Marexbut really "CPLD : Lattice ispMACH 4064ZC (for what purpose ?)"
23:52.54cr2Kevin2: it's just plain wrong.
23:52.57cr2000.000    GPIOS  a9200198=5208
23:52.57cr2001.035    GPIOS  GPIO_B_SleepMask(576)=87c3
23:52.57cr2001.097    GPIOS  GPIO_B_SleepMask(576)=87c2
23:53.49cr2Marex: CPLD is a custom chip. it may be non user-programmable at all.
23:54.02Kevin2Oh - what should the register name of a9200018 be?
23:54.05cr2do you see any CPLD driver for G500 ?
23:54.24cr2Kevin2:  GPIOA_Status    +0x0030    +0x018    Read here
23:54.42cr2it's all in  http://wiki.xda-developers.com/index.php?pagename=ASIC3
23:55.11cr2ASIC3_GPIO_OFFSET = {
23:55.17cr2<PROTECTED>
23:55.30cr2for shift=1 it should be 0x18
23:55.57Marexcr2, I know that CPLD is preprogrammed too :p
23:56.28Marexcr2, nah, they probably dont know what is that CPLD for there
23:56.39MarexI guess it's used for radio in G500
23:56.41cr2Marex: actually you can reprogram it on some htc phones. at runtime :) but you probably don't want to do it.
23:57.10Marexcr2, if you can, then it's not CPLD , iirc CPLD was programmable only once
23:57.41cr2Marex: ok, it's called CPLD in the HTC binaries :)
23:58.43cr2http://en.wikipedia.org/wiki/Complex_Programmable_Logic_Device
23:59.55MarexI was wrong then

Generated by irclog2html.pl Modified by Tim Riker to work with infobot.