Compare commits

..

5 Commits

Author SHA1 Message Date
76d8403ea4 DOCS: Change kernel edit
Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
2025-01-24 09:33:48 +09:00
Youngsoo Shin
bce0e50409 GA: Add Google Analytics snippets
Signed-off-by: Youngsoo Shin <sysx114@gmail.com>
2025-01-24 09:25:19 +09:00
515917064c DOCS: Add odroid-stamper 2025-01-24 09:25:04 +09:00
badda0fc96 DOCS: Edit change kernel version 2025-01-24 09:25:04 +09:00
Youngsoo Shin
4323bdc2c3 DOCS: Add change kernel version
Signed-off-by: Youngsoo Shin <sysx114@gmail.com>
2025-01-12 01:14:40 +09:00
4 changed files with 186 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-8BTPRBKJ5B"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-8BTPRBKJ5B');
</script>

View File

@@ -15,7 +15,9 @@
<toc-element toc-title="U-Boot">
</toc-element>
<toc-element toc-title="Odroid">
<toc-element topic="Change-kernel-version.md"/>
</toc-element>
<toc-element topic="Use-ODROID-STAMPER.md"/>
<toc-element toc-title="About">
</toc-element>
</instance-profile>

View File

@@ -0,0 +1,59 @@
# Change kernel version
Some features may be limited depending on the kernel version.
Need to change the kernel version, use the method below.
## Install kernel from package server
Below is an example of changing to kernel version 6.1.0.
```Bash
sudo apt update
sudo apt install linux-image-6.1.0-odroid-arm64
sudo flash-kernel --force 6.1.0-odroid-arm64
```
You can Find a kernel list in apt.
```Bash
sudo apt update
apt search odroid-arm64
```
```Plain Text
...
linux-image-4.9.277-beta86-odroid-arm64/stable 4.9.277-202204180200~focal arm64
Linux 4.9 for ODROID (64-bit ARMv8 machines)
linux-image-5.10.0-rt-odroid-arm64/stable 5.10.18-202202211652~focal arm64
Linux 5.10 for 64-bit ARMv8 machines
linux-image-5.11.0-odroid-arm64/stable 5.11.18-202203152140~focal arm64
Linux 5.11 for 64-bit ARMv8 machines
linux-image-5.13.0-odroid-arm64/stable,now 5.13.16-202207222133~focal arm64 [installed,automatic]
Linux 5.13 for 64-bit ARMv8 machines
linux-image-5.14.0-odroid-arm64/stable 5.14.18-202202091916~focal arm64
Linux 5.14 for 64-bit ARMv8 machines
linux-image-5.15.0-odroid-arm64/stable 5.15.167-202411041835 arm64
Linux 5.15 for 64-bit ARMv8 machines
...
```
## View an installed kernel list
Use `linux-version` command, you can see list of installed kernel list.
```Bash
linux-version list
5.9.0-odroid-arm64
5.9.15-odroid-arm64
6.1.0-odroid-arm64
```
## Change kernel
Use `flask-kernel`.
```Bash
sudo flash-kernel --force 6.1.0-odroid-arm64
```

View File

@@ -0,0 +1,116 @@
# Use ODROID-STAMPER
[`odroid-stamper`](https://github.com/tobetter/odroid-stamper) is Odroid Image Generation Tool.
## Basic usage
```Bash
sudo apt install git wget dialog pv lynx qemu-user-static\
dialog rsync squashfs-tools uuid-runtime
git clone https://github.com/tobetter/odroid-stamper.git
cd odroid-stamper
export ODROID_STAMPER_CHECKOUT=$PWD
sudo -E ./odroid-stamper
```
```Plain Text
ODROID-STAMPER
┌───────────────────────Custom Ubuntu Recipe─────────────────────────┐
│ Please customize the installation. │
│ ┌────────────────────────────────────────────────────────────────┐ │
│ │ 0 Target () │ │
│ │ 1 Board () │ │
│ │ 2 Distro (focal) │ │
│ │ 3 Flavour (server) │ │
│ │ 4 Default user │ │
│ │ 5 Password of default user │ │
│ └────────────────────────────────────────────────────────────────┘ │
├────────────────────────────────────────────────────────────────────┤
│ < OK > < Done > <Cancel> │
└────────────────────────────────────────────────────────────────────┘
```
Once you select the board and other settings you want, the image will be built.
## In the command line
```Bash
$ ./odroid-stamper --help
Usage: odroid-stamper [--help] [--output=<path>] [--live]
--help: this help message
--output=<path>: output directory for image files.
--iso: build target OS image as ISO format.
--live: enforce to build live boot system image.
--compress: compress the final OS image using 'xz'.
--keep-builddir: prevent removing temporary directory
after building an image.
--kernel: kernel package name to use
--linuxfactory: alternative server IP address of 'ppa.linuxfactory.or.kr'
```
You can use it from the command line as below.
```Bash
export ODROID_STAMPER_CHECKOUT=$PWD
sudo -E ./odroid-stamper --compress --board=odroidm2 --distro=focal\
--flavour=server --username=odroid --password=odroid
```
## Use custom
If you want to add the packages you want during odroid-stamper operation, Use custom directory.
For example, if you want build `custom/npu` image, use command below.
```Bash
export ODROID_STAMPER_CHECKOUT=$PWD
sudo -E ./odroid-stamper --custom=npu
```
Custom/npu is structured as follows.
- config
- fixups
- overlay
- packages
### config
`config` Defines the default settings for the image.
```Plain Text
BOARD=odroidm1
ARCH=arm64
DISTRO=focal
FLAVOUR=gnome-desktop
DEFAULT_USER=odroid
DEFAULT_PASSWD=odroid
ALLOW_ROOT_LOGIN=false
```
You can override it on the command line.
```Bash
export ODROID_STAMPER_CHECKOUT=$PWD
sudo -E ./odroid-stamper --custom=npu --board=odroidm2 --distro=noble
```
### package
`package` is a list of packages to be installed during image generation.
```Plain Text
cmake
g++
git
libopencv-dev
librga-dev
python3-dev
python3-pip
python3-venv
python3.9
python3.9-dev
python3.9-venv
```
### fixup
The script in the `fixup` directory is executed during image generation.
It also runs the fixup script located in the `custom/npu/fixup` directory.
### overlay
The file to add based on the `/` path.
`custom/etc/udev/rules.d/99-odroid-video.rules` file will be copied in `/etc/udev/rules.d/99-odroid-video.rules`