Compare commits

..

4 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
6 changed files with 153 additions and 8 deletions

View File

@@ -6,8 +6,6 @@
<variables> <variables>
<search-endpoint>https://search.sys114.com</search-endpoint> <search-endpoint>https://search.sys114.com</search-endpoint>
<web-root>https://docs.sys114.com</web-root> <web-root>https://docs.sys114.com</web-root>
<analytics-head-script-file>google.head.html</analytics-head-script-file>
<analytics-body-html-file>google.body.html</analytics-body-html-file>
</variables> </variables>
<build-profile instance="d"> <build-profile instance="d">
<variables> <variables>

View File

@@ -6,4 +6,4 @@
gtag('js', new Date()); gtag('js', new Date());
gtag('config', 'G-8BTPRBKJ5B'); gtag('config', 'G-8BTPRBKJ5B');
</script>-> </script>

View File

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

View File

@@ -5,25 +5,55 @@ Need to change the kernel version, use the method below.
## Install kernel from package server ## Install kernel from package server
Below is an example of changing to kernel version 5.9.0. Below is an example of changing to kernel version 6.1.0.
```Bash ```Bash
sudo apt update sudo apt update
sudo apt install linux-image-5.9.0-odroid-arm64 sudo apt install linux-image-6.1.0-odroid-arm64
sudo flash-kernel --force 5.9.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
```
## View installed kernel list ```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. Use `linux-version` command, you can see list of installed kernel list.
```Bash ```Bash
linux-version list linux-version list
5.9.0-odroid-arm64 5.9.0-odroid-arm64
5.9.15-odroid-arm64 5.9.15-odroid-arm64
6.1.0-odroid-arm64
``` ```
## Change kernel ## Change kernel
Use `flask-kernel`. Use `flask-kernel`.
```Bash ```Bash
sudo flash-kernel --force 5.9.0-odroid-arm64 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`