News:

Server migration complete, Welcome to version 2.1.1

+-+-

+-User

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

+-Site Stats

Members
Total Members: 15649
Latest: zj023
New This Month: 53
New This Week: 0
New Today: 0
Stats
Total Posts: 128335
Total Topics: 15780
Most Online Today: 58
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 6
Guests: 48
Total: 54

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

help getting started, next step? by Poporacer
January 28, 2023, 05:10:18 PM

Trying to configure LOR CF50D Floods on FPP Pi Player with PiCap by half.fast
January 28, 2023, 03:19:37 PM

wifi issues on BBB running fpp v6.3 by k6ccc
January 28, 2023, 02:04:23 PM

BBB / FPP sending data to ESP32 WLED by srwmemphis
January 28, 2023, 04:39:02 AM

raspberry PI 3 / PI 4 by mrfix1
January 27, 2023, 07:13:55 AM

Bug in newest release by tbone321
January 26, 2023, 06:14:26 PM

Cannot Connect to F48V4-NS Through Rasberry Pi by Poporacer
January 26, 2023, 03:13:43 PM

new piCaps in the works? by Bwinter
January 26, 2023, 11:25:32 AM

DIY voucher request by CaptainMurdoch
January 26, 2023, 11:14:38 AM

Which volume to grow during setup? by RickR
January 26, 2023, 09:55:17 AM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod