# Debian: Getting Started with the OSD62-PM-BRK

**URL:** <https://forum.digikey.com/t/debian-getting-started-with-the-osd62-pm-brk/61216>\
**Category:** Linux Guides\
**Created:** [October 10, 2025, 10:34pm UTC](https://forum.digikey.com/t/debian-getting-started-with-the-osd62-pm-brk/61216 "2025-10-10T22:34:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RobertCNelson](https://sea2.discourse-cdn.com/digikey/user_avatar/forum.digikey.com/robertcnelson/32/12_2.png) [@RobertCNelson](https://forum.digikey.com/u/RobertCNelson)\
**Post date:** [October 10, 2025, 10:34pm UTC](https://forum.digikey.com/t/debian-getting-started-with-the-osd62-pm-brk/61216/1 "2025-10-10T22:34:18Z")

</div>

This is a page about Octavo Systems’s OSD62x-PM; [https://octavosystems.com/octavo\_products/osd62x-pm/](https://octavosystems.com/octavo_products/osd62x-pm/)

# Availability

Boards:

- [OSD62-PM-BRK](https://www.digikey.com/en/products/detail/octavo-systems-llc/OSD62-PM-BRK/26728719) at DigiKey

Serial Cable:

- [Raspberry Pi Serial Probe](https://www.digikey.com/en/products/detail/raspberry-pi/SC0889/17877576) at DigiKey

# Basic Requirements

- Running a recent supported release of Debian, Fedora or Ubuntu on a x86 64bit based PC; without OS Virtualization Software.
- Many of the listed commands assume /bin/bash as the default shell.
- [Kernel.org](http://Kernel.org) Cross Compilers – [https://mirrors.edge.kernel.org/pub/tools/crosstool/](https://mirrors.edge.kernel.org/pub/tools/crosstool/)
- Bootloader
  - Das U-Boot – the Universal Boot Loader: [http://www.denx.de/wiki/U-Boot](http://www.denx.de/wiki/U-Boot)
  - Source: [https://github.com/u-boot/u-boot/](https://github.com/u-boot/u-boot/)

- Linux Kernel
  - Linus’s Mainline tree: [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git](https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git)

- arm64 based rootfs
  - Debian: [https://www.debian.org](https://www.debian.org)

# Cross Compiler: 32bit arm-linux-gnueabi-gcc

This is a pre-built (64bit) version of GCC that runs on generic linux, sorry (32bit) x86 users, it’s time to upgrade…

Download/Extract:

```bash
#user@localhost:~$
wget -c https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/x86_64/11.5.0/x86_64-gcc-11.5.0-nolibc-arm-linux-gnueabi.tar.xz
tar -xf x86_64-gcc-11.5.0-nolibc-arm-linux-gnueabi.tar.xz
export CC32=`pwd`/gcc-11.5.0-nolibc/arm-linux-gnueabi/bin/arm-linux-gnueabi-

```

Test Cross Compiler:

```bash
#user@localhost:~$
${CC32}gcc --version

```

```bash
#Test Output:
arm-linux-gnueabi-gcc (GCC) 11.5.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

```

# Cross Compiler: 64bit aarch64-linux-gcc

This is a pre-built (64bit) version of GCC that runs on generic linux, sorry (32bit) x86 users, it’s time to upgrade…

Download/Extract:

```bash
#user@localhost:~$
wget -c https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/x86_64/11.5.0/x86_64-gcc-11.5.0-nolibc-aarch64-linux.tar.xz
tar -xf x86_64-gcc-11.5.0-nolibc-aarch64-linux.tar.xz
export CC64=`pwd`/gcc-11.5.0-nolibc/aarch64-linux/bin/aarch64-linux-

```

Test Cross Compiler:

```bash
#user@localhost:~$
${CC64}gcc --version

```

```bash
#Test Output:
aarch64-linux-gcc (GCC) 11.5.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

```

# Bootloader:

Pre install a few host packages with build-essential and git, which will be utized to build everything else.

**Host Package Requirements**

```bash
#user@localhost:~$
sudo apt update ; \
sudo apt-get install -y build-essential git

```

# Bootloader: TI Linux Firmware

The TI Firmwares are required for functionality of the system: [https://git.ti.com/gitweb?p=processor-firmware/ti-linux-firmware.git;a=shortlog;h=refs/heads/ti-linux-firmware](https://git.ti.com/gitweb?p=processor-firmware/ti-linux-firmware.git;a=shortlog;h=refs/heads/ti-linux-firmware)

Download:

```bash
#user@localhost:~$
git clone -b 10.01.10 https://github.com/beagleboard/ti-linux-firmware.git --depth=1

```

# Bootloader: Trusted Firmware A

Trusted Firmware for A profile Arm CPUs: [https://git.trustedfirmware.org/plugins/gitiles/TF-A/trusted-firmware-a.git/](https://git.trustedfirmware.org/plugins/gitiles/TF-A/trusted-firmware-a.git/)

Download:

```bash
#user@localhost:~$
git clone -b lts-v2.12.6 https://github.com/TrustedFirmware-A/trusted-firmware-a.git --depth=1

```

Build:

```bash
#user@localhost:~$
make -C ./trusted-firmware-a/ -j4 CROSS_COMPILE=${CC64} PLAT=k3 ARCH=aarch64 SPD=opteed TARGET_BOARD=lite all

```

# Bootloader: OP TEE

Open Portable Trusted Execution Environment (OP-TEE): [https://github.com/OP-TEE/optee\_os](https://github.com/OP-TEE/optee_os)

**Host Package Requirements**

```bash
#user@localhost:~$
sudo apt update ; \
sudo apt-get install -y python3-cryptography python3-minimal ; \
sudo apt-get install -y python3-pyelftools

```

Download:

```bash
#user@localhost:~$
git clone -b 4.7.0 https://github.com/OP-TEE/optee_os.git --depth=1

```

Build:

```bash
#user@localhost:~$
make -C ./optee_os/ -j4 CROSS_COMPILE=${CC32} CROSS_COMPILE64=${CC64} CFG_ARM64_core=y PLATFORM=k3-am62x CFG_WITH_SOFTWARE_PRNG=y all

```

# Bootloader: U-Boot

Das U-Boot – the Universal Boot Loader: [http://www.denx.de/wiki/U-Boot](http://www.denx.de/wiki/U-Boot)

**Host Package Requirements**

```bash
#user@localhost:~$
sudo apt update ; \
sudo apt-get install -y bc bison flex libgnutls28-dev libssl-dev; \
sudo apt-get install -y python3-dev python3-jsonschema ; \
sudo apt-get install -y python3-setuptools python3-yaml ; \
sudo apt-get install -y swig uuid-dev yamllint

```

Download:

```bash
#user@localhost:~$
git clone -b v2024.04-ti-10.01.10-am625-osd625-brk https://github.com/RobertCNelson/ti-u-boot-octavo.git --depth=1

```

Configure and Build: Cortex-R5

```bash
#user@localhost:~$
make -C ./u-boot/ O=../CORTEXR CROSS_COMPILE=${CC32} am62x_osd62x_r5_defconfig ; \
make -C ./u-boot/ -j4 O=../CORTEXR CROSS_COMPILE=${CC32} BINMAN_INDIRS=../ti-linux-firmware/

```

Copy Build Objects: Cortex-R5

```bash
#user@localhost:~$
mkdir -p ./input/ ; \
cp -v ./CORTEXR/tiboot3-am62x-hs-fs-osd62x.bin ./input/

```

Configure and Build: Cortex-A53

```bash
#user@localhost:~$
make -C ./u-boot/ O=../CORTEXA CROSS_COMPILE=${CC64} am62x_osd62x_a53_defconfig ; \
make -C ./u-boot/ -j4 O=../CORTEXA CROSS_COMPILE=${CC64} BL31=../trusted-firmware-a/build/k3/lite/release/bl31.bin TEE=../optee_os/out/arm-plat-k3/core/tee-pager_v2.bin BINMAN_INDIRS=../ti-linux-firmware/

```

Copy Build Objects: Cortex-A53

```bash
#user@localhost:~$
cp -v ./CORTEXA/tispl.bin ./input/ ; \
cp -v ./CORTEXA/u-boot.img ./input/

```

# Linux Kernel

This script will build the kernel, modules, device tree binaries and copy them to the deploy directory.

Download:

```bash
#user@localhost:~$
git clone https://github.com/RobertCNelson/ti-linux-kernel-dev ./kernelbuildscripts
cd kernelbuildscripts/

```

For ti-linux-arm64-6.6.y (Longterm 6.6.x):

```bash
#user@localhost:~/kernelbuildscripts$
git checkout origin/ti-linux-arm64-6.6.y -b tmp

```

Build:

```bash
#user@localhost:~/kernelbuildscripts$
./build_kernel.sh

```

# Root File System

### Debian 13

| User | Password |
| --- | --- |
| debian | temppwd |

Download:

```bash
#user@localhost:~$
wget -c https://rcn-ee.com/rootfs/eewiki/minfs/debian-13.1-base-arm64-2025-10-09.tar.xz

```

Verify:

```bash
#user@localhost:~$
sha256sum debian-13.1-base-arm64-2025-10-09.tar.xz

```

```bash
#sha256sum output:
1cb10f5f49a488395caad40821fdfbdd3102a5b65d0a82d2ba34c3390652f8b8 debian-13.1-base-arm64-2025-10-09.tar.xz

```

Extract:

```bash
#user@localhost:~$
tar xf debian-13.1-base-arm64-2025-10-09.tar.xz

```

# Install Kernel and Root File System

To help new users, since the kernel version can change on a daily basis. The kernel building scripts listed on this page will now give you a hint of what kernel version was built.

```bash
-----------------------------
Script Complete
eewiki.net: [user@localhost:~$ export kernel_version=5.X.Y-Z]
-----------------------------

```

Copy and paste that “export kernel\_version=5.X.Y-Z” exactly as shown in your own build/desktop environment and hit enter to create an environment variable to be used later.

```bash
export kernel_version=5.X.Y-Z

```

### Create Root File System with genimage:

The genimage [https://github.com/pengutronix/genimage](https://github.com/pengutronix/genimage) tool is now used to generate a sdcard.img vs directly interfacing with the microSD.

**Host Package Requirements**

```bash
#user@localhost:~$
sudo apt update ; \
sudo apt-get install -y dosfstools genimage mtools

```

### Create working directory for genimage:

```bash
#user@localhost:~$
sudo mkdir -p ./input/.rootfs

```

### Copy Root File System

```bash
#user@localhost:~$
sudo tar xfvp ./debian-*-*-arm64-*/arm64-rootfs-*.tar -C ./input/.rootfs/
sync

```

### Enable first boot customization

```bash
#user@localhost:~$
sudo cp ./input/.rootfs/etc/bbb.io/templates/sysconf.txt ./input/

```

Open _ **./input/sysconf.txt** _ in your text editor and change any user setting.

- _ **user\_name=** _
- _ **user\_password=** _
- _ **hostname=** _

```bash
#user@localhost:~$
sudo nano ./input/sysconf.txt

```

### Setup extlinux.conf

```bash
#user@localhost:~$
sudo sh -c "echo 'label Linux' > ./input/extlinux.conf"
sudo sh -c "echo ' kernel /Image.gz' >> ./input/extlinux.conf"
sudo sh -c "echo ' fdtdir /' >> ./input/extlinux.conf"
sudo sh -c "echo ' append console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 root=/dev/mmcblk1p2 ro rootfstype=ext4 fsck.repair=yes rootwait net.ifnames=0' >> ./input/extlinux.conf"

```

### Copy Kernel Image

Kernel Image:

```bash
#user@localhost:~$
sudo cp -v ./kernelbuildscripts/deploy/${kernel_version}.Image ./input/Image.gz

```

### Copy Kernel Device Tree Binaries

```bash
#user@localhost:~$
sudo mkdir -p ./input/dtbs/
sudo tar xfv ./kernelbuildscripts/deploy/${kernel_version}-dtbs.tar.gz -C ./input/dtbs/
sudo cp -v ./input/dtbs/ti/k3-am625-osd625-brk.dtb ./input/k3-am625-osd625-brk.dtb

```

### Copy Kernel Modules

```bash
#user@localhost:~$
sudo tar xfv ./kernelbuildscripts/deploy/${kernel_version}-modules.tar.gz -C ./input/.rootfs/usr/

```

### File Systems Table (/etc/fstab)

```bash
#user@localhost:~/$
sudo sh -c "echo '/dev/mmcblk1p2 / auto errors=remount-ro 0 1' >> ./input/.rootfs/etc/fstab"
sudo sh -c "echo '/dev/mmcblk1p1 /boot/firmware vfat user,uid=1000,gid=1000,defaults 0 2' >> ./input/.rootfs/etc/fstab"

```

### Check partition size

Verify Root File partition size, this can be used to modify the seek value below for size tweaking.

```bash
#user@localhost:~$
sudo du -sh ./input/.rootfs/

```

### Create rootfs.ext4

```bash
#user@localhost:~$
sudo dd if=/dev/zero of=./input/rootfs.ext4 bs=1 count=0 seek=1600M
sudo mkfs.ext4 -F ./input/rootfs.ext4 -d ./input/.rootfs/

```

# Create sdcard.img with genimage

The genimage [https://github.com/pengutronix/genimage](https://github.com/pengutronix/genimage) tool is now used to generate a sdcard.img vs directly interfacing with the microSD.

### Create genimage.cfg file

```bash
#user@localhost:~$
nano genimage.cfg

```

```bash
#genimage.cfg
image boot.vfat {
        vfat {
            files = {
                    "tispl.bin",
                    "u-boot.img",
                    "Image.gz",
                    "sysconf.txt",
            }
            file tiboot3.bin {
                    image = "tiboot3-am62x-hs-fs-osd62x.bin"
            }
            file ti/k3-am625-osd625-brk.dtb {
                    image = "k3-am625-osd625-brk.dtb"
            }
            file extlinux/extlinux.conf {
                    image = "extlinux.conf"
            }
        }
        size = 256M
}
image sdcard.img {
        hdimage {}
        partition u-boot {
                partition-type = 0xC
                bootable = "true"
                image = "boot.vfat"
        }
        partition rootfs {
                partition-type = 0x83
                image = "rootfs.ext4"
        }
}

```

### Run genimage on genimage.cfg

```bash
#user@localhost:~$
sudo genimage --rootpath `mktemp` --config genimage.cfg

```

### genimage output

sdcard.img can be flashed to a microSD using rpi-imager [https://github.com/raspberrypi/rpi-imager](https://github.com/raspberrypi/rpi-imager) or your favorite image writing software.

```bash
#user@localhost:~$
tree images/
images/
└── sdcard.img

1 directory, 1 file

```

# Final Tweaks (extend rootfs partition)

Extend the rootfs partition to fill available space on drive.

### Use growpart to extend a partition in a partition table

```bash
sudo growpart /dev/mmcblk1 2

```

```bash
voodoo@eewiki:~$ sudo growpart /dev/mmcblk1 2
CHANGED: partition=2 start=524289 old: size=3276800 end=3801088 new: size=61809630 end=62333918

```

### First Reboot

```bash
sudo reboot

```

### Use resize2fs to enlarge the existing filesystem

```bash
sudo resize2fs /dev/mmcblk1p2

```

```bash
voodoo@eewiki:~$ sudo resize2fs /dev/mmcblk1p2
resize2fs 1.47.0 (5-Feb-2023)
Filesystem at /dev/mmcblk1p2 is mounted on /; on-line resizing required
old_desc_blocks = 1, new_desc_blocks = 4
The filesystem on /dev/mmcblk1p2 is now 7726203 (4k) blocks long.

```

### Second Reboot

This last reboot will take awhile as fsck is checking the partition on bootup.

```bash
sudo reboot

```

# Comments

Any questions or comments please go to our TechForum: [TechForum](https://forum.digikey.com/c/embedded/linux-discussions/5)
