Files
build/config/sources/mvebu.conf
Gauthier Provost 59af84c07c Helios4: Add SPI bootloader install feature (#1126)
* Helios4: Add workaround for SPI and SATA concurrent access issue

Concurrent access on SPI NOR and SATA drives can lead to unstable SATA.
Therefore as workaround, disable SATA controller when SPI flash access
is needed and make it as user configurable item in armbianEnv.txt

This workaround might applies to Clearfog too.

Signed-off-by: Aditya Prayoga <aditya@kobol.io>

* Helios4: Add U-Boot SPI

Signed-off-by: Aditya Prayoga <aditya@kobol.io>

* Helios4: Add SPI bootloader install feature

This will allow to use nand-sata-install to perform the following operations on Helios4 :
- Install bootloader to SPI NOR Flash (Option 5 in Menu).
- Copy RootFS to USB storage in order to boot from SPI with RootFS on USB (Option 6 in Menu).

* Unmount temp mount points in create_armbian() instead of hardcoded /dev/sda
2018-10-08 13:44:36 +02:00

69 lines
1.5 KiB
Plaintext

if [[ $BOARD == helios4 ]]; then
source "${BASH_SOURCE%/*}/mvebu-helios4.inc"
BOOTENV_FILE='helios4-default.txt'
else
source "${BASH_SOURCE%/*}/mvebu-clearfog.inc"
BOOTENV_FILE='clearfog-default.txt'
fi
case $BRANCH in
default)
KERNELSOURCE='https://github.com/moonman/linux-stable'
KERNELBRANCH='branch:linux-4.4.y-marvell'
KERNELDIR='linux-armada-lts'
KERNEL_USE_GCC='> 5.0'
;;
next)
KERNELSOURCE=$MAINLINE_KERNEL_SOURCE
KERNELBRANCH='branch:linux-4.14.y'
KERNELDIR=$MAINLINE_KERNEL_DIR
KERNEL_USE_GCC='> 7.0'
;;
dev)
BOOTSOURCE=$MAINLINE_UBOOT_SOURCE
BOOTBRANCH='tag:v2018.01'
BOOTDIR=$MAINLINE_UBOOT_DIR
BOOTPATCHDIR='u-boot-mvebu-next'
BOOTSCRIPT='boot-mvebu-next.cmd:boot.cmd'
UBOOT_TARGET_MAP=";;u-boot-spl.kwb:u-boot.mmc"
UBOOT_USE_GCC='> 7.0'
OVERLAY_PREFIX='armada-388'
KERNELSOURCE=$MAINLINE_KERNEL_SOURCE
KERNELBRANCH='branch:linux-4.18.y'
KERNELDIR=$MAINLINE_KERNEL_DIR
LINUXCONFIG='linux-mvebu-dev'
KERNELPATCHDIR="mvebu-dev"
KERNEL_USE_GCC='> 7.0'
;;
esac
CPUMIN=800000
CPUMAX=1600000
GOVERNOR=ondemand
write_uboot_platform()
{
dd if=$1/u-boot.mmc of=$2 bs=512 seek=1 status=noxfer > /dev/null 2>&1
}
write_uboot_platform_mtd ()
{
dd if=$1/u-boot.flash of=$2 status=noxfer > /dev/null 2>&1
}
family_tweaks()
{
# execute specific tweaks function if present
[[ $(type -t family_tweaks_s) == function ]] && family_tweaks_s
chroot $SDCARD /bin/bash -c "apt-get -y -qq remove --auto-remove linux-sound-base alsa-base alsa-utils bluez>/dev/null 2>&1"
}