Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

README.md: Update setup and build instructions #35

Merged
merged 1 commit into from
Jan 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 8 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ sudo apt install -y \
bison flex libssl-dev \
bc u-boot-tools swig python3-pyelftools
sudo apt install --fix-broken
pip3 install toml-cli
sudo pip3 install toml-cli
```

## Usage
Expand All @@ -67,18 +67,14 @@ Each successful build is placed in `build/` directory. Logs for each build are
placed in the `logs/` directory.

For example, the following command builds a Bookworm Debian image for am62xx-evm
machine, where the BSP version is 09.00.00.006.
machine, where the BSP version is 09.01.00.008.

```bash
sudo ./build.sh am62x_bookworm-no-km_09.00.00.006
sudo ./build.sh am62-bookworm-09.01.00.008
```

**NOTE:** If you are building on the target platform which is already running Debian,
then you can use the config without `-no-km`. This will give you an image which
already has the out of tree kernel modules installed.

The output will be generated at `build/`. The log file will be
`logs/am62x_bookworm-no-km_09.00.00.006.log`.
`logs/am62-bookworm-09.01.00.008.log`.

## Flashing Image to SD Card

Expand All @@ -89,33 +85,13 @@ Syntax:
sudo ./create-sdcard.sh <build>
```

Continuing the example above, if you built `am62x_bookworm-no-km_09.00.00.006`, type:

```bash
sudo ./create-sdcard.sh am62x_bookworm-no-km_09.00.00.006
```

This command will flash `am62x_bookworm-no-km_09.00.00.006` image to the SD card.

## Post-Build:

Following the above, you should have a basic Debian system set up. However, this
system does not yet contain any out-of-tree kernel modules. Therefore they need
to be installed after booting in.

At the very least, you should install the `ti-img-rogue-driver` to enable
GPU. Use the following command:
Continuing the example above, if you built `am62-bookworm-09.01.00.008`, type:

```bash
apt install ti-img-rogue-driver
sudo ./create-sdcard.sh am62-bookworm-09.01.00.008
```

To load the driver, reboot.
This command will flash `am62-bookworm-09.01.00.008` image to the SD card.

Once rebooted, the driver should work. To verify that it is loaded, type:
Following the above, you should have a basic Debian system set up.

```bash
lsmod | grep pvr
```
If you see output of pvrsrvkm driver, it means that the driver has loaded
correctly.