crictl can import images but slow
This commit is contained in:
28
README.md
28
README.md
@@ -5,17 +5,16 @@ Kubernetes image for Mono Gateway Development Kit
|
||||
https://docs.mono.si/gateway-development-kit/getting-started
|
||||
|
||||
## DISCLAIMER
|
||||
I leverage ChatGPT heavily for this. I also tested them thoroughly enough that until I am confident that's what we need.
|
||||
USE AT YOUR OWN RISKS. I leverage ChatGPT heavily for this. I am testing them all by myself right now.
|
||||
|
||||
### The device's dts files are located at here
|
||||
https://github.com/we-are-mono/OpenWRT-ASK/tree/mono-25.12.0-rc3/target/linux/layerscape/files/arch/arm64/boot/dts/freescale
|
||||
* We need both `mono-gateway-dk-sdk.dts` and `mono-gateway-dk.dts` since the sdk one includes the non-sdk one.
|
||||
* The actual dts being used is the `mono-gateway-dk-sdk.dts`
|
||||
|
||||
|
||||
## Build
|
||||
|
||||
To avoid frequent downloading on rebuild. Find the latest packages and update build.env
|
||||
Find the latest package versions and update build.env
|
||||
* [kernel](https://github.com/nxp-qoriq/linux/archive/refs/tags/)
|
||||
* [busybox](https://github.com/mirror/busybox/archive/refs/tags/)
|
||||
* [CRI-O](https://github.com/cri-o/cri-o/releases)
|
||||
@@ -23,12 +22,15 @@ To avoid frequent downloading on rebuild. Find the latest packages and update bu
|
||||
|
||||
Then run
|
||||
```
|
||||
make download-packages
|
||||
make release
|
||||
```
|
||||
|
||||
### Making sub stages
|
||||
```bash
|
||||
make itb # for out/board.itb (contains the kernel and the initramfs)
|
||||
make release # WORK IN PROGRESS
|
||||
make build-base # The image the builds kernel and everything
|
||||
make kernel # Builds our kernel from NXP
|
||||
make initramfs
|
||||
make itb # Builds out/board.itb (contains the kernel and the initramfs)
|
||||
```
|
||||
|
||||
## Architecture
|
||||
@@ -66,7 +68,9 @@ setenv serverip 10.0.0.129
|
||||
tftp 0x80000000 board.itb
|
||||
```
|
||||
|
||||
## USB
|
||||
## USB Flashing
|
||||
1. Copy board.itb into an SDCard
|
||||
2. Copy `[RELEASE_NAME].img.gz` into an SDCard
|
||||
```
|
||||
usb start
|
||||
usb tree
|
||||
@@ -77,3 +81,13 @@ fatload usb 0 0x80000000 board.itb
|
||||
setenv bootargs "console=ttyS0,115200 earlycon=uart8250,mmio,0x21c0500 root=/dev/ram0 rootwait rw"
|
||||
bootm 0x80000000
|
||||
```
|
||||
|
||||
3. Inside initramfs
|
||||
```
|
||||
mount /dev/sda /mnt
|
||||
gunzip -c /mnt/[RELEASE_IMAGE].img.gz | dd of=/dev/mmcblk0
|
||||
reboot -f
|
||||
```
|
||||
|
||||
4. If it boots, create the A/B deployment scheme
|
||||
- (WORK IN PROGRESS)
|
||||
|
||||
Reference in New Issue
Block a user