IRC log for #htc-linux on 20080622

00:32.38mistadmandcordes: Whats up? Did you ever get the phone working?
01:08.27DesktopMaIf something needs tested on diamond just poke me
01:45.34DesktopMaback later, pc is about to crash :P
01:46.34DesktopMa(DesktopMan on the forums, so if there's diamond related stuff to be done pm me there works too)
01:51.31*** join/#htc-linux DesktopMa (n=DesktopM@hybellovas41.grm.hia.no)
02:31.26*** join/#htc-linux AstainHellbring (n=Administ@unaffiliated/astainhellbring)
03:20.06*** join/#htc-linux DesktopMM (n=DesktopM@hybellovas41.grm.hia.no)
03:44.59*** join/#htc-linux AstainHellbring (n=Administ@unaffiliated/astainhellbring)
04:10.06*** join/#htc-linux LunohoD_ (n=alex@e180065170.adsl.alicedsl.de)
05:32.16*** join/#htc-linux Othello__ (i=Magorium@gateway/tor/x-ad31ace212c5614b)
05:47.38*** join/#htc-linux ginge_ (n=baz@cpc6-ward3-0-0-cust579.manc.cable.ntl.com)
05:48.35*** join/#htc-linux Zoolooc (n=fredsiba@nrbg-4dbfdbee.pool.einsundeins.de)
06:42.22*** join/#htc-linux goxboxlive (n=goxboxli@160.84-48-176.nextgentel.com)
06:50.17martin__Kevin21: what do you make of the "Tiny (1K)" mappings that appear at 0x4a300000 in http://void.printf.net/~martin/kaiser-mmu.txt ? cr2 thinks they're a mistake.
07:09.19AstainHellbringso we up to anything fun?
07:09.29AstainHellbringis bored atm... waiting for server rsync to finish
07:09.41martin__still failing to trace kaiser smem access
07:12.03AstainHellbringdamn still locking up on read attempts?
07:12.14martin__?
07:12.21martin__i think you're thinking of the serial stuff
07:12.27AstainHellbringahh yah I must be
07:12.33martin__sounds like ginge has that sussed, we were just looking at the wrong uart
07:12.47AstainHellbringI've only caught little bits of stuffs here and there
07:13.02AstainHellbringwrong uart huh so which one the right one?
07:13.06martin__with the shared memory stuff, dcordes was getting lockups when trying to trace
07:13.13martin__but that doesn't seem to happen for me
07:13.21AstainHellbringhmm interesting
07:13.23martin__i just don't see any of the accesses to the smem
07:14.08martin__and it looks like the stuff dcordes saw wasn't smem
07:14.25martin__just some other stuff mapped into the same range
07:16.26AstainHellbringhmm
07:18.04martin__so
07:18.46AstainHellbringso we still don't know exactly where to watch to see whats going on fully with the radio huh?
07:18.53martin__we know where to watch
07:18.56martin__we don't see anything
07:19.04martin__mmutrace doesn't catch the accesses
07:19.12AstainHellbringso gotta tap into it differently?
07:19.32martin__don't really see how
07:20.05martin__looking at http://handhelds.org/moin/moin.cgi/HaRET_20Tracing_20Details, it seems there's one most likely explanation
07:20.39martin__which is that the wince code creates a new mapping, uses it, and then throws it away
07:20.52martin__so it's not showing up in our mmu dump
07:20.56AstainHellbringahh ic
07:22.51martin__but i've tried dumping the mmu with a data connection running
07:23.01martin__and i don't see anything extra
07:23.33martin__which leaves DMA access
07:24.31martin__but it seems odd the processor would have some peripheral that existed just to do DMA to a circular buffer in shared memory
07:25.19AstainHellbringthat does seem odd
07:37.31*** join/#htc-linux dcordes (n=akita@f048235025.adsl.alicedsl.de)
07:38.52dcordeshi
07:39.44AstainHellbringhiya dcordes
07:49.51martin__dcordes: hey
07:49.55martin__just sent you an email
07:52.04*** join/#htc-linux kiozen (n=oeichler@93.134.93.164)
08:02.08martin__ginge_: where do things stand with the serial stuff?
08:02.19martin__sounded at first like we were going for the wrong uart?
08:02.43martin__but now you're back to trying to init uart1 properly?
08:02.58ginge_well... overview:- UART1 crashes on read. UART2 initialises fine and I can open it perfectly.
08:03.07martin__oh, sweet
08:03.12ginge_How do I know if the Bluetooth device works?
08:03.27ginge_if it does AT it isnt listening
08:03.27martin__will need to do some hciattach magic to access it
08:04.29ginge_I was poking around UART1 because I was curious as to what it is
08:04.41martin__do you get the same crash for UART3?
08:04.44ginge_yes
08:04.54martin__probably 1 and 3 just aren't used then
08:05.06ginge_I guessed as much
08:05.22martin__dunno where the info that the BT was on uart1 came from
08:05.42ginge_thats what the msm7500 press release has on it
08:06.03martin__ah, and someone just assumed it was uart1?
08:06.10ginge_I guess ??
08:06.14martin__wince only opens uart2?
08:06.48ginge_not sure. I don't really know what I am looking at when mapping addresses through haret
08:06.58martin__can help a bit with that
08:07.08martin__i'm getting the hang of it now
08:07.31martin__btw it sounds like all kaiser linux developers are also building quadrocopters
08:08.09ginge_well:- http://headfuzz.co.uk/files/android/uart1.txt is the raw dump
08:08.37ginge_well:- http://headfuzz.co.uk/files/android/kaiser-uart1-trace is some poking around mapping those addresses
08:08.44ginge_and almost certainly wrong :)
08:09.20martin__you think that all maps to uart1?
08:09.43ginge_I thought so at first, but there looks to be an offset in there
08:09.58ginge_and uart1 still dies in a pool of vomit
08:10.15martin__well
08:10.27martin__hmm
08:10.31martin__lemme look at the mappings
08:14.22martin__hmm, yeah, looks like wince is using uart1
08:15.02martin__it has that 4a40e000 mapping
08:15.20martin__and no equivalent small mappings for the other two uarts
08:16.13ginge_yeah
08:16.38martin__what version of haret are you using btw?
08:17.37ginge_erm... latest I think. cant look right this second
08:17.55martin__http://handhelds.org/~koconnor/haret/haret-20080613-swp3.exe is what you want for kaiser i think
08:18.54martin__& if you use haretconsole you'll get some clearer decoding
08:19.59ginge_haretconsole? I telnet in to get these dumps. Is that what you mean?
08:20.16martin__no, there's a package called haretconsole
08:20.30martin__that telnets in for you and parses the output a bit
08:20.36ginge_ooo
08:21.17martin__http://handhelds.org/~koconnor/haret/haretconsole-0.5.1.tar.gz
08:21.33martin__unpack it and do ./console <ip address>
08:21.45ginge_nice one, cheers.
08:21.55martin__if you edit dis.py and set OBJDUMP to point to your arm-none-eabi-objdump
08:22.08ginge_okay, so hciattach on the uart2 failed to initialise anything
08:22.16martin__it'll do nice disassembly of the instructions too
08:22.47*** join/#htc-linux kiozen (n=oeichler@93.134.93.164)
08:22.48martin__ginge_: there's going to be some options and also a firmware file to load
08:23.03martin__but it really looks like the BT is on UART1 anyway
08:23.44ginge_really really looks like it
08:23.50martin__you saw traffic on your traces when you used the BT?
08:24.09ginge_I havn't traced that yet
08:24.11ginge_I will do it now
08:24.26martin__what were you doing during the uart1.txt trace
08:24.27martin__?
08:24.33ginge_switch bluetooth on
08:24.45martin__okay, and it seemed to time with that?
08:25.10ginge_yes. Nothing happened in the trace log until I clicked on bluetooth on
08:25.25martin__okay, fine
08:25.33martin__that's enough to convince me
08:26.30martin__so at the moment you're working on getting the init sequences to match up?
08:27.26ginge_yeah
08:27.41ginge_even if I get them exactly the same, it still goes wrong
08:27.50ginge_well, nearly exacltly the same
08:27.57ginge_cr2 said it was dma
08:28.04ginge_(i should be looking at)
08:28.44ginge_ahh this is so much better to read now.
08:30.09ginge_mmu dump show 0xa9a00000 is at address 0x4a40e000 the traces show matching registers at 0x4a40f000 any relevance
08:32.21martin__the uart2 registers are at phys 0xa9b00000 which is a whole 1M above uart1
08:32.50martin__so it's not that
08:38.10martin__haret gets exceptions trying to dump any of this stuff directly
08:38.28martin__which is consistent with the read hangs linux was getting
08:39.20ginge_http://headfuzz.co.uk/files/android/mmudump.txt
08:39.55martin__yeah, i get the same
08:40.13ginge_why does uart1 have a tiny 1k page?
08:40.33martin__presumably that's what the wince driver maps to talk to it
08:40.58martin__4a40e000 is probably somewhere in the address space of the driver
08:41.29ginge_it is in the bluetooth dll
08:41.36martin__yup, bingo
08:41.52ginge_but the writes are going to address + offset 0x1000
08:42.05martin__ah
08:42.13martin__interesting
08:42.17ginge_can you confirm that logic?
08:42.36martin__do you have a new trace with haretconsole style output?
08:42.59ginge_one mo
08:45.05ginge_I didnt set up the object dump yet. Would you prefer that I did?
08:46.01martin__might as well
08:46.16martin__working on reproducing this myself too
08:49.01ginge_how do I get arm-none-eabi-objdump
08:49.39martin__it should be in the toolchain you're building the kernel with
08:49.52*** join/#htc-linux okias (i=ejabberd@poseidon.kraja.cz)
08:50.06ginge_apparently not
08:50.20martin__what toolchain are you using?
08:51.10ginge_um, the one off the kaiser install guide...
08:51.34ginge_i think its called something else
08:52.07ginge_arm-none-linux-gnueabi-objdump
08:52.16martin__ah
08:52.19martin__arm-2008q1/bin/arm-none-eabi-objdump
08:52.33martin__you must have a different toolchain
08:52.36ginge_arm-2008q1/bin/arm-none-linux-gnueabi-objdump
08:52.56ginge_different build script by the looks of it
08:52.58martin__yeah
08:52.59ginge_oh well
08:54.27martin__hmm
08:54.30ginge_ok, got it
08:54.40martin__what range did you mmutrace? I can't seem to get this
08:55.04ginge_0x4a40e000 0xc000
08:55.11ginge_seemed a big enough range to start with
08:56.03martin__ah, was trying a 1k range
08:56.10martin__probably haret doesn't like that
08:56.42martin__yup, i get the same trace
08:58.35ginge_http://headfuzz.co.uk/files/android/uartnew.txt if you want to compare
09:00.04ginge_You will see in the trace these lines:-
09:00.04ginge_001.754 03fa195c: stmgeia r0!, {r3, r4} # 4a414000 =04ff3601001.754 03fa195c: stmgeia r0!, {r3, r4} # 4a414004 =003d0900which correspond to UART_MR1 and UART_MR2 functionality based on looking at the linux code
09:00.15ginge_but notice how they are in different ranges again
09:00.26martin__hmm
09:00.35martin__i logged mine but the file is empty
09:00.59ginge_I just set the terminal buffer to unlimited and directed through a redirect
09:01.01martin__ah, no, it's witten now
09:01.52martin__http://void.printf.net/~martin/bluetooth-init.txt
09:02.04martin__feck
09:02.19martin__that's not the decoded version
09:02.45ginge_I see its the same output
09:02.55ginge_pretty much line for line, if not exactly
09:02.59martin__ah, you can pipe your raw dumps through dis.py
09:03.05martin__would expect so
09:04.17martin__it sure spends a lot of time writing ffffffff
09:04.33martin__smells like shoddy coding
09:04.38ginge_I have a feeling that is a red herring
09:05.25martin__so, there is a bloody great offset isn't there
09:06.58martin__hey
09:07.04martin__hang on a minute
09:07.30martin__these writes are way beyond the original 4a40e000 mapping
09:07.36martin__that was only 1k size
09:08.20martin__4a40f000 must be a new mapping
09:09.31ginge_I was just thinking the same
09:09.31ginge_4k offset
09:09.31*** join/#htc-linux hagisbasheruk (n=hagisbas@78.148.135.168)
09:09.59martin__so it's possible this new mapping actually points to a different uart
09:10.13ginge_possibly. Like Uart2 :/
09:10.17martin__yup
09:10.34ginge_which would mean it is working pretty well, just not talking bluetooth yet
09:10.43martin__yeah
09:10.44martin__hmm
09:10.56martin__have you tried dumping the mmu with bluetooth on?
09:11.05ginge_if you run mknod /dev/ttyMSM0 c 253 0
09:11.15ginge_you can talk to the device with hciattach
09:11.24ginge_yeah I tried with on and off
09:11.28martin__ok, will try that
09:11.46martin__i've got the firmware file, it was lying around in the android emulator image!
09:12.01ginge_!?!
09:12.04martin__yeah
09:12.15martin__clearly they just used stuff off their dev board
09:12.57martin__which has the same bt
09:13.21ginge_do you have a page detailing th halibut?
09:13.30martin__no
09:13.39martin__i know it's an msm7500a
09:13.41*** join/#htc-linux Tonny (n=chatzill@set25-1-88-166-169-49.fbx.proxad.net)
09:15.02ginge_so... how do we use it
09:15.55martin__i'll look into that
09:16.26martin__just trying to work out where 0x4a40f000 maps
09:16.30ginge_can you put it up somewhere? or point me to where it is in the sdk
09:17.02*** join/#htc-linux mistadman (n=mistadma@adsl-156-124-98.msy.bellsouth.net)
09:17.15martin__ginge_: it's /etc/firmware/brf6300.bin in their image
09:18.25martin__and you need a version of hciattach that understands the TI type
09:19.36martin__the HP ipaq hx4700 uses the brf6150 chip
09:19.45martin__and that works in linux
09:19.55martin__brf6150 firmware file is also in the android image
09:20.14martin__might be some hciattach patches in their code or something
09:21.40*** join/#htc-linux pH5 (n=ph5@p5485CE66.dip.t-dialin.net)
09:23.57martin__http://handhelds.org/hypermail/hx4700-port/5/0525.html
09:26.23ginge_http://gnulinux.biz/files/Universal/firmware/TIInit_3.2.26.bts
09:26.36ginge_close enough?
09:26.50martin__well, that's for 6150
09:26.58martin__and that's from 2005
09:27.07ginge_hmm
09:27.20martin__the fact there's .bin files in the android image
09:27.30martin__suggests that hciattach has been patched more cleanly
09:27.36martin__to support a ti type
09:27.40martin__with normal firmware loading
09:28.48ginge_hmm
09:29.11ginge_so I need to build an angstrom image
09:29.36martin__with the firmware in, yeah
09:30.22martin__google for hciattach-ti-bts.patch
09:30.29martin__that was the original patch i think
09:30.49martin__http://dev.openbossa.org/trac/mamona/browser/packages/bluez/bluez-utils-3.24/hciattach-ti-bts.patch?rev=6d921003cdfe14e7b23d3024baeb4890211294d6
09:31.32ginge_yeah, looks good
09:32.06martin__like i said, think that's superseded now though
09:33.29martin__yup, 'texas' is a supported type in recent bluez
09:33.56martin__they just haven't updated the man page
09:34.21martin__i think there's an hciattach already in the angstrom image
09:34.23martin__which may be fine
09:34.58ginge_trying now
09:36.20ginge_initialisation timed out
09:36.30martin__:(
09:37.37pH5hi martin__, ginge_
09:37.39pH5are you saying hciattach will be superseded completely, or just the ti bts script upload?
09:37.49pH5(and if so, do you know, by what?)
09:38.13martin__The ti bts script thing (-S parameter) seems to have already been superseded by the 'texas' type
09:38.37martin__the firmware files may just be the bts scripts from TI
09:39.15martin__ginge_: what hciattach options did you use?
09:39.28ginge_pH5: hi
09:39.30ginge_I didn't turn on bluetooth before init. I will try again
09:39.37ginge_/dev/ttyMSM0 texas 115200
09:40.00martin__hmm
09:40.14martin__not sure if you really want bluetooth on already
09:40.18martin__surely this should turn it on
09:40.26martin__but probably there's a gpio somewhere that powers it up
09:40.41ginge_you would hope so, but there is that register space in the wiki that has BT related next to it
09:40.54martin__maybe we'll need to find that so we can turn it on in linux and have it in a fresh state for the hciattach
09:41.29ginge_the windows mobile driver send reset twice to refresh the hardware, at least to the serial port portion
09:41.54martin__yeah
09:41.58martin__hmm
09:42.05martin__we know where in the bluetooth dll that happens
09:42.19martin__maybe we should disassemble that and see what else it does at the same time
09:42.37ginge_souunds reasonable
09:44.32*** join/#htc-linux skodde (n=skodde@unaffiliated/skodde)
09:45.04martin__anyway, going to get some breakfast...
09:45.17ginge_mmm breakfast. Good idea
09:48.49martin__ginge_: try hciattach -n -s 115200 /dev/ttyMSM0 texas 115200 flow
09:49.02martin__(from /etc/init.rc in the android image)
09:49.43ginge_4th time lucky booting zimage
09:49.53ginge_the more code I cram into this kernel, the less it wants to boot
09:59.42AstainHellbringlinux can be a bitchy thing some days
10:21.01*** join/#htc-linux pH5_ (n=ph5@p5485CE66.dip.t-dialin.net)
10:23.59ginge_martin__: Initialization timed out
10:32.05*** join/#htc-linux gibi92 (n=bourgoin@obs92-2-82-230-37-168.fbx.proxad.net)
10:33.03martin__ginge_: Bugger.
10:33.50ginge_I miht try booting android, although I am not sure if it has bluetooth interface yet
10:35.17martin__ginge_: I get the same result running that on an empty serial port on my PC
10:35.31martin__it suggests there's just nothing there
10:35.35martin__or that it's powered off
10:37.57*** part/#htc-linux gibi92 (n=bourgoin@obs92-2-82-230-37-168.fbx.proxad.net)
10:47.16*** join/#htc-linux dzo (n=dzo@121.98.128.127)
10:48.57dzohi all
11:07.20ginge_is there a guide to putting together an angstrom console image with the kaiser configs already inthere
11:12.32okiasHello, have any HTC device support for Wifi?
11:38.06*** join/#htc-linux BabelO (n=Fabrice@lun34-2-82-238-28-28.fbx.proxad.net)
11:38.54okias*support for wifi under linux
12:06.19paruniversal for sure
12:08.22*** join/#htc-linux dcordes (n=dcordes@unaffiliated/dcordes)
12:11.27mistadmandcordes: Whats up? Did you ever get the phone working?
12:13.34*** join/#htc-linux ginge_ (n=baz@cpc6-ward3-0-0-cust579.manc.cable.ntl.com)
12:13.47dcordesmistadman: no
12:13.53dcordeswhat about athena?
12:14.00mistadmandcordes: Damn.
12:14.23mistadmandcordes: Well you have inspired me to write a phone driver for the Athena.
12:14.37mistadmandcordes: I have been hacking on it for a week now.
12:15.07mistadmandcordes: Good news is that is works!
12:15.13dcordesany success yet?
12:15.16dcordeswo
12:15.23dcordescongratulations
12:15.42mistadmandcordes: Bad news is I am fiddling around with getting the DPRAM to power up and reset. GPIO crap.
12:16.10mistadmandcordes: Once I get that figured it should be good to go.
12:16.56mistadmandcordes: cr2 said he was going to look in to it for me. I hope he has better luck than I had.
12:18.47dcordesok good luck with that
12:19.00mistadmandcordes: Thanks!
12:23.07*** join/#htc-linux pH5_ (n=ph5@p5485CE66.dip.t-dialin.net)
12:26.33dcordesokias: also blueangel
12:27.05dcordesmartin__: ginge_ hi. next step is to disassemble bluetooth dll?
12:27.16ginge_martin__: HaRET(2)# dump mmu 2 0xa0200000 (BT related) Virtual | Physical | Description | Flags address | address | | ----------+----------+-------------+------------------------ 4a40f000 | a0200000 | Tiny (1K) | AP=3 ?=80 91500000 | a0200000 | 1MB section | D=0 AP=1 ?=2000 b1500000 | a0200000 | 1MB section | D=0 AP=1 ?=2000
12:27.23ginge_see that address!
12:28.32ginge_dcordes: yes, I think so
12:28.43ginge_although  I just found that elusive map
12:28.53dcordesginge_: yes a0200000=BT related in memory map
12:29.19ginge_we did some traces on bluetooth init before and got in a tangle working out the offsets
12:30.40okiasdcordes: :-) but i can't find any info about blueangel wifi :-(
12:31.48dcordesginge_, martin__: probably dzo did some work on the vogue uart/bluetooth already
12:32.26dcordesfwiw
12:35.36cr2hi
12:36.00cr2martin__: which dll is 0x03fa ?
12:36.02mistadmancr2: Sup!
12:36.06cr2hi mistadman
12:36.39mistadmancr2: Did you get a chance to look into the DPRAM Power/Reset issue?
12:37.05cr2no, i've just reached the computer. need to repair the car too ;)
12:38.43mistadmancr2: If you are as good with cars as you are with hardware, then it shouldnt be a problem for you. LOL!
12:40.28cr2cars are also hardware ;)
12:40.57dcordescr2: HaRET(2)# addr2mod 0x03fa0000
12:40.59mistadmancr2: Point well taken.
12:40.59dcordesUnable to create tool help snapshot
12:44.38dcordescr2: any idea what that error is about?
12:58.47*** join/#htc-linux Othello (i=Magorium@gateway/tor/x-0082e6e3f161683c)
13:07.25martin__ginge_: new idea!
13:07.42ginge_martin__: oh?
13:07.58martin__look on your wince filesystem for \Windows\TIInit_4_2_38.bts
13:08.12martin__bts != firmware
13:08.18martin__i think we need both
13:08.27martin__and the bts is the same thing used by wince
13:08.41martin__angstrom hciattach should have the bts support built in
13:10.16martin__cook an initrd with that file in and try hciattach ttyMSM0 texas -S TIInit_4_2_38.bts
13:13.07dcordesmartin__: cooking
13:13.23martin__dcordes: you need your kernel patched to use uart2
13:13.49dcordesI'll put the bluetooth stuff, miniterm, screen, cu
13:14.42dcordesbluez-utils-3.9?
13:15.06dcordeshciattach - attach serial devices via UART HCI to BlueZ stack
13:15.09martin__not sure what version you need
13:15.14dcordesit's the latest
13:15.16martin__k
13:15.18dcordesin OE#
13:15.28martin__yeah, OE repository has this patch in
13:15.32dcordeswant any extra stuff?
13:15.37ginge_excellent can you make /dev/ttyMS0 mode 0777 and mknod c 253 0
13:15.50dcordesI'll put a script in ~
13:16.02ginge_var/lock too because of cu
13:16.44martin__then mix well and bake at 200 for 20 minutes
13:16.55dcordesI'd say 40
13:16.59dcordeshave to bake from scratch
13:17.37martin__dcordes: can you include the brf6300.bin from the android image too
13:17.41martin__in /etc/firmware
13:17.47dcordesyep
13:18.02martin__excellent
13:18.07martin__this is going to be tasty!
13:18.37dcordesyou bet
13:22.43cr2hehe. enough with the car for today. need a replacement part...
13:23.02cr2dcordes: 03fa3870
13:24.31dcordesHaRET(1)# addr2mod 0x03fa3870
13:24.32dcordesUnable to create tool help snapshot
13:24.52cr2martin__: can you check it ?
13:24.57martin__stand by
13:25.15cr2dcordes: you may have different firmware, so different addresses.
13:25.39dcordescr2: radio rom a.k.a. amss? or bt firmware?
13:26.22cr2wince rom
13:26.26martin__HaRET(1)# addr2mod 0x03fa3870
13:26.27martin__Address 03fa3870 not process specific in module: coredll.dll (03f4e000 - 03fe4000)
13:26.53martin__that's uk orange stock rom
13:28.14martin__cr2: where did you get that address from?
13:28.49dcordescr2: I'm on 'dutty's may 22nd'
13:29.43cr2strange that it's coredll
13:29.55cr2but the address looks like coredll
13:30.06cr2martin__: from your BT startup.
13:30.21martin__ah, right
13:30.22cr2001215: mmutrace 03fa3870: e8a31002(stmia) 4a413824 ffffffff (00000000)
13:32.27marajinhuh.. when xmoo says the modem works under linux console, does he mean two way communication?
13:33.10*** join/#htc-linux diogene31 (n=rj@mur31-2-82-243-122-54.fbx.proxad.net)
13:33.22cr2martin__: i think that all these smem offsets should be available through some other 0x1f* located structure.
13:33.59martin__you're thinking they appear more than once in the physical map?
13:34.09cr2APROC, QDSP, USBOTG, GPS
13:34.40cr2no, but they should be referenced from some common place.
13:35.02cr2because i don't see them hardcoded anywhere.
13:35.49martin__hmm
13:35.56martin__has anyone ever dumped the entire physical memory?
13:36.01ginge_0x9c000000 has some interesting stuff going on in there. What is that register range?
13:37.16martin__it's down in the memory map wiki page as "ffffffff..."
13:37.24cr2ginge_: kaisermemeorymap
13:37.30martin__don't see it in msm_iomap.h
13:37.37martin__what are you seeing there?
13:37.55ginge_yeah, I see that, but I saw a reference to a board that uses that address for the dma (I think) for network card
13:38.37martin__think it's being used for other dma stuff?
13:38.47ginge_th thought has crossed my mind
13:38.58martin__dump it and look for anything other than f's?
13:39.00ginge_i was poking around there looking for my log registers
13:39.13ginge_just recovering from a crash
13:42.49dcordesmarajin: no
13:43.40martin__cr2: what are you doing, disassembling wince dlls?
13:46.13cr2martin__: no, looking at the diamond 0x1f dump
13:46.29marajindcordes: So basically it mostly works the same under android and the console stuff anyway?
13:47.03marajinexcept that android isn't understanding gsm
13:47.13martin__cr2: is that up somewhere?
13:49.03dcordesmartin__: uuh yes
13:49.38martin__dcordes: stop tab completing :)
13:50.14dcordesmarajin: uuh yes. we wills tart caring about userland phone applications as soon as kernel level works
13:50.32*** join/#htc-linux JEEB (n=kanakana@a88-114-192-27.elisa-laajakaista.fi)
13:50.43marajindcordes: Yeah no worries, I was just wondering wtf Xmoo was talking about on the forum
13:50.56martin__we can read from the modem
13:50.59martin__just can't write
13:51.03marajinI know we can read from it
13:51.11martin__maybe that's what he was refering to?
13:51.13marajinXmoo's post just implied something else was doable
13:51.15marajinprobably
13:51.18marajinit's just misleading
13:51.54cr2martin__: what is 0xa0200000   1   BT related  ?
13:52.28martin__i don't know
13:52.48martin__never looked at it and dunno why it's marked bt related
13:53.16ginge_cr2: it is mapped into a virtual register 4k above the uart1 register and the bluetooth code writes to it
13:54.35*** part/#htc-linux okias (i=ejabberd@poseidon.kraja.cz)
13:55.51cr2martin__: http://wiki.xda-developers.com/index.php?pagename=DiamondMemoryMap
13:56.21cr2martin__: looks like kaiser, but there is 1 difference -> 0xa5e00000   0x02000000   0x20  
13:56.34martin__what chip is the diamond?
13:56.36dcordescr2: pmic?
13:56.49cr2but it may have been some debug card.
13:56.58cr2don't know.
13:57.46martin__cr2: could i see a pdump of the shared memory?
13:57.58martin__would be useful to compare
13:59.59cr2martin__: i guess you'd ask DesktopMa
14:00.23martin__DesktopMM: ping
14:01.06martin__Ah, MSM7201A.
14:01.42martin__dcordes: how's that initrd doing?
14:04.35*** join/#htc-linux Othello__ (i=Magorium@gateway/tor/x-8c60bc53b62f80aa)
14:05.40cr2martin__: what is sku ?
14:07.01martin__?
14:07.32martin__where?
14:08.02cr2htc phones
14:08.17cr2hehehe. mickeysoft goes security
14:08.21cr2<PROTECTED>
14:09.45martin__sku usually means some sort of product number
14:10.32cr2ok
14:11.57cr2RAPH300
14:12.05cr2what's that ?
14:12.36cr2interesting. HTC_DrvEscape:LCD_REQUEST_PMEM...
14:13.10marajinRAPH300 is just the hardware design code from HTC I think
14:13.20marajinIt's a raphael codename version 300
14:13.29Kevin21martin__: arm v6 processors don't have 1K pages.  They changed the layout of the mmu table and haret doesn't know how to parse the new format.  When you see 1k pages, you probably have a 4k page with a bunch of new flags set.
14:13.43martin__Ahhhh.
14:14.04martin__is there any chance of fixing that or is it all undocumented?
14:14.25Kevin21martin__: So, top item on the "why don't traces work" list is not having all the virtual addresses.  Since "dump mmu" doesn't work, there is a good chance you don't have all the addresses.
14:14.45cr2hi Kevin21
14:14.46martin__dump mmu works, apart from there sometimes being 1k pages
14:15.23Kevin21martin__: It is fully documented.  However, it basically needs a rewrite of several of the mmu functions in haret.  It'll take some time to do.
14:15.25martin__but i guess some of those may actually be 4k pages pointing to smem that we're misreading
14:15.42cr2Kevin21: mach-types update for haret needed.
14:15.46cr2Trying to detect machine (Plat='PocketPC' OEM='HTC Touch Diamond P3700')
14:15.46cr2Wince reports processor: core=MSM7201A-528MHz name=??? cat= vend=QUALCOMM
14:15.48Kevin21martin__: It outputs misleading info.  It isn't just the 1k pages either.
14:15.53Kevin21cr2: Hi.
14:16.02martin__Kevin21: Okay.
14:16.06dcordesmartin__: there was a problem. had to remove already built stuff (tempdir) and now updating metadata
14:16.21martin__dcordes: k
14:17.04martin__Kevin21: let me know if I can do anything to help with it. We're pretty stuck on Kaiser without solid tracing so happy to do what I can to contribute to haret.
14:17.40Kevin21cr2: Can you send a patch over?  Do you want commit access to haret?
14:17.50martin__I guess this'll be applicable to all the new devices coming out anyway...
14:18.56cr2Kevin21: no, i don't have commit access.
14:19.05marajinman I oughta take a crash course in this shit, I can code but I have NFC about stuff this low-level
14:19.49Kevin21martin__: The docs are in the ARM v6 guide available from the main arm site.  Someone just needs to code it all up.
14:19.57cr2martin__: does it say something to you ->
14:20.01cr2smem_proc_comm_get_status
14:20.01cr2smem_proc_comm_send_cmd
14:20.01cr2smem_proc_comm_set_status
14:20.39Kevin21cr2: Do you want commit access?  I have no idea how to get it to you - I haven't been able to raise any of the admins at hh.org.  However, I can setup a repo on linuxtogo.org.
14:21.14martin__cr2: proc_comm is one of the smem channels between the a9 and a11
14:21.30martin__cr2: and gets used for various miscellaneous stuff
14:21.35martin__as i understand it
14:22.32martin__haven't really looked at it - it's just on the list as one more thing that'll hopefully work when we've figured out the smem writes
14:22.39cr2%T{4=Dying,5=Dead,6=Buried,7=Slpg,39=Awak,0=Rung,1=Runab,2=RunBlkd,3=RunNeeds}
14:22.50cr2Kevin21: ok, we should think about it.
14:23.46martin__cr2: It's some sort of process management interface or the arm9 I think
14:24.36cr2martin__: ok.
14:25.02dcordesproc_comm is an smem channel?
14:25.55martin__Kevin21: Okay. If I get a chance I'll look through the current tracing code and see if I can make sense of it, then see what would have to change for arm6.
14:26.19martin__dcordes: it uses the smem, I thought
14:26.26martin__functions for it lying around the smd code
14:26.31Kevin21martin__: I don't think there is any change needed to the tracing code.  My understanding is that the change is in "dump mmu" and related "mmu" functions.
14:26.43martin__dunno if it uses the same sort of channel
14:26.49martin__Kevin21: ah, okay
14:27.06dcordesmartin__: wasn't aware it has an own channel
14:27.12martin__if it's just a matter of understanding the dump correctly that's probably a lot easier
14:27.24dcordesok build started finally
14:27.31dcordesI hope it will get the bluetooth stuff right
14:34.34Kevin21Seemy hermes died outright.  I think I may have let the battery get too low.
14:34.43Kevin21s/Seemy/Seems/
14:34.58martin__cr2: proc_comm is a mechanism for sending commands to the arm9
14:35.16martin__see arch/arm/mach-msm/proc_comm.h for a list of commands
14:35.31martin__smd.c in the same directory for implementation on MSM7500A.
14:35.42martin__basically you write the command to somewhere in shared memory
14:35.59martin__and write a register somewhere to notify the ARM9
14:36.15martin__and when it's done it writes something back and you get an interrupt
14:37.20martin__there's power control, nvram access, RTC stuff, battery checks, RPC stuff, and maybe some GPIOs out there too
14:37.53martin__currently none of it works on vogue or kaiser
14:38.11dcordesnot on vogue either? I thought dzo uses it
14:38.26martin__int msm_proc_comm(unsigned cmd, unsigned *data1, unsigned *data2)
14:38.27martin__{ return -1;
14:38.27martin__}
14:38.33dcordeshe added vogue-hw.c which enables pm vibration
14:38.38dcordesand I think that uses proc comm
14:38.42dcordesmartin__: where's that from?
14:38.46martin__vogue-smd.c
14:38.51dcordesin our tree?
14:38.53martin__yeah
14:39.00martin__maybe he's done some new stuff since then
14:39.04dcordesthat's not uptodate at all with dzo's stuffs
14:39.07dcordesyes
14:39.07martin__k
14:39.21dcordesOTE: Running task 688 of 1776
14:39.28martin__it's probably a pretty easy thing for someone to get working
14:39.43Kevin21Nope - my Hermes is okay - just needed to sit in the charger a bit longer.
14:40.02martin__dcordes: if you want a project...
14:40.18dcordesmartin__: http://it029000.massey.ac.nz/vogue/ dzo keeps his latest patches and builds there
14:40.57dcordesI tried enabling proc comm (just merged vogue-smd.c, vreg.c)
14:41.02dcordesdidn't work
14:44.25martin__won't do anything for a kaiser build
14:44.37martin__you'd have to port changes over from vogue-smd to kaiser-smd
14:46.11martin__anyway looks like all proc_comm stuff is still commented out in http://it029000.massey.ac.nz/vogue/diffs
14:46.23dcordesI put the vogue-smd stuff into kaiser-smd
14:46.57dcordesmartin__: but what about the /arch/arm/mach-msm/clock.c
14:47.10dcordesfile? there's a lot of proc changes
14:47.25martin__yeah, they're all commenting out the msm_proc_comm calls
14:47.32dcordesoh ok
14:48.17dcordesso vogue-hw.c is not using proc_comm I assume then
14:50.10dcordesI wonder where it went in his latest patch
14:50.37dcordesit's in the Makefile but the file is not being created in that patch
14:50.47martin__yeah i just saw that
14:54.17dcordesmartin__: http://linuxtogo.org/~lgorris/somedzopatch.diff
14:55.14*** join/#htc-linux ginge_ (n=baz@cpc6-ward3-0-0-cust579.manc.cable.ntl.com)
14:57.39dcordesguess he modified vogue-hw.c but didn't re git-add it before he git-diffed
14:58.28dcordestask 837 of 1776
14:59.04martin__yeah, the vibrate stuff in vogue-hw uses msm_proc_comm
14:59.16martin__so he's got at least the basics of it working
14:59.37dcordesbut where are those basics taking place?
14:59.44martin__the clock stuff is still commented out but that may only be good for halibut
14:59.47*** join/#htc-linux skodde (n=skodde@unaffiliated/skodde)
15:00.27martin__dcordes: msm_proc_comm() in vogue-smd.c
15:04.41dcordesmartin__: that functions has two data and one command channel
15:05.01dcordesbase+PC_COMMAND?
15:05.52dcordesis base=smem base?
15:12.02*** join/#htc-linux kiozen (n=oeichler@93.134.93.164)
15:25.35*** join/#htc-linux dcordes (n=dcordes@unaffiliated/dcordes)
15:30.30dcordesI'll be back when the build is done
15:46.49cr2martin__: still here ?
15:55.28*** join/#htc-linux Steiniii (i=Steiniii@cpe90-146-27-97.liwest.at)
15:55.42Steiniiihi community
15:56.39Steiniiiwhat version works with my HTC BlueAngel?
16:17.03marajinheh
16:17.08marajinthe joys of the build process
16:26.08*** join/#htc-linux kiozen (n=oeichler@93.134.93.164)
16:28.18*** join/#htc-linux dcordes (n=dcordes@unaffiliated/dcordes)
16:37.05DesktopMaoff to work, back in a bit
16:40.35dcordescr2: did you have some kaiser owner specific thing?
16:45.48dcordesbuild almost done
16:46.31marajinwhat're you building? seems to be taking a good while
16:48.04dcordesmartin__: linuxtogo.org/~lgorris
16:48.40dcordesit's the image with cu screen bluez-utils but it's in tar.gz and doesn't have the firmware becfause I g2g quick later
16:49.44marajinHuh, but you've had it building forlike hours
16:56.11martin__cd
16:56.18martin__er, wrong terminal :)
16:56.21martin__hey guys
16:57.18martin__dcordes: will give that a try
16:57.21martin__cheers
17:02.12cr2martin__: http://wiki.xda-developers.com/index.php?pagename=DiamondMemoryMap
17:03.44cr2dcordes: i've made a mistake and edited http://wiki.xda-developers.com/index.php?pagename=Kaiser_IRQ
17:03.51cr2dcordes: have a look :)
17:26.51*** join/#htc-linux Tonny (n=chatzill@set25-1-88-166-169-49.fbx.proxad.net)
17:27.47*** join/#htc-linux pikapika (n=pikapika@mar75-8-88-164-227-147.fbx.proxad.net)
17:28.20pikapika:)
17:29.28*** join/#htc-linux AstainHellbring (n=Administ@unaffiliated/astainhellbring)
17:50.37*** join/#htc-linux dcordes_ (n=dcordes@unaffiliated/dcordes)
17:52.25dcordes_martin__: dunno what went wrong but image is broken
17:52.31dcordes_will fix in an hour when I'm home
17:53.37martin__k
17:54.16dcordes_martin__: did you look at kaiser irq upgrade?
17:54.34dcordes_1 is smd tx irq and 2 is smd rx irq according to it
17:55.02dcordes_do we have it that way in the kaiser-smd.c?
17:55.20martin__i wasn't sure if there were seperate irqs for each channel
17:55.37martin__anyway, busy for a while...
17:57.18dcordes_bbl
18:12.08*** join/#htc-linux kiozen (n=oeichler@93.134.93.164)
18:46.30*** join/#htc-linux kiozen (n=oeichler@93.134.93.164)
18:49.11*** join/#htc-linux Sliss__ (n=chatzill@250.110-65-87.adsl-dyn.isp.belgacom.be)
19:01.38*** join/#htc-linux marmotta (n=skodde@unaffiliated/skodde)
19:20.17*** join/#htc-linux pleemans (n=peter@d51A5E76A.access.telenet.be)
19:24.44*** join/#htc-linux DesktopMa (n=DesktopM@c09EC653E.static.bluecom.no)
19:55.43*** join/#htc-linux hagisbasheruk (n=hagisbas@78.148.135.168)
20:20.20*** join/#htc-linux LunohoD_ (n=alex@e180072235.adsl.alicedsl.de)
20:36.27*** join/#htc-linux Zoolooc (n=fredsiba@nrbg-4dbfdbee.pool.einsundeins.de)
20:45.57*** join/#htc-linux mistadman (n=mistadma@adsl-156-124-98.msy.bellsouth.net)
20:50.16lamahttp://youtube.com/watch?v=TeibTojapCg&feature=related  (?)
20:51.14*** join/#htc-linux BabelO (n=Fabrice@lun34-2-82-238-28-28.fbx.proxad.net)
20:52.00*** join/#htc-linux BabelO (n=Fabrice@lun34-2-82-238-28-28.fbx.proxad.net)
20:54.01Kevin21dcordes_ / martin__:  I decided to take a look at armv6 mmu stuff.  I should have something in a little while.
20:55.30DesktopMalama: is that video made in the 80s? :P
20:56.44lamawith VHS :P
20:57.15*** join/#htc-linux AlGe (n=alge@chello080109231226.4.uni-klu.teleweb.at)
20:58.42DesktopMaindeed
21:00.18cr2DesktopMa: http://wiki.xda-developers.com/index.php?pagename=DiamondMemoryMap
21:01.14DesktopMalooking good. wish I could help fill it out but I'm not entirely up to speed yet
21:01.36cr2mistadman:         .fifosize       = 64, ?
21:02.33cr2DesktopMa: i've added some useful data here http://wiki.xda-developers.com/index.php?pagename=Kaiser_IRQ
21:03.01cr2DesktopMa: but it was a mistake. maybe it's wrong for kaiser :)
21:03.55DesktopMahehe
21:05.26mistadmancr2: No thats the AT ctrl size. Fifos Tx 512/ Rx 512
21:05.44cr2512 bytes
21:06.50cr2mistadman: do you get the irqs ?
21:06.56mistadmancr2: Are looking at my code from yesterday?
21:07.01cr2yes
21:07.09mistadmancr2: Yes.
21:08.01mistadmancr2: In the code I showed you it didnt define .fifosize. Why did you think it was 64?
21:08.54mistadmancr2: Here is the code again. There was an error in the last post: http://rafb.net/p/oCkQHS28.html
21:09.39mistadmanhttp://rafb.net/p/TVIhUT17.html
21:09.46cr2static struct uart_port dpram_port = {
21:09.50cr2<PROTECTED>
21:09.54cr2<PROTECTED>
21:09.54cr2<PROTECTED>
21:09.54cr2<PROTECTED>
21:09.54cr2<PROTECTED>
21:09.55cr2<PROTECTED>
21:09.55cr2};
21:12.05cr2you register only 1 irq ?
21:12.17mistadmancr2: I didn't think it mattered. My code seem to run fine. I thought it was tty buffer definition. Didn't think it would matter to change unless it affected performance.
21:12.47cr2dpram_remove() doesn't free the irq(s).
21:13.13mistadmancr2: Yeah just for AT: GPIO 51   00080000   DPR-AT   I   FE   1  
21:13.48mistadmancr2: Good point about dpram_remove().
21:14.13cr2there are more DPR-* irqs, but then you'd take care of the other registers too.
21:14.21cr2control registers.
21:14.48mistadmancr2: Didnt catch that. Especially since I have never planed on unloading the driver.
21:15.15mistadmancr2: Yes
21:15.22cr2ok.
21:15.27mistadmancr2: I was focusing on AT command for now
21:15.38cr2yes.
21:15.43cr2so this driver works ?
21:16.24mistadmancr2: Yes and no. I can see incomming calls comming thru
21:16.39mistadmancr2: ril doesnt respond though
21:17.16mistadmancr2: And I seem to not be able to send commands to the dpram. It doesnt respond.
21:17.46mistadmancr2: I also havent figured out the right GPIOs for reset or power.
21:17.50cr2can you connect with 'cu' ?
21:18.02mistadmancr2: cu?
21:18.32cr2yes
21:18.50cr2does the dpram generate irqs ?
21:18.54mistadmancr2: Not sure what you mean... :-/
21:19.14mistadmancr2: What is a cu?
21:19.16cr2you have an irq handler.
21:20.09cr2http://packages.debian.org/en/etch/cu
21:20.58mistadmancr2: I got it. No I was using the Android built in app.
21:21.07mistadmancr2: /etc/init.testmenu
21:22.05mistadmancr2: Base on my mmu trace, once the dpram is powered. It response with "Command Interpreter Reay"
21:22.29mistadmancr2: I was trying to get to the point where the dpram was init correctly.
21:23.08cr2AT Command Interpreter Ready comes after successful reset.
21:23.15cr21-3 sec
21:24.40mistadmancr2: Another reason I wanted to make sure the DPRAM was correctly initialized was because the 0x3fce register is not responding correctly based on my mmu trace.
21:25.27mistadmancr2: You are suppose to update it with the last buffer address used during tx.
21:25.46mistadmancr2: I believe it tells the DPRAM were to look for next command.
21:26.01mistadmancr2: When I write to it, it doent change.
21:26.16mistadmancr2: Everything else is perfect
21:26.55mistadmancr2: The 0x3fc6 register responds when the DPRAM is ready for next command.
21:27.07mistadmancr2: At least I think.
21:27.39cr2hmm. i didn't look at rilgsm...
21:27.46cr2ok.
21:28.29mistadmancr2: I think this is where dcordes is stuck. On the kaiser he can receive but not transmit.
21:29.14mistadmancr2: Does haret mess with any of the GPIOs or IRQs when boot in to the Linux Kernel?
21:29.20mistadmancr2: Because...
21:30.04mistadmancr2: If Windows Mobile initializes the hardware correctly, I would think it would work in linux.
21:30.25DesktopMaseems that way
21:30.26mistadmancr2: If this is the case then I may be missing something in my driver.
21:30.38mistadmancr2: Just not sure.
21:30.40DesktopMasince on some phones you can keep conversations going while rebooting into android :P
21:30.56cr2you can't rely on wince anyway.
21:31.18cr2the phone should be able to resume from sleep too
21:31.31cr2hehe. ati resume ;)
21:31.33mistadmancr2: Am almost 100% sure my driver operates just like the MMU Trace.
21:31.54mistadmancr2: Unless haret is not showing me something...
21:33.55*** join/#htc-linux pigeon (n=pigeon@60-241-137-179.static.tpgi.com.au)
21:35.17mistadmanI am switching over to my 3G card. I'll be right back...
21:53.39*** join/#htc-linux dzo (n=dzo@121.98.128.127)
22:03.56cr2hi dzo
22:23.41Kevin2Anyone want to be a guinea pig?  http://www.handhelds.org/~koconnor/haret/haret-20080622-mmu.exe
22:24.06Kevin2I coded up arm6 mmu table parsing purely from the spec - I can't test locally.
22:25.34DesktopMacan test it on diamond if you want
22:25.56cr2DesktopMa: yes, you are the best candidate :)
22:26.33DesktopMaam I supposed to try to run something
22:26.39DesktopMaor just see what it says
22:26.51cr2dump mmu
22:27.32DesktopMaand the mmu dump command is "dump mmu"? :P
22:27.52cr2yes.
22:28.06cr2you've already did it with the old haret.
22:28.36DesktopMadifferent pc so didn't have the txt file :P
22:29.31DesktopMahmm no files created
22:33.15cr2earlyharetlog.txt
22:33.28cr2and add 'dump mmu' to default.txt
22:33.31cr2boot :)
22:33.47cr2i.e. Run with 'default.txt'
22:36.25DesktopMaright. www.auby.no/files/diamond/mmu.txt
22:37.38cr2looks much better.
22:37.45cr2Kevin2: ping
22:39.11cr2Kevin2: APX XN and T probably need some help text in the header.
22:40.31Kevin2cr2: pong
22:40.49cr285900000  | 15000000 | 16MB section | CB AP=1 T=7 ?=100000
22:40.53cr2looks strange
22:41.16cr2does v6 support 16MB pages ?
22:41.59cr2somehting is broken here.
22:42.00Kevin2Yes.  And I think wince isn't programming it correct (hence the ?=)
22:42.18cr2a6700000  | 02000000 | 16MB section |    AP=1 T=7 ?=100000
22:42.18cr2a6800000  | 02000000 | 16MB section |    AP=1 T=7 ?=200000
22:42.44cr2it's 1MB virtual offset
22:43.20Kevin2Hrmm.  That can't be right..
22:45.51Kevin2Yeah, it's a bug.
22:49.33Kevin2Can you try: http://www.handhelds.org/~koconnor/haret/haret-20080622-mmu2.exe
22:50.06Kevin2cr2: Sure - I'll describe APX, XN, and T once someone describes them to me.  :-)
22:51.22DesktopMawww.auby.no/files/diamond/mmu2.txt
22:55.11Kevin2DesktopMa: Thanks.  cr2 - how's it look?
22:59.29*** join/#htc-linux hagisbasheruk (n=hagisbas@78.148.135.168)
23:00.21Kevin2So, XN is no-execute, APX effectively means read-only (even from privileged mode), and T is TEX..
23:02.33cr2Kevin2: looks good now
23:02.43cr2Kevin2: TEX =2 or 7 it seems
23:18.57cr2mistadman: the phone/dpram power/reset are gpio85 and 2 cpld1 gpios.
23:19.42cr2mistadman: and the pxa alt/dir/level settings for the irq gpios.
23:23.32Kevin2http://www.handhelds.org/~koconnor/haret/haret-20080622-mmu3.exe   ---   just improves the header and APX reporting.
23:27.53DesktopMawww.auby.no/files/diamond/mmu3.txt
23:29.07cr2nG: Not-Global
23:29.44*** join/#htc-linux marex (n=marex@85-132-216-250-eth3-gwfm10-user.802.cz)
23:30.15cr2hm. wm9750 :)
23:30.39marexcr2, hello ... long time no se ;)
23:31.05cr2:)
23:31.07*** join/#htc-linux mistadman (n=mistadma@32.129.172.75)
23:32.05cr2mistadman: dpram power understood.
23:32.31mistadmancr2: Cool.
23:32.40cr2mistadman: btw, it should be possible to enable some debug dumping to rilgsm
23:32.43mistadmancr2: Now help me understand! LOL
23:33.18mistadmancr2: How does it work?
23:35.16mistadmancr2: Nevermind, looking thru IRC Logs now. BRB..
23:36.46cr2cpld(2,2)=1, msleep 10, gpio85=1, (it was power, now reset) , cpld(2,4)=1, msleep 400, cpld(2,4)=0, setup_all_dpram_pxairqs()
23:36.52cr2for powerup.
23:37.21mistadmancr2: Man, how did you figure that out? Haret?
23:37.29dzohi cr2
23:38.07cr2cpld(2,4)=1, msleep 400, cpld(2,4)=0, msleep 10, gpio85=0, cpld(2,2)=0
23:38.09*** join/#htc-linux ali1234 (n=al@62.24.214.38)
23:38.11cr2for powerdown.
23:38.23cr2no. it's from rilgsm
23:38.46dzoGot my vogue working fairly well now, been using it as a phone for a few days running android.
23:39.03cr2you also  need to "unsetup" the pxa irq gpios on dpram release.
23:39.11cr2dzo: nice.
23:39.28mistadmancr2: Ok, will do.
23:39.50cr2dzo: i've added the diamond irq descriptions to kaiser ;) are they the same on vogue ?
23:39.56mistadmancr2: Did you reverse engineer rilgsm on WM?
23:40.07cr2dzo: http://wiki.xda-developers.com/index.php?pagename=Kaiser_IRQ
23:40.14cr2mistadman: yes.
23:40.30mistadmancr2: What tools did you use?
23:40.30dzoanybody got SD working on msm, it doesn't seem to generate interrupts. yes, IRQs are very similar.
23:40.31cr2mistadman: you must be new in this field ? :D
23:41.01cr2dzo: and the M2A irqs ?
23:41.22mistadmancr2: Yes. but I have done reverse engineering, just not on an ARM Platform.
23:41.26dzoi just changed irq 6 on the wiki, I know how this works, its for proc_comm.
23:42.01mistadmancr2: But I am a fast learner. ;-)
23:42.11dzoA11 writes to SMEM then waits for irq6 from A9.
23:42.13cr2dzo: DEX in my books
23:42.17dcordesdzo: are all the items in front of the bracket controlled through proc_comm?
23:42.30dzoyes, thats the wince name for it.
23:43.11cr2mistadman: i have an old _licensed_ version on ida
23:43.15dzoyes and more, battery status, audio path, charging.
23:43.17cr2s/on /of /
23:43.39mistadmancr2: Ok, thats what I need to know.
23:43.50dcordesdzo: also backlight and display power?
23:43.58cr2dzo: what about pmic ?
23:44.29mistadmancr2: And run it directly from the target platform (the pda)?
23:45.03dzono backlight is in MSM_CLK_CTL on vogue, I added it to the Titan memory map wiki.
23:45.17cr2mistadman: no, i've dissected the rom.
23:46.05dzoits CLK_CTL+0x54 and 0x58.
23:46.06cr2mistadman: you can't debug the kernel on the target with ida. my 4.8 version can't do target debugging even for the user apps.
23:46.36cr2dzo: should be the same on kaiser i guess.
23:46.40mistadmancr2: And you can load rom images/parts/DLLs in to Ida?
23:46.53dcordesdzo: cr2 clock control is same on kaiser as on vogue?
23:47.40DesktopMado phones with the same chipset map registers differently? or only for other io not supplied by the chipset
23:47.44cr2+0x58      orr 0x100. bkl ?
23:47.50mistadmancr2: One last stupid question. Is there an api for accessing CPLDs?
23:47.51dzopmi is done by proc_comm and also another mechanism called smsm_proc_comm in the android kernel that allows power collapse.
23:48.33cr2mistadman: yes, it's already implemented in the athena code.
23:48.37dzocr2: yes and the 12 lsbs of 0x58 do brightness.
23:48.47*** join/#htc-linux marex (n=marex@85-132-216-250-eth3-gwfm10-user.802.cz)
23:48.58dzos/0x58/0x54/
23:49.06cr2dzo: ok.
23:49.12marexcr2, hi, btw j/w is there any tool for operating with msm devices under linux ?
23:49.19dcordescr2: do you put that in wiki?
23:49.28marexcr2, I want to tinker a bit with msm6250 based device
23:49.32cr2dzo: do the SD CLK bits match ?
23:49.48marexcr2, so ... is there any flasher for msm7200 based devices that runs under linux ?
23:49.55cr2marajin: msm6250 is the phone on universal
23:50.10cr2marex: msm6250 is the phone on universal
23:50.17marexcr2, msm6250 is also core cpu of siemens SXG75 ;)
23:50.26marexthe software runs on that ...
23:50.35cr2marex: the only linux flasher that works is for hermes. afair.
23:50.35dzoto completely switch off the display you have to do some proc_comm stuff, disable the mdp and mddi clocks and set some remote MDDI registers.
23:50.48marexcr2, can you point me at it ?
23:51.13marexhmm ... that's samsung based
23:51.19marexprobably no use for me
23:51.20cr2marex: there was a guy who wanted to work on sxg75. he posted some interesting links to modaco.
23:51.59cr2marex: the msm6250 phone rom for universal is decoded, but it's a PITA.
23:51.59marexcr2, do you have irc history or the links ?
23:52.10marexI see ... :S
23:52.32*** part/#htc-linux ginge_ (n=baz@cpc6-ward3-0-0-cust579.manc.cable.ntl.com)
23:52.32marexI never wrote cpu support before though :p
23:53.08cr2dzo: the MDDI regs are panel dependent, but it should be relatively easy given some patience to document it to a better extent than what i've done so far.
23:53.27dzothere are at least 3 SD clocks all controlled differently as far as I can see. A0 and A4 are the host clock , enabled by bit 7 in 00 (from memory)
23:54.21dcordesdumping kaiser mmu..
23:54.23cr2ok.
23:54.32cr2dcordes: good.
23:54.52cr2dzo: btw, haret supports armv6 mmu decoding now.
23:55.52dzocr2: yes, I just turn off the backlight for now, how much power would it save to do it properly, there is a really useful proc_comm call that tells you the current in and out of the battery. seems to me that the radio uses so much power that little things on the A11 side won't make much difference.
23:56.29dzodid it not before?
23:57.10dzotracing LDM and STM is really useful on the latest haret, thanks kevin.
23:57.15cr2dzo: the map attributes were wrong before. now it knows about TEX, APX & co.
23:57.43dzothats good, does kaiser trace OK now.
23:58.28cr2mistadman: do you have gps and bt working ?
23:58.30dzokaiser people should be tracing MSM_CSR to find the A2M locations for SMEM buffers.
23:58.53dcordesmartin__: new console image done. only need the firmware now. what's the filenames we need?

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