diff --git a/board/common/overlay/usr/libexec/list-versions-s3 b/board/common/overlay/usr/libexec/list-versions-s3 index 25d4964d90..359c07067d 100755 --- a/board/common/overlay/usr/libexec/list-versions-s3 +++ b/board/common/overlay/usr/libexec/list-versions-s3 @@ -1,7 +1,7 @@ #!/bin/bash # expected final S3 URL: -# https://s3.amazonaws.com/${bucket}/${path}/${version}/${os_short_name}-${board}-${version}.img.xz +# https://{bucket}.s3.amazonaws.com/${path}/${version}/${os_short_name}-${board}-${version}.img.xz if [ -z "$1" ]; then echo "Usage: $0 " 1>&2 @@ -14,21 +14,21 @@ path=${bucket_path:${#bucket} + 1} opts="-s -S -f" test -n "${FW_USERNAME}" && opts+=" --user ${FW_USERNAME}:${FW_PASSWORD}" -url=https://s3.amazonaws.com/${bucket} +url="https://${bucket}.s3.amazonaws.com" -xml_result=$(curl ${opts} ${url}) +xml_result=$(curl ${opts} "${url}?list-type=2&prefix=${path}") keys=$(echo "${xml_result}" | grep -oE '[^<]+<\/Key>' | sed 's/\(.*\)<\/Key>/\1/') dates=$(echo "${xml_result}" | grep -oE '[^<]+<\/LastModified>' | sed 's/\(.*\)<\/LastModified>/\1/') dates=(${dates}) -files=$(echo "${keys}" | grep "^${path}/" | sed "s,^${path}\/,," | sed '/^$/d') +files=(${keys}) i=0 -for file in ${files}; do - version=$(echo ${file} | cut -d '/' -f 1) - fname=$(echo ${file} | cut -d '/' -f 2) +for file in ${files[*]}; do + version=$(echo ${file:${#path} + 1} | cut -d '/' -f 1) + fname=$(basename ${file}) i=$((i + 1)) if [[ -z "${fname}" ]]; then - continue # version folder + continue fi prerelease=false @@ -44,4 +44,3 @@ for file in ${files}; do echo "${version}|${prerelease}|${board}|${final_url}|${date}" done | sort -t '|' -k 5,3 -r - diff --git a/board/odroidxu4/0001-s5p-mfc-enc-silence-failed-to-try-output-format.patch b/board/odroidxu4/0001-s5p-mfc-enc-silence-failed-to-try-output-format.patch new file mode 100644 index 0000000000..bc17ef0035 --- /dev/null +++ b/board/odroidxu4/0001-s5p-mfc-enc-silence-failed-to-try-output-format.patch @@ -0,0 +1,11 @@ +diff -rupEbwBN linux-custom.org/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c linux-custom/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c +--- linux-custom.org/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c 2019-06-19 03:22:19.000000000 +1000 ++++ linux-custom/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c 2019-10-22 10:51:38.006560436 +1100 +@@ -1067,7 +1066,6 @@ static int vidioc_try_fmt(struct file *f + } else if (f->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) { + fmt = find_format(f, MFC_FMT_RAW); + if (!fmt) { +- mfc_err("failed to try output format\n"); + return -EINVAL; + } + if ((dev->variant->version_bit & fmt->versions) == 0) { diff --git a/configs/odroidxu4_defconfig b/configs/odroidxu4_defconfig index 78c7354319..4e3fb96a5c 100644 --- a/configs/odroidxu4_defconfig +++ b/configs/odroidxu4_defconfig @@ -13,6 +13,7 @@ BR2_ROOTFS_POST_BUILD_SCRIPT="board/common/postscript.sh" BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_TARBALL=y BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="https://github.com/hardkernel/linux/archive/4.14.127-164.tar.gz" +BR2_LINUX_KERNEL_PATCH="board/odroidxu4/0001-s5p-mfc-enc-silence-failed-to-try-output-format.patch" BR2_LINUX_KERNEL_DEFCONFIG="odroidxu4" BR2_LINUX_KERNEL_DTS_SUPPORT=y BR2_LINUX_KERNEL_INTREE_DTS_NAME="exynos5422-odroidxu4"