IRC log for #htc-linux on 20080512

00:05.53dcordes~ping Kevin2
00:05.54aptpong Kevin2
00:21.55BabelO~pong revertive
00:21.56aptrevertive: PONG!!!!!!!!!!!!!!!!!!
00:22.21revertivehi BabelO
00:22.26BabelOhi revertive
00:22.39BabelOno ts, i just finish a fresh 2.6.26-rc1 )
00:22.52BabelOand mmc works well, i boot angstrom-qtopia on it directly
00:22.52cr2wow, so many people do not sleep :)
00:22.59revertive2.6.26 cool
00:23.10BabelOcr2: lol, yes
00:23.11cr2BabelO: on ba ? ;)
00:23.31BabelOcr2: on artemis :) with new htc-egpio, but i think i fdo something wrong
00:23.46BabelOrevertive: ts need to wait a little
00:23.50cr2hmm. vibra works ?
00:23.59BabelOnow all gpio / irq are working as expected
00:24.11revertiveBabelO: thats ok
00:24.17BabelOcr2: no, black screen on boot when i use set_gpio_value on cpld
00:24.44cr2BabelO: in machine_init() ?
00:25.03BabelOrevertive: i comit in new branch at linuxtogo, so minimal change to 2.6.26 just omap850 is in
00:25.15BabelOcr2: no in lcd module, like i do in 2.6.21-hh
00:25.34BabelOcr2: you did not see my pastebin last night ;)
00:25.43cr2BabelO: it does not work on athena too, which has an arcane 2 CPLD config, and the location of the second CPLD depends on the first CPLD bits.
00:25.47miknixcr2, dont know if you read it.. I finally finished the htc-i2c-cpld driver today. both dpad are supported, leds, backlight and vibrator
00:26.08cr2BabelO: no, i'm busy doing other things, no time for hacking.
00:26.10miknixcr2, are you interested in testing it on other devices? herald is known to work too
00:26.18BabelOcr2: http://pastebin.ca/1014366
00:26.30BabelOi just fix the serial detection today
00:26.39cr2miknix: i don't have omap850 devices. pH5 has herald
00:26.53cr2BabelO: gps works now ?
00:27.11BabelOcr2: i think yes i can cat /dev/ttyS1 but i miss the cpld power pin
00:27.14miknixcr2, pH5 has his herald b0rked.. it doesnt pass the bootloader screen
00:27.25cr2ok
00:27.47cr2BabelO: but if you'd add the cpld power pin, arte crashes too ?
00:28.29BabelOcr2: yes all cpld gpio access crash http://pastebin.ca/1014865
00:28.58BabelOand http://pastebin.ca/1014872 for .h
00:29.05cr2BabelO: then you are doing something wrong.
00:29.14BabelOcr2: i hope so
00:29.23BabelOlooking at it right now
00:29.30miknixBabelO, what is the serial used for? irda?
00:29.39BabelOmiknix: gps / BT
00:29.43miknixhum..
00:30.39miknixcr2, on i2c chip 3, there is an address which I could found yet that turns off the mmc power
00:30.43cr2BabelO: i'm not familiar with the new syntax.
00:32.08BabelOcr2: syntax is ok according to the magician syntax
00:32.09cr2BabelO: do you have a direct link to the magician.c with new htc-egpio ?
00:32.19BabelOcr2: yes
00:33.20BabelOcr2: http://git.linuxtogo.org/?p=groups/mobile-linux/kernel.git;a=blob;f=arch/arm/mach-pxa/magician.c;h=badba064dc0400326e74a3e874d9366aa6519c52;hb=2ddcca36c8bcfa251724fe342c8327451988be0d
00:35.35BabelOcr2: ah i think i know why :)
00:38.22cr2BabelO: magician has 32bit reg offsets
00:38.32cr2all others use 16
00:39.13BabelOcr2: good found my bug, so i need only two beer, not more to found bugs :)
00:39.30cr2lol
00:40.07miknixbeer!!
00:40.15miknixBabelO, have you tried portuguese beer?
00:40.44BabelOmiknix: german beer are better :)
00:41.30miknixBabelO, http://en.wikipedia.org/wiki/Super_Bock    Super Bock has 15 consecutive medals in the "Monde selection"
00:41.32BabelOcr2: i ve setted .reg_with=8 and in gpio calculation i ve used *16
00:42.15BabelOmiknix: i ve to try :)
00:42.31miknixBabelO, :)
00:42.54miknixBabelO, I recommend the black roasted one..
00:43.06BabelOanyway marti solveig music was good, but now did not heard musics or tv :( maybe the sound ...
00:43.50BabelOcr2: any possibility that i have a hidden usb ping on cpld ?
00:43.53dcordesaye cr2
00:44.20dcordesfound some time for kaiser mmutrace issue?
00:44.23miknixBabelO, is your cpld much different from wizard and herald?
00:44.41miknixBabelO, besides not being available from i2c
00:45.38BabelOmiknix: i have direct acces to it over memory
00:45.53miknixBabelO, but the input logic is different?
00:46.25BabelOmiknix: no, it is same logic, that is why pH5 tell you to try to do same logic as htc-egpio driver
00:46.52BabelOmiknix: don't know if i have input on it
00:48.19miknixBabelO, migrating the htc-i2c-cpld driver to use gpios is fairly simple.. just change the cpld access from i2c to gpios
00:49.03miknixBabelO, the htc-i2c-cpld driver only acts as abstraction layer to other drivers (dpad, backlight, leds)
00:49.38BabelOmiknix: i mean to drive the other side, to be more generic, because your driver, only  works if device wired on cpld are always at same position
00:50.33BabelOanyway it is good if it works ;)
00:50.40BabelOgood progress in few month
00:51.26miknixBabelO, how the egpio-driver works?
00:51.40miknixI dont have it on the tree
00:52.02BabelOmiknix: transparent, you just have to use set_gpio_value or get_gpio_value
00:52.58miknixBabelO, and how I do chip and address selection? I need to implement some kind of i2c in it right?
00:54.43BabelOmiknix: chip is a range of gpio, if you look here http://git.linuxtogo.org/?p=groups/mobile-linux/kernel.git;a=blob;f=include/asm-arm/arch-pxa/magician.h;h=169b374f9921968031b0b7dccb22673e3366256a;hb=2ddcca36c8bcfa251724fe342c8327451988be0d
00:55.44BabelOmiknix: it use (MAGICIAN_EGPIO_BASE + 8*reg + bit) to found the gpio number you pass to set_gpio_value
00:55.58BabelOand those gpios are mapped after the processor gpios
00:56.16miknixhum..
00:56.34miknixso each gpio will correspond to each address on the i2c bus?
00:56.43miknixsomething like that
00:59.05miknixBabelO, ok.. I'll migrate the driver to use it then
00:59.40BabelOmiknix: yes it is exactly that
00:59.59BabelOeach gpio correspond to a bit in a i2c chip
01:00.12miknixBabelO, then the driver I currently have is straightforward to migrate
01:00.57miknixBabelO, http://pastebin.com/d7d67fde
01:01.15BabelOmiknix: it can be more generic, so you do not need to change code in driver
01:01.54miknixBabelO, I wont.. I'll only replace the i2c access functions with the 2gpio ones
01:03.15miknixBabelO, btw: I didnt found the power button address on i2c do you think its there but not available by i2c?
01:06.04BabelOmiknix: don't know
01:06.29BabelOmiknix: you can found it with haret, just log to a file
01:09.32dcordesmiknix: super bock is a strange name for portuguese beer
01:10.03miknixdcordes, yeah.. the brand is quite old
01:10.09dcordesby the sound of it I would have said it's a brand from the area of the german language
01:10.17miknixmaybe its that the point?
01:10.53miknixI bet that few of you know that portugal does a lot of beer production
01:10.56dcordesthat the name actually is from german area?
01:11.04dcordesyes I didn't know this
01:12.08miknixdcordes, no, to give a name other than portuguese to get the brand name more more influencing
01:12.49dcordesIt is really an appealing name -already the super is very appealing
01:12.56miknixdcordes, our second beer in portugal is Sagres which is the name of portuguese city
01:13.11miknixdcordes, lol, it has normal alcool percentage
01:13.14dcordesI wonder if I can get those cheap here
01:13.44dcordesaccording to wiki Abadia has 6,4 % alcohol
01:14.09miknixyeah.. its the one with most alcool by superbock
01:14.29dcordesI like wheat beers
01:14.38dcordesdrinking one as I type
01:14.51miknixdcordes, http://en.wikipedia.org/wiki/Sagres_(beer)
01:15.09miknixdcordes, see Bohemia, its my favorite from sagres
01:15.33miknix1835 is a limited edition beer
01:21.33dcordeshttp://youtube.com/watch?v=69XjWHh03Yo also james prefers bohemia
01:23.53dcordesmiknix: do you know what the difference between mainline htc-egpio and hh.org htc-egpio is?
01:26.03miknixdcordes, lol, I remember that commercial
01:26.25miknixdcordes, hum.. no. but I'll also have to choose
01:26.46dcordespH5 told me mainline is the choise.
01:27.12dcordesand he said that if we wanted to go mainline some day we would have to switch
01:27.27dcordescurrently we have hh.org htc-egpio in linuxtogo htc-msm
01:28.43miknixdcordes, oh.. sorry. I tough you were asking the difference between egpio in mainline and hh.org branch
01:29.09miknixdcordes, yes.. mainline is the tree more closer to linus
01:29.21miknixdont know about htc-egpio
01:31.49BabelOmiknix: htc-egpio is in mainline ;)
01:32.19miknixhum.. nice
01:32.32dcordesBabelO: can you help me with the question?
01:32.32miknixI'll choose that one then
01:34.42BabelOdcordes: which one ? :)
01:34.53BabelOdcordes: the difference ?
01:36.02BabelOdcordes: the difference is that htc-egpio in mainline is more flexible and use the genereic gpio api provided in mainline
01:38.31dcordesthanks. now I got the point in switching to mainline
01:47.33miknixBabelO, what about when we need to access address 0x11 on egpio?
01:47.56BabelOmiknix: 0x11 ?
01:47.57miknixBabelO, we use gpio_write() for both GPIO bits?
01:48.06BabelOyes
01:48.11BabelOgpio0 and gpio8
01:48.13miknixah ok.. I'm seeing it
01:48.38miknixBabelO, and for getting a cpld value?
01:48.58BabelOmiknix: just gpio_get_value()
01:49.00BabelOsame
01:49.38miknixnice
01:49.57BabelOmiknix: driver is here http://git.linuxtogo.org/?p=groups/mobile-linux/kernel.git;a=tree;f=drivers/mfd;h=1ea88544f653135fe5da82d2a4c688ab4ef4194c;hb=2ddcca36c8bcfa251724fe342c8327451988be0d
01:50.15miknixI'm going to add a "testing" interface on sysfs to the htc-cpld driver
01:50.28miknixso we can access gpios by userspace
01:52.42BabelOgood night
01:52.50dcordesnightey BabelO
01:52.54miknixnight
02:04.29dcordesgnight miknix
04:46.44Pryanpira pa la kama, adios
05:12.49*** join/#htc-linux dcordes (n=dcordes@unaffiliated/dcordes)
05:26.15*** join/#htc-linux rmoravcik (n=rmoravci@ip-89-102-255-171.karneval.cz)
05:37.42*** join/#htc-linux marbalon (n=marbalon@212.122.223.98)
06:02.18*** join/#htc-linux goxboxlive (n=goxboxli@208.84-48-176.nextgentel.com)
06:42.44*** join/#htc-linux rmoravcik (n=rmoravci@gtsgw.ttc.cz)
07:16.18*** join/#htc-linux exco (n=excogita@e181098175.adsl.alicedsl.de)
07:22.32*** join/#htc-linux rob_w (n=bob@X1246.x.pppool.de)
08:06.06*** join/#htc-linux CVirus (n=GoD@196.205.192.185)
09:18.01*** join/#htc-linux rob_w (n=bob@X1d25.x.pppool.de)
09:19.42*** join/#htc-linux MHazem (n=GoD@196.205.192.185)
09:46.54techsoloAnybody here who knows if it is already possible to run android on the blueangel? I read some ghost story's about it.
09:48.56*** join/#htc-linux dzo (n=dzo@121.98.128.127)
10:06.31marbalonSanMehat: hi
10:09.07dzohi marbalon, how are things with kaiser now?
10:09.24*** join/#htc-linux diogene31_ (n=rj@mur31-2-82-243-122-54.fbx.proxad.net)
10:09.26marbalondzo: hi, yes
10:09.49marbaloncorrect me if I'm wrong but few days ago SanMehat said something about communication between Arm11 nad ARM9 in msm7x00
10:10.21dzoI don't know, I haven't been watching the logs.
10:10.45dzoIt's very different for them though (different version of AMSS)
10:11.17dzoHvae you guys got smd working yet?
10:12.07marbalonno
10:12.27marbalonhow did you find correct mapping for smd ?
10:12.32dzoit shouldn't be too hard, I sent dcordes some ideas the other day.
10:13.10dzoI can trace it on vogue, I don't know why you can't on kaiser.
10:13.46*** join/#htc-linux patoche (n=Patrice@lns-bzn-24-82-64-163-99.adsl.proxad.net)
10:13.49marbalontrace using haret ?
10:13.50dzoprobably all that is different is the A2M comms address.
10:13.56dzoyes, using haret.
10:16.01marbalondzo: there is any doc like http://wiki.xda-developers.com/index.php?KaiserMemoryMap for vogue ?
10:16.34dzoIt's the same as titan, there is a page for that.
10:17.43dzocan you trace any address at all with haret?
10:18.57cr2hi
10:19.10cr2dzo: i guess not.
10:19.12marbalonI'm not an haret expert
10:19.17dzohi cr2
10:20.06cr2dzo: the mmu dump shows some extra bits used in the page table, but only Kevin2 deals with such wizardry :)
10:20.32dzowell, i bet kaiser is not very different, just try all possible values for MSM_A2M_INT in notify_other_smd
10:21.19dzoThats the TEX bits, they are 010 on the vogue.
10:21.19cr2dzo: the FIFOs are 8K in size
10:22.01dzogood, just find the correct interrupts and it will work it reckon.
10:22.15cr2dzo: can you provide a direct link to the docs ?
10:22.23dzowhich docs?
10:22.54cr2on the mmu bits
10:23.12cr2i don't have a kaiser myself
10:23.26univacwhich thc phone has the best support under linux? (wuth qwerty keyobard)
10:23.33univachtc*
10:23.40cr2univac: universal
10:23.54univacok, thanks.
10:26.42dzocr2: http://infocenter.arm.com/help/topic/com.arm.doc.ddi0211j/Babifihd.html
10:28.14cr2dzo: thanks
10:29.11dzono problem, i'm off now, good night all.
10:29.45marbalonnight dzo
10:29.55univacuh, those phones are big :>
10:30.11marbaloncr2: hmm. I have idea. Maybe I can write a driver with read SHMEM A11/A9 if any INT_A9_M2A_* occurs and display what data changed and offsets ?
10:30.29marbaloncr2: do you think it is good idea ?
10:30.35cr2univac: qwerty has its price. i don't find the BA keyboard really usable.
10:31.36cr2marbalon: no a driver, but a haret function which you call on the irq instead of just dumping the irq name
10:31.45cr2s/no a/not a/
10:32.11dzomarbalon: I trap all the M2A ints so that shouldn't be the problem
10:32.31dzoit will be the A2M writes that are different.
10:33.08cr2you can allocate the 1MB buffer to compare things.
10:35.24marbaloncr2: do you think haret function implemented in haret or haret console ?
10:36.00cr2marbalon: in haret. it#s easier, and more efficient.
10:36.32*** join/#htc-linux skodde (n=skodde@unaffiliated/skodde)
10:37.47marbaloncr2: this CPU is on the HEAD ? or have own branch ?
10:38.22cr2in haret ? haret does not have branches
10:39.17marbalonok, have a copy on disk
10:39.37marbalonnow need to setup a compiler
10:46.13marbaloncr2: I don't know how to use haret advanced functions but a need to implement a new function, strange way ;)
11:44.24marbaloncr2: cant find correct cross compile tarbal :(
11:44.53marbalonI downloaded cegcc-gcc430.tar.gz but there is no g++
12:17.46patochehi all
12:17.55patochemov r1, #0x001f      /* blue color */ <--- someone know how i can change color ? red for example ?
12:18.07patocheits for eol debugging :)
12:22.58patocheok found something
12:23.05cr2marbalon: i've used cegcc CVS
12:23.15cr2patoche: it's the 565 color
12:23.44cr25bits for R, 6 bits for G and 5bits for B
12:23.53patocheoh ok, thanks
12:24.09cr20x1f=00011111
12:25.04cr2red will be 0xf800
12:25.51patochethx a lot
12:35.22*** join/#htc-linux revertive (n=revertiv@83.119.75.151)
12:48.43marbalondcordes: hi
12:54.20marbaloncr2: do you know why dcordes set AT send buff as 0x1018 not 0x2000 ?
13:40.32dcordeshi
13:42.18dcordescr2: you were mentionning irq earlier in connection with kaiser smd. do we need irq changes?
13:47.12*** join/#htc-linux ovod (n=ovod@wn1nat30.beelinegprs.ru)
14:17.57*** join/#htc-linux miknix (n=miknix@81.193.88.108)
14:36.15*** join/#htc-linux BabelO (n=Fabrice@lun34-2-82-238-28-28.fbx.proxad.net)
14:43.45Kevin2marbalon: you need to get the cegcc-mingw32ce package.
14:44.19cr2dcordes: no.
14:44.44cr2Kevin2: have you seen the link by dzo about armv6 mmu bits ?
14:45.10Kevin2cr2: No.
14:45.32majorburnso uh what do you think about those qualcomm cpu/chipsets
14:46.45dcordesI think they are nice but undocumented
14:48.03dcordescr2: I'm doing a compile marathon with smd.c dzo told me to add a prntk that shows head and tail of at write buffer and with that tryout values 0-7 in function notify_other_smd
14:48.50majorburnhmm, undocumented but it seems to be better supported by linux than the arm/ati combo
14:49.34cr2Kevin2: http://infocenter.arm.com/help/topic/com.arm.doc.ddi0211j/Babifihd.html
14:51.08Kevin2cr2: Fun.  I've had that pdf on my hard drive for 6 months, but never saw that section.
14:51.08Kevin2So, this describes the page table bits?
14:51.09cr2Kevin2: it's about the TEX bits. in addition to B and C
14:51.09cr2and the S bit in the pagetable
14:51.28cr2yes
14:51.46cr2In addition to the TEX, C and B bits, certain page tables contain the Shared bit, S. This bit determines whether the memory region is shared (1), or non-shared (0). If not present the S bit is assumed to be 0 (non-shared). When the TRE flag is set the effect of the S bit can also be remapped
14:56.58*** join/#htc-linux rob_w|laptop (n=rob@M8456.m.pppool.de)
14:57.11Kevin2Anyone on with an arm v6 cpu?
14:57.25cr2dcordes: still here ?
14:57.59dcordescr2: yep
14:58.12dcordesneed to finish the value tryouts
14:58.13Kevin2dcordes: Can you run "dump cp(15)" on your device?
15:00.36dcordesin an instance
15:01.28*** join/#htc-linux ltxda0 (n=ltxda@unaffiliated/ltxda)
15:05.35cr2Kevin2: memory.h also does not support the APX bit ?
15:06.03dcordesk last value.. cr2 are you familiar with the smd.c?
15:06.48cr2dcordes: no.
15:06.59Kevin2cr2: APX is new to arm6
15:07.37cr2yes
15:08.05dcordescr2: the AT buffer tail value should change each time I write something to the fifo, right?
15:08.07cr2the .pdf manual says 'S' bit is deprecated, use APX instead
15:08.19cr2dcordes: i think so.
15:08.40cr2dcordes: you need to indicate where to start and stop
15:09.42dcordescr2: well it doesn't. I tried 7 values for n in "writel(1, MSM_A2M_INT(n+ch));" in function static inline void notify_other_smd(int ch)
15:10.05dcordeseach time the tail value was different, but stayed the same with each write to the device. only the head values changed
15:10.17cr2ok.
15:10.23dcordeswhat does this mean?
15:11.03cr2i don't really know how they operate the FIFO.
15:11.23cr2we need a wince trace, and the .dll/wince reference address.
15:12.26dcordesI hope dzo will know since he suggested to check this.
15:13.12dcordesKevin2: doing the dump now
15:14.07Kevin2dcordes: Thanks, can you also post the output from "dump mmu"?
15:14.33dcordesof course
15:16.22dcordesKevin2: is mmu memory management unit?
15:17.20Kevin2dcordes: yes
15:18.26dcordeshttp://rafb.net/p/N9Aw5g91.html
15:21.08dcordesKevin2: the mmu is too big for pastebin can I email it?
15:21.51Kevin2dcordes: sure
15:22.18dcordesaddress?
15:27.39*** join/#htc-linux CVirus (n=GoD@196.205.192.185)
15:29.49Kevin2dcordes: Did you get the message I sent to you directly?
15:30.11dcordesKevin2: query? no
15:30.13*** join/#htc-linux ltxda (n=ltxda@unaffiliated/ltxda)
15:30.32Kevin2Hrmm.  Can you just split the "dump  mmu" into two post?
15:31.36*** join/#htc-linux ASUS-tek (i=microsta@221.128.205.158)
15:32.26dcordesKevin2: here you go but you have to count the kittens http://rapidshare.com/files/114385705/haretlog-20080512_171454.log.html
15:33.03*** part/#htc-linux ASUS-tek (i=microsta@221.128.205.158)
15:33.40Kevin2dcordes: Thanks.
15:34.00Kevin2dcordes: BTW, now that you have access to linuxtogo.org, you can ssh in, and make a public_html/ directory and put files there.
15:34.12dcordesoh cool
15:34.21*** join/#htc-linux ltxda0 (n=ltxda@unaffiliated/ltxda)
15:35.49dcordesKevin2: inside the directory I get after logging in?
15:36.40Kevin2dcordes: Yeah.  Run 'ls -l ~kevin/public_html' and compare it to http://linuxtogo.org/~kevin/
15:37.48dcordesnow that's easy
15:38.54dcordesKevin2: will http://infocenter.arm.com/help/topic/com.arm.doc.ddi0211j/Babifihd.html help making mmutrace work on kaiser?
15:46.41Kevin2dcordes: I thought mmu trace did work.
15:46.58dcordesKevin2: no we have problems tracing the smem
15:47.09Kevin2But you can trace some things?
15:47.34dcordesKevin2: I'm not sure but I think so
15:47.36Kevin2In any case, yes the documentation should help clarify many things.
15:48.25dcordesI only know I need mmutrace to find out the right values for AT and SMD1 fifo registers and cr2 said you could possibly help
15:53.27Kevin2Bleh - the arm developers should be taken outside and shot.
15:55.22cr2Kevin2: the 'shareable' areas can't be 'mmutraced' on kaiser for some reason.
15:56.14Kevin2dcordes: Can you run "show cp(15, 0, 2, 0, 1)" and "show cp(15, 0, 2, 0, 2)"
15:57.14Kevin2cr2: The mmu is all over the place...  If the wind is blowing west and cp(15,2) is set, then use translation table 1, except if bit 4 on page table 7 is set, except if....
15:59.22cr2hehe.
16:00.41majorburnYou just got armed.
16:00.44majorburnburn
16:01.18miknixhello Kevin2
16:01.24Kevin2Hi
16:01.45miknixKevin2, I was able to get the dpad working over i2c
16:01.46*** join/#htc-linux patoche_ (n=Patrice@lns-bzn-58-82-251-228-228.adsl.proxad.net)
16:02.04Kevin2Cool!
16:02.13miknixKevin2, but since your egpio driver is going mainstream, I'm switching to it
16:02.54Kevin2miknix: The egpio and bbkeys drivers are different.
16:03.26miknixKevin2, I know.. I'm only changing the cpld access interface in my driver
16:03.35miknixKevin2, instead of using i2c, to use egpio
16:04.09miknixKevin2, this is only the dpad driver which gets data from the htc-i2c-cpld driver:     http://pastebin.com/d7c85c8aa
16:13.20miknixKevin2, what do you think? I'm trying to create a generic htc-cpld driver which will work with everyone
16:14.24Kevin2miknix: I don't really understand.  I'm not familiar with the hardware you're trying to support.
16:15.05miknixKevin2, I noticed that a lot of HTCs have the same cpld for controlling the leds, backlight, getting dpad buttons ...
16:15.32Kevin2miknix: Sure, but that is a separate driver from egpio.
16:15.59miknixKevin2, yes.. it is. I'm using egpio to access the cpld
16:16.09miknixinstead of i2c
16:16.43Kevin2How do you use egpio to access the cpld?
16:16.55Kevin2Are you bit-banging on the egpio gpios?
16:17.01miknixKevin2, yes
16:17.26miknixhum.. wait
16:17.31miknixnow I'm confused
16:18.07Kevin2On Apache and Hermes, the bbkeys stuff is connected to the main processor gpios.
16:18.53miknixKevin2, on the wizard and herald and some others, the cpld is bitbanging on two gpio pins
16:19.20miknixKevin2, or we can also use those pins to drive a i2c bus
16:20.00miknixKevin2, I think that was you that told me this.. to use the second function of the i2c pins
16:20.10Kevin2Hrmm.  Using "cpld" is kind of confusing - the phones have several cpld chips doing different functions.
16:20.30Kevin2Are you refferring the egpio chip (which uses cpld) or the front keypad chip (which may also be using a cpld).
16:20.49miknixKevin2, yes.. I'm referring to them all
16:21.11miknixKevin2, each cpld chip behaves very similar between htc devices
16:21.45miknixso why to implement that in each board if the majority of code works on all devices?
16:22.43Kevin2I don't think they are that similar.  The egpio chips are definitely similar to each other.
16:23.06Kevin2The front keypad chips are not similar to egpio though.  They have timers for led expiration and keypad debouncing stuff.
16:25.02miknixKevin2, hum.. but I cannot access the front pad chips using egpio?
16:26.00Kevin2miknix: I'm confused by the question.  egpio uses a memory mapped set of 16bit registers.  front keypad uses a 2 gpio bit banging mechanism.
16:26.16Kevin2You definitely can't drive the front keypad using the egpio driver.
16:26.29miknixoops
16:27.01miknixI thought that the egpio was using the two bitganging pins to extended gpios
16:28.02miknixKevin2, putting that in this way, what I was saying is ridiculous
16:28.32miknixs/extended/extend/
16:29.03Kevin2miknix: The egpio chip found on hermes, apache, and most other htc phones is driven by the memory controller.  I've heard some people have found an egpio like device driven by i2c on some of the omap devices.  But that chips is definitely distinct from the ones found in most htc phones.
16:29.37miknixKevin2, hum.. ok then. so I guess I'll continue to use i2c
16:29.58Kevin2The driver ph5 is pushing to the mainline kernel only supports the memory interface.
16:31.07Kevin2miknix: Okay.  So, what does the code look like when using i2c?  I'm curious if it is similar to the bbkeys stuff.
16:31.29miknixKevin2, its similar, but uses some abstraction provided by the i2c bus itself
16:31.38miknixKevin2, it works with any i2c bus available
16:31.52Kevin2It's been an open question for me if the "bbkeys chip" is implemented via cpld or is part of the lcd controller, or something else.
16:32.56miknixKevin2, do you want to fetch from linwizard repo or prefer the files on pastebin?
16:33.04Kevin2miknix: Is the i2c bus a bitbanging thing, or is it using an i2c control block on the main processor?
16:33.18Kevin2miknix: Either is fine.
16:33.36miknixKevin2, you can use both busses. it works with omap i2c bus or gpio bitbang i2c
16:33.53miknixKevin2, omap i2c has some bugs but uses interrupts which is fine
16:34.04miknixKevin2, gpio bitbang does polling
16:34.15Kevin2miknix: On your particular phone, can you use the omap i2c bus?
16:34.29miknixKevin2, yes
16:34.50miknixKevin2, I had to modify the address shift (Babel0 fix)
16:35.44*** join/#htc-linux noelcragg (n=noel@adsl-68-121-164-151.dsl.pltn13.pacbell.net)
16:36.15*** part/#htc-linux noelcragg (n=noel@adsl-68-121-164-151.dsl.pltn13.pacbell.net)
16:36.21miknixKevin2, git://polaris.lurian.net/linwizard-kernel.git
16:36.30miknixKevin2, fetch the I2C branch
16:36.53Kevin2miknix: Is git-web running on that server somewhere?
16:37.00miknixKevin2, no. sorry
16:37.25Kevin2miknix: Hrmm.  Can you just pastebin the driver then? :-)
16:37.36miknixKevin2, ok then
16:38.55miknixKevin2, Main driver, it attaches as chip to the i2c bus: http://pastebin.com/d1c62ae7b
16:39.44miknixKevin2, Main driver header:   http://pastebin.com/d17ce6af6
16:40.23miknixKevin2, LEDs driver: http://pastebin.com/d3b741ec6
16:41.10miknixKevin2, Backlight driver:  http://pastebin.com/d66abcabf
16:41.52miknixKevin2, and the dpad buttons driver:  http://pastebin.com/d3cfa8c51
16:52.31dcordesKevin2:
16:52.36dcordesHaRET(1)# show cp(15, 0, 2, 0, 1)
16:52.37dcordes0x00000000
16:52.57dcordesHaRET(2)# show cp(15, 0, 2, 0, 2)
16:52.57dcordes0x00000000
16:59.21Kevin2miknix: It looks like your driver is very similar to bbkeys.  Why can't you use bbkeys?
16:59.26Kevin2dcordes: Thanks.
17:00.03miknixKevin2, didnt try. I just wanted to get some hw abstraction, which the i2c bus can give me
17:01.06Kevin2miknix: The bbkeys driver (if it works) should take care of everything.
17:01.32miknixKevin2, yeah.. it is easy to replace the i2c instructions with the bbkeys hw access ones
17:02.22Kevin2miknix: Not sure I understand.  bbkeys provides a keyboard driver , and it turns the rest of the chip into gpio accesses.
17:04.05miknixKevin2, how do you have your backlight driver working?
17:04.25Kevin2miknix: By using the gpios..
17:05.00miknixKevin2, so you have a backlight driver using gpios somewhere.. in the board file?
17:06.00Kevin2miknix: See http://git.linuxtogo.org/?p=groups/mobile-linux/kernel.git;a=blob;f=arch/arm/mach-pxa/htcapache/htcapache.c;h=d44a5a34643d9caa8054243cb8bb7c106ccb29d8;hb=d6da66b97b9a4757e9c7b16fb461eb654a6fdf63#l157
17:07.35Kevin2Right above that (in the same file) is the definition for the rest of the bbkeys driver on Apache.
17:07.37Kevin2http://git.linuxtogo.org/?p=groups/mobile-linux/kernel.git;a=blob;f=arch/arm/mach-pxa/htcapache/htcapache.c;h=d44a5a34643d9caa8054243cb8bb7c106ccb29d8;hb=d6da66b97b9a4757e9c7b16fb461eb654a6fdf63#l102
17:08.10miknixhum..
17:08.50miknixKevin2, but this cpld is similar for a lot of htc devices
17:08.56Kevin2Later in the same file is where leds are defined - note all of Apache leds (including those not on bbkeys) are in the same section:
17:08.59Kevin2http://git.linuxtogo.org/?p=groups/mobile-linux/kernel.git;a=blob;f=arch/arm/mach-pxa/htcapache/htcapache.c;h=d44a5a34643d9caa8054243cb8bb7c106ccb29d8;hb=d6da66b97b9a4757e9c7b16fb461eb654a6fdf63#l332
17:09.02miknixIMHO it would make sense a driver for all
17:09.40Kevin2That wont work - the keys and registers are different from one phone to the next.
17:09.56Kevin2The only thing that is probably the same is the lcd stuff - that could probably be abstracted out into the main driver.
17:12.05BabelOcr2: gps works :)
17:13.57miknixKevin2, at least all the cpld registers are equal in htc wizard and htc herald and htc elf
17:15.12Kevin2miknix: Compare to htc hermes at:   http://git.linuxtogo.org/?p=groups/mobile-linux/kernel.git;a=blob;f=arch/arm/mach-s3c2442/htchermes/htchermes.c;h=f8e21716b4c99976453a47dd683fd4e3684e3db1;hb=d6da66b97b9a4757e9c7b16fb461eb654a6fdf63#l106
17:18.36miknixKevin2, "hermesRight:alter", .gpio = BBKEYS_GPIO(2, 7)
17:18.56miknixchip 2 address 0x80?
17:20.31*** join/#htc-linux JEEB (n=kanakana@a88-112-94-153.elisa-laajakaista.fi)
17:20.46Kevin2miknix: Yes.  On my phones, if you set a bit in causes the led to flash.
17:20.52Kevin2(The "alter" bit.)
17:21.16miknixKevin2, we also have an alter bit. but it only works sometimes
17:22.04miknixKevin2, the chip behaviour changes if we booted linux with usb connected or wifi on
17:22.27Kevin2Yeah - you can cause green to flash, blue to flash, but if you try to flash "light blue" it will cause blue / green to flash alternating.
17:23.05miknixKevin2, err.. I'm talking to the usb hardware
17:23.26miknixKevin2, if we boot linux and usb was previously connected on wm5
17:23.34Kevin2miknix: I haven't seen anything like that on my phones.
17:24.04miknixKevin2, also in chip1 seems to be a bit to enable/disable the mmc power
17:25.45Kevin2miknix: How do you "ack" your keypad presses?
17:34.26*** join/#htc-linux TimRiker (n=timr@68-27-117-166.area1.spcsdns.net)
17:37.31dcordesKevin2: further action required?
17:38.18miknixKevin2, no ack needed
17:38.23Kevin2dcordes: I'm still reading the docs - it's a real nightmare..
17:38.34Kevin2miknix: Do you get an irq when the keypad is hit?
17:38.39miknixKevin2, yes
17:38.59miknixKevin2, the dpad irq handler reads the i2c bus
17:39.05Kevin2So, you don't need to ack the irq in order to get another irq?
17:39.19Kevin2On Apache and hermes, we have to write a 0 to register 3 in order to get further irqs.
17:39.29miknixKevin2, I return IRQ_HANDLED
17:39.36miknixKevin2, no.. it works fine like this
17:39.51*** join/#htc-linux exco (n=excogita@e181098175.adsl.alicedsl.de)
17:40.00Kevin2miknix: Okay - so, the chips are a little different then.
17:40.14miknixKevin2, yeah.. the LED bits are also different
17:40.45miknixKevin2, but which interrupts are you handling, the i2c ones?
17:41.07miknixKevin2, because I got 2 interrupts when I press the dpad, the dpad interrupt and the i2c one
17:41.08Kevin2No, there is no i2c interrupt.
17:41.53Kevin2On Apache and Hermes, there is only gpios.  There is a clock gpio, a data gpio, and an irq gpio.
17:42.15Kevin2Clock is always out, irq is always in, and data can go both ways.
17:42.23miknixKevin2, same here
17:47.50*** join/#htc-linux dortega (n=David@238.Red-88-16-218.dynamicIP.rima-tde.net)
17:49.55Kevin2miknix: What did you mean earlier by "bitbanging driver uses polling"?
17:50.58miknixKevin2, I think it scans the i2c adapter in a timed fashion
17:51.21*** join/#htc-linux rmoravcik (n=rmoravci@ip-89-102-255-171.karneval.cz)
17:51.32Kevin2miknix: I'm not sure what you mean.
17:52.14miknixKevin2, sorry.. I dont have electronics background.. Its hard for me to call things with the right name
17:52.35Kevin2miknix: Heh, I'm in the same boat.
17:52.49miknixKevin2, :)
17:54.44miknixKevin2, unlike omap bus, the bb gpio i2c bus doesnt handle interrupts. it just reads the i2c device in a polled interval
17:55.48Kevin2Okay - that's different for Apache and Hermes.  On these phones, we don't drive the i2c stuff at all until we want to change something or we get an irq.  Then we read/write what we want.
17:56.43miknixKevin2, yeah.. the omap i2c bus also works like that
17:58.06miknixbut the omap i2c bus is conflicting interrupts with the dpad driver
17:58.32miknixdidnt look much at it because the bb gpio bus works
17:58.58miknixbut I would like to have the omap i2c bus working too with the dpad to minimize interrupts
17:59.34*** join/#htc-linux JohnnyK (n=johnnyk@nfx-nat-229.pilsfree.net)
18:04.47Kevin2miknix: I think you should see if you can get bbkeys working - that only raises an irq when one presses a key.
18:05.15miknixKevin2, can you separate the dpad driver from it?
18:05.36Kevin2cr2: It looks like dcordes device only sets "device non-shared" in the page tables.  I don't see any "shared" mappings.
18:05.50Kevin2miknix: Why not use the whole thing?
18:06.32miknixKevin2, we dont have the same buttons/keymaps
18:07.11BabelO<PROTECTED>
18:07.40Kevin2miknix: See the links I had above.  They keyboard map is defined in the arch code - we don't need to have the same keys.
18:08.09Kevin2http://git.linuxtogo.org/?p=groups/mobile-linux/kernel.git;a=blob;f=arch/arm/mach-s3c2442/htchermes/htchermes.c;h=f8e21716b4c99976453a47dd683fd4e3684e3db1;hb=d6da66b97b9a4757e9c7b16fb461eb654a6fdf63#l121
18:08.26miknixKevin2, hum.. ok. and the other bits are exported as gpios right?
18:08.29Kevin2Note how hermes defines what registers are read on key event, and how those registers map to keys.
18:08.42Kevin2miknix: yes.
18:08.59miknixseems fair to me
18:15.21Kevin2cr2: Scratch that - I do see shared mappings.
18:30.21*** join/#htc-linux exc1 (n=excogita@e181065251.adsl.alicedsl.de)
18:38.49BabelOKevin2: still around ? :)
18:47.17Kevin2BabelO: yes.
18:47.40BabelOKevin2: i want to push my local htc-omap branch
18:47.57BabelOKevin2: how can i proceed ?
18:48.32BabelOKevin2: git push origin htc-omap:refs/heads/babelo
18:48.34BabelO?
18:48.37Kevin2BabelO: You have a branch in your local git, and want to push it to linuxtogo?
18:48.48*** join/#htc-linux pikapika (n=pikapika@mar75-8-88-164-227-147.fbx.proxad.net)
18:48.59pikapikahi
18:49.00BabelOKevin2: yes a clean branch based on mainline
18:49.19BabelOKevin2: hi use git branch --track htc-omap origin/mainlinel
18:49.22BabelOto create it
18:49.44cr2BabelO: hi
18:49.54cr2BabelO: htc-egpio works on arte ?
18:50.27BabelOcr2: yes now it is ok, gps seem to works, i use cat /dev/ttyS1 and i see strange char incomming at same interval
18:50.33BabelOi think it is just a bad baudrate
18:50.48BabelOcr2: but bt need more work to init
18:51.28Kevin2BabelO: I'm not really sure.  I think you just push the branch you want to.
18:52.15BabelOKevin2: ok then i prefer to wait pH5 for the right command :) this one looks good to me git push origin htc-omap:refs/heads/babelo
18:53.31diogene31_BabelO: It looks good to me : git push <remote server> <localbranch>:<server branch>
18:53.44cr2BabelO: check 4800 and 9600
18:53.56BabelOdiogene31_: the the remote rbranch should be git push origin htc-omap:refs/heads/htc-omap
18:54.01BabelOcr2: ok
18:54.19cr2BabelO: if it will not help, then you can always run sirfmon.
18:54.22BabelOcr2: btw, my screen is not centered , i think i set wrong parameters
18:54.42cr2are the lcd registers documented ?
18:55.09BabelOcr2: i ve some part yes
18:55.28*** join/#htc-linux kiozen (n=kiozen@rgnb-4db1d8a4.pool.einsundeins.de)
18:55.45kiozenhi
18:56.22BabelOhi kiozen
18:57.02kiozenBabelO: got your two beers for decent programming?
18:58.10BabelOkiozen: yes when i come back from the "concert"
18:58.25kiozenoh another one today?
18:59.03BabelOkiozen: no the one from yesturday
18:59.06cr2hi kiozen
18:59.33kiozenhi cr2, did you blow up the display already ;)
18:59.36cr2kiozen: the resume does not work as expected, but the LCD is not toast. yet :)
19:00.00kiozenguess we have to call this a step forward :))
19:00.13cr2i'm checking the spiread_24bit() function.
19:00.17diogene31_BabelO: I dont't understand. The remote branch is htc-omap in your  case (refs/heads/htc-omap => remote branch htc-omap)
19:00.40cr2kiozen: i mean the lcd resume/powerup, not the machine.
19:00.56BabelOdiogene31_: yes i want to push my local branch named htc-omap to the remote server and name it htc-omap too
19:01.00kiozencr2: I know
19:01.18diogene31_BabelO: So that's the right command.
19:01.40kiozennever thought that there is so much business to do for a LCD during suspend/resume.
19:01.56kiozenthought you just start to fill the framebuffer again after resume
19:03.03BabelOdiogene31_: ok,thx, but i think i need to do something on my side, for push permission
19:06.47diogene31_BabelO: Probably. That depends on the git url you're using, and the git-server setup.
19:07.23cr2kiozen: on ba6 is still does not work after 3 years ;)
19:07.29BabelOdiogene31_: you are running your phone on 2.6.26 too ?
19:07.47diogene31_BabelO: Yes I do.
19:08.12BabelOdiogene31_: same here, i ll try later blueangel too
19:08.27cr2BabelO: ba needs asic3_mmc
19:08.52BabelOcr2: yes i know, i see that there is already a ASIC3 driver in 2.6.26
19:08.53cr2BabelO: you may merge the n560 instead :)
19:09.12cr2BabelO: link ?
19:09.19BabelOcr2: not the mmc part :)
19:09.35kiozencr2: I always thought LCDs are pretty straight forward simple devices with just a framebuffer and a register for the backlight. I am just amazed that they need such a complicated setup during resume.
19:10.06cr2BabelO: without mmc it's useless.
19:10.23BabelOcr2: yes :(
19:11.02*** join/#htc-linux ltxda (n=ltxda@c-98-196-125-205.hsd1.tx.comcast.net)
19:13.37cr2kiozen: it looks like that http://svnweb.openmoko.org/trunk/src/host/qemu-neo1973/hw/jbt6k74.c?rev=3443&view=markup
19:24.13*** join/#htc-linux Napfton (n=Napfton@130.83.47.12)
19:30.49Napftonhttp://wiki.xda-developers.com/index.php?pagename=Ipaq6915
19:31.36Napftondoes this mean its close to be installable but not close enough to give any installation instructions for riskloving ppl?
19:41.32cr2Napfton: the 240x240 will give some trouble with the gui elements.
19:41.52cr2Napfton: you'd ask Marex about the phone status.
19:42.20cr2the rest should work. (without the internal mdoc g4)
19:45.48exc1hello
20:25.24*** join/#htc-linux marbalon (n=balon@aegz72.neoplus.adsl.tpnet.pl)
20:34.28*** join/#htc-linux patoche (n=Patrice@lns-bzn-58-82-251-228-228.adsl.proxad.net)
20:40.35*** join/#htc-linux dcordes (n=dcordes@unaffiliated/dcordes)
20:44.11marbalondcordes: hi
20:44.15dcordeshi marbalon
20:44.47dcordesyou asked me about the fifo registers earlier. to be honest - I have no idea. see the comment above the code. dzo gave me that
20:45.50marbalonok, I think it is a problem, I dump smem an have idea how to fix it, but how you test communication ? ppp ?
20:46.05dcordesmarbalon: no it's easy
20:47.03dcordescat /dev/smd0 & echo -e "ATV1\r" > /dev/smd0
20:47.11dcordesthe modem should reply something
20:48.17dcordesbut before you can check if the data flow works at all
20:48.26cr2dcordes: cu(1)
20:49.16excocan I reboot from OM without hardresetting to WinCE
20:49.49dcordescr2: (1)?
20:49.57majorburnman page section 1
20:50.04dcordesoic
20:50.52dcordesmarbalon: in smd_write after the first check_for_smd_data, put "printk("head=%x, tail=%x\n",ch->send.buffer->head,ch->send.buffer->tail);" and see if tail changes when you write to /dev/smd0 a few times.
20:51.03dcordes(c) dzo
20:51.42dcordesIf it doesn't, change the 3 in notify_other_smd with numbers from 0..7 until
20:51.42dcordesit does.
20:51.58dcordesbut I tried all 8 values turns out none of them made tail change on writing
20:52.04marbalonok I will try
20:52.31marbalondcordes: I've push my last keyboard changes, please test it
20:52.34dcordeswith 0 the tail value is 77656361, with 4 6a666a66, with 5 646a6a64, with 6 616c616c, with 7 660a7261
20:52.46dcordeswith 3,2,1 6c6f6c0a
20:52.50dcordeshead changes but tail doesn't
20:53.37dcordesmarbalon: ok will test later, brb
20:57.40majorburn#
20:57.46majorburnChuck Norris can divide by zero
20:58.32exco:-)
20:58.50*** join/#htc-linux LunohoD_ (n=alex@e180073211.adsl.alicedsl.de)
20:58.58BabelOmajorburn: steven segal too :)
21:03.59miknixmajorburn, and I heard that when Chuck Norris does division, there is no remainder
21:07.22majorburnnice one
21:09.14excoChuck Norris counted to infinity - twice.
21:10.01majorburn<3 #htc-linux
21:10.45miknixChuck Norris doesn't have blood. He is filled with magma.
21:12.31excohttp://www.chucknorrisfacts.com/
21:12.50miknixfortune -m "Chuck"
21:15.59dcordes~Chuck Norris
21:16.00aptchuck norris is, like, and there is no chin under Chuck Norris' Beard. There is only another fist.
21:16.08miknixahha
21:16.14miknixdcordes  won!
21:18.47dcordesmarbalon: building your keyboard changes. tried any smd stuff yet?
21:23.57marbalondcordes: hmm when I run  cat /dev/smd0 & a get a lot of buffered command
21:25.03dcordesmarbalon: can you write some of them down?
21:25.18dcordes(I get only the printk, no commands)
21:25.37marbalon+CRES....
21:25.46marbalon@HTCCSQ....
21:25.48dcordesdid you change anything in the code?
21:26.00marbalonyes
21:26.03dcordescool
21:26.05dcordeswhat's your image?
21:26.09marbalonfix addresses
21:26.28dcordesthat's great looks like we are one stead away from data connection
21:26.41marbalonwhat image ? initrd ?
21:26.43dcordesyew
21:26.45cr2dcordes: these are "unsolicited responses"
21:26.45dcordesyep
21:26.58marbalonangstrom
21:27.05cr2they are regularily sent by the phone.
21:27.07dcordeshow do you make the device node?
21:27.24cr2which one ?
21:27.31dcordes/dev/smd0
21:27.48dcordesI make it with "mknod /dev/smd0 c 254 1"
21:27.58marbalonthere is a smd 0 smd 1 snd smd127
21:28.22dcordesodd. I get none of them. Can you show me your CMDLINE and which image do you use exactly?
21:28.59marbalonstandard without ppp and password
21:29.39cr2hmm.
21:29.40dcordesstandard= you do not put anything in config, n'either in default.txt?
21:30.05cr2254 1 is used by sd/mmc p1 ?
21:30.28marbalonyes, without anything in config
21:30.58dcordescr2: in proc there is a file that told me that major and minor for /dev/smd
21:31.30marbalonI need to go a sleep. i put my file temporary on my server
21:31.30dcordeswell major 254 and minor 0-31 I think
21:32.05dcordesok thanks
21:32.30marbalonhttp://baliniak.pl/android/kaiser-smd.c
21:32.48marbalonit is a clean copy 7x00-smd.c
21:33.09marbalonI only modify addresses
21:33.13marbalonnight
21:33.39dcordesok good night
21:34.01dcordesI wonder what will happen when I put those addresses in smd-kaiser.c which has some updates from dzo
21:35.02excopaulproteus, ping
21:35.14paulproteusexco, pong
21:36.35paulproteusUnfortunately I've not much to tell you, I've been very busy the past few days.
21:36.49excoI tried the kernel you built with the older image and it also doesn't work
21:36.56paulproteusHow exciting.
21:37.00exco:-Ü
21:37.05paulproteusWhat sort of doesn't work, again?
21:37.26excowell should the new kernel still work with older images?
21:37.42paulproteusAssuming you put the modules directory in the right place, sure, generally speaking.
21:37.50paulproteusSame with vice versa.
21:38.19excoso we might not only have a "broken" new image but also a "broken" new kernel
21:38.34paulproteusAmazing.  What was the brokenness again?  I forgot.
21:41.17excocan't tell
21:42.08paulproteusWhat does it not do properly, I mean?
21:42.43excoIt won't boot (plus I don't know if I'm the cause :-) )
21:43.34paulproteusHmm, I should try later too then.
21:45.17excoI can successfully change the kernel from hh17 to hh18 and hh20 with the image from ~htcpxa (Dec 07) but not to our built hh20 kernel
21:45.41paulproteusWhat about the image from us and the old hh20 from ~htcpxa?
21:45.56excohaven't gotten that to work either - so far
21:47.44paulproteusWhat error do you get when you try that?
21:49.00excoI will tell you soon
21:49.06exco(didn't document)
21:49.10paulproteusnods
21:51.17dcordeslol I just noticed I can hear the ocean in kaiser speaker after linux booted
21:52.13paulproteusOuch.
21:52.20excoyeah
21:52.35excojust didn't replace the right zimage in /boot...
21:52.49excook, so the dec07 image boots with the new kernel
21:53.10paulproteusThat's a relief.
21:53.39BabelOhmm no pH5
21:54.54BabelOpaulproteus: do you know what i need to setup to comit into git ?
21:55.02paulproteusFor the linuxtogo git?
21:55.14BabelOpaulproteus: yes
21:55.24BabelOpaulproteus: i can already comit into qtopia :)
21:55.30paulproteusFirst of all, in git terminology, "commit" is a local action; "push" is an action that requires remote privileges.
21:55.32BabelOpaulproteus: waiting for 4.4 to continue
21:55.35paulproteusnods
21:55.42paulproteusgoxboxlive says he also waits for 4.4
21:55.43BabelOpaulproteus: yes push :)
21:56.34paulproteusI guess you need to give ph5 an SSH key.
21:56.42paulproteusAnd he has to put it somewhere.
21:57.04BabelOpaulproteus: ah :(
21:57.05dcordesis there a thing in linux that let's me auto assign all the /dev files again?
21:57.10dcordeslike it should be done at boot time?
21:57.26paulproteusdcordes, Well, these days udev is supposed to make them I think.
21:57.56paulproteusThe other thing you can do, BabelO, is push your work and email ph5 and tell him to pull from you.  That's not great, obviously.
21:58.34BabelOdcordes: what do you do to setup linuxtogo ?
21:58.50cr2BabelO: can you have a look at the n560 and athena files  and put them into git ? as a htc-egpio wizard :)
21:58.59excois the order of modules lsmod gives important?
21:59.07miknixdcordes, mdev -a
21:59.14miknixdcordes, its from busybox
21:59.40BabelOcr2: ok, i look
22:00.09dcordesmiknix: I have busybox but angstrom console image does not have mdev
22:00.57miknixdcordes, busybox is highly configurable at build time.. it might not be enabled
22:01.28cr2BabelO: thanks. i'm fighting evil spi ;)
22:01.56miknixdcordes, http://linwizard.wiki.sourceforge.net/booting
22:02.29miknixdcordes, see the nfs boot.. it has automatic /dev population at boot
22:02.39dcordescr2: I don't get the smd nodes :(
22:02.59dcordesnfs? I have no network
22:03.50dcordes/proc/devices says 254 smd
22:04.18cr2it's in the kernel
22:04.45cr2<PROTECTED>
22:05.11dcordesyes I know it is something with the image. I just wonder how to get the node right to reconstruct marbalon's findings
22:05.41dcordescr2: already rebuilt with his changes to smd.c
22:05.50miknixdcordes, cat /sys/pathtoyourdevice/dev   usually show you the device numbers
22:05.52cr2dcordes: i've used 'ln -sf /dev/ttyS2 /dev/gps' in qlandkarteM startup script
22:06.00miknixs/device/node/
22:08.45dcordescr2: miknix: /sys/class/tty has smd0 smd1 smd27
22:09.33dcordesdoes this mean the smd driver wants to use those?
22:09.59excopaulproteus: it boots
22:10.27paulproteusexco, woots!
22:11.08excoI removed the zimage symbolic link from /root - now it boots
22:11.12*** join/#htc-linux dzo (n=dzo@121.98.128.127)
22:11.59excoto the calibration screen ... but I can't calibrate - it doesn't recognize me pressing the touchscreen
22:12.41excoI mean /boot - of course
22:13.05dzodcordes: I just sent you some mail about smd, it should help.
22:14.22dcordesdzo: ok thx. did you see the recent log? marbalon said he was able to read data
22:14.52dzono, i'll look at it.
22:15.17dcordessince he based his change on the bare msm7x00-smd.c which do not include your change I think I'm not sure which to take
22:20.05dzohis msm7x00 looks like an older version of my vogue-smd.c, he has the correct start and buffer values for smd0 though.
22:20.30dcordesdzo: I see. I will just put your values in the revision from the diff you sent me
22:20.42dzoand is using 3 for a2M so perhaps that is correct.
22:21.14dzoyes, try that and keep the 3 in notify-other-smd
22:21.16dcordeshow is it his values look 'rounder' =
22:21.25dcordes?
22:22.10dzohis smd1 values are wrong.
22:22.16paulproteusexco, Wait, the current OM image doesn't recognize your touching the touch screen at all?
22:22.23dcordesdzo: writel(1, MSM_A2M_INT(3+ch)); right?
22:22.28dzoyes
22:22.52dcordesk building
22:23.24dzook, got work to do, let me know when you get it working...
22:23.40dcordesdzo: ok
22:26.20excoright, paulproteus
22:26.24excossh works
22:27.19excoI can't even move the X that shows right before calibration
22:28.08*** join/#htc-linux Marex (n=Marex@vasut.kolej.mff.cuni.cz)
22:28.09paulproteusThat's very strange.
22:28.18paulproteusI don't know anything about the touchpad driver setup.
22:29.14*** join/#htc-linux Marex (n=marex@vasut.kolej.mff.cuni.cz)
22:29.25paulproteusexco, You could try using x2x.
22:29.32paulproteusThen you can use your desktop mouse....
22:31.01Marexcr2, hi, I think you wont get any patches from me in next two months :(
22:34.07dcordesdzo: ok with the regs from your email and a2M 3 I see a bunch of messages from the moem now when I cat /dev/smd0
22:34.22dcordess/moem/modem/
22:34.46cr2Marex: ?
22:35.04Marexcr2, well examination period started and my laptop died
22:35.19Marexisnt that cool, it dies when I need it most :E~
22:35.37dcordeswhen I do an "echo -e fubar > /dev/smd0" repeatedly I see head but not tail changing (as before)
22:35.54excossh -XC xda x2x -east -to:0.0?
22:37.09dzodcordes: what messages do you see from the modem?
22:37.34dcordesdzo: +CPBR ones eg
22:37.50dcordeswith cosmic numbers
22:38.07dzothat's good, it means the receive buffer is working. looks like send isn't though.
22:38.20dcordesat the end there's a sequence of HTCCSQ ones
22:38.39dzothats the modem reporting it's signal strength
22:38.45dcordesdzo: when I leave cat on a while, it does refres, ie the messages get reprint
22:39.08dzoyes, it will be set to report signal strength every few seconds.
22:39.11dcordesdzo: that's cool two weeks ago I didn't think we would have modem communication on kaiser at all anytime soon
22:40.02dzoperhaps the 3 in a2mmm is not correct, how far did marbalon get? could he send to the modem?
22:40.07paulproteusexco, -from :0
22:40.10paulproteusI think.
22:40.20paulproteusexco, Wait, you're more confused than I thought.
22:40.21dcordesdzo: he just reported about the cat and response
22:40.34dcordes23:23 < marbalon> dcordes: hmm when I run  cat /dev/smd0 & a get a lot of buffered command
22:40.36paulproteusexco, ssh -XC xda x2x -east -from localhost:10
22:40.38paulproteusThat should do it.
22:40.57paulproteusNever mind- you had it right!
22:40.59dcordes23:25 < marbalon> +CRES.... 23:25 < marbalon> @HTCCSQ...
22:41.04paulproteusexco, Ignore my comments - your way was okay.
22:41.24dzoOK, try changing the 3 then until the tail changes,  you could just write to them all for a quick hack.
22:41.28dcordesdzo: and he used this smd.c: http://baliniak.pl/android/kaiser-smd.c
22:41.34excosh: x2x: not found
22:42.25dcordesdzo: I learned how monotone a programmer's life can be today when I tried 0-7 today
22:42.59dcordesdo you have the code for writing all 8 at a time?
22:44.31dzodcordes: I saw that, he probably couldn't write to it either: try for(int i==0;i<7;i++) write(1,MSM_A2M_INT(i)) in notify-other-smd
22:44.57dzos/i==/i=
22:45.22*** join/#htc-linux roscomca_ (n=IceChat7@78.32.71.213)
22:45.37dcordesI don't think he wrote anything, otherwise he would have mentioned it I believe
22:46.54dcordesdzo: does that replace the old write line?
22:47.26dzoint i; for(i=0;i<8;i++) write(1,MSM_A2M_INT(i));   I don't know how many A2M addresses there are, 7 should do though.
22:47.37*** join/#htc-linux JTRipper_ (n=JTRipper@p4FE96C38.dip.t-dialin.net)
22:47.40dzoyes
22:48.52dcordesso I put in "int i; for(i=0;i<8;i++) write(1,MSM_A2M_INT(i));" now?
22:48.58dzoyes
22:49.49dcordesdzo: 55: error: implicit declaration of function ‘write’
22:50.23dzosorry, should be writel
22:50.35dcordesok works
22:52.04dcordes..booting..
22:55.20dcordeshrmm dzo did you ever experience those hangs on boot on vogue?
22:55.28dzono, never.
22:55.33dcordeswhen it hangs in haret after 100% not saying gogogo
22:56.10dzono, i don't know if it always says gogogo but it always boots.
22:56.40dcordesthat's interesting I wander what kaiser has that creates that mess
22:57.20dzocould be a dma transfer or something that corrupts the image.
22:58.01dcordesnow it hanged two times in a sequnce very annoying
22:58.52dzocould be that new code, it may do horrible things just writing to all the A2M addresses.
22:59.39dcordeshm I doubt it wrote anything - I need to create the node
23:00.13dcordesoh noes. tail still not changing
23:00.25dzoit could have because it calls stuff in the timer interrupt.
23:00.44dcordescat still working, showing the modem status
23:02.54dzoOK, perhaps some bigger numbers then, try for(i=7;i<16;i++)
23:04.15dzotis a pity you can't trace with haret, have you tried tracing MSM_CSR_BASE?
23:06.10dzolooking at android, they use 0 for notify-other-smd, you could try that. it could be that the other writes confused it.
23:06.48dcordesdzo: well I tried the 0 - but that was with the previous registers
23:07.13dcordesyou got the mail history?
23:07.18dzoyou were looking at the wrong tail then so wouldn't have known.
23:07.33dcordesok
23:07.44dcordesshall I first try the for(i=7;i<16;i++) or rather 0 ?
23:08.11dzotry 7-16 first.
23:08.18excoisn't it weird I can't boot with the zimage symbolic link in place
23:08.19exco(it doesn't seem to be a problem with any of the other images)?
23:08.47dcordessymlink in wince?
23:09.21dcordesbrb
23:10.01excolinux partition
23:20.05dcordesbooting..
23:22.18dcordesdzo: tail is stuck on dc1 now
23:23.17dzoOK, perhaps there is some other flag in the header to say that there is data in the buffer to write.
23:23.43dcordeswhich header?
23:23.53dcordessmd.h?
23:23.57dzowhere the head and tail are.
23:24.40dcordesdzo: hm when the recv buffer works, can't we just look up there?
23:24.45dcordesI know that's stupid
23:26.51dzono, receive buffer works because the arm9 tells us when things have changed with an M2A interrupt. We need to tell the A9 using the A2M int, you could print out the values before head and tail in the receive header to see if they change though.
23:28.29dcordeswhat's m2a again?
23:30.57dzoI'll think about it, I really have to do some work today though, see you later. M2A is an interrupt generated by the ARM9, A2M is a write to a memory location in MSM_CSR. A stands for Application Processor, M for Modem Processor, Arm11 and Arm9 respectively.
23:55.08*** join/#htc-linux raph_ael (i=raphael@kikoolol.orbus.fr)

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