Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


software:oowow:dev:online-external-images-usage:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
software:oowow:dev:online-external-images-usage:start [2023/05/26 02:54]
hyphop [Repack testing]
software:oowow:dev:online-external-images-usage:start [2023/11/23 22:04] (current)
hyphop
Line 2: Line 2:
  
 <WRAP important > <WRAP important >
-  * WIP: Fri 26 May 2023 01:47:31 PM CST +  * updated: Fri 26 May 2023 01:47:31 PM CST WIP: 
-  * at this moment testing image not visible for edge2 need force show all files +  * At this moment testing images not visible inside Wizard need to use force to show all files via write into eMMC ... 
-  * need improve oowow dl logic  +  * Need to try to improve OOWOW image logic! original images slow check and show warnings, and don't have meta information WIP: 
-  * test repack image with xze +  * Need to share this information with images developers for making better results   
-  * test redirect usage to dl again with xze+  * Test repack image with ''xze'' - OK 
 +  * Test redirect usage to dl again with ''xze'' - OK
 </WRAP> </WRAP>
  
 +===== Original Armbian images =====
  
-===== Testing  =====+==== Testing  ====
  
 https://www.armbian.com/khadas-edge-2/ https://www.armbian.com/khadas-edge-2/
Line 36: Line 38:
  
 ``` ```
 +
 +=== Create redirection to external link ===
  
 ```shell create external image link ```shell create external image link
Line 63: Line 67:
 ``` ```
  
 +=== External link showing on web browser ===
 +/*
 +{{./original/oowow-edge2-images-list.webp?linkonly}}
 +*/
 +{{./original/oowow-edge2-images-list.webp?X800&direct}}
  
-===== Images testing =====+==== Images testing ====
  
  
Line 85: Line 94:
 ``` ```
  
-===== Screenshots =====+==== Screenshots problematic installation process ====
  
-{{gallery>?*.webp&direct}}+{{gallery>original?*.webp&lightbox&1920X1080}}
  
  
 ===== Repack testing ===== ===== Repack testing =====
  
-```shell check repacked image+```sh repack original armbian image example 
 +cd ~ && mkdir -p armbian-test && cd armbian-test # prepare space 
 +# download xze script  
 +wget https://raw.githubusercontent.com/khadas/krescue/master/tools/xze 
 +chmod 0777 xze 
 +# download original armbian image 
 +wget --content-disposition http://redirect.armbian.com/khadas-edge2/Jammy_legacy 
 +# 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 "Armbian_23.2.9_Khadas-edge2_jammy_legacy_5.10.160.img"
 + --meta \ 
 + label=Armbian \ 
 + builder=Armbian \ 
 + date="$(LANG=C TZ= date)" \ 
 + match=BOARD=Edge2 \ 
 + link=https://www.armbian.com/khadas-edge-2/
 + duration=60 \ 
 + desc="Armbian Jammy legacy testing ... "
  
-master@universe:~/khadas/img/edge2$ ls -l1 edge2-armbian-jammy-legacy-original-repack.img.xz +```
--rw-rw-r-- 1 master master 495837184 May 26 14:05 edge2-armbian-jammy-legacy-original-repack.img.xz+
  
-master@universe:~/khadas/img/edge2$ time pixz -dc edge2-armbian-jammy-legacy-original-repack.img.xz edge2-armbian-jammy-legacy-original-repack.img 
  
-real 0m4.270s +```shell check repacked image 
-user 0m34.601s +~$ ./xze Armbian_23.2.9_Khadas-edge2_jammy_legacy_5.10.160-repack.img.xz 
-sys 0m2.627s +
- +
-master@universe:~/khadas/img/edge2$ ./xze edge2-armbian-jammy-legacy-original-repack.img.xz +
 Strms  Blocks   Compressed Uncompressed  Ratio  Check   Filename Strms  Blocks   Compressed Uncompressed  Ratio  Check   Filename
-    2      26    472.9 MiB  2,244.0 MiB  0.211  CRC64   edge2-armbian-jammy-legacy-original-repack.img.xz+    2      26    472.9 MiB  2,244.0 MiB  0.211  CRC64   Armbian_23.2.9_Khadas-edge2_jammy_legacy_5.10.160-repack.img.xz
 [i] blocks: 26 // 472.9*MiB // 2,244.0*MiB [i] blocks: 26 // 472.9*MiB // 2,244.0*MiB
 ##META_FILE## ##META_FILE##
-FILE: Armbian_23.2.9_Khadas-edge2_jammy_legacy_5.10.160.img.xz+FILE: Armbian_23.2.9_Khadas-edge2_jammy_legacy_5.10.160-repack.img.xz
 UNPACKED_SIZE: 2353004544 UNPACKED_SIZE: 2353004544
 PACKED_SIZE: 495833088 PACKED_SIZE: 495833088
Line 118: Line 142:
 label: Armbian label: Armbian
 builder: Armbian builder: Armbian
-date: Fri 26 May 2023 06:03:01 AM UTC+date: Fri 26 May 2023 07:26:58 AM UTC
 match: BOARD=Edge2 match: BOARD=Edge2
 link: https://www.armbian.com/khadas-edge-2/ link: https://www.armbian.com/khadas-edge-2/
 duration: 60 duration: 60
 desc: Armbian Jammy legacy testing ... desc: Armbian Jammy legacy testing ...
-image: Armbian_23.2.9_Khadas-edge2_jammy_legacy_5.10.160.img+image: Armbian_23.2.9_Khadas-edge2_jammy_legacy_5.10.160-repack.img
 ##KRESCUE-META## ##KRESCUE-META##
 ##KRESCUE##END ##KRESCUE##END
 +
  
 ``` ```
  
 +```shell put redirect links to oowow collection
 +
 +storage@web:/storage/.images/edge2$ cat test-edge2-armbian-external.img.xz        
 +http://redirect.armbian.com/khadas-edge2/Jammy_legacy
 +storage@web:/storage/.images/edge2$ cat test-edge2-armbian-repack.img.xz 
 +http://dl.khadas.com/.test/edge2/armbian/Armbian_23.2.9_Khadas-edge2_jammy_legacy_5.10.160-repack.img.xz
 +
 +```
 +
 +====  check meta by online ====
 +
 +
 +```shell check meta by online
 +~$ curl -s -jkLf -r-4096 http://dl.khadas.com/.test/edge2/armbian/Armbian_23.2.9_Khadas-edge2_jammy_legacy_5.10.160-repack.img.xz | xz -dc 
 +##META_FILE##
 +FILE: Armbian_23.2.9_Khadas-edge2_jammy_legacy_5.10.160-repack.img.xz
 +UNPACKED_SIZE: 2353004544
 +PACKED_SIZE: 495833088
 +FILE_SIZE: 495837184
 +##META-FILE##
 +
 +##KRESCUE_META##
 +type:xz
 +label: Armbian
 +builder: Armbian
 +date: Fri 26 May 2023 07:26:58 AM UTC
 +match: BOARD=Edge2
 +link: https://www.armbian.com/khadas-edge-2/
 +duration: 60
 +desc: Armbian Jammy legacy testing ...
 +image: Armbian_23.2.9_Khadas-edge2_jammy_legacy_5.10.160-repack.img
 +##KRESCUE-META##
 +##KRESCUE##END
 +```
 +
 +```shell check redirect from images collection
 +~$ curl http://dl.khadas.com/.images/edge2/test-edge2-armbian-repack.img.xz -i | head -n7
 +  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
 +                                 Dload  Upload   Total   Spent    Left  Speed
 +100   138  100   138    0        251      0 --:--:-- --:--:-- --:--:--   251
 +HTTP/1.1 302 Moved Temporarily
 +Server: nginx
 +Date: Fri, 26 May 2023 07:41:18 GMT
 +Content-Type: text/html
 +Content-Length: 138
 +Connection: keep-alive
 +Location: http://dl.khadas.com/.test/edge2/armbian/Armbian_23.2.9_Khadas-edge2_jammy_legacy_5.10.160-repack.img.xz
 +
 +```
 +
 +```shell final check image meta
 +~$ curl -s -jkLf -r-4096 http://dl.khadas.com/.images/edge2/test-edge2-armbian-repack.img.xz | xz -dc 
 +##META_FILE##
 +FILE: Armbian_23.2.9_Khadas-edge2_jammy_legacy_5.10.160-repack.img.xz
 +UNPACKED_SIZE: 2353004544
 +PACKED_SIZE: 495833088
 +FILE_SIZE: 495837184
 +##META-FILE##
 +
 +##KRESCUE_META##
 +type:xz
 +label: Armbian
 +builder: Armbian
 +date: Fri 26 May 2023 07:26:58 AM UTC
 +match: BOARD=Edge2
 +link: https://www.armbian.com/khadas-edge-2/
 +duration: 60
 +desc: Armbian Jammy legacy testing ...
 +image: Armbian_23.2.9_Khadas-edge2_jammy_legacy_5.10.160-repack.img
 +##KRESCUE-META##
 +##KRESCUE##END
 +```
 +==== Screenshots normal installation process ====
 +
 +
 +{{gallery>repack?*.webp&lightbox&1920X1080}}
 ===== Image oowow compatible requirements ===== ===== Image oowow compatible requirements =====
  
-We recommend use [[https://github.com/khadas/krescue/blob/master/tools/xze|zxe]] feature for image developers, for provide better service for users like a:+We recommend using [[https://github.com/khadas/krescue/blob/master/tools/xze|zxe]] feature for image developers, to provide better service for users like as:
  
   * Provide additional information about images   * Provide additional information about images
-  * 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 write it+  * Fast-checking image integrity before writing it
   * 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**, but why not follow them by other developers, because its images will be created especially for our devices   
 +</WRAP>
  
 WIP: WIP:
Line 167: Line 272:
 ##KRESCUE-META## ##KRESCUE-META##
 ##KRESCUE##END ##KRESCUE##END
- 
- 
 ``` ```
  
 +```shell show image meta online example for armbian 
  
 +~$ curl -s -jkLf -r-4096 http://dl.khadas.com/.test/edge2/armbian/edge2-armbian-jammy-legacy-original-repack.img.xz | xz -dc
 +##META_FILE##
 +FILE: Armbian_23.2.9_Khadas-edge2_jammy_legacy_5.10.160.img.xz
 +UNPACKED_SIZE: 2353004544
 +PACKED_SIZE: 495833088
 +FILE_SIZE: 495837184
 +##META-FILE##
  
 +##KRESCUE_META##
 +type:xz
 +label: Armbian
 +builder: Armbian
 +date: Fri 26 May 2023 06:03:01 AM UTC
 +match: BOARD=Edge2
 +link: https://www.armbian.com/khadas-edge-2/
 +duration: 60
 +desc: Armbian Jammy legacy testing ...
 +image: Armbian_23.2.9_Khadas-edge2_jammy_legacy_5.10.160.img
 +##KRESCUE-META##
 +##KRESCUE##END
 +```
  
Last modified: 2023/05/26 02:54 by hyphop