**** BEGIN LOGGING AT Sat May 07 02:59:58 2016 May 07 05:27:49 Okay so the rproc is working on 4.1.18-ti-r55. May 07 05:27:59 http://paste.debian.net/682687/ May 07 05:28:08 Wormo, ds2 ^^ May 07 05:28:30 But that automatically loads on boot May 07 05:28:57 and I havnt still found a way to load it without boot. May 07 05:30:26 and i am unable to rmmod it, as they are being used. May 07 07:15:27 ZeekHuge: I see a TI doc that shows rmmod -f, though normally I'm hesitant to force unload May 07 07:15:33 http://processors.wiki.ti.com/index.php/PRU_Training:_Hands-on_Labs#Boot_the_new_device_tree_and_FS_on_the_Target May 07 07:16:20 heading out for now, ltr May 07 07:20:48 Wormo: Okay, Will try. Also, I can get a function generator with max 10MHz, so will that be enough for testing purposes ? May 07 07:21:19 ds2: ^^ May 07 13:07:32 Anyone who has completed the video? May 07 13:08:34 ZeekHuge, Visaoni ^^ May 07 13:08:51 Not yet. May 07 13:10:18 ZeekHuge, Using Vlc? May 07 13:11:23 I haven't decided that either, but i dont think that will be big problem. If it will anyway cause problem, I will just use my friends windows PC. May 07 13:14:36 Zeekhuge,Whenever you start do tell me the software you are using. May 07 13:15:19 sure :) May 07 13:16:51 And we should add the others to the GSOC fb group. May 07 13:17:14 Zeekhuge ,pmzydlo and the rest. May 07 13:19:43 Yep, for that we need to be friend with them ;) May 07 13:21:21 Yes I will send a request to pmzydlo. I think I found him on fb. May 07 13:21:50 But I have no idea about the rest. May 07 13:24:38 ZeekHuge, Although I am not sure if he really knows my real name ;) I will have to catch him online. May 07 13:25:51 I have added amr there in the group already. May 07 13:54:23 ZeekHuge, That's great! That leaves kiran and Viasoni I guess May 07 15:58:01 Hi there!! alexhiam: ping :-) May 07 17:48:51 recordmydesktop should be fine May 07 17:49:20 ds2: will a function generator with max 10Mhz be sufficient to test the project ? May 07 17:50:53 also, how can we use ctags ? with sublime ? there are ways to that on google, but they seem to be buggy, and while coding I really dont want to get into a bug from other project. May 07 17:51:04 nerdboy: ^^ May 07 17:51:42 tried atom? May 07 17:52:32 vim has all the features you need, but i don't use it enough May 07 17:53:24 maybe she'd ^^ be willing to vim-tut the students... if you ask nice... May 07 17:54:47 ohk, but vim is less user friendly May 07 17:55:08 it's developer friendly May 07 17:55:25 and you're a developer sort of user May 07 17:56:17 I tried learning it using vimtutor, but never actually used. Should i go on for that ? May 07 17:56:57 Wormo: also, will a frequency generator with max 10Mhz be sufficient for the testing purpose ? May 07 17:58:51 I'd say yes to both, 10MHz will help you see its working May 07 17:59:45 someone with access to a higher speed freq generator will likely be able to run a test for you at that point May 07 18:00:28 to verify its limits which can be estimated from the instruction counting like in your proposal May 07 18:01:32 more embedded devs seem to use vim than others btw, in my admittedly informal and small polls May 07 18:01:50 Okay :) I'll try vim. May 07 18:02:02 various flavors of vi are the most likely to be installed on any target May 07 18:03:12 so while it may be a little frustrating to be limited down from enhanced vim when messing around with plain vi on a target board, it's still fairly comfortable May 07 18:06:47 http://vctlabs.com/posts/2005/Feb/24/vim_basics_cheatsheet/ May 07 18:11:06 (there is a cut-down emacs that Linus uses for embedded, but I've never seen that come installed on an embedded board) May 07 18:11:21 http://git.kernel.org/cgit/editors/uemacs/uemacs.git May 07 18:13:28 well, if I there was something to be coded on the BBB, i use sshfs and then open it up in sublime. May 07 18:16:27 *if there was May 07 18:23:30 I've worked on products that don't even have an ethernet port May 07 18:24:28 let alone times troubleshooting when network is down May 07 18:26:22 oh. yes it will be useful in that case. okay I'll start with vim. May 07 18:27:02 * ZeekHuge thinks - there is so much to learn from everyone here ... May 07 18:27:28 I've helped a friend get comfortable with vim through shared shell session, i.e. tmux or GNU screen May 07 18:29:37 It will be my pleasure to learn from you. But, as I dont want to appear like a dumb fool, I'll first revise some basic commands and then ask for your help. :) May 07 18:30:31 that's fine, but note that newbie != fool, you're here bcs you're a promising learner not a fool ;) May 07 18:33:37 btw other big reason vim is nice: it's an apt-get/yum/emerge/whatever away, no mucking about with paperwork requesting employer to buy licenses for you (I'd have to do that if I wanted to use a commercial editor at work) May 07 18:35:12 "an" other big reason, since I also like using free software whenever reasonable... May 07 18:38:22 Yep. I am always eager and always learning. May 07 18:38:40 Wormo, Okay this might sound a little trivial,but vim is basically a editor for writing code right? May 07 18:38:50 ZeekHuge, ^^ May 07 18:39:02 yes May 07 18:39:03 it's an editor which is good for writing code, but just as good for docs May 07 18:39:07 its a text editor May 07 18:39:19 Just like Sublime? May 07 18:39:24 so basically it has lots of command May 07 18:39:38 command-line one, can run it a lot more places than sublime May 07 18:39:53 sublime is very natural. May 07 18:40:01 vim is not that natural. May 07 18:40:07 anywhere that isn't to teeny-tiny to run a fancy editor May 07 18:40:45 Wormo, So no other advantage over Sublime? May 07 18:40:54 and have good support for ctags. May 07 18:41:14 It makes you feel like a real coder ;) May 07 18:42:04 chanakya_vc: I don't use sublime, since I do prefer free software when there is a reasonable (in this case excellent) choice May 07 18:42:32 Okay.Ctags basically allow us to locate functions right? May 07 18:42:34 so I could speculate on other things, but the freedom to run where you please is what I actually *know* May 07 18:42:38 Sublime is free May 07 18:42:40 and make your friends afraid of watching your screen, as they would think, you are hacking or something. May 07 18:42:48 it's not Free/Open May 07 18:42:54 :D :D May 07 18:43:06 and I think you're supposed to pay for a license after trial, no? May 07 18:43:10 Yes it is not open source May 07 18:43:16 No you don't May 07 18:43:35 Wormo: The trial period is not limited. May 07 18:43:35 I have been using it for over an year now ;0 May 07 18:43:48 * :) May 07 18:44:03 ZeekHuge, What do you prefer? May 07 18:44:11 It only asks you "Do you want to buy sublime", sometimes when you press ctrl+s May 07 18:44:25 As of now, sublime is the best ! May 07 18:44:36 Not sure about the future. May 07 18:45:17 Okay but I heard that the debate between using Vim and I guess emacs is always there? May 07 18:45:33 Like amongst coders. May 07 18:45:59 I can't answer that one in general, only that there is a nudge toward vim for embedded Linux devs due to builtin target support May 07 18:45:59 Yes. Its been long going on. And we might get in between saying "What about sublime people ?" ;) May 07 18:46:42 and I work with a good embedded dev who does vi on target & emacs on desktop May 07 18:47:13 I'll get back to work, and will try to get my hands on vim. May 07 18:47:25 ok ttyl May 07 18:48:45 Wormo: one more question: So I should start with vim or vi ? May 07 18:49:23 it doesn't matter if you're just learning basic navigation May 07 18:50:00 we can do recording macros and columnn editing later, then it will be vim May 07 18:55:35 Wormo, I would also like to learn vim(I have zero experience or idea about it). Will follow your directions. :) May 07 18:56:08 good plan, it will pay off in on-target editing May 07 18:56:42 I guess the first step would be to install it :) May 07 18:56:44 basic skills for hacking when network is not available yet May 07 18:56:45 yup May 07 18:57:27 isn't it busybox vi by default? May 07 18:57:55 isn't what busybox vi, vi on BBB? May 07 18:58:12 the mini-embedded one you get on random devices May 07 18:58:20 yes that's common May 07 18:58:29 Wormo, Also,I have this basic doubt. A lot of mentors have mentioned stuff like checkpatch to avoid whitespace errors. Now is this available on vim by default? May 07 18:59:00 checkpatch is a script, you can run it inside or outside vim May 07 18:59:09 And vim can be used on the BBB also? Like if we were to write code natively on it? May 07 18:59:41 vi is on the BBB, the flavor depends on what image you use May 07 18:59:41 yup May 07 18:59:55 you can even have gvim May 07 19:00:14 Okay vi must be terminal based like nano? May 07 19:00:16 ubuntu or debian for BBB has vim available, so does OE image if my friend Geoff builds it May 07 19:00:33 yes it's terminal based, but there is a window flavor too called gvim May 07 19:01:16 gvim is the GUI version I presume? May 07 19:01:18 for people who must have shiny buttons May 07 19:01:29 yes May 07 19:01:31 ohh nerdboy :) May 07 19:03:32 the main thing you've never seen before is editing with "modes" which is a convenient way to deal with kbd-only case once you're used to it May 07 19:04:21 Wormo, Again a very silly question: I have used BBB only via ssh so far.And in that we can only access stuff via the terminal.Now this is unlike the Raspberry PI where if you attach a screen you get GUI. May 07 19:04:28 for those who have wrist overuse problems (hopefully not true already for you students...) sticking with a comfortable kbd and skipping mouse/trackpad often is a win May 07 19:04:55 So how will gvim run on the BBB? May 07 19:05:13 BBB over ssh is probably quite good for your project, since there is no gui work involved May 07 19:05:33 you *could* get the BBB set up like an RPi with it's own display and kbd May 07 19:05:44 you can have bbb desktop if you want May 07 19:05:51 chanakya_vc: sometimes, sshfs can be helpful. May 07 19:05:53 or you could run gvim remotely via vnc May 07 19:06:03 or you could run it over ssh forwarding May 07 19:06:04 default emmc install is debian/lxde May 07 19:06:30 or you could just run tmux with non-g vim May 07 19:06:41 a tmux, stateful terminal session May 07 19:06:55 hook up keyboard/mouse/display even May 07 19:07:21 haha :) May 07 19:07:52 sshfs is fine, but not for running native commands May 07 19:08:20 so sometimes an ssh session with just occasional on-target editing is more convenient May 07 19:08:27 Wormo, Okay I did not know about all this. Actually I have never seen people using GUI for BBB. May 07 19:08:28 a mix of bothe! May 07 19:08:33 take one of the rcn rootfs tarballs (either debian or ubuntu) and apt-get install lubuntu-desktop May 07 19:09:12 i guess debian would be lxde-meta-something May 07 19:09:20 nerdboy, This images are GUI ?like raspbian? May 07 19:09:27 yes May 07 19:09:33 it's a rootfs May 07 19:09:46 once you install the desktop using package manager May 07 19:09:47 you can download either one i think May 07 19:10:15 openbox is already there i think ? May 07 19:10:16 I think package for debian is task-lxde-desktop May 07 19:10:20 there's a bunch of stuff linked on bb.org May 07 19:10:20 Isnt it ? May 07 19:10:36 i'd recommend rcn bbb page May 07 19:10:51 maybe in an older image. May 07 19:10:56 ZeekHuge: you're prob right about openbox May 07 19:11:21 https://eewiki.net/display/linuxonarm/BeagleBone+Black May 07 19:12:20 then pick one of these => https://rcn-ee.com/rootfs/eewiki/minfs/ May 07 19:12:53 make your own card, you can always fallback to emmc May 07 19:13:23 I actually like not having a 2nd set of mouse/kbd/display, and use mix of ssh and serial consoles a lot May 07 19:13:36 can always flash what you like to the emmc later May 07 19:13:46 Wormo: +1 May 07 19:13:53 serial console important for all my u-boot env tweaking I end up doing May 07 19:14:17 kinda need that stuff to test firefox... May 07 19:14:25 I mean .. I too do not like to use extra set of keyboards and all that. May 07 19:14:40 yah different kinds of development nerdboy May 07 19:16:02 Okay nerdboy, I am a bit confused. so i visited this page and they had ubuntu 16.04. Now correct me if I am wrong all rcn rootfs tarballs pertaining to either ubuntu or debian are all gui based? May 07 19:16:16 the minfs tarballs are small/console/ssh anyway May 07 19:16:40 chanakya_vc: they are not all gui based but it doesn't matter once you have network setup May 07 19:16:55 apt-get install foo-desktop takes 800+ packages... May 07 19:17:03 single apt-get will drag in what you want May 07 19:17:54 most of the images have desktop installed, the rootfs is small May 07 19:17:56 http://elinux.org/Beagleboard:Desktops_On_Ubuntu/Debian May 07 19:18:18 Okay. So I burn these to a sd card and follow the same steps as I would for using a non-gui version of debian/ubuntu? May 07 19:18:24 the tarballs have almost nothing May 07 19:18:38 yes May 07 19:18:57 follow the wiki, then install what you need May 07 19:19:32 what are you running now, an OpenEmbedded root? Debian? Ubuntu? May 07 19:19:47 Debian May 07 19:19:57 should be a required exercise for this group... May 07 19:20:11 Wormo: Okay so those rproc modules, I rmmod-ed pruss and then pru_rproc without force option. May 07 19:20:26 But I did not install it. I just borrowed one from my lab so I did not install it myself May 07 19:20:29 build u-boot, build a kernel, dump a rootfs, configure, boot May 07 19:20:34 ZeekHuge: that's good, thought you said yesterday they wouldn't unloa May 07 19:20:38 unload May 07 19:21:05 nerdboy, When would we be getting the new BBB's? May 07 19:21:31 it's a much better sign if they unload without, otherwise it would sound like the module had a bug in that kernel version May 07 19:21:34 some number of days after jkridner ships them? May 07 19:21:44 but when I modprobed pru_rproc this is what came up :pastebin.com/EyNC5BAN May 07 19:22:19 Actually that was being used, but then i realized that pruss was using pru_rproc May 07 19:22:29 nerdboy, I think it would be good to actually install an image on them.I haven't done that.Though I might have an access to working BBB :) May 07 19:22:39 So therefore, first rmmod pruss and then pru_rproc May 07 19:23:20 'install' is you + wiki page May 07 19:23:52 go through the process and you will learn May 07 19:23:54 ZekeHuge so if you rmmod both, you can modprobe without that oops? May 07 19:24:00 isn't that the point? May 07 19:24:54 dd'ing someone else's image doesn't teach you a thing May 07 19:25:05 except how slow the card is... May 07 19:25:58 ^^ mentoring ^^ May 07 19:30:18 assembling an SD card image is fairly forgiving in that you don't risk bricking the board :) May 07 19:32:13 when working with boards that only boot from internal storage, you want suitable jtag available before installing a new bootloader... May 07 19:32:27 Okay nerdboy :) May 07 19:33:23 Anyway got to sleep now. Bye Wormo ,Zeekhuge,nerdboy. May 07 19:33:30 gnight May 07 20:31:12 ahh .. sorry for that disappearing .. May 07 20:31:19 np May 07 20:31:25 Wormo: did you see those errors ? May 07 20:32:14 I was asking if this came after you managed to unload pruss and pru_rproc modules May 07 20:32:46 yes, after unloading both of them. And then trying to load pruss. May 07 20:33:21 so that loading process produces these errors. May 07 20:34:02 well it looks like the 4.1 version you're using has module unload bugs :/ May 07 20:34:41 it still may be the best version to use, having to keep rebooting to do a new test is inconvenient but not out of the question May 07 20:35:39 so that bug is in the kernel ? or in the rproc/pruss module ? May 07 20:35:44 would be good to talk to Abhishek to see if module unloading worked on the version he was using May 07 20:36:05 typically unload bug is on the module side May 07 20:36:22 and we know they have been doing refactoring of the code there May 07 20:36:31 okay, should I raise it as an issue on github? May 07 20:37:07 I'd raise it with Abhishek first, it's possible that this is a recent regression that you could even git-bisect May 07 20:37:12 that would be good practice :) May 07 20:37:42 Okay. I'll mail him up. May 07 20:38:24 ds2: ^^ May 07 20:38:52 the link to the errors: http://pastebin.com/EyNC5BAN May 07 20:54:43 Wormo: And the reboot command wont work on bbb . right ? May 07 20:57:50 depends on the install I guess... there are images where reboot does work, is it broken on yours? May 07 20:58:12 here's a workaround if so May 07 20:58:44 sync && echo b > /proc/sysrq-trigger May 07 21:00:09 an oops like you got earlier can break shutdown/reboot May 07 21:00:26 ohk, trying that, btw, how to get out of that "recording and insert recording" loop, that i accidentally got into. May 07 21:00:31 in vim. May 07 21:01:20 are you at the ': ' command line? May 07 21:01:28 or just seeing 'recording' on the status line May 07 21:01:38 recording in the status line May 07 21:01:47 'q' key is what turns it on and off May 07 21:02:08 so just hit 'q' again if you're not trying to record, no harm done May 07 21:02:33 got it :) esc + q May 07 21:02:36 works. May 07 21:02:59 I was pressing escape and q , but not in the correct order. May 07 21:03:05 ah ok May 07 21:05:11 Cool ! restarting bbb worked ! May 07 21:05:26 Will that work even after oops ? May 07 21:05:44 yes, it's a big hammer May 07 21:06:04 if you've got a shell still to run the 'echo' it almost always works May 07 21:06:33 ohk so its an interrupt request ? May 07 21:06:42 what all i can do with it ? May 07 21:06:54 sysrq is a fun thing to look at, yes! May 07 21:06:56 i tried cat, but it shows error. May 07 21:07:17 so what all can i echo into it ? May 07 21:07:27 echo h > /proc/sysrq-trigger May 07 21:07:36 and then the help comes out in dmesg May 07 21:07:54 because it's the kernel answering directly May 07 21:08:52 okay ! that cool ! May 07 21:08:56 I've done product running out of initramfs where used 'echo o' as poweroff May 07 21:09:26 so its not what actually "shutdown" command does ? May 07 21:09:27 no point taking time to shut userspace things down if they are all transient, no state May 07 21:09:31 how are the two different ? May 07 21:09:57 shutdown shuts things down "cleanly" then tells kernel to turn off at very end May 07 21:10:11 okay got it May 07 21:10:31 e.g. don't do 'echo o' trick if you've got usb stick mounted May 07 21:10:57 shutdown = kill and echo o >/proc/sysrq-trigger = kill -9 May 07 21:11:03 or else ? May 07 21:11:15 yeah that analogy works for me May 07 21:12:44 what if I'll use it with usb mounted ? I'll lose the data ? May 07 21:12:56 like there wont be any "eject" action May 07 21:13:00 yes May 07 21:13:08 unless you do it manually first May 07 21:13:23 Okay :) May 07 21:14:31 * ZeekHuge will try to learn at-least one new, cool and interesting thing here, everyday. May 07 21:15:00 good plan :) May 07 21:32:37 Wormo: So its probably the "pruss" module and not the pru_rproc. I blacklisted them and loaded them manually. May 07 21:33:19 followed steps: modprobe pruss : rmmod pruss : modprobe pruss : error as output May 07 21:34:08 also, I can always use that big hammer to reboot ? that wont harm the system right ? May 07 21:34:15 system = bbb . May 07 21:37:13 I would stick with 'reboot' habit unless there is a need for the bigger hammer May 07 21:38:50 okay, so can we conclude that its pruss that causing problem and not pru_rproc ? May 07 21:39:48 on phone, sorry... May 07 21:40:03 no problem . **** ENDING LOGGING AT Sun May 08 02:59:58 2016