IRC log for #htc-linux on 20090704

00:01.27*** join/#htc-linux rafyvitto (n=rafyvitt@adsl-72-50-48-43.prtc.net)
00:13.27*** join/#htc-linux swc|666 (n=infidel2@unaffiliated/swc666/x-4934821)
00:17.02*** join/#htc-linux [1]Captnoord (n=Captnoor@dc5147a47b.adsl.wanadoo.nl)
00:26.30*** join/#htc-linux maejrep[w] (n=madCoder@smtp-n.myyearbook.com)
00:28.48*** join/#htc-linux fnord_ (n=fnord@24-151-90-116.static.nwtn.ct.charter.com)
00:49.37*** join/#htc-linux TommyBres (n=TommyBre@unaffiliated/tommybres)
00:50.23tmzttb
00:50.30TommyBresyessir
00:50.32tmztwhat's the problem?
00:50.59TommyBresi try to fastboot, "fastboot flash userdata c:\nandroid\data.img"
00:51.54TommyBresand it gives errors like, "Failed (data transfer failure (Too many links))"
00:52.08TommyBresor "FAILED (command write failed (Unknown error))"
00:53.43TommyBresbut now i gotta go for a bit... i'll be back later :\
01:45.23*** join/#htc-linux LTxda (n=anon@unaffiliated/ltxda)
01:55.53*** join/#htc-linux BabelO (n=fcr@unaffiliated/babelo)
02:10.00*** join/#htc-linux replican (n=replican@adsl-074-183-167-249.sip.bhm.bellsouth.net)
02:49.36*** join/#htc-linux surge (n=surge@pool-98-118-158-217.bflony.fios.verizon.net)
03:08.57*** join/#htc-linux mrmoku|a` (n=mrmoku@ppp-93-104-33-177.dynamic.mnet-online.de)
03:57.47*** part/#htc-linux TommyBres (n=TommyBre@unaffiliated/tommybres)
03:59.05*** join/#htc-linux skodde (n=skodde@unaffiliated/skodde)
04:24.42*** join/#htc-linux Shinto (n=John@f048048066.adsl.alicedsl.de)
04:57.27*** join/#htc-linux droid0011 (n=mc@p4FDCD713.dip.t-dialin.net)
05:45.40*** join/#htc-linux Echo31 (n=olivier@mir31-4-82-240-194-54.fbx.proxad.net)
06:06.22Echo31good morning
06:07.08xsachahi
06:10.34cr2morning
06:10.57cr2Echo31: the ad7877 driver was written by Kevin2
06:12.29Echo31cr2: yes, but i used only in the specific boards arch/blackfin/mach-bf548/boards/
06:13.13Echo31cr2: I has to implement SPI ?
06:13.23cr2Echo31: not this one
06:13.49cr2the pxa2xx_spi driver already exists
06:14.26cr2Echo31: can you post the full link to blackfin driver ?
06:14.48cr2eh ? android hardcodes device names ? http://www.netmite.com/android/mydroid/cupcake/system/core/init/devices.c
06:17.29xsachacr2: im having a problem with my battery. android finds the battery status (eg. charging) but doesnt find capacity :( im just registering all my PROPs as a normal power supply. does it look elsewhere?
06:18.08cr2xsacha: i'm not an android expert
06:18.12xsacha:( k
06:18.27cr2xsacha: did you actually trace the raw i2c data ?
06:18.35xsachahuh?
06:18.49xsachai looked at what winmo sent/received
06:19.01cr2mmutrace or trace for pxa
06:19.03cr2yes
06:19.10xsachammutrace? no idea
06:19.19xsachai read zylonite_battery.dll
06:19.30cr2how did you "looked at what winmo sent/received"
06:19.38cr2ok
06:19.40xsachawent to the call to xllipi2cwrite/read
06:19.57xsachaand looked at parameters, slave address is third parameter (0x34)
06:20.05cr2you can also watch what is sent over the wire
06:20.09xsachaand it send 0xD221 for temperature
06:20.19xsachaoh ok, how do i do that?
06:20.33cr2is i2c the same location as on pxa270 ?
06:20.51xsachanot sure, im using i2c_pxa controller.. is it based on 270?
06:22.36xsachaa lot of things i need use i2c so watching wire would be useful
06:29.30Echo31cr2:  for example the cm_bf548 used AD7877  but it is not arm. The magician uses the pxa2xx_spi for the touscscreen tsc2046
06:32.36xsachafor some reason when i type 'reboot', the device shuts down and reboots in to windows. other times it only shuts down
06:32.52xsachasometimes*
06:34.21tmzthey
06:34.39tmztdid you talk to WyrM?
06:35.43xsacha<4>BATT: LE output: 0x0506
06:35.44xsacha<7>power_supply sgh_batt-0: prop CAPACITY=80
06:35.52xsachawhere does WyrM hang out?
06:36.17tmztEcho31: does implement the spi bus/host, the chip driver should have no dependen.cy on the bus/host driver
06:36.22tmztor the cpu
06:36.28tmzthere recently
06:36.33tmztand #openezx
06:36.36Echo31cr2: ok . I will take  pxa2xx_spi.
06:38.14cr2tmzt: i'm writing playwav2.c
06:38.18xsachathis is my dmesg: http://pastebin.com/d67fe3587
06:38.44tmztcool
06:39.06tmztdid you get the message about nuvi?
06:39.11xsachano..
06:39.17tmztcr2
06:39.30cr2tmzt: yes. looks like some intermediate version
06:39.44cr2tmzt: and also uses dejavu fonts :)
06:40.03xsachadoes it have similar hardware?
06:40.17cr2tmzt: is pxa3xx using the same pxa27x i2c driver ?
06:40.59xsachaall it tells me is: <6>I2C: i2c-0: PXA I2C adapter
06:41.02cr2tmzt: the linux kernel code for nüvi6xx and 7xx is available
06:41.09cr2xsacha: ok
06:42.10cr2<PROTECTED>
06:42.23cr2xsacha: look in haret where it is mapped
06:42.29Echo31cr2: the AD7877 is it connected to ssp2 ?
06:42.42cr2xsacha: dump mmu 2 0x40301688 4
06:42.48cr2Echo31: yes
06:42.56cr2Echo31: it's in the wiki
06:43.35Echo31cr2: it is similar with magician.
06:43.59xsachacr2: 88300000  | 40300000 |   1MB section | CB AP=1
06:43.59xsachaa8300000  | 40300000 |   1MB section |    AP=1
06:44.14xsachaand..  cp15: r1=00003a7f r2=bc390000 r3=00000001 r13=1c000000
06:45.36xsachahttp://pastebin.com/m6c124c5e
06:45.48xsachais that what it is meant to be like?
06:47.29tmztI think 3xx is the same i2c block
06:47.43cr2xsacha: addlist mmutrace 0x88301688 4
06:47.45cr2xsacha: addlist mmutrace 0xa8301688 4
06:47.49tmztbut marvell has only just started really supporting the chip
06:47.53tmztin linux
06:48.02cr2and then 'wi 2'
06:48.08cr2mask all spam
06:48.23cr2then you can really trace what goes over i2c
06:48.59cr2Echo31: we may do something like that, but for the spi.
06:49.47xsacha26 was spamming so ignored that..
06:49.53xsachanow it's boring :P empty
06:50.02cr2tmzt: why does android hardcode device names ?
06:50.14xsacha87 when i touch screen, getting 134 occasionly
06:50.42xsachaonly getting IRQs though
06:52.09tmztwhere?
06:52.28tmztI don't know
06:52.30xsachacr2: with `wi` im not getting anything in 0x883.. or 0xa83..
06:52.52xsachajust IRQs in 0xa8e and 0xa8d
06:54.33cr2xsacha: you can try the pxa-specific trace
06:54.46xsachawhere's that?
06:54.50cr2with 'set trace' and 'set tracemask'
06:54.54xsachak
06:55.00cr2type 'help'
06:55.17xsachaset variable trace?
06:55.31xsachadoesnt have much help in there :P
06:56.50xsachaso i set trace to a number like that 0x88 one.. and then? :\
06:58.02cr2xsacha: read this first http://www.handhelds.org/moin/moin.cgi/ApachePhoneTrace
06:59.30cr2xsacha: and here at the bottom http://wiki.xda-developers.com/index.php?pagename=MagicianCPLD
07:00.57xsachathese addresses must be wrong
07:01.51xsachaam i meant to just get IRQs?
07:02.59xsachanot working here, took a photo, called someone, nothing happening
07:04.38cr2xsacha: it is strange, but may happen
07:04.54cr2xsacha: how does the .dll access i2c ?
07:05.34xsachait uses a simple i2c_transfer (equivalent on linux) and sends a command to 0x34 on the bus
07:05.52xsachaand the bus is external, defined somewhere else.. didnt look at that
07:06.04Echo31cr2:  i wish your help for spi
07:06.46xsachacr2: the XllpI2CWrite/Read for windows ce is opensource
07:06.58xsachawell, the source is available*
07:07.28xsachacan see it here: http://read.pudn.com/downloads110/sourcecode/embed/457638/WinceKeypadCode/init2c.c__.htm
07:07.43Echo31cr2: I don't find the topic dedicated for spi
07:07.44xsachaline 236
07:11.54xsachaby the way, it turns out the i780 board is.. literally a zylonite? i was looking through marvell's zylonite kit and my device has the same chips except for the ones that are labelled 'optional'
07:12.05cr2I2C_regs->XLLP_IDBR = (XLLP_UINT32_T) (*bytesBuf++);
07:12.07xsachahere's my USB3318: http://img29.imageshack.us/img29/3434/screenshotoyr.png
07:12.13cr2it writes into IDBR
07:12.23xsachaIDBR?
07:12.40cr2[08:41] <cr2>  #define IDBR            __REG(0x40301688)  /* I2C Data Buffer Register - IDBR */
07:12.46xsachaah
07:12.54cr2so IDBR must have a virtual mapping
07:13.41xsachabut defined at that address
07:13.58cr2tmzt: handset, speaker, headset,bt. what is "handset" ?
07:14.17cr20x40301688 is a physical address
07:14.56cr2Echo31: use the driver of Kevin2 a in 2.6.21-hh20
07:14.59xsachaaddlist mmutrace p2v(0x40301688)?
07:15.16cr2xsacha: ok
07:15.38cr2xsacha: addlist mmutrace p2v(0x40301688) 4
07:15.47tmztthe phone itself
07:15.50cr2otherwise you will trace the whole megabyte
07:16.03cr2tmzt: these are sound devices
07:16.25cr2handset=whatever it is now=0 ?
07:16.25xsachathe speaker next to your ear?
07:16.35tmzthandset is the equivalent of Handy
07:17.00cr2tmzt: i'm just curious about the gogle code
07:17.11tmztit's the mobile industry's term for the phone
07:17.19tmztfor cellphones
07:17.22cr2SND_DEVICE_BT
07:17.29cr2SND_DEVICE_BT_EC_OFF
07:17.46tmztecho cancelation
07:17.51tmztis my guess
07:18.20xsachastill just getting irqs :(
07:18.28cr2the id is inherited from somewhere else in an intransparent way ;)
07:18.58tmzt?
07:19.30*** join/#htc-linux Zoolooc (n=fredsiba@p54951DA3.dip0.t-ipconnect.de)
07:20.04cr2ok, compiled.
07:20.38tmztwhat git tree?
07:20.40Echo31cr2: why cannot i use the driver AD7877 and spi from 2.6.31 from dev/pH5 code
07:20.50*** join/#htc-linux kiozen (n=oeichler@rgnb-5d87de91.pool.einsundeins.de)
07:21.15cr2Echo31: you can
07:23.20xsachahmm the value at 0x40301688 keeps changing (if i dump it)
07:23.35xsacha2d, 2f,35,31,etc..
07:24.02xsachaare those changes meant to be seen by wi ?
07:24.55cr2xsacha: yes
07:25.02cr2root@htcraphael:~# ./playwav2
07:25.03cr2Segmentation fault
07:26.35Echo31cr2: magician uses ssp2 but for athena, i think using ssp1 ( because only one ssp ?)
07:28.17cr2GPIO 23   00800000   SSP CLK(bat+ts)   O      2
07:28.19cr2GPIO 24   01000000   SSP FRM(bat+ts)   O      2   1
07:28.20cr2GPIO 25   02000000   SSP TXD(bat+ts)   O      2
07:28.22cr2GPIO 26   04000000   SSP RXD(bat+ts)   I      1
07:29.33cr2Echo31: yes, i think it's SSP1
07:29.51xsachawell no idea,.. this thing isnt working
07:30.17xsachai tried addlist 0x40301688 4 (physical instead of virtual) and it said cant map unless i set permissivemmutrace or something
07:30.27cr2ioctl(3, 0xc0047305, 0xbeffcaa8)        = 0
07:30.28cr2--- SIGSEGV (Segmentation fault) @ 0 (0) ---
07:30.49cr2set permissivemmutrace
07:30.53cr21
07:32.06*** join/#htc-linux Zoolooc (n=fredsiba@p54951DA3.dip0.t-ipconnect.de)
07:32.43xsachayeah i tried that and then it didnt watch anything :(
07:32.54xsachaand now i have to restart my phone :P screen frozen and red light is stuck on
07:35.18cr2found 39 snd endpoints
07:35.39cr2root@htcraphael:~# gdb
07:35.40cr2-sh: gdb: not found
07:41.07cr2[ 1085.401171] snd_ioctl set volume: invalid method.
07:42.39cr2hmm
07:44.54cr2tmzt: hehe. it works, but i don't hear sound ?
07:46.59tmztdid you add the paras?
07:48.15cr2for the preprocessor ?
07:48.34cr2hanged on playing a big .wav file
07:49.13cr2i need to check the "invalid method"
07:49.51tmztaudioparas
07:50.01cr2playwav: 2 ch, 22050 hz, 16 bit, PCM
07:50.06xsachathink sound will be easy on i780? because we have a really big opensource driver..
07:50.06tmztpeople.openezx.org/tmzt
07:50.21xsachait only complains of wrong reg's
07:50.32cr2http://people.openezx.org/tmzt
07:50.36tmztdepends on codec as well as pxa support
07:51.00xsachacodec has a big opensource team from the manufacturer themselves and pxa seems to support
07:51.00tmztcr2: yeah, it's there somewhere
07:51.21xsachadriver loads, it just complains of wrong reg's
07:51.46cr2tmzt: the params should be already in sram
07:52.25tmztI'm quite sure it changed things n my phoneo
07:52.35xsachathey make my touchscreen + sound codec: http://opensource.wolfsonmicro.com/
07:52.40tmztjust that led to static on phone call
07:52.46tmztyeah, ok
07:53.05cr2tmzt: i want to play .wav
07:53.45tmztagain you want to WyrM on this
07:53.53tmzttalk to
07:54.00cr2<PROTECTED>
07:54.02cr2<PROTECTED>
07:54.03cr2<PROTECTED>
07:54.05cr2<PROTECTED>
07:54.06cr2<PROTECTED>
07:56.16*** join/#htc-linux Zoolooc_ (n=fredsiba@p54952D5D.dip0.t-ipconnect.de)
08:00.20xsachai got android working with my battery haha!
08:00.27xsachai had to change battery name to "battery"
08:01.48*** join/#htc-linux Squarc (n=Squarc@82-217-32-29.cable.quicknet.nl)
08:02.54tmzthah
08:03.14tmztcr2: where is that code?
08:03.22*** join/#htc-linux onen|openBmap (n=quassel@mry91-1-89-87-198-158.dsl.club-internet.fr)
08:05.31cr2tmzt: in the kernel
08:07.27*** join/#htc-linux ptitjes (n=didier@80.125.172.60)
08:09.38*** join/#htc-linux onen|openBmap (n=quassel@mry91-1-89-87-198-158.dsl.club-internet.fr)
08:11.39tmztcr2: I see, it has to be SND METHOD VOICE
08:12.13cr22,5  snd_set_volume_modem_reset (dev=d,method=1,vol=5,cb,data)
08:14.43Echo31cr2: what is the difference between GPIO 114 Toucscreen DAV ant GPIO 27 TS_PENDOWN ?
08:15.36tmztDAV?
08:16.52xsachapen down is only when you are on the screen?
08:17.31cr2Echo31: it's all in the Kevin2's driver
08:17.55cr2Echo31: this code is used on htc apache too.
08:18.14cr2actually it comes from apache
08:19.00cr2Echo31: the pen down irq is GPIO 27 TS_PENDOWN
08:21.56cr2tmzt: i have verified that all adsp modules for 5200 make sense. you need to recheck your camera modules
08:23.04tmzthow do I do that?
08:23.35tmzthow is sound working now? does it appear to work but no sound?
08:24.42cr2only for small files
08:24.59cr2for the big files like kde startup it hangs as before
08:25.24cr2the rpc calls tracked @wince all go through.
08:25.37cr2i'll try to recheck the sequence.
08:25.50cr2because of the 'mute' settings
08:27.35tmztok
08:27.49tmztcan you dump the aucoustic settings?
08:28.05tmztfrom linux I mean
08:28.18cr2how ?
08:28.56cr2from /dev/mem ? they should have stayed as in wince
08:29.29cr2i guess if you will modify them, you need to call the 'audio update' DEX
08:29.35tmztin the driver
08:29.51tmztah
08:30.03tmztmaybe the get written to the dsp then
08:30.53tmztnot stay in smem
08:33.50cr2probably
08:34.27cr2the only problem i have with adsp, is how to verify the translation tables hardcoded there, and the queue numbers.
08:35.14cr2<PROTECTED>
08:35.29cr2<PROTECTED>
08:35.52tmztbut we are getting silence
08:36.11tmztat least noise would mean it's working
08:37.00cr2let me check how much modules i've seen from this list:
08:37.05cr2252 static struct adsp_module_info module_info[] = {
08:37.06cr2253         QDSP_MODULE(AUDPPTASK),
08:37.08cr2254         QDSP_MODULE(AUDRECTASK),
08:37.09cr2255         QDSP_MODULE(AUDPREPROCTASK),
08:37.11cr2256         QDSP_MODULE(VFETASK),
08:37.12cr2257         QDSP_MODULE(QCAMTASK),
08:37.14cr2258         QDSP_MODULE(LPMTASK),
08:37.15cr2259         QDSP_MODULE(JPEGTASK),
08:37.17cr2260         QDSP_MODULE(VIDEOTASK),
08:37.18cr2261         QDSP_MODULE(VDEC_LP_MODE),
08:38.44cr2<PROTECTED>
08:38.58cr2<PROTECTED>
08:39.13cr2<PROTECTED>
08:39.14cr2<PROTECTED>
08:39.31cr2<PROTECTED>
08:39.43cr2<PROTECTED>
08:39.45cr2<PROTECTED>
08:39.46cr2<PROTECTED>
08:40.20cr2tmzt: you should recheck the last 4
08:40.46cr2don't know how to test VIDEOTASK and VDEC_LP_MODE
08:40.46tmzthow do I check them?
08:40.52cr2wtf is LP_MODE ?
08:41.29tmztlow power?
08:41.32cr2enable the camera, dump rpccall, save jpeg, dump rpccall, etc.
08:41.39tmztah
08:41.53tmztdump the smem like before?
08:41.59cr2yes
08:42.06tmztok
08:42.22tmztdo you have the command?
08:42.35tmztwell, I can't upload very well right now
08:42.45cr2QTV_LP image
08:43.07cr2no, must grep through the logs
08:43.42tmztlimited profile?
08:46.11*** join/#htc-linux Squarc (n=Squarc@82-217-32-29.cable.quicknet.nl)
08:46.54cr2msm_dmov_enqueue_cmd(11) error datamover stalled, status 0
09:07.23*** join/#htc-linux Zoolooc_ (n=fredsiba@p54952DF4.dip0.t-ipconnect.de)
09:15.27*** join/#htc-linux ecze (n=ecze@eczema.ecze.com)
09:27.54*** join/#htc-linux KindofBlue (n=KindofBl@rgnb-5d87d216.pool.einsundeins.de)
09:27.58cr2root@htcraphael:~# stty -F /dev/ttyHS1 speed 921600
09:28.00cr2115200
09:28.01cr2root@htcraphael:~# stty -F /dev/ttyHS1
09:28.03cr2speed 921600 baud;
09:28.27cr2looks like a bug in the g1 code.
09:28.49cr2haha
09:28.54cr2root@htcraphael:~# stty -F /dev/ttyHS1 speed 4000000
09:28.55cr2stty: invalid argument '4000000'
09:29.53cr2[  204.300301] clock-wince: set_mdns_host_clock: UART2DM_CLK, freq=7372800
09:29.53*** join/#htc-linux g55 (n=g55@rgnb-5d87d216.pool.einsundeins.de)
09:29.54cr2[  207.705910] clock-wince: pc_clk_set_rate: id=UART2DM_CLK rate=7372800
09:29.56cr2[  207.723946] clock-wince: set mdns: UART2DM_CLK, 7372800; bitidx=26, offset=dc, ns=0
09:30.03cr2but the real problem is dma stall
09:32.40tmztoh, that error was about bt??
09:34.15cr2yes, i have many patches in the kernel
09:40.19cr2#define DMOV_HSUART2_TX_CHAN   4
09:40.29cr2why do i get 11 ?
09:40.44cr2hmm
09:40.47cr2#define DMOV_HSUART2_RX_CHAN   1
09:40.55cr2#define DMOV_HSUART2_RX_CHAN   11
09:41.04xsachatmzt, any ideas bout my battery registers? i dumped all the registers here: http://andromnia.pastebin.com/d5735922b
09:42.30xsachaevery fourth register gives '0x0000'
09:42.53Echo31cr2: how can i check the initialisation of spi and  ad7877. I don't see nothing from dmesg ?
09:42.54xsachai thought i had formula for voltage/charge right but it doesnt seem to be right at all :\
09:45.25Echo31cr2: i find pxa2xx-spi.1 in /proc/interrupts but i don't find ad7877
09:45.32xsachai dont think those 'E's are relevant but if i dont use them i'm left with a simple byte
09:57.06cr2Echo31: then you must be doing something wrong
09:57.47Echo31cr2: i think so.
10:00.29Echo31cr2: find the piece of code http://fr.pastebin.ca/1483731
10:03.38cr2tmzt: ok, now it's gone.
10:04.06cr2tmzt: tell San that he is a google genius for sharing uart2dm with usb ;-)
10:07.04tmzthah
10:07.31cr2Echo31: don't see anything wrong
10:08.27cr2tmzt: the driver is still buggy, because it produces oops in _hs_shutdown() on a dma error.
10:09.29tmztbut it works?
10:09.40cr2wait_event(msm_uport->rx.wait, msm_uport->rx.flush == FLUSH_SHUTDOWN);
10:09.40tmztif you don't close the device?
10:09.47tmztdoes cat work?
10:10.00cr2this call causes an oops in case of a dma error
10:10.15cr2i need to powerup the bt first
10:10.33cr2how can i kick this rfkill from userspace ?
10:11.36tmztin sysfs?
10:12.02cr2which one ?
10:13.21tmztI really don't know
10:13.26tmztis it standard?
10:14.29tmzt'/sys/class/misc/rfkill
10:14.40tmzt'/sys/class/rfkill
10:15.56cr2ok, i'll revert some debugging patches first
10:16.35xsachathis battery driver is weird. all the registers increase about 0x40 when i put in charger
10:16.52xsachabut there's a register that is on for when i have a charger and 0 for when i dont and there's also a GPIO for it
10:17.44cr2wee. stty is fixed now.
10:18.07*** join/#htc-linux vts (n=vts@62-47-219-175.adsl.highway.telekom.at)
10:18.10cr2tmzt: where do we post the g1 code bugs ?
10:18.30tmztb.android.com
10:18.34xsachahttp://source.android.com/submit-patches
10:18.45xsachaoh bugs
10:18.54tmztit's not a hardware thing?
10:19.01cr2it's not a patch
10:19.33cr2tmzt: i don't know, but an oops in the kernel is not acceptable
10:20.06cr2dma failure is not a legitimate hardware condition ?
10:20.08*** part/#htc-linux vts (n=vts@62-47-219-175.adsl.highway.telekom.at)
10:21.44cr2tmzt: how do i enable power in rfkill ?
10:21.48*** join/#htc-linux onen|openBmap (n=quassel@mry91-1-89-87-198-158.dsl.club-internet.fr)
10:22.06cr2<PROTECTED>
10:22.18tmztecho 0
10:22.22cr2root@htcraphael:/sys/class/rfkill/rfkill0# cat state
10:22.24cr20
10:22.34tmzt1 then 0
10:22.35cr2to which node ?
10:22.45tmztprobably state
10:22.53cr2[  390.182137]    bluetooth rfkill state ON
10:23.03tmztthe otheres will say invalid anyway
10:23.21cr2hm. but no debug powerup message ??
10:23.22tmztI mean the uart/usb dm overlap was not hardware?
10:23.35cr2no
10:24.28cr2the hsuarts share the rx dma channel already (in the g1 source), so you can't use them simultaneously
10:24.55cr2but the uart2dm channel was shared with usb ;)
10:25.59cr2hciattach /dev/ttyHS1 texas
10:26.07cr2lockup
10:26.21tmztand just cat?
10:26.35cr2i'll reboot first
10:26.38tmztor stty
10:26.44cr2stty is ok
10:26.57tmztthat's the first thing hciattach does
10:27.09cr2i'll use strace now
10:27.14tmztbut dm is only enabled above a certain speed I think
10:27.34tmztfunny, strace fixed the bt on my q
10:27.42tmzthciattach failed otherwise
10:27.51tmztit slowed it down
10:27.58tmztno idea why it worked
10:28.03cr2hehe
10:28.50cr2actually, i need to check which dma channel is used by uart2dm in wince
10:29.07cr2the dma channel usage is something for wiki
10:30.17cr2hm. i need to check the powerup messages first. before going to hciattach
10:30.48*** join/#htc-linux vts (n=vts@88-117-92-104.adsl.highway.telekom.at)
10:30.51NAiLcr2: Did you have any insight on my kaiser usb-issue on XP? :)
10:31.11*** join/#htc-linux leaigor (n=laigor@188.134.36.14)
10:31.26cr2NAiL: it's not a linux problem :)
10:31.45cr2<PROTECTED>
10:31.47cr2ok
10:32.06NAiLcr2: In android it doesn't show up at all :-P
10:32.49tmztit's probably your kernel
10:33.03tmzton the deviceon the device
10:34.47tmztrecent dzo tree has usb support
10:34.53tmztolder ones don't
10:35.45*** join/#htc-linux BabelO (n=fcr@unaffiliated/babelo)
10:36.51cr2tmzt: in case of the device lockup i can ping it, but other interrupts do not work
10:37.43tmztinteresting
10:38.00tmztping? over usb?
10:38.24tmztmaybe only a process locked up?
10:38.33tmztdo you have multiple getty's
10:38.44cr2yes, over usb
10:38.48tmztbut I guess you can't switch between them
10:38.50cr2got an oops on the screen
10:39.18tmztwhat interrupts don't work?
10:40.12cr2_hs_startup, request_irq, setup_irq, handle_edge_irq
10:40.30cr2keyboard/i2c
10:40.55cr2usb/inout works, lcd is refreshed
10:41.28cr2but can't ssh
10:41.47tmztlsusb works?
10:42.05cr2ping works
10:42.06*** join/#htc-linux pH5 (n=ph5@p5485C2FC.dip.t-dialin.net)
10:42.08*** join/#htc-linux lama (n=lama@netbsd.pl)
10:42.24*** join/#htc-linux Red_Lion (n=lion@77.41.93.140)
10:42.28cr2even ping -f
10:42.46cr20% packet loss,
10:43.47tmztso it's probably gethostbyname or something else the sshd process does after forking
10:44.12cr2i2c irq ?
10:44.42tmztnot sure
10:44.50tmztbut oops breaks things randomly
10:44.57tmztrandom things
10:45.03cr2ok
10:45.16tmztI had an oops cause me not to be able to sudo
10:45.30tmztbecause of gethostbyname
10:45.33cr2yes, the ram corruption
10:46.37cr2i need to check my wince dmesg for the dma usage
10:47.44*** part/#htc-linux vts (n=vts@88-117-92-104.adsl.highway.telekom.at)
10:48.40cr2root@htcraphael:~# stty -F /dev/ttyHS1 speed 115200
10:48.42cr29600
10:49.20tmzt9600?
10:50.39cr2yes, set in the kernel as default speed
10:50.47cr2strace:
10:50.51cr2ioctl(3, SNDCTL_TMR_START or TCSETS, {B115200 -opost -isig -icanon -echo ...}) = 0
10:50.52cr2ioctl(3, TCFLSH, 0x2)                   = 0
10:50.54cr2write(3, "\1\1\20\0", 4)                = 4
10:50.55cr2read(3, 0xbe963ae8, 1)                  = ? ERESTARTSYS (To be restarted)
10:50.57cr2--- SIGALRM (Alarm clock) @ 0 (0) ---
10:50.58cr2write(2, "Initialization timed out.\n", 26Initialization timed out.
10:51.00cr2) = 26
10:51.01cr2io_submit(0x1, 0x1, 0xfbad2088
10:51.22cr2write was ok, or seemed to be ok
10:51.40cr2read(3, 0xbe963ae8, 1)                  = ? ERESTARTSYS (To be restarted)
10:51.50cr2this one was not very successful
10:52.02tmztdid it return 9600 though? what did you mean
10:52.16cr2may be the wrong clock speed in wince-clock.c
10:52.27cr2stty returns the old speed
10:52.59tmztok
10:53.00cr2[  219.808724] clock-wince: pc_clk_set_rate: id=UART2DM_CLK rate=7372800
10:53.02cr2[  219.823555] clock-wince: set mdns: UART2DM_CLK, 7372800; bitidx=26, offset=dc, ns=0
10:53.03cr2[  219.838082] clock-wince: set_mdns_host_clock: UART2DM_CLK, freq=7372800
10:53.10cr2this time without oops
10:53.22cr2strace -ff hciattach -t 5 /dev/ttyHS1 texas
10:53.35cr2need to powerup :)
10:54.05cr2echo 1 > /sys/class/rfkill/rfkill0/state
10:54.11tmztno
10:54.12tmzt0
10:54.17cr2[  460.745949]    bluetooth rfkill state ON
10:54.42cr2<PROTECTED>
10:54.49cr2bluetooth rfkill state   OFF
10:55.17tmztso it should be powered
10:56.00cr2mprotect(0x2a000000, 24576, PROT_READ|PROT_EXEC) = 0
10:56.02cr2rt_sigaction(SIGALRM, {0x2a001c50, [], SA_NOCLDSTOP|0x4000000}, NULL, 8) = 0
10:56.03cr2setitimer(ITIMER_REAL, {it_interval={0, 0}, it_value={5, 0}}, {it_interval={0, 0}, it_value={0, 0}})                      = 0
10:56.09cr2hangs hee
10:56.19cr2the oops is  on the lcd
10:56.24tmztreally?
10:56.42cr2yes
10:56.47tmztnothing to do with hsuart/uartDM?
10:57.00cr2at least not directly
10:57.22cr2ping works, and the irqs are screwed
10:57.30tmztreal time priority?
10:58.07cr2usb works, ping works
10:58.35cr2may be a dma error, but usb also uses dma
10:59.02cr2rebooting
10:59.13tmztwhat is itimer?
10:59.22cr2interval timer
10:59.32tmztyeah
10:59.42cr2it's  hciattach -t 5
10:59.43tmzthave never seen it
10:59.47tmztah
10:59.51cr2timeout for this call
10:59.58tmztwhat does that do?
11:00.00tmztok
11:00.46tmztthen sends sigalrm?
11:02.18cr2<PROTECTED>
11:02.19cr2<PROTECTED>
11:02.24cr2need to check this one
11:02.37cr2<PROTECTED>
11:02.39cr2<PROTECTED>
11:02.40cr2<PROTECTED>
11:02.42cr2<PROTECTED>
11:02.45cr2and this google hack too
11:04.55cr2<PROTECTED>
11:04.59tmztno non low power version?
11:05.47*** part/#htc-linux Echo31 (n=olivier@mir31-4-82-240-194-54.fbx.proxad.net)
11:05.49cr2it's wakup from suspend on bt headset, for example
11:06.40*** join/#htc-linux Echo31 (n=olivier@mir31-4-82-240-194-54.fbx.proxad.net)
11:08.03tmztrts?
11:08.24tmztfrom bt chip?
11:08.33cr2yes
11:08.35tmzthow can we trace that gpio?
11:08.52cr2you can try
11:08.54tmztwhen hci packet is ready?
11:09.05cr2but you need a bt headset for it
11:09.13cr2?
11:09.17tmztyeah
11:09.38tmzthci packet from the bluetooth chip
11:10.27tmztbt headset is a AT command over rfcomm channel
11:10.50tmztlinux rfcomm should simulate that
11:11.01tmztjust not sco channel
11:11.17cr2root@htcraphael:~# cat /proc/interrupts
11:11.32cr2<PROTECTED>
11:11.38cr2223 ??
11:11.50Echo31cr2: what is the better distribution for the athena porting ? Angstrom ?
11:12.13cr2<PROTECTED>
11:12.30tmztit's dm?
11:12.31cr2Echo31: non-gui
11:12.42cr2tmzt: it's the dma controller
11:12.54cr2tmzt: it seems that the mdp uses a different dma
11:13.08cr2<PROTECTED>
11:13.37Echo31cr2: how can i check the touchscreen ?
11:14.18cr2Echo31: od -x /dev/input/event*
11:14.42cr2tmzt: don't see a hsuart irq ?
11:15.22cr2<PROTECTED>
11:15.52cr2a0300000-a0300fff : msm_serial_hs.1
11:15.54tmztdo you see a uart irq?
11:16.13cr2maybe it registers it only on open()
11:17.04cr2<PROTECTED>
11:17.05cr2<PROTECTED>
11:17.20cr2yeah
11:17.23cr2/* Called when port is opened */
11:17.25cr2static int msm_hs_startup(struct uart_port *uport)
11:17.50tmztok
11:18.27tmztbut with PM not enabled the low power thing might be false
11:19.16cr2it's another irq
11:20.32cr2i'm using this as a "base" clock now
11:20.35cr2<PROTECTED>
11:20.59cr2the spl uses //      MSM_CLOCK_REG( 7372800, 2, 0xc8, 0x64, 3, 2, 1, 1), /* unknown */
11:21.35cr2i think for this one i can calculate the frequency, because it's the same class as SD
11:22.09cr2but then i get some strange frequency
11:22.38cr2460800*16=7372800 btw
11:23.23cr2the direct dump of  the lcokc registers gives
11:23.26cr2MSM_CLOCK_REG( 460800*16,    3, 0x64, 0x32, 0, 2, 4, 1)
11:24.25cr2it's  a scale difference P=4
11:25.01cr2it's difficult to say what is right. without disassembling the amss ;)
11:26.31*** join/#htc-linux Guest87676 (n=fnord@24-151-90-116.static.nwtn.ct.charter.com)
11:26.47*** join/#htc-linux kiozen (n=oeichler@rgnb-5d87de91.pool.einsundeins.de)
11:30.34cr2tmzt: does the codeaurora use the same driver ?
11:30.45tmzthaven't looked
11:30.57tmzt2.6.29 might be better
11:31.24tmzttuxhero gave me a patch with the 27 code ported to 29
11:31.30Echo31cr2: it is not easy to see . However, if I want to include the w228x, how I do ?
11:31.34tmztbut the Kconfig has some issues
11:32.05tmzthold on
11:32.59cr2+CONFIG_USB_MSM_OTG=y
11:34.00tmzthost?
11:34.07tmztget pm?
11:35.40cr2+#define PM_APP_OTG_PROG                0x30000080
11:35.47cr2too high for us
11:37.18*** join/#htc-linux kiozen (n=oeichler@rgnb-5d87de91.pool.einsundeins.de)
11:41.47*** join/#htc-linux pleemans (n=toi@d54C2AAB7.access.telenet.be)
11:48.06cr2codeaurora uses the gogle driver
11:50.01cr2<PROTECTED>
11:57.11jaSOnGg:o
11:57.58tmztwhat's too high?
11:59.40cr2we don't have such rpc numbers
12:00.26tmztcan't see why otg needs rpc
12:10.05*** join/#htc-linux kiozen (n=oeichler@rgnb-5d87de91.pool.einsundeins.de)
12:12.27cr2tmzt: can we talk to San about the dma channel ?
12:12.38*** join/#htc-linux MethoS (n=clemens@host-091-097-243-127.ewe-ip-backbone.de)
12:12.40cr2the right clock seems to be a difficult task.
12:13.02cr2maybe i'd create my own divisors using the SD formula ?
12:13.19cr2and not using the wince setup at all.
12:13.54cr2and revisit the spl settings again
12:18.58cr2so the problem is how to generate the 7372800 Hz clock out of TCXO=19.2 MHz or the PLL1=768 MHz clock, using M/N/P
12:20.36cr2PLL1=40*TCX0
12:22.38tmzthe won't be in till later if at all today
12:23.07*** join/#htc-linux miknix (n=miknix@gentoo/developer/miknix)
12:28.14cr2768000000*M=P*N*7372800, P=1,2,4, M<N (i think)
12:28.44cr2tmzt: can this equation be solved in for integers M and N ?
12:30.33cr2P*N is N, the prescaler is probably used to avoid feeding M/N with too high frequency.
12:31.30cr2so it's 7680000*M=7372800*N
12:32.12tmztintegers?
12:32.13cr2need to factor 7680000 and 73728 into prime numbers :)
12:32.19cr2err
12:32.26cr27680000*M=73728*N
12:32.49cr2never thought that number theory is useful in real life :)
12:33.35cr2both sides can be divided by 4
12:33.53tmztso p is 4?
12:33.58ali1234the other day i was looking at the source code for a xorg driver which calculated the pixel clock coefficients by having a for loop over the valid ranges of each one
12:34.38cr2ali1234: that's an engineer's solution :)
12:34.50ali1234i think it was intel driver
12:35.20cr2it's easier to divide 7680000 by 73728 and see what comes out
12:35.23tmztkernel?
12:35.40tmztdivision is hard in the kernel I think
12:35.54tmztnpot division
12:35.57cr2awk '{printf("%.6f\n",7680000/73728)}'
12:35.59cr2104.166667
12:36.01ali1234N = 625M/6
12:36.20tmztrational!
12:36.20cr20.166667
12:36.32cr2multily by 6
12:36.51cr2ali1234: 625 ?
12:37.13ali1234104.166667 = 625/6
12:37.27tmztthis is why I want gen clk tree support
12:37.38cr2:)
12:37.44cr2ali1234: yes
12:37.49tmztteach the kernel what the tree looks like and let it figure it out
12:38.37cr2now we need to split 625 into the prescaler and N
12:38.37cr2the known values are 1-4 and < 0xff
12:38.42cr2seems to be impossible
12:39.22ali1234625 = 5^4
12:39.23cr2125 * 5 would have been nice.
12:40.13cr2ali1234: i think the prescaler uses 2 bits
12:40.33ali1234that's too convenient...
12:41.16ali1234where did 7680000 and 73728 come from?
12:41.20cr2tmzt: for gen clk you need to know how all clocks are generated and distributed
12:41.27tmztyes
12:41.36tmztthat's what I mean
12:42.05cr27372800 is hardcoded into the g1 driver, and 768 MHz is known from the SD clocks and uboot source
12:42.41tmztmaybe uart is different?
12:42.49tmztnot the same formula
12:43.08cr2awk '{print 7372800/4}'
12:43.09cr21843200
12:43.10tmztwhat does uboot say for our soc?
12:43.17cr2ali1234: does it tell you something ?
12:43.36ali1234no, just wondered. how is it "hardcoded" into the driver?
12:44.02ali1234btw 19.2M/7372800 = 125/48
12:44.06cr2ali1234: the 18.432MHz is something very familiar
12:44.21tmztcrystal?
12:44.39cr2it's a standard crystal for the uart clocks.
12:44.53tmztlook at c driver
12:44.55tmztpc
12:45.08tmzt16550 or whatever
12:45.13cr2ali1234: 125/48 sounds good
12:45.27cr2ali1234: the 768=19.2*40
12:45.53tmztis it right?
12:46.09cr2so i'm a bit surprised.
12:46.14tmzthow can it be 19.2M?
12:46.42cr2tmzt: the base clock on msm is TCX0=19.2MHz
12:46.53cr2the PLL1 is TCX0*40
12:46.58xsachaim really interested in seeing what goes over the i2c wire but i cant work out this wi thing. isn't wi short for watch irqs?
12:47.03tmztok
12:47.11cr2xsacha: yes
12:47.23xsachawhat am i meant to see when data is written to i2c?
12:47.32tmztwhere did you get 18.432?
12:47.38tmztthen
12:47.58tmztxsacha: addr=value
12:48.03tmztuse haretconsole
12:48.11xsachaall i see is irqs :\
12:48.39tmztthe you probably have the wront virt addr
12:48.40cr2ali1234: you are right. i'm just surprised how it happens.
12:48.42xsachalike IRQS    a8....(26) = 0x4000
12:48.47tmztdump mmu 2 phys
12:49.01ali1234cr2: i am?
12:49.20cr2awk '{print 19200000*48,7372800*125}'
12:49.22cr2921600000 92160000
12:49.38cr2[14:43] <ali1234> btw 19.2M/7372800 = 125/48
12:49.56ali1234yeah, i just used wolfram alpha, it does all this math stuff real nice :)
12:50.14ali1234telling you factors and stuff. much better than google
12:51.10cr2factor is included in baseutils
12:51.36cr2factor 7372800
12:51.37cr27372800: 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 5 5
12:51.40cr2yeah
12:51.59cr2so
12:52.21cr2P=1, M=0x30, N=0x7d src=TCX0
12:53.11cr2<PROTECTED>
12:53.36xsachatmzt, it's humungous
12:53.47tmzt?
12:55.33xsachamade me dump of the virtual address space? dump mmu 2 phys
12:55.50cr2<PROTECTED>
12:56.07cr2the 125 can't be divided by 2.
12:56.53cr2what was the spl using...
12:57.28tmztis it the 4k or 1mb sections we want?
12:57.33tmztcr2
12:57.35cr2<PROTECTED>
12:57.39cr2tmzt: both
12:58.01xsachai see a tonne of 4k and some 1MB
12:58.15xsachait took 10 seconds to print them all
12:59.08cr2xsacha: yes. now look for you physical address page
12:59.16xsacha:O
12:59.40xsachabut the first message i can see on console starts with a 'c' cause it flooded console
12:59.45cr2xsacha: dump mmu 2 should have done it for you
13:00.12cr2tmzt: weird
13:00.16cr2awk '{printf("%d\n",768000000*2/0xc8/4)}'
13:00.17cr21920000
13:00.44cr2and not 1843200
13:01.33cr2there is  3 vs 2 difference though ;)
13:01.59xsachathis is dump mmu 2: http://pastebin.com/m18d17a16
13:01.59xsachalist is much bigger
13:03.14cr2xsacha: dump mmu 2 0x40301688 0x1000 ?
13:03.50xsachahttp://pastebin.com/d9e8f5de
13:04.35xsachajust has the block it comes from
13:04.37cr2tmzt: and it's again ~4 times less than the required clock
13:05.11xsachaim missing something
13:05.29cr2xsacha: then it's some haret trick. you should talk to Kevin2
13:05.37xsachak
13:05.43xsachaKevin2, hi
13:07.07*** join/#htc-linux ccube (n=ccube@ssh.ccube.de)
13:12.29*** join/#htc-linux ptitjes (n=didier@80.125.173.60)
13:18.52*** join/#htc-linux IceBone (n=IceBone@89-212-106-54.dynamic.dsl.t-2.net)
13:20.31cr2hmm. then it should be bumped by factor 4
13:20.45cr2MSM_CLOCK_REG( 7372800, 8, 0xc8, 0x64, 3, 2, 1, 1)
13:23.43*** join/#htc-linux ImCoKeMaN (n=imcokema@pool-173-67-180-143.hrbgpa.fios.verizon.net)
13:23.53*** join/#htc-linux fnord_ (n=fnord@24-151-90-116.static.nwtn.ct.charter.com)
13:26.38xsachaare there any msm power management drivers in kernel?
13:39.27xsachawould think there would be one for pm6550 since almost all quallcom's use it
13:48.52xsachaPalm Pre: A Murata WLAN/Bluetooth module, which is ostensibly the same as the one found in the iPhone 3G. This Murata module features a Marvell W8686B12 and a CSR BlueCore 6 solution.
13:49.30xsachasame as my phone
13:52.23*** join/#htc-linux pleemans (n=toi@d54C2AAB7.access.telenet.be)
13:53.03*** join/#htc-linux nebi (n=nebi@217.142.147.19)
13:57.18*** join/#htc-linux vts (n=vts@88-117-92-104.adsl.highway.telekom.at)
13:57.25*** part/#htc-linux vts (n=vts@88-117-92-104.adsl.highway.telekom.at)
14:01.13*** join/#htc-linux NetRipper (n=netrippe@netripper.nl)
14:09.02*** join/#htc-linux vts (n=vts@88-117-92-104.adsl.highway.telekom.at)
14:09.13*** part/#htc-linux vts (n=vts@88-117-92-104.adsl.highway.telekom.at)
14:21.17Kevin2xsacha: Hi
14:21.31xsachahi
14:21.50xsachado you know how to get read the i2c bus from haret on a pxa3xx?
14:23.22Kevin2xsacha: Huh?
14:23.41*** join/#htc-linux CoKeSero (n=imcokema@pool-173-67-156-146.hrbgpa.fios.verizon.net)
14:23.49xsachai want to see data transferred on the i2c line of my pxa3xx using haret
14:24.18xsachai found the address that i2c commands run on from winmo..
14:24.32pH5xsacha: mmutrace the IDBR register
14:24.52xsacha0x40301688
14:25.03xsachathats my IDBR register
14:25.47xsachacan you explain the mmutracing?
14:25.53xsachai did a dump mmu 2 on that address..
14:26.13Kevin2xsacha: Are you using haretconsole?
14:26.16xsachayes
14:26.23xsachahttp://pastebin.com/d9e8f5de
14:27.05Kevin2Can you post the commands you ran and the output of "wi"?
14:27.13xsachait's just irqs
14:27.50Kevin2It would help to see the commands you ran and the output.
14:28.02pH5I use "addlist mmutrace p2v(0x40301688)" + "wirq" on pxa27x
14:28.28xsachayeah i did that
14:29.23xsachahttp://pastebin.com/m3471381e
14:31.55Kevin2xsacha: Our you sure the i2c bus was active during that capture?  If so, the most likely case is wince is using DMA.  See: http://www.handhelds.org/moin/moin.cgi/HaRET_20Tracing_20Details
14:31.57xsacha"MMU table merging disabled"
14:32.08xsachayeah was using i2c
14:33.23xsachatried making phone calls, using camera, etc.. had it on for 3 minutes and still only normal irqs
14:36.52xsachadoes that MMU table merging disabled mean anything?
14:37.52Echo31cr2: there are still some error on egpio (cpld), how can i fix it ?
14:40.51xsachaKevin2, so i should try this loading VirtualCopy method? do i have to watch something when i `set insn` the address?
14:41.29Kevin2xsacha: I've never seen that work.  I'd try watching the DMA registers to see if they're being set for i2c.
14:42.10xsachaoh ok, if i find they are being set... ? i can read off them?
14:42.11Kevin2xsacha: The MMU merging is an enhancement to try and find changed addresses - it being off wont adversely impact anything - I'll see if I can find the documentation for that.
14:43.49xsachai have a battery driver that gives me weird values like 0xF510 for temperature, i know to ignore the first 4 bits but no idea how to decode the rest of it. was hoping i could check the temperature in winmo and compare to the word received through i2c bus
14:44.14xsachasame with capacity and voltage. absolutely no documentation on this chip
14:44.34xsachaall i know is the registers that winmo checks, i guess i could check how it decodes them
14:54.26*** join/#htc-linux Captnoord (n=Captnoor@dc5147a47b.adsl.wanadoo.nl)
14:57.58CaptnoordI am wondering.... do I need to unlock my phone to flash a diff radio in it? I do find some references on the forum that I have to, but also a lot that itsn not required. Can anyone verify this for me?
15:02.18Echo31hi pH5
15:02.53pH5hej Echo31
15:03.06Echo31pH5: there are still some error on Athena egpio (cpld 1), how can i fix it ?
15:03.06Echo31dmesg:Platform driver 'htc-egpio' needs updating -  please use dev_
15:03.06Echo31EGPIO failed to setup
15:03.06Echo31htc-egpio: probe of htc-egpio.0 failed with error -22
15:05.11pH5Echo31 dev_pm_ops? that's unrelated to the error (just a transition warning)
15:08.04Echo31pH5: this warning is displayed for cpld2: so, cpld2 works correctly. The problem is cpld1
15:10.09*** join/#htc-linux Red_Lion (n=lion@77.41.93.140)
15:25.52pH5Echo31: yes, there's something wrong with your cpld1 platform data, thus -22 (-EINVAL)
15:25.55*** join/#htc-linux miknix (n=miknix@gentoo/developer/miknix)
15:29.12*** join/#htc-linux madCoder- (n=madcoder@c-71-225-60-178.hsd1.pa.comcast.net)
15:32.14Echo31pH5: How to analyze where is the problem? htc_egpio in debug mode ?
15:38.15*** join/#htc-linux mickey|ICE924 (n=M@92.116.182.56)
15:40.54Echo31pH5: htc-egpio returns failed because it don't compliant with
15:40.54Echo31.reg_width    = 8,
15:40.54Echo31.bus_width    = 8,
15:47.30pH5yeah, because .bus_width=8 is wrong, I told you already
15:48.04xsachaisn't it 2 for a bus width of 4 and 3 for a bus width of 8?
15:49.23*** join/#htc-linux BabelO (n=fcr@unaffiliated/babelo)
15:50.06pH5.bus_width is in bits, either 16 or 32.
16:00.19Captnoordxsacha: you mean 1 << 3 and 1 << 2
16:01.30xsachahmm that'd just be 8 and 4
16:02.11Captnoordyup
16:03.35xsachano...
16:04.00mickey|ICE924morning
16:04.06mickey|ICE924cr2: got anywhere yet wrt. audio?
16:11.51*** join/#htc-linux Echo31 (n=olivier@mir31-4-82-240-194-54.fbx.proxad.net)
16:20.07cr2mickey|ICE924: i have written a playwav2.c program, the adsp modules are ok, but it still does not work.
16:20.55mickey|ICE924who can we hang for the audio subsystem in g1? :)
16:24.46cr2mickey|ICE924: g1 has the code for 3 different amss versions. raph100 has another one, and raph800 is also different from raph100
16:25.56cr2mickey|ICE924: but a big part of raph100 -speciifc adsp code is the same as on 6210.
16:26.45mickey|ICE924ok
16:29.06*** join/#htc-linux BabelO (n=fcr@unaffiliated/babelo)
16:44.11*** join/#htc-linux fnord_ (n=fnord@24-151-90-116.static.nwtn.ct.charter.com)
16:50.58Echo31pH5: for .reg_width  =16, the egpio_write_cache function  fails
16:52.12*** join/#htc-linux StarLite (n=nnscript@s55916ca6.adsl.wanadoo.nl)
16:53.31Echo31pH5: How can i debug htc-egpio ? with pr_debug
16:57.04*** join/#htc-linux mickey|train (n=M@92.116.172.137)
17:03.32pH5Echo31: yes, make sure to #define DEBUG and add debug to the kernel cmdline to see it on the console.
17:03.59Echo31pH5: ok
17:04.35Echo31pH5: the crash is located to egpio_writew
17:10.29*** join/#htc-linux mickey|ICE924 (n=M@92.116.160.104)
17:16.04*** join/#htc-linux stickboy (n=anonymou@ool-457e4101.dyn.optonline.net)
17:19.01*** join/#htc-linux solerant-dc (n=kamikaze@adsl-76-202-7-26.dsl.hstntx.sbcglobal.net)
17:27.04cr2Echo31: most htc cplds have .reg_width=16
17:30.57Captnoordcr2 the strugle for sound continue's?
17:31.58*** join/#htc-linux Echo31 (n=olivier@mir31-4-82-240-194-54.fbx.proxad.net)
17:33.20*** join/#htc-linux surge (i=surge@pool-98-118-158-217.bflony.fios.verizon.net)
18:11.59*** join/#htc-linux nebi (n=nebi@217.142.147.19)
18:18.28Echo31pH5: with  #define DEBUG  in the code and debug in the Haret CMDLINE, i don't yet find  the debug messages.
18:21.43cr2Echo31: can you post the link to htc-egpio.c you are using ?
18:27.20Echo31cr2: fin the link http://fr.pastebin.ca/1484030. The comments 'echo31' in the code  for displaying the traces
18:29.20pH5Echo31: "#define DEBUG", not "debug", it's case sensitive.
18:30.15Echo31pH5: thanks
18:30.20cr2writew(value, ei->base_addr + (reg << ei->bus_shift));
18:30.27cr2readw(ei->base_addr + (reg << ei->bus_shift));
18:30.40cr2i really don't understand what can go wrong here
18:30.54*** join/#htc-linux kiozen_ (n=oeichler@rgnb-5d87de91.pool.einsundeins.de)
18:33.32pH5Echo31: let's see what the debug output shows. when you have it, also consider enabling the egpio_writew again, to see which write breaks.
18:34.36cr2Echo31: printk all the parameters to egpio_writew before calling it
18:35.17*** part/#htc-linux Echo31 (n=olivier@mir31-4-82-240-194-54.fbx.proxad.net)
18:35.25cr2egpio->cached_values, shift, ei->reg_mask
18:35.31cr2too late :)
18:35.55*** join/#htc-linux Echo31 (n=olivier@mir31-4-82-240-194-54.fbx.proxad.net)
18:37.54cr2pH5: i'll pull my hair out with such arithmetic :) ei->bus_shift = fls(pdata->bus_width - 1) - 3;
18:38.11Echo31pH5: i don't watch the debug messages
18:38.24cr2Echo31: use printk
18:38.33cr2<PROTECTED>
18:39.34Echo31cr2: for the first call of writw, the function crashs
18:40.25cr2fls - find last bit set
18:40.43cr2Echo31: return before writing, but after printk
18:41.11cr2or put at endless loop, whatever
18:42.58*** join/#htc-linux fnord_ (n=fnord@24-151-90-116.static.nwtn.ct.charter.com)
18:44.18*** join/#htc-linux kiozen (n=oeichler@rgnb-5d87de91.pool.einsundeins.de)
18:45.08Echo31cr2: printk is ok. i will send the messages
18:51.30Echo31cr2: pH5: find the messages EGPIO: setting 0 to 0, was 14
18:51.31Echo31EGPIO: setting 1 to 0, was 20
18:51.31Echo31EGPIO: setting 2 to 12, was 13
18:51.31Echo31EGPIO: setting 3 to d, was d0
18:51.31Echo31EGPIO: setting 7 to 0, was a
18:59.46*** join/#htc-linux kiozen (n=oeichler@rgnb-5d87de91.pool.einsundeins.de)
19:00.24Echo31the messages written by printk("EGPIO: setting %x to %x, was %x\n", reg,
19:00.24Echo31(egpio->cached_values >> shift) & ei->reg_mask,
19:00.24Echo31egpio_readw(ei, reg));
19:02.04pH5cr2: maybe I should change that to a switch statement
19:04.44pH5Echo31: which of the writes fails, and how?
19:06.16Echo31pH5: I create a counter. For the first value, the system crashes
19:07.37*** join/#htc-linux ImCoKeMaN (n=imcokema@pool-71-173-203-229.hrbgpa.fios.verizon.net)
19:08.19*** join/#htc-linux nebi (n=nebi@217.142.147.19)
19:09.43Echo31pH5:  the principle: outside the function    static int counter  ;in the function  if counter < 1   Writew and after counter ++
19:14.26*** join/#htc-linux Kevin2 (n=Kevin2@207-237-194-161.c3-0.avec-ubr2.nyr-avec.ny.cable.rcn.com)
19:18.13Echo31pH5: cr2: I try with if ( egpio_readw(ei, reg) == 0x14 )
19:18.13Echo31<PROTECTED>
19:18.13Echo31& ei->reg_mask, ei, reg);
19:28.55Echo31pH5: cr2; the first values 'EGPIO: setting 0 to 0, was 14'  fails
19:49.44*** part/#htc-linux hachiya (n=flash@mail.filmpr.com)
19:54.33cr2Echo31: you should post the full patch to pH5 tree, so i can apply and test it
19:56.49Echo31cr2: ok,  few minutes
20:00.01xsachacr2: why does ARM use X * CCCCCCD >> 35 = X/10 ?
20:00.28xsachawouldnt X*CCD >> 15 = X / 10 would just as well?
20:00.49xsachaor is it to work for all size numbers?
20:14.07Echo31vr2: pH5:   find the patch http://fr.pastebin.ca/1484125 with htc-egpio.c changed
20:17.07*** join/#htc-linux pleemans (n=toi@d54C2AAB7.access.telenet.be)
20:20.32*** join/#htc-linux Captnoord (n=Captnoor@ip4da104ed.direct-adsl.nl)
20:32.14cr2Echo31: ok
20:52.54xsachabattery driver works! yipee
21:00.15*** join/#htc-linux BabelO (n=fcr@unaffiliated/babelo)
21:00.34*** join/#htc-linux darkstar62 (n=darkstar@97-126-107-190.tukw.qwest.net)
21:11.58pH5xsacha: congrats!
21:17.27*** join/#htc-linux darkstar62_ (n=darkstar@m0b0e36d0.tmodns.net)
21:26.57xsachapH5: is there a better way to add batt_vol and batt_temp props (android looks for) than adding it in to power_supply.h?
21:34.15xsachai mean i did that and it works but seems bad
21:36.14*** join/#htc-linux pr0p (n=pr0p@84.228.139.160)
21:39.46kiozencr2: around?
21:52.48pH5xsacha: are those just nonstandard names for the voltage_now and temp properties?
21:54.43xsachayes
21:55.19xsachai dont know why they dont use the standard names
21:55.34pH5urghs, no way to fix userspace?
21:55.53pH5is it possible to create links in sysfs by now?
21:55.54tmztcustom libhardware
21:56.08tmztmaybe we should go that direction
21:56.33xsachawhat does everyone else use? HTC-linux for eg.
21:56.45tmztmake on for standard 2.6 with full enumeration and contribute it for the upstream work
21:57.02tmztwas debian, now custom gentoo
21:57.16xsachak
21:57.31tmztwe'll need it for asoc support later anyway
22:02.38cr2har
22:03.03tmzthello, cr2
22:03.18tmztcan you look at something quickly?
22:03.29cr2what ?
22:03.40tmztthis bootloader thing
22:03.42cr2i'm looking for dcordes
22:03.59cr2bootloader ?
22:04.55*** join/#htc-linux dcordes (n=dcordes@unaffiliated/dcordes)
22:05.20dcordeshi tmzt, cr2 others
22:06.11cr2hi dcordes
22:10.01dcordescr2: you need help with anything?
22:10.44cr2dcordes: will you be here tomorrow , aka today ?
22:11.11cr2i'd like to commit some patches
22:11.56cr2and i've written a playwav2.c program, that talks to /dev/msm_snd , and is more or less a standalone player/recorder
22:12.05tmztcr2: pH5 sets up ltg accounts?
22:12.06cr2very nice for initramfs.
22:12.14cr2i have no time for that
22:12.41tmztI mean for a 2.6.29 tree
22:12.46cr2tmzt: will leave on tuesday for a vacation, i've told you
22:12.52tmztyeah
22:14.37*** join/#htc-linux dcordes_ (n=dcordes@unaffiliated/dcordes)
22:14.51*** join/#htc-linux nebi (n=nebi@217.142.147.19)
22:14.52cr2dcordes_: we need a qdsp_6150.c file too.
22:15.12cr2dcordes_: this will create an even bigger mess in the common code.
22:15.31cr2<PROTECTED>
22:15.33cr2<PROTECTED>
22:15.39dcordes_cr2: I have to work from 2pm til 10pm tomorrow
22:15.51dcordes_CET
22:15.53cr2ok
22:16.12cr2i'll wake up early
22:16.19dcordes_if you are here in the morning we can handle it before I leave
22:16.23cr2was hacking since 8:00 today.
22:16.38cr2never happened to me on saturday before ;)
22:16.48dcordes_was sleeping at that time. had same late shift yesterday
22:16.57cr2i see
22:17.26dcordes_wednesday is last day of service
22:17.48cr2tmzt: you should verify other entries for 6150
22:17.57cr2dcordes_: congratulations :)
22:18.02tmztok, if I can haret to work
22:18.59dcordes_cr2: thanks. actually I'm still public servant until end of july but I have the full vacation
22:21.23cr2ok
22:22.11cr2tmzt: actually, adapting the adsp_xxxx.c is the main task for making sound work. i have some progress here.
22:22.39tmztok
22:22.53tmztso I need the module numers
22:23.27cr2i'll pastebin them
22:23.51cr2and i was looking for these numbers in adsp*.dll
22:24.24cr2need to cross-compare the tables to other g1 values
22:25.33cr2tmzt: can you create a wiki table with name, raph100_5200 number, raph800_6150 number, g1_6210, g1_6225, ... columns ?
22:26.03cr2tmzt: yes, and vogue_4xxx too
22:26.32cr2so we can compare them like MSM_CLK values for 7200, 7201A and 8250
22:26.39tmztnot on here
22:26.51tmzteven iris makes it unusable
22:27.57tmztI can make a csv if you have the data
22:28.32cr2there are 7 tables in adsp_5200
22:28.48cr2i've edited the module table, the first one.
22:28.54cr2pasting it now
22:31.59*** join/#htc-linux Aiv (n=Aiv@office.mdsoftware.pl)
22:32.02Aivhi
22:32.17cr2tmzt: https://privatepaste.com/e6su4ozqAR
22:34.47Aivi trying to get gpios from x1, but haret don't recognize this device so "watch gpios x" give me max 10 gpios
22:35.04cr2x1 ?
22:35.05Aivis there any option to configure haret for x1?
22:35.08Aivxperia
22:35.20Aivaka htc-kovsky/venus
22:35.37cr2can you recompile haret ?
22:35.45Aivwhy not
22:36.16cr2is it a registered mtype ?
22:36.27tmztask dcordes
22:36.31Aivyes, AFAIR 2006
22:36.37tmztwhen he gets back
22:36.47cr2dcordes_: here ?
22:37.08Aivi found some gpios list of couse but i need to check this manualy at my phone
22:37.10tmztcr2: you want those in csv?
22:37.11cr2Aiv: is this mtype already in the haret CVS/git ?
22:37.16tmztor html table
22:37.24cr2tmzt: mediawiki
22:37.34Aivcr2 i dont think so, w8 i will check
22:37.53cr2tmzt: you can add it to htc-linux.org wiki
22:38.09tmztnot on my phone
22:38.14tmztI mean
22:38.18cr2Aiv: you can hijack some existing number, but it's not nice.
22:38.29cr2tmzt: ah, ok
22:39.36dcordes_yea semi present
22:39.49dcordes_Aiv: any x1 success? did the initrd usage help?
22:39.56cr2dcordes_: is kovky registered, and in haret ?
22:40.06Aivdcordes_ yep, thx
22:40.11dcordes_well it's in the arm registry
22:40.16Aivdcordes_ i just run git and make patches
22:40.33Aivdcordes_ now i trying to got gpios my self
22:41.07dcordes_cr2: shouldn't kovsky gpio work in the same way as raphael gpio??
22:41.16dcordes_I mean we have no cplds and it's the same chip
22:42.24cr2dcordes_: haret needs to detect it as 7201A
22:42.39cr2which is hardcoded into machtypes.txt
22:43.17AivWelcome, this is HaRET pre-0.5.3-20081105_214354 running on WindowsCE v5.2
22:43.17AivMinimal virtual address: 00010000, maximal virtual address: 7FFFFFFF
22:43.17AivDetected machine Generic MSM7xxx/MSM7xxx (Plat='PocketPC' OEM='X1i')
22:43.18AivCPU is ARM ARM arch 6 stepping 2 running in system mode
22:43.38dcordes_7xxx no good
22:43.44*** join/#htc-linux nebi (n=nebi@217.142.147.19)
22:44.05dcordes_Kevin2: are you there?
22:44.16Aivi dont see anything about x1/kovsky in http://linuxtogo.org/cgi-bin/gitweb.cgi?p=groups/haret/haret.git;a=blob;f=src/mach/machlist.txt;h=2eea55ad4cd23dbac2a9abcf53f8604886aa5071;hb=577253518ce0dcb3ff754cc294a03e40d94f15f6
22:44.39cr2tmzt: i think i have found these enums in the .dll
22:44.53cr2tmzt: but i need to compare them value for value
22:45.02cr2tmzt: and it's for my raph100 only
22:45.18tmztharet?
22:45.29tmztyou have the raph800 dlls?
22:48.20cr2no
22:48.34cr2let me check it for 100 first
22:49.36dcordes_Aiv: so we need to add it along with blackstone
22:50.49Aivdcordes_: if i set mtype in haret to blackstone (1951) i will get baclstone specyfic gpios?
22:51.45dcordes_Aiv: no there's no blackstone in the kenrel
22:51.49cr2Aiv: no, but you can compare them to the wiki values
22:51.56dcordes_Aiv: did you try what I proposed and open keyboard to see if it triggers the sd detection?
22:52.08cr2dcordes_: should i pastebin playwav2.c ?
22:52.25dcordes_cr2: yes. I can prepare new initrd with it tomorrow
22:52.29Aivdcordes_ yes, but my kernel dont recognized it, but now i will try to focus on keyboard, navipanel etc
22:52.39cr2ok
22:52.43dcordes_cr2: have it stay a bit longer in the pastebin
22:52.46Aivdcordes_: with initrd and ssh i dont need sd now
22:52.48Kevin2dcordes_: Hi
22:53.19cr2Kevin2: can you merge some new devices to haret machtypes.txt ?
22:53.49Kevin2cr2: Sure - just send a patch.
22:53.51dcordes_we could also put the other new msm. topaz etc
22:53.53cr2Kevin2: maybe it's better to register them dynamically by reading and parsing machtypes.txt ?
22:54.06tmztcmonex should have the Plat names
22:54.22Kevin2cr2: That would be nice, but it's not setup that way currently.
22:54.26*** join/#htc-linux nebi (n=nebi@217.142.147.19)
22:54.33cr2ok
22:54.38cmonextmzt?
22:54.50tmztPlat/Oem for topaz, etc.
22:55.01tmztfor haret
22:55.12Aiv"ibit gpios X" it's nor working when haret dont recognise my phone?
22:55.31tmztit things you have an older cpu
22:56.40AivI try to ignore flooding gpio (9). After ibit gpios 9 i have gpio 9 in watch gpios command
22:57.07tmztit wonqt work until it's detected properly
22:57.14Aivk
22:57.41tmztcmonex: I mean we need the Plat and Oem names that ce reports on diamond2 and tp2
22:57.49tmztto add them to haret
22:58.00Aivso what i can do to correct detect it ? ;]
22:58.26cmonextmzt :
22:58.31cmonexnot sure what you mean,
22:58.35cmonexcan you give me what they are for raphael?
22:58.39cmonexso i can see what you mean
22:59.45cr2tmzt: the module tables seem to be the same as on 6210
22:59.50tmztI would but I just realized mines not dxetected either
22:59.53tmztgood
22:59.57tmzthold on
23:00.12cr2tmzt: but the queue offsets seem to be different
23:00.38tmztok
23:00.44tmztsame as smd
23:00.48tmztis different
23:01.57Aivguys, can i help with something with adding support for kovsky to haret?
23:01.57tmztcmonex: Plat='PocketPC' OEM='RAPH500'
23:02.15tmztAiv: get cegcc toolchain
23:02.55tmzthah, I have Detected Generic MSM7xxx/MSM7xxx as well
23:04.10Aivtmzt: and compile haret from git? Do i dont need to add somethinf to machtypes?
23:05.20tmztyes, that's easy
23:05.27cmonexah
23:05.32cmonexwell they're all PocketPC then :)
23:05.35cmonexthe OEM will be the modelid
23:05.40tmztok
23:05.42cmonexTOPAxxx and RHODxxx
23:05.47cmonexxxx is for gsm anyway..
23:05.54cmonexTOPA100, 210, etc-...
23:06.04cmonexseveral modelids exist, rebranded devices have diff one
23:06.10cmonexpointless usually :)
23:06.30tmztif we had proper cpu detection we wouldn't need it
23:06.36tmztbut that's how haret works
23:06.54Aivtmzt: compiling is easy, but that's all? after i compile from git, haret detects my phone better than now?
23:07.16tmztno, add a line to a .txt file first
23:07.24tmztthen compile
23:09.59Aivtmzt: ok, i will try
23:12.03cr2dcordes_: how many days ?
23:18.56cr2tmzt: https://privatepaste.com/e81A1bINab
23:21.23tmztand the patches for kernel?
23:22.51cr2i need to sync to the current git first
23:23.27tmztok
23:23.40tmzthow do I find the mailboxes?
23:23.48cr2i've left msm72xx_enable_audpp() for you :)
23:23.52tmztif they're different
23:23.56tmztok
23:23.56Aivhmm
23:23.57Aivmake
23:23.57Aivmkdir out
23:23.57Aiv<PROTECTED>
23:23.58Aivmake: *** [out/machines.o] Floating point exception
23:24.08tmztwow
23:24.27tmztdid it compile before your changes?
23:24.56Aivi dont know, w8 i will check
23:25.53Aivsome results
23:26.32Aivi only add line "X1i,MSM7200A,X1i,2006" to machlist.txt
23:27.30tmzttry without it
23:27.43tmztX1i?
23:28.01Aivi tried
23:28.16Aivname from current haret: (Plat='PocketPC' OEM='X1i')
23:28.47Aivthis is htc venus/kovsky
23:29.36Aivstrange
23:29.37Aiv$ /opt/mingw32ce/bin/arm-mingw32ce-cpp
23:29.37AivFloating point exception
23:29.42Aivthis is problem with toolchain
23:30.03tmztyeah, thought so
23:30.22tmztdcordes: do you have an X1i?
23:37.38Aivok, on another server toolchains is working fine
23:41.12Aivout/mach-autogen.cpp:608: error: expected class-name before '{' token
23:41.12Aivout/mach-autogen.cpp: In constructor 'MachX1i::MachX1i()':
23:41.12Aivout/mach-autogen.cpp:611: error: 'name' was not declared in this scope
23:41.12Aivout/mach-autogen.cpp:612: error: 'PlatformType' was not declared in this scope
23:41.12Aivout/mach-autogen.cpp:613: error: 'OEMInfo' was not declared in this scope
23:41.13Aivout/mach-autogen.cpp:614: error: 'machType' was not declared in this scope
23:41.15Aivout/mach-autogen.cpp: At global scope:
23:41.17Aivout/mach-autogen.cpp:617: error: cannot convert 'MachX1i*' to 'Machine*' in initialization
23:41.19Aivmake: *** [out/mach-autogen.o] Error 1
23:41.21Aiv;[
23:41.35Aivsomething is wrong with code generation
23:41.38Aivi add line: X1i,        MSM7200A,X1i,                         HTCVENUS
23:41.47cr2Aiv: it should match the mtype name
23:42.39Aivroot@fortuna:~/haret/haret# cat include/mach-types.h | grep HTCVENUS
23:42.39Aiv#define MACH_TYPE_HTCVENUS             2006
23:44.36Aivk, there is no definition for MachineMSM7200A
23:46.13tmzt7201A
23:47.01Aivi just create alias in mach-msm.h
23:47.12Aivdownloading exe now
23:48.32*** join/#htc-linux fnord_ (n=fnord@24-151-90-116.static.nwtn.ct.charter.com)
23:49.04cr2tmzt: 2a not 2b
23:49.28tmztioctl?
23:49.46cr2<PROTECTED>
23:49.53cr2for 6210
23:49.59tmztok
23:50.08cr2but it should be 2a on 5200
23:50.09IceBone1701-D
23:50.13tmztthatqs for openmax?
23:51.38*** join/#htc-linux nebi (n=nebi@217.142.147.19)
23:54.06AivDetected machine X1i/MSM7xxxA (Plat='PocketPC' OEM='X1i')
23:54.23cr2tmzt: QDSP_RTOS_NO_QUEUE distribution in enums is very helpful
23:54.42cr2QDSP_RTOS_NO_QUEUE = -1 = 0xffffffff
23:55.24Aivbut i still done have correctl list of gpios ;[
23:55.34cr2and QDSP_MODULE_MAX
23:55.43Aivand ibit gpios 9 not ignore gpio 9 at watching
23:55.54Guest94912lost his Tilt
23:56.30Raketemenschsuch a bummer, it's just gone.
23:56.46cr2the offset tables are completely different. not even a single match ;)
23:57.19Aivoo wirq not show something
23:57.25Aivbut watch gpios still not ;[
23:57.35*** join/#htc-linux ccube (n=ccube@ssh.ccube.de)

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