Pocketbeagle Techlab

Good morning,

For the past two months I’ve been trying to learn how to use the BBB & PB using Derek Molloy’s book.

But I’ve gotten stuck in chapter 6 where he introduces device-tree overlays because it seems those have been done away with in favor of uboot overlays. It appears both of these are compiled the same way, but I’ve let myself get confused.

I found his updated video on gpio’s but that also appears obsolete.

As a result I switched to trying to use the Pocketbeagle techcape to get unstuck, but I’ve been fighting with learning how to control pins and even work through the basic confirmation of functions.

I’ve tried loading the images from both techlab-workshop-2019-01-24 & bone-debian-buster-iot-armhf-2019-03-03-4gb.

I’ve been updating the kernel to Linux beaglebone 4.19.37-bone32 #1stretch PREEMPT Tue Apr 30 19:17:06 UTC 2019 armv7l GNU/Linux.

Afterwards I apt-get update, apt-get upgrade, git clone bb.org-overlays from RCN, and download the latest cloud9 examples from J Krider.

Unfortunate, for all of these methods the only led files are as listed in the posted screen shot.

beaglebone:green:usr0
beaglebone:green:usr1
beaglebone:green:usr2
beaglebone:green:usr3

No segment 7 files and no rgb files to use.

Maybe I’m just confused, but have been stuck here for a couple of weeks & have just been going back & forth between fighting the PB & BBB on the next steps.

I’ve searched the net extensively looking for additional resources but just end up working in circles.

Does anyone have any tips or any recommendations for learning resources to get over this hurdle?

Thank you in advance for any assistance.

Best Regards,

Patrick

Pocketbeagle tech lab led files.jpg

On Wed, 15 May 2019 06:41:06 -0700 (PDT), P B
<mmmbarley@gmail.com> declaimed the
following:

Good morning,

For the past two months I've been trying to learn how to use the BBB & PB
using Derek Molloy's book.

  Which edition? The 2nd Edition has a January 2019 copyright, and should
have updated the device tree information for the newer u-Boot scheme.

  Just skimmed through my copy and it looks like it is u-Boot DTB based
(and has actual PocketBeagle examples)

Thank you. I was working from 1st ed. 2nd ed ordered.

Best Regards

Check out libpruio and its online documentation. No device tree trouble, all settings in your code (single sourced).

Regards

I bought my copy as a Kindle book from Amazon. It shows a publlication date of December 2018 and says Second Edition on the cover. But I have the same learning curve and problem. And, I can’t seem to find the information about using UBoot in the book. Would you be so kind as to share where that information is found?

I’ve made a lot of progress thanks to the Exploring Beaglebone book. I am turning AC pumps and motors on with relays that I control from the digital outputs through opto-isolators. But when I needed to read a water proof temperature probe, I got stuck. I bought the DS18B20 and didn’t comprehend it was Dallas single-wire interface. I thought it was just a waterproof TMP36 which I was already reading successfully.

The examples for the DS18B20 are all pre-UBoot.(I’m running 4.4.14 now). I compiled a device tree overlay but don’t know how to get it loaded, where to put it so it gets loaded, what file to change and what the command should be to have it load on boot. Is this all in the book somewhere? If not, could you share a resource that would help me?

We upgraded to 4.19, loaded the 1W dtb from /lib/firmware and things just work. I think it’s looking for the 1 W interface to be on P9. 12 which works out to Gpio 1-28 which is also known as gpio 60. At this point it shows up under /sys/bus and “just works”. Couldn’t say that for 4.14 and I’ve no idea why.

Or there’s a PRU-based approach which TJF can tell you about. Not sure what the difference between the two is, though we only use it for a single sensor. Maybe I’ll try that out tomorrow.

Jim

Hello!

Thanks - I’m going to buy that book. It sounds like a good place for me to start. I’ve been looking to form some kind of local maker’s group.

I’ll see if I can contribute to answers to your questions soon.

Regards,
Fred Kerr

Jim - do you mean that using 4.4.19 took care of our one wire interfacing problem? I’m going to give that a try!

Jim - Where did you find 4.19? I haven’t found it anywhere so far!

https://elinux.org/Beagleboard:BeagleBoneBlack_Debian

sudo /opt/scripts/tools/update_kernel.sh --ti-channel --lts-4_19

Regards,

Thanks, Robert! This is for the x15 though, right? I’m running a BB Black. I’m assuming that this isn’t compatible with the Black, right?

Walter

What Robert said is what we did. Upgraded to 4.19 that way, then added the existing dtb for 1 wire. The device s just show up in the /sys tree, can’t remember exactly where. Maybe /sys/class/w1.

It was pretty easy, surprisingly so. The hard part is knowing that it didn’t work on 4.14.

Jim

The "--ti-channel" is for all am35xx and am57xx based BeagleBoard.org products.

Regards,

Thanks. Now if I can just get my BBB connecting to the internet again!!! it stopped two days ago and nothing I try corrects it! It won’t boot from eMMC either.

Sorry for my delay in noticing this post. I hope you will read my below replies and see if it provides you with some success.

Good morning,

For the past two months I’ve been trying to learn how to use the BBB & PB using Derek Molloy’s book.

I got pretty excited just being able to light a led and read a push button at the beginning of chapter 6.

But I’ve gotten stuck in chapter 6 where he introduces device-tree overlays because it seems those have been done away with in favor of uboot overlays. It appears both of these are compiled the same way, but I’ve let myself get confused.

I found his updated video on gpio’s but that also appears obsolete.

As a result I switched to trying to use the Pocketbeagle techcape to get unstuck, but I’ve been fighting with learning how to control pins and even work through the basic confirmation of functions.

I’ve tried loading the images from both techlab-workshop-2019-01-24 & bone-debian-buster-iot-armhf-2019-03-03-4gb.

I’ve been updating the kernel to Linux beaglebone 4.19.37-bone32 #1stretch PREEMPT Tue Apr 30 19:17:06 UTC 2019 armv7l GNU/Linux.

Afterwards I apt-get update, apt-get upgrade, git clone bb.org-overlays from RCN, and download the latest cloud9 examples from J Krider.

In my examples at https://github.com/beagleboard/cloud9-examples/tree/master/PocketBeagle/TechLab

I suggest enabling a number of overlays via /boot/uEnv.txt via:

sudo sed -i -e "s/#?uboot_overlay_addr0=.*$/uboot_overlay_addr0=\/lib\/firmware\/PB-I2C2-ACCEL-TECHLAB-CAPE.dtbo/;" /boot/uEnv.txt
sudo sed -i -e "s/#?uboot_overlay_addr1=.*$/uboot_overlay_addr1=\/lib\/firmware\/PB-PWM-RGB-TECHLAB-CAPE.dtbo/;" /boot/uEnv.txt
sudo sed -i -e "s/#?uboot_overlay_addr2=.*$/uboot_overlay_addr2=\/lib\/firmware\/PB-SPI1-7SEG-TECHLAB-CAPE.dtbo/;" /boot/uEnv.txt
sudo sed -i -e "s/#?uboot_overlay_pru=.*RPROC.*$/uboot_overlay_pru=\/lib\/firmware\/AM335X-PRU-RPROC-4-14-TI-00A0.dtbo/;" /boot/uEnv.txt
sudo shutdown -r now

Enabling the PB-PWM-RGB-TECHLAB-CAPE overlay should add 3 LEDs after the reboot is complete, techlab::red, techlab::green and techlab::blue.

See https://github.com/beagleboard/bb.org-overlays/blob/master/src/arm/PB-PWM-RGB-TECHLAB-CAPE.dts for the content of the overlay.

Enabling the PB-SPI1-7SEG-TECHLAB-CAPE overlay should enable 16 more LEDs, techlab::seg*, where * is 0-15.

See https://github.com/beagleboard/bb.org-overlays/blob/master/src/arm/PB-SPI1-7SEG-TECHLAB-CAPE.dts for the content of the overlay.

Doing a “dmesg > /var/lib/cloud9/dmesg.txt” and then copy-and-paste the contents of dmesg.txt here. Also, provide a copy-and-paste of /boot/uEnv.txt as well as the output of sudo /opt/scripts/tools/version.sh. These will help in providing feedback on steps you might not be executing as intended.

Unfortunate, for all of these methods the only led files are as listed in the posted screen shot.

beaglebone:green:usr0
beaglebone:green:usr1
beaglebone:green:usr2
beaglebone:green:usr3

No segment 7 files and no rgb files to use.

Maybe I’m just confused, but have been stuck here for a couple of weeks & have just been going back & forth between fighting the PB & BBB on the next steps.

Really sorry to hear you’ve been stuck for so long. If the responses here don’t get you going, be sure to reach out to me under the instructions at Support BeagleBoard Foundation now on Amazon Smile - BeagleBoard. I’m also ‘jkridner’ on the #beagle IRC channel.

I’ve searched the net extensively looking for additional resources but just end up working in circles.

Does anyone have any tips or any recommendations for learning resources to get over this hurdle?

Have you tried watching the e-ALE videos? They can be a bit advanced, but, if you are patient, you might pick up the missing piece to the puzzle.

Hi Dennis,

I am also keen to move to the Pocket Beagle in the next month or so. Would Molloy’s 2nd ed of EBB be the best resource on PB, or is there any other resource you would also recommend?

TIA,

Rgds.

I think my previous query has many useful pointers from JKridner today. Just caught up with it, with gratitude.

Any other resource you would bring up for PB seekers like us for now, @JKridner?

Tx

On Tue, 11 Jun 2019 19:56:01 +0530, Venkatesh Vadde
<vvadde@gmail.com> declaimed the following:

Hi Dennis,

I am also keen to move to the Pocket Beagle in the next month or so. Would
Molloy's 2nd ed of EBB be the best resource on PB, or is there any other
resource you would also recommend?

  Well, there is a Pocket Beagle on the cover... <G>

  I've not looked to see if any other books have gone into 2nd editions
(or even 3rds).

Thank you. A cursory look at the 2nd edition of EBB from Molloy does seem
to show generous doses of PB references, pin-maps and circuits for the PB.
I would hazard to think it is the best we have yet on the PB.