Odin2 Use Custom ABL, boot from TF Card (#6517)

* Update sm8250: kernel add legacy and edge branch
* Update Odin2:Using a new boot method,boot from sd
This commit is contained in:
FantasyGmm
2024-04-24 17:10:53 +08:00
committed by GitHub
parent 741e95c1c1
commit 2a12c44e7b
3 changed files with 88 additions and 5 deletions

View File

@@ -5,6 +5,10 @@ function add_host_dependencies__abl_host_deps() {
function post_build_image__900_convert_to_abl_img() {
[[ -z $version ]] && exit_with_error "version is not set"
if [ ! -z "$BOOTFS_TYPE" ]; then
return 0
fi
display_alert "Converting image $version to rootfs" "${EXTENSION}" "info"
declare -g ROOTFS_IMAGE_FILE="${DESTIMG}/${version}.rootfs.img"
rootfs_start_sector=$(gdisk -l ${DESTIMG}/${version}.img | grep rootfs | awk '{print $2}')