Update A20-SOM204 configuration

This commit is contained in:
Stefan Mavrodiev 2018-04-25 15:47:14 +03:00
parent d983ac403e
commit 6072401974
2 changed files with 18 additions and 14 deletions

View File

@ -2,16 +2,16 @@
BOARD_NAME="SOM204-A20"
BOARDFAMILY="sun7i"
BOOTCONFIG="A20-Olimex-SOM204-EVB-eMMC_defconfig"
MODULES=""
MODULES_NEXT=""
MODULES_DEV="g_serial r8723bs gpio-ir-tx"
MODULES="8021q a20_tp bonding g_serial gpio_sunxi m25p80 spi_sun7i sunxi_lirc_new sunxi_can"
MODULES_NEXT="bonding g_serial gpio-ir-tx r8723bs"
MODULES_DEV="bonding g_serial gpio-ir-tx r8723bs "
#
KERNEL_TARGET="dev"
CLI_TARGET="stretch"
DESKTOP_TARGET=""
KERNEL_TARGET="default,next,dev"
CLI_TARGET="stretch,xenial:next"
DESKTOP_TARGET="xenial:default,next"
#
CLI_BETA_TARGET=""
DESKTOP_BETA_TARGET=""
CLI_BETA_TARGET="stretch:next"
DESKTOP_BETA_TARGET="xenial:default"
#
RECOMMENDED="Ubuntu_xenial_default_desktop:90,Debian_jessie_next:100"
#

View File

@ -32,27 +32,31 @@ CPUMIN=480000
family_tweaks_s()
{
if [[ $BRANCH == dev && $BOARD == olimex-som204-a20 ]]; then
if [[ $BOARD == olimex-som204-a20 ]]; then
# Enable serial login on USB-OTG
mkdir -p $SDCARD/etc/systemd/system/serial-getty@ttyGS0.service.d
chroot $SDCARD /bin/bash -c "systemctl --no-reload enable serial-getty@ttyGS0.service > /dev/null 2>&1"
echo "ttyGS0" >> $SDCARD/etc/securetty
# Enable bluetooth
chroot $SDCARD /bin/bash -c "systemctl --no-reload enable olinuxino-bluetooth.service >/dev/null 2>&1"
if [[ $BRANCH != default ]]; then
# Enable bluetooth
chroot $SDCARD /bin/bash -c "systemctl --no-reload enable olinuxino-bluetooth.service >/dev/null 2>&1"
fi
fi
}
family_tweaks_bsp_s()
{
if [[ $BRANCH == dev && $BOARD == olimex-som204-a20 ]]; then
if [[ $BRANCH != default && $BOARD == olimex-som204-a20 ]]; then
# Copy bluetooth service
install -m 755 $SRC/packages/bsp/olinuxino/rtk_hciattach $destination/usr/bin
cp $SRC/packages/bsp/olinuxino/olinuxino-bluetooth.service $destination/lib/systemd/system
# Copy fbdev configuration
cp $SRC/packages/bsp/olinuxino/02-olinuxino-hdmi-fbdev.conf $destination/etc/X11/xorg.conf.d/
if [[ $BRANCH == dev ]]; then
# Copy fbdev configuration
cp $SRC/packages/bsp/olinuxino/02-olinuxino-hdmi-fbdev.conf $destination/etc/X11/xorg.conf.d/
fi
fi
}