IRC log for #htc-linux on 20070519

00:00.31cr2hm, not sharp. hitachi
00:00.36cr2G1000
00:03.53Kevin2I think I found it.
00:05.39Kevin2cr2: http://pastebin.ca/496000
00:07.55cr2hehe. found it.
00:07.58cr2http://www.phonenews.com/phones/sprint/hitachi/g1000/G1000SDIO.CAB
00:08.31cr2Kevin2: what does the table say ?
00:09.00Kevin2cr2: table?
00:09.17cr2ATIWxxxx
00:09.25cr2+0x2000
00:09.30cr2that makes sense.
00:10.25Kevin2These are writes to physical 10202000
00:10.41Kevin2So it is +202000
00:12.02cr2202000 ?
00:12.53cr2ok.
00:12.57Kevin2Right.  These writes aren't to the first 1Meg ATI range.  They're to the third meg of the range.
00:13.56cr20924b058....
00:14.05cr2this is the call address ?
00:14.25cr209b9f180: e593a200 ldr    sl, [r3, #512] # r10=02000000 r3=48010200
00:14.36cr20924b058: e19330b1 ldrh   r3, [r3, r1]   # r3=00000300 r3=4c202044
00:14.45Kevin2Yes, that is the address of the instruction that made the access.  I was just thinking the same thing - we could disassemble that area of ram.
00:14.58cr2lsmod first.
00:15.14cr2and look where is the ACE_DDI.dll mapped.
00:15.53cr2imvho it should be ace_ddi
00:15.57cr2but we will see.
00:16.08Kevin21076 fl=00000000 mid=83760da0 pid=00000000 gusg= 11 pusg=00004018 base=01B40000 size=
00:16.08Kevin200104000 hmod=83760DA0 mod=ace_ddi.dll exe=
00:16.48cr201b4* -> 09b9*
00:16.55cr2looks reasonable.
00:17.25cr2it's a big driver, so the 5*64K offset may be ok.
00:19.18cr2yeah, it's 1MB dll.
00:19.26Kevin2ps: pid=837aa78e ppid=0 pmem=08000000 tcnt=109 perm=00000008 procname=device.exe
00:20.31cr2you can make the raw (ROM?) dump around the call address
00:20.33Kevin2The 09b* should be in "device.exe" memory area.
00:21.01Kevin2I don't understand.
00:21.19cr2yes, but the 32M offsets separate the "virtual" slots.
00:21.38cr2the "zero" slot is for the running process.
00:21.48cr20x01b4* is a zero slot address.
00:22.23cr2and the "process 4" is device.exe
00:22.50cr2it has it 32MB virtual space at +4*32M
00:25.09Kevin2What were you saying about raw/ROM stuff?
00:26.28cr2where is the ace_ddi.dll in ROM ?
00:27.03Kevin2How do I find that out?
00:27.11cr2i can look at my binary, but i'm not sure we have the same dlls.
00:27.39cr2hmod=83760DA0
00:27.51cr2which is the physical address for it ?
00:28.22cr2it's a virtual address for MODULE * structure
00:28.44Kevin2HaRET(49)# show v2p(0x83760DA0)
00:28.44Kevin20x33d60da0
00:29.18cr2ok, so it's in RAM. obviously ;)
00:31.22cr2you can look by dumping this structure where is this dll located.
00:31.31cr2the testwm5 stuff.
00:33.28cr2AhiInit(0x11);
00:33.38Kevin2I'm not sure what you're looking for.  The program device.exe is in ram from 0x08000000 - 0x09999999.  Doesn't this mean we know what process it is?
00:34.54cr2these are virtual addresses.
00:35.38cr2you mean it will be 0x09b4*, whereever it is mapped from ?
00:35.54cr2AhiDevEnum(...)
00:36.16cr2AhiDevOpen(ptr,
00:36.41cr2ptr,"SD",0);
00:36.48Kevin2There is a PID feature on ARM that remaps addresses.  The wi stuff only shows the addresses after they've been remapped.  So, the 0x09b4* address is the MVA address (modified virtual address).
00:37.09cr2AhiDevOpen(ptr,ptr,"SD",0);
00:37.19cr2yes, PID is the 32MB switch.
00:37.37Kevin2Right.  That only applies to addresses <= 0x01ffffff
00:38.41cr2i'm a bit slow now, it's around 3:00 here ;)
00:39.23cr2ret = AhiDevOpen(&ctx, asic, "haret", 0);
00:39.34cr2hm. looks  good.
00:40.02Kevin2:)
00:41.50cr2and then SrmGetProperty...
00:45.53cr22010, 2040, 2044 . do you see them ?
00:46.06cr2yes :)
00:46.22Kevin2cr2: I'm a bit lost.  I don't know what SrmGetProperty is..
00:46.35cr2ok, so the SD on older ATIW32xx is the same. or very similar.
00:46.54cr2it's some function deep in the ACE_DDI.dll
00:47.00cr2it does not matter.
00:47.15cr22014
00:47.30cr2200c and 2000
00:48.24cr2r3=r0+0x37c
00:48.48cr2ldr r3, [r3,0x20]
00:49.14cr2str r2, [r3,r1]
00:49.24cr2r1 takes the values above.
00:49.26Kevin2I see 4c202000 - 4c202060
00:50.03cr2and i see the r1 values explicitly hardcoded in the driver.
00:50.32Kevin24c202060 seems to be the register where we actually transfer data.
00:50.34cr2r0 is probably 'asic' variable, or something like that.
00:50.39cr2or ctx.
00:51.00cr2it's located in RAM , and can be dumped in order to check.
00:51.10cr2it#s visible in ATIDBG command.
00:53.00cr2+0x2000 is called SD_COMMAND
00:54.26cr2hm. with 0x3c offset.
00:54.51cr2demo version exited.
00:55.01cr2ok, but at least i know where to look now.
00:55.04cr2good night :)
00:55.29Kevin2Good night.
01:00.31*** join/#htc-linux TBBle (n=tbble@2001:388:f000:0:0:0:0:2d)
01:06.08Kevin2cr2: I think you're right.  I modified lsmod to take a pid number and I get:
01:06.10Kevin21076 fl=00000000 mid=83760da0 pid=837aa78e gusg= 11 pusg=00000006 base=01B40000 size=00104000 hmod=83760DA0 mod=ace_ddi.dll exe=
01:07.53Kevin2This was for "device.exe" (pid 0x837aa78e).  It indicates ace_ddi.dll should be between 0x01b40000 - 0x1c44000.  This (in MVA) is 0x09b40000 - 0x9c44000.  Which is right in the instruction address range.
01:13.35Kevin2Wait no - most SD access are in 0x0924* range.  This equates to:
01:13.43Kevin21076 fl=00000000 mid=8319997c pid=837aa78e gusg=  1 pusg=00000001 base=01240000 size=00014000 hmod=8319997C mod=sdhc_sc2410.dll exe=
02:14.51Kevin2cr2: Do a "cvs up" followed by:
02:14.57Kevin2HaRET(21)# addr2mod 0x09b9f180
02:14.57Kevin2Address 09b9f180 in process: device.exe (08000000 - 0a000000)
02:14.57Kevin2<PROTECTED>
02:14.57Kevin2HaRET(22)# addr2mod 0x0924f05c
02:14.57Kevin2Address 0924f05c in process: device.exe (08000000 - 0a000000)
02:14.57Kevin2<PROTECTED>
03:18.35*** join/#htc-linux Whacko (n=Whacko@s5593e8a2.adsl.wanadoo.nl) [NETSPLIT VICTIM]
03:19.36*** join/#htc-linux drno (n=drno@eki.student.utwente.nl) [NETSPLIT VICTIM]
03:20.03*** join/#htc-linux hlbot (n=adm@iclem.net) [NETSPLIT VICTIM]
03:20.04*** join/#htc-linux KimuSan^ (n=kimusan@ip205.tankegang.dk) [NETSPLIT VICTIM]
03:41.03*** join/#htc-linux apt (i=ibot@pdpc/supporter/active/TimRiker/bot/apt)
03:41.03*** topic/#htc-linux is HTC Linux Channel: Find logs at http://apt.rikers.org/%23htc-linux/ | please check http://handhelds.org/moin/moin.cgi/HTC_2dPhones | http://wiki.xda-developers.com/index.php?pagename=Xanadux | <cr2> let's define a common setup.
04:50.02*** join/#htc-linux scorpio16v (n=scorpio1@ACB39B4B.ipt.aol.com)
05:34.28*** join/#htc-linux goxboxlive (n=goxboxli@176.84-48-210.nextgentel.com)
07:37.10*** join/#htc-linux RoEn_PC (n=roen@p54A65E6B.dip.t-dialin.net)
07:42.24*** join/#htc-linux rmoravcik (n=rmoravci@adsl-d181.84-47-56.t-com.sk)
07:57.53*** part/#htc-linux scorpio16v (n=scorpio1@ACB39B4B.ipt.aol.com)
08:06.24*** join/#htc-linux pleemans (n=peter@d51A5E76A.access.telenet.be)
08:11.27*** join/#htc-linux the_sys0p (n=the_sys0@cpe-66-75-196-173.bak.res.rr.com)
08:16.58*** join/#htc-linux ashkan (n=ashkan@unaffiliated/askywalker/x-0000002)
08:30.09*** join/#htc-linux freshr (n=freshr@89.113.75.13)
08:46.34*** join/#htc-linux lilliput (n=Touriste@82-47-146-102.cable.ubr11.brad.blueyonder.co.uk)
08:58.37*** join/#htc-linux scorpio16v (n=scorpio1@ACB39B4B.ipt.aol.com)
09:02.53*** join/#htc-linux psokolovsky (n=psokolov@82.193.98.15)
09:10.18*** join/#htc-linux tsdogs (n=twostupi@84.18.144.39)
09:13.09tsdogsmorning all
09:27.13goxboxlivehi tsdogs
09:27.19goxboxlivewhat is this: <5>ds2760-battery ds2760-battery.0: not enough power to charge
09:27.37goxboxliveCould this be the reason qtopia wouldnt launch?
09:27.38tsdogsit means that the battery is not charging...
09:27.52tsdogsI don't think so
09:27.58goxboxliveI tried oyt your opie2 yesterday and it launched.
09:28.21tsdogsYou get this when youdiscconect the cable
09:28.33goxboxliveI know something with my battery is screwed up. Because the battery indicator doesnt work with WInCE either
09:28.37tsdogsor if there is not enough power to charge.
09:28.45goxboxliveeven though the battery is charged.
09:28.59tsdogshave you tryed changing the USB cable?
09:29.30goxboxliveno actually i havent. I dont know where i have the original usb cable.
09:30.12tsdogsIt might be just a guess. but I had this with a thin usb cable too.
09:30.15goxboxliveNow i have rebuilded qtopia-4.2.0 with a new gcc compiler. And now even that version wouldnt launch
09:30.30tsdogsIt's some config.
09:30.33goxboxliveok, my USB cable is thin :-) It's a cheap short one
09:30.37goxboxliveyes same config
09:30.52tsdogsHave you tryed removing the root/Settings ?
09:31.17goxboxliveAnd to launch your Opie2 image used my own kernel sImage and modules and also startup script.
09:31.40goxboxliveyes, the image i am trying to launch now is a new one, i builded it today
09:31.52tsdogsok
09:32.30tsdogsyou tryed my opieII also right? it does not start either ?
09:33.19tsdogshttp://84.18.144.44/tsdogs/opieII/opieII-tsdogs-20070514.tar.bz2 ??
09:33.46goxboxlivetsdogs: Yes your starts
09:34.02goxboxliveI think this might be something with either helox, alsa or gnokii
09:34.04tsdogsok, so it must be something in the new image I guess.
09:34.13tsdogsyou built helix ?
09:35.47tsdogsthen I think it's helix
09:35.48goxboxliveyes
09:35.56goxboxlivemaybe
09:36.06tsdogsgnokii does initilize right?
09:36.10goxboxliveBut BabelO have had it running with helix
09:36.18tsdogsyou still using the old version of BabelO ?
09:36.21goxboxliveI think it does
09:36.25goxboxlivei cant see
09:36.37tsdogsgnokii I mean
09:36.46tsdogsdoes it start at startup ?
09:36.58tsdogsstill talking about gnokii...
09:38.05tsdogsgoxboxlive: as far as I remember he (babelO) had some CPU issue with mediaserver
09:43.31goxboxliveok
09:45.20goxboxliveI'm not sure if gnokii is starting. It doesnt spam the output as i did before.
09:45.20goxboxlivehmm strange. Well i have to go now. bbl
09:46.04goxboxliveroot@htcuniversal:/opt/Qtopia/bin$ ldd qpe
09:46.05goxboxlive<PROTECTED>
09:46.23goxboxliveso it finds gnokii lib
09:46.49tsdogsok
09:54.45*** join/#htc-linux pH5 (n=ph5@p5485CAB3.dip.t-dialin.net)
10:02.59goxboxliveWell it starts gnokii
10:03.38goxboxliveand it hangs here: Unable to open '/usr/share/zoneinfo/America/New_York'
10:03.38goxboxliveQTimeZone::data Can't create a valid data object for 'America/New_York'
10:05.50goxboxliveI tried to just start a single application and it hangs with this. It runs it in loops:
10:05.53goxboxlivegettimeofday({864040167, 397569}, NULL) = 0
10:05.53goxboxliveselect(9, [8], [], NULL, {0, 0})        = 0 (Timeout)
10:06.28goxboxliveBecause i can see that gnokii is running as it shall.
10:07.04tsdogsok
10:07.29tsdogswe need some more Logging then
10:07.39goxboxlivehttp://pastebin.no/1656
10:08.27goxboxliveit's all the same the whole way. The thing i have edited since last time is custom.cpp and htcphonehardware.cpp. I am using the latest ones at sf.net (xanadux)
10:08.27tsdogscopy the Log.conf from /opt/Qtopia/etc/default/Trolltech into Settings/Trolltech
10:09.31tsdogsI believe BabelO removed the gnokii part from there...
10:09.37tsdogscustom.cpp
10:09.38tsdogsbut ok
10:10.04tsdogschange a few settings in the log, and let's see where it hangs...
10:10.32tsdogsYou have BT and Irda built in right ?
10:11.09goxboxliveyes
10:11.35goxboxliveand then copy it back to /opt/Qtopia/etc/default/Trolltech ?
10:11.44tsdogsok then enable BT logging
10:12.00tsdogsno simply put it in local conf /home/root/Settings/Trolltech
10:12.10tsdogsit will override default
10:12.20goxboxliveok
10:12.31tsdogsDBUS ...
10:12.47tsdogsHardware / Infrared
10:12.53goxboxliveok, i'll enable DBUS
10:13.14tsdogsand finnally QtopiaServer
10:13.18tsdogsthat's all for now.
10:13.31tsdogsthen start qpe and let's see where it hangs
10:17.56goxboxlivehttp://pastebin.no/1657 seems like it's looping true this
10:19.49goxboxlivegnokii is running no doubt about that.
10:20.55goxboxlivebut anyway, i have to get going now. I'm allready late
10:21.31tsdogsok, cu, I thinkg there is something strage here...
10:22.15goxboxliveAnyway, this is the last logging after i stoped qpe:  http://pastebin.no/1658
10:22.22goxboxlivebbl
10:24.02tsdogsok, you changed the Storage right?
10:26.04goxboxliveyes, i changed it in htcphone before building
10:26.06goxboxlivebbl
10:55.40*** join/#htc-linux asylumed (n=insanity@dsl-245-191-214.telkomadsl.co.za)
11:04.26*** part/#htc-linux asylumed (n=insanity@dsl-245-191-214.telkomadsl.co.za)
12:04.54*** join/#htc-linux SmallR2002 (n=SmallR20@88-107-107-83.dynamic.dsl.as9105.com)
12:18.24*** join/#htc-linux TripleDE1 (n=sergio@151.pool85-50-250.dynamic.orange.es)
12:24.14*** join/#htc-linux BabelO (n=Fabrice@lun34-2-82-238-28-28.fbx.proxad.net)
12:32.54*** join/#htc-linux TripleDES (n=sergio@10.pool85-50-145.dynamic.orange.es)
12:36.49*** join/#htc-linux WizMaui (n=WizMaui@62.112.90.250)
12:54.27tsdogsBabelO: you here?
12:54.44BabelOhi tsdogs ;)
12:54.51tsdogsHi BabelO
12:55.02tsdogsI sent you a patch for htckbdhandler...
12:55.17tsdogskernelkeymap does not work :(
12:55.33tsdogsrephrease: I have not been able to make it work till now.
12:55.52BabelOi don"t understan how it is working :(
12:56.08tsdogsso I decided to have at least htckbdhandler see the passed argument in the environment
12:56.40tsdogsdid you know, that qtopia is not passing the argument after the :
12:56.53tsdogsonly to internal handlers.
12:57.44tsdogsyou'll probably get it in the spam folder (still have to find out why gmail considers me spam :/)
12:58.29BabelOyes, spam folder at gmail
12:58.42tsdogs:)
13:00.11BabelOgot it
13:00.15tsdogsok
13:00.36tsdogshave a look, and testit on BA, so then  we at least have something working...
13:00.44BabelOi spent night until 4:00am to have all my test running in a single exe :(
13:01.04*** join/#htc-linux lilliput (n=Touriste@82-47-146-102.cable.ubr11.brad.blueyonder.co.uk)
13:01.06tsdogsgosh :(
13:01.39BabelOdoing a svg image for qtopia is really strange too ;)
13:02.07tsdogsdidn't the one you made work?
13:03.33BabelOthey duplicate picture with a step and then move a Qrect over
13:04.41tsdogsI think this is pretty normal
13:04.46*** join/#htc-linux TripleDE1 (n=sergio@11.pool85-50-254.dynamic.orange.es)
13:05.22BabelOdid you have a switch event to detect headphone on universal ?
13:05.49tsdogshmm, don't think so, let me check.
13:06.38BabelOok, keyboard compiled
13:07.16tsdogsNo I don't have a SW.
13:07.54BabelOmaybe it is usefull to have switch for this king of entry
13:08.25BabelOso we can get noticed about event and don't poll for it
13:08.54tsdogswhy are you polling?
13:09.07tsdogsshould not the mixer handle it
13:09.35tsdogsI have bluetooth to, so I could have a BT headphone too
13:10.17BabelOtsdogs: ok,don't know if mixer handle it, we can drive with mixer sure
13:11.04tsdogsUni, does not have a mature mixer right now. also sound support ain't the best
13:12.13BabelOok trying plugin ;)
13:13.29tsdogs:) I think I have an event for sound plug in, I just tryed and snd_htcuniversal_audio_set_headphone_detect:1 jumped out
13:15.27BabelOok, but how can it notice me ?
13:15.57BabelOtouchscreen is working for you ?
13:16.15tsdogsyes.
13:16.46tsdogsyou putted the string htckbdhandler:/dev/input/eventX right?
13:16.59tsdogsotherwise it defaults to event1 (?)
13:17.21tsdogswe should also find out a way to detect through the sysfs
13:17.27BabelOtsdogs: need to do the same for button plugin
13:18.00tsdogsbuttons are a bit more coplicated as you have 2 events for it
13:18.26tsdogsI only need 1 I think
13:19.08BabelOok, but maybe can load plugin two times with different param
13:19.46tsdogsIt should work...
13:20.15tsdogsbut we should know what the mapping is...
13:20.22tsdogsfor the specified device.
13:20.39*** part/#htc-linux scorpio16v (n=scorpio1@ACB39B4B.ipt.aol.com)
13:20.56tsdogsso the entry would look like something htcbuthandler:/dev/input/event2:GPIO
13:20.58BabelOwhere sensor is mapped on universal ?
13:21.12tsdogsfor headphone you mean?
13:21.24BabelOi think param are separated with coma
13:21.39BabelOno for keyboard backlight
13:21.49tsdogsok wait
13:22.32BabelOgood it wokrs ;)
13:22.43tsdogskeyboard right?
13:23.06BabelOqwerty but wokrs ;)
13:23.37tsdogs<PROTECTED>
13:23.59tsdogsI think we could put the mapping in some file too.
13:24.19BabelOthx, i ll comit plugin
13:24.24tsdogsok
13:24.42BabelOso sensor is not a SW event ?
13:25.23tsdogsI have the hinge sensor is that's what you mean.
13:25.30tsdogs?
13:25.40BabelObecause when a key is pressed we can switch backlight with a timer, but on uni you have a good sensor gadget
13:26.21tsdogsHo, they removed the handling, it was causing strange things with touchscreen (if I remember right)
13:27.13tsdogsit was in event1
13:28.46tsdogsactivation is on /sys/class/leds/htcuniversal:kbdbac/brightness
13:29.12*** join/#htc-linux pleemans (n=peter@d51A5E76A.access.telenet.be)
13:30.51tsdogs<PROTECTED>
13:33.15tsdogsBabelO: I gg now, cu tonight.
13:34.49BabelOok
13:39.37*** join/#htc-linux TripleDES (n=sergio@224.pool85-50-237.dynamic.orange.es)
13:45.45*** join/#htc-linux rob_w (n=bob@p85.212.39.113.tisdip.tiscali.de)
13:58.57*** join/#htc-linux Ro_En_PC (n=roen@p54a66bd1.dip.t-dialin.net)
14:01.43*** join/#htc-linux goxboxlive (n=goxboxli@176.84-48-210.nextgentel.com)
14:16.56goxboxlivehi
14:17.21BabelOhi
14:18.18goxboxliveBabelO: Does this look familar to you? http://pastebin.no/1658 Do you have any clue whats going on?
14:19.19goxboxliveThe Sigterm at the end is because i ended qpe my self. It is just running in loops with like shown
14:20.55BabelOi don t know, but good news, i ll remove gnokii from qtopia link binary
14:21.06BabelOit is an external application
14:24.00goxboxliveohh good
14:24.55goxboxliveBut i know it's not gnokii wich causes this, because it is running perfectly in the background. You can see that at the start of my pastebin.
14:25.26goxboxliveI am using the latest htcphonehardware.cpp at sf.net and tsdogs battery patch.
14:30.09BabelOdid you try to remove section by section in defaultbuttons.conf
14:32.08goxboxliveBabelO no, i havent tried that. Hold on i try
14:32.38goxboxliveI didnt know that was an option
14:35.37*** join/#htc-linux scorpio16v (n=scorpio1@ACB39B4B.ipt.aol.com)
14:39.46*** join/#htc-linux TripleDE1 (n=sergio@152.pool85-50-138.dynamic.orange.es)
14:43.26*** join/#htc-linux AlGe (n=alge@chello080109231226.4.uni-klu.teleweb.at)
14:49.14goxboxlivedidnt help that either. I'll try to revert a version of htcphonehardware.cpp
14:52.14*** join/#htc-linux TripleDES (n=sergio@179.pool85-50-155.dynamic.orange.es)
14:57.39*** join/#htc-linux psokolovsky (n=psokolov@82.193.98.15)
15:00.46goxboxliveBabelO: When i do some changes to custom.cpp, shouldnt something be rebuildt?
15:01.16goxboxliveIt just ran all over and said nothingto be done when i have revrted custom.cpp to previous version
15:01.17BabelOyes, when you do make, it rebuild qpe
15:01.45goxboxlivehmm
15:05.06*** join/#htc-linux lilliput (n=Touriste@82-47-146-102.cable.ubr11.brad.blueyonder.co.uk)
15:20.50AlGeHi all,
15:20.50AlGeafter some time I want to give my blueangel another chance to switch to a better OS :-)
15:20.50AlGeHas anyone a pointer to a working htcblueangel defconfig file for the latest hh kernel 2.6.21-hh2?
15:20.50AlGeI tried a little bit, of course with asic3_mmc included, but I get stuck at the kernel not finding mmcblk0p2 ...
15:25.14BabelOAlGe: for kernel do a make htcblueangel_defconfig
15:25.51BabelOand for haret command line it is something like root=/dev/mmcblk0p1 or root=/dev/mmc/blk0/p1
15:28.48AlGeThanks, all try this.
15:28.48AlGeAnother question: what are the mmc partitions numbered, strting with 0 or 1?
15:29.53BabelOit is partition number like you see under fdisk
15:31.00*** join/#htc-linux rob_w (n=bob@p85.212.57.246.tisdip.tiscali.de)
15:31.20*** join/#htc-linux bd2 (n=cbou@89.113.85.104)
15:38.19*** join/#htc-linux TripleDE1 (n=sergio@232.pool85-50-204.dynamic.orange.es)
16:21.21FoxdieBabelO: sorry for dissapearing yesterday, I had family troubles
16:21.34BabelOno problem ;)
16:25.07Foxdiehow are you?
16:25.43FoxdieI am still away today by the way, I apologise, my partner is moving into my home and we've got to tidy the place up, you know how messy geeks live ;)
16:25.46BabelOfine, going to supermarket soon
16:27.59*** join/#htc-linux psokolovsky (n=psokolov@82.193.98.15)
16:58.40Kevin2bd2: Are you around?
17:05.56cr2hi Kevin2. i've finally reached my computer.
17:06.10Kevin2Hi cr2.
17:07.00*** join/#htc-linux TripleDES (n=sergio@22.pool85-50-202.dynamic.orange.es)
17:13.56AlGenow with a defconfig generated by make htcblueangel_defconfig I still get kernel panic saying "cannot open root dev "mmcblk0p2"
17:13.56AlGethe last line before the panic is "asic3_mmc: ASIC3 MMC/SD Driver, controller at 0xe000000".
17:13.56AlGeshouldn't then a line follow which detects the partitions on mmcblk0?
17:15.08cr2AlGe: yes. do you have mmc_blk driver compiled in ?
17:15.37cr2CONFIG_MMC_BLOCK=y
17:15.41cr2hm.
17:16.01AlGeI ll have a look, wait ...
17:16.02cr2filesystems ?
17:16.22cr2EXT2 yes EXT3 yes.
17:16.28Kevin2cr2: Did you see my note last night about sd?  It looks like most of the work is done in sdhc_sc2410.dll
17:16.28cr2it should work ;)
17:16.43cr2Kevin2: yes, i'll look at sdhc_sc2410.dll
17:17.26cr2i knew that this driver supports both SD controllers, but didn't know that raw register access is also ther.e
17:18.08cr2AlGe: try to add 'ro' option to the CMDLINE, and look if it brings your further.
17:19.03BabelOcr2: maybe it is also rootdelay ?
17:19.11AlGeCONFIG_MMC_BLOCK=y, CONFIG_EXT2_FS=y and CONFIG_EXT3_FS=y are there
17:19.55cr2AlGe: do you have rootdelay= in the CMDLINE ?
17:20.18cr2BabelO: we should edit the old BA wiki at hh.org
17:20.38AlGeno, no rootdelay
17:20.48cr2add it. that's the problem.
17:21.20BabelOAlGe: my command line look like this root=/dev/mmcblk0p2 console=tty0 mem=128M rootdelay=5
17:21.22AlGeok, I'm just wading thru the wm reinstall ...
17:25.22BabelOcr2: yes maybe having same look as universal
17:29.30bd2Kevin2, yup
17:29.53Kevin2Hi bd2.  I had some questions on the adc stuff.
17:30.25Kevin2In ad7877.c don't we need to reinit the completion structure every sense?
17:31.47bd2Kevin2, well.. not sure, need to look into completion code, or find some example. It does not work?
17:32.02Kevin2I haven't tried it yet.  I was reviewing the code.
17:33.25Kevin2A couple other questions I had -- the h4000 and the custom pins thing looks really odd.  Wouldn't it be simpler to just define an adc driver for h4000 that just wraps around the base ad7846 call?
17:34.13Kevin2(BTW, everything looks good in general - it really cleans things up - thanks for doing this work.)
17:36.09bd2Kevin2, h4000 custom pins not looks really odd, but also works odd (not wrong, but complicated ;-). Anyway, another ADC refactoring step is planned by Paul and me, for LKML submission. Maybe at that time we'll find more cleaner way
17:36.45bd2feel free to remind your ideas when you'll see ADC RFCs
17:37.00Kevin2Okay.  I also think we should remove pin_id, and instead just keep a pointer to adc_classdev in adc_sense.
17:37.06psokolovskyhi!
17:37.15psokolovskywhat exactly looks "odd"?
17:37.30psokolovskythat's just how it is, that's all. nothing odd, really trivial
17:37.42psokolovskydon't have them - don't use them ;-)
17:37.54Kevin2psokolovsky: Wouldn't it be simpler to just define an adc driver for h4000 that just wraps around the base ad7846 call?
17:38.20psokolovskyKevin2: defining another driver is not simpler, apparently
17:38.33rmoravcikhi psokolovsky!
17:38.55rmoravcikpsokolovsky: did you get my mail?
17:39.18psokolovskyalso, it seems that you think it's h4000 thing. no. it's used in h1910 too, and I possibly in other devices too
17:39.24bd2Kevin2, um... I think we can remove pin_id (i.e. wrap adc_classdev into adc driver specific struct, and do container_of, to get pin id), but... most drivers we have using pin_id, so we'll not gain much from it
17:39.51psokolovskyrmoravcik: Hi. Saw your mail, great work. don't know when i'll have time to look into it though ;-(
17:41.15Kevin2bd2: Most drivers don't need pin_id.  They can just do acdev - acdevs[].
17:41.29bd2(regarding hx4700 flash problem) quiz: does ioremap *really* returns virtual address? I've looked into docs, and they say "yes". But virt_addr_valid() macro returns 0 for ioremaped PXA CS region! and that's why we getting oops
17:41.56Kevin2Also, both tsc2200 and ads7846 don't want pin_id at all - they want the TSC2200_DATAREG_BAT1 type thing.
17:42.07bd2Kevin2, yes, true. It is optimization. But every optimization have drawback: code becomes non obvious. :-(
17:42.49bd2Kevin2, that's another argument, strong one. If we really have few drivers don'w wanting pin_id, we should remove it from generic api, indeed
17:43.01Kevin2You may be right.  I'd still prefer to have adc_classdev * in adc_sense -- even if it means callers do sense->adc->pin_id.
17:44.48Kevin2Well 2.6.21 boots on apache, but touching the screen causes kernel panic.
17:45.08bd2apache is ad7877 user?
17:45.19Kevin2bd2: Yes.  I'll look into it.
17:50.47Kevin2Heh, my sd card works again.  :-)
17:55.53bd2congrats ;-)
17:56.04bd2psokolovsky, any idea on ioremap q?
17:56.29psokolovskybd2: sorry, no
18:01.05cr2bd2: ioremap returns the virtual address. it's used all over the code.
18:03.06bd2cr2, no matter what phys addr given? and what means if virt_addr_valid(ioremaped_addr)) returns 0?
18:03.31bd2ioremapped_addr != 0, i.e. ioremap() done w/o errors
18:11.27Kevin2bd2: s/INIT_COMPLETION(/init_completion(&/
18:11.34Kevin2And it works great!
18:12.16bd2Kevin2, wow, great! ;-)
18:12.32Kevin2It even fixes my sd card!  :-)
18:12.39cr2bd2: what was the value given to  virt_addr_valid ?
18:13.11bd2cr2, PXA_CS0_PHYS
18:13.59bd2oh no.. it is  virt_addr_valid(ioremap_cached(PXA_CS0_PHYS))
18:14.24bd2actually, _cached or _nocache does not matter :-/
18:15.03cr2well, but was what the result of ioremap_cached(PXA_CS0_PHYS) ?
18:16.34bd20xd5000000
18:16.35cr2i guess we don't have discontig_mem
18:16.37cr2#define virt_addr_valid(kaddr)  ((unsigned long)(kaddr) >= PAGE_OFFSET && (unsigned long)(kaddr) < (unsigned long)high_mem
18:17.24cr2#define PAGE_OFFSET             UL(0xc0000000)
18:17.42cr2high_mem ?
18:17.59bd2high_mem?
18:18.07cr2how big is that.
18:18.27bd2PXA_CS_SIZE.. let me find number..
18:18.51bd20x04000000
18:19.20cr2then you will get zero as a result...
18:19.50bd2hmmm
18:20.02*** join/#htc-linux tsdogs (n=twostupi@62.123.180.130)
18:20.26bd2why, and then all pxa drivers in drivers/mtd/
18:20.30bd2are wrong
18:21.07bd2for example mainstone-flash.c, it's pretty close to hx4700-flash.c
18:22.19cr2./arch/arm/mm/consistent.c:     BUG_ON(!virt_addr_valid(start) || !virt_addr_valid(end - 1));
18:22.26bd2cr2, fck. <cr2> how big is that. - I misunderstood it. I told you "how big" is remapped (CS) area, not high mem
18:22.43cr2./mm/page_alloc.c:              VM_BUG_ON(!virt_addr_valid((void *)addr));
18:22.44bd2cr2, exactly. if I remove that BUG_ON then flash works
18:23.01cr2./mm/slab.c:    if (!virt_addr_valid(objp)) {
18:23.12bd2that BUG_ON appeard in 2.6.21
18:23.27cr2i don't see any other references to virt_addr_valid ??
18:24.45cr2i think this code makes sense only for RAM allocations.
18:27.27bd2heh.. so, should I post q to LAKML regarding that?
18:30.32*** join/#htc-linux TripleDE1 (n=sergio@94.pool85-50-141.dynamic.orange.es)
18:31.42BabelOtsdogs: htcbuthandler is ok ;)
18:33.55*** part/#htc-linux scorpio16v (n=scorpio1@ACB39B4B.ipt.aol.com)
18:33.55tsdogsperfect
18:34.33BabelOnow we can add many event to button driver ;)
18:34.45BabelOi fix a latest bug and it is ok
18:35.14BabelOwe can also use GPIO0 to drive backlight on/off or power on/off
18:35.16tsdogs:) nice work
18:36.55tsdogsdid you also merge the 2 asic and gpio readKey funcionts?
18:37.14BabelOtsdogs: no :(
18:37.41BabelOmaybe we can ;)
18:38.33tsdogsI think so, they only handle different keycodes, but on universal I think that key mappigs are all on event2 (except  for power=
18:38.44tsdogss/=/)/
18:39.55AlGeBabelO/cr2: thanks for the rootdelay hint, I had to enlarge it a bit, but now it boots. Thanks.
18:39.55AlGenow the next problem seems to be the touchscreen, it deosnt't responde so I'm stuck at the inital gpe-new-user screen.
18:39.55AlGeI guess I should now try to login vie usb/g_ether to fix it?
18:40.07BabelOanother thing, have an issue with battery now
18:40.38tsdogsBabelO: what issue?
18:41.08BabelOAlGe: yes log over ssh and then modprobe -r ts-adc-debounce
18:41.27BabelOand after modprobe tsc2200_adc_ssp; modprobe ts-adc-debounce
18:41.47BabelOit seems it should be a problem with loading order
18:42.06BabelOtsdogs: battery status does not display :(
18:42.14tsdogsWe should take over that code and replace it with ours in htcphonehardware (functions are already there, just need to be hooked)
18:42.41tsdogswhat's the value of Charging ?
18:43.25BabelO0 and false ... that's problem,  i trace it when finished button
18:44.03tsdogshmm, was working before the patch right?
18:44.10BabelOright
18:44.51tsdogsthat's strange. we only added the full thing ...
18:45.16tsdogsI'll look into the code and see what happened. Got to put baby to sleep bbl.
18:48.59tsdogsBabelO: btw can you try reverting the patch and see if it works?
18:49.20BabelOno it works for you ? then i ll look
18:52.16tsdogsIt didn't but with the patch it is....
19:05.17BabelOtsdogs: ok i ll comit your patch and my button handler
19:05.33BabelOmerge it later
19:07.55*** join/#htc-linux goxboxlive (n=goxboxli@176.84-48-210.nextgentel.com)
19:12.08BabelOtsdogs: commited, can you check ?
19:13.18tsdogsok checkedout
19:19.18AlGeisn't 192.168.0.206 the ip address to connect to via usb? I can not connect to it.
19:19.19AlGewhere is it set? maybe I need to configure it first somewhere in my rootfs on sdcard?
19:19.31goxboxlive192.168.0.202
19:19.59goxboxlive'/etc/network/interfaces
19:26.09tsdogsBabelO: htcbuthandler.cpp:68: error: expected primary-expression before ‘<<’ token
19:26.13tsdogs??
19:26.45BabelOyou do a cvs up ?
19:27.13BabelOcheck into file you have maybe <<<< 1.2, something  like this
19:27.35*** join/#htc-linux psokolovsky (n=psokolov@82.193.98.15)
19:27.40tsdogscheking ...
19:28.57goxboxlivetotal 7 files right?
19:29.09BabelOgoxboxlive: yes
19:29.16goxboxliveok, i'll compile
19:30.58goxboxliveyes it compiled, just to lame i cant test it though :-)
19:34.51tsdogsBabelO: syntax is: htcbuthandler:/dev,asic3 ?
19:35.23BabelOtsdogs: yes ASIC3 ... i ve not set it to lower case , sorry
19:36.19tsdogsthis should do right? htcbuthandler:/dev/input/event2,ASIC3:/dev/input/event1,GPIO
19:36.37BabelOtsdogs: yes
19:37.04BabelOi m merging event to one, it is a test ;)
19:37.47tsdogs:)
19:38.42tsdogsit's looping somewhere, as it does not respond anymore :/
19:39.31goxboxlivetsdogs: What? Same as mine?
19:40.10tsdogsgoxboxlive: nope, didn't even print missing locale (could not even login again...)
19:40.36goxboxliveok
19:42.56*** join/#htc-linux TripleDES (n=sergio@5.pool85-50-135.dynamic.orange.es)
19:42.57tsdogsBabelO: didn't you remove gnokii init from opie init ?
19:43.16tsdogsInitialization failed (11)
19:43.16tsdogsTelephone interface init failed: Command timed out.
19:43.16tsdogsQuitting.
19:43.21BabelOnot at the moment, if you want just omit define at top
19:44.40tsdogsno define anymore here ... (?)
19:45.07BabelOin htcphonehardware ?
19:45.19tsdogsyep
19:46.12tsdogsI'll take older one with define
19:47.34goxboxlivetsdogd: Are you using the cvs version of htcphonehardware ? It hasent been changed for 4 months? Is that correct?
19:47.57BabelOnot correct ;)
19:48.01tsdogsusing cvs yes.
19:48.17tsdogsho right, you sent it to me, not in cvs yet right ?
19:48.24BabelOtsdogs: i ll comit mine instead
19:48.31tsdogsokstarted anyway
19:49.37tsdogsgoxboxlive: with new kernel, lcd is flashing now
19:49.44tsdogsok needs more testing but it is working
19:50.00tsdogsalso battery...
19:51.32goxboxlivetsdogs: I noticed when i tried out your Opie2 version
19:51.37tsdogsBabelO: I have the feeling I changes something else to make battery work
19:52.08tsdogswith -hh0 it wasn't. I think it is the HTCUNIVERSAL_LCD
19:52.35tsdogsin -hh0 could not be selected...
19:53.00tsdogsor maybe it is conflicting with the TS2
19:53.16tsdogs(which is marked as old) (?)
19:53.21goxboxliveBabelO: what do i have to do to start with gnokii?
19:53.52tsdogsgot to eat now, bbl
19:55.04BabelOgoxboxlive: i remove it, i m doing a standalone app
19:55.23AlGenow I'm trying with (laptop) 192.168.0.200 <-> 192.168.0.202 (ba), still no luck.
19:55.23AlGeI get "NETDEV WATCHDOG: usb0: transmit timed out" messages on the laptop(2.6.15/dapper) side ... wasn' there an issue whith the cdc_ether module, do I need to blacklist something?
19:56.22goxboxliveAlGe: have you did: ifup usb0 on your handheld?
19:56.40goxboxliveBabelO ok
19:58.37AlGehow should I do this? I'm stuck in the gpe-new-user dialog without working touchscreen or keyboard.
19:58.38AlGedoes it mean that I should add an init script which just ifups usb0?
19:59.41BabelOAlGe: yes, if when you plug BA on cradle you didn't see usbnet line in dmesg
20:03.31AlGeif I plug it into my laptop the usbnet module gets loaded, (and the g_ether stuff on the ba side shows some initializiation message very early), anyway I'll add the ifup script ...
20:07.05BabelOtsdogs: maybe you have to try this key "Key_Flip"
20:07.33BabelOhttp://doc.trolltech.com/qtopia4.2/syscust-keypadarch.html
20:12.59goxboxliveAlGe or you can just add 'auto usb0' to your interfaces file
20:13.21goxboxliveNope, the new files didnt help either.
20:15.03AlGeso it works the standard debian way (ifup...)
20:15.06goxboxliveit's actually starting to p*ss me off.
20:15.11goxboxliveyes
20:21.17goxboxlive[pid  1254] ioctl(12, KDGKBENT, 0xbed7647c) = -1 EINVAL (Invalid argument)
20:22.23tsdogsgoxboxlive: try setting the QWS_KEYBOARD=None
20:22.31goxboxliveok
20:23.42tsdogsBabelO: yes I'll need those, like in opie and also the hinge thing...
20:24.54tsdogsthough I don't like the answer/hangup call ...
20:25.22tsdogsI don't want it to answer when I just want to check who is calling...
20:25.23tsdogs:)
20:26.15goxboxliveit didnt help. It's the same as happend before today
20:26.42tsdogshmm, it's Qtopia 4.2.0 or 4.2.2 ?
20:26.55goxboxliveI am using qtopia-4.2.0 now
20:27.24tsdogsLet me check the source code, I saw that ioctl code somewhere ...
20:28.02BabelOtsdogs: can you check out again button, test and add your missing buttons
20:28.20tsdogsBabelO: ok
20:29.57tsdogsBabelO: didint' update anything
20:30.21BabelOtsdogs: wait a little maybe
20:33.02goxboxliveit compiled
20:35.40AlGefinally I was able to ssh into my ba: there was no ts_adc-debounce module installed, I have to add kernel-module-ts-adc-debounce to my machine config file (and maybe some more modules)... thanks
20:36.54goxboxlivetsdogs: Send a mail to martin-s and ask himif you can join xanadux.
20:37.51goxboxlivethere can be a lag for about 30 min for users to get the latest files. As a developer you will have  access to the at one
20:41.46tsdogsBabelO: buttons do work. I'll add what it is missing, though I have the call/hangup on the keyboard not on buttons...
20:41.55tsdogsgoxboxlive: ok I'll do it.
20:43.29BabelOtsdogs: but i think it works with my last commit, it call same funciton with all keycode
20:44.36BabelOok i ll play qasteroids, it works ;)
20:44.52tsdogs:)
20:45.02BabelOtsdogs: ah ok, i understand only now, on keyboard ;)
20:45.13tsdogsyes on different event.
20:45.56tsdogsand handler. But I still think we should sort out the tty0 thing, and only have things like sensors in here... :)
20:48.09tsdogsgoxboxlive: it is something related to the keyboard, but haven't found where it is called yet
20:49.13goxboxlive? what do you mean?
20:49.28tsdogsfound it: kernelkeymapkbdhandler.cpp:            if (ioctl(kbdFD, KDGKBENT, &kbe) != 0)
20:51.04tsdogsgoxboxlive: you sure you are not setting somewhere to use the kernelkeymapkbdhandler ?
20:51.24goxboxlivehmm i dont have any itemcontrol in qtopie-4.2.0 source
20:52.16tsdogsit's only for appearence, I think it was added in 4.2.2
20:52.23goxboxliveI wasnt when you said i should use =none. I quited and loged in again . Also deleted Settings
20:52.34tsdogsok
20:52.59goxboxliveis there anything in custom.cpp wich depend on itemcontrol?
20:53.08goxboxliveor anywhere else?
20:53.29goxboxliveMaybe that is why it hangs and loops anround the battery stuff.
20:53.32tsdogsdon't think so, it's only apearence app dependency (I think)
20:53.38goxboxliveok
20:54.01tsdogscan you read battery status ?
20:54.49tsdogsthough I think that that "loop" is normal, as it is cheking every now and then to update the status ..
20:54.56cr2Kevin2: are you here ?
20:55.54tsdogsgoxboxlive: just to have a try, can u rename the libkernelkeymaphandler.so in opt/Qtopia/qt_plugins/kbddrivers ?
20:56.15goxboxlivetsdogs: Yes i can read the battery status
20:56.21tsdogsok
20:56.56goxboxlivetsdogs: I renamed all of them yesterday, but it still wouldnt launch
20:57.19goxboxliveI'll try out opie2 now (cvs )
20:57.19tsdogsok
20:57.32tsdogsok.
20:58.41goxboxlivecr2: Do you think AThena wiill have better support with linux than Uni?
20:58.53cr2g_pATIHWContext * inside sdhc. +0x37c offset +0x24 . here should be the base address of SD controller on hermes.
20:58.56*** join/#htc-linux TripleDE1 (n=sergio@120.pool85-50-201.dynamic.orange.es)
20:59.04cr2goxboxlive: of course not.
20:59.37cr2the main problem right now is the disk.
20:59.39goxboxlivecr2: Why is that of course?
20:59.44goxboxliveok
20:59.58goxboxliveHave you been looing at the cam yet?
20:59.58cr2camera will not be supported in any near future.
21:00.04goxboxliveright
21:00.14cr2no, i'm looking at hermes code now.
21:00.22goxboxliveok, how is it going?
21:00.27cr2camera on universal is a technicality.
21:00.49cr2it's the code from a780. plus some pxa gpios that i've already documented.
21:00.50goxboxliveand by that you mean? difficult to make it work?
21:01.00goxboxliveokk so the opisite :-)
21:01.00cr2which one ?
21:01.04goxboxliveuni
21:01.11cr2should be easy ;)
21:01.32goxboxliveok, good to hear.
21:01.46cr2+0x2050 |8000 - 1bit path
21:02.00goxboxlivedo you know if there is any cam apps we can use ? other than in Opie2?
21:02.01cr2+0x2050 ~8000 - 4bit path
21:02.31cr2look into the openezx archive. they have patches and some discussion.
21:02.56goxboxliveok
21:03.14goxboxliveis the FIC phone aplied with cam?
21:03.39cr2+0x2068 and +0x2070 ack sdio interrupt.
21:03.55cr2FIC phone is _very_ simple ;)
21:04.26cr2~1 and |1
21:04.37*** join/#htc-linux Cheescake (n=Remmy@82-32-129-75.cable.ubr05.hawk.blueyonder.co.uk)
21:04.37goxboxliveyes i know, but it has a killer screen i've been told
21:05.03cr2i have visually compared it to the universal.
21:05.20goxboxliveyes and it's better right?
21:05.36cr2you can't detect the difference in dpi, but the size is too small. imho.
21:06.14goxboxliveok, while we talks about screen. Do you know if there are any settings in the A780 so i can get the backlight a little brighter?
21:06.15cr2with a much slower cpu and a builtin framebuffer it's not going to be fast.
21:06.35goxboxlivehmm, and openmoko is slow on Uni :-)
21:06.36cr2unifortunately universal does not have ati.
21:07.21cr2athena is great, but very big, worse dpi than universal and €€€
21:07.58cr2but with 128MB RAM and ATI video it should be nice :)
21:08.31goxboxliveyes it's realy expensive. I read a test of it and they said that it is a killer machine, but it is _BIG_ they said to have it in the innerpocket
21:08.39goxboxliveyes
21:08.41cr2and sirf3 gps. not that abomination on neo. afaik they don't have a gpsd still.
21:08.52goxboxlivewhy is the HDD so har d to hack?
21:08.59goxboxliveisent it usb2 or something?
21:09.06cr2mdoc g4 - no driver.
21:09.23cr2miniSD - on the ATI chip, the same problem as on hermes.
21:10.26goxboxliveoh
21:10.27goxboxlivei c
21:10.28cr2the 8GB disk - most probably on the EPSON chip (IDE==CF interface) needs a completely new driver.
21:10.43goxboxliveok
21:11.11cr2but if the EPSON driver will be written, then you'll have a CF HDD. which is much faster than miniSD:
21:11.56cr2don't forget about the i2c accelerometer :)
21:12.10cr2and the TV out.
21:12.19Kevin2Hi
21:12.20goxboxliveyes that's riht
21:12.22BabelOcr2: what this sensor is doing in a phone ?
21:12.25goxboxlivehi Kevin2
21:12.36BabelOhi Kevin2
21:13.03cr2Kevin2: look in the logs. i've written down some obvious ATI SD registers.
21:13.14cr2probably should put it into wiki.
21:13.35cr2BabelO: some webbrowser "innovation"
21:14.22Kevin2Hi all!
21:14.36Kevin2cr2: Your notes are above my head.
21:16.07cr2Kevin2: have you seen the ATIDBG code ?
21:16.08Kevin2I see sd irq acks on 48010200 and 4c010204
21:17.05Kevin2cr2: In gnuharet?
21:17.05cr2yes.
21:17.05cr2there are 2 undocumented structures.
21:17.06cr2Asic and Ctx
21:17.19cr2one of then is part of the other.
21:17.36cr2there are some hints about their size.
21:18.39cr2your tracings say that the SD base address is +0x200000
21:19.18cr2according to the code, this number should be available in the structures.
21:19.31cr2i just want to check it.
21:19.48cr2the locations are known.
21:23.35cr2Kevin2: what is mapped at 0xac* ?
21:23.46cr2RAM ?
21:24.33Kevin2ac000000  | 30000000 | 1MB section | D=0    AP=1
21:24.48cr2ok.
21:25.40cr20x9370 and 0x9374 keep some SD status variables.
21:25.51cr2you may try to track them.
21:26.48cr2AhiInit(0x11) also on hermes.
21:27.17cr2AhiDevEnum()
21:28.37cr2AhiDevOpen(ptr,ptr,"SD",2);
21:28.44cr2not 0, though.
21:29.25cr2AhiPwrModeSet(ptr, 3,4,0);
21:31.44cr2AhiDevEnum(ptr,ptr,0);
21:33.09cr2+0x2038, +0x203c, +0x2040
21:33.19cr2all 16bit.
21:35.34Kevin2There is quite a bit of activity to those three 16 bit registers.
21:35.52cr2on card remove +0x2038 ~8
21:35.58Kevin2+0x2060 seems to be a 32bit data register
21:36.54cr2+0x21c0 is used.
21:37.15cr2yes, some of then are ldr/str
21:38.50BabelOtsdogs: it is better with button ;)
21:39.16cr2found SDSetClockRate code.
21:39.32tsdogsBabelO: :) almost finished .
21:41.01BabelOtsdogs: good ;) did you set power button too ?
21:41.17BabelOtsdogs: with latest plugin ?
21:41.23cr2AhiPwrModeSet(ptr,3,0,0); on sleep
21:41.35tsdogsBabelO: why is not there ?
21:43.24BabelOtsdogs: it is there called PWR_BUTTON
21:43.40cr2Kevin2: i think we will be able to locate all the registers.
21:43.41tsdogsit's perfect the way it is.
21:43.56BabelOtsdogs: it is not working as they said, missing something
21:43.56cr2and what is written there on which occasion.
21:44.30tsdogshmm, neither backlight, I think it is calling something in htcphonehardware which is not working ...
21:44.37tsdogswe need some debugging ...
21:45.50cr2+0x2048 |100 - start SD clock
21:45.50BabelOtsdogs: backlight is ok, it call qpe_brightness
21:46.12cr2tst 0x100 - wait for the clock
21:47.09tsdogsBabelO: I added (the only missing key there) the toggle_backlight, which is not working (like power button). For brightness regulation yes it is working (but not the on/off switch)...
21:47.22cr2+0x203c tst 0x4000 - check bus status
21:48.55cr2SD_CMD. that's good.
21:48.59tsdogsBabelO: http://www.pastebin.ca/497493 (also fixed a couple of warnings ...)
21:49.10tsdogsbut it is not working...
21:51.02Kevin2cr2: Cool.  Will you be able to write a driver with the info?
21:51.36BabelOok looking if we can add
21:55.43cr2Kevin2: we must, but it's not going to be easy. otherwise hermes is useless.
21:55.58*** part/#htc-linux Cheescake (n=Remmy@82-32-129-75.cable.ubr05.hawk.blueyonder.co.uk)
21:56.14cr2unless you'll fix the nand driver, and we can use nand samsung flash :)
21:56.41cr2Kevin2: does the current hh.org CVS boot on hermes. i know it compiles cleanly.
21:57.03Kevin2I haven't tried yet.  I'll run a "cvs up" now.
21:57.34cr2ok.
21:58.32cr2hmm. it's +0x380 on athena.
21:58.39cr2for the struct offset.
22:02.39tsdogsBabelO: maybe I found out why battery is not correctly displayed!
22:03.34tsdogs<PROTECTED>
22:03.58tsdogs<PROTECTED>
22:03.59tsdogs<PROTECTED>
22:04.06tsdogsfrom greenphone ...
22:13.16tsdogsBabelO: ok I found out why my uni didn't turn off light, I removed the apm -s which was cheking for value <=1 I changed it to < 1 (as don't want it to suspend after few seconds...
22:16.41BabelOtsdogs: i fix percentRemain
22:18.54cr2+offset is the first parameter to AhiDevOpen()
22:21.07cr2int (*AhiDevOpen)(struct Ctx**, Asic*, const char* name, int);
22:21.55Kevin2cr2: It doesn't look like my irq changes are in hh.org cvs.
22:22.49cr2Kevin2: can you make a diff with your current tree ?
22:23.23Kevin2with hh.org current tree?
22:23.48cr2hmm. Asic comes from Enum. &Ctx from Open.
22:24.00cr2we may take a challenge in haret.
22:24.23cr2unfortunately the offsets depend on the ATI chip used.
22:26.58cr2ok, but ATI does not change the code pattern. that's good.
22:27.43Kevin2hh.org head does not boot on hermes.  I'll forward port the irq stuff and see if that helps.
22:28.20cr2ok.
22:33.50Kevin2That didn't work either - we'll need to pull out the irda stuff again.
22:37.40cr2http://www.softclub.co.jp/~zoro/sig3/ace_ddi.html
22:38.03cr2the systranbox translation is not bad :)
22:38.39BabelOcr2: systran works with japanese ?
22:39.31BabelOtsdogs: it is the test about charging which is wrong
22:39.44cr2yes.
22:39.47cr2name the suitable character string, is good with anything, is. Ctx* is struct of the 0x168 byte at the portion of Asic*.
22:39.47tsdogsho
22:40.12cr2AhiDevOpen (out Ctx *, Asic*, const char* name and int 0)
22:40.29BabelOtsdogs: we are looking for "Not" to set charging variable, so it is reverse
22:40.37cr2a bit outdated, though. but good anyway.
22:41.13cr2i've see the sigmarion3 sdk somewhere ...
22:41.21tsdogsI made the change to that (but probably you did not see) should have done the patch I changed it to ! read("Not")
22:41.53tsdogsThat's why mine is working ...
22:41.54BabelOahh, sorry
22:42.40tsdogsBabelO: you know what cut/paste is ;)
22:42.59BabelOyes :(
22:44.23tsdogsBabelO: I'm trying to find out what does qtopia do with the resulting code for the PWR_BUTTON, you know where the call comes from ?
22:44.56tsdogswrong question, just ignore it (processEvent ,..)
23:00.31cr2hmm. nothing ATI-specific there.
23:01.14BabelOtsdogs: did qss2 build for you ?
23:01.57tsdogsqss2 ? I only have qss did not know there is also a qss2
23:02.18BabelOi see it in subtree with a readme.txt
23:02.50tsdogsI have it under tools ...
23:03.18tsdogsplugindecoder.cpp:22:33: error: qtopia/qtopiaglobal.h: No such file or directory
23:03.56tsdogsIt did not build by default
23:04.30tsdogsso maybe config did not prepare it correctly...
23:05.27tsdogsYou get the same missing include path error ?
23:06.28tsdogsI think they did not correctly migrate it to new 4.2.1
23:06.49tsdogsmaybe changing it to qtopiabase/qtopiaglobal.h will work.
23:15.46tsdogsBabelO: I cannot find where this Key_F34 / F35 are used ...
23:16.13BabelOtsdogs: i use grep F34 * -R
23:16.28tsdogsthx
23:16.40BabelOit is used in src/server/phone/phoneserver.cpp or something
23:17.22*** part/#htc-linux rmoravcik (n=rmoravci@adsl-d181.84-47-56.t-com.sk)
23:22.47tsdogsI think that either the use is not implemented, or it is ignored 'case sould be handled by the kernel ...
23:29.51tsdogsWell, we should write a keyboard filter anyway (for the hinge at least, so we might want to intercept it there and do the actions...)
23:32.15BabelOyes maybe same for keyboard backlight
23:32.46tsdogsyep.
23:33.36BabelOyou find nothing about Fxx funtion of hinge ?
23:34.26tsdogsNope, only the FLIP thing, but as I sayd don't want to trigger a phone event with it.
23:35.37BabelOok so flip is managed by opie
23:37.06tsdogsaccording to documentation yes. Also hinge events are switches, and need at least 2 mappings (closed/open and roatate)
23:38.29tsdogsIn opie (not opie2) it is handled in something like the htcbuthandler, but keyboard filter I think could be a nice place to gather all the actions there.
23:39.38tsdogsYou know what this is? Key_Mode_switch         = 0x0100117e,  // Character set switch
23:40.02tsdogsnever mind international related
23:40.51BabelOno don't know
23:42.05tsdogsBabelO: you also mapped JOG_DOWN and JOG_UP (on mine it is a Volume Up/Down event)
23:42.06tsdogsI found this keys.  Key_VolumeDown Key_VolumeUp
23:42.06BabelOyes, i map they to F5 and F6 that are vol up/down
23:42.31BabelOah ok ... i ll look why i do that
23:45.47tsdogsBabelO: yes Key_Flip is handled by phone/dilaer code, so won't be using that one...
23:47.18BabelOi ll map task switch to windows key on ba
23:47.50tsdogsok
23:48.30tsdogsEnough for today. bon nuit BabelO
23:48.42BabelOyes good night

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