IRC Logs

08. 03 2010

2010 3
Mo Tu We Th Fr Sa So
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        
[00:00:35] *** zmj|zipit has joined #zipit
[00:39:41] *** Dessimat0r has quit IRC
[01:54:07] *** oirc has joined #zipit
[02:00:48] *** oirc has left #zipit
[02:00:48] *** oirc has joined #zipit
[02:02:54] *** des has quit IRC
[02:03:18] *** des has joined #zipit
[02:12:00] * oirc is away: autoaway [l(on) p(on)]
[04:55:24] *** nogitsune has joined #zipit
[05:01:14] *** des has quit IRC
[05:01:36] *** des has joined #zipit
[06:25:41] *** Bh420 has quit IRC
[06:26:08] *** marex has joined #zipit
[06:29:59] *** Bh420 has joined #zipit
[06:30:00] *** Bh420 has joined #zipit
[06:59:07] *** marex has quit IRC
[07:29:59] *** des has quit IRC
[07:30:22] *** des has joined #zipit
[07:59:19] *** des has quit IRC
[07:59:41] *** des has joined #zipit
[08:07:46] *** Adnyxo has joined #zipit
[08:27:59] *** des has quit IRC
[08:28:26] *** des has joined #zipit
[08:53:27] *** GPSFan has joined #zipit
[08:53:41] *** Mcavity has joined #zipit
[08:53:56] <Mcavity> morning
[09:05:08] <rkdavis> morning
[09:15:46] <aliosa27> morn
[09:17:47] <rkdavis> aliosa27: i presume you know alot about i2c?
[09:17:59] <aliosa27> yessir
[09:18:17] <rkdavis> i need to do some i2c stuff on the zipit BUT i can't use the kernel modules
[09:18:34] <rkdavis> any ideas on how to do it /naked/ without /dev node helpers?
[09:18:57] <rkdavis> i found a snippit for the zipit but no headers for function declarations to show me the way
[09:20:37] <aliosa27> well you wont have a node in /dev till you write a driver for whatever your trying to interface via i2c..
[09:21:16] <aliosa27> i2c-dev.h is the header you want to look at
[09:21:39] <rkdavis> well i used the modules i2c-core, i2c-pxa and i2c-algo-bit and made the node by hand but nada
[09:22:05] <rkdavis> so i'm going to try it all via userspace if possible with no node
[09:22:08] <aliosa27> does core detect whatever it is you have connected
[09:22:23] <rkdavis> i'm trying to get to the battery chip in the zipit
[09:22:36] <aliosa27> ooo
[09:22:40] <rkdavis> i2c-core etc don't seem to do anything but i get some stuff in /sys
[09:23:15] <rkdavis> thanks to GPSFan i can read some stat stuff but now i need i2c to get the voltage and as i'm in stock i'm limited
[09:23:49] <aliosa27> i have actually never done i2c work in linux without using the kernels wrappers...other kernel'less things I have...but yeh..
[09:24:41] <aliosa27> do you know the adderss of the chip
[09:24:43] <rkdavis> i remembered yesterday that in stock the sound chip needed init'ing via i2c so looked at the snippit they posted on the wiki but al the important stuff is missing
[09:25:04] <rkdavis> yup according to crazymonkeypants and gpsfan it's 0x55 and the register is 0x02
[09:25:41] <aliosa27> i2c-dev is the only way to talk to i2c stuff via userspace
[09:26:22] <aliosa27> as im sure udev is not running in the stock image
[09:26:30] <aliosa27> you might have to mknod /dev/i2c-0
[09:26:35] <aliosa27> .1 , etc
[09:26:44] <rkdavis> http://linux.zipitwireless.com/projects/z2kernel/wiki/WikiStart#AudioRegisterSetup this was the snippit i remembered -- it's on address 0x36 and it's writing but i would imaging the process would be the same, but what Senddata does i dunno and the only references i can find to pI2CBus i can find in google are about X drivers
[09:27:11] <rkdavis> yup i made /dev/i2c-0 c 89 0 -- it complains when i try to read/write to it
[09:27:44] <rkdavis> /dev/i2c-0: No such device or address
[09:28:04] <rkdavis> Module Size Used by Not tainted
[09:28:04] <rkdavis> i2c_pxa 7168 0
[09:28:05] <rkdavis> i2c_core 17584 1 i2c_pxa
[09:28:19] *** des has quit IRC
[09:28:23] <aliosa27> and insmodding i2c_core does not output anything?
[09:28:47] <rkdavis> i am not having much luck with the kernel modules so i am trying to do it without, there must be a way as the stock app can read the voltage and it has no drivers in the kernel
[09:28:59] <rkdavis> no errors or anything even when using -v
[09:29:44] <rkdavis> it's actually so annoying as i've seen tons of examples for atmega's and other processors but nothing linux and pxa27x based
[09:29:53] <aliosa27> anything in proc/apm in the stock
[09:30:12] <rkdavis> no /proc/apm in stock
[09:30:21] *** des has joined #zipit
[09:31:04] <aliosa27> i have an attiny hooked up via i2c in 2.6.29 on my zipit..
[09:31:10] <aliosa27> never tried the stock stuffs
[09:31:23] <rkdavis> got some stuff in /sys/bus/i2c and /sys/class/i2c-adapter
[09:31:50] <aliosa27> are you serial'd in
[09:32:35] <rkdavis> nope no serial mod on this zipit (or any actually)
[09:33:50] <aliosa27> anything in sys/class/i2c-dev/
[09:34:16] <rkdavis> don't have that
[09:34:32] <rkdavis> ~ # cd /sys/class
[09:34:32] <rkdavis> /sys/class # ls -al
[09:34:32] <rkdavis> total 0
[09:34:32] <rkdavis> drwxr-xr-x 15 root root 0 Jan 1 00:16 .
[09:34:32] <rkdavis> drwxr-xr-x 11 root root 0 Jan 1 00:00 ..
[09:34:33] <rkdavis> drwxr-xr-x 2 root root 0 Jan 1 00:00 firmware
[09:34:33] <rkdavis> drwxr-xr-x 4 root root 0 Jan 1 00:00 graphics
[09:34:34] <rkdavis> drwxr-xr-x 4 root root 0 Jan 1 00:16 i2c-adapter
[09:34:34] <rkdavis> drwxr-xr-x 4 root root 0 Jan 1 00:00 input
[09:34:35] <rkdavis> drwxr-xr-x 10 root root 0 Jan 1 00:00 mem
[09:34:35] <rkdavis> drwxr-xr-x 2 root root 0 Jan 1 00:00 misc
[09:34:36] <rkdavis> drwxr-xr-x 3 root root 0 Jan 1 00:00 mmc_host
[09:34:36] <rkdavis> drwxr-xr-x 8 root root 0 Jan 1 00:00 mtd
[09:34:37] <rkdavis> drwxr-xr-x 4 root root 0 Jan 1 00:00 net
[09:35:01] <rkdavis> ~ # cd /sys/class
[09:35:01] <rkdavis> /sys/class # ls -al
[09:35:01] <rkdavis> total 0
[09:35:01] <rkdavis> drwxr-xr-x 15 root root 0 Jan 1 00:16 .
[09:35:01] <rkdavis> drwxr-xr-x 11 root root 0 Jan 1 00:00 ..
[09:35:02] <rkdavis> drwxr-xr-x 2 root root 0 Jan 1 00:00 firmware
[09:35:02] <rkdavis> drwxr-xr-x 4 root root 0 Jan 1 00:00 graphics
[09:35:03] <rkdavis> drwxr-xr-x 4 root root 0 Jan 1 00:16 i2c-adapter
[09:35:03] <rkdavis> drwxr-xr-x 4 root root 0 Jan 1 00:00 input
[09:36:51] <aliosa27> list i2c-adapter
[09:38:42] <rkdavis> drwxr-xr-x 15 root root 0 Jan 1 00:16 ..
[09:38:42] <rkdavis> drwxr-xr-x 2 root root 0 Jan 1 00:16 i2c-0
[09:38:42] <rkdavis> drwxr-xr-x 2 root root 0 Jan 1 00:16 i2c-1
[09:38:52] <rkdavis> then some symlinks in there
[09:38:56] <aliosa27> so 2 i2c devices
[09:39:06] <rkdavis> lrwxrwxrwx 1 root root 0 Jan 1 17:13 device -> ../../../devices/platform/pxa2xx-i2c.1/i2c-1
[09:39:29] <rkdavis> and i2c-0 as well
[09:39:50] <rkdavis> basically device,name,subsystem and uevent
[09:43:21] <aliosa27> i will have to load the stock when i get home
[09:44:28] <rkdavis> i may have busted modules -- these are the ones that ray built, maybe i should just build my own and see if i get anything better although it is annoying because i KNOW it's possible without using the module i just have no idea how and can't find any examples
[09:46:08] <aliosa27> id say you would ither have to beusing the userspace i2c driver or ther eis a phantom driver that is missing from the source tree that gives power info
[10:28:39] *** des has quit IRC
[10:29:02] *** des has joined #zipit
[12:23:47] <rkdavis> aliosa27: gpsfan found the problem -- i was missing the i2c-dev.ko -- all is hunky dory now :)
[12:24:03] <aliosa27> sweet
[12:24:41] <rkdavis> ok it's not very accurate but it gives a sence of the level and when combined with the battery stat gpio's it better than what we had
[12:25:26] <rkdavis> now to combine it all back into m powerdaemon :) ugh i really should comment some of these lines
[12:25:28] <aliosa27> shoot me you code..i want to factor in cpu load/audio
[12:25:43] <rkdavis> ok
[12:26:08] <rkdavis> give me you email address and after the kid and i have watched qi xl i'll send it on it's way
[12:26:25] <rkdavis> it's really dirty code though :)
[12:26:33] <aliosa27> thats how we like it
[12:31:38] *** Reddog^ has quit IRC
[12:37:00] *** Reddog^ has joined #zipit
[12:37:37] *** nogitsune has quit IRC
[12:59:18] *** des has quit IRC
[12:59:43] *** des has joined #zipit
[13:06:15] *** marex has joined #zipit
[13:26:54] <rkdavis> aliosa27: ok sent an email with the links to the crappy applets in it
[13:45:22] <rkdavis> ugh on the phone to bangalore
[13:45:38] <rkdavis> amazon sent a piece of paper and not the cd
[13:46:04] <rkdavis> not paying $10 for a blank piece of paper :)
[13:48:03] <aliosa27> lol
[13:49:33] <rkdavis> and the book that was due on saturday is stil not here although the usps has had it in brooklyn for 4 days already and the kid needs it for an open book test next week
[13:57:59] *** Mcavity has quit IRC
[14:10:36] *** FiftyOneFifty has joined #zipit
[17:01:09] *** rkdavis has quit IRC
[17:02:24] *** rkdavis has joined #zipit
[17:10:03] *** Malwyn has quit IRC
[17:18:17] *** dTal has joined #zipit
[17:38:29] *** FiftyOneFifty has quit IRC
[18:00:00] *** rkdavis has left #zipit
[18:00:45] *** rkdavis has joined #zipit
[18:12:39] <dTal> Hey guys.
[18:13:59] *** wicknix3 has joined #zipit
[18:16:45] *** oirc has quit IRC
[18:17:54] *** wicknix2 has quit IRC
[18:18:28] *** rkdavis has left #zipit
[18:33:46] *** rkdavis has joined #zipit
[19:01:13] *** dTal has quit IRC
[19:02:59] *** dTal has joined #zipit
[19:22:26] <Adnyxo> how can i setup jags youtube playing script in aliosa's debian image?
[19:22:53] <Adnyxo> i know i have to use mozzwalds website
[19:35:59] <Adnyxo> so im doing a reinstall
[19:36:07] <Adnyxo> but i dont have the wifi firmware files
[19:36:15] <Adnyxo> could someone send them to me?
[19:36:27] <Adnyxo> (pm)
[19:39:44] *** Zachzor has joined #zipit
[19:40:34] *** Zachzor has left #zipit
[19:41:03] *** tehguy has joined #zipit
[19:41:26] <tehguy> Can someone tell me an easy way to download the firmware off the website?
[19:42:30] <Adnyxo> what firmware
[19:42:37] <tehguy> Oh sorry
[19:42:53] <tehguy> Root Nexus zipit firmware
[19:42:59] <tehguy> http://zipit.rootnexus.org/
[19:45:53] <tehguy> any help?
[19:48:21] <Adnyxo> http://zipit.rootnexus.org/files/Z2-USERLAND/RC1-PRE2/
[19:48:26] <Adnyxo> just grab the tarball
[19:52:14] <tehguy> How do I do that
[19:52:34] <tehguy> ah
[19:52:35] <tehguy> :P
[19:52:36] <tehguy> Never mind
[19:52:43] <Adnyxo> click :)
[19:52:59] *** tehguy has quit IRC
[19:57:13] <Adnyxo> rkdavis, on my new fedora installation trying to untarr aliosas rar says that the file type is not supported
[19:57:20] <Adnyxo> do i just need to install a package?
[19:57:27] <Adnyxo> im googling it right now,
[20:09:09] <Adnyxo> nvm, i got it
[20:09:23] <Adnyxo> just install the libs
[20:10:38] <Adnyxo> debianZ2-diskimage-2G.img - CRC failed
[20:10:38] <Adnyxo> Unexpected end of archive
[20:10:40] <Adnyxo> crap
[20:20:30] <Adnyxo> help
[20:20:38] <Adnyxo> i cant unrar!
[20:37:42] <Adnyxo> eh, just got a tarball
[20:42:37] *** t7g_ has joined #zipit
[20:44:44] *** t7g__ has joined #zipit
[20:44:59] *** GRUBaDubDub has joined #zipit
[20:45:37] *** T7g has quit IRC
[20:46:03] <GRUBaDubDub> hey guys, is there a readme for how to copy the rootnexus userland to the microSD? there used to be one but opt1k took it down
[20:46:51] <GRUBaDubDub> i just cant remember the command string to get the files to copy over to the my zipit's SD
[20:47:41] *** t7g_ has quit IRC
[21:03:11] <Adnyxo> cp -RvPp i think
[21:07:03] <GRUBaDubDub> thanks i'll try that
[21:19:35] *** GRUBaDubDub_ has joined #zipit
[21:19:49] *** GRUBaDubDub has quit IRC
[21:19:49] *** GRUBaDubDub_ is now known as GRUBaDubDub
[21:38:45] <Adnyxo> gnite, im going to bed
[21:39:18] *** Adnyxo has quit IRC
[21:46:03] *** GPSFan has quit IRC
[22:57:42] *** marex has quit IRC
[22:58:35] *** GRUBaDubDub has quit IRC
[23:12:37] *** GPSFan has joined #zipit
[23:18:57] *** t7g__ has quit IRC
[23:26:22] *** GPSFan has quit IRC
[23:27:23] *** notroot has joined #zipit
[23:43:08] *** GPSFan has joined #zipit
[23:50:50] *** Webhostbudd has joined #zipit
[23:55:25] *** Webhostbudd has quit IRC