Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


Sidebar

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

This is an old revision of the document!


Online external images usage

  • WIP: Fri 26 May 2023 01:47:31 PM CST
  • at this moment testing image not visible for edge2 need force show all files
  • need improve oowow dl logic
  • test repack image with xze
  • test redirect usage to dl again with xze

Testing

https://www.armbian.com/khadas-edge-2/

https://redirect.armbian.com/khadas-edge2/Jammy_legacy

check original link
curl https://redirect.armbian.com/khadas-edge2/Jammy_legacy -i
HTTP/2 302 
server: nginx/1.18.0
date: Fri, 26 May 2023 02:11:33 GMT
content-length: 0
location: https://mirror.iscas.ac.cn/armbian-releases/khadas-edge2/archive/Armbian_23.2.9_Khadas-edge2_jammy_legacy_5.10.160.img.xz
x-geo-distance: 3377558.166124
 
~$ curl -i http://redirect.armbian.com/khadas-edge2/Jammy_legacy
HTTP/1.1 302 Found
Server: nginx/1.18.0
Date: Fri, 26 May 2023 03:23:24 GMT
Content-Length: 0
Connection: keep-alive
Location: http://armbian.tnahosting.net/dl/khadas-edge2/archive/Armbian_23.2.9_Khadas-edge2_jammy_legacy_5.10.160.img.xz
X-Geo-Distance: 1883751.967384
create external image link
~$ echo http://redirect.armbian.com/khadas-edge2/Jammy_legacy > test-edge2-armbian-external.img.xz 
 
storage@web:/storage/.images/edge2$ ls -l1 test-edge2-armbian-external.img.xz 
-rw-rw-r-- 1 storage storage 54 May 25 23:24 test-edge2-armbian-external.img.xz
 
## setup permission for use link features
~$ chmod 0667 test-edge2-armbian-external.img.xz
 
~$ ls -l1 test-edge2-armbian-external.img.xz 
-rw-rw-rwx 1 storage storage 54 May 25 23:24 test-edge2-armbian-external.img.xz
check link redirection from dl server
~$ curl -is http://dl.khadas.com/.images/edge2/test-edge2-armbian-external.img.xz | head -n7
HTTP/1.1 302 Moved Temporarily
Server: nginx
Date: Fri, 26 May 2023 05:32:14 GMT
Content-Type: text/html
Content-Length: 138
Connection: keep-alive
Location: http://redirect.armbian.com/khadas-edge2/Jammy_legacy

Image oowow compatible requirements

We recommend use zxe feature for image developers, for provide better service for users like a:

  • Provide additional information about images
  • Its fully compatible with common xz format, and same possible to use anywhere
  • Fast checking image integrity before write it
  • Make warranty its image will be suitable for current board installation
  • Fast optimal compression for fastest decompression on SBC
  • Image signup
  • etc ..

WIP:

check oowow meta online example
~$ curl -s -jkLf -r-4096 http://dl.khadas.com/.images/edge2/edge2-ubuntu-22.04-server-linux-5.10-fenix-1.5-230425.img.xz | xz -dc
##META_FILE##
FILE: edge2-ubuntu-22.04-server-linux-5.10-fenix-1.5-230425.img.xz
UNPACKED_SIZE: 2634022912
PACKED_SIZE: 429813760
FILE_SIZE: 429817856
##META-FILE##
 
##KRESCUE_META##
type:xz
label: Ubuntu
match: BOARD=Edge2
builder: fenix
link: https://dl.khadas.com/Firmware/
desc: Ubuntu 1.5 server jammy - fenix generated images https://github.com/khadas/fenix
duration: 60
date: Tue 25 Apr 2023 01:56:58 PM UTC
image: edge2-ubuntu-22.04-server-linux-5.10-fenix-1.5-230425.img
##KRESCUE-META##
##KRESCUE##END
Last modified: 2023/05/26 01:49 by hyphop