... | ... | @@ -4,9 +4,11 @@ |
|
|
|
|
|
- [Introduction](#introduction)
|
|
|
- [Yocto Customization](#yocto-customization)
|
|
|
- [Customizing Tastitalia Boot Logo in Yocto](#customizing-tastitalia-boot-logo-in-yocto)
|
|
|
- [Linux Commands](#linux-commands)
|
|
|
|
|
|
# Introduction
|
|
|
|
|
|
Welcome to the "Yocto Commands and Customization Guide for Hardware Integration" wiki page. This resource is designed to help you navigate the world of Linux commands and Yocto Project customization for seamless hardware integration. Whether you're a seasoned Linux user or just getting started, this guide aims to provide you with valuable insights and instructions for optimizing your hardware environment.
|
|
|
|
|
|
In this guide, you will find a collection of essential Linux commands and their practical applications for managing and interacting with your hardware effectively. Additionally, we'll delve into the process of customizing Yocto Project, a powerful tool for building embedded Linux distributions. By the end of this guide, you'll have the knowledge and skills necessary to enhance your hardware integration capabilities and create a more personalized experience.
|
... | ... | @@ -14,4 +16,70 @@ In this guide, you will find a collection of essential Linux commands and their |
|
|
Feel free to explore the various sections of this wiki page, which will cover topics ranging from basic Linux commands to advanced Yocto Project customization techniques. If you have any questions or need further clarification on any topic discussed here, don't hesitate to contact Tastitalia. Let's dive in and empower you to harness the full potential of your hardware with Linux and Yocto Project!
|
|
|
|
|
|
# Yocto Customization
|
|
|
|
|
|
## Customizing Tastitalia Boot Logo in Yocto
|
|
|
|
|
|
In this section, we will explore how to customize the boot logo displayed when the Linux kernel starts up in Tastitalia Yocto Project environment. We'll begin by examining the default boot logo, which is the logo of our company, Tastitalia, and provide an image for reference. Then, we will walk you through the step-by-step process of replacing this logo with a new one and recompiling Yocto to make the system use the new logo.
|
|
|
|
|
|
### Default Boot Logo
|
|
|
|
|
|
The default boot logo in our Yocto-based system is the Tastitalia logo, which is displayed during kernel startup. Below is an image of the default boot logo for reference:
|
|
|
|
|
|

|
|
|
|
|
|
### Customizing the Boot Logo
|
|
|
|
|
|
To replace the default boot logo with a custom one, follow these steps:
|
|
|
|
|
|
**Creating a Custom Logo in PPM Format**
|
|
|
|
|
|
To create a custom logo in PPM (Portable Pixmap) format, follow these steps:
|
|
|
|
|
|
1. **Install Required Tools**: Ensure you have the necessary tools installed. If you don't already have them, install them by running the following command:
|
|
|
|
|
|
```shell
|
|
|
$: sudo apt-get install netpbm
|
|
|
```
|
|
|
2. **Convert Your Logo to PPM Format**: Assuming you have a logo image named **`logo.png`** that you want to convert, use the following commands to convert it to PPM format and optimize it for the boot logo:
|
|
|
|
|
|
```shell
|
|
|
$: pngtopnm logo.png | ppmquant 224 | pnmnoraw > logo_kernel.ppm
|
|
|
```
|
|
|
|
|
|
Let's break down what each part of the command does:
|
|
|
|
|
|
* **`pngtopnm logo.png`**: Converts the PNG image **`logo.png`** to the PNM format.
|
|
|
* **`ppmquant 224`**: Reduces the number of colors in the image to 224, which is commonly used for boot logos.
|
|
|
* **`pnmnoraw > logo_kernel.ppm`**: Normalizes the image and saves it as **`logo_kernel.ppm`**.
|
|
|
|
|
|
3. Your custom logo is now created and saved as **`logo_kernel.ppm`**. You can use this PPM logo in Yocto Project as described in the previous section. Ensure that you've copied this PPM logo to the appropriate directory within your Yocto layer, and follow the steps to customize the boot logo.
|
|
|
|
|
|
**Continuing the Customization Process**
|
|
|
|
|
|
4. **Navigate to the Layer Directory**: Go to the directory of our Yocto layer named **`meta-tastitalia`**.
|
|
|
5. **Copy the Custom Logo**: Inside the **`meta-tastitalia`** directory, navigate to **`recipes-kernel/linux-tastitalia/files/`**. If the **`files`** directory doesn't exist, create it. Then, copy your custom logo (in PPM format) into this **`files`** directory and name it **`logo_kernel.ppm`**.
|
|
|
|
|
|
```shell
|
|
|
$: cp /tmp/logo_kernel.ppm recipes-kernel/linux-tastitalia/files/logo_kernel.ppm
|
|
|
```
|
|
|
6. **Clean the Kernel Build**: To ensure that the changes take effect, you need to clean the kernel build. Run the following BitBake command:
|
|
|
|
|
|
```shell
|
|
|
$: bitbake -c cleansstate virtual/kernel
|
|
|
```
|
|
|
7. **Recompile Yocto**: After cleaning the kernel build, recompile your Yocto image, for example:
|
|
|
|
|
|
```shell
|
|
|
$: bitbake tastitalia-demo-image
|
|
|
```
|
|
|
8. **Deploy and Test**: Once the Yocto compilation is complete, deploy the updated image to your target hardware. During the next boot, you should see your custom logo displayed instead of the default Tastitalia logo.
|
|
|
|
|
|
### Testing the Custom Logo
|
|
|
|
|
|
To verify that your custom boot logo is displayed correctly during kernel startup, flash the new yocto image into the target and power on Tastitalia board. You should now see your custom logo instead of the default Tastitalia logo, indicating the successful customization of the boot logo.
|
|
|
|
|
|

|
|
|
|
|
|
Congratulations! You've successfully customized the Linux kernel boot logo in your Yocto Project environment.
|
|
|
|
|
|
# Linux Commands |
|
|
\ No newline at end of file |