News:

LATEST RELEASE:  FPP 6.1 - Download from here - https://github.com/FalconChristmas/fpp/releases/tag/6.1

+-+-

+-User

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+-Site Stats

Members
Total Members: 15464
Latest: BroJam22
New This Month: 87
New This Week: 5
New Today: 5
Stats
Total Posts: 126797
Total Topics: 15538
Most Online Today: 107
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 3
Guests: 85
Total: 88

For those setting up a Beaglebone Black

Started by charleskerr, June 10, 2014, 02:34:00 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

charleskerr

If you are working to get a Debian environment on your Beaglebone black for basic ARM and PRU development  these are the steps that worked for me.  It does assume some working knowledge of linux command line


BeagleBone setup for Debian

Helpful links:
http://eewiki.net/display/linuxonarm/BeagleBone+Black
http://tara.mmto.org/computers/beagle/pru/devel/git_devel.html
http://mythopoeic.org/BBB-PRU/am335xPruReferenceGuide.pdf
http://mythopoeic.org/bbb-pru-minimal/


NOTE:
   The username/password will be debian/temppwd

Obtain the latest image from here:
http://elinux.org/BeagleBoardDebian#Flasher

After flashed do the following:

   apt-get update
   apt-get dist-upgrade
   apt-get install build-essential
   apt-get install vim
   apt-get install ca-certificates

We need to the device tree compiler ("dtc") for our overlays.
    apt-get install device-tree-compiler
However, this is not always up to date.  To get the latest, we can do the following:
   wget -c https://raw.github.com/RobertCNelson/tools/master/pkgs/dtc.sh
chmod a+x dtc.sh
./dtc.sh
When complete, you can delete the git directory it makes with the following:
rm -rf git/

//    The Following is dependent on what version of the image you.  And your capes.  The pins you want to expose.
//   Bottom line is you don't get the PRU enabled at initial start.  If you want to have it on boot, and you know the default dtbo file (they are located in /lib/firmware)
then you would probably do something like the following
We now have the basic compilers and libraries installed.  We are ready to move on to setting up the PRU enviroment

edit the /boot/uboot/uEnv.txt file

     cape_enable=capemgr.enable_partno=BB-BONE-PRU-01

This may not have the pins configure how you want, so you should look at the dts (the etc you installed can convert the dtbo back to a dts)

For an useful environment variable, add the following to /etc/profile

   export SLOTS=/sys/devices/bone_capemgr.*/slots
To verify all has gone well so far, reboot the system
     reboot
If you want to see the slots enabled on your system, do a:
   cat $SLOTS

You should get something like this:

0: 54:PF---
1: 55:PF---
2: 56:PF---
3: 57:PF---
4: ff:P-O-L Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G
5: ff:P-O-- Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI
6: ff:P-O-L Bone-Black-HDMIN,00A0,Texas Instrument,BB-BONELT-HDMIN
7: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-BONE-AUDI-02
The "L" in the P-O-L means the item is enabled.  Note the HDMI are not enabled.



// This is optional.  However, if you are going to run PRU code, you will need the libraries added at the end

Setting up the PRU build environment.

Get the source tree:
         git clone https://github.com/beagleboard/am335x_pru_package.git
         cd am335x_pru_package
         cd pru_sw/app_loader/interface/
         CROSS_COMPILE= make (note the space between the = and the command)
         cd ../lib/
One should see the following: libprussdrv.a  libprussdrvd.a  libprussdrvd.so   libprussdrv.so
Copy these to the /usr/lib
         cp * /usr/lib
         ldconfig

Now change directory to
         cd ../../utils/pasm_source/
      source linuxbuild
      cd ..
      cp pasm /usr/bin
      chmod a+x /usr/bin/pasm

      cd ~/am335x_pru_package/pru_sw/app_loader/include
      mkdir /usr/include/pruss
      cp *.h /usr/include/pruss/


Setting up the ntp server

       apt-get install ntp
       dpkg-reconfigure tzdata    << this setups timezone


To get your sd card to mount, add the following to /etc/fstab
   /dev/mmcblk0p1       /media/microsd     auto    defaults  0       0

create a directory for the mount point
   mkdir /media/microsd

In addition, to ensure you can boot with a SD card present, have the following file (uEnv.txt) on the sd card
mmcdev=1
bootpart=1:2
mmcroot=/dev/mmcblk1p2 ro
optargs=quiet
One is never too old to learn

David Pitts

Great information Charles. This will be great to have for development of the Beagle code. Thanks for the post.
PixelController, LLC
PixelController.com

CaptainMurdoch

Yes, thanks.  It will definitely save me some leg work when I get around to playing with one.


-
Chris

JerryPlak

Yes Great information Charles, it be fun to test and getting around to playing with one  8)
Jerry Plak

Support FPP

+- Recent Topics

What is the second best way to get rid of pixel gap errors? by JonD
Today at 10:35:44 AM

1st attempt success by ctmal
Today at 10:13:02 AM

show locks me out of falcon player by breese
Today at 10:08:21 AM

MultiSync copying of Show Files not working in FPP 6.1.1 by dkulp
Today at 12:12:07 AM

running event date from within xlights sequence. by Poporacer
November 26, 2022, 11:26:24 PM

Wifi set up with no wired connection by Poporacer
November 26, 2022, 11:23:59 PM

p10 panel not working with xlight output by pennymoor
November 26, 2022, 11:07:29 PM

F16v3 Won't boot or power on by rjhodgefamily
November 26, 2022, 07:54:39 PM

Cannot Ping e1.31 Channel Data Target by mwolbert
November 26, 2022, 07:49:25 PM

Controller not keeping accurate time by JonD
November 26, 2022, 07:31:07 PM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod