**** BEGIN LOGGING AT Fri Jul 21 03:00:02 2017 Jul 21 13:02:57 Hi guys, I would like to connect to the BBB via USB (serial) from OSX. Jul 21 13:03:30 I do not want to use RNDIS because in OSX that is not working well Jul 21 13:04:07 If i understood well, to transport serial over the USB cable I must use the FTDI module Jul 21 13:04:52 ok, when I try to run modprobe ftdi_sio Jul 21 13:05:06 echo "1d6b 0002" > /sys/bus/usb-serial/drivers/ftdi_sio/new_id Jul 21 13:05:33 I get no error messages but still, there is no file /dev/ttyUSBX Jul 21 13:05:40 under osx ? Jul 21 13:05:50 osx should recognize the ftdi cable Jul 21 13:06:16 let me explain a bit better Jul 21 13:06:59 when i connect OSX to BBB with the USB-usb cable OSX (with all the drivers needed) recognizes the BBB and gives it an IP Jul 21 13:07:18 ok Jul 21 13:07:34 it works, but it works quite badly on El Capitan Jul 21 13:07:43 ok Jul 21 13:08:05 so, I removed the HORDNIS driver from OSX and I left there the FTDI driver Jul 21 13:08:32 that's why I plugged a ftdi cable in the mac and wired the BBB on the serial console Jul 21 13:08:53 because i don't need an IP for the BBB, i need to log there with minico, scree, cu ... that is enough Jul 21 13:09:00 the header 6 close to the P9 Jul 21 13:09:28 yes, yes Catslab, i own 2 cables like that, they work super Jul 21 13:09:53 but, it would be great if with a single cable i could give power to a BBB and also log in via serial Jul 21 13:10:08 sincerely I never tried :) Jul 21 13:10:08 e.g. for debug purposes Jul 21 13:10:17 umm :) Jul 21 13:10:33 I just use the serial console Jul 21 13:10:46 not the usb turned into serial Jul 21 13:10:48 ok, give me 5 minutes, i want to do an experiment ... I will be back Jul 21 13:14:38 ok, if I connect a BBB (without mmc) to OSX [now i have removed HORDNIS there] with a single USB cable Jul 21 13:15:01 i see in OSX the file /dev/tty.usbmodem24133 appears Jul 21 13:15:22 and, i can log into the BBB as usual with screen or other programs Jul 21 13:15:35 that is great because i don't need separate cable Jul 21 13:15:52 now, the problem is Jul 21 13:16:04 how the hell is BBB doing that ??? :) Jul 21 13:16:51 which file / script / systemd service is doint it Jul 21 13:16:53 ? Jul 21 13:17:02 I can't sort it out ! Jul 21 13:17:37 mmm Jul 21 13:17:43 I installed another Debian dist. on mmc card, set multiuser as default level and I lost this function Jul 21 13:17:53 ok so you were booting on a sd card ? Jul 21 13:18:22 when the system works, the experiment before, i was booting from emmc Jul 21 13:18:49 now, i booted from mmc, with my own system set up ... and it does not work Jul 21 13:20:01 it must be related to g_multi module or ftdi module Jul 21 13:20:50 sure Jul 21 13:20:58 I'm trying ot have a look at my notes Jul 21 13:21:05 thanks ! Jul 21 13:23:06 it's all about usb gadget Jul 21 13:24:41 did you disabled udhcpd on your mmc ? Jul 21 13:24:45 https://eewiki.net/display/linuxonarm/BeagleBone+Black#BeagleBoneBlack-usbgadget Jul 21 13:25:00 the ip over usb comes from that part Jul 21 13:26:22 ok, i found something Jul 21 13:26:41 yes, i disabled udhcpd and all automatic network services i could Jul 21 13:26:44 ok Jul 21 13:26:58 because they were messing up my fixed IP and route configs Jul 21 13:27:24 but, i see right now the main point is that i disabled a script as well Jul 21 13:27:27 I never used that because I was using BBB on batteries Jul 21 13:28:08 that is /opt/scripts/boot/am335x_evm.sh Jul 21 13:28:55 oh, on batteries, you must have good ones;) Jul 21 13:29:25 now i re-enabled the script am335x_evm.sh and i can do the login Jul 21 13:29:55 nice :) Jul 21 13:30:07 :) Jul 21 13:30:10 yes using the BBB in a case Jul 21 13:30:19 16 Ah lipos :) Jul 21 13:31:48 interesting, what do you use it for ? Jul 21 13:32:15 data acquisition Jul 21 13:32:26 high speed using ADC on prus Jul 21 13:32:50 what is "prus" Jul 21 13:32:51 ? Jul 21 13:33:30 PRU Jul 21 13:33:41 the logicial units you have on the BBB Jul 21 13:33:54 that you can programm in asm Jul 21 13:34:10 ah, great ! I must still learn how to use them Jul 21 13:34:33 ah they run at 200Mhz, I use them to pilot the ADCs, grab the data and share in ram with the software Jul 21 13:34:33 I know they exist and what they are for, nothing more Jul 21 13:35:23 Luckily for me, ma data does not come so fast;) Jul 21 13:35:38 ahahah Jul 21 13:37:34 Now one little problem remains, I don't want the BBB to expose the disk when i connect a laptop to it Jul 21 13:38:12 that was the first reason i excluded the script am335x_evm.sh some time ago Jul 21 13:39:19 ... i will look for a solution, now i must go on main track Jul 21 13:39:34 thank you for your support Catslab Jul 21 13:39:43 c u in the future ! Jul 21 13:39:47 bye Jul 21 14:52:05 Why do you use the PRU's to pilot the ADCs? Jul 21 14:52:28 I mean, over the TI ADC driver. The ADC has it's own DMA trigger so... Jul 21 15:00:01 I need some help changing the uEnv.txt to flash a new image. Do I change the uEnv that is located on the BBB prior to flashing or modify the image to be flashed? Thanks. Jul 21 15:05:23 hi :) where do i have to look if my bbb doesn't boot from emmc but only from sdcard. when I boot from emmc there is no u-boot output on the serial console but just this "CCCCCCCC". is there a troubleshooting resource for something like this? :) Jul 21 15:08:48 knttl: CCCCCC is the signal when it expects you to upload something over serial, that means it didn't find anything useful to boot from. Jul 21 15:09:05 knttl: Either your emmc is dead, or it's been overwritten/corrupted and there's nothing there to load from Jul 21 15:09:39 Spidler: okey. thanks. now i know what the output means :) Jul 21 15:09:55 knttl: if it boots from sdcard, you can try to mount the eMMC that way and check that it works Jul 21 15:10:10 knttl: then, if it's okay, just overwrite it with a "fresh" image and test. Jul 21 15:10:35 in my case i've exaclty copied the contents fo the sdcard to emmc. so when sdcard works emmc should work, doesn't it? Jul 21 15:10:50 "Should" is an amazing thing :) Jul 21 15:10:57 Can you mount it from the sdcard? Jul 21 15:11:24 So, if you boot the sdcard, can you mount and access the eMMC? Doing that would verify that the hardware works, which is always step one. Jul 21 15:11:28 Spidler: yes i've mounted it. Jul 21 15:11:49 Then I'll assume that what you copied from the sdcard to the eMMC wasn't what you intended, and that it's not complete :) Jul 21 15:12:41 following the arch-arm procedure involves mounting and extracting. maybe i got. the /dev/mmcblk* somehow mixed up. will do it another time, to be 100 sure :D Jul 21 15:13:19 Spidler: thanks for your advice so far :) Jul 21 15:13:32 I'd just download a fresh minimal image and do " dd if=image.img of=/dev/I_AM_REALLY_REALLY_REALLY_SURE_THIS_IS_THE_EMMC bs=1M oflag=sync status=progress " Jul 21 15:13:50 Where you, of course, make sure that you are really really sure that it's the emmc root. Jul 21 15:14:48 I generally do not recommend overwriting your currently mounted system with a fresh image while it's booted and mounted read/write. The results are haphazard, painful, and usually incomplete. ( Yes, I've done it a few times. ( Jul 21 15:19:18 I'm kicking off, tata. Jul 21 15:25:18 knttl Can you provide some guidance on modifying the uEnv.txt? Thanks. Jul 21 15:26:31 adugenske: shit.. i've just broken my sdcard -.- will take a while to proceed now :D Jul 21 16:14:12 Spidler: bs=4M Jul 21 16:15:54 knttl: don't dd a mounted image onto the bbb. assuming you're using one of the official images, you can uncomment one line in /boot/uEnv.txt to turn the sd card into a flasher card which will flash onto eMMC Jul 21 16:16:57 it actually sounds like you didn't copy u-boot onto the eMMC (which lives outside the filesystem) Jul 21 16:20:36 zmatt To make the image into a flasher, do I edit the /boot/uEnv.txt on the SD card in the BBB? Jul 21 16:20:46 yes Jul 21 16:21:06 see http://elinux.org/Beagleboard:BeagleBoneBlack_Debian#Flashing_eMMC Jul 21 16:22:22 zmatt I've read that link, but didn't know the location of the uEnv. I know noob. Jul 21 16:22:47 for fresh installs you can also just download a flasher image Jul 21 16:23:25 (links are on that same wiki page, search for "Flasher") Jul 21 16:23:57 zmatt I installed the 07-01 flasher version, but nod-red doesn't seem to work on it. So I was trying to go back to the march version. Jul 21 16:24:11 hm, ok Jul 21 16:24:52 zmatt How do you mount the SD card so it can be edited? Sorry for the basic ?s Jul 21 16:25:51 older flashers are still available too btw, you just need to look around on the download repository, https://rcn-ee.com/rootfs/bb.org/testing/ Jul 21 16:26:43 the flashers are (weirdly) named "BBB-blank-debian-$VERSION-$VARIANT-armhf-$DATE-$SIZE.img.xz Jul 21 16:27:22 you can just boot from the sd card and then edit /boot/uEnv.txt Jul 21 16:28:16 zmatt Ah, boot from SD, edit file, save, reboot. Jul 21 16:29:44 On a different topic, do you know who is maintaining node-red for the BBB? Would really to use it, but there appear to be bugs. Jul 21 16:29:46 mounting it also not hard Jul 21 16:30:44 you first create a suitable mountpoint if one doesn't already exist. in general any empty directory can be used as mountpoint, but typically one uses a subdirectory of /mnt, for example /mnt/sd Jul 21 16:30:59 and then sudo mount /dev/mmcblk0 /mnt/sd Jul 21 16:31:14 the /boot/uEnv.txt of the sd card would then be /mnt/sd/boot/uEnv.txt Jul 21 16:31:33 unmount with sudo umount /mnt/sd (note: "umount", not "unmount") Jul 21 16:31:53 zmatt Thanks a bunch! I've been searching and trying things for ~week. Jul 21 16:31:57 and I know absolutely nothing about node-red Jul 21 16:32:28 No worries about node-red. You've been a huge help! Jul 21 16:33:01 instead of going to an older image you can also check for updates, if the BBB has internet connectivity Jul 21 16:34:17 That was my first technique, but some updates seemed to break certain functionality. It may be going to node v 8.0 was a bridge too far. Jul 21 16:34:52 updating node across major versions usually breaks installed packages Jul 21 16:35:11 fixing that may be as simple as doing 'npm i' in the right directory to reinstall relevant packages Jul 21 16:36:58 hmm, looks like node-red isn't really a debian package Jul 21 16:37:09 rather, rcn made a "bb-node-red-installer" package Jul 21 16:37:21 so I guess complaints about it should go to him Jul 21 16:38:20 zmatt Yes, NR is not a debian package. Do you have RCN vitals? Jul 21 16:40:28 apt show bb-node-red-installer | grep Maintainer Jul 21 16:40:29 :) Jul 21 16:45:21 btw, node 8 itself works fine on bbb, we use it ourselves. but like I said, updating node often also requires updating or reinstalling packages (specifically binary packages written in C++). and doing "npm i" in any non-trivial project is something for which you'll want to make sure there's enough free disk space and you can grab a coffee Jul 21 16:45:30 since, well... npm. http://www.devhumor.com/media/monkeyuser-npm-package-delivery Jul 21 16:53:19 zmatt Thanks and sorry for the noob questions. Just needed a couple of pieces to the puzzle. Jul 21 16:53:30 no prob Jul 21 18:11:03 Spidler: it seems the sdcard was bricked before. so the u-boot image and MLO were never really written into emmc, but dd didn't produce any errors. Jul 21 18:11:26 thanks for your help :) **** ENDING LOGGING AT Sat Jul 22 03:00:03 2017