**** BEGIN LOGGING AT Thu Mar 12 02:59:57 2020 Mar 12 03:01:15 Travel restrictions starting Friday from Europe to US !!! Mar 12 03:02:28 Gotta go. Been sick all day. Mar 12 03:03:19 night... know the feeling. Mar 12 03:10:53 Oh. Mar 12 03:18:35 hey Mar 12 03:19:25 if I send an echo through my UART and I have another terminal listening it goes nuts Mar 12 03:19:57 nuts in that way more than what I echoed goes through Mar 12 03:23:07 Have you tried a single symbol? try the O symbol (just one symbol) Mar 12 04:39:38 MattB0ne: try making sure the termios are sane, e.g.: stty -F /dev/ttyS4 sanw raw -echo cs8 -cstopb -parenb -crtscts 115200 Mar 12 04:40:03 that last number is the baudrate and should match whatever you're using for the other side Mar 12 04:40:42 oh, type, I meant: stty -F /dev/ttyS4 sane raw -echo cs8 -cstopb -parenb -crtscts 115200 Mar 12 04:40:45 *typo Mar 12 04:41:01 (*sigh* making a typo in the word "typo" ... ) Mar 12 10:35:14 hi, I'm begineer in beaglebone , I want to compile pru code in BeagleBone AI with AM5729 processor. Is there anyone to help me? Mar 12 10:43:56 also I checked PRU code in /var/lib/cloud9/BeagleBone/AI/pru. but make command failed Mar 12 10:45:29 error: cannot find file "/usr/share/ti/starterware/pru/libdrivers.a"error: errors encountered during linking; "/tmp/cloud9-examples/bitflip.pru1_1.out" not built/var/lib/cloud9/common/Makefile:196: recipe for target '/tmp/cloud9-examples/bitflip.pru1_1.out' failedmake: *** [/tmp/cloud9-examples/bitflip.pru1_1.out] Error 1rm Mar 12 10:45:29 /tmp/cloud9-examples/bitflip.pru1_1.o Mar 12 13:06:01 m Mar 12 18:13:13 There is already "buzz" about the ideas circulating for this CNC Cape that may be produced. Nice. Mar 12 18:14:03 For me, I think this is a good idea. I see the Machine Kit community doing a lot of back and forth in discussions. Mar 12 18:16:44 I typed "for me" b/c of the fact that CNC is "exciting, used commonly, and can be changed to other grid-plate services." Mar 12 18:20:17 I have used the RepliCape at times for 3D Printing and Basic Motor Configuration w/ Live G-Code and M-Codes. Mar 12 18:21:29 Now, something that can handle a Brushless Servo would be "splendid." Mar 12 19:56:26 Is there a way for the BBGW to get enough power to provide a small webcam w/ power so I can view the tiny crowd and onlookers at the Maker Faire? Mar 12 19:56:54 I got it done w/ the BBBW but not w/ the BBGW. Mar 12 20:01:06 brb...I need to test this little bot on my chromebook. Mar 12 20:21:12 zmatt: that worked! You da man. Mar 12 20:21:25 how long have you been doing this Mar 12 20:49:19 Okay. Mar 12 20:50:00 So, I have figured out my bot works but not w/ the USB Cam connected (whether the .service file is running on boot or not for the cam) for some reason. Mar 12 20:50:23 Does anyone maybe know why my entire bot works but not w/ USB Cam connected? It seems a bit odd. Mar 12 20:51:21 Okay. Device name changed? Mar 12 20:53:48 I have loading an SD card into SD socket it's mmcblk0p1 however when on a USB card reader it shows up as sda. Mar 12 20:54:05 Me first! Mar 12 20:54:08 Hahahha. Mar 12 20:54:32 Oh. Mar 12 20:54:39 lsblk or lsusb any help? Mar 12 20:54:53 You have different naming schemes for different machines? That makes sense right? Mar 12 20:55:21 Yes but, it makes it harder to manage Mar 12 20:55:45 Anyway, I think four USB ports on the BBGW is kill (overkill) and done. None of them work unless there is a five volt supply somewhere. Mar 12 20:55:56 I guess I have to learn how to manage USB power now. Gosh. Mar 12 20:56:18 Get a powered USB hub Mar 12 20:56:55 I could but the dang BBGW comes w/ four USB ports. Mar 12 20:57:07 That would be a shame to use a hub for such a nice board. Mar 12 20:57:29 Plus, my bot would need room for the hub. No such luck on my end. Mar 12 20:57:29 Hummm. Is the BBGW externally powered? Mar 12 20:57:44 It can be via Cape and via some hardware. Mar 12 20:58:15 I think gets the road your going to have to follow. Mar 12 20:58:25 I need to figure out this hardware setup to power the usb ports, well one of those ports, and then see if that works. Mar 12 20:58:41 See. Mar 12 20:58:48 The BBBW has a barrel jack. Mar 12 20:59:17 I can plug in a barrel jack to external power supply to supply enough current to the USB powered Cam. to make it work. Mar 12 20:59:27 And this is all while powering four motors. Mar 12 20:59:45 Aw hell. Off to learn. Mar 12 20:59:58 Wait. Mar 12 21:00:03 There is a powerCape too. Mar 12 21:00:14 How were you powering BBGW before? Mar 12 21:00:28 12v Lead Acid and Motor Bridge Cape. Mar 12 21:00:53 But did that power BBGW? Mar 12 21:00:57 Yes. Mar 12 21:01:04 It does at five volts. Mar 12 21:01:09 So, the board can function. Mar 12 21:01:36 Sounds like there is some current limiting going on Mar 12 21:02:00 Yep and it is directed at those "pesky" USB ports. Ha! Mar 12 21:02:17 I mean, USB ports. Mar 12 21:02:19 Ha Mar 12 21:02:50 KenUnix: What is the battery supply needed to support 5v input on my BBGW so I do not blow it to smithereens? Mar 12 21:03:04 "By accident, of course." Mar 12 21:03:09 You need to add up the current for the capes, motors Mar 12 21:03:14 Oh. Mar 12 21:03:22 You are right. Mar 12 21:03:30 B/c, the board is being powered too. Mar 12 21:03:46 yes, total current in amps Mar 12 21:04:22 So, 5v! Mar 12 21:04:34 The board is being powered but the USB ports do not have enough current. Mar 12 21:04:48 I need to figure out how to power the USB ports. Mar 12 21:05:04 Do you know USB? Mar 12 21:05:17 Which one of those little buggers is power and GND? Mar 12 21:06:05 That would be an open source q & a for Seeed Studio. Mar 12 21:06:07 I guess. Mar 12 21:07:07 It is their BBGW produced w/ the USB hubs on the board. I need to figure it out. Off to the schematic! Mar 12 21:07:27 I don't remember off hand but there is power & data pins. Not all machines put out much surrent to USB. Look at BBGW specs. Mar 12 21:08:09 Okay. Mar 12 21:08:52 ABout your issue, you might have to settle for different machines calling different connections, like COM 3, different labeled names. Mar 12 21:10:14 I'll be back... Mar 12 21:13:33 Okay. Mar 12 21:44:14 set_ ever use the fsck command? Mar 12 21:46:00 I have come up with a method to copy the Sd-Card image to another SD-Card Mar 12 21:47:28 In my workings I have found out that the fsck command is not working. It complains about a D Mar 12 21:47:59 D? Mar 12 21:48:15 Nope. Mar 12 21:48:21 Nice. Mar 12 21:48:25 OS partition label and can't read superblocks. fsck is important to fix file systems. But no work on BBB Mar 12 21:48:38 Sort of. Mar 12 21:48:47 I used it once b/c of U-boot. Mar 12 21:48:54 KenUnix: did you again pass the whole drive instead of the partition? Mar 12 21:49:00 I messed up my partition and used it. Mar 12 21:49:06 I just remembered. Mar 12 21:49:35 KenUnix: rest assured the fsck command works fine. if it's not working, you're using it wrong Mar 12 21:50:39 I was mistaken again with sda and sda1, sorry Mar 12 21:51:28 You better be sorry, I will tell my mother. Mar 12 21:53:01 So what I did was remove SD card and boot off eMMc then insert SD card and insert second SD card via USB adapter. Not a good idea to 'dd' a live file system, then Mar 12 21:53:09 sudo date;dd bs=4M if=/dev/mmcblk0 of=/dev/sda;date Mar 12 21:53:56 It took about 45 minuyes Mar 12 21:54:50 Remove second SD card and reboot on SDcard Mar 12 21:55:57 how big is the sd card you were copying? Mar 12 21:56:15 Clas 10 32GB Mar 12 21:57:06 oh then 45 minutes is not even that bad Mar 12 21:57:14 Instead of 'date' , 'time' did not work Mar 12 21:57:38 how did it "not work" ? Mar 12 21:57:50 you just put "time" in front on the command you want to time Mar 12 21:58:50 I was reading on google BBB site they recommend using Class 4 SD-Card if you are running off it. Lemme see, wait. Mar 12 21:59:28 you should probably add conv=fdatasync next time so dd will ensure data has actually arrived on the destination (and will wait for it) Mar 12 21:59:31 sudo: time: command not found Mar 12 21:59:59 time sudo dd, not sudo time dd Mar 12 22:00:14 time is a shell built-in, not a command that sudo can execute Mar 12 22:00:37 Well that explains it Mar 12 22:01:20 sudo time dd bs=4M if=/dev/mmcblk0 of=/dev/sda Mar 12 22:02:36 but why bother with time, dd will itself print statistics at the end Mar 12 22:04:02 Yep. 32010928128 bytes (32 GB, 30 GiB) copied, 2664.39 s, 12.0 MB/s. Can I assume 2664.39 s is seconds Mar 12 22:04:14 that is what it means Mar 12 22:04:43 and that "12.0 MB/s" means 12000000 bytes/s, not 12*1024*1024 bytes/s Mar 12 22:05:46 Got you. Thanks. set_ you writing this down? Mar 12 22:06:08 so that's 50% of the interface speed of the BBB's sd card slot... I wonder what the limiting factor is... it might be the write speed of the other sd card, or perhaps the crappy usb driver Mar 12 22:06:41 While I'm here let me try it again with the conv option. Time for dinnder Mar 12 22:08:34 It's running now (Dinner rime) : Mar 12 22:08:38 sudo dd conv=fdatasync bs=4M if=/dev/mmcblk0 of=/dev/sda Mar 12 22:57:03 32010928128 bytes (32 GB, 30 GiB) copied, 2664.39 s, 12.0 MB/s Mar 12 22:58:14 zmatt, remember the second SD card is in a SD adapter plugged into a USB 2.0 hub & WiFi adapter plugged into the BBB USB port. Mar 12 23:24:59 ehm, yes I'm aware the BBB doesn't have two sd card slots :P also I mentioned usb as one of the candidates for being a bottleneck Mar 12 23:28:18 Well maybe I'll try it with Class 4 SD-Card. Mar 12 23:32:42 OK it's running on a Class 4 SD card Mar 13 00:24:13 Write to sda trouble : dd: fdatasync failed for '/dev/sda': Input/output error Mar 13 00:24:46 Trying without fadasync Mar 13 00:25:45 Additional message : 13126.104690] print_req_error: I/O error, dev sda, sector 25520160 Mar 13 01:00:16 Me thinks Class 4 & Class 10 32GB slightly different in size based on fsck results Mar 13 01:00:41 The filesystem size (according to the superblock) is 7814144 blocks Mar 13 01:01:03 The physical size of the device is 7790720 blocks Mar 13 01:01:26 Either the superblock or the partition table is likely to be corrupt! Mar 13 01:02:15 Humm, how to deal with this? Mar 13 01:02:54 Original image on a Class 10 SC Card. Seond card is Class 4. Mar 13 01:07:28 the 32GB is a nominal number... even cards of the same brand and spec can vary Mar 13 01:07:52 one trick is to make your image smaller then the smallest of that size and do a manual expansion Mar 13 01:08:07 think Yocto has made that expansion automatic Mar 13 01:15:09 KenUnix: when pasting kernel errors be sure to find the *first* error and share plenty of context around it... or just share the whole kernel log Mar 13 01:15:29 oh, you actually ran out of space Mar 13 01:15:46 yeah the actual size a "32GB" card is will vary from card to card Mar 13 01:16:42 what I do is shrink the filesystem to minimum size, erase and partition the destination, copy the minified filesystem into the new partition and expand it to fill the partition, and finally copy the bootloader (or install a fresh one) Mar 13 01:18:30 which seems to work well enough. Mar 13 01:20:20 Yep it failed again. Mar 13 01:21:12 Would staying with the same brand and SD card offer hope. That's how I image PC hard drives Mar 13 01:23:07 zmatt, do you have something you could put up on pastebinit? Mar 13 01:25:32 That would explain why the W32... method has some steps. Mar 13 01:25:39 https://pastebin.com/CVbTQmM4 Mar 13 01:28:23 note that some commands act on the full disks while others act on the partitions, so pay close attention to that Mar 13 01:30:02 Yea, I'm bad at that... My sole purpose is to create a clone (backup). Mar 13 01:31:04 Thanks for the notes. Your a fast typer. Mar 13 01:31:28 it helps that I have scripts that do some of these steps Mar 13 01:35:54 Is there a reason this line is in red : echo 'start=8192,bootable' | sfdisk /dev/sda Mar 13 01:36:22 ? Mar 13 01:36:26 in red? Mar 13 01:37:14 This 'start=8192 was in red Mar 13 01:37:50 probably because whatever text editor you're using has bash syntax highlighting enabled and is coloring quoted strings red? Mar 13 01:40:10 Yep, that's it. I'm only looking at it on the web page. Mar 13 01:40:36 weird, it's definitely not red here Mar 13 01:41:03 oh maybe because I'm using dark theme Mar 13 01:41:28 yeah that's it Mar 13 01:42:04 I forgot what a hideous color scheme the light theme uses Mar 13 01:46:56 Well tomorrow I'll try your method. Let you know how it works. One question. Regarding the bootloader. That is a fixed location & size? yes! Also you are copying boot loader from eMMc Mar 13 01:48:11 I'm wrong again. Mar 13 01:48:21 I'm copying from the source card to the destination card as you can tell from the example paths, since whatever bootloader is on these is presumably correct for those linux systems Mar 13 01:48:41 *for the linux system that has just been copied over Mar 13 01:50:20 OK. As I said I will try tomorrow ... **** ENDING LOGGING AT Fri Mar 13 03:00:43 2020