Skip to content

Commit

Permalink
update panther x2
Browse files Browse the repository at this point in the history
  • Loading branch information
jianyun8023 committed Jun 20, 2024
1 parent 84d8044 commit 80fbd8d
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 10 deletions.
1 change: 1 addition & 0 deletions buildroot-external/board/panther/x2/cmdline.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console=tty0
6 changes: 0 additions & 6 deletions buildroot-external/board/panther/x2/hassos-hook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,12 @@

function hassos_pre_image() {
local BOOT_DATA="$(path_boot_dir)"
local SPL_IMG="$(path_spl_img)"

cp "${BINARIES_DIR}/boot.scr" "${BOOT_DATA}/boot.scr"
cp "${BINARIES_DIR}"/*.dtb "${BOOT_DATA}/"

cp "${BOARD_DIR}/boot-env.txt" "${BOOT_DATA}/haos-config.txt"
cp "${BOARD_DIR}/cmdline.txt" "${BOOT_DATA}/cmdline.txt"

# SPL
create_spl_image

dd if="${BINARIES_DIR}/u-boot-rockchip.bin" of="${SPL_IMG}" conv=notrunc bs=512 seek=64
}


Expand Down
13 changes: 13 additions & 0 deletions buildroot-external/board/panther/x2/image-spl-spl.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
image spl.img {
size = ${BOOT_SPL_SIZE}

hdimage {
partition-table-type = "none"
fill = "yes"
}

partition uboot {
offset = 32k
image = "u-boot-rockchip.bin"
}
}
7 changes: 7 additions & 0 deletions buildroot-external/board/panther/x2/partition-spl-spl.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
partition spl {
size = ${BOOT_SPL_SIZE}
image = "spl.img"
in-partition-table = "no"
offset = 0
holes = {"(0; 17k)"}
}
7 changes: 3 additions & 4 deletions buildroot-external/configs/panther_x2_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ BR2_ROOTFS_POST_IMAGE_SCRIPT="$(BR2_EXTERNAL_HASSOS_PATH)/scripts/post-image.sh"
BR2_ROOTFS_POST_SCRIPT_ARGS="$(BR2_EXTERNAL_HASSOS_PATH)/board/panther/x2 $(BR2_EXTERNAL_HASSOS_PATH)/board/panther/x2/hassos-hook.sh"
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.6.29"
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.6.33"
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="$(BR2_EXTERNAL_HASSOS_PATH)/kernel/v6.6.y/kernel-arm64-rockchip.config"
BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_HASSOS_PATH)/kernel/v6.6.y/hassos.config $(BR2_EXTERNAL_HASSOS_PATH)/kernel/v6.6.y/docker.config $(BR2_EXTERNAL_HASSOS_PATH)/kernel/v6.6.y/device-support.config $(BR2_EXTERNAL_HASSOS_PATH)/kernel/v6.6.y/device-support-wireless.config $(BR2_EXTERNAL_HASSOS_PATH)/board/panther/x2/kernel.config"
Expand Down Expand Up @@ -137,9 +137,8 @@ BR2_TARGET_ROOTFS_SQUASHFS4_LZ4=y
# BR2_TARGET_ROOTFS_TAR is not set
BR2_TARGET_UBOOT=y
BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
BR2_TARGET_UBOOT_CUSTOM_GIT=y
BR2_TARGET_UBOOT_CUSTOM_REPO_URL="https://github.com/u-boot/u-boot.git"
BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="v2024.01"
BR2_TARGET_UBOOT_CUSTOM_VERSION=y
BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2024.01"
BR2_TARGET_UBOOT_BOARD_DEFCONFIG="panther-x2"
BR2_TARGET_UBOOT_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_HASSOS_PATH)/bootloader/uboot.config"
BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y
Expand Down

0 comments on commit 80fbd8d

Please sign in to comment.