Skip to content

Commit

Permalink
Upgrade rkbin and linux kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
13pgeiser committed Jul 17, 2023
1 parent 8164d5c commit c69ab45
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bash-scripts
Submodule bash-scripts updated 1 files
+3 −0 .gitattributes
13 changes: 7 additions & 6 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ esac
# Set globals
export ARCH=arm64
export CROSS_COMPILE=aarch64-linux-gnu-
export BL31="$TOOLS_FOLDER/rkbin/bin/rk33/rk3399_bl31_v1.35.elf"
export BL31="$TOOLS_FOLDER/rkbin/bin/rk33/rk3399_bl31_v1.36.elf"
export DDR="rk3399_ddr_800MHz_v1.30.bin"

###############################################################################

Expand All @@ -41,15 +42,15 @@ case $kernel in
dtb="rk3399-tinker_board_2.dtb"
;;
"5.10")
kernel_version_short="5.10.172"
kernel_md5="aa85e5dea4f1c61652404a99fbc567ad"
kernel_version_short="5.10.186"
kernel_md5="f73e35d77a00d59c31ccec3b185b3c37"
kernel_version="linux-${kernel_version_short}"
kernel_url="https://mirrors.edge.kernel.org/pub/linux/kernel/v5.x/${kernel_version}.tar.xz"
dtb="rk3399-tinker-2.dtb"
;;
"6.1")
kernel_version_short="6.1.9"
kernel_md5="ab1ac5556bd2c808e62bde0db04915f6"
kernel_version_short="6.1.19"
kernel_md5="fb8f9f396e6415cfcd81c69eba3c42be"
kernel_version="linux-${kernel_version_short}"
kernel_url="https://mirrors.edge.kernel.org/pub/linux/kernel/v6.x/${kernel_version}.tar.xz"
dtb="rk3399-tinker-2.dtb"
Expand Down Expand Up @@ -169,7 +170,7 @@ EOF
/sbin/parted "$TOOLS_FOLDER/sdcard.img" print
/sbin/fdisk -l "$TOOLS_FOLDER/sdcard.img"

mkimage -n rk3399 -T rksd -d "$TOOLS_FOLDER/rkbin/bin/rk33/rk3399_ddr_800MHz_v1.27.bin" "$TOOLS_FOLDER/idbloader.img"
mkimage -n rk3399 -T rksd -d "$TOOLS_FOLDER/rkbin/bin/rk33/$DDR" "$TOOLS_FOLDER/idbloader.img"
cat "$TOOLS_FOLDER/rkbin/bin/rk33/rk3399_miniloader_v1.26.bin" >>"$TOOLS_FOLDER/idbloader.img"
"$TOOLS_FOLDER/rkbin/tools/loaderimage" --pack --uboot "$TOOLS_FOLDER/u-boot/u-boot-dtb.bin" "$TOOLS_FOLDER/uboot.img" 0x200000
(
Expand Down

0 comments on commit c69ab45

Please sign in to comment.