Pocket beagle 2 Note from Building and booting Chalandi Pocketbeagle 2 nosdk bare metal code

Building and booting the the Chalandi Pocketbeagle 2 nosdk bare metal code

Github: GitHub - Chalandi/Baremetal_TI_AM6254_multicore_nosdk: Bare Metal development on TI AM6254 (PocketBeagle2 Board) · GitHub

Building on Ubuntu.

Follow the instructions in the README.md file.

You will need a version of GNU binutils 2.39 or greater. You can check what you have by doing this command: ld -v.
If you have an older version and cannot upgrade, then remove this line “-Wl,–no-warn-rwx-segments” from the makefile.

Build the 3 applications.

Copy the “.bin” files from the Output directory to the Tools/sd_card directory.

The names of the files that are built have an underscore before the “baremetal” word.
In the config.txt file located in the sd_card directory the lines for the m4f and r5f file names are missing that underscore.
Edit the config file to add the underscore or change the file names to match the names in the config.txt file.
NOTE: The binary file names cannot be longer then 29 charactors.

Format a sdcard as FAT32 with a Bootable partition.

Copy the sd-card directory files to the sdcard’s bootable partition. There are 5 file (tiboot3.bin, config.txt, a53*.bin, m4f*.bin and r5f*.bin).

Put the sdcard into the pocketbeagle 2 with the contacts facing the board.

Apply power to the board.

If you have a FTDI or Raspberry pi debug probe connected to the board’s 3 pin JST-SH connector, you will see some output from the SBL.
Once loaded you will see the 4 LEDS on the board flashing.

A minor issue:

The Clean.sh does not do anything.
Edit the Clean.sh file and add the following line before the make clean export CORE_FAMILY=${1,}
and add the following line to the makefile just after the CLEAN: line 303

@$(if $(filter $(CORE_FAMILY),$(ALLOWED_CORES)),$(error Error: the Entered CORE_FAMILY ‘$(CORE_FAMILY)’ is not supported! Allowed values are: $(ALLOWED_CORES)))$

NOTE: There needs to be a real tab in front of the above line.

Should be Building not uilding!!!

You wouldn’t be inclined to do a proper write-up here, would you?

I’m sure a lot of people would appreciate that… :wink:

Sure. But it will take some time as I am working an another project.

This is in reply to your posting “You wouldn’t be inclined to do a proper write-up here” that was to my posting about the PocketBeagle 2 no sdk bare metal code.

I have done a better write up of my posting.

I tried to log into “here” but it would not accept my beagle board login. I tried with my GitHub account and it asked for access to my GitHub account! I am also weary of making changes to the official document. So it may be better if I could send the .txt file to someone who has access and experience to make the changes to the official document.

Graham

Yeah, it probably wants to read your email; nothing odious about that.

You can also choose to upload your .txt file to your own project.
I can grab it from there and reformat it.

Lars,

I have put the file on my pocket beagle 2 Github;

https://github.com/gbcstott/PocketBeagle2freertostisdk

The file is: pb2_nosdk_Build_boot.txt

Graham

Thanks Graham — that would be very useful.

If you’re not comfortable editing the official docs directly, posting the write-up here in the forum thread is perfectly fine. Then someone with docs access, or just another community member familiar with the process, can help turn it into a docs patch later. A plain text version in a reply is enough to get started.

Also, the GitHub login prompt is normal if the docs workflow uses GitHub auth, but I understand being cautious about permissions. You can usually review exactly what access is being requested before approving it.