Skip to content

Conversation

@juvinski
Copy link

Hi guys,

this PR add the PocketBeagle 2 Wiki page with information about how to run Ardupilot in the new PocketBeagle 2 Board using a DIY Cape.

The ardupilot code already have merged in the master the support for this cape + pb2.

This commit add images of PocketBeagle 2 board and the DIY Cape
This commit add the PocketBeagle 2 DIY Cape on the list of
Linux boards
@Hwurzburg
Copy link
Contributor

thanks for this....since will be merged on 4.7 release or if changes to code get released in 4.6 backport...until then I will add it to the wiki under upcoming features as a link to this PR (our procedure for new code features)...thanks again

Copy link
Contributor

@jadonk jadonk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for an awesome contribution!

Really just FYI:

  • From a Beagle branding perspective, it is always "PocketBeagle 2" (space between PocketBeagle and 2, camel-case, no space between Pocket and Beagle, and never "the" before it, because it is a proper noun, like the name of a friend).
  • I encourage you to interact with myself, @RobertCNelson, @Ayush1325 and others a bit more to get the useful bits package into the PocketBeagle 2 images. Adding a boot selection option, putting the binaries in the package feed, etc. can all make usage a good bit easier. (NOTE: seems like we need to make default boot configuration, ie., overlay, selection a feature for bb-imager-rs as much as this comes up.)
  • If you have links to videos of test flights, please share! I've personally struggled to put something like a shopping list together or any sort of useful guide/video showing how to put this all together. If you have any guidance on how you got there, I'd love to see it.


.. note::

For now, the only supported version is Rev A0 shipped with AM6232 (dual-core A53, no GPU).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please test with the current production version (rev A1) that has quad-core and GPU, though GPU wouldn't have much use in this application. If you need a board for testing, please reach out.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @jadonk

I really appreciate if you can provide a board or where I can but it, because I can't find anywhere the 6254 :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://www.beagleboard.org/boards/pocketbeagle-2 has links to distributors. I'll privately provide you the link to the board-request form for people doing open source work.

---------------------------------

The default user and password for the debian is **debian** and default password is **temppwd**.
To change the defaults, insert the SDCard in your computer and in the BOOT partition open the **sysconf.txt**. Then look for the user_name and user_password, uncomment the line and set the values.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For any newer images, and I believe the Debian 13 image you actually mention, setting the username and password is not really optional. If you log in over the serial port and use the default username and password, you should be required to set a new username and password at login.

BeagleBoard Imaging Utility has settings that will write to sysconf.txt for you.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @jadonk
If I login in the first time using the SSH, the newer image will ask the username and password too?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I very much doubt via SSH as that probably doesn't pass EU CRA requirements. You should confirm with @RobertCNelson

vi /boot/firmware/extlinux/extlinux.conf
#Search for a line with "label microSD (default)"
#replace the commented line #fdtoverlays
fdtoverlays /overlays/k3-am62-pocketbeagle2-ardupilot-cape.dtbo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wow. Guess you grabbed the "ardupilot" name in the Beagle device tree repository.

It is probably something worth pushing to Linux mainline, though a more specific name might be better.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @jadonk

The name as suggested by RobertCNelson when I made the PR some time ago.
How can we push to Linux mainline ? I really think will be a great thing :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://www.kernel.org/doc/html/latest/process/submitting-patches.html is the primary guide. A good example of an overlay submission is torvalds/linux@defa143.

Compiling ArduPilot
-------------------

I recommend to use cross-compilation(5-10 minutes) instead direct compilation in the PB2 board(time > 1 hour)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Compiling instructions are fine to show people how to rebuild it, but there's no good reason not to just put it into the Beagle Debian package repos. It was there in the armhf days. No reason not to do it for aarch64.

Anyway, for a basic getting started, I'd expect you to just tell people to apt-get the binaries with a pointer on how to build them if desired.

We have a somewhat ppa-like setup that we do for some projects, like GCC for PRU, where we use the openbeagle.org CI infrastructure to publish a Debian package feed for an individual set of packages. Or, since this should be mainline, you can just ask Robert to put a version into our package feed.


**Instructions** ::

cd ~
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably just need to put a link to the official docs to not duplicate or have this to desync from other instructions.

/usr/bin/gpioset -c 1 2=0
/usr/bin/gpioset -c 2 77=0

/usr/bin/ip link set can0 type can bitrate 1000000
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as this is on the ExecStartPre, it should probably need to be protected by a if CAN0 down

/usr/bin/gpioset -c 1 2=0
/usr/bin/gpioset -c 2 77=0

/usr/bin/ip link set can0 type can bitrate 1000000
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't we need restart-ms 1000 sample-point 0.75 , or something ?
or the classic :
tc qdisc del dev can01 root
tc qdisc add dev can0 root handle 1: pfifo
ifconfig can0 txqueuelen 100 ?

This add the PocketBeagle 2 DIY Cape wiki file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants