IRC log for #htc-linux on 20070918

00:00.01BabelOKevin2: ok, can you advice me about an omap i2c thing ?
00:00.10BabelOit is short
00:00.20Kevin2Sure - what's happening with it?
00:01.09BabelOtoday i disassemble htc_lib.dll from wm6 and compare i2c_init function to i2c-omap.c in current kernel
00:03.00BabelOi m looking at my office mail ;)
00:03.15BabelOwhere an i send you my debug file ?
00:04.50Kevin2Can you pastebin it?
00:05.50BabelOKevin2 sure
00:12.23*** join/#htc-linux GvzEvxre (n=timr@pdpc/supporter/bronze/TimRiker)
00:16.45BabelOKevin2: sorry i m looking for my email i sent
00:19.52BabelOKevin2: found http://pastebin.ca/701350
00:25.04BabelOand register for i2c are at virtual 0xB80B38xx
00:29.26*** join/#htc-linux jott_ (n=j@unaffiliated/jott)
00:32.21Kevin2Whoa..  Bitbake took over my system for the last five minutes..
00:32.46BabelOKevin2: often for me too on my poor athlon xp 1800
00:34.03Kevin2BabelO: Okay, I see your pastebin - what am I looking for?
00:34.46BabelOi don't understand the bus shift, pH5 say it is 2
00:35.07BabelOat start i was agree with him, but not sure now
00:36.55Kevin2Bus shift for i2c?
00:37.21BabelOKevin2: yes, if you look at i2c-omap.c it is +4
00:37.44BabelOwhy it is strange for you ?
00:39.50Kevin2I'm not sure what a bus shift for i2c is.  Where in i2c-omap is it set/used?
00:41.21*** join/#htc-linux Hawk|- (n=Hawk@p5B17CC29.dip0.t-ipconnect.de)
00:41.37BabelOKevin2: http://handhelds.org/cgi-bin/cvsweb.cgi/linux/kernel26/drivers/i2c/busses/i2c-omap.c
00:42.17BabelOregister are here and all are +4, but according to asm file i ve +2 with a strange register in middle
00:46.46Kevin2Hrmm.  How did you disassemble this?  Some of the stuff looks odd - LDR     R5, =0xB80B3802 - looks like it would throw an alignment fault.
00:48.19BabelOAh Ah you point me on a bug ? i disassemble with IDA and just take interesting part of code
00:48.29BabelOwhy an alignement fault ?
00:49.19Kevin2You're only supposed to do 4byte accesses on a 4-byte aligned address.
00:51.01BabelOyes, agree with you i just thinking that it was a compiler optim, using LDR one time instead of two successive retrieve
00:57.29*** join/#htc-linux Babel (n=Fabrice@lun34-2-82-238-28-28.fbx.proxad.net)
01:00.19Kevin2BabelO: I don't know, but it seems odd to me.  You may want to confirm the asm output by just running cegcc's objdump on the dll.
01:00.57BabelOKevin2: yes maybe they use LDR     R2, =0xB80B3812 or LDRH R2,[3] with R3 correctly filled
01:01.21BabelOok i ll try that tomorrow
01:01.32BabelOah , maybe it is just a fault from testwm5.exe
01:02.52Kevin2BabelO: Could be.  But I doubt testwm5 would show something mostly correct..
01:03.23Kevin2There is no asm statement "LDR     R2, =0xB80B3812" -- you can only load a value from a memory location - so IDL must be trying to make it look pretty for you..
01:04.16BabelOah ok, i ask cr2 about LDRH this afternoon because i just see LDR and STR in ARM asm code documentation
01:06.50BabelOKevin2: good night and thanks for your help, i will try to continu compare kernel code to this dll and adjust
01:07.04Kevin2Ok. Good night.
01:08.07BabelOjust one more thing, what is cegcc command line to disassemble ?
01:09.35Kevin2I use -- /opt/mingw32ce/bin/arm-wince-mingw32ce-objdump -d foo.dll
01:11.52BabelOok, no more argument, thanks again ang good night again ;)
02:06.58*** join/#htc-linux Hawk||- (n=Hawk@p5B17CC29.dip0.t-ipconnect.de)
02:53.52ImCoKeMaNanything new and exciting?
02:56.56ImCoKeMaNok guess not
05:27.45*** join/#htc-linux sadeness_ (n=LamersIn@nat2.rlan.ru)
05:37.25*** join/#htc-linux pleemans (n=peter@leemanpe.ugent.be)
06:14.40*** join/#htc-linux rob_w|laptop (n=rob_w@p549B9651.dip0.t-ipconnect.de)
06:26.17*** join/#htc-linux TimRiker (n=timr@pdpc/supporter/bronze/TimRiker)
06:34.01*** join/#htc-linux youshe (n=youshe@jaalon.org)
06:52.29*** join/#htc-linux oeichler (n=oeichler@p54922BFD.dip0.t-ipconnect.de)
07:14.44*** join/#htc-linux kiozen (n=oeichler@p54922BFD.dip0.t-ipconnect.de)
07:39.43*** join/#htc-linux snua12 (n=admin@113-70-207-85.strcechy.adsl-llu.static.bluetone.cz)
08:33.29*** join/#htc-linux DTMonterrey (n=evandro@cornelius.estig.ipb.pt)
09:17.59*** join/#htc-linux skodde (n=skodde@unaffiliated/skodde)
10:10.25*** join/#htc-linux BabelO (n=Miranda@81.80.236.75)
10:13.49BabelOhi
10:14.13*** join/#htc-linux _law_ (n=law@mail.stiftadmont.at)
10:30.05BabelOcr2 : for Qt / CE you have to wait a little ;) http://labs.trolltech.com/blogs/2007/06/
10:30.51BabelOrohhh http://wiki.openmoko.org/wiki/Qtopia_on_Neo_1973
10:33.04BabelOand this one, not same look but for gnome lover http://pokylinux.org/#about
11:05.52*** join/#htc-linux rob_w (n=bob@X07b9.x.pppool.de)
11:08.24cr2BabelO: where is htc_lib.dll ?
11:10.12BabelOi think you already downloaded it from my ftp server
11:13.53BabelOcr2: : it is in Modules directory, so loaded in memory, i m looking at objdump from cegcc now
11:32.53cr2BabelO: i'm downloading the qtopia4.3.0 preview now
11:33.11cr2hmm. can you post the link to htc_dll again?
11:34.11sadenessguys, any progress with htc prophet?
11:35.57BabelOcr2 : i check preview yesturday night, everything is here :) very happy now, we just need a multiplexer plug for tty GPRS and tty modem and a phonevendors plugin for TI based modem, few hour of work i think
11:36.15cr2BabelO: that's great.
11:36.22cr2sadeness: it's omap850 ?
11:36.39sadenesscr2, i guess yes.
11:36.54cr2i think we'll have some progress soon.
11:37.08cr2it seems BabelO found the core problem with i2c.
11:37.36BabelOcr2: look here http://linuxbox2.free.fr/Htc_Lib.dll
11:41.50*** join/#htc-linux rob__w (n=bob@X0fbb.x.pppool.de)
11:42.21BabelOcr2 : i think i go back to home very soon today, to test  preview release ;)
11:45.56BabelOcr2 : do you understand what i mean about i2c register last night ? i don't know how to explain it
11:47.35*** join/#htc-linux AC_Mast88 (i=s@gateway/tor/x-4ead732bf812d7a5)
11:52.25*** join/#htc-linux rob_w (n=bob@X13e6.x.pppool.de)
12:18.34dcordessomebody want prophet image booting kernel?
12:19.18sadenessme me!
12:19.21sadenesspick me!
12:19.22sadeness:D
12:19.42*** join/#htc-linux rob__w (n=bob@X1cf7.x.pppool.de)
12:24.01*** join/#htc-linux youshe (n=youshe@jaalon.org)
12:35.41*** join/#htc-linux skodde (n=skodde@unaffiliated/skodde)
12:46.52*** join/#htc-linux kiozen (n=oeichler@p54922BFD.dip0.t-ipconnect.de)
12:51.27*** join/#htc-linux _law_ (n=law@mail.stiftadmont.at)
14:10.16*** join/#htc-linux rob_w (n=bob@X1cf7.x.pppool.de)
14:44.21*** join/#htc-linux goxboxlive (n=goxboxli@139.80-202-160.nextgentel.com)
15:15.40*** join/#htc-linux Othello (i=nobody@gateway/tor/x-3899b901e59f76f0)
15:29.20*** join/#htc-linux dcordes_ (n=tsingtao@f049006007.adsl.alicedsl.de)
15:42.14*** join/#htc-linux TimRiker (n=timr@216.49.181.128)
16:07.36*** join/#htc-linux pleemans (n=peter@d51A5E76A.access.telenet.be)
16:18.00*** join/#htc-linux the_sys0p (i=nroberts@123.57.211.201)
16:27.01*** join/#htc-linux CrAsH_x64 (n=crash@84.78.99.40)
16:44.31goxboxlivewell, it's configured without bluetooth and dbus. At least i will have most of it compiled, and then just reconfigure half of it
16:50.24*** part/#htc-linux DTMonterrey (n=evandro@cornelius.estig.ipb.pt)
16:57.43BabelOgoxboxlive : ok :( how many time it take to compile ??? 3 hours ?
16:58.14goxboxliveyes as far as i remember
16:58.33BabelOgood, so i go home and try myself ;)
16:58.52goxboxlivegood
16:58.59BabelObbl
17:25.51*** join/#htc-linux Babel (n=Fabrice@lun34-2-82-238-28-28.fbx.proxad.net)
17:37.23*** join/#htc-linux CrAsH_x64 (n=crash@84.78.99.40) [NETSPLIT VICTIM]
17:37.23*** join/#htc-linux Kevin2 (n=Kevin@207-237-65-88.c3-0.avec-ubr12.nyr-avec.ny.cable.rcn.com) [NETSPLIT VICTIM]
17:41.20goxboxliveand it failes compiling too
17:59.57Babelgoxboxlive: i never rememeber for depot path ?
18:04.10goxboxliveexport QTOPIA_DEPTH_PATH=/PATH_TO_QTOPIA
18:04.25goxboxlives/DEPTH/DEPOTH
18:04.41Babelgoxboxlive: i m on it ;)
18:05.21goxboxliveexport QTOPIA_DEPOT_PATH=~/projects/opie
18:08.08*** join/#htc-linux snua12 (n=admin@113-70-207-85.strcechy.adsl-llu.static.bluetone.cz)
18:18.10*** join/#htc-linux kiozen (n=oeichler@rgnb-4db08057.pool.einsundeins.de)
18:21.09goxboxliveBabel: how far are you?
18:21.22goxboxliveHave you manage to configure with dbus?
18:31.23goxboxlivecustom.cpp fails , some power and brightness control stuff
18:38.06*** join/#htc-linux dcordes (n=tsingtao@f049006007.adsl.alicedsl.de)
18:38.36*** join/#htc-linux SmallR2004 (n=SmallR20@79-74-87-33.dynamic.dsl.as9105.com)
18:39.02Babelgoxboxlive: yes ;)
18:39.32Babeli think i found why it fail, i m trying again now
18:40.04Babelgoxboxlive: in custom.cpp you can use same as fic device, it is very simple :)
18:56.18Babelgoxboxlive: dbus : OK :) now it is bluetooth :)
19:11.01goxboxlivehmm, i am trying to use the fic device and changing everything to htcphone :-)
19:12.17Babelgoxboxlive: now it look for dbus.pc in lib/pkgconfig
19:13.03goxboxliveBabel: and not in lib/dbus ?
19:13.44Babelgoxboxlive: yes too, but they use another file to know dbus version create in your dbuspath
19:14.10Babel<dbuspath>/lib/pkgconfig/dbus-1.pc
19:14.20goxboxlivek
19:15.00Babelwith something like that http://pastebin.ca/702261
19:15.30Babelthen just try if it detect ok with<qtopia src>config.tests/dbus_versions.test script ;)
19:17.36Babelgoxboxlive: and for bluetooth it look for bluetooth directory with include in mkspecs/qws
19:17.45goxboxliveok
19:24.59goxboxliveBabel: i dont have dbus.pc
19:25.04goxboxliveI have never used it
19:25.30Babelgoxboxlive: i know, it is new detection mechanism
19:25.50goxboxliveWhere did you get it? OE?
19:26.18Babelgoxboxlive: now i look at the detection script and create one from an other ;)
19:26.29Babeli pastebin it few lines ago
19:28.05goxboxliveahh i get it
19:28.18goxboxlivethats why i have had problmes with tslib.
19:28.28goxboxliveit's hardcoded to /usr/local/arm :-)
20:21.48goxboxliveBabel: at last dbus is ok. Have you sorted out ssl?
20:21.55goxboxliveI have the same problme with thattoo
20:22.14Babelno slls for the moment ;) i  want to make first test before bed ;)
20:22.51goxboxliveok, seems like the openssl folder is not commited. It where commited in the 4.2.x . I aks ljp
20:24.45goxboxliveBabel: do we use multplexers?
20:24.55Babelgoxboxlive: on ba yes because gprs data are on tts8 and modem is on ttyS0
20:25.52goxboxliveSO actually i dont need muliplexers for universal and magician? But does it screw up the system if i have it?
20:39.20Babelgoxboxlive: i don't think, it is just variable settings i f i remember well
20:40.20goxboxliveok, i started to build it anyway. Its all an copy of GTA01, just changed the name (gta01->htcphone) and the tty ports
21:03.44*** join/#htc-linux cr2 (n=konversa@crpl6.physik.uni-wuppertal.de)
21:18.16*** join/#htc-linux bd2_ (n=cbou@89.113.85.104)
21:25.18*** join/#htc-linux DTMonterrey (n=evandro@bl6-221-16.dsl.telepac.pt)
21:37.40*** join/#htc-linux dcordes (n=tsingtao@f049172007.adsl.alicedsl.de)
21:42.08cr2Babel: still here ?
21:42.58BabelCryes
21:43.10Babeloups, no battery one keyboard
21:43.14BabelCr2 yes
21:43.57cr2what was the problem with the omap850 i2c ?
21:44.35cr2there is no unaligned access there, it's just a style ida uses for picking the addresses
21:44.36Babelcr2: if i start counting i2c bus for omap-i2c.c with register each +2
21:45.12Babelthen disassembled code get a value between two register ...
21:45.31Babelmaybe i miss something else
21:47.34Babelcr2: are you agree that  0xfffe1084 access setup i2c pins ?, and if i  boot over haret , this setup is lost ?
21:50.07cr2what is 1084 ?
21:51.00cr20xfffe1084OMAP730_IO_CONF5
21:52.00cr23800-3840, shifted 3800-3820
21:52.39cr2do you see something outside of this range ?
21:53.35Babelcr2: i m looking again, because i see a register 3811 if i shift all bus and disassmbled code access to 3812
21:53.40Babelmaybe a bas calcul ;)
21:54.07cr21084 is provided as a parameter to some subroutines.
21:54.22cr2i don't see 3811 in your subroutines.
21:54.52cr2looks like a very clean and simple asm anyway.
21:55.52Babelok, i ve to look better when i count register shift... maybe i forgot to switch between 0x3808 to 0x380a ...
21:56.17cr2?
21:56.32cr2these addresses are all hardcoded
21:56.38cr2i don't see any offsets.
21:56.58cr2OV     R0, #0xA
21:56.58cr2BL      Sleep
21:56.58cr2LDR     R5, =0xB80B3802
21:56.59Babelcr2: yes 0x3808 + 0x02 = 0x380a and not 0x3811 like i do i think
21:57.07cr2LDRH    R2, [R5]
21:57.21cr2i wish all the wince code looked the same.
21:57.57Babelno, i  just want to mean i have made a bad calcul whan adding  haxadecimal values
21:58.30cr2i'm only worried by such code
21:58.32cr2if (cpu_is_omap16xx() || cpu_is_omap24xx()) {
21:58.51cr2but i guess you can just extend it to your cpu.
21:59.00cr2to include yours.
21:59.27Babelcr2: yes i was thinking to do like psokolovsky with platform parameters
21:59.48Babela . shift and .cpu_type
22:00.30cr2hm. try the same as omap MMC does
22:00.36cr2then you'll know if it works.
22:01.54*** join/#htc-linux huhlig (n=UhligH@68-189-77-13.dhcp.wtvl.ca.charter.com)
22:02.00Babelyes i can look
22:02.12huhlig/join #eclipse
22:02.24huhligwhoops
22:02.40*** join/#htc-linux the_sys0p (i=nroberts@123.57.209.221)
22:03.23cr2this is ugly
22:03.26cr2if (cpu_is_omap15xx())
22:03.26cr2dev->rev1 = omap_i2c_read_reg(dev, OMAP_I2C_REV_REG) < 0x20;
22:03.49Babelcr2: yes and it seem omap850 do the same
22:07.02Babelcr2: i have xpanel to a comport under wince :( is that normal ?
22:08.41cr2don't know.
22:17.49ImCoKeMaNdid that second memory dump help out much?
22:31.10ImCoKeMaNguess cr2 left
23:04.04*** part/#htc-linux DTMonterrey (n=evandro@bl6-221-16.dsl.telepac.pt)
23:43.12Babelgood night

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