-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
106 changed files
with
1,445 additions
and
3,292 deletions.
There are no files selected for viewing
This file contains 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 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/bin/bash | ||
|
||
# 检查参数数量 | ||
if [ "$#" -ne 5 ]; then | ||
echo "Usage: $0 <output_image> <boot_partition_image> <rootfs_image>" | ||
exit 1 | ||
fi | ||
|
||
OUTPUT_IMAGE=$1 | ||
BOOT_PARTITION_IMAGE=$2 | ||
ROOTFS_IMAGE=$3 | ||
|
||
|
||
# 下载并准备工具 | ||
ver="v0.3.1" | ||
[ -f AmlImg ] || curl -L -o ./AmlImg https://github.com/hzyitc/AmlImg/releases/download/$ver/AmlImg_${ver}_linux_amd64 | ||
chmod +x ./AmlImg | ||
[ -f uboot.img ] || curl -L -o ./uboot.img https://github.com/hzyitc/u-boot-onecloud/releases/download/build-20221028-0940/eMMC.burn.img | ||
./AmlImg unpack ./uboot.img burn/ | ||
|
||
# 转换镜像格式 | ||
img2simg ${BOOT_PARTITION_IMAGE} burn/boot.simg | ||
img2simg ${ROOTFS_IMAGE} burn/rootfs.simg | ||
|
||
# 创建命令文件 | ||
cat <<EOF >>burn/commands.txt | ||
PARTITION:boot:sparse:boot.simg | ||
PARTITION:rootfs:sparse:rootfs.simg | ||
EOF | ||
|
||
# 打包生成最终镜像 | ||
./AmlImg pack ${OUTPUT_IMAGE} burn/ | ||
|
||
# 清理临时文件夹 | ||
rm -rf burn |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,24 @@ | ||
--- a/target/linux/amlogic/image/Makefile | ||
+++ b/target/linux/amlogic/image/Makefile | ||
@@ -49,7 +49,8 @@ endef | ||
@@ -36,7 +36,7 @@ endef | ||
### Devices ### | ||
define Device/Default | ||
FILESYSTEMS := ext4 | ||
- IMAGES := emmc.img | ||
+ IMAGES := emmc_burn.img | ||
KERNEL_DEPENDS = $$(wildcard $(DTS_DIR)/$$(DEVICE_DTS).dts) | ||
KERNEL_LOADADDR := 0x01080000 | ||
KERNEL_NAME := Image | ||
@@ -46,9 +46,10 @@ endef | ||
|
||
define Device/thunder-onecloud | ||
DEVICE_DTS := meson8b-onecloud | ||
DEVICE_DTS := amlogic/meson8b-onecloud | ||
- DEVICE_TITLE := Thunder OneCloud | ||
+ DEVICE_TITLE := OneCloud 玩客云 | ||
+ DEVICE_PACKAGES += kmod-usb-net-rtl8152 | ||
KERNEL_LOADADDR := 0x00208000 | ||
IMAGE/emmc_burn.img := boot-script onecloud | emmc-common $$(DEVICE_NAME) | ||
- IMAGE/emmc.img := boot-script onecloud | emmc-common $$(DEVICE_NAME) | ||
+ IMAGE/emmc_burn.img := boot-script onecloud | emmc-common $$(DEVICE_NAME) | ||
endef | ||
ifeq ($(SUBTARGET),meson8b) | ||
TARGET_DEVICES += thunder-onecloud |
This file contains 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 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 was deleted.
Oops, something went wrong.
This file contains 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,4 @@ shopt -s extglob | |
|
||
SHELL_FOLDER=$(dirname $(readlink -f "$0")) | ||
|
||
|
||
|
||
|
||
|
||
sed -i '/# start dockerd/,/# end dockerd/d' .config |
This file contains 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 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 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 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 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 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 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 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
Oops, something went wrong.