In designing a product with display, sometimes there are needs for none-standard resolution. It is possible to add support for different resolutions by modifying the device tree and building a new image from it.
Software Requirements:
- Docker Desktop installed.
- Visual Studio Code with “Remote Development” or “Docker" extension installed.
The steps are:
Obtain the image from Docker hub and create a new container
- Access docker image from VS Code ()
- Alter the code and make a new image
- Copy the new ISPBOOOT.BIN to SD Card and perform an image update via SD Card
- Reboot and reinstall other necessary packages as your system requires.
For instructions on how to setup docker desktop, please see the article, Setting up Docker Desktop. Once VS Code is installed, please also install the Docker Extension for easy access to the docker image.
The file that we want to modify is located at /root/SP7021/linux/kernel/arch/arm/boot/dts/ . The file to modify is sp7021-ltpp3g2revD.dtsi
Navigate to the line that starts wth "&sp_display" and modify the resolution to the width of 480 and height of 272.
Make sure that the terminal is in the SP7021 directory and type in "make" to start compiling the files, and the new file will be located in the "Out Folder.”
Locate the new ISPBOOOT.BIN and download it to your computer.
Copy this file to a Micro SD card and follow the instructions for flashing an image using an SD card. Once it is done, you need to reinstall all packages outside the standard image.
Comments
0 comments
Please sign in to leave a comment.