**** BEGIN LOGGING AT Thu Jan 10 03:00:02 2019 Jan 10 05:00:54 Hello, how can I get into a u-boot to perform commands? Jan 10 05:01:30 press space when it says to press space Jan 10 05:01:42 Oh. Jan 10 05:01:43 Okay. Jan 10 05:01:45 (spamming space works too) Jan 10 05:01:50 Okay. Jan 10 05:02:04 also, do I want to know why you're trying to perform u-boot commands? Jan 10 05:02:10 So, I just push the space bar when prompted? Jan 10 05:02:12 Sure! Jan 10 05:02:43 I am building an image for a specific board and I want to learn on this board so I do not mess up my BBB or variations. Jan 10 05:03:00 Those BBBs only last so long. Jan 10 05:03:28 zmatt: I have never been prompted to press the space bar. Jan 10 05:04:04 I usually (never) get into the U-BOOT_TERMINAL. Is it even possible? Jan 10 05:04:24 I keep reading idea after idea. Nope. Nothing works. Jan 10 05:04:25 if it's not an u-boot build from rcn then it may vary, depends on the configuration used when u-boot was compiled Jan 10 05:04:59 Oh. I got that fellow rcn to help out at first. He is tired of me today. Jan 10 05:05:22 please minimize your pestering of rcn Jan 10 05:05:27 Okay. Jan 10 05:06:00 I figured I could do it w/ ease. He put together a nice package online for the board. He just did not let me know how to jump into u-boot mode. Jan 10 05:06:17 have you tried spamming space? Jan 10 05:06:26 immediately after power on Jan 10 05:06:28 at what point should I spam space? Jan 10 05:06:29 Oh! Jan 10 05:06:31 No. Jan 10 05:06:45 I will go and try. Jan 10 05:06:47 brb Jan 10 05:06:57 can you paste-bin the output from u-boot? the first 20 lines or so after power on Jan 10 05:09:02 Get this. My computer froze. Jan 10 05:09:58 Okay. Let me give you some background first: https://forum.digikey.com/t/re-pico-pi-imx7-and-siging-in-um/2537/14. Jan 10 05:10:17 That is my idea of communication. Although lacking. I tried. Jan 10 05:10:18 ... Jan 10 05:10:54 Here is another idea: https://www.digikey.com/eewiki/display/linuxonarm/PICO-PI-IMX7?_ga=2.183875302.1374974427.1547096972-981723497.1547096972#PICO-PI-IMX7-ARMCrossCompiler:GCC. Jan 10 05:10:57 ... Jan 10 05:11:35 I tried following instructions. I came up to the part when it says: U-BOOT TERMINAL. Jan 10 05:11:48 Now, I know nothing. Jan 10 05:11:50 I don't really feel like digging into any forums, I just wanted the u-boot output to glance at for 2 seconds to see if you overlooked an obvious prompt Jan 10 05:11:59 Oh. Jan 10 05:12:07 I cannot even get into u-boot. Jan 10 05:12:16 that doesn't matter Jan 10 05:12:20 Okay. Jan 10 05:12:28 or I mean, that part was already obvious, since you said so already Jan 10 05:12:34 Right. Jan 10 05:12:35 I got you. Jan 10 05:12:47 I guess I am just lacking in knowledge. My first day and all. Jan 10 05:13:24 I tried =>, :, and others. Nothing worked. Jan 10 05:13:32 ehm Jan 10 05:13:39 zmatt: You know. Come one, man. Tell me. Jan 10 05:13:47 can confirm, you are indeed lacking in knowledge Jan 10 05:13:52 Hhahaha. Jan 10 05:13:55 I know, I know. Jan 10 05:14:18 it might also be wrong serial port configuration Jan 10 05:14:24 I read a bunch of stuff. tftp and other ideas from Analog.com. Jan 10 05:14:26 Oh. Jan 10 05:14:47 My board came w/ Android Things. It never worked. Jan 10 05:14:55 if hardware handshake is enabled but not available, your input is never sent to the device Jan 10 05:15:03 Oh. Jan 10 05:15:22 So, I would have to make a patch or add it somehow? Jan 10 05:15:29 no Jan 10 05:16:17 I do not even have an IP addr for this board. I have the USB for power, a cable for serial, and a Ethernet cable for communication/debugging. Jan 10 05:16:17 ... Jan 10 05:16:33 Serial worked once. Only once. Jan 10 05:17:20 Anyway...I know it is not BBB related. I just wanted to yell about random things (as usual). Jan 10 05:19:39 If I know my load address and file name, I should be able to push the uImage or .img file to the board. Jan 10 05:19:45 It has not worked just yet. Jan 10 14:34:39 m Jan 10 16:49:47 anyone going to Embedded World? Jan 10 16:53:42 \o_ Jan 10 16:53:53 (for ubuntu core though :) ) Jan 10 17:24:23 At least we can catch up Jan 10 18:04:29 hello Jan 10 18:05:34 I am having trouble connecting an lcd SPI display with beagleboneblack wireless. Can someone help me with this? Jan 10 18:10:17 please describe your specific problem with this Jan 10 18:12:13 . Jan 10 19:26:50 Hi Jan 10 19:28:32 I am following the loopback example for SPI communication which is given in the following link https://gist.github.com/pdp7/308f2e3019ab48939a1012fe593e433b Jan 10 19:31:08 Unfortunately when I run the code, it spits out an error which goes as below Jan 10 19:31:10 debian@beaglebone:~$ python test-spi.py Traceback (most recent call last): File "test-spi.py", line 13, in print spi.xfer2([32, 11, 110, 22, 220]) AttributeError: 'str' object has no attribute 'xfer2' debian@beaglebone:~$ Jan 10 21:29:34 hey i am having trouble connecting my bbb wireless through SPI. Can you help me Jan 10 21:29:46 hey i am having trouble connecting my bbb wireless through SPI. Can you help me Jan 10 21:40:16 Guest17160: what are you connecting to the spi ? Jan 10 21:48:23 . Jan 10 21:49:01 , Jan 10 21:51:04 Hello! Jan 10 21:52:47 zmatt, how are you. I have tried PRU C and ASM examples from Derek's Malloy book. The examples are online at /exploringBB/chp15/pru/ledFlashC Jan 10 21:53:26 Unfortunately AM335x_PRU.cmd is missing from all the examples Jan 10 21:54:55 hello Jan 10 21:55:04 When I picked it up from somewhere online, it produced many errors. So, to cut a long story short, do you know where I can get a complete HelloWorld example for PRU in asm or c. Jan 10 21:55:11 how do i enable spi pins on bbw Jan 10 21:56:44 Guest: Are you using Adafruit_BBIO? Jan 10 21:56:54 dreamhiker: my py-uio library includes a bunch of examples that work (one that uses clpru, a bunch that use pasm) Jan 10 21:57:19 including makefile to recompile them Jan 10 22:00:36 Guest17160: the config-pin commands in that gist you linked to earlier should work fine Jan 10 22:01:04 (the earlier stuff in that gist is obsolete and no longer appropriate or necessary, the universal overlay is enabled by default) Jan 10 22:02:44 zmatt, thanks! Could you point me again to the simplest example to compile and run? Jan 10 22:04:43 basic-test.py runs fw/test.bin compiled from fw/test.pasm using pasm, and elf-test.py runs fw-c/test.out compiled from fw-c/test.c using clpru Jan 10 22:05:24 those are the simplest pasm example and only clpru example included Jan 10 22:28:40 set_ yeah I am Jan 10 22:48:06 zmatt, how do i install uio.ti.icss Jan 10 22:48:39 by reading the readme Jan 10 22:48:45 :) Jan 10 22:52:07 Guest: Use config-pin like the page at github says. Jan 10 22:52:33 I will get the page. Jan 10 22:53:15 https://github.com/adafruit/adafruit-beaglebone-io-python has a couple of SPI details and some config-pin ideas. Jan 10 22:53:57 what is PWR_BUT for on the BBB? Jan 10 22:55:37 it lets you put a power button on a cape (connected between PWR_BTN and GND), which is useful e.g. for large lcd capes that make the power button on the bbb itself very hard to access Jan 10 23:02:58 zmatt: ahh, ok. then what is SYS_RESETn for? Jan 10 23:03:47 same but for the reset button. also can be used to know when the system is in reset Jan 10 23:04:44 ah Jan 10 23:16:31 set_ I dont know why, but when I am trying to install setup.py as per their instructios, I am always facing trouble Jan 10 23:16:49 I couldn't install the setup properly Jan 10 23:40:51 Guest: Do you have a BBB w/ the latest image? Jan 10 23:40:57 zmatt, good READMY. Thanks. Unfortunately /dev/uio was not created Jan 10 23:41:10 If so, it comes preinstalled w/ Adafruit_BBIO. Jan 10 23:41:41 dreamhiker: did you do the /boot/uEnv.txt configuration and installed the udev rule? (and then reboot) Jan 10 23:41:44 You can use it "out-of-the-box" and try simple programs first. Jan 10 23:41:57 i.e. while loop or if statements. Jan 10 23:42:27 I am having latest image Jan 10 23:42:46 Alright! Adafruit_BBIO is already on your board. Jan 10 23:42:48 yeah I have adafruit BbIo pre installed Jan 10 23:42:52 Oh. Jan 10 23:42:57 Guest17160: what error are you getting? can you share it using pastebin? Jan 10 23:45:59 Guest: I will be in and out. This other computer is cross-compiling and I have not figured it out yet. Aw! Jan 10 23:46:08 zmatt: Can probably help out more. Jan 10 23:46:25 : = Jan 10 23:46:29 root@beaglebone:~/Adafruit_Python_SSD1306# sudo python setup.py install Traceback (most recent call last): File "setup.py", line 31, in packages = find_packages()) File "/usr/lib/python2.7/distutils/core.py", line 111, in setup _setup_distribution = dist = klass(attrs) File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.45-py2.7.egg/setuptools/dist.py", line 225, in __init__ _Distributi Jan 10 23:46:33 Hahhahaha. Jan 10 23:47:03 sudo python3 Jan 10 23:47:07 not setup.py Jan 10 23:47:23 You already have Adafruit_BBIO. Jan 10 23:47:49 Guest17160: first of all, try to avoid python2. although its EOL has been pushed back a few times due to legacy needs, it's pretty much unmaintained. use python3 for any new applications Jan 10 23:47:51 I was following https://learn.adafruit.com/ssd1306-oled-displays-with-raspberry-pi-and-beaglebone-black/usage instructions Jan 10 23:48:26 adafruit has not updated their ideas in a while. I think they moved on. Jan 10 23:48:39 then do: sudo apt install python3-pip python3-setuptools python3-wheel Jan 10 23:48:52 i am actually trying to connect ssd1306 lcd with beaglebone. it uses SPI Jan 10 23:49:07 avoid invoking setup.py scripts directly, use: pip3 install DIRECTORY, e.g. pip3 install . Jan 10 23:49:10 do not use sudo for that Jan 10 23:50:00 also, don't log in as root Jan 10 23:50:14 work as user debian Jan 10 23:50:40 just use sudo for the rare time that you need root privileges (which is almost never) Jan 10 23:51:02 https://github.com/adafruit/Adafruit_Python_SSD1306 is another route to take. They are over five years old but you can do it! Jan 10 23:51:10 ... Jan 10 23:51:27 config-pin and the correct wiring! Jan 10 23:51:30 finally, don't paste multiline output into irc, use a paste servie like pastebin.com Jan 10 23:52:23 dreamhiker: any luck? Jan 10 23:54:15 zmatt, now it works. I have not changed uEnv.txt Jan 10 23:54:48 you probably already had it configured before Jan 10 23:56:35 before I was using: /AM335X-PRU-RPROC-4-14-TI-00A0.dtbo Jan 10 23:56:54 oh you meant "I have now changed" maybe? Jan 10 23:57:11 yeah py-uio uses (surprise!) uio, not remoteproc ;) Jan 10 23:58:42 remoteproc is pretty limited in functionality for userspace programs Jan 11 00:03:57 and that's my next question. Malloy in his book suggests that uio will be discontinued and insists on using remoteprocs Jan 11 00:04:37 do you have a reference for me to read on uio, so I am more qualified to talk? Jan 11 00:05:43 it won't be discontinued. uio itself has been around since the dawn of time, and uio_pruss is completely trivial to forward-port. with very minor changes you could also use the generic uio_pdrv_genirq driver Jan 11 00:06:27 and right now remoteproc isn't even a usable replacement yet, it doesn't support mapping shared memory Jan 11 00:06:46 people who switch to using remoteproc end up using /dev/mem to map pru memory, which is infinitely worse Jan 11 00:07:44 that's like uio, but requiring root privileges and without any of the safeguards that uio provides Jan 11 00:08:11 (and no way to deliver interrupts to userspace, which I think aren't provided by remoteproc either but I haven't checked) Jan 11 00:08:48 so right now, as far as I can tell remoteproc is more useful if you want to make a kernel driver that interacts with pru firmware Jan 11 00:08:59 but not if you want to interact with pru from userspace Jan 11 00:14:56 https://elinux.org/images/b/b0/Uio080417celfelc08.pdf gives an overview of how uio works Jan 11 00:15:18 note however that the generic uio_pdrv_genirq works for basically all devices Jan 11 00:17:06 the main benefit the uio_pruss driver provides is that is allocates a configurable chunk of ddr3 memory for use by pru, and it makes interrupt handling slightly more efficient Jan 11 00:18:57 BTW, did you get already a kindle copy of Malloy V2? Jan 11 00:19:14 uh no, why would I ? Jan 11 00:19:30 I don't know. Jan 11 00:24:03 b/c...books are fun. Ideas are plenty and new ideas are even better. Jan 11 00:24:13 That is my case. Jan 11 00:24:33 I would be delighted to present you one, so you can answer my questions :) Jan 11 00:24:40 Ha! Jan 11 00:24:44 I got one. Shoot! Jan 11 00:25:12 What page? Jan 11 00:25:42 if you need me to explain a book, it isn't a very good book now is it? :) Jan 11 00:27:34 Or the reader is not so smart :) Jan 11 00:28:36 Here is Malloy writes: Jan 11 00:29:58 dreamhiker: They have locations. I am on location 5543 at 22% right now. Jan 11 00:30:08 Are you close to that location? Jan 11 00:31:20 https://pasteboard.co/HVSaoMs.png Jan 11 00:31:42 remoteproc and UIO. UIO was used in the first edition of this book but is no longer supported under the latest kernel versions. Molloy, Derek. Exploring BeagleBone (p. 679). Wiley. Kindle Edition. Jan 11 00:31:55 dreamhiker: yeah, well, he's full of shit for the reasons I explained above Jan 11 00:32:27 right now, remoteproc as suitable replacement of uio is just wishful thinking, not a reality Jan 11 00:33:01 Oh. I see. So, have you been to your uEnv.txt file to switch up some stuff? Jan 11 00:33:17 people have different ideas. It is normal. Jan 11 00:33:18 OK, good to know. Jan 11 00:34:22 And I am grateful to his book. I can learn a lot from it. Jan 11 00:34:39 It is a good read at certain sections. Jan 11 01:20:48 cross-compiling is not easy... Jan 11 01:21:02 If you make one mistake, you have to start from "scratch." Jan 11 01:21:30 and then...trying to remember how to get into u-boot cli is hard. Jan 11 01:21:43 Who knows what and when, you know? Jan 11 01:22:32 ... Jan 11 01:22:46 Is anyone here making articles on cross-compiling to the BBB? Jan 11 01:34:55 I have had to reproduce the ./build_kernel.sh file each time I "upgraded" to a new kernel. It takes foreverrrr. Jan 11 01:40:07 four upgrades to new kernels and there goes a good portion of the day. Jan 11 01:59:08 zmatt: still here? Jan 11 02:00:36 ah nvm Jan 11 02:01:12 yeah Jan 11 02:01:57 going to try out TopoR Jan 11 02:02:55 neat, lemme know how it works out for you Jan 11 02:07:34 wonder how much the paid version goes for Jan 11 02:08:17 I have no idea Jan 11 02:08:51 I've just read a few things about TopoR and seen some of the cool pcbs it produces, that's all **** ENDING LOGGING AT Fri Jan 11 02:59:57 2019