irclog2html for #htc-linux on 20061201

00:23.24*** join/#htc-linux subsystem (n=tcs@p50866A1E.dip.t-dialin.net)
00:54.21Kevin2Hi
00:55.31Kevin2pH5: Yes/No.  The memory tracing functions only trigger after the instruction completes.  So, if the instruction clobbers a register, one can't use the memory tracing feature to find out what the register was prior to the instruction.
00:56.18Kevin2However, one can use the instruction breakpoint feature to set a breakpoint on the instruction.  The breakpoint will trigger prior the instruction and (by default) just after the instruction runs.
00:58.28Kevin2So, for your scenario you'd run something like:  "set insn 0x0769487c" (to enable breakpoint at instruction address) and "set insnreg1 2"  (to have the breakpoint report r2).
01:00.37*** join/#htc-linux ljp (n=lpotter@203.94.178.46)
01:13.24*** join/#htc-linux soze49 (n=soze49@OL180-131.fibertel.com.ar)
01:14.14soze49Hi there, did anyone have success on installing linux in a blueangel cingular ?
01:27.48soze49now i see ... haret doesn't work on wm2005, is there any fix for that ?
01:42.17Kevin2soze49: Which haret?  It works fine for many developers.
01:42.42*** join/#htc-linux g3gg0_ (n=g3gg0@ppp-62-245-161-174.dynamic.mnet-online.de)
01:43.19Kevin2cr2: Try the latest haret from svn (rev 131) - I think I've resolved the title bar / exit issue.
01:44.39soze49could you please send me the repository ? i just use the haret from the ba wiki
01:45.31soze49i got it, i'm checking it right now
01:47.31soze49but i dont have an environment to compile wince applications, is there any place to download the latest binary ? do you have one ?
01:48.57Kevin2You can grab the latest haret using svn from: svn://www.shadowmite.com/home/svn/ppc6700/haret
01:49.12Kevin2Use the "haret.exe" version.
01:50.18Kevin2The "gnu-haret" version at: http://jornada820.sf.net/files/haret should also work on your BA.
01:52.21*** join/#htc-linux ljp (n=lpotter@203.94.178.46)
01:53.25soze49Kevin2: I just replace the haret.exe i had with the one at jornada820, and i get: Cannot open script file \Storage Card\linux/default.txt
01:55.42Kevin2What do you mean "you get that" -- that is displayed when you click "run"?
01:56.15soze49Kevin2: exactly
01:56.49Kevin2What is in the text box?  "linux/default.txt"?
01:57.33soze49no, just default.txt
01:58.30Kevin2Well, that is bizarre.  Where did you place haret on your pda?
02:00.44Kevin2Do you have a "default.txt" in the same directory as haret.exe?
02:00.46soze49i had a 4gb sd, with 3 partitions, first 30M vfat, sencond 1Gb ext3, and a third is vfat with the rest of 4gb, in the first one i had initrd-2.6... startup.txt zImage-2.6... and haret inside a directory named linux
02:05.20Kevin2soze49: It should have run "startup.txt" when you launched haret.exe then.  Did you have a "default.txt" in the same directory?  Also,  was it a \ or / after linux in the error message?
02:07.19soze49Kevin2: I don't have a default.txt, so y copied startup.txt to default.txt i the error changed to unkown option boot linux. It was a \ in the error message.
02:09.29soze49i see the option is now boot ...
02:09.34Kevin2Okay, looks like there is an incorrect command in your script.  Can you post your default.txt to pastebin.ca.
02:12.55soze49boot also complains (instead of bootlinux), i can get access to pastebin.ca, anyother ?
02:13.55Kevin2If it is only a few lines, I guess you can just cut and paste it here.
02:15.01soze49set KERNEL "zImage-2.6.12"
02:15.01soze49set MTYPE 766
02:15.01soze49set INITRD "initrd-2.6.12-hh2.gz"
02:15.01soze49set CMDLINE "root=/dev/ram0 init=/linuxrc ramdisk_size=14336 keepinitrd console=tty0 boot_mmc=y"bootlinux
02:15.19soze49(bootlinux is on the next line)
02:17.42Kevin2Maybe you have some "\n" "\r\n" windows/linux issue?  Try putting a whole blank line before bootlinux.  Make sure there is an enter after bootlinux.
02:19.58Kevin2A good utility to view/edit files under ce is total commander.  See http://www.ghisler.com/ce.htm
02:20.08Kevin2It has a file viewer which can help pinpoint these types of things.
02:20.09soze49Kevin2: same thing, http://handhelds.org/moin/moin.cgi/BlueAngel here it sais "To get audio working we need a special haret which activates it until we know how to do it with Linux." and also "The Haret.exe does NOT WORK with WM2005 on Blueangel. You will only See the Indicator after it is full nothing will happen. Maybe somebody can help to fix this."
02:21.11Kevin2soze49: I think those comments are a bit dated.  I know lkcl and cr2 both have a BA and have been playing with it.
02:28.45soze49Kevin2: i installed total commander, and i see the \n\r stuff, i put it right from within totalcommander and it stills complains, about boot or bootlinux
02:30.51Kevin2That's odd.  What is the exact error message?
02:32.27soze49Unknown keyword: 'bootlinux'
02:37.07Kevin2soze49: Something funky is going on.  Make sure you don't have any zeros instead of "o" or something silly like that.  Make sure there is an enter at the end of the last line.  If you still don't see anything, create a whole new file called default.txt with total commander and add a single line that says "bootlinux" and make sure there is a blank empty line after it.  You shouldn't see any "\r" or "\n" from the fil
02:44.42soze49Kevin2: same thing, i create a file with just bootlinux. Maybe the executable is not totally compatible with my pda ?
02:45.26Kevin2No, you're getting a haret parse error.
02:45.32Kevin2Can you telnet into the device?
02:46.14Kevin2Also, try creating a file "earlyharetlog.txt" in the same directory as haret.exe.  Then run haret.  A file "haretlog.txt" should be available with diagnostic info.
02:46.54Kevin2soze49: Are you using haret.exe or gnu-haret ?  gnu-haret uses the keyword "boot2".  I thought you were using haret.
02:47.17soze49i'm using gnu-haret
02:47.29Kevin2Oh.  Sorry.  Use "boot2" instead of "bootlinux".
02:47.42soze49np, trying that ...
02:56.42soze49ok, now it try to boot, but everything hungs
02:59.43soze49Kevin2: do you have a ba ?
03:03.18Kevin2Kevin2: No, I have an apache.
03:03.35Kevin2Where did you get your kernel from?
03:04.45soze49http://gnulinux.biz/files/blueangel/sd/linux/zImage-2.6.12
03:07.12Kevin2Hrmm.  Give haret.exe (from svn above) a try.  If that doesn't work, you'll need to ask cr2 or lkcl about it.
03:09.00soze49ok, i'm cheking it out right now, how can i contact cr2 or lkcl ?
03:11.17Kevin2They're both in Europe, so they generally arrive around 8 hours from now and depart around 20 hours from now.
03:12.05soze49ok, i'll try haret from svn or them, thank's a lot Kevin
03:15.42Kevin2One other thing to try is remove the "set mtype" line.  Recent haret builds auto detect that setting.
03:17.05soze49I notice that, i'm trying haret and now it sais Found machine Blueangel, and when i tap run nothing happens, nor errir or boot at all
03:17.23soze49haret is version 0.4.4
03:19.34Kevin2Is default.txt in the same directory as haret.exe?
03:20.30soze49it is
03:21.17Kevin2It doesn't lockup right?  It just sits there like nothing happened?
03:21.34lkclwhatwhatwhat?
03:21.51lkclwossgoing?
03:21.56soze49yes, and i change boot, boot2 and it complains, so it's loading it
03:22.09lkclyou woke me up, Kevin, ha ha
03:22.15soze49i don't know, today is one of those ...
03:22.41Kevin2lkcl: soze49 is trying to boot on BA.  You have one of those, right?
03:23.02lkclyeh, but i haven't played with it for over a year so i don't know the current state-of-play.
03:23.06lkcli'll find out next week though
03:23.21lkclwell, i might... i am back to work then.
03:24.55Kevin2soze49: add the line 'log "mylog.txt" ' to the start of your default.txt.  Then inspect mylog.txt to check for errors.
03:27.21soze49here is the error: Image too large - largest size is 4194304
03:28.50Kevin2One of your files is over 4M?  If so, you can't boot that.
03:30.26soze49initrd is 5,2M,  but that's the file i download
03:32.30Kevin2soze49: Wow.  I don't know how it worked before, but it wont work now.
03:32.40Kevin2You might want to try without the initrd just to see if the kernel will come up.
03:33.18soze49but the initrd in lkcl directory is also 5.3M
03:33.37lkclyep - it was fun doing that.  it contains a lot of useful stuff.
03:33.50lkclfor test purposes.
03:34.14soze49hi lkcl, but haret refuses to boot that
03:34.27lkclwhat do you mean 'refuses'?
03:34.47Kevin2Latest haret will only support up to 4M files.
03:34.57Kevin2I didn't realize >4M ever worked.
03:35.05lkclwell then you need a non-latest version of haret!
03:35.15lkclor gnu-haret (i presume)
03:36.03lkclah that might explain why 2.6.18-hh0 failed to boot an initrd and why i had to go to nfs-boot.
03:36.09soze49gnu-haret is hungin my device and non-latest windows doesn't seem to work with wm2005, because it shows tux with red crashed eyes
03:36.43lkclon gnu-haret, do you get a bit of black in the middle of the screen with a blue line across it?
03:36.50soze49yes
03:36.58lkcldoes it go red after a bit?
03:37.03soze49yes,
03:37.25lkclok then it's transferring over.
03:37.25lkclok.
03:37.43soze49overlaping ?
03:37.46lkcltry running telnet to your BA and then _typing_ the boot commands
03:37.56lkclor - Kevin - what's that command to run a script?
03:38.06lkclfrom the haret command-prompt?
03:38.19lkclyou will then see diagnostic output from it
03:38.37Kevin2lkcl: logging commands are only in new haret versions.
03:38.38soze49i can't telnet my pda, i'm not on windows
03:39.28soze49... maybe throut wifi ...
03:39.28lkclok i gotta go.
03:39.59soze49is it possible to make an small image ?
03:40.07Kevin2soze49: Try booting without initrd on haret 0.4.4 - that will tell if you have a kernel problem or not.
03:44.25soze49i did that, and a green line apears across the screen, and a message box saying please be patient until operation finishes, and nothing happen then, not log or anything
03:46.11Kevin2Okay, you get a solid green bar but no other colors (no blue, black, magenta, etc.)?
03:46.20soze49nop
03:46.56soze49i mean, that's right, no other colors
03:48.06soze49so do i need to create a new pair of kernel/initrd ?
03:49.25Kevin2There is a bug in new haret shutdown on pxa25x.  Hold on, and I'll fix it.
03:50.02soze49ok
03:52.24Kevin2Okay - svn up - and grab haret.exe rev 132.
03:55.09soze49ok, i did that, now do you want me to try without initrd  ?
03:56.02soze49now i see (without initrd) a blue/red/cyan/black stripe in the middle of the screen
03:56.29Kevin2It hangs with that color pattern?
03:57.17Kevin2That means we successfully loaded the kernel into memory and jumped to it.  But of course, if you're stuck at that pattern it means the kernel failed to start.
03:58.05soze49so the kernel is too old for my device ? do i need to make new images ?
03:58.32Kevin2What's your device again?
03:58.43soze49blueangel cingular from siemens
04:00.03Kevin2Did you set an mtype in the default.txt?  If so, what was it?
04:01.17Kevin2Hrmm.  766 is correct, so that can't be it.
04:01.25soze49no, i didn't it autodetects the type to blueangel and haret log says mtype=766
04:03.30Kevin2I don't know.  Try to grab cr2 tomorrow and see if he has any ideas.
04:03.44Kevin2You'll need to get the kernel booting before worrying about the initrd.
04:04.37Kevin2You could also ask on the mailing list at htc-pxa@handhelds.org
04:04.58soze49ok. i'll do that, thank's kevin
04:05.22Kevin2No problem.  Good night.
04:05.30soze49good night
04:19.25*** part/#htc-linux soze49 (n=soze49@OL180-131.fibertel.com.ar)
06:13.09*** join/#htc-linux rejon (n=rejon@c-67-174-202-239.hsd1.ca.comcast.net)
06:13.19*** part/#htc-linux rejon (n=rejon@c-67-174-202-239.hsd1.ca.comcast.net)
06:30.05*** join/#htc-linux bd2 (n=ufo@89.113.84.151)
07:19.48*** join/#htc-linux rob_w (n=rob_w@p549B8CC3.dip0.t-ipconnect.de)
07:23.41*** join/#htc-linux goxboxlive (n=goxboxli@gw.hjelcowi.no)
07:25.55*** join/#htc-linux rmoravcik (n=rmoravci@pc-3s0zt5w2e4y0vzmhnrzq3a21zqajzfw.users.student.utc.sk)
07:34.47*** part/#htc-linux goxboxlive (n=goxboxli@gw.hjelcowi.no)
07:53.14*** join/#htc-linux goxboxlive (n=goxboxli@gw.hjelcowi.no)
08:58.02*** join/#htc-linux Fossi (n=cmewes@195.177.48.115)
09:21.26*** join/#htc-linux bd2 (n=ufo@89.113.84.151)
09:36.29*** join/#htc-linux babeloued (n=Fabrice@faim1.itesoft.com)
09:39.11*** join/#htc-linux TripleDES (n=sergio@84.77.155.74)
10:51.02goxboxlivehello everyone.
11:04.50*** join/#htc-linux soze49 (n=soze49@OL180-131.fibertel.com.ar)
11:05.43cr2hi goxboxlive
11:06.16cr2do you have a new keyboard layout ready ? :)
11:07.05soze49cr2, hi i talk with Kevin2 last night, he told me to talk to you, i'm trying to use the kernel http://gnulinux.biz/files/blueangel/sd/linux/zImage-2.6.12 in my ba but it hungs, not even get a boot log screen, but haret is loading it ok (Kevin2 check thant and he also fixed a bug in haret last night)
11:07.46cr2i have edited the wiki 10 minutes ago. add mem=128M to the command line for wince5.
11:08.05cr2will be back in 30min.
11:08.12goxboxlivecr2: I went to bed after you commited to cvs yesterday. So i havent tried out the lkatest kernel, nor made any key.map file.
11:08.24cr2ok.
11:09.00cr2soze49: the old .12 kernel from wiki does not work with >1GB cards afaik.
11:09.09soze49do you have any image i can use ?
11:14.11*** join/#htc-linux crackedboy (n=cdb@unaffiliated/crackedboy)
11:18.10soze49cr2: do you have any image i can use ?
11:22.52*** join/#htc-linux psokolovsky_ (n=psokolov@ip.85.202.124.214.dyn.sub-9.broadband.voliacable.com)
11:34.18goxboxlivehi psokolovsky: at last it's friday
11:42.02soze49where can i find the latest kernel source patched ?
11:52.09psokolovsky_hi! yeah ;-)
11:52.14cr2soze49: the kernel alone is not a problem (i hope so), but you need to check the ramdisk and the root image too. this stuff is 1 year old, and is actually nice and clever, but still a hack.
11:54.02soze49cr2: but i'm not booting the root image, Kevin2 suggest to do that in order to check the kernel is booting propertly and not log is output to the screen, it just frezzes with a red/blue/cyan/black stripe on the screen
11:54.34cr2have you added mem=128M ?
11:54.56soze49cr2: nop
11:55.12cr2then do it.
11:55.54soze49cr2: still doing the same
11:57.15cr2which haret are you using ?
11:58.31soze49cr2: the last one kevin fix last night
12:00.04cr2try the latest from http://jornada820.sf.net/files/haret
12:14.51*** join/#htc-linux soze49 (n=soze49@OL180-131.fibertel.com.ar)
12:14.56soze49cr2: that one works, and now i get a familiar login, is this correct ? should i get a graphical prompt ? (i have a second partition with gpe tree in it )
12:21.23soze49cr2: i tap the red phone button and kernel panic
12:35.20cr2soze: so the kernel boots, but it needs the modules from the ramdisk, or from the gpe partition. i don't remember the details, but it was rather complex.
12:53.45soze49cr2, but is the ba project active ? is there any newer releases than the one from the last year, are you working with it ?
12:56.52cr2i'm working on the universal, don't have time for both.
12:58.54cr2the active work on the kernel is done by asylumed and babeloued
13:05.18soze49cr2, so any suggestions about how to go on, because the kernel from the wiki complains about not having interrupt handlers for my hardware.
13:12.59cr2checkout the kernel from xanadux CVS, modify the config, compile all the modules into the kernel and drop the ramdisk.
13:19.54soze49cr2, ok i'll do that, should i check out linux-2.6-xda ?
13:21.25cr2-ba0 branch
13:21.56cr2i think it's all described in hh.org wiki
13:28.38*** join/#htc-linux rob_w|mis (n=rob_w@p549BACE2.dip0.t-ipconnect.de)
13:40.20*** part/#htc-linux goxboxlive (n=goxboxli@gw.hjelcowi.no)
13:44.00Kevin2cr2: I think I found the problem with the exit button last night.  New haret in svn will hopefully work now.
13:45.26Kevin2soze49: I'd like to figure out why mainline haret didn't boot for you, but gnu-haret did.  I have to go to work, but I'll be back later.
13:48.06soze49Kevin2, i'll be very busy tonight so i don't know if i'll be here, but you can always reach me here: pyaggi _at_ alsurdelsur.com
14:11.29*** join/#htc-linux psokolovsky (n=psokolov@233.usernat.ip.net.ua)
14:45.36*** join/#htc-linux bd2_ (n=ufo@89.113.84.151)
15:35.44*** join/#htc-linux buz (n=buz@84-73-95-139.dclient.hispeed.ch)
15:44.07*** join/#htc-linux rob_w (n=bob@p85.212.179.208.tisdip.tiscali.de)
16:03.48babelouedben nous on y sera pas avant 22h pour les premier
16:03.51*** part/#htc-linux babeloued (n=Fabrice@faim1.itesoft.com)
16:05.04*** join/#htc-linux babeloued (n=Fabrice@faim1.itesoft.com)
17:26.32*** join/#htc-linux BabelOued (n=Fabrice@lun34-2-82-238-28-28.fbx.proxad.net)
17:30.02*** join/#htc-linux RoEn_PC (n=roen@p54A663B1.dip.t-dialin.net)
17:50.38*** join/#htc-linux Ro_En_PC (n=roen@p54A67C19.dip.t-dialin.net)
17:55.04*** join/#htc-linux hlbot (n=adm@iclem.net)
18:12.19*** join/#htc-linux rmoravcik (n=rmoravci@icm7-orange.orange.sk)
18:42.28*** join/#htc-linux pH5 (n=ph5@e178205056.adsl.alicedsl.de)
18:43.27BabelOuedhi pH5
18:44.54pH5hey BabelOued
18:45.04pH5any new insights on the onewire issue?
18:45.18BabelOuedyes got some trace
18:46.15BabelOuedhttp://pastebin.ca/263672
18:47.42pH5cool, so then wince led code on the ba also writes to 0x20 and 0x21
18:48.13pH50x20 to 0x22 I wonder what the heck those registers are good for
18:48.51BabelOuedi think my tracemask isn't good
18:49.34pH5it's ok, but those are just reads/writes at the led registers (0x4,0x20..0x22)
18:50.07BabelOuedok, so no owm here
18:50.07pH5Is this all that appears at this address when you suspend/resume?
18:50.16BabelOuedyes
18:50.54pH5but you have the reads/writes at the ds1wm registers, right? (a9400000 to a9400008)
18:50.59BabelOuedi see on log thaht kevin2 answer to you this afternoon
18:52.10pH5BabelOued: thanks.
18:52.29pH5hm.. no 20061201 log at rikers.org yet.
18:52.50BabelOuedhttp://irclog.iclem.net
18:53.50pH5BabelOued: cool, much better
18:54.11pH5Kevin2: thanks
18:55.00BabelOuedi didn t see any read/writes at a9400000 to a9400008
18:55.47pH5hm.. so it doesn't sound like it uses the aic2's ds1wm (if there is one at all)
18:56.17pH5BabelOued: but you are doing this with a battery connected, right?
18:56.20pH5;)
18:56.25BabelOuedyes
18:56.41BabelOuedusing wifi
18:57.17*** join/#htc-linux rmoravci1 (n=rmoravci@icm2-orange.orange.sk)
18:57.23pH5so what controls the battery?
18:57.31*** join/#htc-linux rmoravci1 (n=rmoravci@icm2-orange.orange.sk)
19:00.26BabelOuedpH5 i got these trace too http://pastebin.ca/263686
19:03.25BabelOuedbefore GPIO0 it is before suspend :)
19:04.24pH5now this looks suspiciously like ds1wm
19:04.38pH5a9400002 is the transmit/receive buffer register
19:04.46pH5a9400006 is the interrupt enable register
19:05.00pH5a9400000 is the command register
19:05.52pH5now it'd be interesting if there are any reads from a9400002 at the same time, but I think this is a rather clear case
19:07.21BabelOuedhow can i do this ?
19:07.35BabelOuedok i try again whitout suspend/resume
19:08.19pH5look at what it writes to a9400002: cc 69 0c ff ff ..
19:08.37pH5this is a read data command to the ds2760
19:08.54BabelOuedok :)
19:09.18pH5the ff writes are used on onewire to read back data
19:10.16pH5BabelOued: do you have tracetype set?
19:10.39pH5don't do it, and you'll get the ldr instructions too
19:10.41BabelOuednot for my second post
19:10.50BabelOuedit is 1 by default right ?
19:11.21lkclallo darlins
19:11.36pH5BabelOued: I thought it was 2 default (load&store)
19:11.39pH5hey lkcl
19:12.04pH5BabelOued: but now we still haven't found how to enable/disable the owm clock or where to set OWM_EN
19:12.41pH5the suspend/resume traces at 0xa940000a,c only show writes to the led registers so far :-/
19:13.05pH5but if wince left the ds1wm enabled, we should still be able to make it work
19:13.40BabelOuedit s normal because on suspend BA can alert when battery is low
19:14.34pH5BabelOued: but isn't that done by waking up the wince kernel with a watchdog timer?
19:15.17pH5the ds1wm definitely has to be controlled by the pxa, and while the pxa sleeps the ds2760 has no way of notifying the ds1wm about anything
19:15.28pH5it can only be queried
19:16.25BabelOuedds2760 is not programmable with a level ?
19:18.41pH5it has over/under-voltage/current and short-circuit detect, but those are stored in registers and have to be queried via OWM
19:19.03pH5the ds2760 has no way to send an interrupt to the ds1wm or pxa
19:19.19BabelOuednew trace :) http://pastebin.ca/263709 better
19:19.51BabelOuedpH5: ok so watchdog timer
19:19.58pH5ah, a nice trace
19:23.08pH5this again is an OWM reset followed by a battery read out (cc 69 0c)
19:23.35pH5register 0c is the voltage register
19:24.34BabelOuedok do you think OWM EN is connected to asic3 directly ?
19:25.42pH5I wouldn't rule out that possibility.
19:25.56pH5But somehow it would make sense to have this internal to the AIC2 chip.
19:26.22pH5do you have asic3 gpio pins switching during suspend/resume that are not yet accounted for?
19:28.03BabelOuedi have to look at this
19:28.48*** join/#htc-linux florian (n=fuchs@fsr7-0.physik.uni-siegen.de)
19:29.01florianre
19:29.20pH5hey florian
19:35.30*** join/#htc-linux rob__w (n=bob@p85.212.141.167.tisdip.tiscali.de)
19:39.49cr2pH5: common asic3_owm driver :)
19:40.11cr2i have decoded the brf6150 data.
19:40.44cr2a lot of vendor specific commands, and not only those in the bts file.
19:42.02pH5cr2: yeah, that one too. I wish asic3 would use the clk interface already, though
19:42.14pH5it is needed for the ds1wm driver
19:42.39pH5cr2: vendor specific commands during normal operation?
19:49.14cr2pH5: to init the chip, setup some radio parameters, and switch on the phone.
19:49.40lkclallo cr2.
19:49.55cr2the only missing thing is the BT interrupt.
19:50.48cr2if Kevin2 will modify "wi" to check the asic3 gpio, then it will be possible to correlate the BT command datastream with the BT interrupt time. maybe that will help.
19:51.07cr2lkcl: hi
19:51.56cr2lkcl: what is your progress with hermes ?
19:54.30cr2pH5: i think it will be not so easy to trace your CSR chip.
19:55.37lkclok, nearly everything hardware-wise works.
19:56.25lkclthe acx/wifi is a _bit_ unreliable - but i discovered the two GPIO pins (GPIO 111 and one on Bxxx i think) that can be pulled high permanently, and the rest have to be time-dependant-fricked-about
19:56.45lkclthe only major thing is suspend/resume
19:56.51cr2lkcl: the rest ?
19:56.55lkcland then it's time to move to userspace
19:57.01cr2i think it should be only the irq ?
19:57.18lkclgsm works, but there's that userspace protocol.
19:58.01lkclsorry.
19:58.22lkclgsm works, but there's that proprietary protocol
20:01.09BabelOuedpH5: ohhhh
20:02.09BabelOuedcr2: i m out of cradle and GPIOB10 trigger
20:02.25BabelOuedit s an output according to wiki
20:05.28lkclgps .... lemme look...
20:10.40cr2pH5: there is a strange udc problem on alpine
20:10.45cr2pxa27x_udc: version 21-Jul-2005
20:10.49cr2USB cmd disconnect
20:10.53cr2ether gadget: using random self ethernet address
20:10.57cr2ether gadget: using random host ethernet address
20:11.01cr2usb0: Ethernet Gadget, version: May Day 2005
20:11.01cr2usb0: using pxa27x_udc, OUT Bulk-out-2 IN Bulk-in-1 STATUS Interrupt-in-3
20:11.01cr2usb0: MAC 7e:04:c9:a1:79:06
20:11.01cr2usb0: HOST MAC e2:81:03:34:3a:58
20:11.02cr2usb0: RNDIS ready
20:11.02cr2: There are error in configuration, udc disabled
20:11.12cr2RNDIS  is disabled in the kernel config.
20:11.29cr2it seems that the driver does not reset the udc properly.
20:11.48pH5"There are error in configuration, udc disabled"
20:11.50pH5i see this too
20:11.54cr2?
20:12.03pH5usb only works after pulling the plug and replugging
20:12.05cr2not on ba/universal.
20:12.15cr2strange.
20:12.22cr2works perfectly for me.
20:12.45pH5hm. perhaps I should compare the drivers again
20:12.52pH5alpine boots from hh.org cvs?
20:12.57cr2yes.
20:13.15cr2but it's really bare-bones port
20:13.29cr2will profit from your CPLD driver
20:13.45cr2the rest of the hardware is standard
20:13.46pH5oh dear, so I have to clean it up some day
20:13.50cr2brf6150 and acx100
20:14.01cr2yes :)
20:14.51cr2htc is reusing the custom asics and that is a good thing.
20:14.56pH5the mapping between asic3 irqs and gpios is just IRQ = asic3_irq_base+GPIO_NR ?
20:15.11cr2+A/B/C/D base
20:15.41cr2but psokolovsky wants a flat 64 irq space. i think it will be a good move.
20:15.59cr2not only irq , but gpio too.
20:16.31pH5definitely
20:16.42pH5I'm just trying to do IRQT_BOTHEDGE emulation in the asic3_base driver
20:16.55cr2that will be really great.
20:17.11cr2it will reduce the wild hackery in the drivers.
20:18.10pH5but increase wild hackery in the asic3_base driver, currently
20:18.54cr2:)
20:20.50pH5until we fix the asic3 api I'll need a pointer back to the device from asic3_data
20:21.59cr2any move to a unified safe and sane infrastructure is good.
20:23.39cr2it seems soon we will need to find someboody who can configure asterisk on the phone
20:23.43cr2http://www.thetechguide.com/howto/asterisk/chanbluetooth.html
20:25.01lkclcr2: gps is on the spi interface but i haven't written a driver for it
20:25.08lkclok gotta go will be back later k?
20:25.34cr2ok.
20:31.45*** join/#htc-linux RoEn_PC (n=roen@p54A67C19.dip.t-dialin.net)
21:43.55*** join/#htc-linux g3gg0_ (n=g3gg0@ppp-62-245-161-174.dynamic.mnet-online.de)
21:49.25lkclo god not asterisk.
21:49.42lkclthe code is so bloated it takes seconds to respond.
21:50.08lkcltheres a new project replacing it apparently
21:50.15cr2lkcl: what other software supports bt headset ?
21:50.21cr2i have not found any.
21:50.32lkcltheres an alsa driver
21:50.42lkclkicking around somewhere
21:50.58cr2do you know if they will add ak4641 to asoc ?
21:51.09lkcldon't know cr2
21:51.19cr2we need a better audio switching infrastructure
21:51.34cr2the wince dll has 9 switching states
21:51.42lkclgood grief.
21:51.57cr2but it is such a bloatware to look at the asm level
21:52.28cr2wavedev calls rilgsm rilgsm calls wavedev for switching ;)
21:52.38lkclo god
21:53.09cr2and a lot of undocumented ril ioctls
21:53.27lkclok is asoc implemented as alsa switches then?
21:53.46cr2i hope this is a purpose
21:54.01cr2otherwise why create a new alsa replacement ?
21:54.14lkclcode cleanup
21:54.23cr2audio "soc"
21:54.57lkcltrouble is - there's no point designing a nice new shiny 'soc' interface if it only takes PDAs into account.
21:54.58cr2we have 3 mics and 3 speakers on a phone.
21:55.12cr2and pcm+analog paths
21:55.31cr2quite a generic setup.
21:55.48cr2that needs some centralized switching core.
21:56.35lkclok, let's create some pages describing the audio routing.
21:56.40lkclSableAudioRouting
21:56.44lkclUniversalAudioRouting
21:56.44lkcletc.
21:57.04lkclthis will give us some identifiable 'states'.
21:57.25cr2it's difficult, undocumented and different between the phones.
21:57.34lkclthat's fine.
21:57.38lkclso let's document them :)
21:58.00cr2i fear we need some real oscilloscope/frequency counter measurements on raw hardware, since we don't have the schematics
21:58.07lkcleek!
21:58.48cr2i've done something like that on jornada820 :) which gpio combination switches what PCMCIA voltage.
21:58.58cr2after desoldering the cover ;)
22:01.00cr2it is easy to measure the "external" clocks like SD/SDIO, but i don't have a good idea how to address asic3 for example.
22:01.22cr2btw, we also know something about ba/hima and magician. they have split ssp+i2s setup, but the first use an external clock.
22:02.09cr2which is somehow linked to the 32kHz asic3 control_cx clock.
22:03.10cr2i have also read something about the pcm abilities of the brf61xx chipsets (clocks, formats)
22:03.36lkcl??
22:04.04lkcli have a friend i am trying to encoiurage to help
22:04.15lkclhe does logic analysers
22:04.57cr2yes, but we need to locate the pins on the chips/motherboard.
22:05.13lkclhe can do that :)
22:05.45lkclbut to be honest
22:06.06cr2i think that the general setup is more or less the same on these pxa phones.
22:06.12lkclit easier to pitch in behind a cooperative manufacturer
22:06.35cr2not an option without nda
22:07.22cr2the SDG has got the brf6150 data/code from TI, but they were not allowed to release most inetersting data.
22:07.58cr2i see the vendor specific command init only by direct tracing the bt datastream.
22:08.33lkclsee ? easy!
22:09.00cr2so the hw measurements are the most effective tool, if they are possible.
22:09.07*** join/#htc-linux psokolovsky_ (n=psokolov@ip.85.202.124.214.dyn.sub-9.broadband.voliacable.com)
22:09.13lkclhi p
22:09.26cr2instead of digging in the windows shitty written bloatware drivers.
22:10.37cr2so we need a good concept how to address the sound switching issues.
22:10.56lkclok some names
22:11.38lkclhow many individual - ie separate - soundpaths on universal?
22:12.14lkclie can yu play sound AND do phone call at same time?
22:12.29lkclon sable you cant
22:12.51lkclon himalaya you can record phone calls
22:14.19lkclif you connect hp while bt on, you dont want to enable hp!
22:14.45lkclbut when bt off, you do!
22:19.17cr2sorry, went away for a moment.
22:19.29lkclno prob
22:19.31cr2how do you record the phone calls on hima ?
22:19.35lkclbtw am writing you an email.
22:19.41cr2ok
22:19.57lkclyou press the memo button on the side and it records the conversation!
22:20.16lkclok i tried it once, i think, and it was over two years ago, so i could be wrong.
22:20.53cr2hmm. interesting. but then it should be possible also on the ba
22:21.22lkclso on universal, is there basically only one sound path?
22:21.24lkclone source.
22:21.27lkclone destination.
22:21.36cr2so the mic on hima is connected both to the BB and uda1380
22:21.37lkclyesno?
22:21.53lkclpresumably.
22:22.08cr2but that may be the case also on the universal.
22:22.24lkclok so we have to cater for it.
22:22.41lkclthat tends to suggest a bit-field for sources.
22:22.57cr2i know 2 wince tools that deal with "audio gateway"
22:23.16cr2but i still don't understand the concept completely.
22:23.28lkclok, here's what i'm thinking.
22:23.42cr2i have disassemled one tool, but we can try to ask the author about the code.
22:23.46lkclyou have a 16-bit field describing which input source is on, and another for output.
22:23.55lkclbit 0 means 'speaker 1'
22:23.58cr2ok.
22:24.03lkclbit 1 means 'gsm output'
22:24.12lkclbit 2 means 'bluetooth'
22:24.19lkclbit 3 means 'stereo speakers'
22:24.27lkclbit 4 means 'headphone'
22:24.37lkclthat covers most devices for output
22:24.41lkclthen for input:
22:24.54lkclbit 0 means 'main mic'
22:24.59lkclyou get the idea
22:25.07cr2yes.
22:25.17cr2the wince state machine is bigger.
22:25.18lkclthen you have an 'old' state and a 'new' state.
22:25.42cr2they use whole words for the state data, and there are 3-4 of them.
22:25.55*** join/#htc-linux goxboxlive (n=goxboxli@9.80-202-160.nextgentel.com)
22:26.11lkclwith a 'sanity check' function, on a per-device basis, which, if you try to do stupid things like switch on the bluetooth while headphone is still on, then the headphone will be put into 'off' state.
22:26.22cr2yes.
22:26.25lkclthen, you have notification callbacks
22:27.39cr2my main problem is that i can't trace these locations on a running machine.
22:27.45goxboxlivehi everyone
22:27.57cr2because of the broken testwm5.exe
22:28.12cr2goxboxlive: hi
22:29.11cr2i think Kevin2 is a key person now, because he can (relatively) easily do something, that will be extremely helpful in debugging.
22:31.09lkclthe notification callbacks can be called even if you set bluetooth, for example.
22:31.38lkclso _every_ device involved with audio switching needs to know that bluetooth has just 'gone off' e.g.
22:32.59lkclhmmm *thinks*...
22:33.09cr2yes. i can even tell you the locations where wince stores this data.
22:33.35cr2i'm just not quite sure it is the same on all software versions on the same phone.
22:33.37lkclhe he
22:33.44lkcloh gawd
22:33.48cr2that's the "testwm5" problem.
22:34.12cr2you have seen that wasic3gpio traces EGPIO on the universal.
22:34.27lkclyerrsss
22:34.39cr2it is a writeonly register, so actually the shadow copy is traced instead.
22:35.27cr2and it has the same location on all universals.
22:35.52lkclthere is one for the i2c bus, as well.
22:36.08cr2maybe it's the same for the sound bits.
22:36.10lkcland the i2c initialisation, believe it or not, is done in EVERY dll (!)
22:36.34lkcland then they set that global address memory location to say 'hey guys i initialised i2c so you don't have to'
22:36.38lkclpathetic, really.
22:36.47cr2hmm. this i2c-related gpioa0 bit is a bit more complex than i thought.
22:36.56lkclnot really.
22:36.58cr2quality windows programming ;)
22:37.11lkcllike in pxa2xx-i2sound, you need a usage count, and a callback
22:37.30lkclwhen the usage count of the i2c module reaches 0, you call the 'disable' function.
22:37.40cr2i think it also has some other function too.
22:37.53lkclwhen it goes from 0 to 1, you call 'enable'.
22:38.24cr2wince wav* checks if it is 0, and if it is nothing happens.
22:39.21cr2the whole driver is very generic, and a lot of ioctls end with empty return. mic power for example.
22:39.49cr2on universal.
22:39.52lkclthat sounds very much like microsoft...
22:40.00lkclok i gotta start packing soon
22:40.16cr2ok.
22:40.32cr2goxboxlive: any news ?
22:40.45lkclso anyway: congratulations on your new htc sable and your htc hermes, cr2
22:40.58pH5cr2: what audio routing variables did you identify? on the magician's wavedev.dll I have at least one dwAudioPath and one dwCodecUseStatus
22:41.12cr2lkcl: got your e-mail. we stay in contact anyway.
22:41.22lkclit's great that you've gone and got those two devices.  when are they arriving? :)
22:41.50goxboxlivecr2: Hi, no news. I just came home. I thought about making the keymap file now.
22:41.59cr2pH5: it's memory locations, not the actual names.
22:42.09cr2lkcl: i'll check on monday :)
22:42.26cr2goxboxlive: good idea.
22:42.36lkcloh - btw... i think ... about the audio-routing idea... i think it's necessary to store the 'desired' state as well as the 'actual' state.
22:42.41pH5cr2: sure, but we certainly can't compare our memory locations
22:42.58cr2pH5: i have seen some wince source code for audio switching.
22:43.03lkclor... maybe it's not necessary... it's the headphone case that has me concerned.
22:43.07pH5cr2: where?
22:43.16lkclwhen bluetooth is on and headphone is plugged in.
22:43.30cr2one is free, the other one i'll try to press out of one guy at xda-dev :)
22:43.48goxboxlivecr2: Have you got yourself htc hermes and sable ?
22:44.06lkclyep - he has!
22:44.16pH5~hail cr2
22:44.25aptACTION bows down to cr2 and chants, "I'M NOT WORTHY!!"
22:44.26cr2lkcl: i think headphone is the most simple one, because it has only 1 analog path for mic and speaker.
22:44.45cr2goxboxlive: you can guess where they come from :)
22:45.11cr2pH5: i'll look for the ref.
22:45.39pH5cr2: great
22:45.57goxboxlivecr2: no, i have no clue
22:46.24cr2i have disassembled the code from xda-dev, and it's described in the msdn, actually.
22:46.33lkclok.  issue.
22:46.48lkclheadphone in, bluetooth audio on.  you therefore need headphone OFF.
22:47.21lkclthen, when bluetooth is switched OFF, you need to go 'oh, um, headphone is plugged in: let's switch it on, ha ha'.
22:47.41cr2)
22:48.07pH5lkcl: draw a diagram :)
22:48.26lkclso... i think that the headphone 'plugged in' information can be stored in the audio driver, such that when it receives this notification 'callback', it looks at the current state, which is 'everything is off' and goes 'oops, i really should switch headphone on, now'.
22:48.38lkclv funny pH5 - there's one in my head.
22:49.04lkcli have had a vision!  hooray!
22:51.54cr2pH5: http://www.teksoftco.com/articles/article%20006/speakerphone.htm
22:55.45pH5cr2: heh, "and only God knows what they are putting inside those devices"
22:56.26cr2yes, that's the nice world of closed-source ;)
22:56.41cr2it may be the same code as RIL_SetAudioDevices
22:56.57cr2DeviceIoControl("WAV1:", 0x001d000c, {0, 0x65, 0, ?1, 0}, 0x14}, 0x14, sp+0x18, 0x14, sp+0x10, 0)
22:57.14cr2mentioned on rilgsm.dll wiki page
22:58.02cr2is 0x001d000c (0x001d0000 | 0xc) the same as IOCTL_WAV_MESSAGE ?
22:59.20cr2it's not in my evc[34] headers
23:01.14pH5no idea.
23:01.46cr2DeviceIoControl(g_hWavDev, IOCTL_WAV_MESSAGE, &mp,sizeof(mp),&out,sizeof(out), &dwRet,0);
23:01.56cr2hmm. no.
23:02.22cr2out is DWORD, and rilgsm has sizeof()=0x14
23:04.34cr2EnableHandFreeMode
23:04.43cr2AudioPath Set to PDA
23:04.51cr2AudioPath Set to GSM
23:05.22cr2Audio path to BT mode
23:05.30cr2Audio path to Non-BT mode
23:06.01cr2CarKit : in
23:06.12cr2universal does not have carkit ;)
23:06.37cr2Speakerphone
23:09.17goxboxlivecr2: do i have to make the keymaop binary?
23:09.25cr2http://msdn.microsoft.com/library/en-us/wceddk5/html/wce50lrfmmdrvmessageparams.asp?frame=true
23:09.40cr2goxboxlive: no. gz or bz2
23:09.52cr2that's 0x14
23:10.06cr2MMDRV_MESSAGE_PARAMS
23:10.16cr2typedef struct {
23:10.20cr2<PROTECTED>
23:10.24cr2<PROTECTED>
23:10.24cr2<PROTECTED>
23:10.24cr2<PROTECTED>
23:10.25cr2<PROTECTED>
23:10.25cr2} MMDRV_MESSAGE_PARAMS;
23:12.36cr2pH5: it makes sense to put a "wi" breakpoint on this function, and check the params.
23:14.07psokolovsky_Hi!
23:14.19psokolovsky_cr2, you guys ready for .19, right? ;-)
23:14.24goxboxlivewhat is the name of this? "
23:14.36cr2psokolovsky_: yes :D
23:14.58goxboxlivei have it working r2, but i miss euro and "
23:15.04psokolovsky_cool! ;-)
23:15.11goxboxlivei dont know the name of them
23:15.34goxboxliveman this is going fast, are we realy ready for .19 allready.
23:15.35cr2goxboxlive: euro is a font issue, we have a compiled-in-kernel font now ?
23:15.50cr2i'll look for "
23:16.00goxboxliveis it quote maybe
23:16.02cr2it's shift-2 ?
23:16.21goxboxliveyes on a normal keyboard
23:16.39cr242-3
23:16.45cr2dumpkeys.
23:16.49goxboxlivei know where it is, but i dont know the english name
23:17.16goxboxlivein norwegian we call it "goose sign" :-)
23:17.18cr2quotedbl
23:17.22cr2:)
23:17.27cr2says dumpkeys
23:17.29goxboxliveahh i miss the d
23:18.28cr2so how do we load a console user font ?
23:18.42cr2or do we need to patch the kernel font ??
23:19.16cr2hmm. we can't patch, it's a unicode symbol ?
23:19.18goxboxlivenow i have all the signs working
23:19.23cr2hmm. iso8859-15
23:20.24cr2ISO8859-15  A4 hex
23:20.35goxboxlivecr2: Is there a way i can make norwegian lethers with the sym key? Like sym+o gives me a norwegian lether?
23:23.26cr2setfont.
23:23.33cr2do you have setfont in opie ?
23:23.38cr2image
23:23.58cr2how do you enter the norwegian letters on a notebook ?
23:24.29goxboxliveWe have norwegian keyboard layout
23:24.43cr2ok, but what buttons do you use ?
23:25.23cr2i can lookup in /usr/share/kbd
23:26.04lkclok sent email to kd@hh to outline the audio routing plan
23:28.24cr2goxboxlive: no-latin1.doc and no-latin1.map
23:28.30cr2<PROTECTED>
23:28.40goxboxlivethx cr2
23:28.48cr2lkcl: it's too late to think about serious things :)
23:29.41cr2<PROTECTED>
23:30.00cr2so which consolefont has euro ?
23:30.58*** join/#htc-linux skodde (n=skodde@unaffiliated/skodde)
23:34.14cr2-rwxr-xr-x root/root      2046 2006-11-19 11:38:46 ./usr/bin/setfont
23:35.09cr2so euro should be doable.
23:37.57goxboxliveok, but scr2, what about the control pad under the lcd?
23:39.58goxboxlivepsokolovsky_ Is g_ether resuming after suspend?
23:40.27psokolovsky_goxboxlive, of course
23:41.17goxboxliveso you are able to do a new ssh connection from your laptop after hx4700 has suspended, right?
23:41.37cr2i think it should break the link on suspend.
23:41.59psokolovsky_goxboxlive, new? I continue existing.
23:42.14psokolovsky_cr2, no ;-) it's not wince after all ;-)
23:42.32cr2goxboxlive: a suspended tcp connection is waiting 15minutes. what will happen if you sleep more ?
23:42.41goxboxlivehmm intresting, why doesnt our do that
23:43.07psokolovsky_cr2, well, of course if you'll wait too lomg, it'll drop sooner or later...
23:43.13goxboxlivecr2: i have never tested.
23:43.48cr2goxboxlive: we have usb host, and certainly don't deal with it properly. there is one powerup gpio, and some flags are just copied over from zaurus.
23:45.02goxboxliveok, is because of that our keyboadr doesnt resume?
23:45.35pH5cr2: you should check those flags with haret, then
23:46.53pH5good night
23:47.27cr2goxboxlive: the keyboard is a different issue.
23:47.35goxboxliveok
23:47.57goxboxlivecr2: what about the navigation pad, it doesnt work yet
23:48.31lkclok i'm out - computer off, to be packed.
23:48.41lkclseeya in 48 hours or so
23:49.06lkclbye!!!!!!!!!!!!!!!
23:49.26goxboxlivebye
23:49.51cr2lkcl: bye
23:50.03cr2goxboxlive: what device is that ?
23:50.11goxboxlive??
23:50.17cr2event1 ?
23:50.19goxboxlivethe pad bvelow the lcd
23:50.32cr2od -x /dev/input/event1
23:50.37cr2and press the buttons
23:51.03cr2did they work before ?
23:51.16cr2what events should they send ?
23:51.17goxboxliveevent1 is power button
23:51.23cr22
23:52.13goxboxliveevent2 is volume slider
23:52.35goxboxliveevent3 keyboard
23:53.02goxboxlivejust so you know. With milans keyboard driver the pad resumed after suspend.
23:55.07goxboxlivei sent a mail to todd about the debugging messages with the ACX. He contacted a guy at HP and he should fix it. They also had some updates to the driver allmost ready, and where soon ready to commit it.
23:55.27cr2ok.
23:55.33cr2volume slider ?
23:55.45goxboxliveyes, the voulme buttom on the side.
23:55.46cr2it should be all asic3 buttons.
23:56.16cr2and if it does not suspend blame psokolovsky :) it's asic3-keys driver.
23:56.22cr2or resume
23:57.07goxboxliveyes that right, also the other buttons on the side of th euni, but not the pad
23:59.00cr2i'll look.

Generated by irclog2html.pl by Jeff Waugh - find it at freshmeat.net! Modified by Tim Riker to work with blootbot logs, split per channel, etc.