# setup
IMAGE=CoreELEC-Amlogic-ne.arm-20.0-Nexus_nightly_latest-Khadas_VIM4.img.gz
# download original image
wget https://relkai.coreelec.org/oowow/$IMG
# unpack and rename to common filename style
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hello world |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hello world |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hello |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From bb92b64da8e0b3673cbf907a0bef4da384b03909 Mon Sep 17 00:00:00 2001 | |
From: Artem Lapkin <[email protected]> | |
Date: Thu, 30 Dec 2021 12:35:48 +0800 | |
Subject: [PATCH] config/boards/VIM4.conf: user can define UBOOT_DEFCONFIG | |
UBOOT_GIT_BRANCH LINUX_GIT_BRANCH | |
Signed-off-by: Artem Lapkin <[email protected]> | |
--- | |
config/boards/VIM4.conf | 6 +++--- | |
1 file changed, 3 insertions(+), 3 deletions(-) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kvim4# mw 1000 0 aa; load mmc 0 1000 /extlinux/extlinux.conf; md 1000 aa | |
556 bytes read in 3 ms (180.7 KiB/s) | |
00001000: 7b92369b c3b5956b f63e5948 7c99cef0 .6.{k...HY>....| | |
00001010: 14e85752 570a444c 540c2f93 376ac390 RW..LD.W./.T..j7 | |
00001020: c92e0ee2 534b6141 0a7151c6 ccf93547 ....AaKS.Qq.G5.. | |
00001030: cbeaa320 2299eb7f cd775e52 ff535f64 ......"R^w.d_S. | |
00001040: c55ba374 df591f2e d918832c a1706e8c t.[...Y.,....np. | |
00001050: c6103652 c80d3461 c0f407d8 1d380da4 R6..a4........8. | |
00001060: 2cb9b5c6 2ef47e31 2ceb751a c0a560e4 ...,1~...u.,.`.. | |
00001070: c4db67f8 b74a43dd c4d1829b b74a43dd .g...CJ......CJ. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /boot/dtb | |
cp kvim3l_linux.dtb kvim3l_linux.dtb.org | |
dtc -Idtb kvim3l_linux.dtb > kvim3l_linux.dts | |
dtc -Idtb kvim3l_linux.dtb > kvim3l_linux.dts.org | |
# need to change this node aml-audio-card,dai-link@0 / codec | |
# need only output i2s | |
# grep -B19 -A4 "sound-dai = <0x71 0x71 0x73>;" kvim3l_linux.dts | |
sed "s/sound-dai = <0x71 0x71 0x73>;/sound-dai = <0x71>;/" kvim3l_linux.dts.org > kvim3l_linux.dts | |
dtc -Odtb kvim3l_linux.dts > kvim3l_linux.dtb | |
# DONE |
- https://github.com/khadas/krescue/blob/master/tools/xze
- https://raw.githubusercontent.com/khadas/krescue/master/tools/xze
This script just simple bash script, for demonstrate basic ideas realisation. I thinks its will be useful recommendations for all distros which use xz/lzma image compression
NewerOlder