irclog2html for #htc-linux on 20061122

00:00.13cr2good night.
00:01.46lkclyou out cr2?
00:06.23cr2yes.
00:25.27lkclk dude.  end of long day.
01:01.47Kevin2Hi
01:20.59Speedy2Hey all
02:28.59gw280in case anyone's wondering how to get a windows mobile to act as a modem nicely for a linux computer, I've documented it at http://blog.gwright.org.uk/articles/2006/11/22/using-a-windows-mobile-phone-to-connect-to-the-internet
03:38.38lkclg4 read is a hell of a lot simpler
03:38.59lkclta gw280.  i'll wait until i have linux on the phone first, though :)
03:39.45Speedy2lkcl:  What is your local time?
03:39.50lkclGMT
03:39.53Speedy2Seems like you've been up all night!
03:40.01lkclno, i just got up for a bit again
03:40.11gw280lkcl: heh
03:40.19lkclhave small baby - it's baby feeding time.  again.
03:42.31ljpbeen there. doing that :)
03:43.59lkclhehe
03:44.26Speedy2ljp:  Hey, I didn't know you had a child
03:46.21ljp15 months old now :)
03:46.29Speedy2Congrats.
03:46.33ljpthx
04:20.21gw280LJP!!!!!!!
05:18.16ljp:) hi
07:09.29*** join/#htc-linux psokolovsky (n=psokolov@237.usernat.ip.net.ua)
08:11.32*** join/#htc-linux Fossi (n=cmewes@195.177.48.115)
08:30.13*** join/#htc-linux rob_w (n=rob_w@p549B993F.dip0.t-ipconnect.de)
11:11.16*** join/#htc-linux skodde (n=skodde@unaffiliated/skodde)
12:42.09*** join/#htc-linux WizMaui (n=WizMaui@62.112.90.179)
14:00.33lkclanother phone arrived, haha
14:01.48cr2lkcl: g4 ready ? :)
14:02.28lkclnaah dude.  i only just woke up 20 mins ago
14:02.51lkcltook a look at the other listing when i woke up at 4am - it's a _lot_ simpler than the g3 one
14:03.15cr2:) yes.
14:03.25cr2but them we will have both.
14:03.37lkclyep.
14:03.43lkcli'll do it this evening.
14:04.14lkcli have to take baby in to be photographed.  can't quite believe that the british govt requires that children aged 6 weeks require their own passport
14:08.14*** join/#htc-linux pH5 (n=ph5@e178231089.adsl.alicedsl.de)
14:08.32Fossiat least the passport doesn't have to be machine-readable or does it?
14:09.33cr2lkcl: i thought you don't have passports in the UK ? hmm, you want to Holland.
14:10.16lkclyep.  actually we'll be having fascist ID cards with a database for criminals to bribe government officials and obtain biometic information from
14:10.55cr2Fossi: with the current trends they will want to have the fingerprints of the 6 day olds ;)
14:13.28Fossii think the uk's best move so far is actually paying people for reporting crimes they've seen on the surveilance cams that are around almost everywhere
14:14.34Fossibig brother makes you watch each other...
14:15.10cr2i think i'll update my id card before they will start with this fingerprinting scam.
14:54.20*** join/#htc-linux rob_w (n=rob_w@p549B993F.dip0.t-ipconnect.de)
14:55.50cr2pH5: are you here ?
15:04.10pH5I am.
15:04.48cr2i have modified the tsc2046 driver to be much more reusable, but there is one ugliness there.
15:05.19cr2the platform_device structure is created in the .probe function ;)
15:06.11cr2can you have a look how we can painlessly move it "upwards" ?
15:06.33cr2then the driver should work on all known devices.
15:06.40cr2ok. thanks.
15:06.48cr2htcuniversal_ts2.c
15:06.59pH5cr2: are you still using the same interleaved x/y readout pattern that hx4700 uses?
15:07.00cr2i'll remove htcuniversal_ts.c now.
15:07.15pH5alternating x/y, I mean
15:07.16cr2i use the old hx4700 .12 driver
15:07.31cr2yes, because the newer does not work for me.
15:07.37pH5ok, I'll have a look.
15:07.41cr2the newer is nonlinear.
15:07.50cr2the same old problem.
15:07.54pH5it doesn't work for the magician
15:08.11cr2ok, you have the same parameters as universal.
15:08.28cr2btw, do we really need 24bit spi ?
15:08.49pH5I don't know about the 24bit, it's just what the wince driver does.
15:08.50cr2i think your generic spi driver approach is the best.
15:09.06pH5If only I could find time to follow up on that.
15:09.12cr2i have seen the sample wince code for tsc2046, and they don't do 24bit.
15:09.35cr2well, if you want to do 24bit, a fix to the pxa2xx-spi driver is needed.
15:09.55cr2+    /* HTC Universal */
15:09.55cr2+    ts->port=1;
15:09.55cr2+    ts->clock=CKEN23_SSP1;
15:09.55cr2+    ts->pwrbit_X=1;
15:09.55cr2+    ts->pwrbit_Y=1;
15:10.04cr2i have such code now
15:10.20cr2since only these 4 parameters differ beteen the phones.
15:10.41pH5you should know that only platform_drivers are allowed on the platform bus
15:11.07pH5you should convert all device_drivers to platform_drivers, otherwise it'll break during the transition to 2.6.19
15:11.16cr2yes. ok.
15:11.36cr2i think i have copied this driver from h4000 . blame psokolovsky :)
15:12.13cr2i also need to add the ohci init. you are the only one so far who does it right.
15:12.37pH5cr2: I guess I copied that from the zaurus kernels
15:12.44cr2ok.
15:15.12psokolovskyHi!
15:15.17pH5cr2: but I assume you don't want to export the whole touchscreen_data structure, right?
15:15.25cr2psokolovsky: hi
15:15.30pH5hey psokolovsky
15:15.31psokolovskywe should convert *all* (which is pertinent, of course)
15:15.39cr2pH5: that's why i'm asking an expert to help me :)
15:15.40psokolovskyand start with asic3_base ;-)
15:16.15cr2psokolovsky: can we get rid of the &foobar_asic3.dev ugly pointer ?
15:16.39cr2is there a more sensible way to ask the parent device about it ?
15:16.43psokolovskycr2, why is it ugly and what ideas you have?
15:16.52pH5yeah, that would be of interest to me to - I face the same problem with the magician cpld
15:17.01psokolovskycr2, we could fish in device structure, I guess.
15:17.37cr2it's ugly because it's an extern in the header and is copied over from device to device.
15:17.45cr2that will be nice.
15:21.04psokolovskypH5, I guess, we don't want *all* drivers to be platform, right. Some dev-independent thing can be a normal driver, or maybe even module, if it's not really a driver, right?
15:22.16cr2psokolovsky: the _udc is probably not a platform driver, only its parent is.
15:22.26pH5psokolovsky: right, only the drivers that attach to the platform bus have to be platform_drivers
15:22.36cr2but magician does not have asic3.
15:22.55psokolovskycr2, IIRC, _udc canoot be driver/module at all. only static. the rest is decoration ;-)
15:23.05cr2ok.
15:23.28cr2but it does not make sense to pull asic3 gpios if the asic3_base is not loaded.
15:23.51psokolovskypH5, well, I guess not only. if we really need to pass something in via platform_data, we can "attach" it to that bus too, right? ;-)
15:24.18pH5psokolovsky: I didn't understand that.
15:24.24psokolovskycr2, yes, and it all goes again to static irq base, getting rid of "child devices", etc.
15:24.48cr2imho, it should be possible to run the device with the asic3_base unloaded.
15:25.22cr2one more standardization question.
15:25.36cr2there is a .shutdown platform_device function.
15:25.47psokolovskypH5, I see 2 purposes of platform_devices now: 1) direct, for devices which are attached to "dumb" "platform" bus, 2) and for passing extra info to tehir drivers via platform_data member. we can (ab)use the 2nd on occasion.
15:25.47cr2is somebody using it ?
15:26.07psokolovskycr2, what is it for? ;-)
15:26.23cr2don't know myself :) but it's in the header.
15:27.01psokolovskycr2, so, I guess it's extra hook in add/remove susp/res sequence
15:27.01cr2i see planform_bus as a replacement for pci_bus for us small people :)
15:27.19psokolovskyso far, we seem to live w/o it ;-) (.shutdown)
15:27.42cr2yes. maybe i should grep in the kernel tree.
15:30.00cr2psokolovsky: ./arch/arm/mach-pxa/h4000/h4300_kbd.c
15:30.19cr2has .shutdown
15:30.21psokolovskycool ;-)
15:30.26cr2lol
15:30.28psokolovskyand it's just suspend, right?
15:30.47cr2.suspend  = h4300_kbd_suspend,
15:30.49psokolovskyso, I guess it's called before driver removal to shutdown hardware
15:30.56cr2.shutdown = h4300_kbd_shutdown,
15:31.20pH5cr2: something like this: http://en.pastebin.ca/255000
15:31.28pH5cr2: and put tsc2406_mach_info in its own header
15:31.39cr2back in 10min
15:32.39psokolovskygawd, we need some kind of kernel defconfig control solution
15:33.50psokolovskypH5, so, do you think my idea about platform_data usage is valid?
15:36.19pH5psokolovsky: could you give an example for that?
15:37.18psokolovskypH5, nope, just thoughts. I didn't really hit that yet (well, we don't have many cross-device drivers yet).
15:37.37psokolovskypH5, so well, just fyi, maybe you'll remember that later if needed ;-)
15:38.20psokolovskyjust consider, say SPI driver which needs to be parametrized with device-specific data
15:38.24psokolovskyhow to do that?
15:38.42psokolovsky(that's rhetorical q for now)
15:40.30pH5Ok, I'll try to keep that in mind :)
15:43.28cr2pH5: thanks. looks great. now we need to solve the problem with the asic3 irq dynamic base, and the horrible driver duplication will come to an end :)
15:47.09psokolovskypH5, hey, btw I guess I just was reading your thoughts, that patch is exactly about passing bits down to TS driver, right?
15:49.48cr2psokolovsky: it is still not the final stage. actually the platform_device here is the pxa2xx-spi
15:50.07psokolovskyok, so that's what I mean ;-)
15:50.34cr2pH5 started to implement it for magician, but we use 24bit spi transfers, which are not included in pxa2xx-spi
15:50.45psokolovskynevermind, I won't bother you, will look what you will put together, that's good thing to do
15:51.37cr2ads7648 is the predecessor of tsc2046, it should be 100% compatible in some way.
15:56.10psokolovskyyep, exactly (or so I heard)
15:56.46psokolovskyso, we should try to commonize it all, but hx4700+universal would good start, of course
15:57.46cr2yeah, they share most of the hardware.
15:58.24cr2the hx4700_power is the next in the clean process.
15:58.53cr2to get asic3_owm as it should be.
15:59.07psokolovskyok, nice plan
15:59.42psokolovskyI won't go in that direction then, to not interfere
15:59.56psokolovskyso far in my q is to clean UDC for hx4700 ;-)
16:01.00cr2i think pH5 was planning to do something with hx4700_power.
16:01.40cr2i need to find out the conversion coefficients for the universal. for some reason i don't get the right battery data on the universal.
16:01.54cr2with the hx4700_power values.
16:03.39pH5cr2: look at the ds2762 data sheet, afaik there are only two possibilities
16:28.16lkclCMP R0, #3 and BCS loc_2C8
16:28.26lkclis that if R0 < 3 goto loc_2c8
16:28.35lkclor is it if R0 <= 3 goto loc_2c8
16:28.36lkcl?
16:34.01cr2i think <
16:34.13cr2why carry will be set on 0.
16:37.36cr2evil. if RO > 3 goto loc_2c8
17:06.05*** join/#htc-linux goxboxlive (n=goxboxli@9.80-202-160.nextgentel.com)
17:10.04cr2goxboxlive: hi. i have found a bug in the touchscreen driver (!) by cleaning the code. i'm surprised it did not crash the machine. can you compile and test it ?
17:12.11goxboxliveof course.
17:18.07*** join/#htc-linux pleemans (n=peter@d51A5E421.access.telenet.be)
17:27.06*** join/#htc-linux toi_ (n=peter@d51A5E421.access.telenet.be)
17:46.06*** join/#htc-linux rob_w (n=bob@p85.212.177.66.tisdip.tiscali.de)
17:50.00psokolovskyOk, so here
17:50.32psokolovsky's confirmation: sound doesn't work on hx4700 with 2.6.18, familiar 0.8.4
17:51.01cr2ok. how can we check that dma works ?
17:51.17cr2i2c is more or less ok, and gpios are right.
17:52.45*** join/#htc-linux TripleDES (n=sergio@84.77.161.251)
17:52.57psokolovskydmesg:
17:52.57psokolovskyALSA sound/core/pcm_native.c:1510: playback drain error (DMA or IRQ trouble?)
17:53.12psokolovskydunno, need try older kernels, likely
17:53.13cr2the same error here ;)
17:53.56psokolovskywill try to play with low-level alsa utils first
17:53.59cr2it can't be irq trouble ? i don't think there is some irq involved.
17:54.11cr2so it should be dma.
17:54.20cr2lcd uses its own.
17:54.52psokolovskywith speaker-test:
17:55.04psokolovskywas set buffer_size = 16384
17:55.04psokolovsky<PROTECTED>
17:55.04psokolovskyWrite error: -5,Input/output error
17:55.04psokolovskyxrun_recovery failed: -5,Input/output error
17:55.04psokolovskyTransfer failed: Operation not permitted
17:55.08psokolovskyALSA sound/core/pcm_lib.c:1714: playback write error (DMA or IRQ trouble?)
17:55.54cr2it looks like dma timeout.
17:56.26psokolovskywonder, are there big differences in DMA between pxa25x & 27x? can we suspect cpu part or only ak codec?
17:56.57cr2pxa27x has twice more channels.
17:57.16cr2ak codec was working in .16 afaik.
17:57.23cr2says Giorgio
17:57.40cr2were there any dma api changes in between ?
17:57.49psokolovskybut anything more funky in 27x? (think UDC diffs)
17:58.02psokolovskywe have report even .17-hh2 working
17:58.09lkclhttp://hands.com/~lkcl/hp6915/g4.c
17:58.16cr2ok, .17-18 ?
17:58.21lkcli'm getting lost of i2c timeouts on the htc sable
17:58.27lkcls/lost/lots
17:59.06cr2lkcl: then you didn't powerup/reset the codec. it's like with wifi.
17:59.15lkclargh ok.
17:59.26cr2speakers/mic has nothing to do with it.
17:59.56lkclyes i possibly found another ASIC3 gpio after doing a diff of dump asic3gpio
18:01.04cr2lkcl: the first part of your g4.c is setting up the PXA gpios. it's something for the SableGPIO (Init column)
18:03.01*** join/#htc-linux asylumed (n=insanity@196.211.116.2)
18:05.23*** join/#htc-linux rob__w (n=bob@p85.212.140.219.tisdip.tiscali.de)
18:06.36asylumedrob_w: hey
18:07.09lkclok.  hooray.
18:08.40cr2foodtime.
18:16.02*** join/#htc-linux BabelOued (n=Fabrice@lun34-2-82-238-28-28.fbx.proxad.net)
18:16.24goxboxlivecr2 ts works
18:19.20goxboxlivestill no usbhost
18:22.00psokolovskyok, 2.6.17-hh3 gives me the same result (doesn't work)
18:41.41goxboxliveI remember there where a lot thathappend between 16-hh2 -> hh4. We had problem compiling the universal, and there where some drivers that didnt work. Also ACX has become more unstable that it was before.
18:42.35goxboxliveI tried out the xanadux-.12 kernel some days ago, and i didnt had any failures with ACX, but with late 16, .17 and now .18 it failes when it is loaded.
18:43.39goxboxliveBegore i couls install applications using WLAN, but that failes a lot now, especially if it is lot of dependencies that also needs to be installed.
18:45.50goxboxlive( idont mean it failes when the acx modules is loaded, but when it is transfering/recivien a lot of bits. )
18:50.17lkclyou know: i'm _really_ tempted to go back to that 2.6.12 kernel tree.
18:50.21psokolovskyok, so here come the miracles, 2.6.16-hh8 doesn't work for me either
18:50.29psokolovskylol
18:51.54lkclpsoko: you're trying an hx4700, right?
18:51.57psokolovskyyep
18:52.33psokolovskySo, here's the question: anybody at all ever had sound working on hx4700 with *haret*
18:52.46psokolovskyand that's q to Kevin2, probably
18:58.24psokolovskyso, .16 and .17 have those differerent ak4641.c versions, but they behave the same
19:07.46lkclbtw what's OWM stand for, again?
19:09.13lkclyou mean, psoko, has anyone ever had sound working on the hx4700 when booting linux using haret.exe, as opposed to starting up after replacing wince and starting linux from the bootloader?
19:10.19psokolovskyone-wire, find your meaning for M, maybe module
19:10.23psokolovskyowm == w1
19:10.33psokolovskyunless I'm hallucinating, of course
19:10.53psokolovskylkcl, yes, exactly regarding haret and sound
19:11.02lkclok.  ta.
19:11.15lkcland EXTCF?  (all on the asic3 page)
19:11.46lkcli'm looking at _loads_ of differences in the asic3 mem-map and i'm wondering if some of them are related to sound failure and acx failure on the sable.
19:13.22*** join/#htc-linux g3gg0_ (n=g3gg0@ppp-82-135-15-150.dynamic.mnet-online.de)
19:14.53psokolovskysomething new: "ACR reset
19:14.53psokolovsky"
19:17.27*** join/#htc-linux doepiedoe (n=doepiedo@84-53-96-51.fiber.unet.nl)
19:17.55psokolovskyok, ACR is UART stuff
19:18.31psokolovskythe most annoying actually not that it doesn't work
19:18.42cr2psokolovsky: isn't ACR accumulated current something ?
19:18.45psokolovskybut that almost no errors are thrown
19:18.51psokolovskylol
19:18.54psokolovskydunno ;-)
19:19.00*** join/#htc-linux buz (n=buz@80-218-107-221.dclient.hispeed.ch)
19:19.04psokolovskyat least it's apparaently not sound related
19:19.16cr2i think its hx4700_power battery message.
19:19.54psokolovskycr2, ack, thanks
19:21.37cr2lkcl: the "haret  sound" is a blueangel-specific problem.
19:22.15cr2asylumed: i'll commit the (probable) fix to the xanadux .12 CVS, can you test it ?
19:22.31psokolovskycr2, can you confirm any pxa27x & ak4641 device sound work under haret?
19:23.07cr2i have only the universal. Kevin did not test sound afaik, on apache.
19:24.14asylumedcr2: hey, just tuned in... the kernel or haret?
19:24.16psokolovskycr2, so, what about uni?
19:24.17cr2asylumed: the fix is for the kernel. after that sound should work with any haret.
19:24.50asylumedcr2: kewl... sure i'll test it...
19:24.53*** join/#htc-linux wewe (n=bob@p85.212.162.185.tisdip.tiscali.de)
19:24.57psokolovskycr2, I'm going to commit error diagnostic to sound code, any concerns?
19:24.59cr2psokolovsky: i have not tried myself, but goxboxlive says it does not work. the error message is the same that you have.
19:25.04cr2no.
19:25.18cr2it does not work anyway ;)
19:25.19psokolovskycr2, .12?
19:25.30cr2.12 was working.
19:25.36psokolovskycr2, from haret?
19:25.43cr2mic and speakers and headphone.
19:25.54cr2yes, we don#t have other bootloader.
19:26.06cr2i'd like to have one, though.
19:26.14psokolovskyKevin2: can there be any issues with DMA and haret boot?
19:26.35psokolovskycr2, so, no concerns regarding sane error reporting?
19:27.05cr2psokolovsky: we switch DMA off in haret, but the kernel should be clever enough to setup it properly.
19:27.10cr2no.
19:27.19psokolovskyok
19:27.42cr2we need to repair the ak4641 sound, all methods are good for it :)
19:28.28cr2hmm. i'll checkout the .12 kernel from sf.net
19:29.50doepiedoecr2, can't we use uboot_load too? ;)
19:30.11doepiedoeahh it's for omap
19:36.45cr2doepiedoe: if you'll port it ;)
19:37.04cr2we can easily adapt the hx4700 bootldr
19:45.03doepiedoesounds nice :)
19:45.16doepiedoei can do some c ;)
19:45.28doepiedoewould you boot from a binary i'll give you? ;)
19:47.23lkclbtw cr2 you know what EXTCF stands for?
19:48.00*** join/#htc-linux _buz (n=buz@84-73-95-139.dclient.hispeed.ch)
19:55.23cr2extrnal CF, but i'm not sure.
19:57.09cr2goxboxlive: i've modified the touchscreen again. will commit the changes soon. we are close to the generic tsc2046 touchscreen driver. hmm. want the static asic3 irq base :)
19:58.43cr2actually there should be a platform_bus init, like the pci_bus where you can assign the irqs.
19:59.15cr2then you can connect 10 asic3 chips to the cpu and be happy .
19:59.46*** join/#htc-linux goxboxlive (n=goxboxli@9.80-202-160.nextgentel.com)
20:00.47*** join/#htc-linux goxboxlive (n=goxboxli@9.80-202-160.nextgentel.com)
20:01.46*** join/#htc-linux iggy (n=iggy@12.45.184.235)
20:03.26cr2goxboxlive: added ohci.
20:04.19goxboxlivecr2: what do you mean?
20:04.55cr2<PROTECTED>
20:06.53cr2it's a big update now. compile the ohci into the kernel. check the touchscreen.
20:08.41*** join/#htc-linux _buz (n=buz@84-73-95-139.dclient.hispeed.ch)
20:10.49cr2goxboxlive: do you see the patch ?
20:11.26goxboxlivenot yet, it's not ready for users yet. Only in cvsweb
20:11.33cr2ok.
20:11.45goxboxlivenow it is i guess
20:12.28cr2lkcl: does your touchscreen work ?
20:12.59*** join/#htc-linux _buz (n=buz@84-73-95-139.dclient.hispeed.ch)
20:15.28Kevin2Hi
20:16.09Kevin2psokolovsky: I've not tried sound on apache.  I've been waiting for universal to work first.  :-)
20:16.15goxboxlivehi Kevin2
20:16.33Kevin2Are you concerned about dma and haret?  Have you tried gnu-haret / earlier haret?
20:16.47psokolovskyKevin2, hi!
20:16.51cr2Kevin2: i'm waiting for hx4700 :)
20:16.53psokolovskyyes, concerned
20:17.01psokolovskyno, didn't try yet
20:17.05psokolovskywill try
20:17.24psokolovskyold mainline haret had issues with UDC, I assume due to DMA
20:17.41psokolovskygnuharet and haret-0.4.3 don't have UDC probs
20:17.57Kevin2Okay, I suggest you try gnu-haret.  The code to disable dma is slightly different between haret and gnu-haret.  gnu-haret tries to zero everything out, while mainline is now just disabling.
20:18.18cr2Kevin2: it seems your pxa27x keyboard driver goes into mainline. it seems i had a good idea to put it into driver/input/keyboard :)
20:18.49Kevin2I was reading the pxa docs, and the gnu-haret (and old mainline) are definitely in violation of the spec.  (They zero things while dma might still be active.)  However, it may be worthwhile to zero after disabling.
20:19.29*** join/#htc-linux buz_ (n=buz@84-73-95-139.dclient.hispeed.ch)
20:20.14psokolovskyALSA sound/arm/pxa2xx-i2sound.c:434: Started DMA on channel 10
20:20.14psokolovskyALSA sound/core/pcm_native.c:1510: playback drain error (DMA or IRQ trouble?)
20:20.14psokolovskyALSA sound/arm/pxa2xx-i2sound.c:302: DMA IRQ
20:20.31Kevin2cr2: cool.  I only modified someone else's code.
20:20.51lkclcr2: well i get interrupts, and cat /dev/input/ts0 gets data but opie fails miserably after calibration
20:21.05cr2i know, and you wanted to put it into the apache subdir.
20:21.08lkclother than that _yes_ it works :)
20:21.33cr2lkcl: you need to know the "power bits".
20:21.36Kevin2cr2: Heh - thanks.
20:21.40lkclahh
20:22.41cr2lkcl: there are devices that use 0 (hx4700) , 1(universal and magician) and 3(beetles i think).
20:23.20cr2you should run "set trace " on the spi data buffer.
20:23.30cr2then you
20:23.36cr2will know.
20:23.39goxboxlivecr2: Yes. TS works
20:23.46cr2great!
20:23.49goxboxliveBut
20:24.12goxboxliveHWat is the unknown product when loading the usbserial module?
20:24.48cr2do you have the usb host startup messages ?
20:25.04goxboxlivehold
20:25.07goxboxliveon
20:25.08Kevin2cr2: Did you get a chance to retry haret on jornada?  I've discussed this with the egcc folks - it looks like the problem is egcc is calling GetCommandLine in the startup code and that is a wm3 function only.
20:25.44cr2Kevin2: do you have a working binary, i can try it right now.
20:26.28cr2i want to put jornada820 into hh.org CVS, so i need a bootloader .
20:26.53cr2don't ask me how we booted it 3 years ago ;)
20:27.04Kevin2haret.exe-gccmain from svn -- this is a hacked version that bypasses egcc init but still calls gccmain init.
20:27.10cr2ok.
20:28.11cr2we used hpcboot from netbsd and it was a PITA.
20:30.31cr2it works. "Looking at machine Sable" and crash.
20:33.11goxboxlivecr2: Here is the USBHOST dmesg http://pastebin.ca/255290
20:33.43goxboxliveit works
20:33.51goxboxlivetake a look here:
20:34.06goxboxliveroot@htcuniversal:~$ lsusb
20:34.06goxboxliveBus 1 Device 2: ID 05c6:3197 Qualcomm, Inc. CDMA Wireless Modem/Phone
20:34.06goxboxliveBus 1 Device 1: ID 0000:0000
20:34.06goxboxliveroot@htcuniversal:~$
20:34.22goxboxliveroot@htcuniversal:~$ lsusb -t
20:34.22goxboxlivecannot open /proc/bus/usb/devices, No such file or directory (2)
20:34.36cr2mount usbfs
20:34.45goxboxliveI have not loaded the usbserial module yet
20:35.14cr2strange.
20:35.30cr2Kevin2: what do you think about it ?
20:35.42goxboxliveroot@htcuniversal:~$ lsusb -t
20:35.43goxboxliveBus#  1
20:35.43goxboxlive`-Dev#   1 Vendor 0x0000 Product 0x0000
20:35.43goxboxlive<PROTECTED>
20:35.43goxboxliveroot@htcuniversal:~$
20:35.54goxboxliveShould i load the usbserial modules?
20:36.19cr2gxoxboxlive: yes. with vendor=xxx product=yyyy debug=1
20:36.30goxboxliveok
20:37.29goxboxliveWith caption V or small v in vendor and product (p/P)
20:37.41cr2small.
20:37.43Kevin2cr2: can you post full log somewhere (eg, pastebin)?
20:37.45goxboxliveok
20:38.01cr2Kevin2: yes, i'll copy it from CF.
20:39.06goxboxlivehttp://pastebin.ca/255293
20:39.51goxboxliveAnd this gives me: root@htcuniversal:~$ ls -la /dev/ttyUSB
20:39.51goxboxlive/dev/ttyUSB0   /dev/ttyUSB1
20:40.41cr2looks good.
20:40.44cr2<7>drivers/usb/serial/usb-serial.c: the device claims to support interrupt in transfers, but read_int_callback is not defined
20:41.02cr2maybe it's just this generic driver.
20:41.25cr2<7>drivers/usb/serial/usb-serial.c: found interrupt in on endpoint 0
20:41.25cr2<7>drivers/usb/serial/usb-serial.c: found bulk in on endpoint 1
20:41.25cr2<7>drivers/usb/serial/usb-serial.c: found bulk out on endpoint 2
20:42.17psokolovskycr2, what exactly is DREQing bytes for sound?
20:43.03cr2i'm not an usb expert, is the USB0 for in, and USB1 for out ?
20:43.18cr2psokolovsky: RAM <-> I2S
20:43.39cr2I2S should have its own channel.
20:43.41goxboxlivecr2: Is it a safe to load this module and have it started at boot?
20:44.00cr2goxboxlive: is the phone running ?
20:44.08goxboxliveNo not now
20:44.15psokolovskycr2, i.e. is it i2s requesting it? or codec itself? or something else?
20:44.25cr2I2S
20:44.38goxboxliveshould i start  the phone?
20:44.54psokolovskyok
20:45.11cr2goxboxlive: yes, and then you can run 'od -x' on /dev/ttyUSB0
20:45.21cr2i don't know how to init video call.
20:46.00cr2maybe it's some command sent over usb. i have not seen any special AT commands.
20:46.40cr2psokolovsky: the codec is not memory mapped, how can it dma ?
20:47.24psokolovskycr2, I mostlly interrested what generates clocks which go to DREQ
20:47.42cr2hmm.
20:47.59cr2it must be CF on the hx4700
20:48.04cr2from asic3.
20:48.16psokolovsky(well, I have to say that I have only draft knowledge how DMA works in modern systems, but I hope basic idea is the same as it was on 8080 ;-) )
20:48.36cr2my knowledge is from pdp11 times ;)
20:49.18cr2i have hard time to get the 8080 way of doing things, including the shitty assembler ;-)
20:49.54goxboxlivecr2: ttyUSB0 and ttyUSB1 disapeared when i started the phone
20:50.14cr2yes, you should run AT@USBPOWER=1
20:50.37cr2you should init the phone. not exactly what wince does, but the useful things.
20:51.55goxboxliveyes now they are back
20:52.53goxboxliveyes now what i am running od -x /dev/ttyUSB0
20:52.55goxboxliveand it hangs
20:53.40goxboxlivecr2 it gave me this:
20:53.43goxboxlive<7>drivers/usb/serial/usb-serial.c: serial_open
20:53.43goxboxlive<7>drivers/usb/serial/generic.c: usb_serial_generic_open - port 0
20:53.43goxboxlive<7>drivers/usb/serial/usb-serial.c: serial_ioctl - port 0, cmd 0x5401
20:53.43goxboxlive<7>drivers/usb/serial/usb-serial.c: serial_close - port 0
20:53.43goxboxlive<7>drivers/usb/serial/generic.c: usb_serial_generic_close - port 0
20:53.45goxboxlive<7>drivers/usb/serial/generic.c: generic_cleanup - port 0
20:53.47goxboxlive<7>drivers/usb/serial/generic.c: usb_serial_generic_read_bulk_callback - port 0
20:53.49goxboxlive<7>drivers/usb/serial/generic.c: usb_serial_generic_read_bulk_callback - nonzero read bulk status received: -2
20:53.56cr2the phone hangs ?
20:54.00goxboxliveno
20:54.03goxboxlivethe od
20:54.06cr2the unibversal ?
20:54.11goxboxliveno
20:54.14cr2it's normal. it blocks.
20:54.34goxboxliveok, i ended it wiit ctrl+c
20:54.38cr2we don't know what is going on ther.e, we need to trace it in wince.
20:54.40cr2ok.
20:54.49cr2Kevin2: http://pastebin.ca/255310
20:54.54*** join/#htc-linux psokolovsky_ (n=psokolov@ip.85.202.124.214.dyn.sub-9.broadband.voliacable.com)
20:55.46goxboxliveOk, i'll try to reboot it and see if it loads up at boot
20:56.23cr2goxboxlive: it does not make much sense. we need a wince trace first.
20:56.47goxboxliveso i should use usbseral then ?
20:56.57psokolovsky_ALSA sound/arm/pxa2xx-i2sound.c:434: Started DMA on channel 8
20:56.58psokolovsky_ALSA sound/arm/pxa2xx-i2sound.c:302: DMA IRQ
20:56.58psokolovsky_ALSA sound/arm/pxa2xx-i2sound.c:443: Stopping DMA on channel 8
20:56.58psokolovsky_ALSA sound/arm/pxa2xx-i2sound.c:302: DMA IRQ
20:57.14psokolovsky_that's from h4000, working
20:57.28cr2ok.
20:57.33cr2you have uda1380 ?
20:57.36psokolovsky_missing 2 irqs, apparently of buffer xfer completion
20:57.38psokolovsky_yep
20:57.42cr2ok.
20:58.05psokolovsky_As DMA dummy as me, I would think DREQs are not generated, as first thing ;-\
20:59.18cr2we have a generic tsc2046 driver now. only the touchscreen, i don't know what to do with the battery. SoC ?
20:59.35cr2and it suffers from dynamic irqs, of course.
21:00.04cr2here is a new idea: ask the SoC parent about its base irq.
21:00.21Kevin2cr2: Do you need to put SetKMode() around accesses to coprocessor registers on the jornada?
21:00.25psokolovsky_cr2, that's what Spyro proposed in his RFC
21:00.31goxboxliveWell anyway i tested it. It loads ttyUSB0 and ttyUSB1 druing boot now. I guess it not's hurt to use it, right?
21:00.46psokolovsky_at least it will be independent from specific SOC
21:01.06*** join/#htc-linux g3gg0__ (n=g3gg0@ppp-82-135-15-150.dynamic.mnet-online.de)
21:01.07cr2Kevin2: yes. wince < 3.0 was running in user mode.
21:03.26cr2psokolovsky_: i think it's a good idea. then handling multiple SoCs will be easy.
21:06.21psokolovsky_yes, if we can't just drop dynamic stuff at whim, that would be a solution
21:06.21psokolovsky_and we can turn CPU into SOC too ;-)
21:06.22cr2unfortunately, this tsc2046-ts driver is pxa-specific. because it messes directly with the spi registers.
21:06.35cr2i'd like to have the static SoC irq, but i creates problems with multiple SoCs. imho.
21:10.29cr2psokolovsky_: it's actually a pc bios illusion that the irqs are static.
21:11.36psokolovsky_cr2, well, I agree, all those irq solutions are "select 2 of 3" type
21:11.49cr2yeah.
21:11.49Kevin2cr2: Do you think it would be okay to just run "SetKMode(true)" at haret startup?  That would certainly simplify things.
21:12.00cr2Kevin2: yes.
21:12.02psokolovsky_so if we can work out soc-independent solution, let's have that better
21:12.03Kevin2psokolovsky_: Any thoughts on the above?
21:12.51cr2Kevin2: haret does nasty crash-friendly things anyway.
21:13.08psokolovsky_Kevin2, I have no idea about SetKMode() much. but I guess, it's not immediately necessary to abuse wince insecurity ;-)
21:13.35cr2it's only wince < 3.0 relevant
21:13.52cr2newer wince always runs in the kernel mode.
21:14.55psokolovsky_nothing can surprise me about wince for some time already ;-)
21:15.03cr2lol.
21:20.23Kevin2cr2: try new haret.exe-gccmain (rev 128).  This version sets kmode early - I think we were failing on access to cp15.
21:21.05cr2ok.
21:23.48cr2Kevin2: yes. now it works. the window is modal (i will not be able to close it, time to add the exit button).
21:24.04cr2it says : Found machine
21:26.43doepiedoecr2, should i define a ramdisk of size 14336K in the ramdisk configuration of the kernel? or just do some values and define it in the bootconfig of haret
21:27.17cr2Kevin2: if i put toolhelp.dll on the machine, it registers kill and ps. cool.
21:28.13*** join/#htc-linux psokolovsky (n=psokolov@ip.85.202.124.214.dyn.sub-9.broadband.voliacable.com)
21:28.30cr2doepiedoe: use the actual ramdisk size. if you did not change the standard one, then you know the size. on the kernel command line.
21:29.03doepiedoeok, thanks
21:30.51lkclcr2: when you say 'power bits' - is that an spi register or something?
21:30.53doepiedoeget unable to open initial console
21:31.04doepiedoeare there more things i should enable in kernel?
21:31.11doepiedoeramdisk does get found now
21:31.18cr2lkcl: no, it's the bits in the data request command.
21:31.25lkclo right.
21:31.32lkclok.  i think i have an spi trace already...
21:31.43cr20x9X0000 for X, and 0x9Y0000 for Y.
21:32.09lkclok that was for the gps spi port ha ha
21:32.11cr2we use 24bit transfer, so the lower 2 bytes are 0.
21:32.22cr2lol
21:33.09lkclcr2: que - do you mean i2s rather than spi?
21:33.12cr2i don't know why it's not 16bit, because the command is 8bit and the ADC response is 12bit.
21:33.23lkclcr2: this is touchscreen, right?
21:33.29cr2spi, SSP.
21:33.34cr2yes.
21:33.49*** join/#htc-linux psokolovsky__ (n=psokolov@ip.85.202.124.214.dyn.sub-9.broadband.voliacable.com)
21:33.50lkclok there are bits that you set that tell the ADC what 'mode' to be in.
21:34.03cr2i2c is the camera (you should trace me the i2c id :), and the sound. and the wifi eeprom.
21:34.15cr2and maybe your hw RTC.
21:34.32lkcland what ranges of samples to 'average' to avoid bounce.
21:34.54cr2lkcl: look for 0x9X0000 and 0x9Y0000
21:35.04lkclcr2: remember, i did that about... 8 days ago.  got everything but the camera, because it's still sticking out at an angle of 30 degrees from the back :)
21:35.17lkclok
21:35.17cr2ok, i have forgot ;)
21:35.32*** join/#htc-linux psokolovsky__ (n=psokolov@ip.85.202.124.214.dyn.sub-9.broadband.voliacable.com)
21:35.47cr2damn. 0xdY0000
21:36.02lkclcr2: got an address for me so i don't get confused with all these different TLAs (three letter anachronyms)...
21:36.07cr2these will be the most visible commands, all the rest is random.
21:36.12lkclk.
21:36.16cr2SSP1 or SSP2 ?
21:36.24lkclerr....
21:36.27lkclburble.
21:36.33cr2look at your driver
21:36.34lkclSSP2 is... touchscreen
21:36.39cr2ok.
21:36.50cr2looking in the pxa-regs.h
21:37.48lkcloh now i know what you're talking about - i thought you were talking about sound
21:37.56lkclno need i can find it
21:38.13lkclP1.
21:38.30cr2ok.
21:38.35lkcl0x41000010
21:39.29doepiedoestrange
21:39.37lkclvirtual 0xaf000010
21:39.42lkclok.
21:39.45doepiedoecopy a gzipped ramdisk to my windows box and windows is showing the actual size of the ramdisk
21:39.45doepiedoe;)
21:41.35cr2lkcl: SSP2 is 0x4170
21:41.38*** part/#htc-linux WizMaui (n=WizMaui@62.112.90.179)
21:41.44lkclam using SSP1
21:41.47lkclsorry :)
21:43.00lkclhuh.  no trace output.  hmmm....
21:44.26cr2are you touching the screen ?
21:44.29lkclhmh.   getting irqs - no data.
21:44.30lkclyes.
21:44.41lkclHaRET(7)# set trace 0xaf000000
21:44.41lkclHaRET(8)# set tracemask 0x1f
21:44.41lkclHaRET(9)# wi 2
21:44.53lkclFinished installing exception handlers.
21:44.53lkcl00030f8b: irq 149(gpio 115)
21:44.53lkcl00083f95: irq 149(gpio 115)
21:44.53lkcl000c0d18: irq 149(gpio 115)
21:44.53lkcl000c98a7: irq 149(gpio 115)
21:44.54lkcl001691a9: irq 149(gpio 115)
21:44.58lkclRestoring windows exception handlers...
21:45.00lkclburble.
21:45.10cr2set trace 0xaf700000
21:45.17lkclyep.  good idea.
21:45.53lkcl_whoa_....
21:46.02lkcleep.
21:46.06cr2pastebin.
21:46.09lkclthat was a lot of trash onscreen
21:46.19cr2lol
21:47.40lkclhttp://hands.com/~lkcl/hp6915/ssp2.trace.txt
21:47.44cr2set the mask only for 1 register.
21:48.04cr291
21:48.24cr2and d1
21:48.33cr2the same as on universal.
21:48.51cr2wtf we are using 24bit ???
21:49.04lkclque?
21:49.15*** join/#htc-linux Fossi (n=Fossi@e176115211.adsl.alicedsl.de)
21:49.21lkclremember that was trace on _all_ the registers not just data.
21:49.44cr200b10000 ?
21:49.57lkcloh.  right.  ok.  just the data register.
21:50.00lkcl1sec...
21:50.11*** join/#htc-linux psokolovsky__ (n=psokolov@ip.85.202.124.214.dyn.sub-9.broadband.voliacable.com)
21:51.00cr2need a tsc2046 datasheet.
21:51.15lkclneed a brain
21:51.29cr2the commands are 8bit and the responses are 16bit as you can see. why 24bit spi ?
21:51.38lkclo god.  that's great.
21:52.18lkclthat's not possible.  you _have_ to exchange the same amount of read data as write data
21:53.23cr2then use 16bit
21:53.51cr2maybe we should try.
21:55.40lkclok just because wince is _reading_ 16-bit doesn't necessarily mean...
21:55.41lkcl:)
21:58.40lkclok updated
21:58.57lkclsome 00d10000s some 91s and some b1s
21:59.56lkcla 00c00000....
22:00.14cr2b is z1-position.
22:00.23doepiedoehey ;)
22:00.33doepiedoelooks like my SD slot is working in linux
22:00.33doepiedoe:D
22:00.46cr2c is z2-position
22:00.55lkclahh
22:01.15cr29 is y
22:01.17cr2d is x
22:01.31cr21 means ADC is on.
22:01.39cr2hx4700 is most powersaving.
22:02.18cr2doepiedoe: and not in wince ?
22:02.46cr2now i need to remember what is z1 and z2.
22:03.42cr2it's for the pressure measurement.
22:06.57lkclok i am getting data by using SSDR_P2 but it is so inaccurate that i can't calibrate the screen.
22:08.34lkclgonna try htcsable_ts2 although last time it failed miserably
22:09.53doepiedoecr2, i loaded mmc_block and after that i loaded asic3_mmc
22:10.10lkclhooray, doepiedoe!
22:10.13doepiedoeasic3_mmc: ASIC3 MMC/SD Driver, controller at 0xc000000
22:10.17doepiedoe:)
22:10.23doepiedoemknod /dev/mmcblk0 b 254 0
22:10.31doepiedoeshould find the SD card then right?
22:11.02cr2try it.
22:11.03lkclyep.  looks right.
22:11.09doepiedoeyes but it doesn't
22:11.23doepiedoemkfs.ext3 /dev/mmcblk0
22:11.30cr2then your asic3 is toast
22:11.33doepiedoemkfs.ext3: No such device......
22:11.37lkclhighfield:/home/lkcl/xda# ls -altr /mnt/initrd/dev/mmcblk0p2
22:11.38lkclbrw-r--r-- 1 root root 254, 2 Nov  1 18:54 /mnt/initrd/dev/mmcblk0p2
22:11.47lkclNO doepiedo
22:11.53doepiedoe?
22:11.57cr2fdisk /dev/mmcblk0
22:12.13lkclthat will make the entire device an ext3 drive -  you want to create a partition first
22:12.16doepiedoeunable to open /dev/mmcblk0
22:12.27lkclahh joy.
22:12.30lkclrun dmesg
22:12.34lkclwhat does it say at the end?
22:12.43doepiedoenothing in dmesg
22:12.47cr2it should detect the card.
22:12.49doepiedoeasic3_mmc: ASIC3 MMC/SD Driver, controller at 0xc000000
22:13.00lkclhmmm...
22:13.05cr2hmm. we may also export the hw id in /sys
22:13.08doepiedoewhen i insert in windows it says battery to low can't use sd card
22:13.14cr2it is useful for some uses.
22:13.21doepiedoetheres no /sys
22:13.23lkclHOORAY
22:13.31lkcltouchscreen works.
22:14.38doepiedoeasic3_mmc isnt used too
22:14.40cr2lkcl: can use set it to do 16bit spi ? and cut one byte from the command ?
22:15.06lkclah come on cr2 let me savour the moment a bit where i can actually use this friggin device
22:15.14cr2:))))))))))))))
22:15.27lkcland run the alsa mixer etc.
22:15.37cr2write the lcd and bl driver ;)
22:15.59lkclPM: Adding info for No Bus:i2c-0
22:15.59lkcli2c: error: exhausted retries
22:15.59lkcli2c: msg_num: 0 msg_idx: -2000 msg_ptr: 0
22:15.59lkcli2c: ICR: 000007e0 ISR: 00000002
22:15.59lkcli2c: log: [00000442:000007e0]
22:16.00lkclPM: Adding info for i2c:0-0051
22:16.02lkcli2c: error: exhausted retries
22:16.04lkcli2c: msg_num: 0 msg_idx: -2000 msg_ptr: 0
22:16.06lkcli2c: ICR: 000007e0 ISR: 00000002
22:16.08lkcli2c: log: [00000442:000007e0]
22:16.10lkcli2c: error: exhausted retries
22:16.12lkclon modprobe snd-htcsable_audio
22:16.34cr20x51 is eeprom
22:16.40cr2where is 0x12 ?
22:17.19cr2if it's not there, then the codec is not powered up.
22:19.09lkclHA this is great.
22:19.11lkclhaha
22:19.18lkcllemme do a scan...
22:22.20lkclha ha - when audio is enabled, i2cdetect shows UU
22:22.35lkclwhen i rmmod snd-htcsable_audio, it shows up!
22:22.52lkcl/usr/sbin # rmmod snd_htcsable_audio
22:22.52lkclrmmod snd_htcsable_audio
22:22.52lkcl/usr/sbin # ./i2cdetect 0
22:22.52lkcl./i2cdetect 0
22:22.52lkclWARNING! This program can confuse your I2C bus, cause data loss and worse!
22:22.53lkclI will probe file /dev/i2c/0.
22:22.55lkclI will probe address range 0x03-0x77.
22:22.59lkclContinue? [Y/n] y
22:23.01lkcl<PROTECTED>
22:23.03lkcl00:          XX XX XX XX XX XX XX XX XX XX XX XX XX
22:23.05lkcl10: XX XX 12 XX XX XX XX XX XX XX XX XX XX XX XX XX
22:23.07lkcl20: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX
22:23.19lkclwhat's the guessing that the enable/disable is the wrong way round?
22:23.29cr2then you do something wrong in htcsable_audio.
22:23.53lkcldon't look at me!!
22:25.52doepiedoecr2, should asic3_mmc leave a message ni dmesg when inserting card?
22:28.13cr2yes.
22:28.40cr2you should better insert the card and then 'modprobe asic3_mmc'
22:29.03psokolovsky__cr2, do you know if i2s is anyhow smart? i.e. does it sense that receiver actually receives data? sorry for dumb q ;-)
22:29.42doepiedoei did
22:29.43doepiedoe:S
22:32.37cr2psokolovsky_: don't know.
22:32.44psokolovsky__ok
22:33.26cr2the clock and data can go nowhere. frame too. what else ?
22:35.08lkclit's good to have an actual ... like.... input device
22:37.03cr2:)
22:37.13cr2lkcl: how is opie on 240x240 screen ?
22:37.36lkclgood - the icons and toolbar still aren't big enough for my liking.
22:37.43cr2should not be nice with the universal's  VGA image.
22:37.46lkclbut it's pretty good.
22:38.00*** join/#htc-linux skodde (n=skodde@85-18-136-66.fastres.net)
22:38.00cr2icons are small ??
22:39.46lkclicons are fine - the toolbar icons are too small (personal taste) and i HATE crosses in the 'top right corner'
22:40.09lkclfine for a mouse.  really awkward for touchscreens.
22:40.16lkclanyway.  enough celebration.
22:40.48cr2ok.
22:42.15psokolovsky__cr2, do you have an idea why sysfs doesn't show resources of platform_device's under /sys/devices/platform ?
22:43.57lkclit would help if i knew the reset asic3 pin...
22:44.17lkclok - how am i gonna detect this...
22:44.20doepiedoehey, how can i watch GPIOD5  with haret?
22:44.37lkclspecifically and only GPIOD5, doepiedoe
22:44.38lkcl?
22:44.41doepiedoeyeah
22:44.48lkclwasic3gpio <seconds> does everything
22:44.49doepiedoewant to check my sd card slot for activity
22:44.54doepiedoeyeah i know ;)
22:44.59lkclon linux or wince?
22:45.04doepiedoeon wince
22:45.06doepiedoevia haret....
22:45.15cr2psokolovsky__: no idea.
22:45.17doepiedoeon linux should be nice to
22:45.27lkclwell you can always do a set trace 0xa920000 (or wherever it is)
22:45.29psokolovsky__stupid linux ;-)
22:45.37doepiedoe0x0020 ?
22:45.39lkcland then wi 10 (for 10 seconds)
22:45.41doepiedoeset trace 0x0020
22:45.54lkclset trace 0xa9200180 or thereabouts
22:46.13lkclcheck your asic3 address, add the offset for the register (see xda-dev ASIC3 page)
22:46.26lkclthen trace that memory address.  that will give you D0 to D15 only
22:46.32doepiedoeoffset == bit?
22:46.48lkclhttp://wiki.xda-developers.com/index.php?pagename=ASIC3
22:47.00lkclfind your device's physical mem address.
22:47.28doepiedoe<PROTECTED>
22:47.29lkclconvert it to virtual (check your device mem-map page)
22:47.35doepiedoedamn.....
22:47.38lkcladd 0x198
22:47.40lkclGPIOD_Status   +0x0330   +0x198   Read here
22:47.44lkclfrom the ASIC3 page
22:47.58lkcland do set trace 0xxxx0198
22:48.20lkclthen do some set iis because otherwise it's gonna get _really_ boring watching RTC interrupts etc.
22:48.37lkclsomething like this:
22:48.39lkclset ii(43) 1
22:48.39lkclset ii(7) 1
22:48.39lkclset ii(30) 1
22:48.39lkclset ii(10) 1
22:48.46doepiedoelol
22:48.49lkcldo a wi 2 first
22:48.51doepiedoei really don't get it
22:48.53lkclfor a couple of seconds
22:49.24lkclyou're going to do a trace - a software watch - on the ASIC3 GPIOD 0 to 15 memory area
22:49.55lkclany time this memory changes, the wi command will print out a debug log message telling you the ARM instruction that was accessing that area of memory.
22:50.22doepiedoeset trace 0x000198
22:50.32lkclwhat's your device called?
22:50.33doepiedoeset trace 0xc00198
22:50.39doepiedoeHTC Universal
22:50.40doepiedoe:)
22:50.45lkclahh universal.  ok.
22:50.55lkclfind the universal memory-map page.
22:51.10doepiedoeasic3 gpio base  0x10000000
22:51.31doepiedoeGPIOD5   0x0020   SD card detect in/ou
22:51.41lkclno, find the universal memory map page - on wiki.xda-developers.com
22:51.44lkcl<PROTECTED>
22:51.57lkcl<PROTECTED>
22:52.00doepiedoe0xa9200000-a9300000   0x10000000-10100000   ASIC3 GPIO & misc
22:52.04lkclsorry - yes, you're right.  0x10000000
22:52.10lkclok.  GREAT.
22:52.12doepiedoelol
22:52.16doepiedoehow can i :P
22:52.20doepiedoe:)
22:52.29doepiedoeim always wrong
22:52.30doepiedoe:D
22:52.31lkclso, translate that phys addr to virtual - 0xa9200000
22:52.36lkclburble :)
22:52.40doepiedoe:P
22:52.49doepiedoeset trace 0xa9200000 wi 2
22:52.58lkclok, now look on the ASIC3 page again, for GPIOD 'read' offset.
22:53.10lkcland then add that offset to 0xa9200000
22:53.11doepiedoethats 0x020
22:53.16lkclthat's two separate commands
22:53.23lkclthe first command sets the address to watch
22:53.30doepiedoe<PROTECTED>
22:53.34doepiedoejups
22:53.36lkclthe second command (wi 2) says 'start watching for two seconds'
22:53.39doepiedoeand then wi is watch ...
22:53.43lkclok where did you get 0x0020 from?
22:53.58doepiedoefrom http://wiki.xda-developers.com/index.php?pagename=UniversalASIC3,GPIOD5 , SD card detect in/out
22:54.46lkclok that just tells you about D5.
22:54.46lkclok it tells you which bit of the 16 values, D0 to D15, in the memory address 0xa9200198, is D5.
22:54.46doepiedoeso 0xa9200020?
22:54.48lkclno
22:54.50lkcl<PROTECTED>
22:54.54doepiedoeahhhh
22:55.05lkclD_Status is _all_ 16 GPIO D registers, as a bit-field.
22:55.14lkcl1<<5 equals 0x0020
22:55.34lkclotherwise it's a hell of a waste of memory addressing
22:56.17doepiedoeso 0xa9200198 should be only for SD?
22:56.29lkclok.  i gotta do an asic3 trace as well, get me a reset pin.
22:56.42doepiedoeGPIOD8   0x0100   radio reset
22:56.45lkclno - 0xa9200018 is for ALL the GPIOD pins - all of them from 0 to 15
22:56.46doepiedoeGPIOD7   0x0080   HW reboot
22:57.00doepiedoeGPIOB8   0x0100   radio reset?
22:57.19lkcl& all of those together, and you get 0xffff, right?
22:57.34lkclthat means you have 16-bits at that address.
22:57.45lkclcome on, dude - this is standard computer science stuff!
22:58.07doepiedoelol
22:58.24lkclok lemme find you some code to look at...
22:58.46doepiedoei just wanted to know if i could detect if my sd card responds.....
22:58.57doepiedoebut this isnt the right way i think :)
22:59.41lkclthe easiest way is to do WASIC3GPIO <seconds> and then grep the output looking for D5
23:00.22doepiedoeallright!
23:00.24doepiedoethats perfect
23:00.25doepiedoeGPIOD5 S 0 SDIO_DET 1606568
23:00.29doepiedoeGPIOD5 S 1 SDIO_DET 1608299
23:00.33doepiedoeso it does something
23:00.33doepiedoe;)
23:00.38lkclthat's the stuff
23:00.47lkclok.
23:01.11doepiedoe:) thanks lkcl
23:01.20lkcli gotta do some wi tracing because i am looking for some very fast 'reset' that is well below the poll threshold of WASIC3 oops...
23:01.25lkclno problem dude
23:03.05doepiedoeyour talking arabic to me
23:03.14doepiedoe;)
23:03.59doepiedoeyou know if theres any way to flash the wince image to a flash card>?
23:06.06lkclyes there is - using the wince bootloader.
23:06.14lkcld2s i think is the command you're looking for.
23:06.26lkclyou'll need at least a 256mb flash card
23:06.35doepiedoeahhh ;)
23:07.06doepiedoegot a and there was a tool to talk via usb
23:07.14doepiedoemtty ;)
23:08.41lkclbloody hell, what you using windows for, dude???
23:08.51lkclgo download kubuntu 6.10 _right_ now
23:08.57doepiedoedon't like linux on a desktop
23:08.57doepiedoe;)
23:08.59doepiedoelol
23:09.08doepiedoeonly use it for servers
23:09.23lkclahh, then you haven't tried kubuntu with my kroller.sez, then, have you
23:09.33doepiedoecan't use photoshop.... no outlook express.... ;)
23:09.37lkclhttp://www.kde-look.org/content/show.php?content=31081
23:09.42doepiedoegot kubuntu with xgl on my work on 6 displays :)
23:10.00lkclyou _can_ use photoshop!!  actually - you can use a much better program called xara xtreme
23:10.06doepiedoeyeah wine
23:10.07doepiedoe;)
23:10.07lkclSIX???  are you MAD?? :)
23:10.14doepiedoe;)
23:10.20doepiedoe3 different pc's
23:10.25doepiedoewith 2 monitors
23:10.30doepiedoewith xgl 3d
23:10.44doepiedoebut only use it for monitoring purposes
23:10.50doepiedoekind of for show thingie
23:11.03doepiedoei'll make a picture of it tomorrow :)
23:11.06doepiedoelooks nice
23:11.34doepiedoebut we have a lot of windows machines at work
23:11.47lkclkde 3.5.x is a _big_ step up - but only if you use things like kroller.sez (a macosx program-bar)
23:11.58lkclas the kde task bar is SHIT
23:12.28doepiedoeyeah ;)
23:12.30doepiedoereally....
23:12.41doepiedoebut to be honest, i really like toe look of XP
23:12.41doepiedoe;)
23:12.43doepiedoethe
23:12.44doepiedoe...
23:13.24lkclyou are sick.  get to the doctor's _right_ now.
23:13.30lkclask for a CAT scan
23:13.34lkclquick
23:13.35doepiedoehaha
23:13.35doepiedoe;)
23:13.48lkcldarn it's not that one... *sigh*...
23:13.51doepiedoeyou know whats sick ;)
23:13.55lkclgotta expand the watch area
23:13.58doepiedoewe use windows as host for vmware machines...
23:14.07lkclyeh, using fvwm2 for 7 years
23:14.17lkclthat's not sick, it's sad
23:14.44doepiedoehttp://www.ramsinks.com/images/bartixbig.jpg
23:14.48doepiedoethis looks nice 2me
23:16.25Kevin2cr2: I'll add in a description of "Default" for the generic case.  I guess this means we found the problem - I'll see if I can get the cegcc guys to fix it.
23:16.31Kevin2cr2:BTW, does it boot linux?
23:18.14cr2Kevin2: i have not tried, but i can. btw, why is the machine not detected ?
23:19.23cr2hmm. it will not work.
23:19.34cr2because of the famous OHCI clock.
23:19.43Kevin2There is no machine class defined for your platform.
23:20.05Kevin2So, it falls back to the default no-op class.
23:20.19cr2i need to disable OHCI clock in the companion SA-1101 chip. and the busmaster DMA.
23:20.59Kevin2Do you know the detection code for the platform?  If so, we should add a new class that detects the platform and does the necessary hardware stuff.
23:21.43cr2can you print the wince IDs in the debug window, or log  ?
23:22.30cr2otherwise i need to look for the PCMCIA ethernet card, eth hub, cable and so on.
23:22.48Kevin2cr2: They should be there already.
23:22.59cr2where ?
23:23.07Kevin2Hrmm.  I guess not - they'll print if you telnet it, however.
23:23.57cr2add Log() there.
23:24.16cr2it's a good general feature.
23:24.44lkclcr2 - what's this A0 and A1 'sound related' in SableAsic3?
23:24.59cr2lkcl: they are ref's in wavedev
23:25.37Kevin2cr2: Yeah, I'll have it in the next rev.
23:25.40cr2check the headphone. hmm, you don't have it ;)
23:25.54lkclahh joy.
23:25.57lkclok i'll try some/
23:26.23Kevin2The welcome prompt when you telnet in will have.  Is this okay, or do you need a new haret.exe?
23:26.27lkclrandom bit-flipping... *sigh*
23:26.40cr2lkcl: forcing powerdown on universal didn't show the gpio change.
23:26.56cr2Kevin2: i'd like to have it in the debug window.
23:27.07cr2otherwise i need to setup ethernet.
23:27.09lkclyes i noticed that, cr2.
23:27.12lkclsame here.
23:27.39cr2Kevin2: and there are no wifi drivers in wince.
23:28.14cr2and pcmcia is 16bit, and only very special pcmcia cards are supported by wince ;)
23:28.57Kevin2Okay - grab haret.exe-gccmain rev 129.
23:29.03cr2thanks :)
23:29.16lkclbrb - baby-feeding.  then i gonna try the 'random guess' approach to finding the right pins...
23:30.12Kevin2Is it possible to detect this is a "strongarm" chip and then react accordingly?  Or is it better to just code up for your particular machine?
23:32.49cr2Kevin2: you can detect strongarm. but the machine-specific hooks are also needed.
23:33.16cr2ok. it crashed after Found machine. and didn't show anything
23:33.51cr2btw, there is one more  visual glitch. the program icon is not detected. but i had this problem with vlc too.
23:40.51Kevin2cr2: It crashed this time?  That is odd.
23:41.16*** join/#htc-linux florian_ (n=fuchs@87.193.64.133)
23:42.45Kevin2Did it show:   Trying to detect machine (Plat='%ls' OEM='%ls')
23:43.10Kevin2It'll be in the haretlog.txt file.
23:43.18psokolovskycr2, well, so there appears to be some issue on DMA-I2S link
23:43.38cr2Kevin2: no.
23:43.54Kevin2What was the last line in the file?
23:44.29cr2Detected machine executing startup.txt
23:45.44cr2psokolovsky: ok. another question: can i get the &foorbar_asic3.dev pointer in the child device from asic3 somehow ?
23:46.01Kevin2It should be much earlier in the log.  Before we print all the "looking at machine xxx" logs.
23:46.34psokolovskycr2, there're all kind(s) of parent links
23:46.36cr2Kevin2: i'll check again. the evil pword.exe does not do line breaks in this file ;)
23:47.13Kevin2cr2: If you can use "total commander", I'd recommend it.  (It has a simple file viewer that works well.)
23:47.21psokolovskycr2, so I have no idea what can be wrong with ak driver
23:47.46psokolovskycr2, so, it just hangs in DMA xfer, and being killed by timeout by ALSA
23:48.31psokolovskyand fsck, we done even have /proc/dma, to look what channels are in use at all
23:49.57cr2Kevin2: it was my fault. now it works. copying the file.
23:50.29cr2psokolovsky: strange. then the DMA descriptors should be damaged or something.
23:50.31psokolovskycr2, can you point me to source which was known to work with haret?
23:50.44*** join/#htc-linux Kmarc (i=kari@markos.biz)
23:51.10psokolovskycr2, damaged descriptors would get fault irq, I guess
23:51.26cr2psokolovsky: i'll try to find it in my e-mail.
23:52.13psokolovskycr2, I mean, if you can tell me what tag in xanadux repo marks known working code, ...
23:52.56cr2-un0
23:54.37psokolovskyok, will have a look after peering at mainline git first
23:54.53cr2Kevin2: Trying to detect machine (Plat='Jupiter' OEM='HP, Jornada 820,, 8262, German, SAA')

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.