diff --git a/config/sources/mvebu64.conf b/config/sources/mvebu64.conf index 45cdf14de7..da1e335ab2 100644 --- a/config/sources/mvebu64.conf +++ b/config/sources/mvebu64.conf @@ -1,6 +1,5 @@ ARCH=arm64 KERNEL_IMAGE_TYPE=Image -#OFFSET=2 BOOTSCRIPT="boot-espressobin.cmd:boot.cmd" UBOOT_TARGET_MAP=";;u-boot.bin flash-image.bin" @@ -11,7 +10,6 @@ BOOTBRANCH='branch:u-boot-2017.03-armada-17.10' UBOOT_USE_GCC='< 7.0' - BOOTENV_FILE='clearfog-default.txt' HAS_UUID_SUPPORT=yes @@ -80,4 +78,4 @@ uboot_custom_postprocess() make DEBUG=1 USE_COHERENT_MEM=0 LOG_LEVEL=20 SECURE=0 CLOCKSPRESET=CPU_800_DDR_800 DDR_TOPOLOGY=2 BOOTDEV=SPINOR PARTNUM=0 PLAT=a3700 all fip BL33=$SRC/cache/sources/$BOOTDIR/${BOOTBRANCH##*:}/u-boot.bin WTP=../../marvell-tools $CTHREADS CROSS_CM3=$toolchain/$ATF_COMPILER >> $DEST/debug/compilation.log cp build/a3700/debug/flash-image.bin $ubootdir cd $ubootdir -} \ No newline at end of file +} diff --git a/config/sources/odroidxu4.conf b/config/sources/odroidxu4.conf index de88c894f2..09c924e040 100644 --- a/config/sources/odroidxu4.conf +++ b/config/sources/odroidxu4.conf @@ -1,5 +1,3 @@ -OFFSET=4 - BOOTSOURCE='https://github.com/hardkernel/u-boot.git' BOOTSCRIPT='boot-odroid-xu4-default.ini:boot.ini' BOOTDIR='u-boot-odroidxu' diff --git a/config/sources/sunxi64_common.inc b/config/sources/sunxi64_common.inc index 0e2df07217..717225b97d 100644 --- a/config/sources/sunxi64_common.inc +++ b/config/sources/sunxi64_common.inc @@ -1,7 +1,6 @@ ARCH=arm64 KERNEL_IMAGE_TYPE=Image HAS_UUID_SUPPORT=yes -OFFSET=2 BOOTDELAY=1 # Here we want to rename LINUXFAMILY from sun50iw1, sun50iw2, etc for next and dev branches diff --git a/lib/configuration.sh b/lib/configuration.sh index affd394174..2312425f44 100644 --- a/lib/configuration.sh +++ b/lib/configuration.sh @@ -53,7 +53,7 @@ MAINLINE_UBOOT_BRANCH='tag:v2017.09' MAINLINE_UBOOT_DIR='u-boot' # Let's set default data if not defined in board configuration above -[[ -z $OFFSET ]] && OFFSET=1 # Bootloader space in MB (1 x 2048 = default) +[[ -z $OFFSET ]] && OFFSET=4 # offset to 1st partition (we use 4MiB boundaries by default) ARCH=armhf KERNEL_IMAGE_TYPE=zImage SERIALCON=ttyS0 diff --git a/packages/bsp/common/usr/sbin/nand-sata-install b/packages/bsp/common/usr/sbin/nand-sata-install index eddf5da754..8b85bf661d 100755 --- a/packages/bsp/common/usr/sbin/nand-sata-install +++ b/packages/bsp/common/usr/sbin/nand-sata-install @@ -2,12 +2,10 @@ # # Copyright (c) Authors: http://www.armbian.com/authors # -# NAND, eMMC, SATA and USB Armbian installer -# -# Remarks: -# nand boot za a10: git clone -b dev/a10-nand-ext4 https://github.com/mmplayer/u-boot-sunxi --depth 1 -# Should work with: Cubietruck, Cubieboards, BananaPi, Olimex Lime+Lime2+Micro, Hummingboard, ... -# +# Tool to transfer the rootfs of an already running Armbian installation from SD card +# to NAND, eMMC, SATA or USB storage. In case of eMMC it's also possible to transfer +# the bootloader to eMMC in a single step so from then on running without SD card is +# possible. # Import: # DIR: path to u-boot directory @@ -172,7 +170,6 @@ create_armbian() e2fsck -f /dev/nand2 >/dev/null 2>&1 fi - # Boot from eMMC, root = eMMC or SATA / USB # if [[ $2 == ${emmccheck}p* || $1 == ${emmccheck}p* ]]; then @@ -277,6 +274,7 @@ create_armbian() umountdevice "/dev/sda" } # create_armbian + # Accept device as parameter: for example /dev/sda unmounts all their mounts umountdevice() { @@ -346,9 +344,9 @@ formatemmc() dialog --title "$title" --backtitle "$backtitle" --infobox "\nFormating $1 to $eMMCFilesystemChoosen ... please wait." 5 60 # we can't boot from btrfs if [[ $eMMCFilesystemChoosen == "btrfs" ]]; then - parted -s $1 -- mkpart primary $eMMCFilesystemChoosen 2048s 126975s - parted -s $1 -- mkpart primary $eMMCFilesystemChoosen 126976s 389119s - parted -s $1 -- mkpart primary $eMMCFilesystemChoosen 389120s ${LASTSECTOR}s + parted -s $1 -- mkpart primary $eMMCFilesystemChoosen 8192s 139263s + parted -s $1 -- mkpart primary $eMMCFilesystemChoosen 139264s 401407s + parted -s $1 -- mkpart primary $eMMCFilesystemChoosen 401408s ${LASTSECTOR}s partprobe $1 mkfs.ext4 ${mkopts[ext4]} $1"p1" >> $logfile 2>&1 mkswap $1"p2" >> $logfile 2>&1 @@ -358,7 +356,7 @@ formatemmc() emmcuuid=$(blkid -o export $1"p3" | grep -w UUID) dest_root=$emmccheck"p3" else - parted -s $1 -- mkpart primary $eMMCFilesystemChoosen 2048s ${LASTSECTOR}s + parted -s $1 -- mkpart primary $eMMCFilesystemChoosen 8192s ${LASTSECTOR}s partprobe $1 mkfs.${eMMCFilesystemChoosen} ${mkopts[$eMMCFilesystemChoosen]} $1"p1" >> $logfile 2>&1 emmcuuid=$(blkid -o export $1"p1" | grep -w UUID)