mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
This avoids errors with filesystem features and permissions when output directory is shared in Virtualbox (i.e. when using Vagrant)
62 lines
1.6 KiB
Plaintext
62 lines
1.6 KiB
Plaintext
BOOTSOURCE='https://github.com/UDOOboard/uboot-imx'
|
|
BOOTDIR='u-boot-udoo'
|
|
BOOTPATCHDIR='u-boot-udoo'
|
|
BOOTSCRIPT="boot-$BOARD.cmd:boot.cmd"
|
|
|
|
UBOOT_TARGET_MAP=';;SPL u-boot.img'
|
|
|
|
case $BOARD in
|
|
udoo)
|
|
BOOTBRANCH='branch:2015.10.fslc-qdl'
|
|
SERIALCON=ttymxc1
|
|
;;
|
|
|
|
udoo-neo)
|
|
BOOTBRANCH='branch:2015.04.imx'
|
|
SERIALCON=ttymxc0
|
|
;;
|
|
esac
|
|
|
|
case $BRANCH in
|
|
default)
|
|
KERNELSOURCE='https://github.com/UDOOboard/linux_kernel'
|
|
KERNELBRANCH='branch:3.14-1.0.x-udoo'
|
|
KERNELDIR='linux-udoo'
|
|
;;
|
|
|
|
next)
|
|
KERNELSOURCE='https://github.com/patrykk/linux-udoo'
|
|
KERNELBRANCH='branch:4.4-5.0.11.p7.3'
|
|
KERNELDIR='linux-udoo-next'
|
|
;;
|
|
esac
|
|
|
|
CPUMIN=392000
|
|
CPUMAX=996000
|
|
GOVERNOR=interactive
|
|
|
|
write_uboot_platform()
|
|
{
|
|
dd if=$1/SPL of=$2 bs=1k seek=1 status=noxfer > /dev/null 2>&1
|
|
dd if=$1/u-boot.img of=$2 bs=1k seek=69 conv=fsync > /dev/null 2>&1
|
|
}
|
|
|
|
family_tweaks()
|
|
{
|
|
chroot $SDCARD /bin/bash -c "apt-get -y -qq remove --auto-remove lirc >/dev/null 2>&1"
|
|
sed 's/wlan0/wlan2/' -i $SDCARD/etc/network/interfaces.default
|
|
sed 's/wlan0/wlan2/' -i $SDCARD/etc/network/interfaces.bonding
|
|
sed 's/wlan0/wlan2/' -i $SDCARD/etc/network/interfaces.hostapd
|
|
if [[ $BOARD == udoo-neo ]]; then
|
|
# SD card is elsewhere
|
|
sed 's/mmcblk0p1/mmcblk1p1/' -i $SDCARD/etc/fstab
|
|
# firmware for M4
|
|
# TODO: move to the u-boot package as a patch?
|
|
mkdir -p $SDCARD/boot/bin/
|
|
cp $SRC/packages/blobs/udoo/m4startup.fw* $SDCARD/boot/bin/
|
|
# fix for BT
|
|
cp $SRC/packages/blobs/udoo/udooneo-bluetooth_1.2-1_armhf.deb $SDCARD/tmp
|
|
chroot $SDCARD /bin/bash -c "dpkg -i /tmp/udooneo-bluetooth_1.2-1_armhf.deb >/dev/null 2>&1"
|
|
fi
|
|
}
|