Verified Commit 30283553 authored by Michal Hrusecky's avatar Michal Hrusecky 🦎

uboot-turris-omnia: Basic support for Omnia u-Boot

Adding basic package and compilation and export for Turris Omnia u-Boot
parent 9a220c08
......@@ -79,18 +79,20 @@ if [ "$TARGET_BOARD" = turris ]; then
elif [ "$TARGET_BOARD" = omnia ]; then
cp configs/config-omnia-rescue .config
[ -n "$USE_CCACHE" ] && echo "CONFIG_CCACHE=y" >> .config
make defconfig
make defconfig CONFDEFAULT=n
make clean
make "$@"
echo -e "CONFIG_TARGET_ROOTFS_INITRAMFS=y\nCONFIG_TARGET_INITRAMFS_COMPRESSION_XZ=y" >> .config
sed -i 's/^TARGET_ROOTFS_INCLUDE_KERNEL=.*/# TARGET_ROOTFS_INCLUDE_KERNEL is not set/' .config
sed -i 's/^CONFIG_TARGET_ROOTFS_INCLUDE_DTB.*/# CONFIG_TARGET_ROOTFS_INCLUDE_DTB is not set/' .config
make defconfig
cp build_dir/target-arm_cortex-a9+vfpv3_musl-*_eabi/root-mvebu/boot/uboot* build_dir
rm -f build_dir/target-arm_cortex-a9+vfpv3_musl-*_eabi/root-mvebu/boot/* build_dir/target-arm_cortex-a9+vfpv3_musl-*_eabi/root-mvebu/etc/rc.d/*rainbow
make target/linux/compile "$@"
cp `ls -d build_dir/target-arm_cortex-a9+vfpv3_musl-*_eabi/linux-mvebu`/{zImage-initramfs,zImage-initramfs-armada-385-turris-omnia}
cat build_dir/target-arm_cortex-a9+vfpv3_musl-*_eabi/linux-mvebu/linux-4.4/arch/arm/boot/dts/armada-385-turris-omnia.dtb >> `ls -d build_dir/target-arm_cortex-a9+vfpv3_musl-*_eabi/linux-mvebu`/zImage-initramfs-armada-385-turris-omnia
mv ./logs ./logs-initram
cp build_dir/target-arm_*/linux-mvebu/zImage-initramfs-armada-385-turris-omnia bin/mvebu-musl/omnia-initramfs-zimage
mv build_dir/uboot* bin/mvebu-musl
mv bin bin-nor
fi
......@@ -2035,6 +2035,7 @@ CONFIG_BUSYBOX_CONFIG_LOGGER=y
# CONFIG_PACKAGE_dnsmasq-full is not set
# CONFIG_PACKAGE_dropbear is not set
# CONFIG_PACKAGE_ead is not set
# CONFIG_PACKAGE_eudev is not set
# CONFIG_PACKAGE_firewall is not set
# CONFIG_PACKAGE_fstools is not set
# CONFIG_PACKAGE_jsonfilter is not set
......@@ -2091,6 +2092,7 @@ CONFIG_PACKAGE_swconfig=y
#
# Boot Loaders
#
CONFIG_PACKAGE_uboot-turris-omnia=y
#
# Development
......@@ -2100,6 +2102,7 @@ CONFIG_PACKAGE_swconfig=y
# CONFIG_PACKAGE_automake is not set
# CONFIG_PACKAGE_binutils is not set
# CONFIG_PACKAGE_diffutils is not set
# CONFIG_PACKAGE_gcc is not set
# CONFIG_PACKAGE_gdb is not set
# CONFIG_PACKAGE_gdbserver is not set
# CONFIG_PACKAGE_libtool-bin is not set
......@@ -2936,6 +2939,7 @@ CONFIG_PACKAGE_kmod-usb3=y
# CONFIG_PACKAGE_python-pifacecommon is not set
# CONFIG_PACKAGE_python-pip is not set
# CONFIG_PACKAGE_python-ply is not set
# CONFIG_PACKAGE_python-psycopg2 is not set
# CONFIG_PACKAGE_python-pyasn1 is not set
# CONFIG_PACKAGE_python-pycparser is not set
# CONFIG_PACKAGE_python-pydoc is not set
......@@ -3029,6 +3033,120 @@ CONFIG_PACKAGE_libattr=y
# CONFIG_PACKAGE_libiptc is not set
# CONFIG_PACKAGE_libxtables is not set
#
# IoT
#
# CONFIG_PACKAGE_libupm is not set
# CONFIG_PACKAGE_libupm-a110x is not set
# CONFIG_PACKAGE_libupm-ad8232 is not set
# CONFIG_PACKAGE_libupm-adafruitss is not set
# CONFIG_PACKAGE_libupm-adc121c021 is not set
# CONFIG_PACKAGE_libupm-adis16448 is not set
# CONFIG_PACKAGE_libupm-adxl335 is not set
# CONFIG_PACKAGE_libupm-adxl345 is not set
# CONFIG_PACKAGE_libupm-am2315 is not set
# CONFIG_PACKAGE_libupm-apds9002 is not set
# CONFIG_PACKAGE_libupm-at42qt1070 is not set
# CONFIG_PACKAGE_libupm-biss0001 is not set
# CONFIG_PACKAGE_libupm-bmpx8x is not set
# CONFIG_PACKAGE_libupm-buzzer is not set
# CONFIG_PACKAGE_libupm-cjq4435 is not set
# CONFIG_PACKAGE_libupm-ds1307 is not set
# CONFIG_PACKAGE_libupm-ecs1030 is not set
# CONFIG_PACKAGE_libupm-enc03r is not set
# CONFIG_PACKAGE_libupm-flex is not set
# CONFIG_PACKAGE_libupm-gas is not set
# CONFIG_PACKAGE_libupm-gp2y0a is not set
# CONFIG_PACKAGE_libupm-grove is not set
# CONFIG_PACKAGE_libupm-grovecircularled is not set
# CONFIG_PACKAGE_libupm-grovecollision is not set
# CONFIG_PACKAGE_libupm-groveehr is not set
# CONFIG_PACKAGE_libupm-groveeldriver is not set
# CONFIG_PACKAGE_libupm-groveelectromagnet is not set
# CONFIG_PACKAGE_libupm-groveemg is not set
# CONFIG_PACKAGE_libupm-grovegprs is not set
# CONFIG_PACKAGE_libupm-grovegsr is not set
# CONFIG_PACKAGE_libupm-grovelinefinder is not set
# CONFIG_PACKAGE_libupm-grovemd is not set
# CONFIG_PACKAGE_libupm-grovemoisture is not set
# CONFIG_PACKAGE_libupm-groveo2 is not set
# CONFIG_PACKAGE_libupm-grovescam is not set
# CONFIG_PACKAGE_libupm-grovespeaker is not set
# CONFIG_PACKAGE_libupm-grovevdiv is not set
# CONFIG_PACKAGE_libupm-grovewater is not set
# CONFIG_PACKAGE_libupm-grovewfs is not set
# CONFIG_PACKAGE_libupm-guvas12d is not set
# CONFIG_PACKAGE_libupm-h3lis331dl is not set
# CONFIG_PACKAGE_libupm-hcsr04 is not set
# CONFIG_PACKAGE_libupm-hm11 is not set
# CONFIG_PACKAGE_libupm-hmc5883l is not set
# CONFIG_PACKAGE_libupm-hmtrp is not set
# CONFIG_PACKAGE_libupm-hp20x is not set
# CONFIG_PACKAGE_libupm-ht9170 is not set
# CONFIG_PACKAGE_libupm-htu21d is not set
# CONFIG_PACKAGE_libupm-hx711 is not set
# CONFIG_PACKAGE_libupm-i2clcd is not set
# CONFIG_PACKAGE_libupm-ina132 is not set
# CONFIG_PACKAGE_libupm-isd1820 is not set
# CONFIG_PACKAGE_libupm-itg3200 is not set
# CONFIG_PACKAGE_libupm-joystick12 is not set
# CONFIG_PACKAGE_libupm-l298 is not set
# CONFIG_PACKAGE_libupm-ldt0028 is not set
# CONFIG_PACKAGE_libupm-lm35 is not set
# CONFIG_PACKAGE_libupm-lol is not set
# CONFIG_PACKAGE_libupm-loudness is not set
# CONFIG_PACKAGE_libupm-lpd8806 is not set
# CONFIG_PACKAGE_libupm-lsm303 is not set
# CONFIG_PACKAGE_libupm-lsm9ds0 is not set
# CONFIG_PACKAGE_libupm-m24lr64e is not set
# CONFIG_PACKAGE_libupm-max31723 is not set
# CONFIG_PACKAGE_libupm-max31855 is not set
# CONFIG_PACKAGE_libupm-max44000 is not set
# CONFIG_PACKAGE_libupm-max5487 is not set
# CONFIG_PACKAGE_libupm-maxds3231m is not set
# CONFIG_PACKAGE_libupm-maxsonarez is not set
# CONFIG_PACKAGE_libupm-mg811 is not set
# CONFIG_PACKAGE_libupm-mhz16 is not set
# CONFIG_PACKAGE_libupm-mic is not set
# CONFIG_PACKAGE_libupm-mlx90614 is not set
# CONFIG_PACKAGE_libupm-mma7455 is not set
# CONFIG_PACKAGE_libupm-mma7660 is not set
# CONFIG_PACKAGE_libupm-mpl3115a2 is not set
# CONFIG_PACKAGE_libupm-mpr121 is not set
# CONFIG_PACKAGE_libupm-mpu9150 is not set
# CONFIG_PACKAGE_libupm-mq303a is not set
# CONFIG_PACKAGE_libupm-my9221 is not set
# CONFIG_PACKAGE_libupm-nrf24l01 is not set
# CONFIG_PACKAGE_libupm-nrf8001 is not set
# CONFIG_PACKAGE_libupm-nunchuck is not set
# CONFIG_PACKAGE_libupm-otp538u is not set
# CONFIG_PACKAGE_libupm-pn532 is not set
# CONFIG_PACKAGE_libupm-ppd42ns is not set
# CONFIG_PACKAGE_libupm-pulsensor is not set
# CONFIG_PACKAGE_libupm-rfr359f is not set
# CONFIG_PACKAGE_libupm-rgbringcoder is not set
# CONFIG_PACKAGE_libupm-rotaryencoder is not set
# CONFIG_PACKAGE_libupm-rpr220 is not set
# CONFIG_PACKAGE_libupm-servo is not set
# CONFIG_PACKAGE_libupm-si114x is not set
# CONFIG_PACKAGE_libupm-sm130 is not set
# CONFIG_PACKAGE_libupm-st7735 is not set
# CONFIG_PACKAGE_libupm-stepmotor is not set
# CONFIG_PACKAGE_libupm-sx6119 is not set
# CONFIG_PACKAGE_libupm-ta12200 is not set
# CONFIG_PACKAGE_libupm-tcs3414cs is not set
# CONFIG_PACKAGE_libupm-th02 is not set
# CONFIG_PACKAGE_libupm-tm1637 is not set
# CONFIG_PACKAGE_libupm-tsl2561 is not set
# CONFIG_PACKAGE_libupm-ttp223 is not set
# CONFIG_PACKAGE_libupm-ublox6 is not set
# CONFIG_PACKAGE_libupm-uln200xa is not set
# CONFIG_PACKAGE_libupm-waterlevel is not set
# CONFIG_PACKAGE_libupm-wheelencoder is not set
# CONFIG_PACKAGE_libupm-wt5001 is not set
# CONFIG_PACKAGE_libupm-yg1006 is not set
# CONFIG_PACKAGE_libupm-zfm20 is not set
#
# Languages
#
......@@ -3167,6 +3285,7 @@ CONFIG_PACKAGE_libblkid=y
# CONFIG_PACKAGE_libgmp is not set
# CONFIG_PACKAGE_libgnurl is not set
# CONFIG_PACKAGE_libgpg-error is not set
# CONFIG_PACKAGE_libgps is not set
# CONFIG_PACKAGE_libhamlib is not set
# CONFIG_PACKAGE_hidapi is not set
# CONFIG_PACKAGE_libhiredis is not set
......@@ -3204,6 +3323,8 @@ CONFIG_PACKAGE_liblzo=y
# CONFIG_PACKAGE_libmount is not set
# CONFIG_PACKAGE_libmpdclient is not set
# CONFIG_PACKAGE_libmpeg2 is not set
# CONFIG_PACKAGE_libmpg123 is not set
# CONFIG_PACKAGE_libmraa is not set
# CONFIG_PACKAGE_libmysqlclient is not set
# CONFIG_PACKAGE_libmysqlclient-r is not set
# CONFIG_PACKAGE_libnatpmp is not set
......@@ -3282,6 +3403,7 @@ CONFIG_PACKAGE_libsmartcols=y
# CONFIG_PACKAGE_libtheora is not set
# CONFIG_PACKAGE_libtiff is not set
# CONFIG_PACKAGE_libtiffxx is not set
# CONFIG_PACKAGE_libtorrent is not set
CONFIG_PACKAGE_libubox=y
# CONFIG_PACKAGE_libubox-lua is not set
# CONFIG_PACKAGE_libubus is not set
......@@ -3526,6 +3648,7 @@ CONFIG_POSTFIX_CDB=y
# CONFIG_PACKAGE_ffserver is not set
# CONFIG_PACKAGE_fswebcam is not set
# CONFIG_PACKAGE_grilo is not set
# CONFIG_PACKAGE_grilo-plugins is not set
# CONFIG_PACKAGE_gst1-libav is not set
# CONFIG_PACKAGE_gstreamer1-libs is not set
# CONFIG_PACKAGE_gstreamer1-plugins-bad is not set
......@@ -3534,6 +3657,7 @@ CONFIG_POSTFIX_CDB=y
# CONFIG_PACKAGE_gstreamer1-plugins-ugly is not set
# CONFIG_PACKAGE_gstreamer1-utils is not set
# CONFIG_PACKAGE_icecast is not set
# CONFIG_PACKAGE_lcdgrilo is not set
# CONFIG_PACKAGE_mjpg-streamer is not set
# CONFIG_PACKAGE_motion is not set
# CONFIG_PACKAGE_tvheadend is not set
......@@ -3554,6 +3678,8 @@ CONFIG_POSTFIX_CDB=y
# CONFIG_PACKAGE_mktorrent is not set
# CONFIG_PACKAGE_opentracker is not set
# CONFIG_PACKAGE_opentracker6 is not set
# CONFIG_PACKAGE_rtorrent is not set
# CONFIG_PACKAGE_rtorrent-rpc is not set
# CONFIG_PACKAGE_transmission-daemon is not set
# CONFIG_PACKAGE_transmission-remote is not set
......@@ -3954,6 +4080,8 @@ CONFIG_PACKAGE_ip-full=y
# CONFIG_PACKAGE_ethtool is not set
# CONFIG_PACKAGE_fakeidentd is not set
# CONFIG_PACKAGE_gnunet is not set
# CONFIG_PACKAGE_gpsd is not set
# CONFIG_PACKAGE_gpsd-clients is not set
# CONFIG_PACKAGE_gre is not set
# CONFIG_PACKAGE_hnet-full is not set
# CONFIG_PACKAGE_hnet-full-l2tp is not set
......@@ -4022,6 +4150,7 @@ CONFIG_PACKAGE_ip-full=y
# CONFIG_PACKAGE_nut is not set
# CONFIG_PACKAGE_odhcp6c is not set
# CONFIG_PACKAGE_odhcpd is not set
# CONFIG_PACKAGE_ola is not set
# CONFIG_PACKAGE_openldap-server is not set
# CONFIG_PACKAGE_oping is not set
# CONFIG_PACKAGE_pen is not set
......@@ -4109,6 +4238,7 @@ CONFIG_WPA_MSG_MIN_PRIORITY=3
# CONFIG_PACKAGE_madplay-alsa is not set
# CONFIG_PACKAGE_mpc is not set
# CONFIG_PACKAGE_mpd-mini is not set
# CONFIG_PACKAGE_mpg123 is not set
# CONFIG_PACKAGE_mplayer is not set
# CONFIG_PACKAGE_pianod is not set
# CONFIG_PACKAGE_pianod-client is not set
......@@ -4123,6 +4253,7 @@ CONFIG_WPA_MSG_MIN_PRIORITY=3
# CONFIG_PACKAGE_squeezelite-full is not set
# CONFIG_PACKAGE_squeezelite-mini is not set
# CONFIG_PACKAGE_svox is not set
# CONFIG_PACKAGE_upmpdcli is not set
#
# Utilities
......@@ -4439,6 +4570,7 @@ CONFIG_PACKAGE_openssl-util=y
# CONFIG_PACKAGE_sispmctl is not set
# CONFIG_PACKAGE_smartd is not set
# CONFIG_PACKAGE_smartmontools is not set
# CONFIG_PACKAGE_smstools3 is not set
# CONFIG_PACKAGE_sockread is not set
# CONFIG_PACKAGE_spi-tools is not set
# CONFIG_PACKAGE_spidev-test is not set
......@@ -4465,7 +4597,6 @@ CONFIG_PACKAGE_uboot-envtools=y
# CONFIG_PACKAGE_usbutils is not set
# CONFIG_PACKAGE_uuidd is not set
# CONFIG_PACKAGE_uuidgen is not set
# CONFIG_PACKAGE_uvcdynctrl is not set
# CONFIG_PACKAGE_v4l-utils is not set
# CONFIG_PACKAGE_view1090 is not set
# CONFIG_PACKAGE_watchcat is not set
......
#
# Copyright (C) 2013-2014 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=uboot-turris-omnia
PKG_VERSION:=2015.10
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://gitlab.labs.nic.cz/turris/turris-omnia-uboot.git
PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.gz
PKG_SOURCE_VERSION:=e0710a41bcaf741b2c0d6a142a9c791ce49c9bfb
PKG_SOURCE_SUBDIR:=turris-omnia-uboot
PKG_MAINTAINER:=Michal Hrusecky <MichalHrusecky@nic.cz>
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR)
PKG_LICENSE:=GPL-2.0 GPL-2.0+
PKG_LICENSE_FILES:=Licenses/README
include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/kernel.mk
define Package/uboot-turris-omnia
TITLE:=U-Boot for Turris Omnia
SECTION:=boot
DESCRIPTION=
CATEGORY:=Boot Loaders
DEPENDS:=@TARGET_mvebu_Turris-Omnia uboot-envtools
URL:=http://www.denx.de/wiki/U-Boot
endef
define Package/uboot-turris-omnia/description
U-Boot bootloader for Turris Omnia router
endef
define Build/Configure
$(MAKE) -C $(PKG_BUILD_DIR) USE_PRIVATE_LIBGCC=yes db-88f6820-gp_defconfig
endef
define Build/Compile
ls $(BUILD_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) CROSS_COMPILE=$(TARGET_CROSS) DTC=$(LINUX_DIR)/scripts/dtc/dtc
cp $(PKG_BUILD_DIR)/u-boot-spl.kwb $(PKG_BUILD_DIR)/uboot-turris-omnia-spl.kwb
echo "MVEBU_BOOTROM_UARTBOOT=y" >> $(PKG_BUILD_DIR)/.config
sed -i 's|spi|uart|' $(PKG_BUILD_DIR)/board/Marvell/db-88f6820-gp/kwbimage.cfg
$(MAKE) -C $(PKG_BUILD_DIR) CROSS_COMPILE=$(TARGET_CROSS) DTC=$(LINUX_DIR)/scripts/dtc/dtc
cp $(PKG_BUILD_DIR)/u-boot-spl.kwb $(PKG_BUILD_DIR)/uboot-turris-omnia-uart-spl.kwb
endef
define Package/uboot-turris-omnia/install
$(INSTALL_DIR) $(1)/boot/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/uboot-turris-omnia-spl.kwb $(1)/boot/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/uboot-turris-omnia-uart-spl.kwb $(1)/boot/
endef
$(eval $(call BuildPackage,$(PKG_NAME)))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment