Compare commits
6 Commits
3fc6500108
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 6315d440d0 | |||
|
|
85f0cd1c09 | ||
| e2fd2fd3d6 | |||
| 8814f12be4 | |||
|
|
4171400072 | ||
|
|
4323bdc2c3 |
@@ -6,6 +6,8 @@
|
|||||||
<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>
|
||||||
|
|||||||
0
Writerside/cfg/google.body.html
Normal file
0
Writerside/cfg/google.body.html
Normal file
9
Writerside/cfg/google.head.html
Normal file
9
Writerside/cfg/google.head.html
Normal 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>
|
||||||
@@ -15,7 +15,9 @@
|
|||||||
<toc-element toc-title="U-Boot">
|
<toc-element toc-title="U-Boot">
|
||||||
</toc-element>
|
</toc-element>
|
||||||
<toc-element toc-title="Odroid">
|
<toc-element toc-title="Odroid">
|
||||||
|
<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>
|
||||||
59
Writerside/topics/Change-kernel-version.md
Normal file
59
Writerside/topics/Change-kernel-version.md
Normal 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
|
||||||
|
```
|
||||||
116
Writerside/topics/Use-ODROID-STAMPER.md
Normal file
116
Writerside/topics/Use-ODROID-STAMPER.md
Normal 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`
|
||||||
|
|
||||||
Reference in New Issue
Block a user