**** BEGIN LOGGING AT Thu May 24 03:00:04 2018 May 24 05:36:58 hi. How can I extend space available on the bbb with the sdcard? May 24 05:37:44 that's a lot harder than simply booting from sd card May 24 05:37:54 what are you doing with it that doesn't fit in 4 GB ? May 24 05:38:57 i want to try image processing with opencv, probably it will be to slow, but nevertheless I want to try it, May 24 05:39:16 so i need space for qt and opencv libraries May 24 05:40:17 bar code scanning actually May 24 05:45:46 hmm, while qtbase5-dev + libopencv-core-dev do seem to pull in a lot of unnecessary dependencies, that's still only 222 MB May 24 05:55:51 well using the Debian 9.3 2018-01-28 4GB SD LXQT image and after installing the packages you mentioned, I have 243MB available for my applications May 24 05:56:24 in /dev/mmcblk1p1 May 24 05:56:41 that's because the lxqt image is bloated as hell May 24 05:56:49 do you really want a full desktop environment on your bbb ? May 24 05:58:42 anyway, if you really want to install more packages on top of the lxqt image, just run entirely from sd card instead of emmc May 24 05:59:06 yes, I need the UI to inform the users, and also I need to connect the app with real time events (like the pressing of a switch). May 24 05:59:16 UI != desktop environment May 24 05:59:29 great! please enlighten me May 24 05:59:53 i guess I only need an XServer May 24 05:59:59 for the qt app May 24 06:00:05 qtWidgets May 24 06:00:08 a desktop environment is a GUI where you can browse your files, start applications, and have a ton of standard applications like a web browser May 24 06:00:14 why do you think you need x11 for that? May 24 06:00:24 a single-window-fullscreen qt5 application doesn't May 24 06:00:40 it can run directly on the framebuffer May 24 06:00:43 yes but, using the iot image May 24 06:01:27 I tried to run a simple qtWidgets app and I couldn;t May 24 06:02:36 what i did was that i connected using ssh to bbb (using -XC) and the application would not start because it couldn connect with the xserver (at least that was the message) May 24 06:02:41 set the environment variable QT_QPA_PLATFORM=linuxfb May 24 06:02:49 see also http://doc.qt.io/qt-5/embedded-linux.html May 24 06:03:31 excellent!! thanks for your valuable help. I will check the referencies and your proposed solution and I will get back May 24 06:03:55 note that ssh -X requires x11 on the computer from which you're sshing, not on the beaglebone May 24 06:04:34 yes, I know. but from the same desktop environment May 24 06:04:48 ? May 24 06:05:02 the app only executed with lxqt bbb image May 24 06:06:22 I will re install the IoT image and I will check your suggestion May 24 06:06:33 thx! May 24 06:06:56 uhh I'm confused now on what you're trying to do since ssh -X should not care whether you're using lxqt or not, since it requests that the gui is placed on the computer from which you're ssh'ing, not on the beaglebone itself May 24 06:07:31 I know, it's strange to me alos May 24 06:07:32 also May 24 06:07:40 you didn't mess with environment variables? May 24 06:07:43 no May 24 06:07:57 echo $DISPLAY shows what? May 24 06:08:17 in bbb or desktop? May 24 06:08:48 though I guess it doesn't matter since I'm kinda assuming X11 forwarding isn't really what you want in the first place. running a gui program on the BBB but displaying its gui on another machine is kind of an inane thing to do May 24 06:09:21 bbb when using ssh -X May 24 06:09:26 void May 24 06:09:43 okay so the -X was failing entirely May 24 06:09:59 for whatever reason May 24 06:10:32 you didn't get an error? May 24 06:10:49 like, I'm getting (for some reason, not sure why): May 24 06:10:52 dev:~$ ssh -X nena.wan May 24 06:10:52 X11 forwarding request failed on channel 0 May 24 06:11:39 no... but reconnecting to bbb I get the following "localhost:10.0" May 24 06:11:50 so it's ok now probably May 24 06:12:12 anyway, like I said, x11 forwarding is presumably not something you actually want anyway May 24 06:12:22 yes that true May 24 06:12:47 but I use for remote running the apps May 24 06:12:56 anyway.. May 24 06:13:10 how you start an app isn't really related to the use of x11 forwarding May 24 06:13:18 yes May 24 06:14:14 so you are suggestin the by setting the environment variable globally QT_QPA_PLATFORM, i will be ok May 24 06:14:21 *that May 24 06:14:43 or make a service for your application... you probably want that eventually anyway May 24 06:15:06 yeap May 24 06:18:13 so, here's a stripped-down version of a service file we use for a gui: https://pastebin.com/PUHW8sFB May 24 06:18:26 though we use eglfs, which you'll most likely want to change to linuxfb May 24 06:21:13 and in /etc/systemd/logind.conf you probably want to set NAutoVTs=0 and ReserveVT=0 May 24 06:21:32 to prevent gettys from spawning May 24 06:22:36 ok. I noted everything down May 24 06:23:22 and do check the webpage I linked earlier for more environment variables that may be relevant May 24 06:23:42 maybe the defaults work fine for you (especially if you don't need input), but maybe not May 24 06:24:02 thanks a million zmatt May 24 06:26:23 we actually even disabled VTs entirely in the kernel (# CONFIG_VT is not set) to ensure no kernel messages or any other such crap will ever appear on screen May 24 06:28:12 I will start afresh May 24 06:28:35 which kernel is that? May 24 06:28:58 the ti one? May 24 06:30:04 we currently used a customized 4.14-bone series kernel May 24 06:30:06 *use May 24 06:33:21 do you think I should rebuil qt for beaglebone? May 24 06:33:28 *rebuild May 24 06:33:39 I certainly never did May 24 06:33:48 excellent May 24 06:34:13 do you cross-compile? May 24 06:35:43 I set up distcc to have the beaglebone delegate most of its compilation work to a build machine. it's not quite as efficient as setting up a "proper" cross-compile environment, but it's easy, works for everything without any hassle or magic, and is still a helluvalot faster than compiling on the beaglebone itself May 24 06:36:08 (preprocessing and linking is then still done on the bbb) May 24 06:40:06 now for the serious questions. There is a lot to be learned by me, so in your company (which I don't now what it has to do with) do you offer any training? or are you aware of any relevant resources , sites, companies etc.. May 24 06:40:27 I guess you're not using an arm server, but a qemu-arm instance or qemu-arm per process? May 24 06:41:17 .oO(could use the X15 as an armv7 dist-cc node) May 24 06:41:56 tbr: hm what? no, a beefy x86 machine of course May 24 06:42:27 with gcc-arm-linux-gnueabihf installed May 24 06:42:32 zmatt: so is distcc runnig a cross-toolchain or how does that work. I'm genuinely curious May 24 06:42:39 yes, a cross-toolchain May 24 06:42:56 ok, just didn't think that would be an option, very good to know May 24 06:43:07 thanks, TIL May 24 06:44:31 to make sure 'gcc' gets correctly distributed to arm-linux-gnueabihf-gcc I used some slight hackery May 24 06:45:36 https://pastebin.com/raw/bLv227Em May 24 06:46:54 I wish distcc were smart enough to automagically distribute to a compiler for the correct architecture, but the workaround is easy enough so *shrug8 May 24 06:47:30 doing this was a "holy shit why didn't I do this sooner" moment ;) May 24 06:48:30 zmatt let me rephrase the question. would you care to offer some training in these topics May 24 06:49:17 not really, beyond answering questions here (if and when I feel like it) May 24 06:49:45 zmatt: yeah, that's why I'm quite keen on understanding this. There might be usecases where this comes in really handy or makes things convenient in development. May 24 06:49:58 fair enough May 24 06:50:09 tbr: the usecase is: if you ever compile anything May 24 06:50:38 once you set this up, compiling natively on a beaglebone which doesn't feels painfully slow May 24 06:51:24 exactly May 24 06:52:19 some gotchas I've encountered: May 24 06:53:04 1. don't bother with distcc-pump if you're mostly doing small or incremental compile-jobs. its startup time tends to negate any benefits to compile time May 24 06:53:20 zmatt: actually that sounds totally like the blueprint for a container: "here, start this instance and your BBB will magically be able to compile natively FAST!!11!ONE" May 24 06:54:44 2. make sure that executables are created from .o files, and not by using compile-and-link invocations of gcc. e.g. put this in makefiles when necessary: https://pastebin.com/TxNSBKid May 24 06:56:57 3. don't use wildly different compilers and host and beaglebone. it is a good idea to use the same debian release on the build server as you're using on the bbb to ensure you get (approximately) the same toolchain May 24 06:57:05 *on host and beaglebone May 24 09:03:51 well... in the IoT image I installed xauth and now X11 forwarding works May 24 10:16:37 makes sense May 24 13:27:54 Are there examples on LCD Display with Touch? May 24 16:46:55 I'm trying to build a case for my new X15, are there any STEP or IGS versions of the beagleboard X15? Anything in the CAD line? May 24 18:27:07 I'm trying to reset my BB due to inoperative passwords. I have loaded the latest download to the micro SD and following the instructions as per elinux.org. I have used the debian user and temppwd to get into the system and trying to modify the file in nano. the problem is that the part of the file it states to modify does not exist. what do I do now? May 24 18:28:53 huh? May 24 18:29:23 JonIvan: you mean the eMMC-flasher-line is missing in /boot/uEnv.txt ? May 24 18:29:41 yes May 24 18:30:06 exactly May 24 18:30:10 that sounds odd, are you very sure? have you scrolled all the way to the bottom of the file? (which is where it normally is) May 24 18:31:04 here is an example /boot/uEnv.txt: https://pastebin.com/JVr005Cf the relevant line is the last line of the file May 24 18:31:33 sorry...this is missing [##enable BBB: eMMC Flasher: #cmdline=init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh} May 24 18:32:11 what's the filename of the image you downloaded? May 24 18:32:58 bone-debian-9.3-iot-armhf-2018-03-05-4gb.img.xz ? May 24 18:33:06 let me find it...just a sec May 24 18:35:53 Debian 9.3 2018-03-05 4GB SD IoT May 24 18:36:17 ok, I'm downloading and checking it right now May 24 18:36:57 thanks May 24 18:40:24 I don't know what to say, the line is right there May 24 18:40:28 line 61 May 24 18:40:42 at the bottom of the file May 24 18:41:22 ok..let me look at it again...i dont know nano very well... im only seeing a few lines...let me try to scroll May 24 18:42:23 I don't know nano very well either (I'm a vim user), but pagedown should work, or use the arrow keys May 24 18:43:57 ill try that...i still cant find it May 24 18:45:46 or use: sudo perl -pi -E 's/^#// and say "ok" if /init=.*flasher/' /boot/uEnv.txt May 24 18:45:46 i see it now...it replaces BBB with generic...thanks May 24 18:46:13 oh sure those are just comments May 24 18:46:33 the cmdline=init= line is what matters May 24 18:46:55 ok...i forgot how to use vim...lol... back to nano...lol May 24 18:47:28 vim has some learning curve, but it's really powerful when you get the hang of it May 24 18:47:29 whats the exit command? May 24 18:47:39 And vi works everywhere. May 24 18:47:42 :q May 24 18:47:54 im actually watching videos and learning it at the moment...thanks May 24 18:47:56 or :wq for save-and-quit May 24 18:48:05 save-and-quit also has the shorthand ZZ May 24 18:48:20 I often use :q! to toss changes if I want to be sure not to muck something up. May 24 18:48:48 yeah, quit while discaring changes is :q! but vim will tell that if you try :q while there are unsaved changes May 24 18:48:54 iremember now... :q! quits with no saving May 24 18:49:25 also if you try to exit by using control-C, vim will actually remind you on how to save and exit May 24 18:49:31 sorry no, exit without saving May 24 18:49:44 for people who stumble into vim accidently :P May 24 18:50:48 Don't hit CTRL-S. It puts it in a mode that's easy to get out of if you know how, but it appears unrepsonsive. I think CTRL-Z may be the magic. I always have to look it up. May 24 18:50:55 lol...thanks.. if your interested im building an 1860's clock to run on a BBB.. JonIvanArt.com thanks again! May 24 18:51:01 control-Z is suspend to background May 24 18:51:12 Ok. That's not it then. (grin) May 24 18:51:23 ctrl-S ctrl-Q aren't a vim-thing btw, they're a terminal thing and can be disabled May 24 18:51:39 Ah. Good to know. I just know I only hit it in vi. May 24 18:52:40 stty -ixon May 24 18:53:01 will disable ctrl-S/ctrl-Q May 24 18:53:07 Cool. Thanks! May 24 18:53:31 I have no idea who thought it was a good idea to enable it by default May 24 18:54:53 Me either, but in years of doing 'nix I have literally only had issue in vi, when I hopping back and forth from Kate to vi, or TextPad & vi, or something else GUI & vi, and forget it doesn't work. May 24 18:55:46 yeah I can imagine that going between gui and tui editors can trigger this May 24 19:00:03 now the BBB sterts up then automatically shuts down...grrr May 24 19:00:34 JonIvan: without flashing? or do you mean after reflashing? May 24 19:00:48 because it will automatically shut down when flashing is complete May 24 19:00:56 after the reflash and reboot without the SD installed May 24 19:01:46 that sounds really odd May 24 19:02:14 thats weird....it didnt shutdown after the flash...did i leave not leave it in long enough May 24 19:03:01 how long should it take? May 24 19:03:28 not sure, but more than a few minutes May 24 19:03:45 when the flasher starts there's a very recognizable "cylon" / "knight rider" led pattern May 24 19:04:41 when it's done all leds turn on for a bit and then it powers off May 24 19:04:50 k...ill retry it.... i was connecting through putty so i thought it was done...maybe i shouldnt have done that?? LOL! May 24 19:05:38 hm, curious, I wouldn't expect you can connect via putty when the flasher is running, but I may be wrong (never tried it) May 24 19:07:35 the flash instructions don't say that it will power off so i figured after it was done it would connect... May 24 19:08:55 older flashers ended with all leds on (you then had to power it off yourself), newer ones power off automatically May 24 19:10:30 thanks @zmatt it's still on so I'll get back later. I have 2 BBB that need this done...L8tr! May 24 19:31:57 i realized i had made the wrog changes to the SD card file so no im trying to save the change and it keeps saying permission denied May 24 19:32:24 did you start the editor as root? (prefix the command with "sudo") May 24 19:33:37 i thought that but it said to log in as debian May 24 19:34:38 yes, log in as debian, but prefix the command with "sudo" May 24 19:35:11 the problem and the reason for all this is to try to reset the BBB because the password is not working. I can't get into root as the user May 24 19:36:14 you can't log directly into the root account, you log in as "debian" and use sudo to elevate your privileges for commands that need it May 24 19:36:51 oh...ok...ill try that May 24 19:38:21 @zmatt WOW! Lol! that worked...of course! LOL! Back to reflash...thanks again May 24 19:58:10 @zmatt rebooted and reconnected. Still cannot login as root. Any suggestions? i tried no password and temppwd May 24 20:19:18 21:36 < zmatt> you can't log directly into the root account, you log in as "debian" and use sudo to elevate your privileges for commands that need it May 24 20:21:35 elevate privileges? what do I search for to find the commands for that? May 24 20:22:33 "and use sudo to elevate your privileges" May 24 20:22:35 ^^^^ May 24 20:22:42 woops, fucked up the alignment May 24 20:22:48 lol May 24 20:23:07 but seriously, try actually *reading* May 24 20:23:28 The 'nix standard is login as user, sudo for rooty things. May 24 20:23:40 im a newbie. I get the sudo but are you saying cd ~? May 24 20:23:50 ??? May 24 20:24:05 what are you doing that needs root privileges to begin with? May 24 20:24:08 most things don't May 24 20:24:47 editing /boot/uEnv.txt is an example or something that does, hence you use "sudo vi /boot/uEnv.txt" or "sudo nano /boot/uEnv.txt" or whatever to edit it May 24 20:24:57 same thing for other commands that really need to be run as root May 24 20:25:08 im just following a video and it says to be logged into root. May 24 20:25:22 link? May 24 20:26:03 https://www.youtube.com/watch?v=c81tmb7WJxw&list=PLGs0VKk2DiYyThNvj6VyDFmOnQ8ncXk8b&index=2 May 24 20:27:07 that guy -.- May 24 20:27:36 note also that instructions from that long ago are unlikely to still be correct May 24 20:27:46 LOL! I don't understand why I can't automatically be root as the purchaser of the product anyways? Why all this to be root user? May 24 20:28:05 you can be, it's just unnecessary and bad practice May 24 20:28:13 it's way easier to accidently hose the system when logged in as root May 24 20:28:34 so it's an *especially* bad idea to do so if you're a newbie May 24 20:28:57 oh...got ya...so I should be able to do whatever he says under debian or a user I create right? May 24 20:29:14 user debian is already setup with extensive privileges May 24 20:29:24 including the ability to configure and use gpios and other peripherals May 24 20:29:43 and the ability to invoke sudo May 24 20:30:07 and, for the rare case that sudo is really necessary, the ability to invoke sudo May 24 20:30:08 Cool! Thanks again! I'll post to the video for him to make a note.... May 24 20:30:10 jonIvan: Yes - in fact you should only use the regular login as much as possible. The guy has remote login as root which is a HUGE no-no in the world of linux security May 24 20:31:31 dang..I use root all the time....LOL! Kidding... May 24 20:32:13 thanks again! L8tr May 24 20:32:35 also ignore the tightvnc stuff in his video May 24 20:33:40 and the driver install stuff (which is also no longer needed) May 24 20:34:04 and those are basically all the things I saw in the few seconds I looked at the video :P May 24 20:44:21 Hello, May 24 20:44:37 Small question about HDMI licensing, is beagleboard a HDMI Adopter? May 24 20:45:25 isn't any licensing stuff taken care of by the manufacturer of the hdmi framer IC ? May 24 20:46:47 From my reading I think it's final manufacturer who should have the license May 24 20:47:14 But I'm not sure about that, that's the point in asking the question :) May 24 20:49:07 well you don't need the hdmi specs when you use a hdmi framer, the beaglebone has no use for hdcp, so afaict you'd basically just be paying a lot of money for... the logo maybe? I very much doubt anyone cares May 24 20:51:09 yeah it looks like you'd be paying $5K/year + royalty just for the right to bear the trademark May 24 20:51:28 I'm leaning towards "probably not" ;) May 24 20:51:43 but maybe I'm wrong, who knows May 24 21:52:41 why i?s my BBB starting in the X window if gnome is installed May 24 21:53:24 oops ^^^ May 24 23:44:59 JonIvan: ??? May 24 23:47:42 the iot image you flashed doesn't include x11 (since it isn't useful for most bbb users), but for those few users that really do want a desktop environment there's the lxqt image. (which, as the name suggests uses lxqt, not gnome) **** ENDING LOGGING AT Fri May 25 03:00:03 2018