irclog2html for #htc-linux on 20060718

00:09.45*** join/#htc-linux husam (n=kvirc@217.206.111.105)
00:10.51husamdoes anyone knows if I can get the protection password for the extended rom from boot.nbf file
00:24.06*** part/#htc-linux husam (n=kvirc@217.206.111.105)
00:45.21*** part/#htc-linux davidchow (n=davidcho@cm203-168-216-8.hkcable.com.hk)
05:38.23*** join/#htc-linux zeano` (n=zero@82-33-0-231.cable.ubr13.newt.blueyonder.co.uk) [NETSPLIT VICTIM]
05:38.23*** join/#htc-linux df_______ (n=df@adsl.slarti.org.uk) [NETSPLIT VICTIM]
05:38.23*** join/#htc-linux eldu (i=damajor@tuxmania.org)
05:38.23*** join/#htc-linux eXi (i=exile@hot.einf.de) [NETSPLIT VICTIM]
05:38.23*** join/#htc-linux AntiProxy (i=admin@antiproxy.com)
05:38.23*** join/#htc-linux mickey|bbl (n=nnnLPA@gandalf.tm.informatik.uni-frankfurt.de)
05:38.23*** join/#htc-linux Funklord (n=cow@213.114.213.203) [NETSPLIT VICTIM]
05:38.24*** join/#htc-linux hlbot (n=adm@iclem.net) [NETSPLIT VICTIM]
05:38.24*** join/#htc-linux parmaster (i=par@dipole.idlepattern.com) [NETSPLIT VICTIM]
05:38.25*** join/#htc-linux _AntiProxy (n=Freenode@antiproxy.com)
05:49.41*** join/#htc-linux goxboxlive (n=goxboxli@ti500710a080-7302.bb.online.no)
06:00.31*** join/#htc-linux sylvain (n=sylvain@APuteaux-154-1-42-173.w83-199.abo.wanadoo.fr)
07:10.05*** join/#htc-linux awelux (n=awelux__@dslb-084-058-163-150.pools.arcor-ip.net)
07:53.50*** join/#htc-linux sylvain (n=sylvain@LNeuilly-152-22-87-106.w193-251.abo.wanadoo.fr)
08:22.18*** join/#htc-linux rob_w (n=bob@p213.54.194.105.tisdip.tiscali.de)
08:23.48rob_whi
08:24.00*** join/#htc-linux lamikr|laptop (n=chatzill@dyn04-247.dsl.spy.dnainternet.fi)
08:25.28rob_whey lamikr|laptop
08:25.43lamikr|laptophi rob_w
08:27.17lamikr|laptopDo you know how htc devices have found the password used for protecting the flash? Those passwords for different devices are listed in http://wiki.xda-developers.com/index.php?pagename=DiskOnChip
08:27.49rob_whmm
08:27.52rob_wno really
08:31.02rob_wlamikr|laptop, try to get in conctact with the wiki user "itsme"  ,, he did make this wiki page with the passwords
08:35.39rob_wlamikr|laptop, i found a comment from itsme  saying " I found the password to unlock the DiskOnChip device by looking at the bootloader. "
08:39.10lamikr|laptoprob_w: Thanks for the info! We have sofar found the code/method that is expecting to get the password in order to remove the write protection from the bootloader part of the flash, but we have not yet found the location where password is set.
08:39.39lamikr|laptoprob_w: Which htc device you are using?
08:39.40rob_wfor the universal ?
08:39.44rob_wstill ba
08:40.01rob_wi am moving code from .12 to .16 currently and i am stuck on touch ..
08:40.15lamikr|laptoprob_w: Are you using it daily as a Linux phone?
08:41.02rob_wno.. i was using it back in december from quite some time . .but then yet we dont have a proper charging method . so it runs out of battery without charging .
08:41.38rob_wi think with 2.6.16 we will have a good chance now to make this all and even move more htc devices into shared codes ..
08:41.44rob_wwhich htc do you have ?
08:42.22lamikr|laptopOh, really :-( I did not know that code is also needed for the charging. Is the suspend/resume working well for the ba?
08:42.24rob_wi was too busy for long months with having a new job and building a house .. now all this is settled so i am back on my ba
08:42.41rob_wlast time i tested it still worked !
08:43.02rob_wand as i ve now a broken rip in my chest am home with lots of time ;-)
08:43.05lamikr|laptoprob_w: Own house, wov!
08:43.35rob_wyeah yeah , well that is a little house but yet i can handle it finacially
08:45.28lamikr|laptopHouse building is always a big job to do. I am living with my wife and daughter in a rent in the city, but in my summer holliday I have made some repairing for the house in the country side. And plannings for the bigger repair...
08:46.53rob_wsounds great
08:48.12lamikr|laptoprob_w: No, I have the iPAQ h6300. It is propably manufactured by the htc, but it is omap1510 based. I am trying to find out how to get this device to suspend/resume properly... Power management & power button itself is manaded differently than other buttons. (I can not get events from the power button). I believe that the power button is handled by the 8 bit ATMEGA8535 microcontroller.
08:49.12rob_whmm why dont you use apm -s  that has to work .. then wake up also has to work on the powerbutton without drivers i think
08:49.36rob_wneed to go to the gas station , brb
08:50.13cr2hi lamikr
08:51.17lamikr|laptoprob_w: Well, we can get the device to sleep with a minimum set of drivers by using "echo mem /sys/power/state" but the wakeup is hard because we have not find out how to get the proper irq from power button to wakeup.
08:51.24lamikr|laptopcr2: Hi cr2
08:52.21cr2there is haret for omap, afaik. you can try to dump the first 256K of RAM.
08:52.50lamikr|laptopcr2: To find out the password for the flash?
08:53.07cr2to get to the bootloader code.
08:55.57lamikr|laptopcr2: Can you find out the exact location/code part where the password is in the Universal bootloader? I could try to find out the similar code from the the h6300 bootloader...
08:57.19rob_whey cr2
08:58.02cr2universal does not have a bootloader password, afaik. i think it should be near to the DoC code.
08:58.07cr2hi rob_w
08:58.34cr2rob_w: got the touchscreen working ?
08:59.27lamikr|laptopcr2: Are you sure? http://wiki.xda-developers.com/index.php?pagename=DiskOnChip says that universal password is ?SiRevInu
08:59.58rob_wcr2, no .. i am debugging currently .. but it feels it stucks on talking to the tsc2200 or such .. need to add more printk`s
09:00.22rob_wbut i managed it to move all code to the new input structures ..
09:01.11lamikr|laptoprob_w: The tsc2200 is the chip that actually manages the touschreen. How are you communicating for it? h6300 uses SPI.
09:02.24cr2lamikr|laptop: first, it is not always true, second, it is for the "extended" rom, i.e. /dev/mtdblk0p3 :)
09:02.42cr2i think all touchscreens use spi.
09:04.17rob_wwell for the ba , we dont need to bother the spi inside the touch code .. as we only ask the tsc2200 which handles that ( hopefully
09:04.38rob_whmm kp is still buggy and kills the kernel sometimes ..
09:07.29rob_wwe need to fix the flickering also .. it doenst look healty that way
09:07.40*** join/#htc-linux toi (n=pleemans@d5152D12D.access.telenet.be)
09:07.48rob_wwelcome toi
09:08.53lamikr|laptopcr2: Oh. Husam has also been able write kernel to 20 mb empty partition area in the flash. After that, wince complains that the partition is missing but it can still be used for booting Linux :-) But the bootloader part of the flash needs similar commands described in your wiki to be able remove the write protection.
09:11.05lamikr|laptopcr2: Considering gnu omap... Before I went to holliday I got email, that omap850 boot can be started with the haret version mentioned in http://linux.omap.com/pipermail/linux-omap-open-source/2006-July/007511.html
09:12.55lamikr|laptopAt least 2 weeks ago they had proplem for mounting the rootfs, but the boot itself started ok. Do you know has the the omap specific code from there integrated to gnu haret?
09:13.04rob_wregistering the IRQ , it should then show up under /proc/interrupts , right ?
09:16.23*** join/#htc-linux florian_kc (n=fuchs@dns.kernelconcepts.de)
09:16.58florian_kcgood morning
09:16.59cr2lamikr|laptop: yes, it is an omap version. but you need wince compiler to compile it.
09:17.18cr2rob_w: yes. if it does not fail ;)
09:17.26cr2hi florian_kc
09:20.17rob_wthat feels to be the case
09:21.02rob_wi am still using pxa_gpio_mode() and request_irq() although i am not clear what i am doing there
09:21.28rob_w<PROTECTED>
09:21.29rob_w<PROTECTED>
09:21.37rob_wis on the universal , but :
09:21.48rob_w<PROTECTED>
09:21.49rob_w<PROTECTED>
09:21.49rob_w<PROTECTED>
09:21.58rob_wis what i currentyl do on blueangel
09:24.13cr2where does this come from : HTC_TS_IRQ
09:24.39rob_wi declared it on top.. tobe more generic aftwards ..
09:25.48cr2but is it the right number ?
09:26.08lamikr|laptophi florian
09:26.20cr2it it a pxa irq ?
09:26.30goxboxliveflorian_kc : I thought about something. In the handhelds-pxa-2.6_cvs.bb file there are two IPAQ pathes that i have commented out. But actually, i dont think it will be a problem that they aplies. I have tried to compile the kernel with the patches and it compiles.
09:26.57florian_kcgoxboxlive: ok
09:28.57goxboxliveSo actually, in the handhelds-pxa-2.6_cvs.bb we only need to add the htcinuversal to the COMPATIBLE_MACHINE, and we make a subfolder named htcuniversal in the handhelds-pxa-2.6 folder with a defconfig in it.
09:29.03rob_wi think i am lost in this gpio hell
09:29.39cr2goxboxlive: do you use stylus-detect ?
09:29.46lamikr|laptopcr2: Ok, so that code should be integrated to gnuharet... btw, Is the ts now working in the universal?
09:30.16cr2rob_w: there are useful macros/functions for the irqs.
09:31.04goxboxlivecr2 yes i use detect stylus.
09:31.07cr2lamikr|laptop: yes, it works.
09:31.14florian_kcgoxboxlive: okay, sounds good to me
09:31.49lamikr|laptopcr2: Nice, then you already can use the most of the apps I quess :-)
09:33.03cr2goxboxlive: i'm using a 128MB sd card and can always use some space for the maps :) we don't need bloat in the DoC too.
09:35.53goxboxlivecr2: The i think you should buy yourself  a bigger one. I dont know the prices in Germany, but here in Norway a 1GB (150X) cost €30 :-)
09:36.15goxboxlivewhat's the price  in Germany
09:40.25rob_wpassing arg 1 of `dev_set_drvdata' from incompatible pointer type
09:42.05cr2goxboxlive: didn't check recently. i don't want to use an SD card in the future (power consumption), and want to strip opie from the kiddie stuff anyway. and DoC is 128MB.
09:42.45cr2rob_w: check the types.
09:42.55florian_kcgoxboxlive: you should be able to get them for about 15 EUR
09:43.05goxboxlivei c
09:46.36cr2that's my usage pattern: i keep phone numbers on the sim card, call seldom, mainly use gps and need space for the maps.
09:49.06goxboxlivei c. But much is detect-stylus increasing the image?
09:50.06goxboxlivecr2: I can try to build one for you, but you have to hardcode it yourself.
09:53.24cr22MB, and what is really annoying, that it is completely unused under any circumstances.
09:56.00goxboxlivei am trying to build one now.
10:02.04cr2goxboxlive: have you tried to use universal as usb storage ? instead of usbnet.
10:03.00goxboxlivecr2 no i havnt yet. I dont have any usb storage devices. The only thing i got is a usb cardreader.
10:04.32cr2no. the universal as "usb stick" connected to the host computer.
10:05.43cr2for usb cardreader you need a working "external" usb host on universal, where it is not clear if it is possible.
10:07.58cr2compile and load the "g_file_storage" instead of "g_ether".
10:12.27goxboxliveOk, so g_file_stirage shall be included as a module. I have removed it, thought it where some hx4700 pcmcia stuff :-/
10:14.24cr2you can also include g_serial, for those who prefer serial-over-usb. is there activesyncd in synce ? :)
10:15.42goxboxlivecr2 i tried to remove the detect-stylus form the htcuniversal.conf file, i cleaned it and other packeages, but it still get included in the opie-image. I guess i have to rebuild alot to to do it, and have bad experience with that.
10:16.09cr2ok. don't waste your time.
10:17.08goxboxlivecr2 : I have the g__file_storage included in the images. I'll boot Opie now and try :-)
10:17.29cr2tslib needs some corrections too, because it is not really a gpe package.
10:17.32cr2ok.
10:17.40rob_whmm i dont even get my first printk inside ts_probe() =?
10:20.09goxboxliveNo it wasent included, have to enable it in the defconfig
10:20.55rob_wwho calls ts_probe() ?
10:22.42cr2rob_w: is it declared as a device .probe function ?
10:24.53rob_wso it should be called after init from the system , right ?
10:26.10rob_woh i have waring on ts_probe() ,, didnt had that before
10:27.01cr2it will be called on device_register.
10:27.28cr2goxboxlive: we may run "wasic3gpio" against this program: http://www.vijay555.com/?Releases:VJBigPhone
10:28.20goxboxlivei c
10:30.15cr2looks like the list of all wince toolbar icons. http://www.vijay555.com/vj/releases/vjtodaybutton/todaybutton.jpg
10:30.57cr2otherwise we can do all what these tools can do :)
10:31.39goxboxlivegood. But i think we should get the power/resume/charging part finished before the phone. Do u agree?
10:32.19*** join/#htc-linux sylvain (n=sylvain@LNeuilly-152-22-87-106.w193-251.abo.wanadoo.fr)
10:32.21cr2it is different on ba :) because it is more difficult.
10:33.05goxboxlivethe g_file_storage failed when i loaded it
10:33.15cr2i think i will add the basic phone stuff in the CVS today.
10:33.23cr2why ?
10:33.26florian_kccr2: weeee
10:33.38goxboxliveit says: g_file_storage gadget: no file given for LUN0
10:34.16cr2i need a full decoded ds2672 eeprom dump before we will move further with charging.
10:34.25cr2do you have scsi support included ?
10:34.44goxboxliveno ide, hold on
10:35.07cr2ide ?
10:35.36cr2florian_kc: i have not said it will work as expected ;)
10:35.43rob_wok i am now moving all ba stuff into the new naming scheme htcblueangel
10:35.45goxboxliveI have SCSI support, but nothinmg in the sub
10:35.48goxboxliveof scsi
10:35.57florian_kccr2: :-)
10:37.25cr2goxboxlive: compare the .config with hx4700
10:37.31goxboxliveyes
10:42.03Kevin2Hi
10:42.31Kevin2I got Irda working on the apache the other night.
10:42.44cr2hi Kevin2
10:42.59cr2sir or fir ?
10:43.09Kevin2It's definitely SIR.
10:43.37Kevin2It's using code very similar to axim5.  You need to set some magical bits in the pxa before transmitting and receiving.
10:43.39cr2ok. it seems you don't have fir.
10:44.08Kevin2Yeah - I guess I can't change TV channels with my phone - other than that, no big loss.  :-)
10:44.27cr2do you use the pxaficp driver ?
10:46.05Kevin2No.  There appears to be a special infrared mode on the uart - it turns zeros and ones into short pulses.  See STISR register (0x40700020).
10:47.19cr2yes. it is supported by pxaficp kernel26/drivers/net/irda/pxaficp_ir.c
10:48.10Kevin2I also did some further tracing during charge events.  As near as I can tell, the apache stops charging based on the voltage reported by the ad7877 chip.  I didn't find anything like a one wire bus or a dsXXX chip.
10:48.29cr2ok.
10:48.56cr2a cheaper model then.
10:49.05cr2<PROTECTED>
10:49.12cr2do you have ir_off ?
10:50.02Kevin2Hrrmm.  I've not looked at pxaficp_ir.c -- I just copied what was in axim/axim5.c -- let me upload the patch.
10:51.56cr2universal does not stop based on the reported battery voltage. awelux told about constant voltage and constant current modes for li-ion batteries, and what he has said is consistent with my powermon data.
10:53.26cr2you can also record the whole charging cycle and plot the reported voltage and current against time.
10:54.57cr2i think a wrong charging strategy (or a bug in this code) is the worst thing we can actually do to the phone.
10:56.04Kevin2I pushed my latest patch to kernel/000_hhcvs-20060718.patch
10:56.36cr2goxboxlive has told me that with my current charging code the battery on universal becomes extremely hot.
10:56.37cr2ok.
10:57.10goxboxliveits getting extremely hot without the cable plugged in to.
10:58.07Kevin2cr2: I agree about charging.  I'm very concerned about how we code that up.  Unfortunately, I'm not seeing any special busses or anything.  Once I plug in, I do see wm5 scan aux1/2/3 and batt1/2 sensors on ad7877.  I'm not entirely sure what all those sensors do.  I've been pretty careful to check all the known locations a bus could be (pxa gpio pins, irqs, egpio memory range, etc.) and I haven't seen anything.
11:00.07cr2ok.
11:01.17cr2Kevin2: how do you detect PWR vs. HIGHPWR ?
11:01.39Kevin2BTW, I also traced all the reads/writes to the funky pseudo-i2c device attached to gpio pins 56/57.  It looks like a pretty straight-forward device.  I hope to have a driver by next weekend.
11:01.54goxboxlivethe g_file_storage is still refuseing to load. I have made the ide-scsi and usb part as the hx4700 but still it complaines about LUN0
11:02.20Kevin2The chip has gpio pins for the 11 front keypad keys.  It also controls the two front LEDs.  It also seems to power up / down the backlight and the two front keypad LEDs.
11:02.57Kevin2cr2: If I plug the phone into USB or AC outlet, I see different results.  There is a bit in the egpio register that can sense which is which.
11:03.12cr2ok.
11:03.20Kevin2The apache egpio has input pins as well as output pins.
11:04.13cr2Kevin2: there were such microcontrollers on older ipaqs and jornadas.
11:07.42cr2patch applied and put into hh.org CVS.
11:09.27rob_wcr2, do you have any hint about the flicker screen ?
11:11.34Kevin2cr2: Thanks.
11:14.04cr2rob_w: did it flicker with .12 ?
11:14.37cr2we need to check the register values we set in the driver.
11:15.43rob_wno
11:16.00rob_wand why the hell is ts_probe not called anymore ?
11:16.44*** join/#htc-linux g3gg0 (n=g3gg0@ppp-88-217-0-96.dynamic.mnet-online.de)
11:54.47goxboxlivecr2 : I saw you had updated the sound driver. I cant get sound working, have you got it working yet?
12:00.37goxboxliveIt still refuse to run alsamixer. I get the message: function load snd_mixer_load failed: Operation not permitted
12:01.58goxboxliveahh i remember HX4700 had that problem, they added something to groups or something. Hmm let me chack that out
12:04.14rob_whmm pastebin.com is not working
12:06.49goxboxlivecr2 it is still buggy: root@htcuniversal:~# modprobe -r snd_htcuniversal_audio
12:06.49goxboxliveSegmentation fault
12:07.02goxboxliverob_w pastebin.ca is much faster
12:08.51rob_wok cool
12:09.11cr2goxboxlive: segfault with modprobe means an oops. type dmesg.
12:09.44goxboxlivehold on , i took a reboot . I have added user root to audio group now. Maybe that will help
12:09.45cr2i don't have the sound working, but the crash is not in the sound part but in i2c.
12:09.55goxboxliveok
12:09.58rob_whttp://pastebin.ca/91248  ok can someone see why obviously ts_probe() is not called ?
12:11.55goxboxliveroot@htcuniversal:~# alsamixer
12:11.55goxboxlivealsamixer: function snd_mixer_load failed: Operation not permitted
12:12.09cr2rob_w: do you see "HTC Bleuangel Touch-Screen Driver"
12:13.22rob_wyyeah
12:13.33rob_wfixed that already ?
12:13.36rob_w!
12:14.00rob_wright i also only see this line when modprobing the module
12:14.19goxboxlivecr2: here is the dmesg when trying to unload sound driver : http://pastebin.ca/91257
12:14.41cr2rob_w: what is that nssp_bus_type ?
12:15.13goxboxliveit seems like it is some modprobe / UDEV shit
12:15.29rob_whmm that is the bustype the tsc2200 declares ..
12:16.00*** join/#htc-linux BabelOued (n=moi@faim1.itesoft.com)
12:16.01cr2goxboxlive: increase the buffer size. the real crash point is not visible.
12:16.37goxboxlivehow?
12:16.52cr2rob_w: this is something weird, we need to modify that to look like on the universal/hx4700.
12:17.17cr2goxboxlive: i knew once, but now forgot. kernel config ?
12:17.27goxboxliveah
12:17.49BabelOuedhi
12:18.20cr2crash in the kernel has nothing to do with the userspace tools like alsa*. it should not happen at all.
12:18.26cr2hi BabelOued.
12:18.51BabelOuedi m at work, but i read a message about flicker screen
12:18.58Kevin2Hrmm.  There is a possibility that apache can do FIR.  I'll have to look at it further.
12:20.10BabelOuedyesturday, i see a difference  between driver blueangel_lcd, a line is missing for register init line is comment
12:22.01rob_w.crtc_ps1_active =   0x00000000, missing is the only difference on lcd.c .12 to lcd.c .16
12:22.22BabelOuedrob_w yes this one
12:23.00*** join/#htc-linux skodde (n=skodde@unaffiliated/skodde)
12:23.06rob_wi will try having it in the 0x05 part
12:23.34BabelOuedok
12:23.43BabelOuedgood afternoon
12:24.12*** part/#htc-linux BabelOued (n=moi@faim1.itesoft.com)
12:27.22rob_wok still flickering even with the missing value
12:47.01*** join/#htc-linux BoSJo (n=bosjo@130.80-203-23.nextgentel.com)
12:56.39goxboxlivecr2 i know it also happens without alsa installed
13:13.51*** join/#htc-linux pH5 (n=ph5@p5486738F.dip.t-dialin.net)
13:16.12rob_w<PROTECTED>
13:16.17rob_woh
13:18.55mickey|bblheh. so much for your password :D
13:19.08rob_whehe
13:19.19rob_wthat was the old one ;-)
13:21.29mickeyl:D
13:24.10goxboxlive:-)
13:29.49rob_whmm i wont get this ts ,, i guess
15:09.01Tomoehy guys
15:09.13florian_kchi Tomoe
17:10.19*** join/#htc-linux BabelOued (n=Fabrice@lun34-2-82-238-28-28.fbx.proxad.net)
17:30.41*** join/#htc-linux BabelOued (n=Fabrice@lun34-2-82-238-28-28.fbx.proxad.net)
17:36.36*** join/#htc-linux BabelOued_ (n=Fabrice@lun34-2-82-238-28-28.fbx.proxad.net)
18:11.12florian_kcbbl
18:45.39goxboxlivecr2 : Now i got this message: FATAL: Error inserting g_file_storage (/lib/modules/2.6.16-hh5/kernel/drivers/usb/gadget/g_file_storage.ko): Invalid argumen
18:45.53goxboxliveIt's not complaining about LUN anymore.
18:53.06goxboxliveis this OK? : HTC Universal i2Sound Module
18:53.07goxboxlivesnd_htcuniversal_audio_set_codec_reset: 1
18:53.07goxboxlivesnd_htcuniversal_audio_set_codec_reset: 0
18:53.07goxboxlivePXA2xx i2Sound: HTC Universal Audio activated
19:08.24goxboxliveSeems like some of the buttons are working in OPIE. The green telephone button on the screen hinge is opening the calender. And the red one and the light button is opening the contacts.
19:16.27goxboxliveI am also getting this with madplay:
19:16.29goxboxliveroot@htcuniversal:~# madplay /media/mmcblk0p1/Cavatina\ Sample.mp3
19:16.29goxboxliveMPEG Audio Decoder 0.15.2 (beta) - Copyright (C) 2000-2004 Robert Leslie et al.
19:16.29goxboxliveoutput: write: Input/output error
19:41.07*** join/#htc-linux husam (n=kvirc@217.206.111.105)
19:42.39husamcr2: hi, do you where I should be looking to get password to unlock write protection
19:44.40cr2hi husam
19:44.52husamhi
19:45.06cr2in the bootloader, near the DoC code.
19:45.39cr2goxboxlive: does 'i2cdetect' work ?
19:46.20goxboxlivei dont know.
19:46.32husamOK ... I found 2 8 bytes strings ... but theu didn't work  ...
19:46.42goxboxliveIs it in the image? Or is that the one we used from the debian package?
19:58.44cr2i picked them from the lm_sensors ipk
20:02.38*** join/#htc-linux florian (n=fuchs@p5083C4D4.dip0.t-ipconnect.de)
20:06.22goxboxliveyes i can build them
20:11.20florianre
20:17.55*** join/#htc-linux rob_w (n=bob@p213.54.194.139.tisdip.tiscali.de)
20:18.37goxboxlivecr2 i have installed the i2cdetect now. What do you want me to test?
20:19.01goxboxliveIt seems like i have to compile i2c-dev as a module. I havent got it in my kernel
20:19.10cr2ok.
20:19.47goxboxlivewhat do you want me to test?
20:20.10goxboxlivecr2: What does this mean?
20:20.13goxboxliveError: No I2C busses found!
20:20.13goxboxliveBe sure you have done 'modprobe i2c-dev'
20:20.13goxboxliveand also modprobed your i2c bus drivers
20:21.31*** part/#htc-linux husam (n=kvirc@217.206.111.105)
20:21.42goxboxliveIt seem like i have i2c-dev in my zImage
20:22.42rob_wre
20:30.16cr2goxboxlive: that can be a problem.
20:30.38cr2try to compile it as a module.
20:31.23goxboxliveok
20:31.42rob_wcr2 should i prinkt driver_register() ?
20:32.24goxboxliveshould i aply this one? It was unselected:; Intel PXA2XX I2C adapter (EXPERIMENTAL) (I2C_PXA)
20:32.41cr2of course.
20:33.13cr2but it was still unused here for some reason.
20:33.54cr2rob_w: i'm a bit confused by all these platform_driver/driver differences. try to look at a working driver, how they do it.
20:34.46rob_wi do have htcuniversal_ts2 open all the time .. isnt that  "a working one "
20:37.50rob_wit must be any stupid typo i made somewhere ,, i remmbereing seeing that printk from ts_probe
20:42.29goxboxliveroot@htcuniversal:/lib/modules/2.6.16-hh5/kernel/drivers/i2c/busses# i2cdetect
20:42.30goxboxliveError: No i2c-bus specified!
20:42.30goxboxliveSyntax: i2cdetect [-y] [-a] [-q|-r] I2CBUS [FIRST LAST]
20:42.30goxboxlive<PROTECTED>
20:42.30goxboxlive<PROTECTED>
20:42.32goxboxlive<PROTECTED>
20:42.34goxboxlive<PROTECTED>
20:42.36goxboxlive<PROTECTED>
20:42.38goxboxlive<PROTECTED>
20:42.40goxboxlive<PROTECTED>
20:42.42goxboxlive<PROTECTED>
20:42.44goxboxlive<PROTECTED>
20:42.46goxboxlive<PROTECTED>
20:43.13goxboxlivecr2 now what?
20:43.51goxboxlivecr2 http://pastebin.ca/91708
20:44.38goxboxliveand my modules http://pastebin.ca/91709
20:47.05cr2i2cdetect 0
20:47.36cr2i think i2c_stub is not needed
20:48.08cr2i2cdetect -a 0
20:48.57goxboxliveok hold on
20:49.23cr2rob_w: can you create a diff and pastebin it ?
20:49.56*** join/#htc-linux awelux (n=awelux__@dslb-084-058-163-150.pools.arcor-ip.net)
20:51.17goxboxlivei2cdetect 0 made my uni freeze. Rebooting
20:53.23rob_wok
20:54.53rob_whttp://pastebin.ca/91719
20:55.41rob_walso i was just on editing ts_driver ()  may they dont work .. before i didnt had #
20:55.41rob_w<PROTECTED>
20:55.41rob_w#
20:55.41rob_w+    .bus_id        = "ts_tsc2200",
21:00.13rob_wah now i get it .. it device_register()`s the module depending on the bus , right ?
21:01.30*** join/#htc-linux skodde (n=skodde@unaffiliated/skodde)
21:02.39rob_wso nssp_bus or not is the question
21:06.15goxboxlive<PROTECTED>
21:06.15goxboxliveWARNING! This program can confuse your I2C bus, cause data loss and worse!
21:06.59cr2goxboxlive: it was working in .12
21:07.25cr2rob_w: yes. nssp_bus if your parent, and it should init your driver. i think if you have platform_driver it does not have a parent.
21:07.43goxboxliveontinue? [Y/n]
21:07.43goxboxlive<PROTECTED>
21:07.43goxboxlive00: XX 01 XX XX XX XX XX XX XX XX XX XX XX XX XX XX
21:08.18cr2goxboxlive: what is not XX ?
21:08.35goxboxlive??
21:08.36cr201 ? strange.
21:08.37rob_wthe old hima driver calles his setup() from the module init()   it does not wait for a probe() to be called
21:09.16goxboxliveotherwise just XX
21:09.32rob_walso the universal makes parent structure to input_dev called touchscreen_data , where it installs timers and such
21:09.35cr2rob_w: old drivers are dirty hacks. 2.6 is more more clean, but unfortunately not very well documented fot non-x86 targets.
21:10.00goxboxliveshould i have sound modules loaded?
21:10.19cr2goxboxlive: strange. you must see 12, because it is the sound chip.
21:10.22cr2try it.
21:10.39rob_wso the universal makes a  struct touchscreen_data *ts; works out all items on ts-> and then  dev_set_drvdata(dev, ts);
21:10.41goxboxliveok, then i abort
21:11.03goxboxlive<PROTECTED>
21:11.03goxboxlive00: XX 01 XX XX XX XX XX XX XX XX XX XX XX XX XX XX
21:11.03goxboxlive10: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX
21:11.03goxboxlive20: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX
21:11.03goxboxlive30: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX
21:12.22cr2goxboxlive: try to do the same on .12 (don't load sound)
21:13.18goxboxlivehmm allready done that
21:13.51goxboxlivethis is with sound drivers loaded :
21:13.53goxboxlive<PROTECTED>
21:13.53goxboxlive00: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX
21:14.12cr2if there is no 12, there will be no sound.
21:14.48cr2i mean, don't load sound modules on .12 and run i2cdetect.
21:18.32goxboxlivei dont have .12
21:18.43goxboxlivei am using .16
21:19.08cr2hmm.
21:19.48goxboxlivedo you mean i should try .12 kernel?
21:20.03cr2first i2c, then sound.
21:20.20cr2try to probe addresses 0x12-0x12 in i2cdetect.
21:21.11goxboxlivei have rebooted, since it gave me nothing
21:22.03goxboxliveshould i try the .12 kernel or shall i boot .16 without loading sound?
21:31.55cr2ok, try .12
21:31.59cr2to be sure.
21:41.34rob_wok so before at hima_ts3 it was declared as a struct device .. on uni it is declared as struct device_driver
21:42.15rob_wok so before at hima_ts3 it was declared as a struct device .. on uni it is declared as struct device_driver
21:42.19rob_wsoory
21:44.03*** join/#htc-linux lamikr|laptop (n=chatzill@dyn04-247.dsl.spy.dnainternet.fi)
21:55.20rob_wok i am back ontrack
21:55.25rob_wi now do get something
21:56.07goxboxlivecr2 in the .12 kernel there arent any i2c in the defcomfig
21:56.47goxboxlivei have no modules
21:56.53cr2goxboxlive: add them.
21:57.05goxboxlive:-)
21:57.12goxboxlivereboot once again
21:59.21rob_wi am back to Please convert to input_allocate_device()   although i did use that function
22:00.38cr2you probably have a static structure declaration, and use its address.
22:01.16cr2goxboxlive: if there is no i2c in .12 how does sound work ??
22:02.02goxboxlive:-) my fault
22:02.23goxboxlivei'm running 12cdetect now
22:02.44goxboxliveI will probe file /dev/i2c-0.
22:02.45goxboxliveI will probe address range 0x00-0x7f.
22:02.45goxboxliveContinue? [Y/n]
22:02.45goxboxlive<PROTECTED>
22:02.45goxboxlive00: XX 01 XX XX XX XX XX XX XX XX XX XX XX XX XX XX
22:02.45goxboxlive<PROTECTED>
22:02.51goxboxlivethe same as .16
22:03.43cr2then i don't understand it anymore. will go to bed :)
22:05.03goxboxlive10: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX
22:05.03goxboxlive20: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX
22:05.07goxboxlive:-)
22:05.31goxboxliveghow do i porbe  0x12-0x12
22:06.21cr2see the help for i2cdetect (run without the parameters)
22:07.59cr2i2cdetect -a -r 0 0x12 0x12
22:08.58rob_wthe question is in device  or device_driver ...
22:09.07rob_wi need sleep
22:09.26goxboxliveroot@htcuniversal:/lib/modules/2.6.12-hh2-xda0-un0/kernel/drivers/i2c/busses# i2cdetect -a -r 0 0x12 0x12
22:09.27goxboxliveWARNING! This program can confuse your I2C bus, cause data loss and worse!
22:09.27goxboxliveI will probe file /dev/i2c-0 using read byte commands.
22:09.27goxboxliveI will probe address range 0x12-0x12.
22:09.27goxboxliveContinue? [Y/n]
22:09.28goxboxlive<PROTECTED>
22:09.30goxboxlive00:
22:09.32goxboxlive10:       XX
22:09.34goxboxlive20:
22:09.35goxboxlive30:
22:09.38goxboxlive40:
22:09.40goxboxlive50:
22:09.42goxboxlive60:
22:09.44goxboxlive70:
22:10.33cr2strange.
22:11.01cr2goxboxlive: i'm tired too. good night.
22:11.02goxboxliveok, u know bether than me
22:11.09goxboxlivegood night
22:42.27*** part/#htc-linux BoSJo (n=bosjo@130.80-203-23.nextgentel.com)
23:32.57*** join/#htc-linux apt_ (i=ibot@pdpc/supporter/active/TimRiker/bot/apt)
23:32.57*** topic/#htc-linux is HTC LINUX ! THIS IS THE FORWARD CHANNEL from #htc-blueangel ; check also -> http://www.handhelds.org/moin/moin.cgi/BlueAngel | http://wiki.xda-developers.com/index.php?pagename=BlueangelResearch | http://gnulinux.biz/files/blueangel/sd/linux/ LOGS: at http://ibot.rikers.org/%23htc-linux/
23:45.12*** join/#htc-linux apt (i=ibot@pdpc/supporter/active/TimRiker/bot/apt)
23:45.12*** topic/#htc-linux is HTC LINUX ! THIS IS THE FORWARD CHANNEL from #htc-blueangel ; check also -> http://www.handhelds.org/moin/moin.cgi/BlueAngel | http://wiki.xda-developers.com/index.php?pagename=BlueangelResearch | http://gnulinux.biz/files/blueangel/sd/linux/ LOGS: at http://ibot.rikers.org/%23htc-linux/

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