From c5ddaa94b705ddb8202802a646c60f264ac36a0a Mon Sep 17 00:00:00 2001 From: Sai Sree Kartheek Adivi Date: Mon, 8 Jan 2024 13:54:16 +0530 Subject: [PATCH] README.md: Update setup and build instructions - toml-cli installation requires sudo because the module can't be accessed by the root user if installed as a normal user. - Remove -no-km info. All the out-of-tree kernel module deb packages are fixed and the build will work whether or not the host is running the same kernel version. Signed-off-by: Sai Sree Kartheek Adivi --- README.md | 40 ++++++++-------------------------------- 1 file changed, 8 insertions(+), 32 deletions(-) diff --git a/README.md b/README.md index 4fa77cb..fc37cd8 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 @@ -89,33 +85,13 @@ Syntax: sudo ./create-sdcard.sh ``` -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.