IRC log for #htc-linux on 20090201

00:01.56ale_____about use gps, is possible?
00:02.26cr2maejrep: because "0" can be a parameter
00:02.54maejrepcr2: but when it's a pointer, you wouldn't pass a NULL pointer as data=0
00:02.57cr2maejrep: i think (void *in, void *out) as used by wince is more logical
00:03.07maejrepyou'd do unsigned data=0; and pass &data
00:03.13cr2because you are explicitely forced to mark the params
00:03.35cr2hm. ok
00:03.50maejrepso make it a structure, using:  { short has_data; short command; unsigned data1; }  ?
00:04.04maejrepno, other way
00:04.09maejrepshort command; short has_data;
00:04.17cr2i think it's so in wince
00:04.22maejrepthat's what I'm seeing
00:04.43cr2{char cmd; char param; short dummy; int param1; ...
00:04.55maejrepif *(in + 1) == 0x1, then store data at *(in + 4) into PC_DATA1
00:05.54maejrepyeah
00:06.05maejrepbut that makes setup for each dex call more complex :p
00:06.34cr2that's true.
00:06.51cr2but easier to analyse the calls
00:06.56*** join/#htc-linux gh0ul (n=asds@host81-157-60-163.range81-157.btcentralplus.com)
00:07.48maejrepcr2: is there any way to know what this is supposed to be?  LDR     R2, =unk_10014714
00:08.14maejrepseems to happen occasionally in ida
00:08.17cr2what is at unk_10014714 ?
00:08.38maejrepwell, ida doesn't have a value for it, that's why it's labeled as "unk_"
00:08.40cr2local memry, or a constant ?
00:08.43maejrepif you go to that address, it just shows "1"
00:09.04maejrep"unk_10014714 % 1"
00:09.07cr2int a=1;
00:09.28maejrepbut it's *always* 1, even when I know it's meant to be something else
00:09.29cr2or char a=1 ?
00:09.48maejrepfor example:
00:09.49maejrepLDR     R3, =unk_1001436C
00:09.49maejrepLDR     R2, =unk_10014714
00:09.49maejrepMOV     R0, #1
00:09.49maejrepLDR     R3, [R3]
00:09.51maejrepMOV     R1, #0x64
00:09.53maejrepSTR     R0, [R3,#0x418]
00:09.53cr2it's in the .data segment, so it can be overwritten
00:10.11maejrepthat's it storing a '1' at offset 0x418 of R3, which is "unknown"
00:10.26maejrepbut R3 is actually: b5400000
00:10.30cr2it's some local buffer
00:10.35maejrepbecause offset 0x418 is "A2M_INT6"
00:10.41cr2ok
00:11.07cr2they store a "context" in a buffer
00:11.15tmzthow many of those does trout use? A2M_INT
00:11.28cr2int buf[size];
00:11.29maejrepso its something that was setup previously by some other dll then?
00:11.31tmztA2M_INTn
00:11.43maejreptmzt: I think it makes use of 0->6 at least
00:11.48maejrepdon't know what the others are for
00:11.48cr2maejrep: i think by the same dll
00:12.34cr2maejrep: 3 is AT cmd
00:12.45cr2i think it's in wiki: raphael_irq
00:12.50maejrepyeah it is
00:13.04maejrep6 is for DEX notify
00:13.08cr2http://wiki.xda-developers.com/index.php?pagename=Raphael_IRQ
00:13.22maejreper, you're referring to M2A interrupts
00:13.28maejrepthis is an A2M soft interrupt
00:13.35maejrepto tell the arm9 that data is ready
00:14.40cr2http://wiki.xda-developers.com/index.php?pagename=RaphaelMemoryMapPg3
00:15.11cr216 in the wiki, but i don't remember how many in real life
00:19.02*** join/#htc-linux nashpa1 (n=dliviu@dliviu.plus.com)
00:21.25maejrepright
00:23.15maejrepcr2: and how would it work for the vreg_set_level, which needs 2 params (pmic id, and level)
00:24.19cr2maejrep: i need to check it. probably the input struct will have 1 more value
00:25.28NetRippertmzt, trout uses A2M_INT0, 5, and 6
00:26.17maejrepok, but in the dex function I'm looking at, it only sets data1 with the 4 bytes from *in+4
00:26.27NetRipper0 for smd, 5 for smsm, 6 for proc_comm
00:26.51cr2maejrep: ok, i'll check. the cmd=1a ?
00:27.15maejrepNetRipper: what do you think about renaming proc_comm_wince to data_exchanger or dex? :p
00:27.27tmztcould it just be a mask?
00:27.46maejrepsince "proc_comm" is not referenced anywhere wrt our wince amss
00:27.55maejrepI think calling it proc_comm_wince could be confusing
00:28.50NetRippermaejrep, emmm i think its unneccesary work, but i agree it could remove some confusion
00:30.04maejrepso low priority then
00:31.21maejrepI'm trying to turn the asm into pseudo code so I can rewrite what needs to be rewritten in proc_comm_wince, to be sure it's working correctly
00:34.17NetRipperok
01:10.16tmztcr2: for i780 if needed: http://article.gmane.org/gmane.linux.ports.arm.kernel/51442
01:10.26tmzthttp://thread.gmane.org/gmane.linux.ports.arm.kernel/51442
02:17.26*** join/#htc-linux Venny (i=Travis@h216-45-127-2.dynamic.platinum.ca)
02:31.34*** join/#htc-linux mitpianoman (n=chatzill@cpe-74-69-91-35.rochester.res.rr.com)
02:56.03maejrepcr2: rewritten proc_comm_wince(struct msm_dex_command *in, unsigned *out) function works :)
03:01.01maejrephmm, rmmod wlan makes the phone reboot ;x
03:03.34LemHxCis back (gone 08:50:13)
03:03.43LemHxCvoit double
03:35.24tmztmaejrep: you leave reboot on oops enabled?
03:38.14*** join/#htc-linux ykut_johny (n=ykut_joh@mitsa.org.my)
03:41.23maejreptmzt: I don't recall, but its never been able to reboot on its own, so I'm guessing its something else
03:41.56maejrepalthough, I did add in cr2's interpretation of soft reset, so I'll test if that works when running reboot / shutdown -r
03:42.31AstainHellbringwow maejrep been working hard eh?
03:43.19maejrepwhen i can :p
03:43.55AstainHellbringso I been away for a bit how much of raph800 you got working?
03:45.41maejrepwell, wifi driver detects the SDIO device, but we don't have firmware loading done yet, and it doesn't implement wireless-extensions so iwconfig doesn't work
03:46.07maejrepimplemented LED class devices so you can turn LEDs on and off, including keyboard backlight and LCD backlight
03:46.34AstainHellbringnice
03:47.18maejrepand got keyboard LED api working, just need to tweak it a bit so that it does the LED setting in a workqueue
03:49.00maejrepin the process of getting wifi working, I moved mmc to board-htcraphael-mmc, and used trout as a base, so it actually sets vregs as needed
03:49.19maejreprewrote wince proc_comm implementation just now, and that works
03:49.33maejrepI think j0b0 got the navi working, but it hasn't been committed to git yet
03:51.12AstainHellbringcool hows the status on smd1?
03:51.12maejrephaven't started on it yet
03:51.12maejrepstill trying to work out the best/cleanest way to do it
03:51.31AstainHellbringahh ok
03:51.55AstainHellbringsms working on 800?
03:52.10maejrepthat requires data channels on smd first
03:52.30maejreprather, DS channel, which is the AT cmd channel
03:53.25AstainHellbringahh so I take it the wiki on xda is off a bit?
03:53.37maejrep?
03:53.40maejrepwhich page
03:54.07AstainHellbringhttp://wiki.xda-developers.com/index.php?pagename=RaphaelLinux
03:54.29maejrepthat's only on raph100
03:54.37maejrepraph100 exposes the DS channel using the channel headers
03:54.41maejrepbut raph800 doesn't
03:54.47AstainHellbringahh ok
03:54.53tmztmaejrep: adding it manually doesn't work?
03:55.00maejrepadding what?
03:55.26maejrepfor DS channel, it requires code changes, because the DS channel is not structured the same way as every other smd channel
03:55.45maejrepraph800 does DS channel the same as vogue
03:55.52tmztis it possible it is counting ppp frames or something like that?
03:56.07maejrepbut because raph100 doesn't do that, I don't want to just use vogue-smd
03:56.22tmztrather than a tty type protocol like the others
03:56.56maejrepwell it can still use tty, we just need to redefine how it gets head/tail for each fifo, and where that fifo buffer lives
03:56.59tmztwhat have you found in the registry about that channel? I know we found others
03:57.14tmztand you have the addresses?
03:57.15maejrepthe registry just mentions it the same way as all the others
03:57.36tmztsame driver also? it implements a com port?
03:57.38maejrepyeah I have the addresses of both channels 0 and 1
03:57.42maejrepyeah
04:07.39maejrephmm, no, `reboot` didn't work
04:07.40AstainHellbringmaejrep, edited wiki for you on sms portion
04:08.31maejrepk
04:10.00*** join/#htc-linux woopdeedoo (i=bite@gateway/tor/x-b63cecde8dccdd68)
04:19.34*** join/#htc-linux Funkwheat (i=Funkwhea@pool-72-87-87-19.prvdri.fios.verizon.net)
04:19.45FunkwheatEvenin'
04:20.21tmzthello
04:20.40FunkwheatWhat's goin' on
04:20.59tmztmaejrep and AstainHellbring are working on the Sprint Touch Pro
04:21.08tmztirclog.iclem.net
04:21.17Funkwheatnice.
04:32.35Funkwheattryin to mess around with Android on my tilt.
04:37.20tmztkaiser?
04:37.51tmztlinuxtogo.org/~lgorris/bootkit/
04:38.19tmztand try the dzo vogue android image with that zimage
04:39.22FunkwheatYeah Kaiser
04:39.28Funkwheatoh word?
04:39.41FunkwheatYeah trying to figure out which is the latest/best one right now...
04:39.58FunkwheatSeems different shit works in different ones
04:40.24FunkwheatOne of them I managed to get online with, but then another, with more bugs fixed..couldn't get online.
04:40.25Funkwheatodd
04:41.14Funkwheatsite you just pasted appears to be down.
04:42.37tmztslow probably
04:43.00tmztcan you be specific about what's better, bugs fixed, can't get online
04:43.06Funkwheatsure
04:43.09tmzts/be /be more /
04:43.31FunkwheatResolution is all fixed on one...and the keyboard flip goes the right way when you open it
04:43.33Funkwheatand can change back
04:43.37Funkwheatbut can't get online on that one.
04:44.05FunkwheatWhereas the other one I was using..internet works great and all but the flip goes the wrong way when you open the keyboard, and then never goes back to vertical.
04:44.20Funkwheatand the reoslution is a little odd, cause the Android logo is off to the right when it boots.
04:44.39FunkwheatTryin to recopy all the shit and try the good one again though
04:52.36maejreptmzt: any suggestions for getting smd.dll and smem.dll off my phone? ;o
04:53.57tmztextract imgfs, ask in #xda-devs, I've only done it once
04:55.51maejrepi get an error trying to extract OS.nb.payload
04:56.18AstainHellbringmaejrep, I have those already extracted if you want
04:57.06maejrepfrom a sprint phone?
04:57.21FunkwheatYeah..weird...on the image of android that seems the most perfect for the kaiser..the internet doesn't work lol
04:57.29AstainHellbringsprint rom dump yes
04:57.41maejrepsure, if you don't mind: www.privatepaste.com/upload
04:57.47AstainHellbringsure
04:58.31maejrepmaybe some time I'll ask you to walk me through extracting that ;)  I think I followed the directions exactly.. but I still get an error extracting the sprint "shipped" rom
05:01.14maejrepImgFs partition starts at 0x00000000 and ends at 0x00000000
05:01.16maejrepDumping IMGFS at offset 0x007a91c0 (size 0xff856e40)
05:01.16maejrepDone!
05:01.17maejrepheh :/
05:06.15maejrephmm, just started over and used DumpKaiser.bat, and that seemed to work..  maybe I did the nbsplit wrong
05:09.32maejrepit extracted smd.dll, but not smem
05:13.51tmztis it in xip?
05:16.26AstainHellbringmust be if its not in rom dump
05:18.46maejrepguess so
05:22.33maejrepi don't see anything in nk.exe
05:25.52*** join/#htc-linux _MasterPrenium (n=MasterPr@ALille-257-1-158-205.w86-215.abo.wanadoo.fr)
05:38.23*** join/#htc-linux BHSPitLappy (n=BHSPitLa@unaffiliated/bhspitmonkey)
06:00.05*** join/#htc-linux sdt555 (n=titus@70.114.152.91)
07:49.22*** join/#htc-linux Venny (i=Travis@h216-45-127-2.dynamic.platinum.ca)
08:35.28*** join/#htc-linux cr2 (n=cr2@ip-90-187-194-201.web.vodafone.de)
08:46.00cr2maejrep: the log is not available
08:46.09maejrepwhat log?
08:46.44cr2maejrep: hm. +0x30 is an offset from 0xfc100 ? it must have been too late ;-)
08:46.50cr2irclog.iclem.net
08:46.57maejrepyeah ;)
08:47.03maejrepfc130 is specifically for storing vreg levels
08:47.09maejrepdoesn't seem to be used for anything else
08:47.15maejrepand is not used by the dex function
08:47.21cr2yes, it's the second parameter location
08:47.50maejrepright, but dex doesn't use it.  the vreg set level function stores into that location *before* the dex call
08:48.08cr2ok, it's not a part of the api
08:48.16cr2braindead design ;)
08:48.33maejrepits probably used by the arm9 during the proc comm interrupt, for that purpose
08:48.50maejrepbut I would consider it not part of the dex api, technically speaking
08:49.07cr2but without the vreg idx it's useless
08:49.18maejrepyeah
08:49.36maejrepit can also be used during enable/disable of a vreg, to set its initial voltage
08:49.42maejrepdoesn't have to be used during vreg_set_level
08:49.43cr2it's a part of the api, but very braindead one
08:49.48maejrep:/
08:50.22maejrepthe example I saw was storing 0x7d0 into fc130, then calling proc_comm with cmd=0x4, and data=0 (has_data=0)
08:50.24cr2dzo used it as a part of the api
08:50.47cr2ok, so it's not cleared after a call
08:50.48maejrepand the idea is it would enable the vibra motor vreg, initialized at level 0x7d0 mV
08:50.55maejrepdoesn't look like it, no
08:51.13maejrepjust left orphaned after its first use
08:51.15cr2normal vibra is 0xb22 ?
08:51.17maejrepyes
08:51.33maejrepmaybe the arm9 clears fc130?  but who knows
08:51.59cr2amss disassembly knows ;)
08:52.03maejreplol
08:52.42maejrepdid some more machine-independent cleanup in board-raph-mmc, getting ready for more patches to dump on NetRipper :D
08:52.47cr2o, i will edit the raphaelmddi by splitting it
08:53.03maejrepsplitting into raph100/raph800 ?
08:53.32*** part/#htc-linux MasterPrenium (n=MasterPr@ALille-257-1-158-205.w86-215.abo.wanadoo.fr)
08:53.39cr2no
08:53.49cr2it will be a table
08:54.09cr2i'll put toshi and epson to separate pages
08:56.06maejrepoh
08:58.38cr2btw, ho do i enable tvout ?
08:59.39*** join/#htc-linux ewasx (n=armin@2-157.surfsnel.dsl.internl.net)
09:01.12*** join/#htc-linux zycho (n=zycho@a89-183-70-252.net-htp.de)
09:03.55*** join/#htc-linux orux (n=jose@89.130.46.3)
09:07.28*** join/#htc-linux kiozen (n=oeichler@rgnb-5d87c32e.pool.einsundeins.de)
09:09.15maejrepno idea :x
09:09.17maejrepnever tried it
09:18.17*** join/#htc-linux timebomb (n=tb@e176116068.adsl.alicedsl.de)
09:19.00*** join/#htc-linux BabelO (n=fcr@unaffiliated/babelo)
09:23.57cr2maejrep: http://wiki.xda-developers.com/index.php?pagename=RaphaelMDDI
09:24.12cr2maejrep: i need to fill more g1 values, but you get the idea
09:25.40cr2and you need to write mddi_client_epson...
09:26.45maejrepis the Init table a sequence?
09:27.01maejrepas in, it runs those, from top to bottom?
09:28.34cr2yes
09:29.04cr2the toshiba init is in rapahelLCD
09:29.13cr2the epson init should be added too
09:29.35cr2but it will have a huge SPI value pairs table included
09:29.42cr2depending on the device i guess
09:30.17maejrepsoft reset didn't work :p
09:30.45cr2hmm
09:31.02cr2magic ascii alue missing ?
09:31.19tmztspi from what chip?
09:31.44cr2tmzt: epson
09:31.56tmztto the lcd controller?
09:32.07cr2the the panel itself
09:32.15tmztyeah
09:32.31cr2epson is the MDC in this case
09:32.45cr2and msm is the MDC for the cam
09:32.49tmztand the lcd is lvds connected to that?
09:32.56cr2and least that's how i undertand it.
09:33.06cr2yes
09:33.55tmztthe epson chip has it's own framebuffer ram?
09:34.18cr2yes
09:34.25tmztthen it scans out to the lcd?
09:34.26cr2toshiba too
09:34.35cr2i hope so ;)
09:34.36tmztyeah, both chips (epson/toshiba)
09:35.09*** join/#htc-linux goxboxlive (n=goxboxli@185.84-48-126.nextgentel.com)
09:35.10tmztthis explains the need for the dma but you??/maejrep said it might be possible to enable the msm to do the dma
09:35.11cr2you don't really need some java to do lcd refresh ;)
09:35.18tmztthat ce might do that
09:35.36cr2dma for what ?
09:35.55cr2for the packets pushed through PMDH to MDC (epson/toshi) ?
09:35.58tmztthe dma that has to be updated to push the display
09:35.59tmztyeah
09:36.02tmztpackets?
09:36.17cr2its serial interface, like esata
09:36.28tmztthe 1.5ghz connection
09:36.30cr2sata/esata
09:36.47cr2yes, 1.28 i remind from g1 code
09:37.30cr2static uint16_t mddi_init_registers(struct mddi_info *mddi)
09:37.57cr2this struct mddi_info needs some per-device contents :)
09:38.26*** join/#htc-linux MethoS- (n=lem@host-091-097-242-002.ewe-ip-backbone.de)
09:46.11cr2ok, mddi init comparison finished http://wiki.xda-developers.com/index.php?pagename=RaphaelMDDI
09:47.13cr2DRIVE_START_CNT looks strange
09:48.17tmztwhy?
09:48.26tmztdo you what it means?
09:48.32tmztknow
09:49.28tmztthe first table is register values?
09:49.59cr2fixed
09:50.25cr2writel of the value into this register
09:50.35tmztah
09:50.38cr2mddi_write(val,reg)
09:50.56cr2can be done as the spi table too
09:51.25cr2but there you have mddi_remote_write(tx,val)
09:55.12oruxhello; i've found a mode, in blackstone, to send fb to the screen which partialy works.
09:55.48oruxsee: http://forum.xda-developers.com/showpost.php?p=3253382&postcount=252
09:56.43cr2orux: can you look at your wince dmesg after reset ?
09:57.21cr2ah, this alt problem is solved. with the negative result ;)
09:57.45oruxcr2, we can use the mddi link, instead of mdp to send the fb
09:58.05tmztmdp uses the mddi link doesn't it?
09:58.43oruxtmzt, i think mdp does not use mddi link;
09:58.44cr2orux: this is this slow mddi-less link ?
09:59.13oruxcr2, the problem with mddi link is that seems to work only with rgb666 format
09:59.17cr2orux: imho it should use it.
09:59.30cr2orux: the panel is 666
09:59.41oruxcr2, and i need to use a heavy routine to convert rgb565 to 666 format
09:59.49tmztthe epson/toshiba chip can convert it?
10:00.06cr2tmzt: does X support 666 ?
10:00.10oruxmdp seem to do convert it when does dma
10:01.05orux/* 666 18BPP */
10:01.05oruxdma2_cfg |= DMA_DSTC0G_6BITS | DMA_DSTC1B_6BITS | DMA_DSTC2R_6BITS;
10:01.33cr2orux: i still this that mdp should use mddi link
10:01.38oruxthere are flags related to this conversion in mdp
10:01.50cr2because there are no other means to transfer the picture
10:02.00tmztorux: I'm still trying to figure out what you mean by using the mddi link instead of mdp, how can you send data to the screen without using the mddi link?
10:02.23cr2but the toshiba .pdf says it's possible to transfer something in the slow mode
10:02.49oruxcr2, mddi can be used to transfer video stream, command packets and other things
10:02.52cr2using some other clock, but imvho it is still the mddi
10:02.54tmztwithout dma?
10:03.40oruxtmzt, it uses dma, i think
10:04.05oruxi am using the init mddi code from spl
10:04.26oruxthe code that cr2 is posting in wiki
10:04.39cr2orux: for toshiba ?
10:04.54cr2or for the mddi ?
10:05.04cr2pmdh
10:05.15oruxcr2, the PMDH (MDDI1) init: only
10:06.15cr2ok
10:06.30cr2so the colors are hidden in the epson spi init
10:06.35cr2and probably the conversion
10:06.55cr2can you use the dummy mddi client instead of toshiba ?
10:07.47*** join/#htc-linux Rogro82 (n=rogro82@s5591104d.adsl.wanadoo.nl)
10:09.43oruxcr2, there are more cuestions, when dumps wince pmdh registers, changes values, for example uses 0x32 instead of 0xd0 in DRIVE_LO /* 0x32 normal, 0x50 for Toshiba display */
10:13.02cr2use mddi_info, and put this data there
10:15.55oruxwell, i have problems because, when arriving to usb config, the screen shut down and ssh conection does not start. It seems that there are a kernel panic or something similar. i've to depure and test more things.
10:17.03oruxcr2, i ve the epson init table dumped from spl
10:17.39oruxi'll traslate it and post it
10:17.44cr2wiki
10:18.14cr2and you should record the panel gpio detection code, and the epson init sequence.
10:19.33oruxi was working on all the secuence. from "init qualcomm display", but when i could see my screen working :)
10:20.51cr2:)
10:25.45*** join/#htc-linux pleemans (n=toi@d54C2AAB7.access.telenet.be)
10:25.59cr2LOL
10:26.05cr2from xda-dev:
10:26.08cr2In this thread, the dev are discuting between them (sorry for my english, I speak french) and the lambda users, don't really understand all that "technology".
10:26.10cr2I prefer go to the wiki page and download the latest package "ready for use" and test...
10:28.20maejrep:o
10:29.30Rogro82:)
10:30.38maejrepcr2: so the mddi init code is basically the same between raph100 and 800, just the panel init is different?
10:31.26j0b0maejrep: correct, i do have the navi working and it hasnt been committed yet
10:31.49cr2maejrep: the irq part is disabled on g1
10:32.02maejrepwhat irq part?
10:32.13j0b0havent had it working yet in .27 and right now im moving it over
10:32.16cr2maejrep: and we need to separate the toshiba/epson
10:32.41cr20x00    CMD    IGNORE    DISP_LISTEN    DISP_LISTEN    DISP_LISTEN
10:32.42cr2<PROTECTED>
10:32.44cr2<PROTECTED>
10:32.57cr2inten is irq enable mask
10:33.15maejrepj0b0: ok, I've made some changes to the microp-* files as well..  would you like to make your changes on top of my diffs, or just send the separate patches to NetRipper and let him merge the changes?
10:33.51cr2hm. can you merge your patches into git ?
10:34.00j0b0well .. first i want to get back to a working state :/
10:34.03cr2otherwise we will be completely lost
10:34.05maejrepI don't have git access cr2  :)
10:34.34cr2when i see what is being merged there sometimes...
10:34.42cr2then your code is perfect :)
10:34.46*** join/#htc-linux patoche (n=patoche@lns-bzn-20-82-64-11-131.adsl.proxad.net)
10:34.48maejrepj0b0: ok, you might have some conflicts then, when git is updated with these microp changes
10:35.12maejreplol cr2 what is that supposed to mean??
10:35.13maejrep:p
10:35.20cr2LOL
10:35.59cr2i mean even if you make mistakes, it's not a big problem :)
10:36.21maejreplol i know :p  I just haven't gotten around to asking for it
10:36.37maejrepplus it's kind of nice being able to have my patches reviewed before being committed ;)
10:36.41maejrepjust in case i break something
10:36.43cr2and i can't write any new code, because i know that you've written a lot of code
10:36.47Rogro82On kaiser thread most fun question in ages: On another note has anyone seen these Google Dream phones on E-bay with supposed andrioid running already?
10:36.50maejrepj0b0: http://www.privatepaste.com/83yWmzkGEI#microp
10:37.02maejrepcr2: I gave NetRipper a patchset today
10:37.10cr2ok
10:37.30cr2Rogro82: lol
10:37.51maejrepcr2: but nothing touches mddi, etc
10:37.56cr2Rogro82: why didn't you use the g1 gp/pwm code for backlight ?
10:38.09maejrepits mostly proc_comm, gpio_config, mmc/wifi, and microp
10:38.23cr2maejrep: i think you have mddi_client_epson.c already ?
10:38.28maejrepits just a stub
10:38.32maejrepcopied from client_toshiba
10:38.33Rogro82cr2: Because basically i had it almost worked out before i looked at it :S
10:38.36j0b0i was going to make a patch from latest git to working navi, but somehow after switching branches a couple of times it 'just' doesnt work, so i may have to go back and re-apply changes 1 at a time
10:38.40maejrepwith the 4ca3 id
10:39.17maejrepj0b0: would you mind sending me a patch of what worked on .25?  I'd like to see it working :)
10:39.38cr2Rogro82: actually it's changing only the "duration" parameter in the 7 par clock formula
10:39.53j0b0not at all .. its just that at this very moment it doesnt work.
10:40.05j0b0or actually i think the navi works but it broke the keyboard somehow
10:40.06cr2Rogro82: so the code should be even more genric and simple than the g1 code.
10:40.14maejrepah
10:40.20j0b0i will make a patch
10:40.41maejrepwell my keyboard code might be what's broken actually..  and there have been updates to stabilize the keyboard code
10:41.37maejrepi have the keyboard driver controlling the caps led too
10:41.43Rogro82cr2: ill look into the backlight some more when i have the time... but my code already is a lot less then the g1
10:41.58cr2maejrep: the psoc detection is still pending
10:41.58maejrepbut the input subsystem doesn't automagically handle the Fn led, so I'm not sure how to implement that yet
10:42.04cr2Rogro82: ok
10:42.31maejrepthe code is already there to set the Fn LED, but the input subsystem only automatically sets the Caps LED, and doesn't know how to handle the Fn LED
10:42.55Rogro82cr2: had to make commits sometime because there was nothing for polaris in there.... no one else is pickup up work... hopefully now they will
10:43.16cr2Rogro82: http://wiki.xda-developers.com/index.php?pagename=MSM_CLK
10:43.46cr2Rogro82: can you fill the known cpld gpios in the polaris_cpld wiki ?
10:44.30Rogro82cr2: yes... someone else was updating the wiki but he didnt have all gpios..
10:45.51cr2ok. because i can add the battery/charging gpios
10:46.22Rogro82cr2: Did you get them from the battdrv?
10:47.57maejrepcr2: any suggestions for handling Fn on the keyboard?
10:48.31cr2maejrep: it's the separate keycode ?
10:48.42maejrepi mean, I know that the input driver in X/android can take care of binding Fn+KEY_*, but how to set the Fn LED?
10:48.47maejrepyeah
10:49.06cr2through the led api
10:49.20*** join/#htc-linux Zoolooc (n=fredsiba@nrbg-4dbf90be.pool.einsundeins.de)
10:49.22maejrepit's not an led class device, it's an input LED
10:49.46maejrepit's currently bound to LED_MISC, but I don't know how to enable that LED
10:49.59cr2hm, ok.
10:50.17maejrepLED_CAPSL is automatically handled by the input subsystem when pressing capslock, and that works great
10:50.24cr2Rogro82: yes
10:50.50Rogro82cr2: can you pastebin them so i can send them to the one who is updating that page?
10:51.10Rogro82cr2: would be a lof of help :)
10:51.12Rogro82lot
10:52.42*** join/#htc-linux imfloflo (n=imfloflo@cap31-6-88-180-73-121.fbx.proxad.net)
10:53.02cr2Rogro82: 5,8 and 5,4
10:53.17cr2bank,mask
10:54.00Rogro82ok thanks... and which one is what? :)
10:54.25cr2Rogro82: and gpio1
10:54.37cr2hmm. it's a more difficult question :)
10:54.38Rogro821,1
10:54.50cr2no. msm gpio1
10:55.03*** part/#htc-linux orux (n=jose@89.130.46.3)
10:55.10cr25,8 and 5,4 are cpld
10:55.11Rogro82k
10:55.32Rogro82think ive seen 5,4 on usb cable
10:57.21cr2yes, it's probably ac/usb charging enable
11:00.04cr2Rogro82: and msm gpio 0x11 is tested
11:01.34Rogro82cr2: g1 doesnt have a inactivity timer to drop the backlight after a few secs of inactivity only a total screen timeout... does it?
11:01.45j0b0maejrep: these are diffs against latest git: http://tibook.jb.b4m.com/j0b0/navi/ neither works properly at the moment. will look into that later
11:01.59cr2Rogro82: don't know
11:02.55Rogro82cr2: ok because thats how its setup in mine... it will also lower to the lowest brightness after 10 secs of inactivity. cant seem to find anything like that in the g1 code
11:04.04cr2j0b0: have you read the service manual ?
11:05.11cr2Rogro82: i remember somethng like that in opie/qtopia, but it was all userspace code.
11:05.20j0b0cr2: have i read what?
11:05.37j0b0i havent.
11:05.56cr2j0b0: raph service manual speaks about testing the navi
11:06.35cr2j0b0: http://www.mikechannon.net/PDF Manuals/HTC Raphael_SM_A10 _GENERIC__01 Dec 08.pdf
11:06.47Rogro82cr2: would be more clean if it was done in userspace but it doesnt :S it does fade when the screen times out :)
11:07.10cr2Rogro82: ok
11:08.00Rogro82only dont really like that its setup as a led class... but i guess its the most easiest way
11:08.37cr2there was some attempt at the pwm api, but i don't know what came out if it
11:08.45*** join/#htc-linux pH5 (n=ph5@e178211071.adsl.alicedsl.de)
11:09.08j0b0thanks. will look at that also after i get back to having working what worked before.
11:09.25j0b0gtg now, bbl
11:11.22maejrepyeah, trout sets up its backlight as led class, so that's why I did the same for raph backlight
11:11.41Rogro82yup me too...
11:12.22Rogro82well its better then the 10 steps winmo provides..
11:12.47maejrepheh 0x00 - 0x90?
11:15.44*** join/#htc-linux Xime (n=xime@bankize.net)
11:16.21cr2lol
11:16.46cr2change the divisors for GP clock, you will get even more steps :)
11:17.43cr2maejrep: have you changed the 19->19.2 and 48->32 for the SD clock ?
11:17.53maejrephmm, no
11:18.06cr2ok
11:20.06cr2maejrep: btw, even if the clocks will be changed via the rpc, i think that the MSM_CLK will be visible
11:20.30maejrepmeaning what?
11:20.36cr2because the GlblClkEna has more bits set than we know.
11:20.44cr2that we don't need rpc :)
11:21.02maejrepyet :p
11:21.15cr2k, the sound
11:21.40cr2imho  since the rpc is a xip dll, it should be as portable as dex
11:22.01cr2so the vogue/kais values may apply
11:22.21maejrepi agree
11:22.38maejrepthe code compiles and doesn't complain.. but nothing uses it yet
11:22.54cr2ok
11:23.11cr2what do we need to document today ? :)
11:23.39cr2epson. sram size detection. psoc id.
11:23.50cr2what else ?
11:24.15cr2psoc/microp flashing
11:24.33cr2location of  the psoc/microp firmware
11:26.31cr2the smd data channel ?
11:31.57cr2usb host
11:38.37maejreplol
11:44.58cr2raph800 colors seems to be the most annoying problem
12:08.15maejrepa problem i haven't been dealing with because it works ok in console :p  haven't even tried android on it yet
12:12.19Rogro82dzo: Is all still working for you after the Polaris updates to the kernel?
12:13.15dzoHi, yes I just pushed some changes.
12:13.35Rogro82yeah i just seen them... mostly audio related isnt it
12:14.19dzoYes, also just now I moved the backlight brightness to vogue_hw. This may break your build if you include vogue_hw.
12:14.37dzoit should really be msm7x00_hw
12:14.55dzoDoes audio work on polaris?
12:15.24Rogro82well it works but audio during calls dont... and not all are having the same results
12:15.49Rogro82problem for me is i cant get registered using the new ril youve written so i cant make a call to test it..
12:16.02Rogro82and i guess the audiopath is dependant on the ril isnt it?
12:16.03dzoThat last commit should fix audio during calls.
12:16.47dzoOK, thats odd, have you put in the mmc settings etc...
12:17.36Rogro82yes... it gets an imsi which is correct but in the notification screen it will only show up android
12:17.58Rogro82as soon as i make a call it will stop the call immediatly
12:19.20Rogro82dzo: the backlight stuff can be taken out of the vogue_hw... the actual backlight is now in the board-htcpolaris-generic... somehow i overlooked it in the diff file
12:19.53dzoThe new ril looks for /sys/class/vogue_hw/gsmphone do you have that?
12:20.18Rogro82yes... it works for a lot of polaris users just not for me :S
12:20.33dzoI put it in vogue_hw because it will work on kaiser and vogue now too.
12:21.35Rogro82k :)
12:22.18*** join/#htc-linux Kevin2 (n=Kevin2@207-237-194-161.c3-0.avec-ubr2.nyr-avec.ny.cable.rcn.com)
12:23.12dzoI don;t think there should be any #ifdef BOARD_HTCPOLARIS anywhere, better to use if(machine_is_htcpolaris()), a single kernel should boot on all msm7x00 devices then.
12:24.02Rogro82k... want me to change them? think they are only in the vogue_hw...
12:26.58dzoI think I'll make a is_msm7200 function, that should cover kaiser and polaris. I put too many is_htckaiser()s in the code.
12:27.59Rogro82yes i was just wanting to ask you about that.... i know change the mach-types.h and add the kaiser to the polaris part but its as dirty as it can get then :)
12:27.59*** join/#htc-linux Skitzo (n=DCLXVI@eth582.vic.adsl.internode.on.net)
12:28.01Rogro82know=now
12:28.28Rogro82else smd/adsp wont work
12:29.07*** join/#htc-linux stefan_schmidt (n=stefan@p5B0376FD.dip.t-dialin.net)
12:29.23dzosorry thats my fault, I'll change the kaiser references to msm7200 and then you can use the correct mtype.
12:30.10Rogro82no problem... wasnt that much work but others not knowing it will never find it this way :)
12:30.47dzoI'll have a look at power collapse this week. that should be fun, took me weeks on vogue but I know how it should work now.
12:31.08Rogro82dzo did you try the backlight on the vogue? was it working? did you also use the inactivity timer to drop the backlight after 10secs?
12:31.10*** join/#htc-linux acsviluppo (n=acsvilup@151.67.30.243)
12:31.47Rogro82power collapse will indeed make it a more usable phone.... it gets drained in 5 hours or so now..
12:31.50dzoI tried it on kaiser (without the inactivity timer) and it works.
12:32.47dzook, its late here, got to go now. bye.
12:32.56Rogro82ok goodnight
12:33.24*** join/#htc-linux radem205 (n=aaa@e144118.upc-e.chello.nl)
12:33.34radem205dzo is back :)
12:33.43maejrepand gone :)
12:33.48radem205he has made changes in the vogue-tree :)
12:33.57dzono still here.. just.
12:34.01maejreplol
12:34.04radem205hi
12:34.11radem205had a good vacation, dzo?
12:34.28dzoI see a return for polaris in msm_sleep does the swfi not work for you?
12:34.48dzoyes, had a great holiday.
12:34.54radem205good!
12:36.10dzook, bye again.
12:37.03radem205how can I see if swfi works?
12:37.45dzotry pm.sleep_mode=4 with the return removed.
12:39.44radem205ok, I'll try
12:41.31radem205I'm in Android, but how can I see if it works? I have changed the setting in default.txt
12:48.22cr2dzo: can you switch to htc-egpio for cpld ?
12:54.51*** join/#htc-linux StarLite (n=nnscript@s55916ca6.adsl.wanadoo.nl)
13:01.19cr2maejrep: http://wiki.xda-developers.com/index.php?pagename=MSM_RPC
13:02.09maejrepyeah I'm not entirely sure how rpc works yet on these devices
13:02.53maejrepI came across a few prog ids, in both dmesg and asm, but I think I lack the high-level view of how it works in order to fully understand it
13:03.23maejrepalso didn't find mention of a "vers" argument, which seems to be important in g1's rpc code
13:05.28maejrepdid you still need remote_api_clnt and _svc?
13:05.51cr2check the vogue code
13:07.14*** join/#htc-linux Zinbolic (n=zinbolic@84.238.80.215)
13:11.50maejrepvbatt_read: 0x30000005
13:12.35cr2http://wiki.xda-developers.com/index.php?pagename=MSM_RPC
13:12.49maejrepsdcc_config_gpio: 0x30000066
13:12.51maejrepseems strange heh
13:12.54*** join/#htc-linux Pure4Real (n=pure4rea@89-97-140-219.ip17.fastwebnet.it)
13:13.08cr2i'll add the list from api_clnt
13:15.59maejrephmm..  time_remote_* uses 0x30000048, but rpc_server_time_remote.c uses 0x3000005d
13:16.05cr2f is clk_*
13:16.20cr2maejrep: vogue != g1
13:16.47maejrepright
13:17.13cr2different amss, different rpc
13:17.24*** join/#htc-linux ykut_johny (n=ykut_joh@www.mitsa.org.my)
13:19.39maejrepthat's annoying :x
13:22.24cr2lol. wms_client
13:25.50cr25,6 is vbatt_read
13:26.38cr2i'm writinf only the progs now
13:26.47Pure4Realmaejrep: i was wondering, what kind of problems are left with the wlan driver and is there something i can do to help with it?
13:28.16maejrepPure4Real: need to be able to upload firmware to the device, and control its config.  right now it only works with android libs, so wireless-extensions (iwconfig, etc) won't work with it
13:32.06Pure4Realand the firmware can't be loaded because the android driver doesnt rely on firmware?
13:34.11cr2maejrep: hehe. this rpc is like windows programming
13:34.39maejrepis that good or bad? ;)
13:35.02maejrepPure4Real: no, I just haven't tried the utilities in android yet
13:35.14Pure4Realah ok
13:35.18maejrepi was able to compile them, but I'm not running android on my phone yet
13:35.32maejrepand I haven't checked for the wlan firmware
13:35.51cr22 is snd_prog, not phonemgr_prob
13:36.28Pure4Reali'd like to give it a shot, but i'd need the tweaks you did to get it to compile
13:36.30cr2maejrep: since you don't run undroid, you can enable nand :)
13:36.37*** join/#htc-linux patoche_ (n=patoche@lns-bzn-20-82-64-11-131.adsl.proxad.net)
13:36.48maejrep:o
13:37.21Pure4Reali could find it out myself, but it'd probably save me alot of time if i'd know them beforehand
13:37.26maejrepPure4Real: have you tried it yet?  the tweaks I talked about are mostly for the new -mmc file
13:38.05maejrepwhich I just gave to NetRipper and will probably be in git in the next few days (barring any problems)
13:38.52Pure4Realwell i started yesterday so, so far i've only prepared my system for compiling android
13:39.17*** join/#htc-linux Rogro82 (n=rogro82@s5591104d.adsl.wanadoo.nl)
13:40.22maejrepto compile the android utilities, you just need to copy the tiwlan1251 dir to your android checkout and compile
13:40.49maejrepbut first step is getting the driver to work at all, and detect the sdio device
13:46.45cr2maejrep: looks like java/.net api ;)
13:47.01*** join/#htc-linux Kensan_ (n=ken@80.238.179.94)
13:47.11FunkwheatEvenin' gentlemen
13:49.39cr2location services, set dns. i'll say : stay away from rpc whenever possible
13:50.39cr2maejrep: http://wiki.xda-developers.com/index.php?pagename=MSM_RPC
13:52.04cr2maejrep: matches your data
13:53.25cr2but needs to be split down for the parameter values
14:01.08*** join/#htc-linux slight (n=23hdci27@195.113.221.87.dynamic.jazztel.es)
14:15.16*** join/#htc-linux mitpianoman (n=chatzill@cpe-74-69-91-35.rochester.res.rr.com)
14:25.03*** join/#htc-linux dcordes (n=zsirc@ip-77-25-219-240.web.vodafone.de)
14:25.17dcordeshi
14:25.45*** join/#htc-linux MethoS-- (n=lem@host-091-097-241-091.ewe-ip-backbone.de)
14:30.16*** join/#htc-linux timebomb (n=tb@e176116068.adsl.alicedsl.de)
14:35.40imfloflohey dcordes
14:41.23Rogro82hi dcordes...
14:43.05Rogro82building a new kernel with dzo's commits as we speak... he moved the backlight stuff to the vogue_hw so that it can also be used on kaiser/vogue
14:47.25imfloflofor my information how long it makes to build a kernel ?
14:49.54Rogro82imflofo: now its all in the repo not much time... but i had to make some changes because dzo copied the backlight related stuff but that killed the build ( double declarations )
14:53.00imfloflohttp://wiki.xda-developers.com/index.php?pagename=BuildTheKaiserKernel what i must change to build one for polaris ?
15:00.44radem205hey Rogro, when I use an older version of zimage (before the brightness fix) it takes a few moments before android booted, but when I use your latest zimages it takes a long time to boot (also second, third, etc. times). And the lag isn't disappeared
15:01.28radem205have you changed something in the default.txt after fixing the brightness issue?
15:02.35imfloflomaybe adding a timer
15:05.24imfloflobooting new rogro82 zimage...
15:06.41imflofloradem205 samething here for the duration of the boot before seeing the first android logo
15:07.04radem205and the android logo takes a long time before it disappear
15:07.07radem205very strange
15:07.24radem205when I go back to a old zimage it boots very fast
15:07.39*** join/#htc-linux konsta (n=asds@host81-157-60-163.range81-157.btcentralplus.com)
15:09.08imfloflowhen i shutdown the volume i pass in vibro mode and silent but cant set the volume on again :s
15:09.54imfloflothe speak button pass the phone in vibro mode
15:10.44imflofloonly the right button of the wheel works
15:11.53*** join/#htc-linux orux (n=jose@89.130.46.3)
15:29.53Pure4Realcan i download the Rogro82 image somewhere? i dont see a link on the forum...
15:38.06imfloflopure4real http://forum.xda-developers.com/showpost.php?p=3258192&postcount=606
15:43.24Pure4Realthanks
15:57.55*** join/#htc-linux ionstorm (n=ion@ip68-227-227-240.ph.ph.cox.net)
15:59.10Pure4Realdid the button mapping change in that last build? volume up and down dont work anymore
16:13.30imfloflosame probleme here pure4real
16:14.37*** part/#htc-linux Balsat (n=kll@87.72.13.87)
16:20.21Pure4Realthe internet explorer button brings up volume control but there is no actual way to change it
16:21.08Pure4Reali think this button is mapped to both volume up and down, because the volume bar moves back and forth when this button is pressed
16:22.12Pure4Realthe power button has its own purpose now though, OK button unlocks screen
16:34.08radem205imfloflo: Does the audio during calls work? Because on my phone it doesn't.
16:43.12imfloflonot success to registere network with all lastest system.img i having :s
16:53.35Pure4Realdid you try deleting all on your sd card and put new files on it?
16:59.59*** join/#htc-linux pleemans (n=toi@d54C2AAB7.access.telenet.be)
17:04.17*** join/#htc-linux Balsat (n=kll@87.72.13.87)
17:11.14imfloflonop
17:25.52*** join/#htc-linux mitpianoman_ (n=chatzill@cpe-74-69-91-35.rochester.res.rr.com)
17:53.09*** join/#htc-linux Tinyboom (n=nahh@108.84-49-166.nextgentel.com)
18:05.46*** join/#htc-linux stefan_schmidt (n=stefan@p5B0351A1.dip.t-dialin.net)
18:13.55*** join/#htc-linux gh0ul (n=asds@host81-157-60-163.range81-157.btcentralplus.com)
18:32.58Pure4Realdoes someone know the target names for make so i dont have to build the whole android thing?
18:40.24*** join/#htc-linux t3chi3 (n=blarg@ip24-250-212-67.ga.at.cox.net)
18:43.28*** join/#htc-linux mitpianoman (n=chatzill@cpe-74-69-91-35.rochester.res.rr.com)
18:45.16cr2kiozen: a question for the regex wizard
18:47.02dcordes_Pure4Real: #android is a better place for such questions
18:48.23Pure4Realah yes, sorry
18:56.31*** join/#htc-linux sdt555 (n=titus@70.114.152.91)
18:59.32*** join/#htc-linux imfloflo_ (n=imfloflo@cap31-6-88-180-73-121.fbx.proxad.net)
19:03.49*** join/#htc-linux imfloflo (n=imfloflo@cap31-6-88-180-73-121.fbx.proxad.net)
19:04.10*** part/#htc-linux orux (n=jose@89.130.46.3)
19:04.55*** join/#htc-linux MethoS- (n=lem@host-091-097-241-091.ewe-ip-backbone.de)
19:09.21*** join/#htc-linux dcordes (n=dcordes@unaffiliated/dcordes)
19:17.55imfloflomy android no more working :s
19:18.07imfloflotry to delete all files
19:18.23imflofloand reinstall lastest package but nothin :(
19:25.22Pure4Realimfloflo: what exactly does and does not work?
19:25.52*** join/#htc-linux sdt555 (n=titus@70.114.152.91)
19:44.22*** join/#htc-linux metter (n=metter@253.112.202.62.cust.bluewin.ch)
19:54.25kiozencr2: you still need regex?
19:55.19*** join/#htc-linux Untouchab1e (n=Untoucha@77.16.162.78.tmi.telenormobil.no)
19:55.55Untouchab1ehi all
19:56.16Untouchab1eanyone in? :)
19:57.41*** join/#htc-linux sdt555 (n=titus@70.114.152.91)
19:58.38Untouchab1ehave we made any progress on the WiFi driver for the Diam and Raph?
19:58.53Untouchab1edo they use the same wifi chip btw? (I would guess so?)
19:59.01cr2kiozen: i'd like to change the v='foo. bar' to v='bar foo.' is it possible ?
20:00.17kiozenuhh, that is sed
20:00.27*** join/#htc-linux pl_levy (n=chatzill@aaso217.neoplus.adsl.tpnet.pl)
20:00.35kiozenthink that is beyond my knowledge
20:00.51kiozenalways google these thinks and copy-n-paste
20:00.57cr2kiozen: ok
20:01.11Untouchab1ewhats up?
20:05.07*** part/#htc-linux Untouchab1e (n=Untoucha@77.16.162.78.tmi.telenormobil.no)
20:09.36*** join/#htc-linux MrFeetio (n=MrFeetio@pool-98-117-23-186.hrbgpa.fios.verizon.net)
20:17.37maejrepcr2: i think somthing like 'tr/foo. /bar/' would work on something like that
20:18.40maejrepif not:  sed -i -r 's/(foo. )(bar)/\\2\\1/g' should also work
20:21.48*** join/#htc-linux ionstorm (n=ion@ip68-227-227-240.ph.ph.cox.net)
20:21.50cr2maejrep: 1 and 2 is too easy :) i think i have found another solution
20:21.55maejreplol
20:22.04maejrepwell it worked with your example ;p
20:22.25cr2foo. bar baz
20:22.35cr2id like to put foo. in the end
20:22.42maejrepthat's the same thing
20:23.14maejrepsed -i -r 's/"(foo. )([^"]+)"/"\\2\\1"/g'
20:23.16cr2actually i want to put the "str." in the end in the .osm dump
20:23.37*** join/#htc-linux Sti_0231 (n=Where_is@179.213-65-87.adsl-dyn.isp.belgacom.be)
20:23.56cr2a real life example
20:25.06maejrepend of a line, or end of the file?
20:25.51cr2<PROTECTED>
20:26.02cr2i'd like to charge it to
20:26.15cr2<PROTECTED>
20:26.35maejrepregardless of "str." ?  or for any value?
20:26.51maejrepie, first word should move to the end?  or only str. moved to the end
20:27.02cr2only str.
20:27.27maejrepsed -i -r 's/"(str.) ([^"]+)"/"\\2 \\1"/g'
20:27.36cr2wizardry :)
20:27.39cr2i'll try
20:27.52maejrepor swap " and ' if you need to
20:28.05*** join/#htc-linux chab7 (n=kvirc@212.92.4.114)
20:29.29cr2bash: syntax error near unexpected token `('
20:29.44maejreper
20:29.51maejrepit shouldn't do that inside quotes
20:29.59maejrepbut try \( \)
20:30.08cr2was my typo
20:30.32cr2doesn't work :)
20:30.36maejreplol
20:30.46maejrepdoesn't find what you want?
20:30.51maejrepor replaces it wrong?
20:31.37maejrepif the attributes use '' quotes instead of "" double quotes, you'd need to swap the quotes around
20:31.50maejrepand actually, the \\2\\1 should not have "" around it either (my mistake)
20:32.02cr2hm. it seems somebody has already fixed it ;)
20:32.13cr2so i don't see the patterns
20:32.13maejreplol
20:32.39cr2i just did grep str.
20:34.31cr2but not the 'str.Foo' :)
20:34.49imfloflowhy don't we use the "search network" function on android to registered on the network?
20:35.46cr2maejrep: so how to fix "str.Foo bar" ?
20:40.45imfloflothe Bejewel game isn't in the good size for polaris :s
20:43.25maejrepcr2: turn into "Foo bar str." ?
20:44.08maejrepsed -i -r 's/"(str.)([^"]+)"/"\\2 \\1"/g'   will look for it without the space, and add the space in the replacement
20:46.59cr2trying
20:47.09cr2i think /g is not really needed
20:48.31maejrepit's not if its only one per line
20:48.45maejrep/g will just make it replace the string multiple times per line if it exists more than once
20:49.10cr2yes, but it happens only once
20:49.14cr2hmm.
20:54.54*** join/#htc-linux MrFeetio (n=MrFeetio@pool-98-117-23-186.hrbgpa.fios.verizon.net)
21:11.59maejrepcr2: any ideas where to find smem.dll? :x
21:12.22AstainHellbringmaejrep, did you check xip?
21:12.37maejrepwhere would I check that? :x
21:12.52*** join/#htc-linux marmotta (n=skodde@unaffiliated/skodde)
21:12.55maejrepnk.exe?
21:15.21*** join/#htc-linux Venny (i=Travis@h216-45-127-2.dynamic.platinum.ca)
21:15.28cr2maejrep: smem.dll ?
21:15.52maejrepyes
21:16.31cr2maejrep: for diam
21:17.12cr2smem_proc_comm_get_status
21:17.14cr2smem_proc_comm_send_cmd
21:17.15cr2smem_proc_comm_set_status
21:17.21maejrepo.0
21:17.30maejrepthey do call it proc_comm? heh
21:17.48maejrepwhere can I get that file from my phone? :x
21:17.49cr2:)
21:18.01cr2don't have it for raph et al.
21:18.09maejrepbut how can I get it? :p
21:18.21maejrepit's not in an OS.nb
21:19.35cr2dumprom on OS.nb
21:20.00cr2it'd be in the first xip part
21:20.06maejrepoh
21:23.34cr2but mine looks rather broken
21:24.05maejrephmm, it found a lot of dlls, but not smem.dll
21:24.11*** join/#htc-linux nebi (n=nebi@170.ftth2.cust.fyrobs1.upps.se.borderlight.net)
21:25.25*** join/#htc-linux QnexFrost (n=QnexFros@85.186.177.22)
21:26.59maejrep004ddff0  6c 6c 00 00 73 6d 65 6d  2e 64 6c 6c 00 00 00 00  |ll..smem.dll....|
21:27.00maejrep005e1070  0c 00 0d 00 0e 00 0f 00  73 6d 65 6d 2e 64 6c 6c  |........smem.dll|
21:32.27*** join/#htc-linux pleemans (n=toi@d54C2AAB7.access.telenet.be)
21:47.42*** join/#htc-linux deeproot (n=tony@68-112-216-255.dhcp.slid.la.charter.com)
21:48.27*** join/#htc-linux Kevin2 (n=Kevin2@207-237-194-161.c3-0.avec-ubr2.nyr-avec.ny.cable.rcn.com)
21:51.29*** join/#htc-linux ali1234 (n=al@robotfuzz.co.uk)
21:54.31cr2maejrep: in ram ?
21:54.52maejrepno those are offsets on OS.nb.payload
21:55.03maejrepcan't get it to extract the file though
21:55.09cr2maejrep: then dump 10MB of ram, and try dumprom
21:55.35maejrepvia pdump?
21:55.38cr2well, these tools (htc-flasher) need some work too
21:55.44cr2via pwf
21:55.47maejreper right
21:55.48maejrep:p
21:56.24cr2i think the last problem was lzma lib decoder, and xpr decoder.
21:59.42maejrepcr2: pwf mem.dump 0 0xa00000
21:59.49maejrepthe resulting file didn't have anything related to smem :x
22:00.05maejrephmm, no, i see smem.c
22:00.07maejrepbut not smem.dll
22:00.12maejrepis that expected
22:01.00NetRippermaejrep, question, you added msm_gpio_set_function method to proc_comm_wince.c, was that intentional?
22:01.17maejrepyes
22:01.21maejrepbut I don't recall why..
22:01.23maejrepsec
22:01.23NetRippershouldn't it be in gpio.c?
22:02.14maejrepi don't recall why I did it that way :x
22:02.39maejrepmight have been to avoid including proc_comm_wince.h in gpio.c?
22:02.42cr2maejrep: pwf wincemem 0x10000000 0xa00000
22:02.52maejrepi guess it wasn't a very good reason after all :p
22:03.10NetRipperlol
22:03.12NetRipperso i can move it?
22:03.38cr2NetRipper: i have started the rpc page. looks like .njet programming ;)
22:03.49NetRipper.njet?
22:03.55cr2.net
22:03.56NetRipperis that a russion joke?
22:03.56NetRipper;)
22:03.57NetRipperah
22:04.02NetRipper;)
22:04.10NetRipperok
22:04.17cr2n and j are too close on my small keyboard
22:04.37NetRipperif it really is a .net binary, there are very nice decompilers
22:04.58cr2no, it's just an api that covers everything
22:05.10NetRipperok
22:05.15cr2from managing clocks to setting the dns for agps ;)
22:05.32NetRipperlol
22:05.39cr2you may grep the vogue tree and compare
22:05.59NetRipperi already have a headache, let's not make it worse
22:05.59NetRipper;)
22:06.07cr2i've not added the parameters and names.
22:06.23cr2i guess the htc people had the same feelings
22:06.52cr2so they manage many clocks directly by writing in the Md/Ns regs :)
22:07.29maejreplol
22:07.38*** part/#htc-linux QnexFrost (n=QnexFros@85.186.177.22)
22:08.28cr2hmm
22:08.48cr2how do i read in a table in an awk BEGIN section ??
22:09.25cr2getline < "filename" ?
22:09.34cr2but it's only one string...
22:10.16NetRippera table?
22:10.27cr21 2
22:10.27NetRipperi have no awk experience
22:10.28NetRippersorry
22:10.28NetRipper:)
22:10.30cr23 4
22:10.30maejrepcr2: that worked :)  thanks
22:10.39cr2i hate to rewrite it in perl
22:10.47NetRipperprint $1 $2?
22:10.53cr2maejrep: you can extract it now ?
22:10.59maejrepsorry cr2 I don't know awk either ;x
22:11.02maejrepyep, it extracted
22:11.14NetRipperarf linuxtogo git is so slow
22:11.43cr2NetRipper: i need to have 2 data arrays, before processing another file line by line
22:11.56cr2but i can't hardcode these arrays
22:12.31maejrephmm, does seem broken though
22:12.42cr2hate these interpreted languages. i've written it faster in c.
22:12.44NetRippercr2, i'll need an input/output example before i unerstand
22:13.11NetRipperlol can't you use a simple bash script? process line by line and performing an action on a line?
22:13.15NetRipperor must it be awk?
22:13.29cr2hehe.
22:13.44NetRippermaejrep, might your reason be that you didn't want to modify gpio.c to keep it unchanged or something?
22:13.49cr2how do you create and array in bash
22:14.07cr2not declare, but reading from a CSV file
22:14.10maejrepNetRipper: possibly.. but it used to be in gpio.c, and I moved it
22:14.13maejrepjust can't remember why
22:14.33NetRipperwould be helpful :p
22:15.14maejrepi think it was just because the struct went into proc_comm_wince.h along with the PCOM_GPIO_CFG macro, cause that was where it was on trout
22:15.32maejrepand to prevent having to include gpio.h in places that didn't need it previously
22:16.12cr2NetRipper: do you know OSM ?
22:16.34NetRipperosm?
22:16.55cr2maejrep: they access gpio through proc_comm. imho it's impossible with DEX
22:17.22cr2maejrep: only directly, or with rpc. but only for some selected gpios
22:17.34maejrepNetRipper: i'd say whatever my reasons were are not important :p
22:17.40maejrepsince I can't even remember what the reason was
22:17.49cr2they tried to make it real PITA with rpc, but obviously it became too much PITA :)
22:18.17cr2NetRipper: openstreetmap
22:20.37maejrepcr2: yeah this isn't as helpful as I thought it would be :p
22:20.55NetRippercr2, you can google on how to read a file line by line in bash.. while processing each line you can split the string and format it the way you like
22:21.09NetRippercr2, i've never used or seen it ;)
22:21.33cr2NetRipper: i'm not crazy :) i'll do it in perl or c much faster.
22:21.42NetRipperlol
22:21.42NetRipperok
22:21.49cr2NetRipper: http://openstreetmap.org
22:22.51NetRipperwow
22:22.53NetRipperthat map is outdated
22:23.01cr2lol
22:24.17NetRipperand i love how it marks the thinnest road next to my home as a regular road
22:24.43NetRipperguess i shouldnt whine, as it's usermanaged
22:24.44NetRipper:)
22:24.45cr2this data is from AND
22:24.45NetRipperanyway
22:24.56NetRipperaha
22:25.00cr2otherwise it would have been better
22:25.05NetRipperand?
22:25.08NetRipperi mean
22:25.08NetRipperAND?
22:25.57NetRipperoh
22:25.57NetRippergoogle actually works on that
22:25.58cr2well, fix it  :)
22:25.58NetRipperi still hope it's an out of date AND map
22:25.58NetRipperyea
22:25.58NetRipperi could
22:26.07NetRipperif i werent one of those perfectly legal tomtom users
22:26.17cr2google has a lot of map bugs too
22:32.08cr2NetRipper: what patch are you going to merge today ? :)
22:32.25NetRipperim working on the proc_comm_wince one
22:33.37cr2ok
22:33.57NetRippermaejrep, im just going to leave it in proc_comm_wince
22:34.02maejrep;x
22:34.09NetRipperfor now
22:34.11NetRipperat least
22:34.38NetRipperthere's a DEX_GPIO_CFG define in the .h
22:35.21NetRipperhm
22:35.27maejrepthat's used for generating the gpio config struct
22:35.36NetRipperi see
22:42.22*** join/#htc-linux nebi (n=nebi@170.ftth2.cust.fyrobs1.upps.se.borderlight.net)
22:43.23NetRipperok
22:43.25NetRippermoved it anyway
22:43.27NetRipper;p
22:48.30NetRipperthats 1
22:57.49NetRipperthats 2
23:06.18NetRippermaejrep, hm, just something that came to mind.. on the git commit, i moved the set_function to gpio.c... and i removed EXPORT_SYMBOL(), and instead used 'extern' in the prototype in the gpio.h to externalize it... personally i find it more neat.. but i recall you had some problems with that when using the devices as modules?
23:08.47cr2NetRipper: i think you must export the symbols for other modules with EXPORT_SYMBOL
23:09.11cr2or EXPORT_SYMBOL_GPL for our binary module friends
23:11.20NetRipperaha
23:11.30NetRipperi thought 'extern' would do the same job
23:17.21cr2it works :)
23:17.31cr2BEGIN{while (getline  < "file" > 0) print $2,$4,$6}
23:18.13cr2i knew that it'd be easy to do.
23:18.19NetRipperlol
23:18.25NetRippereasy is relative
23:18.49cr2linuxtogo is dead slow. as usual
23:19.42cr2NetRipper: do you track the main androed git @kernel.org ?
23:20.02NetRipperwe do, but i don't know how to update it
23:20.16j0b0evening
23:20.28NetRipperi'd need ph5 to help me with that
23:20.32NetRipperevening j0b0
23:21.03cr2static void __init halibut_init(void) for raphael ?
23:21.19j0b0if you like, here -> http://tibook.jb.b4m.com/j0b0/navi/ is a patch for the navi pad and the keyboard backlight
23:21.45j0b0i replaced the ones i put up thismorning that didnt quite yet work
23:22.25NetRipperoookay
23:22.33NetRipperhope it won't conflict much with maejrep's stuff
23:22.34NetRipper:)
23:22.54j0b0it most likely will
23:23.07j0b0has that been committed yet?
23:23.11NetRipperim working on that
23:23.13j0b0if so i will do themerge
23:24.18j0b0the .25 one you can just apply it will add the previous state of maejreps keypad and led drivers working in the .25 branch
23:25.17cr2maejrep: i don't see the second dex param ?
23:26.53NetRipperj0b0, ok but i won't test it then ;)
23:27.20NetRipperif the msmfb problem is fixed in .27 we can leave .25 behind us
23:27.42j0b0ooh nice. :)
23:28.03NetRipperit's a frustrating problem though ;)
23:28.37NetRipperi think it has to do with the problem that we don't support power management yet
23:28.47NetRipperso we may need to work around some stuff in the msmfb
23:32.02cr2NetRipper: i've lost track on that: is the client_epson.c already merged ?
23:33.15NetRippercr2, client_epson is in .27 yes
23:33.19NetRipperi dont know what you mean by merged though
23:33.32NetRipperi was under the impression it was simply a copy of toshiba's
23:33.40cr2ok, i see it
23:33.50cr2how do we patch the mddi.c ?
23:34.03NetRipperpatch it how?
23:34.17cr2<PROTECTED>
23:34.33cr2we need a mddi_info filled per device.
23:34.46cr2the current setup is g1 only
23:34.48NetRipperi think that's in the board-htcraphael-panel.c
23:35.17cr2maybe, but it's not used by the mddi_init_registers
23:35.26cr2everything is hardcoded now.
23:35.32NetRipperoh
23:35.45cr2check this function
23:36.24cr2i think it needs some macro list for mddi_writel
23:36.30cr2like it's done for spi
23:38.14cr2715         /* set up the clocks */
23:38.15cr2716         mddi->clk = clk_get(&pdev->dev, "mddi_clk");
23:38.17cr2717         if (IS_ERR(mddi->clk)) {
23:38.24cr2do we have it already ?
23:38.36cr2the clock speed is device-dependent too.
23:38.51NetRipperit's probably just using the g1 now
23:39.07NetRippernot sure what's been done on that
23:40.05NetRippermaejrep, that notifications function has #if 0 around it, can it be removed completely or are there plans to use it in the future?
23:40.18NetRippermicropklt_set_ksc_notifications() that
23:40.21cr2ok, so we need to fix the clk_api before working on fb
23:40.38chab7re
23:41.11NetRippercr2, i think the current msmfb update problem is not related to mddi
23:41.20chab7is anyone here from the android developing project?
23:41.34NetRipperi think android developers are in #android
23:41.53cr2NetRipper: the g1 setup is not right anyway.
23:42.04chab7but the android polaris developing
23:42.44chab7because i would like to say them some welcoming words ;)
23:42.56chab7its amazing what they do
23:42.57*** join/#htc-linux bs2 (n=kra@87.72.13.87)
23:43.34NetRipperchab7, the linux kernel haxx0rs are here somewhere.. not sure who they are though
23:43.40NetRipperfor polaris
23:44.03chab7the xda forum says: Development work is sometimes done in the irc channel: #htc-linux.
23:44.08NetRipperyep
23:44.26NetRipperyou can check the logs to see
23:44.28NetRippersee topic
23:44.29chab7so thats why i looking for them now ;)
23:44.44NetRipperctrl-f for polaris, you'll find the people ;)
23:45.28chab7i wanna say a congratulation for this work
23:46.13chab7it just managed to run the first version on my polaris that it works
23:46.22chab7ok, second, not the first
23:46.27NetRipperthat's good news
23:46.39chab7but it is more and more useful :)
23:46.55chab7what will the third one do :)
23:47.31NetRippermaejrep, i see "#if defined(MICROP_DEBUG) && MICROP_DEBUG" lines but 1) i don't see MICROP_DEBUG defined anywhere and 2) why the &&?
23:47.31chab7ok, there are some bugs but it is just developing
23:47.50*** join/#htc-linux acsviluppo (n=acsvilup@151.67.30.243)
23:47.56NetRippermaejrep, i'll leave messages in pm, easier ;)
23:48.05cr2maejrep: //        { .clk_id = MDC_CLK, .idx
23:48.54cr2i think the mdc clock is not 100% sure, but mddi, i2c , uart2dm, gp and others are known.
23:49.39cr2maejrep: and imho one more field is needed to mark the clocks who use Ns only (and not Md)
23:52.18dcordeschab7: many people are involved in these things
23:53.15chab7ok
23:53.22cr2maejrep: another problem is to separate A clocks from nonA, because some of them use different locations
23:53.22chab7its a great work
23:57.42NetRipperj0b0, i'll be comitting the microp* stuff in the morning.. hoping to hear back from maejrep about some questions before i commit it..
23:58.16*** join/#htc-linux Moku (n=John@f048231195.adsl.alicedsl.de)
23:58.24NetRipperwould be appreciated if you could sort out your .27 patch against it :)
23:58.41j0b0NetRipper ok. i shall then fetch and merge
23:58.45NetRipperthanks
23:58.57NetRipperbedtime for me now ;)
23:58.58NetRippergood night
23:59.08j0b0good night

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