IRC log for #htc-linux on 20090911

00:08.48*** join/#htc-linux x29a_ (n=x29a@unaffiliated/x29a)
00:18.15*** join/#htc-linux rafyvitto (i=rafyvitt@24.54.253.34)
00:22.43*** join/#htc-linux surge (i=surge@pool-98-118-154-21.bflony.fios.verizon.net)
00:25.40*** join/#htc-linux Digital-^ (n=ricl@cpe-67-249-146-52.twcny.res.rr.com)
00:27.07Digital-^Is there a preferred kernel version that works best as a base for android donut?
00:32.57*** part/#htc-linux Digital-^ (n=ricl@cpe-67-249-146-52.twcny.res.rr.com)
00:41.01*** join/#htc-linux MethoS_ (n=clemens@dyndsl-085-016-164-044.ewe-ip-backbone.de)
00:53.32*** join/#htc-linux MethoS- (n=clemens@dyndsl-085-016-162-150.ewe-ip-backbone.de)
00:54.17*** join/#htc-linux Cyberish (n=chatzill@106-175-dsl.flatrate.fo)
00:58.37mdrobnakHey all. Seems dzo is still not here, maybe someone else can help - I'm trying to figure out how to make the Vogue Community RIL, so I can try some patches to it...I've done a repo sync to get all of the Android source, but I'm not sure how to build just that library..
00:59.36dzoeasiest is to do . /mydroid/build/envsetup, then mm
01:01.04mdrobnakahh
01:01.54*** join/#htc-linux MethoS-- (n=clemens@dyndsl-085-016-163-127.ewe-ip-backbone.de)
01:03.35mdrobnakThat seems to have worked.
01:03.46mdrobnakThanks, dzo.
01:04.18dzook, to test remount / as rw, copy it to /lib and then kill rild.
01:05.02mdrobnakGotcha.
01:05.13mdrobnakdzo: What's the deal with setupmodem.sh ?
01:05.17mdrobnakShould I get rid of that?
01:05.26mdrobnakThat's in the rootfs I think
01:06.17dzono, i think thats still needed. it was the only way that data worked but new more is on the ril. it's still needed to communicate with the Modem app though i think.
01:06.56dzos/new more is on/now more is in
01:07.25mdrobnakIs that app useful? I think we should try and keep out as many 'hacks' as we can.
01:08.05mdrobnakI am going to take that init string cr2 gave me yesterday and try and get that in there.
01:08.17mdrobnakSee if I can get the crashes to stop
01:08.32dzoyes it is useful because android is designed for always on data but it's useful to be able to turn it off since it can use lots of power on our devices.
01:08.35mdrobnakIs there a good way to send stuff to rild?
01:09.20mdrobnakBecause one of the things I saw was problematic was the idea that it tried to reconnect immdiately after a crash...making it a little more difficult for me to see exactly what command caused it.
01:09.27dzoi don't think that is the problem, it's in the network registration, at+cops behaves differently.
01:10.21mdrobnakWhat it seemed to me, was that the power to the radio was on, but it hadn't registered on a network, and the library was expecting it to.
01:11.21*** join/#htc-linux AstainHellbring (n=AstainHe@unaffiliated/astainhellbring)
01:12.52dzocheck out what that at+cops=3..... command on line 1596 does perhaps.
01:13.04*** join/#htc-linux MethoS_ (n=clemens@host-091-096-213-046.ewe-ip-backbone.de)
01:14.00mdrobnakWell, that's the thing, it *does* work, just depending on the state, it was kinda weird.
01:14.05mdrobnakthe other thing is this:
01:14.11mdrobnakan empty string for a carrier name.
01:18.54*** join/#htc-linux Digital-^ (n=ricl@cpe-67-249-146-52.twcny.res.rr.com)
01:19.55mdrobnakOh, this is interesting.
01:20.08mdrobnakThere are *4* parameters returned when it works, not 3.
01:20.15mdrobnak09-08 21:44:07.156 D/AT      ( 2431): AT< +COPS: 0,0,"",4
01:20.15mdrobnak09-08 21:44:07.156 D/AT      ( 2431): AT< +COPS: 0,1,"",4
01:20.15mdrobnak09-08 21:44:07.156 D/AT      ( 2431): AT< +COPS: 0,2,"310410",4
01:22.06dzoi get 3 @CSQ lines first as well
01:22.28Digital-^I know this is probably a longshot.. but does anyone have the configs or any pointers for getting 2.6.29 to build for the Raph 800? I've got it compiling til it gets to building drivers/built-in.o at which point it freaks out completely about a slew of undefined references
01:22.59mdrobnakOh, that's true.
01:23.52mdrobnakDon't ask why I ignored them. LOL. What is HTCCSQ, I wonder?
01:24.19mdrobnakAT+CSQ is supposed to be signal level.
01:25.34mdrobnakhttp://handhelds.org/moin/moin.cgi/HTC_25GSM Anyone looked at this before?
01:28.56dzoit's just signal level. at@htccsq=0 should stop it doing that    but it doesn't seem to work.
01:29.27*** join/#htc-linux thedicemaster2 (n=thedicem@j89051.upc-j.chello.nl)
01:29.27dzoat@htccsq=2 might work.
01:29.47*** join/#htc-linux thedicemaster2 (n=thedicem@j89051.upc-j.chello.nl)
01:29.55mdrobnakdzo: in onSIMReady they specifically enable the RSSI reporting.
01:30.00*** join/#htc-linux thedicemaster2 (n=thedicem@j89051.upc-j.chello.nl)
01:30.13*** join/#htc-linux thedicemaster2 (n=thedicem@j89051.upc-j.chello.nl)
01:30.22mdrobnakIt *should* be handled by the unsolicited response handler...but it isn't
01:30.26*** join/#htc-linux thedicemaster2 (n=thedicem@j89051.upc-j.chello.nl)
01:30.37*** join/#htc-linux MethoS- (n=clemens@host-091-096-212-051.ewe-ip-backbone.de)
01:30.39*** join/#htc-linux thedicemaster2 (n=thedicem@j89051.upc-j.chello.nl)
01:30.52*** join/#htc-linux thedicemaster2 (n=thedicem@j89051.upc-j.chello.nl)
01:31.05*** join/#htc-linux thedicemaster2 (n=thedicem@j89051.upc-j.chello.nl)
01:31.18*** join/#htc-linux thedicemaster2 (n=thedicem@j89051.upc-j.chello.nl)
01:31.31*** join/#htc-linux thedicemaster2 (n=thedicem@j89051.upc-j.chello.nl)
01:31.44*** join/#htc-linux thedicemaster2 (n=thedicem@j89051.upc-j.chello.nl)
01:31.57*** join/#htc-linux thedicemaster2 (n=thedicem@j89051.upc-j.chello.nl)
01:32.10*** join/#htc-linux thedicemaster2 (n=thedicem@j89051.upc-j.chello.nl)
01:32.23*** join/#htc-linux thedicemaster2 (n=thedicem@j89051.upc-j.chello.nl)
01:32.45*** join/#htc-linux thedicemaster (n=thedicem@24.132.89.51)
01:32.46mdrobnakDo we know what the +CNMI command does?
01:33.47mdrobnakNevermind, described as Display New Incoming SMS
01:40.27*** join/#htc-linux MethoS-- (n=clemens@dyndsl-085-016-165-040.ewe-ip-backbone.de)
01:43.41mdrobnakBooting Android
01:45.41Digital-^is there a new way of generating the .config for a 2.6.29? the old "make htcraphael_defconfig ARCH=arm" fails because there's no htcraphael_defconfig in the arch/arm/configs directory.. or should I attempt to copy over the .config from .25?
01:47.18mdrobnakD/AT      (  110): AT< @HTCCSQ: 2
01:47.18mdrobnakD/AT      (  110): AT< +COPS: 0,0,"",4
01:47.18mdrobnakD/AT      (  110): AT< +COPS: 0,1,"",4
01:47.18mdrobnakD/AT      (  110): AT< +COPS: 0,2,"310410",4
01:47.33mdrobnakThat's putting in a AT@HTCCSQ=0 in the init string.
01:47.46mdrobnakI do think it's saying it's ready way before it's really ready.
01:48.05mdrobnakThere's a *lot* of GENERIC_FAILURE messages
01:54.14ali1234Digital-^: copy htcraphael_defconfig from .25 to .config then make oldconfig then copy .config to arch/arm/htcraphael_defconfig
01:55.15ali1234although maybe the config got renamed?
01:55.31*** join/#htc-linux MethoS_ (n=clemens@host-091-096-214-214.ewe-ip-backbone.de)
01:56.20Digital-^Schweet.. I've looked through the list of configs and don't see any that pop out as "ooh, that's the one I need" and I knew that just copying it over wouldn't work because there could be differences.. I'll try it with the make oldconfig then copy it over
01:59.56mdrobnakdzo: Thanks for the setup help, I'll see what I can do tomorrow. For now, it's time to get to sleep.
02:00.21dzook, good night.
02:03.27*** join/#htc-linux darkstar62 (n=darkstar@97-126-104-157.tukw.qwest.net)
02:03.58*** join/#htc-linux MethoS- (n=clemens@dyndsl-085-016-163-164.ewe-ip-backbone.de)
02:05.37*** join/#htc-linux no2chem (n=no2chem@cpe-76-90-65-27.socal.res.rr.com) [NETSPLIT VICTIM]
02:05.37*** join/#htc-linux kri5 (n=kri5@cowdy.vlmc.org) [NETSPLIT VICTIM]
02:05.37*** join/#htc-linux Marajin (n=marajin@87-194-102-189.bethere.co.uk) [NETSPLIT VICTIM]
02:05.37*** join/#htc-linux AngriestDog (n=jmissao@unaffiliated/sundial) [NETSPLIT VICTIM]
02:05.38*** join/#htc-linux W8TVI (n=nnme@71.238.235.30) [NETSPLIT VICTIM]
02:05.39*** join/#htc-linux infernix (i=nix@unaffiliated/infernix) [NETSPLIT VICTIM]
02:05.56*** join/#htc-linux darkstar62 (n=darkstar@97-126-104-157.tukw.qwest.net)
02:06.27*** join/#htc-linux darkstar62 (n=darkstar@97-126-104-157.tukw.qwest.net)
02:07.16*** join/#htc-linux br1ck (n=br1ck@xdsl-92-252-1-225.dip.osnanet.de)
02:08.02*** join/#htc-linux jmaurice (i=jmaurice@snickers.org) [NETSPLIT VICTIM]
02:11.35*** join/#htc-linux MethoS-- (n=clemens@host-091-096-212-057.ewe-ip-backbone.de)
02:15.00*** join/#htc-linux darkstar62 (n=darkstar@97-126-104-157.tukw.qwest.net)
02:20.55*** join/#htc-linux MethoS_ (n=clemens@dyndsl-085-016-160-034.ewe-ip-backbone.de)
02:35.01*** join/#htc-linux MethoS- (n=clemens@dyndsl-085-016-163-080.ewe-ip-backbone.de)
02:38.13*** join/#htc-linux root2 (n=root@rgnb-5d87dd72.pool.mediaWays.net)
02:44.35*** join/#htc-linux MethoS-- (n=clemens@host-091-096-208-138.ewe-ip-backbone.de)
02:55.02*** join/#htc-linux MethoS_ (n=clemens@dyndsl-085-016-164-198.ewe-ip-backbone.de)
02:58.44*** join/#htc-linux zsircusr1 (n=zsirc@174-159-79-183.pools.spcsdns.net)
02:59.18zsircusr1is anyone running the latest android port on a touch pro?
03:00.56tmztriddlecell: the one not in git yet?
03:01.43riddlecelli think it was released 20090909
03:02.12riddlecellfrom connect-utb i guess
03:02.55*** join/#htc-linux rafyvitto (i=rafyvitt@24.54.253.34)
03:04.09*** join/#htc-linux MethoS- (n=clemens@dyndsl-085-016-164-001.ewe-ip-backbone.de)
03:27.35tmztdzo: you found the debug console in smsm? how do we get those commits on our branch?
03:29.03dzoif ltg is working i'll push it now.
03:33.57dzook, done.
03:34.50tmztare you logging only calls from arm11 or repsonses from arm9
03:35.27dzowe don't log anything so its just what the a9 puts in there.
03:35.58tmztoh, ok
03:36.08*** join/#htc-linux PoohbaLT (n=BlkPoohb@c-69-141-71-249.hsd1.nj.comcast.net)
03:36.11tmztso it's like the dmesg from arm9 or just the symbols you listed
03:36.50dzoit's a log of what the a9 is doing, i'm using it to debug power collapse.
03:37.17tmztok
03:38.12tmztthat periph remap thing you gave me didnt' work
03:38.23tmztI can't get anything on the framebuffer or proc_comm
03:38.44tmztI need to go right now though, so I guess I'll have to look at it later
03:39.44dzoyes, it tricky stuff. perhaps it's broken.
03:39.56*** join/#htc-linux no2chem2 (n=no2chem@cpe-76-90-65-27.socal.res.rr.com)
04:02.56*** join/#htc-linux sdt555 (n=titus@147.145.40.44)
04:03.08*** join/#htc-linux swc|666 (n=infidel2@unaffiliated/swc666/x-4934821)
04:03.17*** part/#htc-linux sdt555 (n=titus@147.145.40.44)
04:10.44*** join/#htc-linux droid001 (n=g1@p4FDCF995.dip.t-dialin.net)
04:20.05*** join/#htc-linux goxboxlive (n=jrs@195.159.97.196)
04:58.46*** join/#htc-linux dtrack (n=LOL@78-86-59-180.zone2.bethere.co.uk)
05:10.09*** join/#htc-linux timebomb (n=tb@e179194143.adsl.alicedsl.de)
05:12.42swc|666grrr... my memory fails me, what do i need to do to get the Blue Angel phone modem working?
05:13.23parmastererr?
05:13.52swc|666i'm running lenny w/2.6.21-hh20 kernel... no X
05:14.09swc|666my goal is to be able to send sms messages from the command line
05:14.24swc|666i forget how to attach the modem
05:15.20*** join/#htc-linux xixx (n=xixx@cpmsq.epam.com)
05:27.08parmasterwow umm alge's archive is down/gone
05:27.19parmasterits setsomething or other
05:27.33swc|666yea i saw that earlier = fail :|
05:28.04parmasterhe had notes there
05:28.45parmasterdo you know the program i'm talking about?
05:29.05parmasterhow is that lenny running?
05:29.12swc|666lenny runs perfect
05:29.14parmasterdo you have all of the hardware up and running?
05:29.23parmasteri.e. wlan?
05:29.23swc|666actually i'm running squeeze now
05:29.36swc|666yea wlan works, but unstable as always
05:29.36parmasteryah squeeze should have support to be able to run X
05:29.44parmasterhow is it unstable?
05:29.49swc|666i had X running but its too much for it
05:29.57swc|666very stable (w/out X)
05:30.04parmasternah i mean the wlan
05:30.14parmasterdoes it cause kernel panics and other stuff?
05:30.15swc|666it gets unstable after a while
05:30.39swc|666no panics, but there is like some memory leak or something
05:30.42parmasteryeah, i noticed that when running fabrice's build
05:31.03parmasteri had all of them up (6 BA's) at 22 mbps
05:31.18parmasterbut they only stay up for like 10 minutes and thats when i'm constantly pinging them
05:31.30parmasterbut for that 10 minutes they work great.
05:31.55swc|666yea 10 mins sounds about right
05:34.57swc|666yea this totally sucks
05:35.05swc|666cant figure out how to get the modem working
05:36.44swc|666maybe i should grab the gommunicator source
05:39.13*** join/#htc-linux toi (n=toi@d51A49C45.access.telenet.be)
05:46.18Digital-^grumbles and kicks his htc touch
05:46.30parmasterdigital whats wrong"?
05:46.35parmasteri love the vogue
05:47.51Digital-^eh.. I have a CDMA Raph.. and I'm playing with Donut trying to put together a working build.. mostly just user error.. not really any fault of the phone
05:50.10Digital-^only real issue is that neither the kernel compile nor the android donut compile generates a rootfs image.. so for now I'll just sit here and look at it crosseyed and hope something comes to me in a flash of brilliance
05:56.41Digital-^should have been clearer.. I have a Raph 800 (HTC Touch Pro CDMA)
05:57.33parmasterah ok i have a touch
05:57.36parmaster(vogue)
05:58.50*** join/#htc-linux Untouchab1e (n=Untoucha@82.147.51.146)
05:59.01Untouchab1eGood morning :)
06:01.47swc|666parmaster, i found settihtc archived btw
06:01.55swc|666from alge site
06:02.31Digital-^G'Mornin Untouchab1e
06:02.58Untouchab1eDigital-^, Good morning :L)
06:04.31parmasterswc|666: cool, that should let you connect
06:04.36swc|666yep
06:04.43swc|666[ 8924.500000] TI Calypso / HTC firmware GSM UART line discipline ver 0.1
06:06.14parmasterthen you can just send the GSM AT commands to process an sms message
06:08.39swc|666yep, trying to remember how to do that right now :p
06:10.53parmasteri found a full GSM AT reference on some apple site before
06:11.01parmasterjust try googling for on
06:11.01parmasterone
06:12.50swc|666yea i actually just found some of my notes from last yea
06:12.51swc|666r
06:14.06*** join/#htc-linux timebomb (n=tb@e179194143.adsl.alicedsl.de)
06:24.55swc|666crap, modem isnt responding
06:24.58tmztDigital-^: I have raph500
06:25.32tmztdoes smd work?
06:26.05tmztsettihtc is a very simple program
06:26.11tmztjust sets he ldisc
06:26.39tmztwith an ioctl
06:26.52Digital-^ever put a donut build together for it? I've got it as far as failing to find the rootfs image.. if I use the rootfs image from the non-donut 09/09/09 connect-utb build it dies trying to mount a loop
06:27.58tmztremive the fsck calls
06:30.47tmztoh not dzo
06:33.39MrPippydigital: does your kernel have support built-in for whatever FS the images use? i had super weird loop errors trying to mount a cramfs image when i didn't have cramfs enabled
06:34.10swc|666i should be able to echo AT commands directly to the modem, like: echo -e "AT+CFUN=1\r" > /dev/ttyS0 right? and also i should be able to cat /dev/ttyS0 and see the responses (if any), correct?
06:39.34MrPippydigital-^: does your kernel have support built-in for whatever FS the images use? i had super weird loop errors trying to mount a cramfs image when i didn't have cramfs enabled
06:40.00*** join/#htc-linux BabelO (n=fcr@lun34-2-82-238-28-28.fbx.proxad.net)
06:40.00Digital-^Good question.. I'll have to go look at the .config
06:49.09*** join/#htc-linux rosseaux (i=znc@84.19.167.129)
06:51.14*** join/#htc-linux furtardo (n=mks@203.83.248.32)
07:01.20*** join/#htc-linux kiozen (n=oeichler@p54921412.dip0.t-ipconnect.de)
07:10.02*** join/#htc-linux timebomb (n=tb@85.182.255.196)
07:11.41*** join/#htc-linux [1]Untouchab1e (n=Untoucha@82.147.51.146)
07:39.20*** join/#htc-linux onen|openBmap (n=quassel@vbo91-1-89-87-201-85.dsl.club-internet.fr)
07:52.24swc|666BabelO, in order to use the BA modem, all i need is the n_tihtc module loaded right?
08:00.35*** join/#htc-linux dcordes (n=luke@unaffiliated/dcordes)
08:02.45dcordesyawns
08:02.47dcordesmorning
08:03.06*** join/#htc-linux Untouchab1e (n=Untoucha@82.147.51.146)
08:05.49tmztswc|666: and settihtc
08:05.57swc|666yea got that runnng
08:06.02swc|666running even
08:06.20tmztok
08:06.26swc|666not getting any response from modem
08:06.55tmzt-e \r
08:06.59swc|666trying right now using libgsmd-tool with gsmd
08:07.07swc|666doesnt work either
08:07.32dcordesswc|666, did you try a known working image and reconstruct it with that first ?
08:07.59swc|666dcordes, i did.. i'm using modules that worked before
08:08.41swc|666do i have to do something to power on the modem or something?
08:09.11swc|666seems like if my memory serves right, i had to echo 1 soemwhere before
08:10.29dcordesswc|666, this image worked perfectly on my board id 6 ba http://www.linuxtogo.org/~htcpxa/htcblueangel/Qtopia/ . no configuration was required
08:10.55dcordesmaybe you can use it to look up information required. else wait for BabelO
08:11.45swc|666dcordes, cool.. i'll try the kernel and modules from that
08:19.47swc|666mount -t ext2 /dev/sdc2 /mnt/sd
08:19.50swc|666err
08:19.52swc|666fails
08:21.31*** join/#htc-linux TaC_ (n=ircap8@106.Red-80-24-78.staticIP.rima-tde.net)
08:21.52*** part/#htc-linux TaC_ (n=ircap8@106.Red-80-24-78.staticIP.rima-tde.net)
08:22.02dcordesnew htc manufactured machine? http://www.engadget.com/2009/09/10/motorola-cliq-first-hands-on-impressions/
08:22.02*** join/#htc-linux TaC_ (n=ircap8@106.Red-80-24-78.staticIP.rima-tde.net)
08:29.00dcordesswc|666, did you try the exe?
08:29.08dcordesbbl
08:29.31dcordesswc|666, BabelO can help you best he's ba mentor
08:38.32swc|666weird, i had to increase rootdelay to 20 for some reason
08:49.25swc|666finally
08:53.47swc|666all good now
08:54.02*** join/#htc-linux Captnoord (n=Captnoor@dc5147a47b.adsl.wanadoo.nl)
09:03.14*** join/#htc-linux MrPippy_ (n=pip@adsl-75-11-160-45.dsl.sndg02.sbcglobal.net)
09:05.05*** join/#htc-linux JuNu_KN (n=chatzill@kons-5f710a54.pool.einsundeins.de)
09:06.26*** join/#htc-linux JuNu_KN (n=chatzill@kons-5f710a54.pool.einsundeins.de)
09:10.59*** join/#htc-linux phnom (i=simomn@pub98-78.pub.luth.se)
09:31.36*** part/#htc-linux phnom (i=simomn@pub98-78.pub.luth.se)
09:40.09*** join/#htc-linux temp (n=ircap8@106.Red-80-24-78.staticIP.rima-tde.net)
09:41.37*** join/#htc-linux cr2 (n=cr2@109.84.99.10)
09:41.44cr2hi
09:41.49Captnoordy7o
09:41.51Captnoordyo
09:42.05Captnoordcr2 you talked about nand the other day
09:42.34cr2where is the kernel source for motorola cliq dcordes talked about ?
09:43.19Captnoorddono
09:45.11*** join/#htc-linux Tinyboom (n=nahh@41.80-202-154.nextgentel.com)
09:45.54cr2nand works, you only need to define the partitions on the kernel cmdline
09:46.33*** join/#htc-linux dcordes (n=luke@unaffiliated/dcordes)
09:46.38cr2and the evil driver supports only the 2K blocks
09:46.42cr2hey dcordes
09:47.00dcordeshi there
09:47.02CaptnoordI see
09:47.03cr2the RPC HELLO hack should go away
09:47.24Captnoordbtw... one of the defines on the wiki is wrong
09:47.38cr2dcordes: where is the moto cliq kernel source ?
09:47.40Captnoordsubsplash should be 0x50260000 - 0x4DC00000 = 2660000
09:48.14Captnoord\0x02760000 0xa0000 splash, sublogo
09:48.18cr2Captnoord: 0x5* addressing schema is virtual
09:48.23CaptnoordI know
09:48.35*** join/#htc-linux AstainHellbring (n=AstainHe@unaffiliated/astainhellbring)
09:48.48cr2what are you subtracting here ?
09:48.48Captnoordall other are correct when substracting the virtual page
09:48.49Captnoordthe virtual page offset
09:48.55Captnoordall are correct
09:48.58Captnoordexcept that one
09:49.08cr2what is 0x4dc00000 ?
09:49.21dcordescr2, I searched for cliq on https://opensource.motorola.com/sf/search/do/search but nothing there
09:49.46tmztdon't expect anytime soon
09:49.49Captnoordlemme get my research
09:50.01cr2dcordes: same here ;)
09:50.17Captnoordok... FLASHDRV.dll
09:50.21Captnoordcontains the NAND info
09:50.27Captnoordits the nand driver
09:50.29Captnoordso
09:50.45CaptnoordI searched for what I always search for the links... common stuff that we already know
09:50.51Captnoordsubsplash
09:50.51Captnoord0x50260000 - 0x4DC00000 = 2660000
09:50.51CaptnoordDBG data
09:50.51Captnoord0x50380000 - 0x4DC00000 = 2780000
09:50.51CaptnoordConfig
09:50.52Captnoord0x500C1000 - 0x4DC00000 = 24C1000
09:50.54CaptnoordMfg data
09:50.56Captnoord0x50100000 - 0x4DC00000 = 2500000
09:50.58CaptnoordClear/Cold boot
09:51.00Captnoord0x500C0020 - 0x4DC00000 = 24C0020
09:51.02Captnoordand al
09:51.04Captnoordare good
09:51.06Captnoordbut
09:51.10Captnoordthat number
09:51.12Captnoordwas me
09:51.28Captnoordsubstracting the 0x500C0020 - 0x24C0020
09:51.37tmztas for nand look at legacy bootloadee
09:51.42cr2what is 0x2400000+0x4dc00000 ?
09:51.52CaptnoordI found the functions
09:51.55Captnoordto write
09:51.57Captnoordand read
09:52.01CaptnoordMfg data
09:52.02Captnoordand stuff
09:52.37Captnoordhttp://pastebin.com/m5ee7dfe7
09:53.02Captnoordand named functions like how they are defined in the dll strings
09:53.04Captnoordlike so
09:53.05Captnoord.text:03DCD164                 BL      HTC_OEM_WriteNan
09:53.15Captnoord.text:03DCD164                 BL      HTC_OEM_WriteNand
09:53.30Captnoordwhen I followed the HTC_OEM_WriteNand function around
09:53.32dcordescr2, what about kovsky/blackstone audio. what is missing? is it the same situation for both devices?
09:53.39Captnoordand compared the arguments with the wiki's
09:53.47Captnoord.text:03DCD154                 LDR     R0, =0x500C0020
09:53.49Captnoordthat
09:53.53Captnoordis the virtual address yea
09:54.25Captnoordand the base of Clear/Cold boot is 24C0020
09:54.32swc|666dcordes, i got it working btw
09:54.34Captnoordand 0x500C0020 is the virtual address
09:54.38CaptnoordI substracted them
09:54.43Captnoordand got that number
09:54.50cr2dcordes: the HELLO registers the wrong things.
09:55.28goxboxlivehi cr2, how r u?
09:55.39Captnoord0x2400000 is the base address of the NAND
09:55.50CaptnoordAPPSBL (SPL)
09:55.51cr2dcordes: the rpc log (on raph/diam/kovs) sends the CB info to arm9
09:55.55Captnoordand I found that one to
09:55.57cr2hi goxboxlive
09:56.40dcordescr2, what is CB ? what sends HELLO ?
09:56.41cr2goxboxlive: having fun with msm7201A cpu :)
09:56.52cr2dcordes: callback server
09:57.03dcordesswc|666, with BabelO's qtopia image or by adding the kernel/modules to your own one?
09:57.11Captnoord.text:03DCDE54                 BIC     LR, LR, #0xF0000000
09:57.12Captnoord.text:03DCDE58                 MOV     R11, R0
09:57.12Captnoord.text:03DCDE5C                 ADD     R1, LR, #0x2400000
09:57.15Captnoordthere ya go
09:57.16cr2we send hello to ourselves on arm11 to fill the server list
09:57.29Captnoordits on the HTC_OEM_ReadNand and the HTC_OEM_WriteNand
09:57.41cr2Captnoord: 0x2400000 is the 36MB block for AMSS & stuff
09:57.55swc|666dcordes, i used the Qtopia zImage and took the modules from the bz2, and stuck them in my debian squeeze install
09:58.02swc|666modem works now
09:58.22swc|666having a hard time formatting echo statements for sms though :|
09:58.26Captnoordcr2 I'm only saying what I found out.... if you can't do something with it....
09:58.28Captnoord:P
09:58.43Captnoordand I know that
09:59.23cr2Captnoord: ok
09:59.49Captnoordits not that I am dictating
09:59.56Captnoordi'm just telling you what I read in that driver
10:00.13cr2Captnoord: our problem is to read out the wifi eeprom
10:00.27dcordesgit pull
10:00.45Captnoordthe driver has 2 different wlan writes
10:00.47cr2itsutils does it with htc-oem_readnand, maybe we should add it to haret
10:00.59tmztyou mean xip ram on
10:01.09tmztyou mean xip ram on nand chip
10:01.12cr2they should be identical (in theory)
10:01.53Captnoordthe wlan stuff is also in that driver
10:02.00Captnoordbut I don't know if that is what your looking for
10:07.58dcordesdzo, msm_irq_idle_sleep_allowed: disable %x %x\n is spamming on my kovsky. what can I take from that?
10:12.18*** join/#htc-linux TaC_ (n=ircap8@106.Red-80-24-78.staticIP.rima-tde.net)
10:15.11tmztdcordes: based on diam?
10:16.01tmztboard
10:16.37dcordestmzt, no kovsky has own boardfile and I use that
10:17.23tmztright
10:17.33dcordesor what do you mean?
10:18.09tmztbut you probably need to integrate diam changes
10:18.16tmztfor pm
10:24.02dcordestmzt, can't spot any pm changes there
10:24.08dcordess/changes/differences/
10:26.11tmztok
10:37.35*** join/#htc-linux StarLite (n=nnscript@s55916ca6.adsl.wanadoo.nl)
10:52.39*** join/#htc-linux MrPippy (n=pip@adsl-75-11-160-45.dsl.sndg02.sbcglobal.net)
11:08.26*** join/#htc-linux dzo_ (n=dzo@mail.marginz.co.nz)
11:19.34*** join/#htc-linux PoohbaLT (n=BlkPoohb@c-69-141-71-249.hsd1.nj.comcast.net)
11:51.24*** join/#htc-linux Zinbolic (n=zinbolic@84.238.80.215)
12:01.37*** join/#htc-linux Nanto (n=Vegita@dsl54002804.pool.t-online.hu)
12:08.59*** join/#htc-linux KFindus (n=klFindus@p5DD24542.dip.t-dialin.net)
12:40.56*** join/#htc-linux MLM (n=mlvdmeid@igad.nhtv.nl)
12:57.57swc|666has anyone actually got an SMS message to send correctly from a terminal on the BA? My message gets sent, but the message is either 'garbled' or just a "." http://pastie.org/613496
12:58.18swc|666can't figure it out :|
12:59.15Captnoordunicode?
12:59.33swc|666what encoding should it ue?
12:59.37swc|666use*
12:59.59CaptnoordI dono.... but I have the option to send sms unicode formatting ( windows mobile )
13:00.07Captnoordand if you try to send a unicode string
13:00.07swc|666i tried using a utf-8 declaration with python as well, no dice
13:00.13swc|666hmm
13:00.15Captnoordtrouht a utf8 thingy
13:00.16Captnoordyou get
13:00.17Captnoord\.
13:00.18Captnoord.
13:00.24Captnoordusualy
13:00.26Captnoordnot always
13:00.27Captnoordor
13:00.31Captnoordthe first character only
13:00.44swc|666right, which correlates with what i'm seeing
13:01.09swc|666damn, i need to figure out the right encoding then
13:01.26swc|666seems that only the message itself needs it
13:02.01Captnoordpython is able todo it for you
13:02.42swc|666yep
13:02.52swc|666gonna try utf-16
13:04.08Captnoordreal unicode is 4 bytes....
13:04.16Captnoordnah
13:04.17Captnoordnot real
13:04.24Captnoordbut the latest official standard stuff
13:04.30swc|666yea
13:07.58Captnoordwith a project of mine we have a piece of code that automaticly converts a sql result into a raw info to be send to the client.... and while we where in a big optimalisation spree... we didn't add the check for latin/utf-8/unicode in......
13:08.04Captnoordso all the clients got a .
13:08.10Captnoordwhen a string was required to be send
13:08.44*** join/#htc-linux bartman (n=bart@tau.jukie.net)
13:10.17swc|666ouch
13:12.11swc|666definitely my issue
13:12.19swc|666can't beat the .
13:12.58Captnoordhmm can you see if your device sends unicode sms or utr8 sms default
13:13.51swc|666no idea
13:14.17CaptnoordI mean I have the option to send unicode sms in windows mobile
13:15.27swc|666well this on a BA running debian
13:15.46Captnoordhmmm.....
13:16.02swc|666i suppose i could reboot into WM and test it
13:16.15Captnoordyea...
13:16.30swc|666even when i run the same test with minicom, i get the same result
13:16.51swc|666AT+CMGF=1 sets SMS text format
13:17.01Captnoordand 1 is format?
13:17.13swc|666i dont see any other options in the AT cmds
13:17.16swc|666yea
13:17.23swc|666options re 0 or 1
13:17.26swc|666are*
13:17.41Captnoordand I think python doesn't have default strings as utf-8
13:17.44CaptnoordPyBuffer has
13:17.47Captnoordnot PyString
13:18.04Captnoordpurely technical crap
13:18.10Captnoorddon't see the difference in that
13:18.17swc|666right, and pyserial kinda sucks from what i can see
13:18.23swc|666in that regard
13:18.42Captnoordhell yea
13:18.50CaptnoordI coded my own python object serialisator....
13:19.00swc|666haha, fun i bet
13:19.15Captnoordnope
13:19.39swc|666well crap, i made it really far with this all tonight.. 6am, might as well stop while i'm ahead
13:19.46swc|666(b4 i lose my head)
13:20.32swc|666good sleep = smaller phone bill next month
13:20.34swc|666:p
13:20.37swc|666cya
13:25.18*** join/#htc-linux dzo (n=dzo@mail.marginz.co.nz)
13:29.27*** join/#htc-linux thedicemaster2 (n=thedicem@j89051.upc-j.chello.nl)
13:34.46*** join/#htc-linux MLM_ (n=mlvdmeid@igad.nhtv.nl)
13:38.59*** join/#htc-linux MLM (n=mlvdmeid@igad.nhtv.nl)
14:02.03*** join/#htc-linux dzo (n=dzo@mail.marginz.co.nz)
14:34.11*** join/#htc-linux sdt555 (n=titus@147.145.40.44)
14:39.13*** part/#htc-linux sdt555 (n=titus@147.145.40.44)
14:50.10*** join/#htc-linux dzo (n=dzo@mail.marginz.co.nz)
15:04.35*** join/#htc-linux sdt555 (n=titus@147.145.40.44)
15:05.07*** part/#htc-linux sdt555 (n=titus@147.145.40.44)
15:16.19*** join/#htc-linux dzo_ (n=dzo@121.98.128.127)
15:19.10*** join/#htc-linux Gnutoo (n=gnutoo@ABordeaux-152-1-16-17.w82-125.abo.wanadoo.fr)
15:26.47*** join/#htc-linux stickboy (n=anonymou@128.153.211.18)
15:33.08*** join/#htc-linux luc_ (n=luc@89-115-128-35.cl.ipv4ilink.net)
15:38.45*** join/#htc-linux dzo (n=dzo@mail.marginz.co.nz)
15:53.09*** join/#htc-linux xperia (n=chatzill@80-218-229-128.dclient.hispeed.ch)
15:53.17xperiahello to all !
15:55.28Gnutoohi
15:56.46xperiahey gnutoo how is going with your port. i am sure you have allready nearly all working ?
15:57.20GnutooI've putter my porting work asside and instead I have liberated android
15:57.33Gnutoobecause I wanted something working as soon as possible
15:57.39Gnutooliberated android means :
15:57.46Gnutoo*ril seems mostly ok
15:57.52Gnutoo*sound works
15:57.57Gnutooall is free software
15:58.01Gnutoono binary blobs
15:58.07Gnutoo(only wifi firmware)
15:58.31GnutooI'll have to go
15:59.06*** join/#htc-linux druidu (n=druidu@78.97.155.94)
15:59.50xperiaGnutoo: wooow sound very great ! you have to make a promotion video for your work for as a motivation
15:59.53*** join/#htc-linux ellisway (i=ellis@83.167.181.177)
16:00.02paranGnutoo: did you get my e-mail?
16:00.05Gnutoook lol
16:00.06Gnutooyes
16:00.10GnutooI just responded
16:00.23*** join/#htc-linux AstainHellbring (n=AstainHe@unaffiliated/astainhellbring)
16:00.25Gnutoobut that was the only mail I responded
16:00.28GnutooI must go now
16:00.30Gnutoobye
16:00.35paranGnutoo: oh, bye then ;)
16:00.40xperiabye Gnutoo !
16:11.05*** join/#htc-linux kiozen (n=kiozen@rgnb-5d87c584.pool.mediaWays.net)
16:15.09*** join/#htc-linux stefan_schmidt (n=stefan@p5B0371B8.dip.t-dialin.net)
16:18.00*** join/#htc-linux x29a_ (n=x29a@unaffiliated/x29a)
16:21.34mickeylevening
16:21.36mickeylargh, i always miss gnutoo
16:24.07xperiaevening mickey
16:25.18xperiamickey: i am right that you have written a book about developing software ? i have viewed it one time in amazon  i think but i cant find it anymore.
16:25.37xperiait was related for the free runner
16:27.52mickeylyes, and no. me and my puslisher had worked out a concept and i started with the book the same time they preannounced it in their catalogue. alas this book was never finished though, since i was too busy with openmoko. since then the mobile development world has changed so much, we would have to make a completely new concept for this book. Alas, that's why i put it on hold indefinitely. Meanwhile though, I have started on another book, 'Prog
16:27.53mickeylramming with Vala' which i hope to finish around christmas this year.
16:28.49stefan_schmidtmickeyl: hu, tough schedule I would say. :)
16:29.32mickeyl*cough*
16:29.34mickeylindeed#
16:29.37mickeylalmost impossible
16:29.42mickeylbut hey... you need to have goals
16:29.51stefan_schmidtah, schedules....
16:30.17mickeylre. linux book, also it's a matter of hardware
16:30.30mickeylyou can't seriously talk about programming without examples that run on available hardware (IMO)
16:30.42xperiamickey: thnaks for clarification.
16:30.51mickeylwith the FreeRunner being such a niche, i didn't see any value in writing a book anyways
16:31.07mickeylthis can change with other models being around
16:31.28mickeylhave to take a look though how Android and WebOS are progressing
16:31.40mickeyland whether it still makes sense to work on something free in the first place
16:31.53mickeyl(free as in free speech)
16:50.41*** join/#htc-linux tuxhero (n=quassel@122.169.181.204)
16:51.01tuxherohi tmzt,dzo
16:51.26tmzthey
16:52.08tmztyou have seen dzo's progress?
16:52.30tuxheroyes
16:52.46tuxherohe is doing good
16:52.53tmztand made it work on blak?
16:53.32tuxheroya working on it to makeing blackstone code up to date
16:53.48*** join/#htc-linux ali12341 (n=al@87.106.101.225)
16:54.01tuxheroi will give patch in few hours
16:54.05*** join/#htc-linux rosseaux (i=znc@84.19.167.129)
16:54.39tmztsound?
16:54.53tuxheroi think dzo has his personal git repo can you give me link to it
16:55.02tuxheroyes with sound
16:55.32*** join/#htc-linux marcin88 (n=marcin@chello089078160132.chello.pl)
16:55.53tmztthat'a temporary
16:55.58tmztsince lyg was down
16:56.04tuxherook
16:56.28tmztits in the log anyway
16:56.42tmztfive hous or so ago
16:58.42tuxherodid anyone got sound on blackstone??
17:04.59xperiamickey: i and i am sure others will buy a book that explain all the needed stuff for porting linux to a advanced mobile phone with advanced hardware.
17:05.01xperiawhy not working on such a book maybe together with cr2 and others. The amount of buyers for such a book should be bigger than the amount of buyers for the vala programming. if you look at xda forum nearly everybody want linux and android on the winmo phones.
17:05.26mickeylhmm
17:05.50mickeylhonestly i question that porting linux to closed hardware is attracting more people than programming for existing systems
17:05.59mickeylbut anyways it'd be a cool topic
17:10.16*** join/#htc-linux imfloflo (n=moi@83.25.71-86.rev.gaoland.net)
17:14.12*** join/#htc-linux dcordes (n=luke@unaffiliated/dcordes)
17:22.16*** join/#htc-linux dzo_ (n=dzo@mail.marginz.co.nz)
17:28.38Marajinmickey|sports xperia: I'd say the book was limited audience too but cool topic :)
17:28.59Marajinif you really wanna do it I'm happy to try a bit of proof reading
17:32.31*** join/#htc-linux Marajin_ (n=marajin@87-194-102-189.bethere.co.uk)
17:39.09*** join/#htc-linux pH5 (n=ph5@g229242132.adsl.alicedsl.de)
17:39.24xperiamickey marajin: for the features more ppc phones would be sold. having the possibility to install a more advanced OS like andorid on a htc phone is something that from day to day more and more people want. the peole want to have freedom and choice and the book can help them. here is the result of poll on the xda forum that show how many people allready want linux/android running on there...
17:39.27xperia...buyed phones. http://forum.xda-developers.com/poll.php?do=showresults&pollid=1621
17:44.53*** join/#htc-linux x29a (n=x29a@unaffiliated/x29a)
17:46.34Marajin_xperia: more advanced? no, potentially more friendly, yes
17:48.39druiduxperia: look at the diamond/android thread, what more proof do you want? :P
17:50.06*** join/#htc-linux Reactor16 (n=Reactor1@41.105.2.221)
17:54.53imfloflois somebody know how to know which settings i must set to mtty to connect my Polaris with it ? please
17:55.14dcordesxperia, sorry but I doubt that a majority of those people want to run android for reasons like freedom of choice
17:56.53*** join/#htc-linux HeadKase (n=immortal@wsip-98-190-158-8.ph.ph.cox.net)
17:57.42dcordesxperia, if they could run android only they wouldn't care. they just like android better because wince sucks.
17:58.40dcordesxperia, the amount of persons who are attracted by hackability is very small I suspect
17:59.10xperiadcordes: i give you absolute right ! however i know that it exist also people how just want to try android on there phone before they switch back to winmo
18:02.55xperiadcordes: i guess it is still a lot higher then the people how programm in vala ;-)
18:04.01*** join/#htc-linux stickboy (n=anonymou@128.153.179.80)
18:05.00*** join/#htc-linux sdt555 (n=titus@147.145.40.44)
18:05.10xperiadcordes: how do you compile the kovsky kernel. with the the file raphael defconfig or kovsky defconfig  ? for some reason the proc_com_wince is reporting to be missed. strange
18:06.40*** part/#htc-linux sdt555 (n=titus@147.145.40.44)
18:08.20*** join/#htc-linux balans (n=balans@212-123-149-239.ip.telfort.nl)
18:08.31tmztxperIa: disable sapphire
18:09.38xperiaits disabled in Kconfig i am getting the problem still.
18:10.50tmzt.config
18:14.15xperiatmzt: .config ? i cant find it in arch/arm/mach-msm where is this file located ?
18:16.24tmztroot
18:16.36tmztof the tree
18:18.46xperiatmzt: thanks for the hint ! sapphire is disabled in .config too.
18:19.51xperiaoh nooo ! the new patches have the kovsky build broken now even more ! cant believe it !
18:21.50xperiajust pulled the new patches from the repo. have some problems now with. the first error message now is not related to rpc
18:21.52xperiaarch/arm/mach-msm/rpc_server_dog_keepalive.c:36:3: error: #error "Unsupported AMSS version"
18:22.28dcordesbarks
18:26.24dcordesxperia, I do not get this problem. did you chose the correct amss version in .config ?
18:26.29dcordes5200
18:28.49xperiahmm isnt this done in htckovsky_defconfig
18:31.35dcordesxperia, run 'ARCH=arm make menuconfig' and select 5200 AMSS in system type
18:31.39druiduxperia: make sure you make menuconfig after make xx_defconfig
18:32.00dcordesactually make asked me for amss after the changes
18:32.10druiduin case some options are not defined by your old config, they will be set to defaults (which you should check, they're not always good)
18:32.33druiduthis probably happens because I added basic structure for a CDMA-compatible AMSS
18:32.46dcordesyea
18:32.47druiduso changed a bit the way AMSS is defined in config
18:33.10druiduold configs don't work directly and they will default to default AMSS if you just make menuconfig
18:35.04xperiahmmm. have to study more what you have written both. the problem is that i want to change a lot as i had allready a good working kernel and fear to lose now this nice settings or to spend to much time till i have enabled it.
18:36.22druidutry make htcraphael_defconfig then just add support for your board
18:36.32druiduit should work
18:38.14xperiadcordes: have allready in menuconfig under system type this setting. it must be something other.
18:38.15xperia<PROTECTED>
18:40.08*** part/#htc-linux imfloflo (n=moi@83.25.71-86.rev.gaoland.net)
18:40.40druiduwhat I hate about htc phones is that they don't have a digital compass (except htc hero)
18:40.57dcordesxperia, git pull; make htckovsky_defconfig
18:41.18dcordesdruidu, dream has compass too ?
18:41.55druiduyeah, all android-based phone have it
18:42.01druidu*phones
18:42.21dcordesfor the maps program
18:42.27high-rezWhat branchs is all of the exciting stuff going on in? 2.6.25 or 2.6.27?  TYhe wiki says 2.6.25 - but my gut tells me 2.6.27?
18:42.39druidunot only for that, it's a really cool thing to have (see the metal detector app)
18:42.45dcordesbut it's also kick ass for hiking the woods with cli compass
18:42.48druiduhigh-rez: 2.6.27
18:42.55druidu2.6.25 is long dead :)
18:43.14dcordesdruidu, do you know where the compass data comes from? smem ?
18:43.20druiduI also tried out some stuff in 2.6.29 (on codeaurora) and it's looking really exciting, lots of new drivers
18:43.21high-rezdruidu: Cool.  :)  Everything else should be the same as far as the build tools make targets - just change the branch, right ?
18:43.34druidudcordes: it's the same sensor
18:43.38druiduaccelerometer / compass
18:43.42druiduthe i2c driver
18:43.46dcordesok
18:43.51druiduwith userspace akmd
18:44.15druiduhigh-rez: yep, checkout htc-msm-2.6.27 from linuxtogo
18:44.20dcordesit's truely a nice device to have in the phone
18:44.47dcordesxperia, works?
18:45.12druidugonna merge the 3 commits dzo has to linuxtogo branch
18:45.50high-rezOoh, I think I'll wait for these commits.  Is this power management stuff? :D
18:46.08xperiadcordes: fetching new patches atm. reporting about a conflict
18:46.10xperiaFrom git://git.linuxtogo.org/home/groups/mobile-linux/kernel
18:46.11xperia<PROTECTED>
18:46.13xperiaAuto-merged arch/arm/configs/htckovsky_defconfig
18:46.14xperiaCONFLICT (content): Merge conflict in arch/arm/configs/htckovsky_defconfig
18:46.16xperiaAutomatic merge failed; fix conflicts and then commit the result.
18:46.18dcordeshigh-rez, you can also checkout the branch already and pull after the changes were pushed.
18:46.24xperianeed to prove it
18:46.39tmztgit reset hard
18:47.00druiduxperia: it's because of the patch when I synced with upstream kernel (from google)
18:47.11tmztafter stashibg the patch
18:47.20druidusome defines changed so I changed them in all configs that used them
18:47.46druiduyou might wanna put all your changes in a different branch so you have them for reference
18:48.01high-rezDoes the work you guys do get merged into the mainline linux kernels - or is it pretty much all a separate effort?
18:48.11druiduso you have a working version if something goes wrong
18:48.21dcordeshigh-rez, in the long run it's good to add our devices in mainline
18:48.45druiduwe have to get proper support for hardware yet
18:48.48druiduno hacks :)
18:48.54dcordeshigh-rez, right now the 'official' msm devices with linux are being ported to mainline
18:49.00druiducodeaurora has a very nice framework for handling inter-platform differences
18:49.08druidulike the clocks code
18:50.36dcordesoh cool we need that!
18:50.55dcordesxperia, git reset --hard worked?
18:52.02druiduhmm.. they changed ssh host key on linuxtogo?
18:53.57druiduah, dzo already pushed the patches
18:56.21dcordesdruidu, yes. git.linuxtogo.org works for me
18:56.26druiduxperia: actually, better just use the new config, somebody updated it http://git.linuxtogo.org/?p=groups/mobile-linux/kernel.git;a=commit;h=4ad7d1c505cd90eefa3ebca51a9ab3d9ecd58906
18:56.44druidudcordes: yeah but ssh host key changed, for pushing changes
18:58.03xperiahave just updated my git local repo. and will try to compile it now. thanks till yet for the help to everybody !
18:58.05xperia# git pull
18:58.06xperiaAlready up-to-date.
18:58.10dcordesdruidu, using linuxtogo.org I also get the key error. not using git.linuxtogo.org
18:58.34dcordesxperia, the new htckovsky_defconfig works flawlessly here
18:59.05druiduit's the same ip
18:59.13druidubut you have host key in ~/.ssh/known_hosts
18:59.36druiduand they changed the host key and this could indicate a man-in-the-middle attack (not the case)
18:59.49druiduyou should delete the key from known_hosts file
19:00.02*** join/#htc-linux onen|openBmap (n=quassel@vbo91-1-89-87-201-85.dsl.club-internet.fr)
19:00.08dcordesdruidu, ok thx for the heads up
19:00.11high-rezWhy on earth would you change a host key?  Re-Install and forgot to backup the old one? :)
19:00.20xperiadcordes: thanks for the info. in this case only my own chnages breaks then the build. will report back how the compile works.
19:00.42druidubtw, anybody participating in google code jam tonight? :)
19:00.44dcordeshigh-rez, they doijng some kind of maintainance at ltg maybe it's temporarily
19:00.59dcordesdruidu, what's that?
19:01.06druiduprogramming contest
19:01.07druiduby google
19:01.16dcordesin San Francisco?
19:01.25dcordesyou should go there and show how to hack kernel
19:01.27druiduit's online, finals are on-site in california
19:01.33dcordesonline? lol
19:01.44druiduhttp://code.google.com/codejam/contest
19:01.58druiduanyway, qualifying round was 1 week ago
19:02.40dcordesif you win you qualify for googel job?
19:05.59dcordesanyway I've got to go take care dude
19:08.21xperiadruidu: really strange. have started compiling as follow
19:08.23xperiamake htcraphael_defconfig ARCH=arm
19:08.25xperiamake zImage ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-
19:08.26xperiaand it report the same problem like for kovsky !
19:08.28xperiaCC      arch/arm/mach-msm/rpc_server_dog_keepalive.o
19:08.29xperiaarch/arm/mach-msm/rpc_server_dog_keepalive.c:36:3: error: #error "Unsupported AMSS version"
19:09.01xperiadidnt had this problem before i have updated my git repo with the newest patches !
19:09.29xperiacan you build the kernel with the newest patches ?
19:11.36druidulemme check
19:12.04druidugrep CONFIG_MSM_AMSS_VERSION_WINCE .config
19:12.06druidutry that
19:13.01high-rezis building a raph kernel right now. :D
19:13.03druiduthis shouldn't happen, newest htcraphael config defines CONFIG_MSM_AMSS_VERSION_WINCE, so it wouldn't give an unsupported AMSS error
19:13.21xperiazero result  for "grep CONFIG_MSM_AMSS_VERSION_WINCE .config" inside the root tree
19:13.40druidutry it in arch/arm/configs/htcraphael_defconfig
19:14.07high-rezIs there active work on the rhodium?  I tried many months ago a raph image on a rhodium and it seemed to almost work.
19:14.24*** join/#htc-linux stickboy (n=anonymou@128.153.22.83)
19:14.33xperiait reports back.
19:14.35xperia# grep CONFIG_MSM_AMSS_VERSION_WINCE arch/arm/configs/htcraphael_defconfig
19:14.37xperiaCONFIG_MSM_AMSS_VERSION_WINCE=y
19:14.53druiduok, then this didn't work: make htcraphael_defconfig ARCH=arm
19:15.04druiduyou can try this
19:15.22druiduhave a file named `env-vars` or smth like that, outside the kernel tree and put this inside it:
19:15.34druiduexport ARCH="arm"
19:15.34druiduexport CROSS_COMPILE="arm-none-eabi-"
19:15.37druidu(or whatever you use)
19:15.41xperia# make htcraphael_defconfig ARCH=arm
19:15.43xperia#
19:15.45xperia# configuration written to .config
19:15.55druiduthen, after you open the shell just do this once: . /path/to/env-vars
19:16.07druidu(that's a single dot, it includes commands in that config)
19:16.07Marajin_yo
19:16.32druidufrom then on, you can just do: make htcraphael_defconfig or make
19:17.31druiduI also define the path for my toolchain in that file, but I guess you already have that set up
19:18.17druiduanyway, it's pretty weird, after make htcraphael_defconfig you .config should be *identical* to htcraphael_defconfig in configs folder
19:18.29druidus/you/your/
19:18.46Marajinmuffles apt with a cluebyfour.
19:19.08Marajinsometimes we really don't need a bot to repeat an entire sentence just to vaguely clarify a s///
19:19.19druiduhehe, it's funny :P
19:19.32MarajinI'm just grumpy because I'm tired I know :p
19:19.40Marajinlack of caffeine, nicotine, sugar and sleep
19:19.48high-rezmsm_irq_sleep_allowed debugging messages everywhere - I assume this is dzo's cpu throttling code? :D
19:19.49Marajinalll blended into one neat bundle of disgruntlement
19:21.11druidulucky me I'm just a bit of a sugar addict :D, and don't really sleep during the night
19:21.14xperiadruidu: i have this envirenment settings. the kernel compiled geat before the new patches. it makes me heavy angry as i dont know wehere the problems lie.
19:21.16xperiahave executed # make htcraphael_defconfig ARCH=arm it compiled great . but grep CONFIG_MSM_AMSS_VERSION_WINCE .config still cant find it. have opened now the file itself and can confirm that CONFIG_MSM_AMSS_VERSION_WINCE dont exist. p.s. how about Kconfig ? as i know it does reinit CONFIG_MSM_AMSS_VERSION_WINCE
19:21.27Marajindruidu: I used to sleep every other day but I got an illness
19:22.13Marajindruidu: so nowadays I seem to need to sleep... a "normal" schedule :p
19:22.18druiduxperia: latest patches are fine, maybe you have a Kconfig that's different from git head
19:22.38druiduI'm gonna code for code jam at 4 in the morning, so it's good I'm used to it :)
19:22.55Marajindruidu: aim for the ballmer peak! it's the best bet :p
19:23.04Marajinif you know what the ballmer peak is :p
19:23.33Marajindruidu: http://xkcd.com/323/ <-- if you don't know what the ballmer peak is
19:23.40druiduloool (just googled it) :P
19:23.48Marajinit's funny as a joke
19:23.52Marajinbut it's also extremely true
19:23.53Marajinseriously
19:24.12high-rezHmm, GPS access is still causing hardware lockups, eh?
19:24.16Marajinsomething about a certain level of drunkenness bends your thought patterns just enough that you thread through code that much better
19:24.29druiduhilarious :)
19:24.52druiduyeah, but that's a very abrupt peak, looks hard to get exactly right
19:24.57high-rezMarajin: I've heard similar statements about other forms of inebriations.  Seems to be a common thread amoungst coders.  :)
19:25.05Marajinhigh-rez: that's because it's true!
19:25.14Marajinballmer peak code is crazy stuff
19:25.24druiduhad a guy who used to get drunk at programming contests and next morning would get best score
19:25.29Marajinit's code that you look at and go '...that's not right, but it works, why does it work?'
19:25.34Marajindruidu: see! proof!
19:25.57MarajinI say we get all the best hackers from this room and put them on special alcohol IV drips
19:26.09Marajinwe'd have linux ported to every htc device we could find in a week
19:26.53druiduthat might work :)
19:27.09Marajinalso remember that the graph looks pretty sudden peak but blood alcohol levels are on a pretty tiny scale
19:27.50Marajin0.08% is 'legal to drive', 0.5% is 'probably dead'
19:28.23Marajin.9% is about the maximum recorded not fatal limit
19:28.45xperiadruidu: the problem was the file Kconfig !
19:28.58xperiajust rebuilding the kernel now
19:29.09druiduhehe
19:29.39Marajinso the trick is to drink 3 pints of beer quickly and then about 1 per hour afterwards
19:29.42Marajin(or equivalent)
19:29.45druiduwell, for now I'm waiting to get my phone back, and hopefully this short break will give me time to study :D
19:29.56Marajinwhat that graph doesn't show is there are multiple peaks :p
19:30.03Marajinthey're just too chicken to test 'em ;)
19:30.15druidulol, friday everning
19:30.31MarajinI've had a BAC over the LD50 limit :P
19:30.33Marajinthere's a peak there too
19:30.39druiduso I go to a club, have a few beers, have a little run to freshen up, then ace the code jam :P
19:30.39Marajinbut 50% of people would die from it
19:30.52MarajinI just happen to have a body mass so high I can deal
19:31.26druiduyou're an alcohol reprocessing plant :P
19:31.31MarajinI was :p
19:31.34MarajinI rarely drink anymore
19:32.16Marajinmy caffienism was surreal at one point too :p
19:32.24Marajindruidu: never drink 3 litres of red bull in an hour
19:38.06druidulol, that's a *lot* of redbull
19:38.34Marajindruidu: it's a lot of caffeine.. 3000mg
19:38.50Marajinmainlining that would kill
19:39.05Marajinfortunately absorbtion rate for ingested stuffs is lower :P
19:39.27druiduyeah, you'd have to inject it or somethinh
19:44.39xperiadruidu: have another problem with compiling. It stop one line before it finish.
19:44.41xperiaLD      .tmp_vmlinux1
19:44.42xperiaarch/arm/mach-msm/built-in.o: In function `gps_nmea_thread':
19:44.44xperia/mnt/sdb1/XPERIA/KERNEL/kovsky-dev/kernel/arch/arm/mach-msm/board-htcraphael-gps.c:379: undefined reference to `nmea_init'
19:44.45xperia/mnt/sdb1/XPERIA/KERNEL/kovsky-dev/kernel/arch/arm/mach-msm/board-htcraphael-gps.c:392: undefined reference to `nmea_parse'
19:44.47xperiamake: *** [.tmp_vmlinux1] Error 1
19:45.01high-rezHmm there seems to be a marked improvement in the 9/9 kernel i tried and todays kernel
19:45.11high-rez(or im just nuts)
19:46.53*** join/#htc-linux cr2 (n=cr2@ip-77-25-141-100.web.vodafone.de)
19:48.30druiduadd nmea.o to Makefile
19:48.51druidulike this: obj-$(CONFIG_MACH_HTCKOVSKY) += board-htckovsky.o board-htcblackstone-panel.o htc_wifi_nvs.o board-htckovsky-mmc.o nmea.o
19:50.14xperiadruidu: thanks this was exactly missed !
19:50.15druiduhigh-rez: don't think so, don't see any relevant commits after the 9/9 one with the clocks
19:50.41high-rezWell it could just be my wishful thinking them  :)
19:50.42*** join/#htc-linux cr2 (n=cr2@ip-77-25-141-100.web.vodafone.de)
19:50.43druidugps won't work anyway, gps serial port doesn't work right?
19:51.01high-rezon my raphael, accesing the gps port causes the hardware to lock ;)
19:51.19druidusame with bluetooth
19:51.36druiduwhich one is the gps port anyway? smdX ?
19:51.46cr2druidu: gps may work, if the adsp cid hack will be added there
19:52.07cr2smd27 is where your can read nmea
19:52.10druiduor if we can reboot arm9
19:52.17xperiaadsp cid hack ?
19:52.31cr2but it needs an rpc refresh thread
19:52.51cr2druidu: the HELLO hack is doing very wrong things
19:52.52druiduwe use wince cid, because wince got exclusive access to adsp so we can't use another cid
19:52.52*** join/#htc-linux marcin88 (n=marcin@chello089078160132.chello.pl)
19:53.08druiduwhat hello hack?
19:53.43cr2we register the wrong servers as callback servers because of HELLO hack
19:54.18cr2the actual rpc fifo data show the CB server registration with the 'adsp' cid
19:54.55cr2this cid is actually a mux (or proxy ?) cid for the CB servers
19:55.17cr2HELLO hack ?
19:55.51*** join/#htc-linux cr2 (n=cr2@ip-77-25-141-100.web.vodafone.de)
19:56.05druiduyeah, you mentioned it, I'm not familiar with that one
19:56.16tmztall of tem or just adsp?
19:57.33druidudunno :P
19:57.58druidubtw, all the TODOs in smd_rpcrouter.c are from google?
19:58.12cr2HELLO hack is
19:58.17cr21183         msg.cmd = RPCROUTER_CTRL_CMD_HELLO;
19:58.18cr21184 //      rpcrouter_send_control_msg(&msg);
19:58.20cr21185 //      msleep(50);
19:58.21cr21186         process_control_msg(&msg, sizeof(msg));
19:58.39cr2we should remove it
19:58.41druiduah, I see it
19:58.53cr2the problem is here:
19:59.41cr200000001 00000004 00000001 fffffffe 00000000 00000014 00000000 fffffffe 00000004 3100005b 00000000 00000001 6dc3867a
19:59.46cr2this is a R2R message
19:59.47druiduwe don't send the hello message, we just hijack rpc router session from wince
20:00.10*** join/#htc-linux miknix (n=miknix@gentoo/developer/miknix)
20:00.24cr2the first part is
20:00.27cr200000001 00000004 00000001 fffffffe 00000000 00000014 00000000 fffffffe
20:00.32cr2and the message is
20:00.40cr200000004 3100005b 00000000 00000001 6dc3867a
20:01.22druiduRPC_PDAPI_CB_PROG
20:01.36cr2union rr_control_msg {
20:01.38cr256         uint32_t cmd;
20:01.40cr257         struct {
20:01.41cr258                 uint32_t cmd;
20:01.43cr259                 uint32_t prog;
20:01.44cr260                 uint32_t vers;
20:01.46cr261                 uint32_t pid;
20:01.47cr262                 uint32_t cid;
20:01.49cr263         } srv;
20:01.50cr264         struct {
20:01.52cr265                 uint32_t cmd;
20:01.53cr266                 uint32_t pid;
20:01.55cr267                 uint32_t cid;
20:01.57cr268         } cli;
20:01.59cr269 };
20:02.07druiducid=6dc3867a
20:02.19cr2cmd=4, prog=3100005b, vers=0, pid=1, cid=6dc3867a
20:02.35cr247 #define RPCROUTER_CTRL_CMD_NEW_SERVER           4
20:02.39druiducmd = RPCROUTER_CTRL_CMD_NEW_SERVER
20:02.45druiduyeah
20:02.49cr241 #define RPCROUTER_PID_LOCAL                     1
20:02.53cr2local means arm11
20:03.09cr2it's in wince
20:03.10*** join/#htc-linux Nanto (n=Vegita@dsl54002804.pool.t-online.hu)
20:03.25cr200000001 00000004 00000001 fffffffe 00000000 00000014 00000000 fffffffe 00000004 31000016 00000000 00000001 6dc3867a
20:03.43cr200000001 00000004 00000001 fffffffe 00000000 00000014 00000000 fffffffe 00000004 31000019 00000000 00000001 6dc3867a
20:03.59cr2and this cide is responsible for a bunch of callbacks
20:04.03druiduso when are these messages sent?
20:04.26cr2they are sent continuously in packs
20:04.38cr2and the cid at the end changes
20:04.43druidubtw, we have all the prog ids in smem_log.c
20:04.59cr2yes, it's from codeaurora
20:05.03druidu<PROTECTED>
20:05.10druidu<PROTECTED>
20:05.16druiduCB, what does that stand for?
20:05.43cr2the header says cmd=4 from arm11 rpcrouter to arm9 rpcrouter
20:05.49cr2callback
20:05.50druiduChannel Broadcast?
20:06.01druiduah, callback
20:06.12cr2a server, that is a client for arm9 messages
20:06.18cr2a arm11 server
20:06.56cr2the adsp cid hack is looking for such message:
20:06.59cr200000001 00000004 00000001 fffffffe 00000000 00000014 00000000 fffffffe 00000004 31000019 00000000 00000001 6dc3867a
20:07.05cr2hm. sorry
20:07.14cr200000001 00000007 00000001 fffffffe 00000000 00000014 00000000 fffffffe 00000007 00000001 0feb8f4a 5140df00 00000200
20:07.16druidudid we try to send a RPCROUTER_CTRL_CMD_EXIT ?
20:07.20cr2wrong paste
20:07.23cr2cmd=7
20:07.30druiduresume_tx
20:07.41cr250 #define RPCROUTER_CTRL_CMD_RESUME_TX            7
20:07.42cr2yes
20:07.58cr2do we have a struct for resume ?
20:08.02cr2cmd
20:08.12cr200000007 00000001 0feb8f4a 5140df00 00000200
20:09.04cr2looks like cmd/pid/cid
20:09.12cr2[22:01] <cr2> 64         struct {
20:09.14cr2[22:01] <cr2> 65                 uint32_t cmd;
20:09.15cr2[22:01] <cr2> 66                 uint32_t pid;
20:09.17cr2[22:01] <cr2> 67                 uint32_t cid;
20:09.19cr2[22:01] <cr2> 68         } cli;
20:09.21cr2in
20:09.24cr2<PROTECTED>
20:09.36cr2with the junk at the end
20:10.12cr2this local1 cid=0feb8f4a
20:10.23cr2is used for all msm_rpc_send opt
20:11.08cr200000001 00000001 00000001 0feb8f4a 00000000 00000030 00000000 00000001 8028002c 22000000 00000000 02000000 13000030 00000000 02000000
20:11.12cr2like this one
20:11.20cr213000030 00000000 02000000
20:11.58cr2prog=audmgr, func=audmgr_disable_client_apps
20:12.37cr200000001 00000001 00000001 0feb8f4a 00000000 00000040 00000000 00000001 802d003c 26000000 00000000 02000000 02000030 00000000 02000000
20:12.39cr2snd here
20:12.57cr2but also for GPS
20:13.00cr200000001 00000001 00000001 0feb8f4a 00000000 00000030 00000000 00000001 800b002c 08000000 00000000 02000000 5b000030 00000000 03000000
20:13.07cr25b000030 00000000 03000000
20:13.17xperiacr2: awesome research !
20:13.27cr2so i think that the "adsp" cid hack should be added to GPS
20:13.41cr2before we fix the HELLO hack
20:14.23cr2the GPS CB init was copied from adsp anyway.
20:14.32cr2and just needs a small fix
20:15.59druidusmem_log.c:     { 0X3100007e, "GPS_API CB" },
20:16.03druiduthis is the GPS prog id?
20:16.20cr2517         if (IS_ERR(rpc_cb_server_client)) {
20:16.22cr2518                 rpc_cb_server_client = NULL;
20:16.23cr2519                 rc = PTR_ERR(rpc_cb_server_client);
20:16.25cr2520                 printk("gps: could not create rpc server (%d)\n", rc);
20:16.26cr2521                 return -1;
20:16.28cr2522         }
20:16.29cr2523
20:16.31cr2524         rc = msm_rpc_register_server(rpc_cb_server_client,
20:16.32cr2525                                      RPC_PDAPI_CB_PROG,
20:16.34cr2526                                      0);
20:16.37cr2compare that to the adsp cid hack
20:16.55cr2druidu: be careful with the smem_log.c
20:17.06druidu<PROTECTED>
20:17.14cr2it has a lot of other RPC functions that are not available for our AMSS
20:17.18druiduanyway, I'm deviceless right now, my phone's for warranty repair
20:17.27cr2all our servers/callbacks are in the wiki
20:17.36cr2http://www.htc-linux.org/wiki/index.php?title=MSM_RPC
20:17.45cr2ok
20:17.52druidudid we try the EXIT cmd?
20:17.59druiduor BYE?
20:18.04druiduwhat does each of those do?
20:18.15cr2it should be done by haret
20:18.26cr2but we don't know the exact API
20:18.37druidumaybe some dll from wince implements this
20:18.42druidualthough the linux driver doesn't
20:18.44cr2there are no examples for EXIT/BYE
20:18.55cr2yes. oncrpc.dll
20:20.12cr2druidu: since you are deviceless, we can discuss the BT clock frequency :)
20:20.27druiduoncrpc.dll is not in the haret memory dump
20:20.29cr2the theory behind it.
20:21.07cr2[22:16] <druidu>         rpc_cb_server_client->cid=adsp_cid; :)
20:21.29cr2it's not enough, because adsp_cid is not a global symbol
20:21.42druiduof course, not adsp_cid anyway
20:21.59druidusame hack... global var / kernel param gps_cid, and the function to look for it
20:22.40druidualthough I don't really understand this: how can we find gps cid, the adsp_init() doesn't look for any prog id
20:23.31druiduanyway, back to bt clock... we need to enable UART2DM_P_CLK_ENA
20:23.51cr2gps cid=adsp cid
20:24.10cr2we already do it
20:24.18cr2it's about the frequency
20:24.39druiduand we have UART2DM_NS_REG and _MD_REG
20:24.53cr2and Ena bit
20:25.27cr2this part is like for the SD controller
20:25.46cr2but the frequency needs to be discussed
20:26.22druiduok, so what frequency do we need to get the most stable configuration, failsafe, so we can get it going?
20:26.32*** join/#htc-linux tuxhero (n=quassel@122.169.181.204)
20:26.46tuxherocr2: hi
20:26.56cr2we are doing what the g1 river does
20:27.07druidubtw, if we use bluetooth in wince then reboot and don't mess at all with the BT clock... should it be just ok?
20:27.26druidu*shouldn't
20:27.33cr2it sets 16x "base" frequency, and for the frequencies below 115200*4 there is a baud divisor
20:27.39tuxherocr2: can i get your playwav2 code
20:27.42cr2hi tuxhero
20:28.05cr2tuxhero: dcordes put it somewhere.
20:28.30cr2tuxhero: for recodrding sound it needs to send an unmute mic command
20:28.59cr2druidu: there is DMA channel
20:29.25cr2druidu: and the bt-rfkill powers down the gpios
20:29.39cr2druidu: and wince uses 4x lower frequency
20:29.43druidugpios, but not clocks
20:29.54tuxherocr2: I am fixing sound issue and few other fixes for Blackstone Code I need Latest Angstrom Build and Android Build where can i download them?
20:29.55druiduwell... whatever wince uses, if we use the same we should be ok I guess
20:30.01cr2the "base" before baud divisor is not 115200*4 but 115200
20:30.15cr2so wince clock setup is different anyway
20:30.46xperiatuxhero: only a second. i will give you the link for android
20:30.59cr2but the hs_uart driver is written by qualcomm (not g1 androids, check the codeaurora), so they knew what they are doing
20:31.30*** join/#htc-linux HeadKase (n=immortal@wsip-98-190-158-8.ph.ph.cox.net)
20:31.53druidulinux driveer uses 7372800 right?
20:31.56druidu*driver
20:32.03tuxherotmzt: r u there?
20:32.30cr2tuxhero: http://linuxtogo.org/~lgorris
20:32.34xperiatuxhero: http://www.androidonhtc.com/kaiser/latest_builds
20:32.34druidu//      MSM_CLOCK_REG( 7372800, 2, 0xc8, 0x64, 3, 2, 1, 1), /* 19.2MHz for 120000 bps */
20:32.46*** part/#htc-linux druidu (n=druidu@78.97.155.94)
20:32.51cr2druidu:
20:32.55cr2hehe
20:33.28cr2tuxhero: playwav2 is here http://linuxtogo.org/~lgorris/misc
20:34.10tuxherocr2 xperia thanks
20:35.13*** join/#htc-linux druidu (n=druidu@78.97.155.94)
20:35.17tuxheroxperia: does hero build working on our devices :)
20:35.20*** part/#htc-linux druidu (n=druidu@78.97.155.94)
20:35.35*** join/#htc-linux druidu (n=druidu@78.97.155.94)
20:36.51xperiadidnt tested till yet. the new compiled kernel crash at the boot. have maybe to disable gps as druidu said. normally android shoudl works as it work also on kaiser
20:36.55cr2druidu: alive?
20:37.14druiduyeah
20:37.21druiduaccidentally closed the window
20:37.23druidutwice :)
20:37.39cr2you can claculate the clock frequency from this line
20:37.51tuxheroxperia: which build should i use?
20:37.53cr2MSM_CLOCK_REG( 7372800, 2, 0xc8, 0x64, 3, 2, 1, 1)
20:38.03cr2the "real" clock frequency
20:38.38druiduyeah, I get this part, plug the values in the clock params, get the freq :)
20:38.47cr2768000000*2/0xc8/4
20:39.21cr2it's 1.92MHz
20:39.26*** part/#htc-linux druidu (n=druidu@78.97.155.94)
20:39.33xperiatuxhero: the kernel crash is only for my htckovsky with gps enabled. you should not have this problem with the newest patches from the repo !
20:39.38*** join/#htc-linux druidu (n=druidu@78.97.155.94)
20:39.41druidudamn
20:39.45druiduok, so 1.92
20:39.47druiduwe n eed 19.2
20:39.50cr2druidu:  /* 19.2MHz for 120000 bps */
20:39.58cr2is jus a wrong comment
20:40.11high-rezdruidu: Let me introduce you to... screen...  ;))
20:40.11cr21.92
20:40.22druidu7372800 -- that's that msm_serial_hs.c wants
20:40.30cr2druidu: this one should be divided by 16
20:40.50cr2so you get 120000bps
20:40.52druiduwhat's the raw value 7372800 expressed in? Hz?
20:41.01cr2for the base clock
20:41.07druiduand how do you convert from Hz to bps?
20:41.20cr27372800 Hz is requested by the serial_hs driver
20:42.07cr2for Nbps you need 16*N Hz clock. it's some internal uartDM logic
20:42.28druiduproblem is we haven't configured params for 7372800
20:42.30druiduactually
20:42.32druidu<PROTECTED>
20:42.37druiduclock is OFF
20:43.04cr2353         if (bps > 460800) {
20:43.06cr2354                 uport->uartclk = bps * 16;
20:43.07cr2355         } else {
20:43.09cr2356                 uport->uartclk = 7372800;
20:43.10cr2357         }
20:43.24cr2we turn it on, don't worry
20:44.07cr266         { .clk_id = UART2DM_CLK, .idx = 26, .offset = 0xdc, .name="UART2DM_CLK",},
20:44.37cr2203         // Turn clock-enable bit back on, if supported
20:44.38cr2204         if (params.idx > 0)
20:44.40cr2205                 writel(readl(MSM_CLK_CTL_BASE) | (1U << params.idx), MSM_CLK_CTL_BASE);
20:44.59cr2i think this part is not very smart
20:45.08cr2also for the SD
20:45.45cr2and i can tell you why
20:46.08druidudisabling and re-enabling ?
20:46.42cr2https://www.codeaurora.org/patches/quic/le/
20:46.49cr2u-boot-2009.03_PATCH_2009_05_14.patch
20:48.06cr2+#define   GLBL_CLK_ENA__UART2DM_P_CLK_ENA___S                                         26
20:48.18cr2is PCLK, not the CLK bit here
20:49.39cr2+#define   GRP_NS_REG__GRP_IMEM_CLK_BRANCH_ENA___M                         0x00000200
20:49.41cr2+#define   GRP_NS_REG__GRP_IMEM_CLK_BRANCH_ENA___S                                      9
20:50.04druiduQSD8x50_reg.h hmm
20:51.24cr2+#define   TV_NS_REG__TV_ENC_CLK_BRANCH_ENA___M                            0x00000200
20:51.25cr2+#define   TV_NS_REG__TV_ENC_CLK_BRANCH_ENA___S                                         9
20:51.44cr2+#define   TV_NS_REG__TV_DAC_CLK_BRANCH_ENA___M                            0x00001000
20:51.45cr2+#define   TV_NS_REG__TV_DAC_CLK_BRANCH_ENA___S                                        12
20:51.56druiduso where's the problem? idx is 26 for uartdm2
20:52.18cr2we should flip the BRANCH_ENA bits for the _CLK
20:52.24druiduGLBL_CLK_ENA reg is at offset 0, that's exactly MSM_CLK_CTL_BASE
20:52.43cr2because there is a difference between the _PCLK and _CLK
20:52.52druiduwhat is M and S?
20:53.08druiduwe only have pbus clock in that reg
20:53.08cr2Mask and Set i think
20:53.36cr2<PROTECTED>
20:53.43cr2OFF disables the PCLK ?
20:53.52druidutrue, so (val & ~S) | (1 << M)
20:54.19cr2btw
20:54.24cr269         { .clk_id = GRP_CLK, .idx = 3, .offset = 0x84, .ns_only = 0xa80, .name="GRP_CLK", }, // these both enable the GRP and IMEM clocks.
20:54.25cr270         { .clk_id = IMEM_CLK, .idx = 3, .offset = 0x84, .ns_only = 0xa80, .name="IMEM_CLK", },
20:54.35druidu#define OFF CLKFLAG_AUTO_OFF
20:54.40cr2[22:49] <cr2> +#define   GRP_NS_REG__GRP_IMEM_CLK_BRANCH_ENA___M                         0x00000200
20:54.41cr2[22:49] <cr2> +#define   GRP_NS_REG__GRP_IMEM_CLK_BRANCH_ENA___S                                      9
20:54.55druiduyep, it's auto shut down in clock_late_init
20:55.13druidubut only if it's not claimed
20:55.14cr2we need some flag like .idx (which is for the _PCLK) for the _CLK
20:55.16druiduso it's not a problem
20:55.26druiduthe .CLK is not in the global clock enable reg
20:55.31druidu_CLK
20:55.37cr2so we can separate GRP and IMEM CLK
20:56.00cr2because the IMEM CLK is a bit in the GRP register
20:56.11cr2GRP_NS register
20:57.10cr2for the SD the androids actually differentiate between _CLK and _PCLK
20:57.14cr264 #define SDC1_PCLK       20
20:57.15cr265 #define SDC2_CLK        21
20:57.34cr2also for the USB
20:57.38cr280 #define USB_HS_CLK      36  /* High speed USB core clock */
20:57.40cr281 #define USB_HS_PCLK     37  /* High speed USB pbus clock */
20:57.40druidu20 is MARM_CLK_ENA
20:57.44druidu21-24 are unused
20:58.18druidubut for GLBL_SLEEP_EN, 22 is IMEM
20:58.31cr2btw, why does clock.h list them twice ?
20:59.47druiduit's a bug from an automatic merge
20:59.51druiduI think
21:00.13druidusomehow diff decided it was new code and kept both old and new stuff
21:00.13cr2the IMEM clock is in the GRP_NS register. it's observed value. also on 7x00
21:00.38*** join/#htc-linux swc|666 (n=infidel2@unaffiliated/swc666/x-4934821)
21:00.42cr2check the vogue branch tree
21:01.11druiduthe ids in clock.h don't apply to us
21:01.16druiduthey're for proc comm calls
21:01.27cr2ok, so
21:01.32cr273 #define TV_DAC_CLK      29  /* TV clocks */
21:01.34cr274 #define TV_ENC_CLK      30
21:01.47cr2are also bits in the TV_* register.
21:02.27cr2unless you will port clock-msm7x30.c (with a lot of effort :) , it's easier to fix clock-wince.c for now.
21:04.06cr2by adding the .idx_clk member to the struct, and using the switch() on clock id in clock.h
21:04.54druiduI think I'm gonna move to code aurora 2.6.29 branch anyway, I was making good progress before I dropped my drive
21:05.18druiduthe clock framework they have is really nice
21:05.43cr2i'd like to fix the BT driver first
21:05.57cr2we have a lot of more ugly hacks in the tree now.
21:06.01druiduok, so just one entry in that array should fix it right?
21:07.10cr2we may restructure the code a bit.
21:07.17druidubtw, I think the _CLK enable are in the _NS_REG bits, while the _PCLK is in the global reg
21:07.29cr2provided the new knowlegde from 8x50 and 7x30
21:07.41cr2yes
21:07.57cr2_CLK is *BRANCH_ENA*
21:08.21cr2it's the part of the usual 0xa?? pattern
21:08.51cr2or 0xb=0xa|1 for the MD/NS clocks
21:09.47cr2where '1' is
21:09.50cr2+#define   CAM_VFE_NS_REG__MNCNTR_EN___M                                   0x00000100
21:09.52cr2+#define   CAM_VFE_NS_REG__MNCNTR_EN___S                                                8
21:09.59cr2MNCNTR_EN
21:10.27cr2enable M/N
21:15.48druiduok, so why don't you test some settings to get the BT clock at that freq? (7372800) :)
21:16.24cr2we have it already
21:16.44cr2sourced from PLL0
21:17.17cr2373                 case SDC1_PCLK:
21:17.18cr2374                 case SDC2_PCLK:
21:17.20cr2375                 case SDC3_PCLK:
21:17.21cr2376                 case SDC4_PCLK:
21:17.23cr2377                         rate = 66000000;
21:17.30cr2btw, this is wrong too. but not used by any current code.
21:17.54cr2366                 case SDC1_CLK:
21:17.55cr2367                 case SDC2_CLK:
21:17.57cr2368                 case SDC3_CLK:
21:17.58cr2369                 case SDC4_CLK:
21:18.00cr2370                         rate = get_mdns_host_clock(id);
21:18.01cr2and this needs to be fixed
21:18.14druiduah
21:18.15druidu460800*16
21:18.19cr2with a function for get_pll_hz()
21:18.44cr2460800*16=7372800
21:19.02druiduyeah
21:19.45cr2MSM_CLOCK_REG( 460800*16,    3, 0x64, 0x32, 0, 2, 4, 1), /*  460800 */
21:19.58cr2means S=4 aka PLL0
21:20.29druidusrc_sel is 4, which is actually modem pll
21:20.32cr2245.76 MHz
21:20.47druiduyou sure about that?
21:21.12cr2245.76 MHz is PLL0, check your own logs
21:21.37cr2the 27MHz TV clock is based on it too
21:21.42druidunot sure if S=4 is PLL0
21:22.01cr2245.76*3/0x64
21:22.37cr2i'm sure, because there is no argument against it
21:22.52cr2but without the docs i can't prove it :)
21:23.38cr2awk '{print 245760000*3/0x64}'
21:23.38druidu25% chance you're right
21:23.39cr27372800
21:23.54cr2the wince setting (check wiki)
21:24.04cr2uses the prescaler=4
21:24.34druiduwe have no prescaler in that config
21:24.44cr2but their base clock is 115200, and not 115200*4
21:27.11cr2we may do 1:1 wince setup
21:27.38cr2but then we need to #ifdef the baud divisor section. if you want to be 100% wince compatible
21:28.45cr2321         case 115200:
21:28.46cr2322                 msm_hs_write(uport, UARTDM_CSR_ADDR, 0xcc);
21:28.48cr2323                 rxstale = 31;
21:28.49cr2324                 break;
21:28.57cr2329         case 460800:
21:28.58cr2330                 msm_hs_write(uport, UARTDM_CSR_ADDR, 0xff);
21:29.00cr2331                 rxstale = 31;
21:29.01cr2332                 break;
21:29.26cr2460800 entry will be 115200, if we will use wince clock setup
21:29.41cr2actually i have nothing against doing it.
21:29.43*** join/#htc-linux tuxhero (n=quassel@122.169.181.204)
21:29.54cr2then we will 100% do what wince does
21:30.05tuxherocr2: is GPS working in raphael?
21:30.09druiduok, let's start from the beginning... so we get a lot of IRQs, but irq status indicates nothing is happening
21:30.39cr2tuxhero: no, but i think that we are 1 step away from it working. like it was with the adsp.
21:30.42swc|666anyone know if there is something out of the ordinary I have to do to send an SMS from the BA? I can get messages to send, but the message being sent is not formatted correct
21:31.09cr2druidu: yes.
21:31.12tuxherocr2: battery Drivers Fully Working?
21:31.21druiducr2: did you check the very first call to msm_hs_isr, maybe for first one we get isr_status != 0
21:31.37cr2druidu: for some reason, the rx_irq is not used.
21:32.09cr2tuxhero: i have not written this part of the code, so can't comment on that.
21:32.09druidutuxhero: not really, we have what we need to control the hardware but the driver's not working properly
21:32.50druiduas I've seen in the driver, it updates the battery status every 10 seconds, but doesn't update the charging status
21:33.09druiduand people report it thinks battery is empty when wince shows it's at 40%
21:33.14tuxherocr2: vreg_set_level is not working with blackstone amss
21:33.15*** join/#htc-linux x29a (n=x29a@unaffiliated/x29a)
21:33.59tuxherocr2: it should be done by RPC call shall it wirte code for it?
21:34.56cr2tuxhero: it's done via DEX on raph
21:35.56cr2which is 1.traceable 2. there are no such RPC found in the rpc fifo
21:36.05Captnoordtuxhero: there are like 4 diff ways to read the battery stuff
21:36.08druiduanyway, nothing can explain why the hardware would fire irqs with no reason
21:36.21tuxherocr2: while ago i was debugging mmc not working problem in Blackstone and found that mmc is trying to set vreg and it not changing so mmc is giving up
21:36.38Captnoorddruidu: not even while its cold starting?
21:37.02cr2tuxhero: hm. how do you know that it's not changing ?
21:37.14CaptnoordI mean... I remember that I was required to design some sort of pulldown / pullup so when the signal is floating it has a level
21:37.15druidulol, it's firing non-stop, it's starving the cpu, cpu ends up processing the irq over and over again
21:37.20Captnoordcr2 its not detecting it
21:37.25cr2tuxhero: i have blac100 spl, and it does the DEX call, so i've put it in wiki
21:37.42Captnoorddruidu: fireing non stop..... and your handling that irq?
21:37.55druiduyeah, it's in msm_serial_hs.c
21:38.01tuxherocr2: i will give it a try ones again
21:38.02druiduproblem is, it reads irq_status and it's 0
21:38.15druiduso it means the irq was fired for no reason... nothing for the isr to do
21:38.21cr2blac100  5,b22  c,0; d,0  2,0  a,a28 ; 4,b22   ?   3,af0; 8,a5a; 6,b22; 9,708
21:38.22cr2raph100 5,b22 c,0; d,0 2,0 4,bb8; b,708; a,a28 -
21:38.32cr2it's the same setup as raph100
21:38.47cr2the LCD is different, but it#s not a surprise.
21:38.57cr2http://www.htc-linux.org/wiki/index.php?title=MSM_VREG
21:39.16druiduwhat's on UARTDM1 ?
21:40.01cr2tuxhero: the cheap cards may dislike the 32MHz speed. i think it's a better reason for SD problems
21:40.12cr2druidu: nothing
21:40.22tuxherocr2: yes
21:40.34Captnoordmsm_hs_handle_delta_cts
21:40.44Captnoordwhen a irq isn't cleared it will get called again
21:41.23CaptnoordI even had some problems with a ARM that I didn't disable the irq interupt calls on handling a interupt
21:41.27cr2druidu: can you make a diff between the msm_serial_hs.c in codeaurora and g1 ?
21:41.34Captnoordresulting a interupt call while I was handling a interupt call
21:41.52cr2Captnoord: the g1 BT works. it's a fact.
21:41.53Captnoordwhich in its turn acted like a loop......
21:42.01cr2but it's on uart1DM
21:42.17cr2which makes our life more uncertain ;)
21:42.46cr2if you will find the moto kernel for 7201A like tmzt was talking about, it will be great.
21:43.00cr2i don't know about any code using uart2DM...
21:46.16cr2druidu: there are a lot of UART2DM_RX irqs on wince, and i think they are used.
21:46.40cr2don't see it in the msm_serial_hs.c driver.
21:47.05druiduyeah, but status shouldn't be zero!!!
21:47.10druiduit status is zero, nothing to do
21:48.06dzomorning, i got the power collapse working, took days, should work on all devices though.
21:48.12dzojust pushed changes.
21:48.26Captnoorddzo congrats
21:48.28cr2dzo: great.
21:48.45cr2dzo: we are trying some BT brainstorming...
21:49.12cr2dzo: have you tried gps with your adsp cid ?
21:49.17dzook, i got it working on vogue but only with the low speed serial driver.
21:49.45Captnoordcr2 didn't the arm has 3 uarts
21:50.05Captnoordand 2 and 3 accessable trough a multiplexer?
21:50.13*** join/#htc-linux TaC_ (n=ircap@66.Red-88-8-31.dynamicIP.rima-tde.net)
21:50.16cr2dzo: uart2dm is separate from uart2, so afaik there is no such chance on 7201A
21:50.38TaC_hi there
21:50.50dzook, on the g1 its on uart1.
21:51.05*** join/#htc-linux stickboy (n=anonymou@128.153.144.186)
21:51.13dzoclocks are tricky for hsuart i think.
21:51.14TaC_any changelog in new kernel, dzo?
21:52.21dzono, but it should use a lot less power now. still needs some devices powering down to be usable though.
21:52.45cr2dzo: we get irq flood. i think the clocks are ok, bt we may strictly follow wince, and use the clock prescaler=4, and change the baud divisors.
21:53.31TaC_that's a great "change" ;)
21:55.26TaC_i have been playing around with mddi screen commands, but no luck to make it work in diamond?
21:56.02cr2TaC_: does the panel detect code work for you ? which panel do you have ?
21:56.17*** join/#htc-linux AstainHellbring (n=AstainHe@unaffiliated/astainhellbring)
21:56.23TaC_i'm not sure
21:56.43cr2TaC_: the hitachi panel needs the SPI_WRITE16 macro, and a special SPI init, which is not in the current kernel
21:56.45TaC_i think it's not the original
21:57.01TaC_my diam is from ebay...
21:57.02TaC_:P
21:57.28TaC_yep, but the hitachi should be some of the original ones
21:57.39cr2TaC_: use haret, and dump the LCD type value from sram
21:58.07TaC_oops, didn't know that's possible
21:58.16TaC_command?
22:03.46Digital-^Anyone know what causes the repeated "Waiting for SD Card" interspersed with msm_i2c bus busy messages during a kernel boot?
22:04.39Digital-^Sprint CDMA Raph 800 (HTC Touch Pro) attempting the 20090909 build of android from connect-utb if that matters..
22:06.57cr2Digital-^: raph800 does not have sound. because somebody should trace which adsp 'image's are used. there are 5 of them, instead of the usual 3.
22:08.42Digital-^well.. if I knew more about it I'd give it a go.. but until I can get a kernel booted and running usbnet so I have ssh access to the operating system there isn't really much troubleshooting I can do :-/
22:09.22cr2it'd be doable in wince with haret
22:09.38swc|666Captnoord, ffigured out the issue
22:09.51swc|666i had to define the encoding using AT+CSCS="8859-1"
22:09.53cr2Digital-^: the usb reset is also different from gsm, so you need to do some work there too.
22:10.15cr2the current code is a bit incorrect  afair
22:18.42tuxherocr2: i have updated blackstone code and adsp seem to work perfectly fine but still audio is not working
22:26.15*** join/#htc-linux Squarc (n=Squarc@82-217-32-29.cable.quicknet.nl)
22:27.19*** join/#htc-linux leaigor (n=laigor@188.134.36.14)
22:34.47*** join/#htc-linux kvaster (n=kvaster@93.84.112.82)
22:35.25kvasterhi. trying to compile latest htc-msm from git, but i'm having problems (want to start test/dev with blackstone)
22:35.55kvasterproblem is: arch/arm/mach-msm/pm.c:375: error: ‘PCOM_VIBRA_ON’ undeclared (first use in this function)
22:48.01druiduyour config is probably wrong
22:48.20druiduyou need to select "5.2.00 - WinCE compatible AMSS" in system type
22:49.23cr2case RPC_ROUTER_IOCTL_REGISTER_SERVER:
22:49.32*** join/#htc-linux AstainHellbring (n=AstainHe@unaffiliated/astainhellbring)
22:50.15*** join/#htc-linux dwaradzyn (n=chatzill@chello089079067084.chello.pl)
22:50.55dwaradzynkvaster: try http://pastebin.com/m1af066a3 and you will compile fine for blac
23:08.18Digital-^wow.. this is my first time actually playing with the remote diagnostics part of Haret
23:11.24*** join/#htc-linux tuxhero (n=quassel@122.169.181.204)
23:12.19tuxherocan anyone send me the dmesg after playwav2 command (Only if your audio is working)
23:31.08*** join/#htc-linux sunnydrake (n=quassel@recorder.postpone.volia.net)
23:43.38*** join/#htc-linux ali1234 (n=al@87.106.101.225)

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