**** BEGIN LOGGING AT Thu Jan 03 02:59:57 2019 Jan 03 09:53:14 hey hey, i tumbled over here and have a question. I tried to load the g_printer gadget driver with sudo modprobe g_printer but dmesg reported that the driver is on hold because other ones are using it Jan 03 09:53:48 there's probably g_multi or such Jan 03 09:54:23 Can I somehow deactivate the gadget drivers for the driver load and usb ethernet adapters? Jan 03 09:54:59 ok, i can use g_multi for that purpose? Jan 03 09:56:09 ok, i'll start reading this: https://www.kernel.org/doc/Documentation/usb/gadget_multi.txt Jan 03 09:59:35 if you are not connecting via USB, you can probably unload the driver Jan 03 09:59:46 or change how the g_multi is loaded during boot Jan 03 10:02:10 I used sudo modprobe -r g_multi to unload, but it didn't react in any way different Jan 03 10:04:03 I'm using the debian image from the beagle bone site and it has all the readme and drivers for an local usb connection (over the usb client/otg port) provided with it Jan 03 10:04:25 it is total cool, but I'm not, because I tried to find the place where all this is loaded Jan 03 10:05:47 that's probably in /opt or such Jan 03 10:06:06 everytime I try to unload or avoid configuration of the u_ether gadget driver it just tells me that is it used. Jan 03 10:07:33 are you connecting over USB? Jan 03 10:08:19 yesterday i was crawling through some scripts in /opt/boot/ Jan 03 10:08:37 am335x_evm.sh Jan 03 10:08:46 is the most likely candidate Jan 03 10:08:49 no, I'm connected over ethernet and ssh Jan 03 10:09:33 I'll have a look. Thanks for pointing to it. Jan 03 10:10:00 looks like you should be able to runtime modify g_multi Jan 03 10:10:04 by using functionfs Jan 03 10:10:19 cd /sys/kernel/config/usb_gadget/g_multi Jan 03 10:12:40 I don't know about functionfs but the script seems to be the right spot. Jan 03 10:13:19 combine that with the documentation and you should be able to add the printer personality at runtime Jan 03 10:13:26 I'll move it somewhere, this might help to avoid the loading of the whole thing Jan 03 10:14:02 careful, that script does many things Jan 03 10:15:01 actually it does Jan 03 10:15:17 but but Jan 03 10:17:17 ok, what would be the best option, I did scrolled over it, and it seems that it is all related to provide a environment to automatically test all the things, but it seems not to touch the drivers used for ethernet Jan 03 10:18:33 there might be an option to disable the libcomposite/g_multi stuff Jan 03 10:18:53 also why not just enable the printer functionality in addition to what it does already over USB? Jan 03 10:20:25 because I'll will enable and disable it many times for an test setup. I'm don't know yet how to use g_multi but the other stuff is already up. Jan 03 10:20:58 where should i search for this option to disable the stuff? Jan 03 10:22:25 for testing runtime enabling might be quite comfortable Jan 03 10:25:22 hmm, you meah it is easy to work with g_multi and load and unload all the drivers for test purposes Jan 03 10:26:10 https://events.static.linuxfound.org/sites/events/files/slides/USB%20Gadget%20Configfs%20API_0.pdf Jan 03 10:27:27 ok, I''l read that too. But that takes some time. Jan 03 10:28:11 Well I'have to thank you, meanwhile i moved the file back. I did see that it does more than the provision of the g_multi. Jan 03 10:28:15 that will be time well spent. mdp writes great presentation material AND provides exactsteps™ Jan 03 10:30:52 you'll then notice that the script uses exactly those mechanics already Jan 03 10:40:14 Do beagle bone Black support Android SDK Jan 03 10:40:38 if you manage to install android on it, probably Jan 03 10:40:51 I'm not aware of any recent android images for it Jan 03 10:41:46 Or is there any Beagle bone which support Android SDK Jan 03 10:43:58 short answer: no Jan 03 10:52:28 Hi, I'm all new to BBB, and i'm trying to boot it for the first time, but i have encountered a problem. WHen I try to log in (as described in the getting started section, with @Debian and temppwd) it will not grant me access. Jan 03 10:53:58 Try with @debian Jan 03 11:00:52 JGU: it's "debian" (without the quotes" Jan 03 11:01:15 I'll try Jan 03 11:01:46 Thx - worked Jan 03 11:14:08 What happened to the Debian profiler? I'm using -pg but there's no a.out Jan 03 11:16:46 * tbr fails to parse the question posted by peterL Jan 03 11:18:27 tbr: you don't understand my question? Jan 03 11:19:12 correct Jan 03 11:20:40 OK: I'm compiling code. As I understand it if I use the -pg flag to both the compile and to link I should be able to run gprof. But when I do its says there's no a.out Jan 03 11:30:20 ah, so gcc or clang? that's a generic debian question then. Better chances to ask about it on a debian specific channel Jan 03 11:39:29 ok thanks Jan 03 12:16:51 some of the exapt steps are not reproducible Jan 03 12:17:23 like validating the udc drivers Jan 03 12:17:27 ls /sys/class/udc/ Jan 03 12:18:24 I only have a folder in it and no files/drivers name Jan 03 12:18:32 musb-hdrc.0 Jan 03 12:23:18 hmmm, i won't do it then. It seems more complicated to add and remove the driver with the help of the configfs in comparison with one "modprobe g_printer" Jan 03 12:23:28 Hi guys, I have a 20x4 character lcd display and a java program to display the character. When I connect it to a BBB in 4 bit mode the character display speed is too low, So I connect it with 8bit mode, but it displays special characters. Please help me to solve this problem. Jan 03 12:26:52 @newbee: Hi, I'm not a crack here, but did you check to while switching from 4 bit to 8 bit that the byte you send is clean in a sense of not sending two 4 bit chars at once? Jan 03 12:28:33 @JackOnIrc Yeah, I send the individual bit for the 8 data line. Jan 03 12:30:57 @JackOnIrc Can you please tell me hoe to increase the character display speed in lcd by 4 bit mode. Is the any way for that in java. Jan 03 12:32:28 no, i'm out, last time tbr helped me a lot. I'm not yet sure if he is a bot, no offence meant, but if so, he is a good one. He helped me with some pointers Jan 03 12:32:50 :-þ Jan 03 12:32:59 bleep boop Jan 03 12:33:24 look, a human would take offence * Jan 03 12:33:27 har har* Jan 03 12:33:39 got ya bot Jan 03 12:33:42 and no, I'm not familiar with character displays and java Jan 03 12:33:50 :D thanks for making me lough Jan 03 12:33:57 there must be things happening Jan 03 12:34:05 JackOnIrc: I aim to please Jan 03 12:34:27 You are the son i never had! Jan 03 12:34:41 * tbr beams and hugs JackOnIrc Jan 03 12:34:53 @JackOnIrc Any way thanks for your time... Jan 03 12:34:57 newbee: so, how are you driving the pins anyway? Jan 03 12:35:47 @tbr using the gpio pins in BBB... Changing the values in the Direction and value files of the gpio pins. Jan 03 12:36:14 so you are writing to the character devices in the file system? Jan 03 12:37:21 @tbr , not like that,, I write the gpio pins file to enable and disable pin values Jan 03 12:38:12 @tbr I uses the java file system to read and write gpio files.. Jan 03 12:39:18 maybe you should use something like a logic-analyzer to see if the values are clocked out within parameters that the display understands Jan 03 12:39:34 also it could help to double check that all pins are muxed properly Jan 03 12:41:47 @tbr I use the multi meter to check the gpio pins voltage level. Its works fine. in 4 bit mode the character are displayed in lcd but the speed is the problem Jan 03 12:48:19 newbee: guessing it's HD44780 compatible. why not use the driver in the linux kernel? Jan 03 12:49:14 @tbr sorry i didn't kow about that.. Can you please tell me how to use it.. Jan 03 12:49:41 no idea, I just looked it up and found that it exists Jan 03 12:50:07 you'll likely have to add the display pins to your device tree Jan 03 12:51:35 @tbr I am a beginer in BBB.. So I didnt know more about the process in BBB. Jan 03 12:51:56 @tbr I will try to check the linux driver... Jan 03 12:52:33 @tbr is the any libraries for BBB like Pi4j for Raspberry pi.. Jan 03 13:38:07 @tbr I moved a335x_evm.sh by mv /opt/scripts/boot/am335x_evm.sh /opt/scripts/boot/am335x_evm.sh~ now I can load g_printer Jan 03 13:39:40 as I do not need the part that it supplies or any of the shields I'm happy Jan 03 15:29:08 <__hj__> Hi, would I able to use 4.19.9 kernel by installing using `sudo apt-get install linux-image-4.19.9-ti-r5` as it is shown by the command `sudo apt-cache search linux-image | grep 4.19.9-ti` ? Jan 03 15:30:35 <__hj__> https://pastebin.com/47L7bfp0 Jan 03 16:16:29 __hj__: yes, that should work Jan 03 18:15:47 Question regarding what image to flash onto a 2GB eMMC (rev Ax/Bx). Currently using Angstrom and feel it is time to move away from 'slots'. Is someone available who could answer a few questions? Jan 03 18:16:54 BackJenson: the latest iot image won't fit, but the console image will fit generously Jan 03 18:16:54 I forgot to mention that I am referring to a BBB. Jan 03 18:18:06 you could also take the iot image, find whatever is taking up so much space (it used to fit in 2GB), remove that, and then flash it onto eMMC. but in my experience, installing stuff you want/need is usually less effort than finding and removing stuff you don't want/need Jan 03 18:18:42 as a final option you can of course just boot from sd card instead of eMMC Jan 03 18:18:43 zmatt: First off thank you for your response. Jan 03 18:19:09 zmatt: Sadly, we need to boot form eMMC (boy do I wish I could) Jan 03 18:23:04 zmatt: I am trepidatious about what is lost between iot and console. I cannot really find any good explaination of what iot has that console doesn't. As a result, I am nervous that if we use console, we will be losing some critical portion of code. Jan 03 18:24:36 so, I just checked: on our main development beaglebone we do use more than 2GB of space currently (2.9G used, 410M avail), but on our production beaglebones (which only have half the eMMC space because we reconfigure it into SLC mode) we have little more than 500M used (1.2G avail) Jan 03 18:25:07 hm. Jan 03 18:25:09 console is fairly minimal and meant to let you just install the stuff you want Jan 03 18:25:43 iot has a ton of crap like the webserver, bonescript, cloud9 ide, I think I saw someone mention node red Jan 03 18:27:03 things I wouldn't want running on a beaglebone deployed for serious use (which I'm assuming you're intending to, given the "no sd card allowed" constraint) Jan 03 18:27:09 we do run a nodejs webserver... I know that this will sound obtuse, but is there anyway to see what is different between iot and console (without you having to walk me through every step)? Jan 03 18:28:03 we run a nodejs webserver too, but not an apache webserver (which iirc is what's on the iot image) :P Jan 03 18:28:34 Nice, so I can finally stop using nodejs v0.01 or whatever was on Angstrom. Jan 03 18:28:39 lol Jan 03 18:28:47 wow, ouch Jan 03 18:29:06 we're currently using v10.12 Jan 03 18:29:06 someone feels my pain! Jan 03 18:29:15 :) Jan 03 18:29:50 Do you have a good resource I could educate myself with about adding packages to the console image? Jan 03 18:30:20 http://google.com will work I guess. Jan 03 18:30:26 uhh, dunno, there are probably plenty of resources about basic debian system administration Jan 03 18:30:44 zmatt: Thanks for your help in this. Jan 03 18:31:21 Might I suggest in the debian images page we add a warning that iot will not work with rev ax/bx beaglebone blacks? Jan 03 18:31:54 yeah, and the installer should check available space at the start and refuse to even begin, rather than try and run out of space Jan 03 18:32:00 https://beagleboard.org/latest-images currently just says iot works with all beaglebone black images Jan 03 18:32:10 jkridner[m]: ^ Jan 03 18:32:12 jkridner[m]: poke Jan 03 18:32:22 I know it ain't high prio, but someone needed to say it. :) Jan 03 18:32:33 Then you won't have to talk to people like me! Jan 03 18:33:07 zmatt, thanks again. Gotta run for now. Good karma to you Jan 03 18:53:28 I'm already confused Jan 03 19:06:04 pastebin! Jan 03 19:06:30 Ask questions and then use pastebin! It works. Jan 03 19:14:02 Is there a particular way to resolve a host on the BBB? Jan 03 19:14:57 w/ sudo? Jan 03 19:16:50 I keep goofin' around w/ sudo and a new hostname, i.e. instead of beaglebone. Jan 03 19:16:51 ... Jan 03 19:16:57 you don't need sudo to resolve hosts, and resolving hosts works the same on the bbb as on any other linux system Jan 03 19:17:01 oh you mean change the hostname Jan 03 19:17:05 Right. Jan 03 19:17:07 that's a very different thing Jan 03 19:17:32 sudo hostnamectl set-hostname my-bbb Jan 03 19:17:34 or whatever Jan 03 19:17:58 Okay. I will try again. Jan 03 19:18:01 you may need to reboot before it can be found on the network by that name Jan 03 19:18:06 Right. Jan 03 19:20:05 sudo: unable to resolve host my-bbb <---- this is the odd error I keep getting. I just rebooted. I will reply. Jan 03 19:21:22 ehh what? I've never seen that Jan 03 19:21:36 I know. I was trying something out of the new Molloy book. Jan 03 19:21:58 oh you mean you did something different from the command I just gave Jan 03 19:22:06 At first, yes. Jan 03 19:23:19 debian@my-bbb:~$ is my set up right now. Jan 03 19:26:03 oh you mean sudo gives that error? sudo shouldn't be resolving hostnames in the first place, annoying piece of crap software Jan 03 19:26:11 Oh. Jan 03 19:27:38 zmatt: I can sign in under two different names now w/ different hostnames. It is okay. Jan 03 19:27:53 Sorry to bother you. Jan 03 19:28:17 ?? Jan 03 19:28:40 I changed the hostname and signed in via my other name. Jan 03 19:28:53 both debian and my other name work on sign in. Jan 03 19:29:09 uhh what? you're talking about usernames now? Jan 03 19:29:10 I just changed the hostname w/ your command and it works. No issues. Jan 03 19:29:17 Usernames and hostnames. Jan 03 19:29:25 those are rather different things Jan 03 19:29:33 changing hostname has zero effect on user names Jan 03 19:29:33 Right. I get it. Jan 03 19:29:57 I changed the username and hostname on my Debian BBB. Jan 03 19:30:16 I added some groups and did some other stuff. I am testing out that new book. Jan 03 19:30:49 zmatt: have you seen the first .c file in that book? Jan 03 19:31:37 It does not work for some reason. The software runs after I compile it but there is no output. Jan 03 19:32:01 It is supposed to say w/ printf, "Blah, Blah, Blah." Jan 03 19:32:02 why would I have seen code in some random book? Jan 03 19:32:19 No clue. I just figured you were reading random books too. Jan 03 19:32:19 ehm what? Jan 03 19:32:36 Hold for pastebin. Jan 03 19:32:36 no, I've never read a single book about the bbb Jan 03 19:32:41 Oh. Jan 03 19:32:46 No issue. Jan 03 19:34:05 Forget it. I figured out that in my directives I missed a "#" mark. Yikes! Jan 03 19:35:11 https://pastebin.com/kxkLPRSK is the software that will not do anything. Jan 03 19:35:34 simple but does not do anything. Jan 03 19:35:42 because you wrote /n instead of \n Jan 03 19:35:47 Ha! Jan 03 19:35:50 Sorry. Jan 03 19:36:11 Oh and my sudo error is back. Jan 03 19:36:13 Dang it. Jan 03 19:36:49 see if this helps: sudo apt-get install libnss-myhostname Jan 03 19:37:06 Okay. Jan 03 19:37:37 unable to locate package. Jan 03 19:37:55 Sorry. I got it. Jan 03 19:38:29 It works. Jan 03 19:38:55 and/or configure sudo to never attempt to resolve hostnames by editing its config file using "sudo visudo" and adding the following line to it (somewhere near the other Defaults lines): Jan 03 19:38:59 Defaults !fdqn Jan 03 19:39:07 ok Jan 03 19:39:12 Alright. Jan 03 19:40:18 Just for the record, A-okay. Jan 03 20:37:46 Hello! I am 3rd year undergrad Jan 03 20:39:00 Hello! I am a 59 year overgrad Jan 03 20:39:32 for gsoc-related questions, see https://beagleboard.org/gsoc Jan 03 20:40:40 wish google would do another summer of code Jan 03 20:46:24 Hello! I am 3rd year undergrad. Currently i am looking forward to contribute to open source through gsoc 2019. I would like to work with your organisation since i have worked with arm processors and i am quite familiar with iot as well. Can you suggest me how can i contribute to your org so that i can work for it. Looking forward to your reply Jan 03 21:25:04 Just got BBB. Very excited to play with it. But it did not run smoothly. I connected it to my Windows-10 machine using USB. Found BBB with FileExplorer and started to follow START.htm Jan 03 21:26:02 dreamhiker: you may want to update to the latest firmware, see https://beagleboard.org/getting-started Jan 03 21:28:39 The 1st step is to Install the drivers. While installing the drivers BONE_D64.exe I got the installation Failure for all the drivers. Jan 03 21:29:01 latest images don't require any driver installation Jan 03 21:29:44 so if your START.htm direct you to install drivers, that means your bbb is running rather old firmware Jan 03 21:30:02 hence my suggestion to reflash it to latest firmware Jan 03 21:30:08 I just purchased it :( Jan 03 21:30:21 you never know how long it's been sitting on a shelf in a warehouse Jan 03 21:31:50 How do I connect to it? Shall I run to the store and buy micro-HDMI-D adapter? Jan 03 21:33:42 hdmi? why? Jan 03 21:33:49 I never connect a monitor to a bbb Jan 03 21:34:18 just follow the getting-started guide I linked to Jan 03 21:35:54 where can I find getting-started guide? Jan 03 21:36:08 https://beagleboard.org/getting-started Jan 03 21:36:17 sorry, I see it Jan 03 21:46:23 I do still wonder whether it wouldn't be better to just ship the bbb without any image and always have them download one, rather than shipping it with (statistically speaking) old firmware Jan 03 22:04:13 zmatt: just like the XM, which as one of the lessons of the original BB abandoned the nand-flash Jan 03 22:04:30 no card, no boot **** ENDING LOGGING AT Fri Jan 04 02:59:56 2019