diff --git a/board/bananapim1/cpinitramfs.sh b/board/bananapim1/cpinitramfs.sh new file mode 100755 index 0000000000..7c5af3f0e4 --- /dev/null +++ b/board/bananapim1/cpinitramfs.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +cp $IMG_DIR/rootfs.cpio.uboot $BOARD_DIR/uInitrd + diff --git a/board/bananapim1/uInitrd b/board/bananapim1/uInitrd index 6dfda81ef8..8bbe86f3a4 100644 Binary files a/board/bananapim1/uInitrd and b/board/bananapim1/uInitrd differ diff --git a/board/common/mkimage.sh b/board/common/mkimage.sh index 87467eaadb..294cc7ff2c 100755 --- a/board/common/mkimage.sh +++ b/board/common/mkimage.sh @@ -11,19 +11,21 @@ function msg() { echo " * $1" } -PART_START=${PART_START:-2048} # 2048 sectors = 1MB +BOOT_START=${BOOT_START:-2048} # 2048 sectors = 1MB BOOT_SRC=$IMG_DIR/boot BOOT=$IMG_DIR/.boot BOOT_IMG=$IMG_DIR/boot.img -BOOT_SIZE="20" # MB +BOOT_SIZE="20" # MB - reserved up to 50 MB +ROOT_START=$((50 * 2048)) # 50 MB ROOT_SRC=$IMG_DIR/rootfs.tar ROOT=$IMG_DIR/.root ROOT_IMG=$IMG_DIR/root.img ROOT_SIZE="180" # MB -DISK_SIZE=$((BOOT_SIZE + ROOT_SIZE + 10)) +GUARD_SIZE="10" # MB +DISK_SIZE=$((BOOT_SIZE + ROOT_SIZE + GUARD_SIZE)) COMMON_DIR=$(cd $IMG_DIR/../../../board/common; pwd) OS_NAME=$(source $COMMON_DIR/overlay/etc/version && echo $os_short_name) @@ -118,19 +120,18 @@ fi loop_dev=$(losetup -f --show $DISK_IMG) msg "partitioning disk" -root_part_start=$(($PART_START + $BOOT_SIZE * 2048)) set +e fdisk -u=sectors $loop_dev <&2 + exit 1 +fi + + #### versions #### function show_versions() { @@ -69,7 +83,7 @@ function show_versions() { show_json=$1 # the /usr/libexec/list-versions-* helpers return a table with the following format: - # ||| + # |||| versions=$(FW_USERNAME=$os_firmware_username FW_PASSWORD=$os_firmware_password \ /usr/libexec/list-versions-$os_firmware_method $os_firmware_repo) @@ -218,6 +232,34 @@ function do_extract() { cat $DECOMPRESS_LOG_FILE exit 1 fi + + # verify available partition space + + fw_boot_info=$(fdisk --bytes -l -o device,start,end,size $FW_DIR/$FW_FILE_EXTR | grep "${FW_FILE_EXTR}1") + fw_boot_info=($fw_boot_info) + fw_boot_size=${fw_boot_info[3]} + + fw_root_info=$(fdisk --bytes -l -o device,start,end,size $FW_DIR/$FW_FILE_EXTR | grep "${FW_FILE_EXTR}2") + fw_root_info=($fw_root_info) + fw_root_size=${fw_root_info[3]} + + disk_boot_info=$(fdisk --bytes -l -o device,start,end,size $DISK_DEV | grep $BOOT_DEV) + disk_boot_info=($disk_boot_info) + disk_boot_size=${disk_boot_info[3]} + + disk_root_info=$(fdisk --bytes -l -o device,start,end,size $DISK_DEV | grep $ROOT_DEV) + disk_root_info=($disk_root_info) + disk_root_size=${disk_root_info[3]} + + if [[ $disk_boot_size -lt $fw_boot_size ]]; then + echo "not enough space on boot partition ($fw_boot_size needed, $disk_boot_size available)" 1>&2 + exit 1 + fi + + if [[ $disk_root_size -lt $fw_root_size ]]; then + echo "not enough space on root partition ($fw_root_size needed, $disk_root_size available)" 1>&2 + exit 1 + fi # TODO verify hash } diff --git a/board/nanopineo/cpinitramfs.sh b/board/nanopineo/cpinitramfs.sh new file mode 100755 index 0000000000..7c5af3f0e4 --- /dev/null +++ b/board/nanopineo/cpinitramfs.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +cp $IMG_DIR/rootfs.cpio.uboot $BOARD_DIR/uInitrd + diff --git a/board/nanopineo/mkimage.sh b/board/nanopineo/mkimage.sh index e9971785f1..d74a0f8c03 100755 --- a/board/nanopineo/mkimage.sh +++ b/board/nanopineo/mkimage.sh @@ -7,7 +7,7 @@ export BOARD=$(basename $BOARD_DIR) export IMG_DIR=$BOARD_DIR/../../output/$BOARD/images/ export UBOOT_BIN=$BOARD_DIR/u-boot-with-spl.bin export UBOOT_SEEK=16 -export PART_START=40960 +export BOOT_START=40960 source $COMMON_DIR/mkimage.sh diff --git a/board/nanopineo/uInitrd b/board/nanopineo/uInitrd new file mode 100644 index 0000000000..c75514a8b8 Binary files /dev/null and b/board/nanopineo/uInitrd differ diff --git a/board/nanopineo2/cpinitramfs.sh b/board/nanopineo2/cpinitramfs.sh new file mode 100755 index 0000000000..7c5af3f0e4 --- /dev/null +++ b/board/nanopineo2/cpinitramfs.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +cp $IMG_DIR/rootfs.cpio.uboot $BOARD_DIR/uInitrd + diff --git a/board/nanopineo2/mkimage.sh b/board/nanopineo2/mkimage.sh index e9971785f1..d74a0f8c03 100755 --- a/board/nanopineo2/mkimage.sh +++ b/board/nanopineo2/mkimage.sh @@ -7,7 +7,7 @@ export BOARD=$(basename $BOARD_DIR) export IMG_DIR=$BOARD_DIR/../../output/$BOARD/images/ export UBOOT_BIN=$BOARD_DIR/u-boot-with-spl.bin export UBOOT_SEEK=16 -export PART_START=40960 +export BOOT_START=40960 source $COMMON_DIR/mkimage.sh diff --git a/board/nanopineo2/uInitrd b/board/nanopineo2/uInitrd new file mode 100644 index 0000000000..611b034804 Binary files /dev/null and b/board/nanopineo2/uInitrd differ diff --git a/board/odroidc1/cpinitramfs.sh b/board/odroidc1/cpinitramfs.sh new file mode 100755 index 0000000000..7c5af3f0e4 --- /dev/null +++ b/board/odroidc1/cpinitramfs.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +cp $IMG_DIR/rootfs.cpio.uboot $BOARD_DIR/uInitrd + diff --git a/board/odroidc2/cpinitramfs.sh b/board/odroidc2/cpinitramfs.sh new file mode 100755 index 0000000000..7c5af3f0e4 --- /dev/null +++ b/board/odroidc2/cpinitramfs.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +cp $IMG_DIR/rootfs.cpio.uboot $BOARD_DIR/uInitrd + diff --git a/board/odroidc2/uInitrd b/board/odroidc2/uInitrd index e14178f604..8816c59dda 100644 Binary files a/board/odroidc2/uInitrd and b/board/odroidc2/uInitrd differ diff --git a/board/odroidxu4/cpinitramfs.sh b/board/odroidxu4/cpinitramfs.sh new file mode 100755 index 0000000000..7c5af3f0e4 --- /dev/null +++ b/board/odroidxu4/cpinitramfs.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +cp $IMG_DIR/rootfs.cpio.uboot $BOARD_DIR/uInitrd + diff --git a/board/odroidxu4/uInitrd b/board/odroidxu4/uInitrd index 484ea295e8..f9497122af 100644 Binary files a/board/odroidxu4/uInitrd and b/board/odroidxu4/uInitrd differ diff --git a/board/orangepione/boot-fwupdater.cmd b/board/orangepione/boot-fwupdater.cmd index 197ced362f..d9d05135d3 100644 --- a/board/orangepione/boot-fwupdater.cmd +++ b/board/orangepione/boot-fwupdater.cmd @@ -1,7 +1,7 @@ setenv bootargs earlyprintk console=tty1 root=/dev/mmcblk0p2 rootwait ro no_console_suspend panic=10 quiet loglevel=1 ipv6.disable=1 fatload mmc 0 $kernel_addr_r zImage -fatload mmc 0 $ramdisk_addr_r rootfs.cpio.uboot +fatload mmc 0 $ramdisk_addr_r uInitrd fatload mmc 0 $fdt_addr_r sun8i-h3-orangepi-one.dtb bootz $kernel_addr_r $ramdisk_addr_r $fdt_addr_r diff --git a/board/orangepione/boot-fwupdater.scr b/board/orangepione/boot-fwupdater.scr index 9ee5ebe15c..6341e8baf8 100644 Binary files a/board/orangepione/boot-fwupdater.scr and b/board/orangepione/boot-fwupdater.scr differ diff --git a/board/orangepione/cpinitramfs.sh b/board/orangepione/cpinitramfs.sh new file mode 100755 index 0000000000..7c5af3f0e4 --- /dev/null +++ b/board/orangepione/cpinitramfs.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +cp $IMG_DIR/rootfs.cpio.uboot $BOARD_DIR/uInitrd + diff --git a/board/orangepione/mkimage.sh b/board/orangepione/mkimage.sh index 6f4fbfffb0..0b4d104810 100755 --- a/board/orangepione/mkimage.sh +++ b/board/orangepione/mkimage.sh @@ -7,7 +7,7 @@ export BOARD=$(basename $BOARD_DIR) export IMG_DIR=$BOARD_DIR/../../output/$BOARD/images/ export UBOOT_BIN=$IMG_DIR/u-boot-sunxi-with-spl.bin export UBOOT_SEEK=16 -export PART_START=40960 +export BOOT_START=40960 source $COMMON_DIR/mkimage.sh diff --git a/board/orangepione/uInitrd b/board/orangepione/uInitrd new file mode 100644 index 0000000000..9ca8c7fc70 Binary files /dev/null and b/board/orangepione/uInitrd differ diff --git a/board/pine64/cpinitramfs.sh b/board/pine64/cpinitramfs.sh new file mode 100755 index 0000000000..7c5af3f0e4 --- /dev/null +++ b/board/pine64/cpinitramfs.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +cp $IMG_DIR/rootfs.cpio.uboot $BOARD_DIR/uInitrd + diff --git a/board/pine64/mkimage.sh b/board/pine64/mkimage.sh index 69c5685d88..31b11c98a8 100755 --- a/board/pine64/mkimage.sh +++ b/board/pine64/mkimage.sh @@ -7,7 +7,7 @@ export BOARD=$(basename $BOARD_DIR) export IMG_DIR=$BOARD_DIR/../../output/$BOARD/images/ export UBOOT_BIN=$BOARD_DIR/u-boot-with-dtb.bin export UBOOT_SEEK=38192 -export PART_START=40960 +export BOOT_START=40960 BOOT0=$BOARD_DIR/boot0.bin source $COMMON_DIR/mkimage.sh diff --git a/board/pine64/uInitrd b/board/pine64/uInitrd new file mode 100644 index 0000000000..07039d8fd9 Binary files /dev/null and b/board/pine64/uInitrd differ diff --git a/board/raspberrypi/cpinitramfs.sh b/board/raspberrypi/cpinitramfs.sh new file mode 100755 index 0000000000..ac4e9e8d72 --- /dev/null +++ b/board/raspberrypi/cpinitramfs.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +cp $IMG_DIR/rootfs.cpio.gz $BOARD_DIR/fwupdater.gz + diff --git a/board/raspberrypi2/cpinitramfs.sh b/board/raspberrypi2/cpinitramfs.sh new file mode 120000 index 0000000000..be9760b343 --- /dev/null +++ b/board/raspberrypi2/cpinitramfs.sh @@ -0,0 +1 @@ +../raspberrypi/cpinitramfs.sh \ No newline at end of file diff --git a/board/raspberrypi3/cpinitramfs.sh b/board/raspberrypi3/cpinitramfs.sh new file mode 120000 index 0000000000..be9760b343 --- /dev/null +++ b/board/raspberrypi3/cpinitramfs.sh @@ -0,0 +1 @@ +../raspberrypi/cpinitramfs.sh \ No newline at end of file diff --git a/build.sh b/build.sh index 3cbd03c908..ab9791ee18 100755 --- a/build.sh +++ b/build.sh @@ -1,10 +1,11 @@ #!/bin/bash if [ -z "$1" ]; then - echo "Usage: $0 [mkimage|mkrelease|clean-target|make-targets...]" + echo "Usage: $0 <{board}|all|boards> [mkimage|mkrelease|clean-target|initramfs|make-targets...]" echo " mkimage - creates the OS image (.img)" echo " mkrelease - creates the compressed OS image (.img.gz, .img.xz)" echo " clean-target - removes the target dir, preserving the package build dirs" + echo " initramfs - builds the initramfs image; extra arguments will be passed internally to BuildRoot" echo "" echo " for other make targets, see the BuildRoot manual" exit 1 @@ -35,8 +36,17 @@ else osversion=$(source $basedir/board/common/overlay/etc/version && echo $os_version) fi -# when the special "all" keyword is used for board, -# all boards are processed, in turn +# when the special "boards" keyword is used for board, simply list all known boards +if [ "$board" == "boards" ]; then + boards=$(ls $basedir/configs/*_defconfig | grep -v initramfs | grep -oE '\w+_defconfig$' | cut -d '_' -f 1) + for b in $boards; do + echo $b + done + + exit 0 +fi + +# when the special "all" keyword is used for board, all boards are processed, in turn if [ "$board" == "all" ]; then boards=$(ls $basedir/configs/*_defconfig | grep -v initramfs | grep -oE '\w+_defconfig$' | cut -d '_' -f 1) for b in $boards; do @@ -117,6 +127,13 @@ elif [ "$target" == "clean-target" ]; then echo "target is clean" +elif [[ "$target" == initramfs* ]]; then + extra_args=${target:10} + $0 ${board}_initramfs $extra_args + if [ -z "$extra_args" ] && [ -x $boarddir/cpinitramfs.sh ]; then + IMG_DIR=$basedir/output/${board}_initramfs/images/ BOARD_DIR=$boarddir $boarddir/cpinitramfs.sh + fi + elif [ "$target" == "all" ]; then make O=$outputdir all diff --git a/configs/bananapim1_defconfig b/configs/bananapim1_defconfig index 70df8ffdc2..0ef78b1aee 100644 --- a/configs/bananapim1_defconfig +++ b/configs/bananapim1_defconfig @@ -12,7 +12,7 @@ BR2_ROOTFS_OVERLAY="board/common/overlay board/bananapim1/overlay" BR2_ROOTFS_POST_BUILD_SCRIPT="board/common/postscript.sh" BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_VERSION=y -BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.9.70" +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.9.136" BR2_LINUX_KERNEL_PATCH="board/bananapim1/linux-usb-host.patch.gz" BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/bananapim1/kernel.config" @@ -27,6 +27,7 @@ BR2_PACKAGE_ALSA_UTILS_APLAY=y BR2_PACKAGE_GZIP=y BR2_PACKAGE_JQ=y BR2_PACKAGE_E2FSPROGS=y +BR2_PACKAGE_E2FSPROGS_RESIZE2FS=y BR2_PACKAGE_NTFS_3G=y BR2_PACKAGE_B43_FIRMWARE=y BR2_PACKAGE_LINUX_FIRMWARE=y diff --git a/configs/bananapim1_initramfs_defconfig b/configs/bananapim1_initramfs_defconfig index 0ba2dbbb96..41635e9574 100644 --- a/configs/bananapim1_initramfs_defconfig +++ b/configs/bananapim1_initramfs_defconfig @@ -1,7 +1,6 @@ BR2_arm=y BR2_cortex_a7=y BR2_ARM_FPU_NEON_VFPV4=y -BR2_DL_DIR="$(TOPDIR)/dl" BR2_CCACHE=y BR2_CCACHE_DIR="$(TOPDIR)/.buildroot-ccache-bananapim1-initramfs" BR2_OPTIMIZE_2=y @@ -9,6 +8,8 @@ BR2_TOOLCHAIN_EXTERNAL=y BR2_TARGET_OPTIMIZATION="-pipe" BR2_ROOTFS_OVERLAY="board/common/overlay-initramfs board/bananapim1/overlay-initramfs" BR2_PACKAGE_BUSYBOX_CONFIG="board/common/busybox_initramfs.config" +BR2_PACKAGE_UTIL_LINUX=y +BR2_PACKAGE_UTIL_LINUX_LIBBLKID=y BR2_TARGET_ROOTFS_CPIO=y BR2_TARGET_ROOTFS_CPIO_UIMAGE=y # BR2_TARGET_ROOTFS_TAR is not set diff --git a/configs/nanopineo2_defconfig b/configs/nanopineo2_defconfig index e7e4b1945d..48f5505c70 100644 --- a/configs/nanopineo2_defconfig +++ b/configs/nanopineo2_defconfig @@ -20,6 +20,7 @@ BR2_PACKAGE_ALSA_UTILS_APLAY=y BR2_PACKAGE_GZIP=y BR2_PACKAGE_JQ=y BR2_PACKAGE_E2FSPROGS=y +BR2_PACKAGE_E2FSPROGS_RESIZE2FS=y BR2_PACKAGE_NTFS_3G=y BR2_PACKAGE_B43_FIRMWARE=y BR2_PACKAGE_LINUX_FIRMWARE=y diff --git a/configs/nanopineo2_initramfs_defconfig b/configs/nanopineo2_initramfs_defconfig index 9d15808dac..265d59ca3a 100644 --- a/configs/nanopineo2_initramfs_defconfig +++ b/configs/nanopineo2_initramfs_defconfig @@ -6,6 +6,8 @@ BR2_TOOLCHAIN_EXTERNAL=y BR2_TARGET_OPTIMIZATION="-pipe" BR2_ROOTFS_OVERLAY="board/common/overlay-initramfs board/nanopineo2/overlay-initramfs" BR2_PACKAGE_BUSYBOX_CONFIG="board/common/busybox_initramfs.config" +BR2_PACKAGE_UTIL_LINUX=y +BR2_PACKAGE_UTIL_LINUX_LIBBLKID=y BR2_TARGET_ROOTFS_CPIO=y BR2_TARGET_ROOTFS_CPIO_GZIP=y BR2_TARGET_ROOTFS_CPIO_UIMAGE=y diff --git a/configs/nanopineo_defconfig b/configs/nanopineo_defconfig index f93cadd862..cd1eeaf185 100644 --- a/configs/nanopineo_defconfig +++ b/configs/nanopineo_defconfig @@ -21,6 +21,7 @@ BR2_PACKAGE_ALSA_UTILS_APLAY=y BR2_PACKAGE_GZIP=y BR2_PACKAGE_JQ=y BR2_PACKAGE_E2FSPROGS=y +BR2_PACKAGE_E2FSPROGS_RESIZE2FS=y BR2_PACKAGE_NTFS_3G=y BR2_PACKAGE_B43_FIRMWARE=y BR2_PACKAGE_LINUX_FIRMWARE=y diff --git a/configs/nanopineo_initramfs_defconfig b/configs/nanopineo_initramfs_defconfig index bfd5c6b94f..709e0ac606 100644 --- a/configs/nanopineo_initramfs_defconfig +++ b/configs/nanopineo_initramfs_defconfig @@ -8,6 +8,8 @@ BR2_TOOLCHAIN_EXTERNAL=y BR2_TARGET_OPTIMIZATION="-pipe" BR2_ROOTFS_OVERLAY="board/common/overlay-initramfs board/nanopineo/overlay-initramfs" BR2_PACKAGE_BUSYBOX_CONFIG="board/common/busybox_initramfs.config" +BR2_PACKAGE_UTIL_LINUX=y +BR2_PACKAGE_UTIL_LINUX_LIBBLKID=y BR2_TARGET_ROOTFS_CPIO=y BR2_TARGET_ROOTFS_CPIO_GZIP=y BR2_TARGET_ROOTFS_CPIO_UIMAGE=y diff --git a/configs/odroidc1_defconfig b/configs/odroidc1_defconfig index 20f6f33978..2f9ce7af2d 100644 --- a/configs/odroidc1_defconfig +++ b/configs/odroidc1_defconfig @@ -34,6 +34,7 @@ BR2_PACKAGE_ALSA_UTILS_APLAY=y BR2_PACKAGE_GZIP=y BR2_PACKAGE_JQ=y BR2_PACKAGE_E2FSPROGS=y +BR2_PACKAGE_E2FSPROGS_RESIZE2FS=y BR2_PACKAGE_NTFS_3G=y BR2_PACKAGE_B43_FIRMWARE=y BR2_PACKAGE_LINUX_FIRMWARE=y diff --git a/configs/odroidc1_initramfs_defconfig b/configs/odroidc1_initramfs_defconfig index ab305adae0..22366974b3 100644 --- a/configs/odroidc1_initramfs_defconfig +++ b/configs/odroidc1_initramfs_defconfig @@ -3,7 +3,6 @@ BR2_cortex_a5=y BR2_ARM_ENABLE_NEON=y BR2_ARM_ENABLE_VFP=y BR2_ARM_FPU_NEON_VFPV4=y -BR2_DL_DIR="$(TOPDIR)/dl" BR2_CCACHE=y BR2_CCACHE_DIR="$(TOPDIR)/.buildroot-ccache-odroidc1-initramfs" BR2_OPTIMIZE_2=y @@ -19,6 +18,8 @@ BR2_TOOLCHAIN_EXTERNAL_CXX=y BR2_TARGET_OPTIMIZATION="-pipe" BR2_ROOTFS_OVERLAY="board/common/overlay-initramfs board/odroidc1/overlay-initramfs" BR2_PACKAGE_BUSYBOX_CONFIG="board/common/busybox_initramfs.config" +BR2_PACKAGE_UTIL_LINUX=y +BR2_PACKAGE_UTIL_LINUX_LIBBLKID=y BR2_TARGET_ROOTFS_CPIO=y BR2_TARGET_ROOTFS_CPIO_UIMAGE=y # BR2_TARGET_ROOTFS_TAR is not set diff --git a/configs/odroidc2_defconfig b/configs/odroidc2_defconfig index 1f18836569..6d34f8e3a8 100644 --- a/configs/odroidc2_defconfig +++ b/configs/odroidc2_defconfig @@ -21,6 +21,7 @@ BR2_PACKAGE_ALSA_UTILS_APLAY=y BR2_PACKAGE_GZIP=y BR2_PACKAGE_JQ=y BR2_PACKAGE_E2FSPROGS=y +BR2_PACKAGE_E2FSPROGS_RESIZE2FS=y BR2_PACKAGE_NTFS_3G=y BR2_PACKAGE_B43_FIRMWARE=y BR2_PACKAGE_LINUX_FIRMWARE=y diff --git a/configs/odroidc2_initramfs_defconfig b/configs/odroidc2_initramfs_defconfig index 1168a5c6c5..5d414065a6 100644 --- a/configs/odroidc2_initramfs_defconfig +++ b/configs/odroidc2_initramfs_defconfig @@ -1,5 +1,4 @@ BR2_aarch64=y -BR2_DL_DIR="$(TOPDIR)/dl" BR2_CCACHE=y BR2_CCACHE_DIR="$(TOPDIR)/.buildroot-ccache-odroidc2-initramfs" BR2_OPTIMIZE_2=y @@ -7,6 +6,8 @@ BR2_TOOLCHAIN_EXTERNAL=y BR2_TARGET_OPTIMIZATION="-pipe" BR2_ROOTFS_OVERLAY="board/common/overlay-initramfs board/odroidc2/overlay-initramfs" BR2_PACKAGE_BUSYBOX_CONFIG="board/common/busybox_initramfs.config" +BR2_PACKAGE_UTIL_LINUX=y +BR2_PACKAGE_UTIL_LINUX_LIBBLKID=y BR2_TARGET_ROOTFS_CPIO=y BR2_TARGET_ROOTFS_CPIO_UIMAGE=y # BR2_TARGET_ROOTFS_TAR is not set diff --git a/configs/odroidxu4_defconfig b/configs/odroidxu4_defconfig index ae1d913299..2a6331b0ab 100644 --- a/configs/odroidxu4_defconfig +++ b/configs/odroidxu4_defconfig @@ -23,6 +23,7 @@ BR2_PACKAGE_ALSA_UTILS_APLAY=y BR2_PACKAGE_GZIP=y BR2_PACKAGE_JQ=y BR2_PACKAGE_E2FSPROGS=y +BR2_PACKAGE_E2FSPROGS_RESIZE2FS=y BR2_PACKAGE_NTFS_3G=y BR2_PACKAGE_B43_FIRMWARE=y BR2_PACKAGE_LINUX_FIRMWARE=y diff --git a/configs/odroidxu4_initramfs_defconfig b/configs/odroidxu4_initramfs_defconfig index 60b17fd790..a91875221c 100644 --- a/configs/odroidxu4_initramfs_defconfig +++ b/configs/odroidxu4_initramfs_defconfig @@ -1,7 +1,6 @@ BR2_arm=y BR2_cortex_a7=y BR2_ARM_FPU_NEON_VFPV4=y -BR2_DL_DIR="$(TOPDIR)/dl" BR2_CCACHE=y BR2_CCACHE_DIR="$(TOPDIR)/.buildroot-ccache-odroidxu4-initramfs" BR2_OPTIMIZE_2=y @@ -9,6 +8,8 @@ BR2_TOOLCHAIN_EXTERNAL=y BR2_TARGET_OPTIMIZATION="-pipe" BR2_ROOTFS_OVERLAY="board/common/overlay-initramfs board/odroidxu4/overlay-initramfs" BR2_PACKAGE_BUSYBOX_CONFIG="board/common/busybox_initramfs.config" +BR2_PACKAGE_UTIL_LINUX=y +BR2_PACKAGE_UTIL_LINUX_LIBBLKID=y BR2_TARGET_ROOTFS_CPIO=y BR2_TARGET_ROOTFS_CPIO_UIMAGE=y # BR2_TARGET_ROOTFS_TAR is not set diff --git a/configs/orangepione_defconfig b/configs/orangepione_defconfig index a33e26d69a..332615f2ac 100644 --- a/configs/orangepione_defconfig +++ b/configs/orangepione_defconfig @@ -24,6 +24,7 @@ BR2_PACKAGE_ALSA_UTILS_APLAY=y BR2_PACKAGE_GZIP=y BR2_PACKAGE_JQ=y BR2_PACKAGE_E2FSPROGS=y +BR2_PACKAGE_E2FSPROGS_RESIZE2FS=y BR2_PACKAGE_NTFS_3G=y BR2_PACKAGE_B43_FIRMWARE=y BR2_PACKAGE_LINUX_FIRMWARE=y diff --git a/configs/orangepione_initramfs_defconfig b/configs/orangepione_initramfs_defconfig index 672bf0a3f5..81de8031d7 100644 --- a/configs/orangepione_initramfs_defconfig +++ b/configs/orangepione_initramfs_defconfig @@ -8,6 +8,8 @@ BR2_TOOLCHAIN_EXTERNAL=y BR2_TARGET_OPTIMIZATION="-pipe" BR2_ROOTFS_OVERLAY="board/common/overlay-initramfs board/orangepione/overlay-initramfs" BR2_PACKAGE_BUSYBOX_CONFIG="board/common/busybox_initramfs.config" +BR2_PACKAGE_UTIL_LINUX=y +BR2_PACKAGE_UTIL_LINUX_LIBBLKID=y BR2_TARGET_ROOTFS_CPIO=y BR2_TARGET_ROOTFS_CPIO_GZIP=y BR2_TARGET_ROOTFS_CPIO_UIMAGE=y diff --git a/configs/pine64_defconfig b/configs/pine64_defconfig index eb872d24b3..9647f7d3cb 100644 --- a/configs/pine64_defconfig +++ b/configs/pine64_defconfig @@ -20,6 +20,7 @@ BR2_PACKAGE_ALSA_UTILS_APLAY=y BR2_PACKAGE_GZIP=y BR2_PACKAGE_JQ=y BR2_PACKAGE_E2FSPROGS=y +BR2_PACKAGE_E2FSPROGS_RESIZE2FS=y BR2_PACKAGE_NTFS_3G=y BR2_PACKAGE_B43_FIRMWARE=y BR2_PACKAGE_LINUX_FIRMWARE=y diff --git a/configs/pine64_initramfs_defconfig b/configs/pine64_initramfs_defconfig index 118c761ef7..cf34332e04 100644 --- a/configs/pine64_initramfs_defconfig +++ b/configs/pine64_initramfs_defconfig @@ -1,5 +1,4 @@ BR2_aarch64=y -BR2_DL_DIR="$(TOPDIR)/dl" BR2_CCACHE=y BR2_CCACHE_DIR="$(TOPDIR)/.buildroot-ccache-pine64-initramfs" BR2_OPTIMIZE_2=y @@ -7,7 +6,8 @@ BR2_TOOLCHAIN_EXTERNAL=y BR2_TARGET_OPTIMIZATION="-pipe" BR2_ROOTFS_OVERLAY="board/common/overlay-initramfs board/pine64/overlay-initramfs" BR2_PACKAGE_BUSYBOX_CONFIG="board/common/busybox_initramfs.config" +BR2_PACKAGE_UTIL_LINUX=y +BR2_PACKAGE_UTIL_LINUX_LIBBLKID=y BR2_TARGET_ROOTFS_CPIO=y BR2_TARGET_ROOTFS_CPIO_UIMAGE=y # BR2_TARGET_ROOTFS_TAR is not set - diff --git a/configs/raspberrypi2_defconfig b/configs/raspberrypi2_defconfig index 221a5e87a5..9413f8328d 100644 --- a/configs/raspberrypi2_defconfig +++ b/configs/raspberrypi2_defconfig @@ -23,6 +23,7 @@ BR2_PACKAGE_ALSA_UTILS_APLAY=y BR2_PACKAGE_GZIP=y BR2_PACKAGE_JQ=y BR2_PACKAGE_E2FSPROGS=y +BR2_PACKAGE_E2FSPROGS_RESIZE2FS=y BR2_PACKAGE_NTFS_3G=y BR2_PACKAGE_B43_FIRMWARE=y BR2_PACKAGE_LINUX_FIRMWARE=y diff --git a/configs/raspberrypi2_initramfs_defconfig b/configs/raspberrypi2_initramfs_defconfig new file mode 100644 index 0000000000..4bb8992d15 --- /dev/null +++ b/configs/raspberrypi2_initramfs_defconfig @@ -0,0 +1,21 @@ +BR2_arm=y +BR2_arm1176jzf_s=y +BR2_CCACHE=y +BR2_CCACHE_DIR="$(TOPDIR)/.buildroot-ccache-raspberrypi-initramfs" +BR2_OPTIMIZE_2=y +BR2_STATIC_LIBS=y +BR2_KERNEL_HEADERS_4_4=y +# BR2_UCLIBC_INSTALL_UTILS is not set +BR2_BINUTILS_VERSION_2_31_X=y +BR2_GCC_VERSION_5_X=y +BR2_TOOLCHAIN_BUILDROOT_CXX=y +BR2_TARGET_OPTIMIZATION="-pipe" +BR2_TARGET_GENERIC_HOSTNAME="" +BR2_TARGET_GENERIC_ISSUE="" +BR2_ROOTFS_OVERLAY="board/common/overlay-initramfs board/raspberrypi/overlay-initramfs" +BR2_PACKAGE_BUSYBOX_CONFIG="board/common/busybox_initramfs.config" +BR2_PACKAGE_UTIL_LINUX=y +BR2_PACKAGE_UTIL_LINUX_LIBBLKID=y +BR2_TARGET_ROOTFS_CPIO=y +BR2_TARGET_ROOTFS_CPIO_GZIP=y +# BR2_TARGET_ROOTFS_TAR is not set diff --git a/configs/raspberrypi3_defconfig b/configs/raspberrypi3_defconfig index ace3079ad2..8c20f9faf9 100644 --- a/configs/raspberrypi3_defconfig +++ b/configs/raspberrypi3_defconfig @@ -23,6 +23,7 @@ BR2_PACKAGE_ALSA_UTILS_APLAY=y BR2_PACKAGE_GZIP=y BR2_PACKAGE_JQ=y BR2_PACKAGE_E2FSPROGS=y +BR2_PACKAGE_E2FSPROGS_RESIZE2FS=y BR2_PACKAGE_NTFS_3G=y BR2_PACKAGE_B43_FIRMWARE=y BR2_PACKAGE_LINUX_FIRMWARE=y diff --git a/configs/raspberrypi3_initramfs_defconfig b/configs/raspberrypi3_initramfs_defconfig new file mode 100644 index 0000000000..4bb8992d15 --- /dev/null +++ b/configs/raspberrypi3_initramfs_defconfig @@ -0,0 +1,21 @@ +BR2_arm=y +BR2_arm1176jzf_s=y +BR2_CCACHE=y +BR2_CCACHE_DIR="$(TOPDIR)/.buildroot-ccache-raspberrypi-initramfs" +BR2_OPTIMIZE_2=y +BR2_STATIC_LIBS=y +BR2_KERNEL_HEADERS_4_4=y +# BR2_UCLIBC_INSTALL_UTILS is not set +BR2_BINUTILS_VERSION_2_31_X=y +BR2_GCC_VERSION_5_X=y +BR2_TOOLCHAIN_BUILDROOT_CXX=y +BR2_TARGET_OPTIMIZATION="-pipe" +BR2_TARGET_GENERIC_HOSTNAME="" +BR2_TARGET_GENERIC_ISSUE="" +BR2_ROOTFS_OVERLAY="board/common/overlay-initramfs board/raspberrypi/overlay-initramfs" +BR2_PACKAGE_BUSYBOX_CONFIG="board/common/busybox_initramfs.config" +BR2_PACKAGE_UTIL_LINUX=y +BR2_PACKAGE_UTIL_LINUX_LIBBLKID=y +BR2_TARGET_ROOTFS_CPIO=y +BR2_TARGET_ROOTFS_CPIO_GZIP=y +# BR2_TARGET_ROOTFS_TAR is not set diff --git a/configs/raspberrypi_defconfig b/configs/raspberrypi_defconfig index e4be298d26..76edf8785b 100644 --- a/configs/raspberrypi_defconfig +++ b/configs/raspberrypi_defconfig @@ -30,6 +30,7 @@ BR2_PACKAGE_ALSA_UTILS_APLAY=y BR2_PACKAGE_GZIP=y BR2_PACKAGE_JQ=y BR2_PACKAGE_E2FSPROGS=y +BR2_PACKAGE_E2FSPROGS_RESIZE2FS=y BR2_PACKAGE_NTFS_3G=y BR2_PACKAGE_B43_FIRMWARE=y BR2_PACKAGE_LINUX_FIRMWARE=y diff --git a/configs/raspberrypi_initramfs_defconfig b/configs/raspberrypi_initramfs_defconfig index 4b43eec379..768e1ceb9c 100644 --- a/configs/raspberrypi_initramfs_defconfig +++ b/configs/raspberrypi_initramfs_defconfig @@ -1,20 +1,27 @@ BR2_arm=y BR2_arm1176jzf_s=y -BR2_DL_DIR="$(TOPDIR)/dl" BR2_CCACHE=y BR2_CCACHE_DIR="$(TOPDIR)/.buildroot-ccache-raspberrypi-initramfs" BR2_OPTIMIZE_2=y BR2_STATIC_LIBS=y -BR2_KERNEL_HEADERS_4_4=y -# BR2_UCLIBC_INSTALL_UTILS is not set -BR2_BINUTILS_VERSION_2_26_X=y -BR2_GCC_VERSION_5_X=y -BR2_TOOLCHAIN_BUILDROOT_CXX=y +BR2_TOOLCHAIN_EXTERNAL=y +BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y +BR2_TOOLCHAIN_EXTERNAL_URL="https://github.com/raspberrypi/tools/archive/5caa7046982f0539cf5380f94da04b31129ed521.tar.gz" +BR2_TOOLCHAIN_EXTERNAL_REL_BIN_PATH="arm-bcm2708/arm-linux-gnueabihf/bin" +BR2_TOOLCHAIN_EXTERNAL_CUSTOM_PREFIX="arm-linux-gnueabihf" +BR2_TOOLCHAIN_EXTERNAL_GCC_4_9=y +BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_1=y +BR2_TOOLCHAIN_EXTERNAL_LOCALE=y +BR2_TOOLCHAIN_EXTERNAL_HAS_SSP=y +BR2_TOOLCHAIN_EXTERNAL_INET_RPC=y +BR2_TOOLCHAIN_EXTERNAL_CXX=y BR2_TARGET_OPTIMIZATION="-pipe" BR2_TARGET_GENERIC_HOSTNAME="" BR2_TARGET_GENERIC_ISSUE="" BR2_ROOTFS_OVERLAY="board/common/overlay-initramfs board/raspberrypi/overlay-initramfs" BR2_PACKAGE_BUSYBOX_CONFIG="board/common/busybox_initramfs.config" +BR2_PACKAGE_UTIL_LINUX=y +BR2_PACKAGE_UTIL_LINUX_LIBBLKID=y BR2_TARGET_ROOTFS_CPIO=y BR2_TARGET_ROOTFS_CPIO_GZIP=y # BR2_TARGET_ROOTFS_TAR is not set