Merge pull request #5199 from jernejsk/var-fixes

Allwinner: Two fixes
This commit is contained in:
CvH 2021-03-02 12:09:45 +01:00 committed by GitHub
commit dbd5692d61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 7 deletions

View File

@ -51,3 +51,6 @@
# set the addon project
ADDON_PROJECT="ARMv7"
# additional kernel parameters
EXTRA_CMDLINE="$EXTRA_CMDLINE vmalloc=320M"

View File

@ -48,3 +48,6 @@
# set the addon project
ADDON_PROJECT="ARMv7"
# additional kernel parameters
EXTRA_CMDLINE="$EXTRA_CMDLINE vmalloc=320M"

View File

@ -11,11 +11,6 @@ UUID_STORAGE="$(uuidgen)"
BOOT=$(grep /flash /proc/mounts | awk '{print $1}' | sed 's/p[012]//g')
DISK=""
if [ ! -f /usr/share/bootloader/u-boot-sunxi-with-spl.bin ]; then
echo "U-Boot not found. Please update current installation with board specific update or image first."
exit 1
fi
for TYPE in /sys/class/block/mmcblk*/device/type; do
if grep -q "MMC" "${TYPE}"; then
DISK="/dev/$(echo "${TYPE}" | awk -F/ '{print $5}')"
@ -77,7 +72,7 @@ mkfs.ext4 -L STORAGE -U ${UUID_STORAGE} ${DISK}p2 > /dev/null 2>&1
sync
echo "Installing bootloader"
dd if=/usr/share/bootloader/u-boot-sunxi-with-spl.bin of="${DISK}" bs=1k seek=8 conv=fsync > /dev/null 2>&1
dd if="${BOOT}" skip=8 of="${DISK}" bs=1k seek=8 count=768 conv=fsync > /dev/null 2>&1
echo "Copying system files"

View File

@ -5939,7 +5939,7 @@ CONFIG_DMA_CMA=y
#
# Default contiguous memory area size:
#
CONFIG_CMA_SIZE_MBYTES=256
CONFIG_CMA_SIZE_MBYTES=320
CONFIG_CMA_SIZE_SEL_MBYTES=y
# CONFIG_CMA_SIZE_SEL_PERCENTAGE is not set
# CONFIG_CMA_SIZE_SEL_MIN is not set