**** BEGIN LOGGING AT Wed Jun 14 03:00:03 2017 Jun 14 09:08:00 hey maciejjo ! I dont see anything on your github repo (https://github.com/maciejjo/beaglebone-pru-dma). I am missing something ? Jun 14 11:23:25 zeekhuge: sorry, I have my code on BBB and no network bewteen BBB and PC.. I ordered network card so I can transfer it, should have it by friday, I will upload it then Jun 14 11:41:41 maciejjo: why not share the system's internet and/or use an ethernet cable ? Jun 14 11:58:01 Thats the problem, my ethernet card is not working Jun 14 11:58:10 ie. card in laptop Jun 14 12:03:00 and sharing through USB connection ? (assuming you have internet connection on your laptop) Jun 14 12:03:05 maciejjo: ^ Jun 14 12:10:26 good point, I din't think of that Jun 14 12:10:38 is it enabled by default? Jun 14 12:21:07 maciejjo: you will have to enable it Jun 14 12:22:42 maciejjo: this can be helpful - https://www.zeekhuge.me/post/a_handfull_of_commands_and_scripts_to_get_started_with_beagleboneblack/ Jun 14 12:22:46 point 4 Jun 14 12:22:55 under Starters Jun 14 12:32:27 thanks Jun 14 12:33:32 I use wall plug to power bbb but I have the usb cable somewhere, I will try to configure it Jun 14 12:35:46 can you please give a brief picture of your setup ? do directly connect a display and keyboard to BBB ? I guess that would result in a slow development env. Jun 14 12:35:49 maciejjo: ^ Jun 14 12:36:13 no Jun 14 12:36:18 I use serial cable Jun 14 12:36:28 normally I used ethernet + ssh Jun 14 12:36:38 but I had to change computer Jun 14 12:36:49 and new one has some problem with ethernet Jun 14 12:37:32 I didn't realize there is network over USB with bbb Jun 14 12:38:10 oh .. okay. Got it. I would really like to see some code. Please upload your code at your earliest convenience .. Jun 14 12:38:35 I will do it ASAP Jun 14 15:59:40 Hello everyone :) Jun 14 15:59:57 hello :) Jun 14 16:00:11 hello all Jun 14 16:00:15 hi Jun 14 16:01:06 that's 4, do we have 2 more? Jun 14 16:01:08 *splat* Jun 14 16:01:16 * nerdboy bangs the mtg gavel Jun 14 16:01:38 *bit-bang even Jun 14 16:01:41 hi Jun 14 16:01:45 i'm here Jun 14 16:02:00 who has reports today? Jun 14 16:02:17 *that's 5 plus thetransformerr[ ... Jun 14 16:02:18 me Jun 14 16:02:21 hellp everyone Jun 14 16:02:23 I think it was ravi and I Jun 14 16:02:48 who wants to go first? Jun 14 16:02:59 I'll go first Jun 14 16:03:16 ee has the talking stick Jun 14 16:03:37 This week I finished up the GPIO implementation in Rust for my project BeagleLibs, along with most of the implementation for PWM Jun 14 16:04:00 One of the really cool things that I was able to add was nice error handling Jun 14 16:04:16 so for example if you try to export a pin that doesn't exist, or the kernel is unable to process a command you give it Jun 14 16:04:35 the program will tell you exactly where in your code the error occured, and why Jun 14 16:04:53 saves a lot of time doing "wolf fence" debugging or printf debugging :) Jun 14 16:05:03 sounds great! Jun 14 16:05:09 that's a good thing Jun 14 16:05:14 I think I'll leave it at that for now :) Jun 14 16:05:24 thanks guys Jun 14 16:05:39 github repo? Jun 14 16:05:51 https://github.com/ekmecic/bb_rust Jun 14 16:06:06 do you have some example or testing? Jun 14 16:06:13 don't judge it, I still have to add some more docs and a better readme Jun 14 16:06:29 I did manual testing on my desk with the two programs in the examples/ directory Jun 14 16:06:50 internet is broken here Jun 14 16:07:05 they're just examples of GPIO output (blinking an LED) and GPIO input (checking for button presses) Jun 14 16:07:18 great! Jun 14 16:07:40 you can build/run them yourself if you have cargo installed by using "cargo build --example blinker" or "cargo build --example button" Jun 14 16:07:50 Like I said I'll add more docs ASAP Jun 14 16:09:03 +1 for ci Jun 14 16:09:25 thought about how to add tests? Jun 14 16:09:37 * nerdboy not a rust guy Jun 14 16:09:58 testing is something I'd really like to hear other opinions on Jun 14 16:10:01 i prefer stainless Jun 14 16:10:10 language actually looks okay though Jun 14 16:10:17 because most of the testing principles in embedded programming are pretty language agnostic Jun 14 16:10:39 the implementation is pretty ugly IMO nerdboy, but I think the API isn't that bad Jun 14 16:11:03 anyways I know some people do things like putting a whole abstraction layer between their code and the hardware that allows them to unit test everything Jun 14 16:11:29 currently all I'm doing is ensuring the code works through manual testing and turning on every single warning on the compiler lol Jun 14 16:11:48 :-) Jun 14 16:11:50 if anyone has any ideas of how to do a better job testing please let me know, I'd be very interested in hearing/implementing them Jun 14 16:11:51 the compiler is your friend Jun 14 16:12:08 unless it's a suck-ass vendor toolchain... Jun 14 16:12:53 any more questions/comments/other? Jun 14 16:12:58 i'm good Jun 14 16:13:18 hahahhahaha nerdboy I know that feeling from other projects Jun 14 16:13:44 ravikp7: i guess you're up Jun 14 16:15:20 This week I completed the node server, the code for SPL and Uboot transfer is implemented now Jun 14 16:16:16 I configured spl with m_w 's patch https://patchwork.ozlabs.org/patch/774899/ which made it it boot over usb, which I was unable to do first Jun 14 16:16:18 you got it built with ums enabled? Jun 14 16:16:44 Yeah, here's the patch https://pastebin.com/rZ3R3zRs Jun 14 16:17:35 But the latest configured SPl couldn't tftp the uboot image Jun 14 16:17:49 https://pastebin.com/zZLNWf0V Jun 14 16:17:57 here's the serial output Jun 14 16:18:19 I get usb_ether not set error at beginning Jun 14 16:18:41 usb_ether *address* not set Jun 14 16:18:55 try setting a mac address? Jun 14 16:19:21 mac and/or ip Jun 14 16:19:58 can you grab the corresponding tcpdump too? Jun 14 16:20:16 I couldn't understand how to set mac for the spl Jun 14 16:20:40 doesn't it go in u-boot env? Jun 14 16:21:28 and before we spin off into troubleshooting... Jun 14 16:21:47 ravikp7: did you have anything else to report? Jun 14 16:22:01 and/or show off... Jun 14 16:22:14 But I checked the server's functionality by using BBBlfs' precompiled spl which successfully tftp the uboot configured with ums Jun 14 16:22:29 ravikp7: are there instructions somewhere for someone who wants to try out what you're working on? Jun 14 16:22:37 now the server is able to boot BB into mass storage mode Jun 14 16:22:46 https://github.com/ravikp7/node-beagle-boot Jun 14 16:22:51 thanks! Jun 14 16:22:53 instructions are there Jun 14 16:23:34 I just need to fix the latest spl to transfer uboot, else all is set Jun 14 16:24:34 nerdboy: that's all I had to report Jun 14 16:24:50 okay, great Jun 14 16:25:09 *sounds great even with stuff to troubleshoot... Jun 14 16:25:37 yes :) Jun 14 16:27:23 next! Jun 14 16:28:06 next item: is anyone else waiting for a shipment besides thetransformerr[ Jun 14 16:28:08 ? Jun 14 16:29:49 ravikp7: good, thanks for the update Jun 14 16:30:27 nerdboy: I am ;) Jun 14 16:31:05 tlwoerner: please try the server and let me know if you face any issues, this week focuses on testing the server Jun 14 16:31:43 ravikp7: will do Jun 14 16:31:48 nothing yet like an invoice email or anything? Jun 14 16:35:49 nothing? Jun 14 16:36:27 okay, then last item i guess is general progress Jun 14 16:37:14 anyone else blocked at all? (besides the sonic sensor thing) Jun 14 16:37:47 everything looks good over here Jun 14 16:37:47 nerdboy: nothing at all Jun 14 16:37:49 issues? problems? questions? vaccinations? Jun 14 16:38:16 nerdboy: retargetting project discussions w/student may be prudent given the time we have Jun 14 16:39:13 If anyone has any ideas about testing with respect to my project please PM me, I'd love to hear them Jun 14 16:39:14 nerdboy: it'll probally be next week before I can get it and may take me another week to go process it depending on when it arrives Jun 14 16:44:08 we'll take that discussion off-line for now... Jun 14 16:44:41 so unless someone else wants to bid, i think we're done Jun 14 16:44:54 going once... twice... Jun 14 16:46:17 sold! Jun 14 16:48:06 m_w: how can I fix the usb_ether address not set error? Jun 14 16:48:32 ravikp7: I would have to take a look Jun 14 16:48:59 still haven't found my UART cable Jun 14 16:49:38 m_w: my serial output https://pastebin.com/zZLNWf0V Jun 14 16:51:21 m_w: ok, not urgent, check out when you get time, server is working fine for now. Jun 14 16:58:20 ravikp7: CONFIG_USBNET_HOST_ADDR Jun 14 17:03:27 m_w: trying it out, silly question but how do I know about all these configs? Jun 14 17:06:07 google Jun 14 17:06:45 I have also ported u-boot to several boards over the years Jun 14 17:06:46 and grep Jun 14 17:07:08 I am really good at searching Jun 14 17:10:09 m_w , nerdboy : yeah, your experiences are invaluable :) Jun 14 17:11:46 find/xargs/grep and friends Jun 14 17:22:26 m_w: CONFIG_USBNET_HOST_ADDR doesn't seem to be a valid config option, it's getting removed from .config when building Jun 14 17:25:43 which version of U-Boot is this on? Jun 14 17:26:12 sorry I couldn't attend meeting, all thanks to unavailable internet service Jun 14 17:27:13 m_w: 2017.07-rc1-00163-g8cb3ce6 Jun 14 17:28:02 nerdboy: , ds2: did you gave some time to paper I sent in mail Jun 14 17:33:18 briefly, but still trying to get hardware status Jun 14 17:34:04 I received BBB, now I guess we are only waiting for ds2: max boards Jun 14 17:34:52 but we can create algorithm even without max boards...... Jun 14 17:35:20 math too rusty ... going to take time to de-rust the math Jun 14 17:36:53 actually I thought previously we had discussion about finding correlation Jun 14 17:38:10 problem with papers is they want to put it in fancy math terms Jun 14 17:38:13 but I cant remeber the exact conclusion we reached, but I guess the reason we overlooked it was that the wave was not in sine form??? Jun 14 17:38:24 nerdboy: https://www.sparkfun.com/tutorials/235 Jun 14 17:39:04 thetransformerr[: any wave is compose of sine waves Jun 14 17:39:17 exactly, they just jumped the juicy part altogether and reach at conclusion of their data Jun 14 17:39:43 yeah I know that and square wave is combination of too many different sine waves Jun 14 17:40:17 thetransformerr[: I wonder if you can just filter out the fundamental Jun 14 17:40:46 oops, I mean filter out everything BUT the fundamental Jun 14 17:41:46 I have planned to use oscilloscope to clear all the assumptions we are making here in my college in just day or two Jun 14 17:42:08 'k Jun 14 17:42:16 filtering can take place in didgital form after sampling??? Jun 14 17:43:29 yes Jun 14 17:43:44 assuming the squaring off is not from the sampling/acquisition Jun 14 17:43:56 i.e. the front end is not overloaded as that throws away info Jun 14 17:45:12 ok Jun 14 17:48:42 you can "verify" it by running a FT on the sampled data Jun 14 17:49:00 if it is a pure square wave, you see the classic decaying array of odd harmonics Jun 14 17:49:29 if it is say a BW limited square wave, the decay pattern will be different Jun 14 17:49:53 however, if you mess up the sampling and have that clip, that will change the decay pattern Jun 14 17:51:21 and how can I apply fourrier transform on them after sampling Jun 14 17:51:33 do i need to use something like matlab Jun 14 17:51:58 this is just for validating it so... any tool will work Jun 14 17:52:37 matlab is a favorite of many people... i prefer to throw together simple C/perl scripts.... you can also use octave (matlab clone) or mathcad, or many other packages Jun 14 17:53:02 alg guys like to use matlab to develop their algs Jun 14 18:01:54 yeah, that guy used an analog sensor and arduino Jun 14 18:02:45 take qcn/boinc and add pru ssupport maybe Jun 14 18:03:12 and 9250/6050 support Jun 14 18:03:55 can use bbio spi driver 9250 even Jun 14 18:05:10 does that driver support pru or we have modify it Jun 14 18:05:45 pru is separate interface Jun 14 18:06:46 also the sensors I received are either rcvr or tx , but they were supposed to be both Jun 14 18:06:55 9250 spi interface was for magnetometer project, rtimulib has full c++/python interface Jun 14 18:07:20 you got the murata sensors? Jun 14 18:07:28 for now I can work with them Jun 14 18:07:28 yup Jun 14 18:07:42 they need signal conditioning Jun 14 18:08:07 for future they are not suitable Jun 14 18:08:24 signal conditioning= filtering and controlling vola=tage levels?? Jun 14 18:08:28 voltage Jun 14 18:08:30 ie, the right voltage/impedance to connect to prudaq/other adc Jun 14 18:08:50 poke wormo Jun 14 18:09:25 but they can be interfaced directly with oscilloscope?? Jun 14 18:10:41 if the scope has the right inputs/settings maybe Jun 14 18:11:53 thetransformerr[: there should be some docs in the google drive folder Jun 14 18:13:55 did you look at the app_notes doc? Jun 14 18:28:37 I had looked them earlier, would again look up Jun 14 19:15:24 thetransformerr[: the app_notes talk about the analog circuit you need to talk to the muratas Jun 14 19:15:49 can someone at school maybe help with that? Jun 14 19:39:40 we have some volunteers for next week's stand up report? Jun 14 19:41:18 pmezydlo, maciejjo ? Jun 14 19:41:32 yeah I can Jun 14 19:41:40 that is one Jun 14 19:42:44 m_w: Do you have any examples how to use internal memory in ice40 device, I didn't find anything interesting Jun 14 19:43:42 pmezydlo, I got the picorv32 to run out of the internal RAM on the 8k Jun 14 19:43:50 https://github.com/cliffordwolf/picorv32 Jun 14 19:44:23 https://github.com/cliffordwolf/picorv32/tree/master/scripts/icestorm Jun 14 19:46:00 used the risc32 compiler to make a small firmware to load into the SRAM internal Jun 14 19:46:21 thanks, it should be helpful Jun 14 19:46:32 I simple example would be using the RAM to create a state machine Jun 14 19:46:42 *a simple Jun 14 19:48:20 something like this only using the RAM: https://www.youtube.com/watch?v=XBczm4pBQjE Jun 14 19:51:02 essentially a direct coding of a present state/next state table to create a state machine Jun 14 19:51:35 yes it's good idea, Jun 14 19:52:52 I think we did this as a precursor to micro-coded control units we back when I was a TA Jun 14 19:55:13 I'm not sure how complicated should the bridge be, I want to use memory to create fifo to buffering data from gpmc Jun 14 19:56:26 we can just directly map instead of using a fancy bridge for simple examples Jun 14 19:57:36 yeah a few registers from fpga can be maped Jun 14 19:58:05 a nice simple example would be a memory mapped GPIO controller Jun 14 19:58:34 yes it will first example Jun 14 19:59:56 the kernel has a memory gpio driver that you can directly use Jun 14 20:00:19 so that will save time writing a driver Jun 14 20:01:04 http://elixir.free-electrons.com/linux/latest/source/drivers/gpio/gpio-mmio.c Jun 14 20:01:31 http://elixir.free-electrons.com/linux/latest/source/drivers/gpio/gpio-mmio.c#L576 Jun 14 20:01:57 ^ add your devicetree compatible here Jun 14 20:02:12 then register the registers :) Jun 14 20:03:24 so We planning create non generic bridge, Jun 14 20:03:43 the bus IS the bridge Jun 14 20:04:39 When I talk "bridge" I mean gpmc bus and fpga module with simple user interface Jun 14 20:05:13 there is no need for a module in the middle Jun 14 20:05:26 the memory can be mapped directly Jun 14 20:05:42 for a simple example Jun 14 20:08:20 this is good idea the most examples will use only a few registers (pwm, gpio, spi etc) We can allow for kernel driver development Jun 14 20:09:32 at the same time we can use simple application in c Jun 14 20:10:10 yeah I rather not provide examples using /dev/mem hacks, it gives people bad ideas Jun 14 20:10:48 but I think that it is useful to do it that way for some implementation Jun 14 20:11:06 hmm okay Jun 14 20:12:00 we can provide examples of both method and let people decide what is best for them Jun 14 20:12:41 some board vendors heavily abuse the /dev/mem interface and userspace drivers Jun 14 20:12:56 implementation of more examples might be harder if we want to create drivers Jun 14 20:13:18 why? Jun 14 20:15:07 do you remember last year project which implement i2c, spi from pru, it lasted whole gsoc Jun 14 20:16:51 for now I want to implement gpio with kernel driver, Jun 14 20:17:40 let's see what comes later Jun 14 20:23:59 m_w: What specific examples with drivers we want to do? Jun 14 20:35:43 gpio, pwm ... Jun 14 20:36:00 your favorite SPI Jun 14 20:45:49 ok, thanks for mtg Jun 14 20:46:08 spi vs spi? Jun 14 20:47:53 SPI aye captain Jun 14 20:48:16 maybe slave spi Jun 14 21:04:34 compute engine Jun 14 21:11:05 that would be fun Jun 14 21:11:28 lets leave the master thesis worthy ones for towards the end Jun 14 21:11:55 didn't we have a spi slave last year? Jun 14 21:16:22 yes I implemented slave, Jun 14 21:18:01 how about a software defined radio? :D Jun 14 21:19:41 I have screenshot from my scope: Jun 14 21:19:55 https://drive.google.com/file/d/0B1Sxahs4DCgrRlY5aGtRdjN6Nlk/view?usp=sharing Jun 14 21:20:42 5 gpmc transactions Jun 14 21:20:56 yellow is cs line Jun 14 21:21:23 blue is clk, pink is address flag, and data flag Jun 14 21:23:09 pmezydlo, what is the bandwidth of your scope? Jun 14 21:23:29 100Mhz Jun 14 21:24:36 clk freq is 50Mhz Jun 14 21:24:45 gpmc clk ^^ Jun 14 21:25:01 it's to fast Jun 14 21:25:08 too* Jun 14 21:27:14 yeah Jun 14 21:27:18 ~. Jun 14 21:28:37 pmezydlo, you using the 1x or 10x setting on the probe? Jun 14 21:29:41 looks like 1x Jun 14 21:30:07 try setting to 10x to reduce the probe capacitance Jun 14 21:30:32 ok yeah i use 1x Jun 14 21:32:34 is the probe a piece of Wirewrap wire? ;) Jun 14 21:34:31 no these are normal scope probes Jun 14 21:34:46 now looks better **** ENDING LOGGING AT Thu Jun 15 03:00:03 2017