**** BEGIN LOGGING AT Tue Jul 08 02:59:59 2014 Jul 08 06:19:00 * karki plays ping pong with his net connection :'( Jul 08 06:36:11 * karki bangs his head! Jul 08 06:48:07 karki: why so ? Jul 08 08:38:44 Abh Jul 08 08:38:55 * Abhishek_ hits a smash Jul 08 09:11:51 praveendath92: ping Jul 08 09:12:40 vvu: pong Jul 08 09:12:48 how is it going ? Jul 08 09:13:38 Trying to get the xserver on fb w/o displaylink driver. Jul 08 09:13:45 Just with udlfb. Jul 08 09:14:29 any luck ? Jul 08 09:15:11 All attempts so far gave me errors. Jul 08 09:15:15 :( Jul 08 09:15:21 :( Jul 08 09:15:37 send a message to the guy who has the dl repo on github Jul 08 09:15:41 i think he has his email there Jul 08 09:15:52 Errors or the same frame in the fb. Jul 08 09:15:58 The same green frame. Jul 08 09:16:04 Hmm. Jul 08 09:17:50 Writing to him. Jul 08 09:18:46 there should be some setup that works Jul 08 09:24:22 Hmm. I tried the basic things like specifying this as framebuffer and starting XServer but no luck. Jul 08 09:24:36 i have no xp with framebuffers Jul 08 09:25:08 maybe send an email also to http://kernelnewbies.org/MailingList Jul 08 09:25:26 there are a lot of peeps lurking around there and you may get an answer Jul 08 09:29:30 System crash :( Jul 08 09:29:37 panic panic panic Jul 08 11:50:36 praveendath92: ping Jul 08 11:50:51 praveendath92: what do I need to do to run your fb module? Jul 08 12:06:08 av500: pong Jul 08 12:06:17 Make Jul 08 12:06:19 yo Jul 08 12:06:31 and insmod udlfb.ko Jul 08 12:07:16 it built bard.ko Jul 08 12:07:27 ah Jul 08 12:07:29 got it Jul 08 12:07:36 Attach the droid device. Jul 08 12:07:46 That's the bard driver. Jul 08 12:08:28 fb module is being directly edited at https://github.com/praveendath92/udlfb Jul 08 12:08:31 Right now. Jul 08 12:17:37 * Abhishek___ notices thge double underscored Jul 08 12:17:43 *underscores Jul 08 12:23:56 praveendath92: do I need apk on the android? Jul 08 12:23:58 or just plug? Jul 08 12:24:25 apk is needed. Or it gives a pop up. Jul 08 12:25:20 I will host it in a min. Jul 08 12:25:20 av500: Right now the way it works is adk mode is triggered by adk driver in udlfb/adk. Jul 08 12:25:24 There you need to give your device pid and vid. Jul 08 12:26:32 So, both udlfb.ko and adk.ko has to be loaded. Jul 08 12:28:55 ah Jul 08 12:29:07 where do I get adk.ko? Jul 08 12:29:25 praveendath92: in order to solve the X issue, we can fake all the adk stuff Jul 08 12:30:49 is there a way to fake thta? Jul 08 12:31:15 ah Jul 08 12:31:19 hmm Jul 08 12:31:21 usb driver Jul 08 12:31:24 not so easy Jul 08 12:31:34 adk.ko is through udlfb/adk make Jul 08 12:32:06 I can merge the two but I decided to take care of fb first. Jul 08 12:32:35 apk here -> http://android.praveenkumar.co.in/bard/BARD.apk Jul 08 12:32:40 what branch? Jul 08 12:33:11 av500: I just pushed it in a commit. Jul 08 12:33:17 Can you pull once now. Jul 08 12:34:07 hm Jul 08 12:34:12 am I on the wrong repo? Jul 08 12:34:36 ah Jul 08 12:34:40 I was on bard-linux Jul 08 12:34:47 Yes. Jul 08 12:34:52 It is udlfb. Jul 08 12:34:56 The repo name. Jul 08 12:35:08 bard-linux is only the communication part. Jul 08 12:35:34 Instead of adding fb to bard-linux I'm adding bard-linux stuff to fb. Jul 08 12:35:35 ok, so Jul 08 12:35:49 Clone udlfb. Jul 08 12:35:51 In my account. Jul 08 12:36:04 yes Jul 08 12:36:05 did that Jul 08 12:36:11 2. Make on udlfb and udlfb/adk Jul 08 12:36:15 yes Jul 08 12:36:24 modules loaded Jul 08 12:36:26 insmod udlfb.ko and udlfb/adk/adk.ko Jul 08 12:36:35 yes Jul 08 12:36:50 I suppose you modified pid and vid with your device values. Jul 08 12:36:52 no Jul 08 12:36:54 sec Jul 08 12:36:56 where? Jul 08 12:36:58 Okiee. Jul 08 12:37:24 Is USB debugging enabled? Jul 08 12:37:35 yes Jul 08 12:37:41 L36 - L40. Jul 08 12:37:55 In udlfb.c Jul 08 12:38:11 Mostly L38, 39, 40 has to be updated. Jul 08 12:38:23 Don't change L36, 37. Jul 08 12:38:30 ? Jul 08 12:38:54 Those are adk mode pid and vids. Jul 08 12:39:08 so what do I edit? Jul 08 12:39:19 [4824362.303523] usb 2-2.4: New USB device found, idVendor=18d1, idProduct=4e42 Jul 08 12:39:20 [4824362.303528] usb 2-2.4: New USB device strings: Mfr=2, Product=3, SerialNumber=4 Jul 08 12:39:22 [4824362.303530] usb 2-2.4: Product: Nexus 7 Jul 08 12:39:33 They are same for all devices. Jul 08 12:39:47 so what do I edit? Jul 08 12:40:29 L13 - L17 in adk.c Jul 08 12:40:37 ah Jul 08 12:40:45 VID0 18d1 Jul 08 12:40:49 yes Jul 08 12:40:49 PID0 4e42 Jul 08 12:41:19 Subclass class and protocol can be obtained from lsusb -v Jul 08 12:41:30 ok Jul 08 12:41:38 BARD.apk luanched Jul 08 12:41:42 Additional values are to filter the interfaces. Jul 08 12:41:46 and I have fb1 Jul 08 12:41:48 :) Jul 08 12:41:56 Oh. Nice :) Jul 08 12:42:54 Now the fb stuff. Jul 08 12:56:32 praveendath92: ok, so what did you do to have X on it? Jul 08 12:56:35 so far Jul 08 12:57:37 DisplayLink setup with userspace drivers. Jul 08 12:58:07 Some of the methods here. https://github.com/notro/fbtft/wiki/Framebuffer-use Jul 08 12:59:44 And couple of random stuff I found while searching. Jul 08 13:15:15 * Abhishek___ bought an HDMI cable today and tried out BBB with my LCD TV Jul 08 13:19:09 hmm, Jul 08 13:19:15 I get a new X on my monitor Jul 08 13:24:36 With fb driver? Jul 08 13:31:08 ok Jul 08 13:31:11 something is running Jul 08 13:31:53 yay Jul 08 13:31:59 got an xterm in the dump Jul 08 13:32:00 Can you check the current frame in the fb driver? Jul 08 13:32:07 yes Jul 08 13:32:08 :) Jul 08 13:32:13 fbgrab Jul 08 13:32:16 fbdump Jul 08 13:32:26 dont have fbgrab Jul 08 13:32:39 Anything is fine. Jul 08 13:32:47 sudo FRAMEBUFFER=/dev/fb1 fbdump > fb.dump Jul 08 13:33:27 fbgrab gives nice png output. Jul 08 13:34:19 fbcat is the package. Jul 08 13:34:23 http://imagebin.ca/v/1ScApfj5YJxr Jul 08 13:34:54 imagebin understands PPM Jul 08 13:34:57 Nice! Jul 08 13:34:58 as does xv :) Jul 08 13:34:59 cool Jul 08 13:35:10 praveendath92: so your turn now Jul 08 13:35:13 :) Jul 08 13:35:22 FRAMEBUFFER=/dev/fb1 xinit -- /usr/bin/X :1 -config /etc/X11/xorg.conf.fb Jul 08 13:35:24 Screenshot or fbdump? Jul 08 13:35:30 praveendath92: fbdump Jul 08 13:35:50 What did I do wrong :( Jul 08 13:37:03 Your xorg.conf.fb file? Jul 08 13:37:35 sec Jul 08 13:38:12 http://pastebin.com/XaCy9dRZ Jul 08 13:38:43 the FRAMEBUFFER=/dev/fb is not needed I think Jul 08 13:38:47 seems to work without Jul 08 13:38:59 then I get a blank console Jul 08 13:39:07 CTRL-ALT F7 to get back to X Jul 08 13:39:15 Hmm. Jul 08 13:41:48 Yay. Got it :D Jul 08 13:42:42 av500: How do I go back to Xterm w/o restarting? Jul 08 13:44:39 av500: I don't see an xterm on my screen. Only in fbgrab. Jul 08 13:45:16 ? Jul 08 13:45:22 of course you dont see it on the screen Jul 08 13:45:46 its a chunk of memory Jul 08 13:45:53 with no display attached to show it Jul 08 13:46:00 your task is to show it on android phone Jul 08 13:46:13 hence you get a blank console Jul 08 13:46:14 Hmm. Jul 08 13:46:33 on your gfx card, the memore gets piped to the HDMI connector Jul 08 13:46:34 and your LCD Jul 08 13:46:46 on that second fb display, the memory is there Jul 08 13:46:52 but its not connected to your gfx card Jul 08 13:46:59 I see data transfer to android device too. Jul 08 13:47:03 good Jul 08 13:47:49 Also I can't use my pc keyboard to input into that xterm. Jul 08 13:48:23 I think with some modifications to xorg.conf.fb that can done. Jul 08 13:53:35 praveendath92: yes, that can be done Jul 08 13:53:44 but for now, make that xterm appear on an android :) Jul 08 13:53:56 you can launch other apps as well, make a 2nd xinitrs Jul 08 13:53:57 you can launch other apps as well, make a 2nd xinitrc Jul 08 13:54:07 http://wiki.gentoo.org/wiki/DisplayLink Jul 08 13:54:11 I used this link mainly Jul 08 13:54:18 and fixed some command line options Jul 08 13:54:41 Yes. Display on Android is the next part. Jul 08 13:54:46 good Jul 08 13:54:49 go for it Jul 08 13:55:09 Thanks :) Jul 08 13:55:27 for a very simple start, just copy the whole screen content over Jul 08 13:56:56 The whole contents are already being transferred to Java. Jul 08 13:57:01 Need to process them there. Jul 08 13:58:37 ah ok Jul 08 13:58:39 good Jul 08 13:58:54 so we can have a picture for tomorrows meeting? Jul 08 13:58:56 ! Jul 08 14:00:13 Yes. Jul 08 14:00:34 1. Need to check encoding of bulk transfer in udlfb Jul 08 14:01:05 2. Decode data in Java. Jul 08 14:52:13 karki: having luck with the doc? Jul 08 14:52:53 karki: I'd hope you'd be able to use a combination of 32-bit and 64-bit instructions, rather than moving to an odd number like 48-bit. Jul 08 14:53:14 google docs is down, I'll be putting it down in Markdown like alexanderhiam Jul 08 14:53:39 I prefer that anyway. :-) Jul 08 14:53:51 something akin to a DMCA takedown just occured in India with Google Docs also in the list Jul 08 14:54:02 jkridner : yeah. if the 7th bit of the command byte is zero, 32 bit instruction. if that bit is high it is a 64 bit inst. Jul 08 14:54:16 so only 32 bit or 64 bits Jul 08 14:54:23 k Jul 08 14:54:32 you using that for if statements too? Jul 08 14:55:03 the encoding is pretty neat :) I was happy with it. yeah same with if statements! Jul 08 14:56:21 I was actually upgrading the compiler as of now. will be writing the encoding in parallel! I'll then put it up in the wiki Jul 08 15:33:35 praveendath92: seems like i missed all the fun Jul 08 15:36:06 alexanderhiam: the temp sensor works completely Jul 08 15:36:37 rseethamraju: great! what was the issue? Jul 08 15:38:03 alexanderhiam: I just chuked the program and rewrote it form scratch Jul 08 15:38:13 fun Jul 08 15:38:30 vvu: Yep. Jul 08 15:38:34 I kept getting confused what individual parts were doing Jul 08 15:38:46 It turned out to be simple. Jul 08 15:38:56 what was the issue ? Jul 08 15:39:02 and I figured I has to write to the configuration register forst Jul 08 15:39:04 first Jul 08 15:39:23 ah, ok Jul 08 15:39:29 About running Xserver on fb. Jul 08 15:39:29 have you pushed it? Jul 08 15:39:35 yes Jul 08 15:39:41 not the example though Jul 08 15:39:46 and... Jul 08 15:39:51 gues what?…. Jul 08 15:39:58 Everytime I run it w/o errors I don't see any updates in fb when I read it with fbgrab. Jul 08 15:40:15 my bbb doesn’t work anymore!!1 Jul 08 15:40:17 =( Jul 08 15:40:20 oh no! Jul 08 15:40:24 wut? Jul 08 15:40:25 I know Jul 08 15:40:36 what happened? Jul 08 15:40:38 av500 found a solution. Jul 08 15:40:43 the prg worked I and then thats it. I stopeed working Jul 08 15:40:48 vvu: The fb is now updated with new frames too :) Jul 08 15:41:06 good Jul 08 15:41:21 rseethamraju: so, no blue lights? Jul 08 15:41:28 rseethamraju: do you have a usb to serial converter? Jul 08 15:41:30 It power button doesn’t light up when I connect it via usb Jul 08 15:41:43 yup no lights Jul 08 15:41:43 Now I need to process the raw data into an image in Java :) Jul 08 15:42:06 praveendath92: need some more screenshots now :) Jul 08 15:42:16 alexanderhiam: yes thats what I was using Jul 08 15:42:26 :) Jul 08 15:42:33 I’ll borrow from college tomorrow Jul 08 15:42:37 =( Jul 08 15:43:00 have you tried an sd card with a new image? Jul 08 15:43:18 I tried w/o the sd card Jul 08 15:43:30 it doesn’t even light up Jul 08 15:43:43 I’ll explain in detail in the meeting today Jul 08 15:43:48 ok Jul 08 15:43:54 so can I make a pull request now Jul 08 15:44:37 I only have to add the license and stuff at the begining Jul 08 15:45:05 ok, and the old example is still there and should work right? Jul 08 15:46:50 yes Jul 08 15:48:27 alexanderhiam: no the addToCleanup() isn’t there that’s all Jul 08 15:50:46 rseethamraju: that should be called from the library though Jul 08 16:08:06 alexanderhiam: yes it is being calld from the library. I didn’t push the exaple where I removed it Jul 08 16:08:50 oh gotcha Jul 08 19:49:59 alexanderhiam: done! **** ENDING LOGGING AT Wed Jul 09 02:59:58 2014