This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
software:oowow:dev:online-external-images-usage:start [2023/05/25 23:43] hyphop [Testing] |
software:oowow:dev:online-external-images-usage:start [2023/11/23 22:04] (current) hyphop |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Online external images usage ====== | ====== Online external images usage ====== | ||
+ | <WRAP important > | ||
+ | * updated: Fri 26 May 2023 01:47:31 PM CST WIP: | ||
+ | * At this moment testing images not visible inside Wizard need to use force to show all files via write into eMMC ... | ||
+ | * Need to try to improve OOWOW image logic! original images slow check and show warnings, and don't have meta information WIP: | ||
+ | * Need to share this information with images developers for making better results | ||
+ | * Test repack image with '' | ||
+ | * Test redirect usage to dl again with '' | ||
+ | </ | ||
- | WIP: | + | ===== Original Armbian images ===== |
- | ===== Testing | + | ==== Testing |
https:// | https:// | ||
Line 31: | Line 38: | ||
``` | ``` | ||
+ | |||
+ | === Create redirection to external link === | ||
```shell create external image link | ```shell create external image link | ||
- | ~$ echo http:// | + | ~$ echo http:// |
- | storage@web:/ | + | |
- | -rw-rw-r-- 1 storage storage 54 May 25 23:24 .test-external-image.xz | + | storage@web:/ |
+ | -rw-rw-r-- 1 storage storage 54 May 25 23:24 test-edge2-armbian-external.img.xz | ||
## setup permission for use link features | ## setup permission for use link features | ||
- | ~$ chmod 0667 .test-external-image.xz | + | ~$ chmod 0667 test-edge2-armbian-external.img.xz |
- | ~$ ls -l1 .test-external-image.xz | + | ~$ ls -l1 test-edge2-armbian-external.img.xz |
- | -rw-rw-rwx 1 storage storage 54 May 25 23:24 .test-external-image.xz | + | -rw-rw-rwx 1 storage storage 54 May 25 23:24 test-edge2-armbian-external.img.xz |
+ | ``` | ||
+ | ```shell check link redirection from dl server | ||
+ | ~$ curl -is http:// | ||
+ | HTTP/1.1 302 Moved Temporarily | ||
+ | Server: nginx | ||
+ | Date: Fri, 26 May 2023 05:32:14 GMT | ||
+ | Content-Type: | ||
+ | Content-Length: | ||
+ | Connection: keep-alive | ||
+ | Location: http:// | ||
``` | ``` | ||
+ | === External link showing on web browser === | ||
+ | /* | ||
+ | {{./ | ||
+ | */ | ||
+ | {{./ | ||
+ | |||
+ | ==== Images testing ==== | ||
+ | |||
+ | |||
+ | ```shell decompression original files | ||
+ | master@universe: | ||
+ | |||
+ | real 0m31.879s | ||
+ | user 0m30.135s | ||
+ | sys 0m1.418s | ||
+ | master@universe: | ||
+ | |||
+ | real 0m3.181s | ||
+ | user 0m39.479s | ||
+ | sys 0m1.180s | ||
+ | |||
+ | ~$ ls -l1 Armbian_23.2.9_Khadas-edge2_jammy_legacy_5.10.160.img.xz | ||
+ | -rw-rw-r-- 1 master master 582247696 May 26 10:11 Armbian_23.2.9_Khadas-edge2_jammy_legacy_5.10.160.img.xz | ||
+ | |||
+ | |||
+ | ``` | ||
+ | |||
+ | ==== Screenshots problematic installation process ==== | ||
+ | |||
+ | {{gallery> | ||
+ | |||
+ | |||
+ | ===== Repack testing ===== | ||
+ | |||
+ | ```sh repack original armbian image example | ||
+ | cd ~ && mkdir -p armbian-test && cd armbian-test # prepare space | ||
+ | # download xze script | ||
+ | wget https:// | ||
+ | chmod 0777 xze | ||
+ | # download original armbian image | ||
+ | wget --content-disposition http:// | ||
+ | # decompress to raw | ||
+ | pixz -dc Armbian_23.2.9_Khadas-edge2_jammy_legacy_5.10.160.img.xz | ||
+ | # setup output filename | ||
+ | export OUT=Armbian_23.2.9_Khadas-edge2_jammy_legacy_5.10.160-repack.img.xz | ||
+ | # compress image | ||
+ | ./xze " | ||
+ | --meta \ | ||
+ | label=Armbian \ | ||
+ | builder=Armbian \ | ||
+ | date=" | ||
+ | match=BOARD=Edge2 \ | ||
+ | link=https:// | ||
+ | duration=60 \ | ||
+ | desc=" | ||
+ | |||
+ | ``` | ||
+ | |||
+ | |||
+ | ```shell check repacked image | ||
+ | ~$ ./xze Armbian_23.2.9_Khadas-edge2_jammy_legacy_5.10.160-repack.img.xz | ||
+ | Strms Blocks | ||
+ | 2 26 472.9 MiB 2,244.0 MiB 0.211 CRC64 | ||
+ | [i] blocks: 26 // 472.9*MiB // 2,244.0*MiB | ||
+ | ## | ||
+ | FILE: Armbian_23.2.9_Khadas-edge2_jammy_legacy_5.10.160-repack.img.xz | ||
+ | UNPACKED_SIZE: | ||
+ | PACKED_SIZE: | ||
+ | FILE_SIZE: 495837184 | ||
+ | ## | ||
+ | |||
+ | ## | ||
+ | type:xz | ||
+ | label: Armbian | ||
+ | builder: Armbian | ||
+ | date: Fri 26 May 2023 07:26:58 AM UTC | ||
+ | match: BOARD=Edge2 | ||
+ | link: https:// | ||
+ | duration: 60 | ||
+ | desc: Armbian Jammy legacy testing ... | ||
+ | image: Armbian_23.2.9_Khadas-edge2_jammy_legacy_5.10.160-repack.img | ||
+ | ## | ||
+ | ## | ||
+ | |||
+ | |||
+ | ``` | ||
+ | |||
+ | ```shell put redirect links to oowow collection | ||
+ | |||
+ | storage@web:/ | ||
+ | http:// | ||
+ | storage@web:/ | ||
+ | http:// | ||
+ | |||
+ | ``` | ||
+ | |||
+ | ==== check meta by online ==== | ||
+ | |||
+ | |||
+ | ```shell check meta by online | ||
+ | ~$ curl -s -jkLf -r-4096 http:// | ||
+ | ## | ||
+ | FILE: Armbian_23.2.9_Khadas-edge2_jammy_legacy_5.10.160-repack.img.xz | ||
+ | UNPACKED_SIZE: | ||
+ | PACKED_SIZE: | ||
+ | FILE_SIZE: 495837184 | ||
+ | ## | ||
+ | |||
+ | ## | ||
+ | type:xz | ||
+ | label: Armbian | ||
+ | builder: Armbian | ||
+ | date: Fri 26 May 2023 07:26:58 AM UTC | ||
+ | match: BOARD=Edge2 | ||
+ | link: https:// | ||
+ | duration: 60 | ||
+ | desc: Armbian Jammy legacy testing ... | ||
+ | image: Armbian_23.2.9_Khadas-edge2_jammy_legacy_5.10.160-repack.img | ||
+ | ## | ||
+ | ## | ||
+ | ``` | ||
+ | |||
+ | ```shell check redirect from images collection | ||
+ | ~$ curl http:// | ||
+ | % Total % Received % Xferd Average Speed | ||
+ | | ||
+ | 100 | ||
+ | HTTP/1.1 302 Moved Temporarily | ||
+ | Server: nginx | ||
+ | Date: Fri, 26 May 2023 07:41:18 GMT | ||
+ | Content-Type: | ||
+ | Content-Length: | ||
+ | Connection: keep-alive | ||
+ | Location: http:// | ||
+ | |||
+ | ``` | ||
+ | |||
+ | ```shell final check image meta | ||
+ | ~$ curl -s -jkLf -r-4096 http:// | ||
+ | ## | ||
+ | FILE: Armbian_23.2.9_Khadas-edge2_jammy_legacy_5.10.160-repack.img.xz | ||
+ | UNPACKED_SIZE: | ||
+ | PACKED_SIZE: | ||
+ | FILE_SIZE: 495837184 | ||
+ | ## | ||
+ | |||
+ | ## | ||
+ | type:xz | ||
+ | label: Armbian | ||
+ | builder: Armbian | ||
+ | date: Fri 26 May 2023 07:26:58 AM UTC | ||
+ | match: BOARD=Edge2 | ||
+ | link: https:// | ||
+ | duration: 60 | ||
+ | desc: Armbian Jammy legacy testing ... | ||
+ | image: Armbian_23.2.9_Khadas-edge2_jammy_legacy_5.10.160-repack.img | ||
+ | ## | ||
+ | ## | ||
+ | ``` | ||
+ | ==== Screenshots normal installation process ==== | ||
+ | |||
+ | |||
+ | {{gallery> | ||
===== Image oowow compatible requirements ===== | ===== Image oowow compatible requirements ===== | ||
- | We recommend | + | We recommend |
- | * Display some information about images | + | * Provide additional |
- | * Its fully compatible with common xz format, and same possible to use anywhere | + | * Its fully compatible with the common xz format, and same possible to use anywhere |
- | * Fast checking image integrity before | + | * Fast-checking image integrity before |
* Make warranty its image will be suitable for current board installation | * Make warranty its image will be suitable for current board installation | ||
* Fast optimal compression for fastest decompression on SBC | * Fast optimal compression for fastest decompression on SBC | ||
* Image signup | * Image signup | ||
- | * etc .. | + | * etc... |
+ | |||
+ | <WRAP important > | ||
+ | Sure all requirements are **optional**, | ||
+ | </ | ||
WIP: | WIP: | ||
+ | |||
+ | |||
```shell check oowow meta online example | ```shell check oowow meta online example | ||
Line 83: | Line 272: | ||
## | ## | ||
## | ## | ||
- | |||
- | |||
``` | ``` | ||
+ | ```shell show image meta online example for armbian | ||
+ | ~$ curl -s -jkLf -r-4096 http:// | ||
+ | ## | ||
+ | FILE: Armbian_23.2.9_Khadas-edge2_jammy_legacy_5.10.160.img.xz | ||
+ | UNPACKED_SIZE: | ||
+ | PACKED_SIZE: | ||
+ | FILE_SIZE: 495837184 | ||
+ | ## | ||
+ | |||
+ | ## | ||
+ | type:xz | ||
+ | label: Armbian | ||
+ | builder: Armbian | ||
+ | date: Fri 26 May 2023 06:03:01 AM UTC | ||
+ | match: BOARD=Edge2 | ||
+ | link: https:// | ||
+ | duration: 60 | ||
+ | desc: Armbian Jammy legacy testing ... | ||
+ | image: Armbian_23.2.9_Khadas-edge2_jammy_legacy_5.10.160.img | ||
+ | ## | ||
+ | ## | ||
+ | ``` | ||