**** BEGIN LOGGING AT Wed Feb 17 02:59:56 2021 Feb 17 18:20:39 Hi , I am trying to use spi driver on bb sanclloud , but Feb 17 18:21:04 i cannot control spi1_cs and  clock, how I Feb 17 18:21:42  can control them. I Feb 17 18:21:42  am usin spidev_tes.c program to test my spi in loopback mode Feb 17 18:22:07 spi1_di connnected to spi1_do Feb 17 18:22:13 thanks Feb 17 18:24:34 Hi , Feb 17 18:28:40 I would like to find out what I need to do with beaglebone sancloud to run spidev_test.c. I connected oscilloscope to sp1_sclk , spi1_cs0 and connected spi1_do with spi1_di , I am triggering on cs0 but trigger is not trigerring and runnun test cannot read and data. How I can control cs0 and clock signals ? Feb 17 21:12:15 GenTooMan: My 3/4 violin is made! Feb 17 21:12:31 3D Printing a new fellow that is very elusive. Feb 17 21:12:43 I have not met him yet but time will tell! Feb 17 21:13:07 SOrry. The fellow is elusive. Feb 17 21:13:16 The 3D Model is done! Feb 17 21:21:53 anyway, I thought I would let you know in case you have any links on 3D prints and ideas. I need to sand it, add some set screws, and get a rod for it. Right now, it is just pieces and those pieces cannot be put together just yet. Feb 17 21:32:50 bbl! Feb 17 22:41:40 here is that f-f-fiddle I had made in a smaller size, 3/4 instead of 4/4, https://openfabpdx.com/fffiddle/. Feb 17 22:42:08 Open Source in hardware like beagleboard.org and opem schematics for most of the items so people can build them. Feb 17 22:42:14 Is that neat or whatW? Feb 17 22:49:20 Anyway, I thought it was sharing-is-caring day. All for now. Feb 17 23:20:21 I was wondering if anyone might be familiar with the full process of how the USB gadget, LAN is configured on the BeagleBone Black. I have an image that has been altered by a vendor to disable the stock configuration giving the beagle its ability to create the LAN subnet and network adapter on window's PC's. I would like to turn this feature back Feb 17 23:20:21 on for some testing. I'm still waiting for the vendor's response, but in the mean time would like to see if I could get this working. Feb 17 23:20:47 why not just reflash the beaglebone? Feb 17 23:21:17 (with a stock image) Feb 17 23:21:29 what detail do you need? Feb 17 23:21:30 i still need it to function as is for another purpose, i would just like to add another piece for something else if possible Feb 17 23:21:46 best way to reach the vendor is here. ;-) Feb 17 23:21:58 jkridner[m]: presumably with "vendor" he doesn't mean beagleboard.org Feb 17 23:22:03 i've checked the /opt/scripts/boot/am335x_evm.sh configs and they seem identical without going through every line Feb 17 23:22:20 that is correct not beaglebone.org, i did reach out as well Feb 17 23:22:23 oh Feb 17 23:22:45 Paul60: does it show up as usb gadget at all? Feb 17 23:23:19 I'm waiting for the vendor to get back to me still. The device will show as a mass storage, but i do not get the network adapter and LAN connection Feb 17 23:23:25 of course if this is a customized system for an appliance that happens to embed a beaglebone, messing with it may not be the smartest thing Feb 17 23:23:53 i have a test device, as to if i were to mess something up. i could also just reimage Feb 17 23:24:15 is it maybe just disabled in /etc/default/bb-boot ? Feb 17 23:24:37 what i would like to know is the pieces of where the configuration is held? Feb 17 23:24:42 i will check that, thanks Feb 17 23:24:57 or maybe they disabled the startup service for this entirely and replaced it with something custom Feb 17 23:25:10 does it use the mass storage device for anything? Feb 17 23:25:18 yes it does Feb 17 23:25:38 okay so probably it doesn't use the default usb gadget setup *at all* Feb 17 23:26:41 well I should have been more specific: does it use the mass storage device for anything other than serving a read-only image (e.g. containing drivers or documentation) ? Feb 17 23:27:21 i believe it still does, i dont think they reprogrammed the whole thing, but they might have, is it possible that i could check each stop to see where im missing something? ( /etc/default/bb-boot holds the stock configuration still) Feb 17 23:27:36 check "systemctl status generic-board-startup" Feb 17 23:27:38 the usb mass storage is used to transfer data Feb 17 23:27:47 yeah okay then they definitely will have replaced it Feb 17 23:28:22 and using usb for networking in addition to mass storage will be somewhere between difficult and impossible Feb 17 23:28:54 generic-board-startup.service - Generic Board Startup Feb 17 23:28:54    Loaded: loaded (/lib/systemd/system/generic-board-startup.service; enabled; vendor preset: enabled) Feb 17 23:28:55    Active: inactive (dead) since Thu 2016-11-03 13:16:54 EDT; 4 years 3 months ago Feb 17 23:29:01   Process: 595 ExecStart=/bin/sh /opt/scripts/boot/generic-startup.sh (code=exited, status=0/SUCCESS) Feb 17 23:29:01  Main PID: 595 (code=exited, status=0/SUCCESS) Feb 17 23:29:01 well, nothing it impossible Feb 17 23:29:13 im guessing this is off? not being started with a reboot? Feb 17 23:29:22 interesting, they left that disabled but disabled the usb gadget in some other way? Feb 17 23:29:22 *left that enabled Feb 17 23:29:41 generic-board-startup.service - Generic Board Startup Feb 17 23:29:41    Loaded: loaded (/lib/systemd/system/generic-board-startup.service; enabled; vendor preset: enabled) Feb 17 23:29:42    Active: inactive (dead) since Wed 2021-02-17 22:33:07 UTC; 54min ago Feb 17 23:29:43   Process: 851 ExecStart=/bin/sh /opt/scripts/boot/generic-startup.sh (code=exited, status=0/SUCCESS) Feb 17 23:29:43  Main PID: 851 (code=exited, status=0/SUCCESS) Feb 17 23:29:43 no, that means the startup service that sets up the usb gadget normally is still enabled Feb 17 23:29:46 this is what i have on a stock Feb 17 23:29:54 and please don't paste multi-line output into chat Feb 17 23:30:04 it's spammy Feb 17 23:30:04 use a paste service like pastebin.com in the future Feb 17 23:30:05 okay sorry about that Feb 17 23:30:19 I'm kinda new to the IRC Feb 17 23:30:27 i'm sure that is evident Feb 17 23:31:20 so that looks like its running fine, is there anywhere's else i might be able to check for a service, or maybe a commented piece in the config? Feb 17 23:31:23 anyway, they must have disabled the default usb gadget in some other way, either by modifying a script or something even dumber like having their own startup service undo the usb gadget set up by default Feb 17 23:31:58 i wouldnt put it past them, given what some of the code they're using Feb 17 23:32:36 regardless, it would require significant time-investment to determine exactly what they're doing, how they're managing the usb gadget Feb 17 23:33:24 since using it for file transfer is a fair bit more involved, since they'll also need to monitor when the usb mass storage device gets "ejected" again before they can extract the files you put on it (since a filesystem can't be safely mounted in two places at the same time) Feb 17 23:33:43 okay, I do appreciate the info, when i get a minute maybe i can sift through their python coding and find a part where they might be over riding it Feb 17 23:33:56 it would make sense that they did this incorrectly Feb 17 23:34:36 well dunno about "incorrectly", but they evidently didn't realize that if you don't want/need the custom usb gadget then you should probably disable generic-board-startup.service Feb 17 23:35:15 why not just use Ethernet instead of usb networking? Feb 17 23:35:56 yeah we didnt need the feature for the previous solution, but I'm going to need it to add another feature to the solution. The ethernet is being used currently as well. Feb 17 23:36:34 yes, you know a network allows you to connect a device to more than one other device right? ;P Feb 17 23:37:04 like, why can't you connect your computer to the same ethernet network, instead of connecting to the beaglebone via usb networking? Feb 17 23:37:48 restrions on the network, the device on the USB side cant meet the requirements, bascially using the beagle as a firewall until we can get actual firewalls approved Feb 17 23:38:54 basically for SMTP email alerting Feb 17 23:38:56 oh wait you're the same guy who was here earlier, with the beaglebone used as a weird file transfer thing Feb 17 23:39:01 or maybe not Feb 17 23:39:06 haha thats me im sure Feb 17 23:39:59 nothing is ideal, i know that, its just we have this device approved for use already so were trying to make the most out of what we have to get functionality working. Feb 17 23:40:02 I'm confused though... I thought the beaglebone was running a hack that was in-house rather than "vendor supplied" ? Feb 17 23:40:27 I guess I didn't quite understand the situation Feb 17 23:40:28 using iptables as a filter only allowing source and dest and designated ports Feb 17 23:40:50 and the file movement is a seperate piece Feb 17 23:41:38 i got to jump but i appreciate the talk, I'm sure i will be back. maybe i can return the favor to someone else someday. if i get good enough at this Feb 17 23:41:47 so wait, WHAT Feb 17 23:42:00 I suggested firewalling instead of this weird hack for file transfer Feb 17 23:42:20 and that wasn't an option, but not you're going to connect it to network (firewalled) anyway for SMTP email alerting? Feb 17 23:42:42 *but now Feb 17 23:43:05 also I didn't suggest using the beaglebone as firewall, just use some router Feb 17 23:43:12 and you're already gone never mind Feb 18 00:13:42 set_ I assume it's electronic and not a "real" violin. Feb 18 00:27:19 Right GenTooMan: electric. Feb 18 00:33:02 3/4 electric... Feb 18 00:38:48 https://drive.google.com/file/d/1nfjxPQwkN9nDBKUcLztqIM61ZWrLIlzr/view?usp=sharing are two parts so far! Feb 18 01:16:02 Is it normal to learn about RISC-V right now b/c of the BeagleV coming out? Feb 18 01:16:21 I am asking b/c I have been reading, watching, and not practicing. Argh! Feb 18 01:16:47 set_: the architecture (RISC-V versus e.g. ARM) is of absolutely no relevance to you or the vast majority of programmers Feb 18 01:17:22 Oh. Feb 18 01:17:24 Okay. Feb 18 01:17:28 But, but. Feb 18 01:17:40 programming on a RISC-V based system like the BeagleV would be no different to you than programming on an ARM-based system like the beaglebone Feb 18 01:17:50 No! Feb 18 01:18:01 you would not notice any difference Feb 18 01:18:19 I am learning c for risc-v and how to pack and bit manipulation. Feb 18 01:18:54 I understand libs. and things but why? Why would i use them when Linux can control those interfaces? Feb 18 01:19:05 I have no clue what you mean by that Feb 18 01:19:42 For instance, in c, w/ or w/out a lib, I can call file systems on linux to handle specific peripherals. Feb 18 01:19:45 C programming is no different for RISC-V as it is for ARM, except for machine-specific compiler intrisics which most code will have no reason to use Feb 18 01:19:56 Oh. Feb 18 01:20:04 That is exactly what I have been learning. Feb 18 01:20:13 'intrinsics.' Feb 18 01:20:33 GenTooMan would be proud! I made notes and everything. Feb 18 01:20:52 complete waste of your time, especially since you can't really program even basic stuff yet Feb 18 01:21:00 Hhaha. Fine. Feb 18 01:21:03 it's just for advanced optimization of performance-critical code Feb 18 01:21:03 You are so mean! Feb 18 01:21:08 Right. Feb 18 01:21:29 That is what I learned so far. The 64-bit Risc-v...is a doosy. Feb 18 01:21:34 Fast! Feb 18 01:21:50 You are probably right. Feb 18 01:22:16 Just for lackadazical coders like myself, maybe learning a lot is not worth my time? Feb 18 01:22:25 But! Feb 18 01:22:28 But! Feb 18 01:22:30 But! Feb 18 01:22:35 "64-bit risc-v" is an architecture and therefore cannot be "fast" or "slow", performance data requires a concrete implementation Feb 18 01:22:46 I think learning is ... Okay. Feb 18 01:23:02 @zmatt: Stop hating on a brother that is learning. Feb 18 01:23:08 Sheesh. Feb 18 01:23:10 and given how risc-v is fairly new and immature I'd expect relatively poor performance Feb 18 01:23:19 Oh. Feb 18 01:23:34 especially initially, it's unlikely the toolchain will be particularly good right away Feb 18 01:24:01 Hmm. I see it is gaining popularity too. I saw a speech on it and I am digging through their many libs. Feb 18 01:24:03 but we'll see, when actual performance data is availabl Feb 18 01:24:14 Right! Okay. Feb 18 01:24:18 yeah there's a fair bit of marketing blah blah Feb 18 01:24:22 most of it meaningless Feb 18 01:24:23 Ha. Feb 18 01:24:38 Right. I feel bad for some people that get hired on and need to market things. Feb 18 01:25:06 It is not easy selling oneself and products or an Open Source 'idea'/ISA, cannot be easy. Feb 18 01:25:14 I'm sure there are people who are fine with doing marketing Feb 18 01:25:19 Oh. Feb 18 01:25:27 like, if they've never had a soul to begin with Feb 18 01:25:32 Ha. Feb 18 01:25:39 That is funny and half the pop. Feb 18 01:26:25 I got some #include source to look through. Feb 18 01:26:40 I may have to change things for 64-bit though. Feb 18 01:27:03 what are you even talking about? Feb 18 01:27:12 It hanldes 32, 64-bit, and both. Feb 18 01:27:25 'handles' Feb 18 01:27:59 google has no results on rcintrin, I'm assuming that's a typo? Feb 18 01:28:11 Oh. I forgot to mention the speaker on Risc-v was from another country and a bit of a fast talker. Feb 18 01:28:11 like, what intrinsics are you talking about? Feb 18 01:28:17 Let me check again. Feb 18 01:28:35 oh. yea. Feb 18 01:28:40 rvintrin.h Feb 18 01:28:46 Not rc, rv instead. Feb 18 01:28:56 Oops. Feb 18 01:29:20 This fellow made a bit manipulation lib. for GPIO stuff. Feb 18 01:29:27 those seem questionable, normally the compiler will understand when to generate those, or have intrinsics for them Feb 18 01:29:32 this has nothing to do with gpio Feb 18 01:29:36 absolutely nothing Feb 18 01:29:57 Well, the fellow said general purpose registers. Sorry. Feb 18 01:30:13 Did you feel it under your finger nail? Feb 18 01:30:41 "the 'k' key of course" Feb 18 01:31:16 Anyway, so. Feb 18 01:31:26 The registers need to be manipulated. Feb 18 01:31:40 Okay. Feb 18 01:31:48 the bit-manipulation extensions are still in draft and are not supported by the risc-v core on the beagle-v Feb 18 01:31:50 So, this is where you actually could help me. Feb 18 01:31:57 Oh. Feb 18 01:31:59 Okay. Feb 18 01:32:14 like I said, waste of time Feb 18 01:32:14 Good, awesome, frequently. Aw. Feb 18 01:32:25 I am going to learn more for fun. FUN! Feb 18 01:32:30 you do you Feb 18 01:32:36 Yes sir! Feb 18 01:33:18 I was serious about 'this is where you could help me.' Feb 18 01:33:52 So, what are some reason on why I would want to manipulate the bits and bytes to create words? Feb 18 01:34:04 you don't Feb 18 01:34:15 To create words. SOrry. Feb 18 01:34:38 I do not? Feb 18 01:34:43 like, if you'd have a use for this you'd probably already know Feb 18 01:34:52 Exactly. Feb 18 01:34:59 stuff like this has a very narrow audience Feb 18 01:35:16 Just pretend I am the only one ever and chat w/ me for a bit. Feb 18 01:35:32 narrow? Like ISA makers? Feb 18 01:35:48 I'm kinda doing other stuff Feb 18 01:36:12 Fine! I love my life as a no one knowing nothing but what everyone tells me I know. Blah. Feb 18 01:36:24 Off to read more! Feb 18 01:41:47 and yes, the primary audience for draft ISA extensions like these are CPU designers and people who work on compilers Feb 18 01:43:12 Okay. I am stating what I have found out. This, of which, seems to be something you are familiar w/ currently. Anyway, it is okay. Feb 18 01:43:22 I can learn more and keep learning. Feb 18 01:58:20 Okay...So? I would need to figure out what the programming language does to handle registers. Feb 18 01:58:37 Does this sound reasonable? Feb 18 01:58:49 no Feb 18 02:01:42 Fine. Feb 18 02:02:03 Just when I thought a brother was going to chime in w/ good news, 'no' was all I saw. Feb 18 02:02:31 It should have been easier. Feb 18 02:03:17 Oh well. Back to reading. I only made it to assembly for some reason. Feb 18 02:09:57 So, I just google, jolt, and bzzt the bits and bytes to change their order and function? Feb 18 02:10:20 Please say sort of. Feb 18 02:26:07 ?? Feb 18 02:26:50 Forget it. I am learning about tokens again. Blah. Feb 18 02:50:05 set_ risc-v is just the Instruction Set. also hardware wise the systems very a lot. Some effort should be made to have a common peripheral archetecture. Also technically speaking Risc-V can be 16 32 and 64 bit. Yes there are 16bit Risc-v implementations. **** ENDING LOGGING AT Thu Feb 18 02:59:56 2021