[LEDE-DEV] [PATCH v2 10/10] at91: refreshing kernel configurations.
refreshing kernel configurations for sama5 and legacy subtarget. Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikar...@microchip.com> --- target/linux/at91/config-4.9 | 445 -- target/linux/at91/legacy/config-default | 239 ++ target/linux/at91/sama5d2/config-default | 329 ++-- target/linux/at91/sama5d3/config-default | 1312 -- target/linux/at91/sama5d4/config-default | 1312 -- 5 files changed, 1202 insertions(+), 2435 deletions(-) diff --git a/target/linux/at91/config-4.9 b/target/linux/at91/config-4.9 index c0151a5..dbc976b 100644 --- a/target/linux/at91/config-4.9 +++ b/target/linux/at91/config-4.9 @@ -8,11 +8,7 @@ CONFIG_ARCH_HAVE_CUSTOM_GPIO_H=y CONFIG_ARCH_HIBERNATION_POSSIBLE=y CONFIG_ARCH_MIGHT_HAVE_PC_PARPORT=y CONFIG_ARCH_MULTIPLATFORM=y -CONFIG_ARCH_MULTI_CPU_AUTO=y -# CONFIG_ARCH_MULTI_V4 is not set -# CONFIG_ARCH_MULTI_V4T is not set -CONFIG_ARCH_MULTI_V4_V5=y -CONFIG_ARCH_MULTI_V5=y +# CONFIG_ARCH_MULTI_CPU_AUTO is not set CONFIG_ARCH_NR_GPIO=0 # CONFIG_ARCH_SELECT_MEMORY_MODEL is not set # CONFIG_ARCH_SPARSEMEM_DEFAULT is not set @@ -24,70 +20,181 @@ CONFIG_ARCH_USE_CMPXCHG_LOCKREF=y CONFIG_ARCH_WANT_GENERAL_HUGETLB=y CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y CONFIG_ARM=y -CONFIG_ARM_APPENDED_DTB=y -# CONFIG_ARM_ATAG_DTB_COMPAT is not set -# CONFIG_ARM_CPU_SUSPEND is not set +CONFIG_ARM_AT91_CPUIDLE=y +CONFIG_ARM_CPU_SUSPEND=y CONFIG_ARM_HAS_SG_CHAIN=y -CONFIG_ARM_L1_CACHE_SHIFT=5 +CONFIG_ARM_HEAVY_MB=y +CONFIG_ARM_L1_CACHE_SHIFT=6 +CONFIG_ARM_L1_CACHE_SHIFT_6=y +# CONFIG_ARM_LPAE is not set +CONFIG_ARM_PATCH_IDIV=y CONFIG_ARM_PATCH_PHYS_VIRT=y CONFIG_ARM_THUMB=y +# CONFIG_ARM_THUMBEE is not set +CONFIG_ARM_UNWIND=y +CONFIG_ARM_VIRT_EXT=y CONFIG_AT91SAM9X_WATCHDOG=y -CONFIG_ATAGS=y -CONFIG_ATMEL_AIC_IRQ=y +CONFIG_AT91_ADC=y +CONFIG_ATMEL_AIC5_IRQ=y CONFIG_ATMEL_EBI=y CONFIG_ATMEL_PIT=y CONFIG_ATMEL_SDRAMC=y -# CONFIG_ATMEL_TCLIB is not set +CONFIG_ATMEL_SSC=y +CONFIG_ATMEL_TCB_CLKSRC=y +CONFIG_ATMEL_TCB_CLKSRC_BLOCK=0 +CONFIG_ATMEL_TCLIB=y CONFIG_AT_HDMAC=y # CONFIG_AT_XDMAC is not set CONFIG_AUTO_ZRELADDR=y -# CONFIG_BLK_DEV_INITRD is not set -# CONFIG_CACHE_L2X0 is not set +CONFIG_BACKLIGHT_CLASS_DEVICE=y +CONFIG_BACKLIGHT_LCD_SUPPORT=y +CONFIG_BACKLIGHT_PWM=y +# CONFIG_BLK_CGROUP is not set +CONFIG_BLK_DEV_LOOP=y +CONFIG_BLK_DEV_RAM=y +CONFIG_BLK_DEV_RAM_COUNT=4 +CONFIG_BLK_DEV_RAM_SIZE=8192 +CONFIG_BLK_DEV_SD=y +# CONFIG_BPF_SYSCALL is not set +# CONFIG_BRIDGE is not set +CONFIG_CACHE_L2X0=y +CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE=y +# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set +CONFIG_CGROUPS=y +CONFIG_CGROUP_CPUACCT=y +# CONFIG_CGROUP_DEVICE is not set +# CONFIG_CGROUP_FREEZER is not set +# CONFIG_CGROUP_PIDS is not set +# CONFIG_CGROUP_SCHED is not set CONFIG_CLKDEV_LOOKUP=y CONFIG_CLKSRC_OF=y CONFIG_CLKSRC_PROBE=y CONFIG_CLONE_BACKWARDS=y +CONFIG_CMA=y +CONFIG_CMA_AREAS=7 +# CONFIG_CMA_DEBUG is not set +# CONFIG_CMA_DEBUGFS is not set +CONFIG_CMDLINE="console=ttyS0,115200 initrd=0x2110,25165824 root=/dev/ram0 rw" CONFIG_COMMON_CLK=y CONFIG_COMMON_CLK_AT91=y +CONFIG_COMPACTION=y +CONFIG_COMPAT_BRK=y CONFIG_CONFIGFS_FS=y -CONFIG_CPU_32v5=y -CONFIG_CPU_ABRT_EV5TJ=y -CONFIG_CPU_ARM926T=y -# CONFIG_CPU_CACHE_ROUND_ROBIN is not set -CONFIG_CPU_CACHE_VIVT=y -CONFIG_CPU_COPY_V4WB=y +CONFIG_CONSOLE_TRANSLATIONS=y +CONFIG_COREDUMP=y +# CONFIG_CPUSETS is not set +CONFIG_CPU_32v6K=y +CONFIG_CPU_32v7=y +CONFIG_CPU_ABRT_EV7=y +# CONFIG_CPU_BPREDICT_DISABLE is not set +CONFIG_CPU_CACHE_V7=y +CONFIG_CPU_CACHE_VIPT=y +CONFIG_CPU_COPY_V6=y CONFIG_CPU_CP15=y CONFIG_CPU_CP15_MMU=y -# CONFIG_CPU_DCACHE_WRITETHROUGH is not set +CONFIG_CPU_HAS_ASID=y # CONFIG_CPU_ICACHE_DISABLE is not set -CONFIG_CPU_PABRT_LEGACY=y -CONFIG_CPU_TLB_V4WBI=y -CONFIG_CPU_USE_DOMAINS=y +CONFIG_CPU_IDLE=y +CONFIG_CPU_IDLE_GOV_LADDER=y +CONFIG_CPU_PABRT_V7=y +CONFIG_CPU_PM=y +CONFIG_CPU_TLB_V7=y +CONFIG_CPU_V7=y CONFIG_CRC16=y +# CONFIG_CRC32_SARWATE is not set +CONFIG_CRC32_SLICEBY8=y +CONFIG_CROSS_MEMORY_ATTACH=y +CONFIG_CRYPTO_AEAD=y +CONFIG_CRYPTO_AEAD2=y +CONFIG_CRYPTO_CCM=y CONFIG_CRYPTO_CRC32C=y +CONFIG_CRYPTO_CTR=y CONFIG_CRYPTO_DEFLATE=y +CONFIG_CRYPTO_DRBG=y +CONFIG_CRYPTO_DRBG_HMAC=y +CONFIG_CRYPTO_DRBG_MENU=y +CONFIG_CRYPTO_ECHAINIV=m +CONFIG_CRYPTO_GCM=y +CONFIG_CRYPTO_GF128MUL=y +CONFIG_CRYPTO_GHASH=y CONFIG_CRYPTO_HASH=y CONFIG_CRYPTO_HASH2=y +CONFIG_CRYPTO_HMAC=y +CONFIG_CRYPTO_JITTERENTROPY=y CONFIG_CRYPTO_LZO=y +CONFIG_CRYPTO_MANAGER=y +CONFIG_CRYPTO_MANAGER2=y +CONFIG_CRYPTO_NULL=y +CONFIG_CRYPTO_NULL2=y +CONFIG_CRYPTO_RNG=y CONFIG_CRYPTO_RNG2=y +CONFIG_CRYPTO_RNG_DEFAULT=y +CONFIG_CRYPTO_SEQIV=y +CONFIG_CRYPTO_SHA256=y +CONFIG_CRYPTO_USER_API=m +CONFIG_CRYPTO_USER_API_HASH=m +CONFIG_CRYPTO_USER_API_SKCIPHER=m CONFIG_CRYPTO_WORKQUEUE=y -CONFIG_DEBUG_BUGVERBOSE=y +CONFIG_DCACHE_WORD_ACCESS=y CONFIG_DEBUG_LL_INCLUDE="mach/debug-macro.S"
[LEDE-DEV] [PATCH v2 04/10] kernel: fix build error for external kernel.
fixed build error when external kernel is selected from menuconfig. The patches present in target/linux/generic does not gets applied to external kernel and build fails while compiling mac82011 & regmap-core kernel modules. as a fix added check in Makefile for CONFIG_EXTERNAL_KERNEL_TREE present or not. Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikar...@microchip.com> --- package/kernel/linux/modules/other.mk | 6 +- package/kernel/mac80211/Makefile | 15 ++- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/package/kernel/linux/modules/other.mk b/package/kernel/linux/modules/other.mk index 4aee820..11f28f4 100644 --- a/package/kernel/linux/modules/other.mk +++ b/package/kernel/linux/modules/other.mk @@ -707,11 +707,15 @@ define KernelPackage/regmap CONFIG_REGMAP_I2C \ CONFIG_SPI=y FILES:= \ - $(LINUX_DIR)/drivers/base/regmap/regmap-core.ko \ $(LINUX_DIR)/drivers/base/regmap/regmap-i2c.ko \ $(LINUX_DIR)/drivers/base/regmap/regmap-mmio.ko \ $(if $(CONFIG_SPI),$(LINUX_DIR)/drivers/base/regmap/regmap-spi.ko) AUTOLOAD:=$(call AutoLoad,21,regmap-core regmap-i2c regmap-mmio regmap-spi) + ifeq ($(strip $(CONFIG_EXTERNAL_KERNEL_TREE)),"") + ifeq ($(strip $(CONFIG_KERNEL_GIT_CLONE_URI)),"") +FILES += $(LINUX_DIR)/drivers/base/regmap/regmap-core.ko + endif + endif endef define KernelPackage/regmap/description diff --git a/package/kernel/mac80211/Makefile b/package/kernel/mac80211/Makefile index f3e4d79..dc198eb 100644 --- a/package/kernel/mac80211/Makefile +++ b/package/kernel/mac80211/Makefile @@ -1797,11 +1797,16 @@ ifneq ($(CONFIG_PACKAGE_kmod-cfg80211)$(CONFIG_PACKAGE_kmod-lib80211),) endef endif -define Build/Configure - cmp $(PKG_BUILD_DIR)/include/linux/ath9k_platform.h $(LINUX_DIR)/include/linux/ath9k_platform.h - cmp $(PKG_BUILD_DIR)/include/linux/ath5k_platform.h $(LINUX_DIR)/include/linux/ath5k_platform.h - cmp $(PKG_BUILD_DIR)/include/linux/rt2x00_platform.h $(LINUX_DIR)/include/linux/rt2x00_platform.h -endef +#do not Build/Configure for EXTERNAL KERNEL +ifeq ($(strip $(CONFIG_EXTERNAL_KERNEL_TREE)),"") + ifeq ($(strip $(CONFIG_KERNEL_GIT_CLONE_URI)),"") +define Build/Configure + cmp $(PKG_BUILD_DIR)/include/linux/ath9k_platform.h $(LINUX_DIR)/include/linux/ath9k_platform.h + cmp $(PKG_BUILD_DIR)/include/linux/ath5k_platform.h $(LINUX_DIR)/include/linux/ath5k_platform.h + cmp $(PKG_BUILD_DIR)/include/linux/rt2x00_platform.h $(LINUX_DIR)/include/linux/rt2x00_platform.h +endef + endif +endif define Build/Compile $(SH_FUNC) var2file "$(call shvar,mac80211_config)" $(PKG_BUILD_DIR)/.config -- 2.7.4 ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
[LEDE-DEV] [PATCH v2 03/10] uboot-at91: fetch uboot src from u-boot-at91 github
fetching uboot src from linux4sam/u-boot-at91 github for all at91 target. Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikar...@microchip.com> --- package/boot/uboot-at91/Makefile | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/package/boot/uboot-at91/Makefile b/package/boot/uboot-at91/Makefile index cad12ec..27b113e 100644 --- a/package/boot/uboot-at91/Makefile +++ b/package/boot/uboot-at91/Makefile @@ -7,10 +7,12 @@ include $(TOPDIR)/rules.mk -PKG_VERSION:=2016.05 +PKG_VERSION:=linux4sam_5.8 PKG_RELEASE:=1 -PKG_HASH:=87d02275615aaf0cd007b54cbe9fbadceef2bee7c79e6c323ea1ae8956dcb171 +PKG_SOURCE_PROTO:=git +PKG_SOURCE_URL:=https://github.com/linux4sam/u-boot-at91.git +PKG_SOURCE_VERSION:=59f202622154f82e708a6ca2bf86350a5c1b2d33 include $(INCLUDE_DIR)/u-boot.mk include $(INCLUDE_DIR)/package.mk @@ -30,7 +32,9 @@ endef define U-Boot/at91sam9x5ek_nandflash NAME:=AT91SAM9X5-EK board (NandFlash) BUILD_SUBTARGET:=legacy - BUILD_DEVICES:=at91sam9g15ek at91sam9g25ek at91sam9g35ek at91sam9x25ek at91sam9x35ek + BUILD_DEVICES:=at91sam9g15ek at91sam9g25ek \ + at91sam9g35ek at91sam9x25ek \ +at91sam9x35ek endef define U-Boot/sama5d3_xplained_nandflash @@ -87,9 +91,10 @@ UBOOT_TARGETS := \ sama5d4_xplained_nandflash define Build/Compile - +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \ - CROSS_COMPILE=$(TARGET_CROSS) \ - KCFLAGS="$(filter-out -fstack-protector -mfloat-abi=hard, $(TARGET_CFLAGS)) -mfloat-abi=soft" + +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \ + CROSS_COMPILE=$(TARGET_CROSS) \ + KCFLAGS="$(filter-out -fstack-protector \ + -mfloat-abi=hard, $(TARGET_CFLAGS)) -mfloat-abi=soft" endef $(eval $(call BuildPackage/U-Boot)) -- 2.7.4 ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
[LEDE-DEV] [PATCH v2 09/10] at91: Add SAMA5D2 PTC EK board
Add target device as at91-sama5d2_ptc_ek in SAMA5D2 subtarget and build images for SAMA5D2 PTC Ek board. Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikar...@microchip.com> --- package/boot/at91bootstrap/Makefile| 16 +- package/boot/uboot-at91/Makefile | 18 +- target/linux/at91/base-files/lib/at91.sh | 3 + target/linux/at91/image/sama5d2.mk | 8 + ...105-ARM-at91-build-dtb-for-sama5d2-ptc-Ek.patch | 442 + 5 files changed, 484 insertions(+), 3 deletions(-) create mode 100644 target/linux/at91/patches-4.9/105-ARM-at91-build-dtb-for-sama5d2-ptc-Ek.patch diff --git a/package/boot/at91bootstrap/Makefile b/package/boot/at91bootstrap/Makefile index b350555..22afd1e 100644 --- a/package/boot/at91bootstrap/Makefile +++ b/package/boot/at91bootstrap/Makefile @@ -94,6 +94,18 @@ define AT91Bootstrap/sama5d27_som1_ekqspi_uboot BUILD_DEVICES:=at91-sama5d27_som1_ek endef +define AT91Bootstrap/sama5d2_ptc_eknf_uboot + TITLE:=AT91Bootstrap for SAMA5D2 PTC EK (Nand Flash) + BUILD_SUBTARGET:=sama5d2 + BUILD_DEVICES:=at91-sama5d2_ptc_ek +endef + +define AT91Bootstrap/sama5d2_ptc_eksd_uboot + TITLE:=AT91Bootstrap for SAMA5D2 PTC EK (SDCard) + BUILD_SUBTARGET:=sama5d2 + BUILD_DEVICES:=at91-sama5d2_ptc_ek +endef + AT91BOOTSTRAP_TARGETS := \ sama5d2_xplaineddf_uboot \ sama5d2_xplaineddf_qspi_uboot \ @@ -104,7 +116,9 @@ AT91BOOTSTRAP_TARGETS := \ sama5d4_xplaineddf_uboot_secure \ sama5d4_xplainedsd_uboot_secure \ sama5d27_som1_eksd_uboot \ - sama5d27_som1_ekqspi_uboot + sama5d27_som1_ekqspi_uboot \ + sama5d2_ptc_eknf_uboot \ +sama5d2_ptc_eksd_uboot define Build/Compile +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \ diff --git a/package/boot/uboot-at91/Makefile b/package/boot/uboot-at91/Makefile index fd58b90..f0a4ba5 100644 --- a/package/boot/uboot-at91/Makefile +++ b/package/boot/uboot-at91/Makefile @@ -21,7 +21,7 @@ include $(INCLUDE_DIR)/kernel.mk define U-Boot/Default BUILD_TARGET:=at91 HIDDEN:=1 - UBOOT_IMAGE:=u-boot.bin boot.bin + UBOOT_IMAGE:=u-boot.bin endef define U-Boot/at91sam9m10g45ek_nandflash @@ -92,6 +92,18 @@ define U-Boot/sama5d27_som1_ek_spiflash BUILD_DEVICES:=at91-sama5d27_som1_ek endef +define U-Boot/sama5d2_ptc_ek_nandflash + NAME:=SAMA5D2 PTC Ek (Nand Flash) + BUILD_SUBTARGET:=sama5d2 + BUILD_DEVICES:=at91-sama5d2_ptc_ek +endef + +define U-Boot/sama5d2_ptc_ek_mmc + NAME:=SAMA5D2 PTC Ek (SDCard) + BUILD_SUBTARGET:=sama5d2 + BUILD_DEVICES:=at91-sama5d2_ptc_ek +endef + UBOOT_TARGETS := \ at91sam9m10g45ek_nandflash \ at91sam9x5ek_nandflash \ @@ -103,7 +115,9 @@ UBOOT_TARGETS := \ sama5d4_xplained_spiflash \ sama5d4_xplained_nandflash\ sama5d27_som1_ek_mmc \ -sama5d27_som1_ek_spiflash +sama5d27_som1_ek_spiflash \ + sama5d2_ptc_ek_nandflash \ + sama5d2_ptc_ek_mmc define Build/Compile +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \ diff --git a/target/linux/at91/base-files/lib/at91.sh b/target/linux/at91/base-files/lib/at91.sh index 5d31b67..ea38925 100755 --- a/target/linux/at91/base-files/lib/at91.sh +++ b/target/linux/at91/base-files/lib/at91.sh @@ -46,6 +46,9 @@ at91_board_detect() { *"Atmel SAMA5D27 SOM1 EK") name="sama5d27_som1_ek" ;; + *"Atmel SAMA5D2 PTC EK") + name="sama5d2_ptc_ek" + ;; *"SAMA5D2 Xplained") name="sama5d2_xplained" ;; diff --git a/target/linux/at91/image/sama5d2.mk b/target/linux/at91/image/sama5d2.mk index 28a6f93..b841448 100644 --- a/target/linux/at91/image/sama5d2.mk +++ b/target/linux/at91/image/sama5d2.mk @@ -21,3 +21,11 @@ define Device/at91-sama5d27_som1_ek $(Device/evaluation-sdimage) endef TARGET_DEVICES += at91-sama5d27_som1_ek + +define Device/at91-sama5d2_ptc_ek + $(Device/evaluation-dtb) + DEVICE_TITLE := Microchip(Atmel AT91) SAMA5D2 PTC Ek + KERNEL_SIZE := 6144k + $(Device/evaluation-sdimage) +endef +TARGET_DEVICES += at91-sama5d2_ptc_ek diff --git a/target/linux/at91/patches-4.9/105-ARM-at91-build-dtb-for-sama5d2-ptc-Ek.patch b/target/linux/at91/patches-4.9/105-ARM-at91-build-dtb-for-sama5d2-ptc-Ek.patch new file mode 100644 index 000..3da9955 --- /dev/null +++ b/target/linux/at91/patches-4.9/105-ARM-at91-build-dtb-for-sama5d2-ptc-Ek.patch @@ -0,0 +1,442 @@ +diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile +index c88e426..cb47e80 100644 +--- a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile +@@ -49,6 +49,7 @@ dtb-$(CONFIG_SOC_AT91SAM9) += \ + wb45n.dtb + dtb-$(CONFIG_SOC_SAM_V7) += \ + at91-kizbox2.dtb \ ++ at91-sama5d2_ptc_ek.dtb \ + at91-sama5d27_som1_ek.dtb \ + at91-sama5d2_xplained.dtb \ + at91-sama5d3_xplained.dtb \ +diff --git a/a
[LEDE-DEV] [PATCH v2 06/10] at91: sdcard image with ext4 rootfs
creating sdcard image with ext4 rootfs only and ignoring creating other filesystem in sdcard image. Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikar...@microchip.com> --- target/linux/at91/image/Makefile | 2 +- target/linux/at91/image/sama5.mk | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/target/linux/at91/image/Makefile b/target/linux/at91/image/Makefile index ccaeebe..93180dd 100644 --- a/target/linux/at91/image/Makefile +++ b/target/linux/at91/image/Makefile @@ -23,7 +23,7 @@ endif define Device/Default $(Device/default-nand) PROFILES := Default - FILESYSTEMS := squashfs ubifs + FILESYSTEMS := squashfs ubifs ext4 DEVICE_DTS := $(1) KERNEL_NAME := zImage KERNEL_SIZE := 4096k diff --git a/target/linux/at91/image/sama5.mk b/target/linux/at91/image/sama5.mk index 5960f40..fd7a534 100644 --- a/target/linux/at91/image/sama5.mk +++ b/target/linux/at91/image/sama5.mk @@ -4,6 +4,7 @@ FAT32_BLOCKS:=$(shell echo \ $$(($(AT91_SD_BOOT_PARTSIZE)*1024*1024/$(FAT32_BLOCK_SIZE define Build/at91-sdcard + $(if $(findstring ext4,$@), \ rm -f $@.boot mkfs.fat -C $@.boot $(FAT32_BLOCKS) @@ -30,7 +31,7 @@ define Build/at91-sdcard gzip -nc9 $@.img > $@ - rm -f $@.img $@.boot + rm -f $@.img $@.boot ) endef define Device/evaluation-sdimage -- 2.7.4 ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
[LEDE-DEV] [PATCH v2 02/10] at91: fix sdcard create image
copying at91bootstrap and uboot binaries to sdcard image is done based on device name instead of dts name and this avoids creating multiple u-boot and at91bootstrap binaries. Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikar...@microchip.com> --- target/linux/at91/image/sama5.mk | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/target/linux/at91/image/sama5.mk b/target/linux/at91/image/sama5.mk index 5b518c9..b875888 100644 --- a/target/linux/at91/image/sama5.mk +++ b/target/linux/at91/image/sama5.mk @@ -11,13 +11,15 @@ define Build/at91-sdcard $(foreach dts,$(DEVICE_DTS), \ mcopy -i $@.boot $(DTS_DIR)/$(dts).dtb \ -::$(dts).dtb; \ - mcopy -i $@.boot \ -$(BIN_DIR)/u-boot-$(dts:at91-%=%)_mmc/u-boot.bin \ -::u-boot.bin; \ - $(CP) $(BIN_DIR)/at91bootstrap-$(dts:at91-%=%)sd_uboot*/*.bin \ - $@.BOOT.bin; \ - mcopy -i $@.boot $@.BOOT.bin ::BOOT.bin;) +::$(dts).dtb;) + + mcopy -i $@.boot \ +$(BIN_DIR)/u-boot-$(DEVICE_NAME:at91-%=%)_mmc/u-boot.bin \ +::u-boot.bin + + $(CP) $(BIN_DIR)/at91bootstrap-$(DEVICE_NAME:at91-%=%)sd*/at91bootstrap.bin \ +$@.BOOT.bin; \ +mcopy -i $@.boot $@.BOOT.bin ::BOOT.bin ./gen_at91_sdcard_img.sh \ $@.img \ -- 2.7.4 ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
[LEDE-DEV] [PATCH v2 01/10] at91bootstrap:update to v3.8.10
updating to new version v3.8.10 and copying at91bootstrap.bin to bin folder. Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikar...@microchip.com> --- package/boot/at91bootstrap/Makefile | 4 ++-- package/boot/at91bootstrap/at91bootstrap.mk | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package/boot/at91bootstrap/Makefile b/package/boot/at91bootstrap/Makefile index e704c35..8a1ec5e 100644 --- a/package/boot/at91bootstrap/Makefile +++ b/package/boot/at91bootstrap/Makefile @@ -9,12 +9,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=at91bootstrap -PKG_VERSION:=v3.8.8 +PKG_VERSION:=v3.8.10 PKG_RELEASE:= PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=https://github.com/linux4sam/at91bootstrap.git -PKG_SOURCE_VERSION:=3d33a4e0707c61007a5278f6620453502f7500db +PKG_SOURCE_VERSION:=04efa5500d60a0211d14b6ee60df7ce0a828704d PKG_BUILD_DIR = \ $(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION) diff --git a/package/boot/at91bootstrap/at91bootstrap.mk b/package/boot/at91bootstrap/at91bootstrap.mk index 92353ff..60cd8c4 100644 --- a/package/boot/at91bootstrap/at91bootstrap.mk +++ b/package/boot/at91bootstrap/at91bootstrap.mk @@ -5,7 +5,7 @@ PKG_FLAGS:=nonshared export GCC_HONOUR_COPTS=s define Package/at91bootstrap/install/default - $(CP) $(PKG_BUILD_DIR)/binaries/*uboot* $(1)/ + $(CP) -avL $(PKG_BUILD_DIR)/binaries/at91bootstrap.bin $(1)/ endef Package/at91bootstrap/install = $(Package/at91bootstrap/install/default) -- 2.7.4 ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
[LEDE-DEV] [PATCH v2 00/10] at91 patch series
resending all patches again due with rebase. Sandeep Sheriker Mallikarjun (10): at91bootstrap:update to v3.8.10 at91: fix sdcard create image uboot-at91: fetch uboot src from u-boot-at91 github kernel: fix build error for external kernel. at91: Add SAMA5D27 SOM1 EK board at91: sdcard image with ext4 rootfs uboot-at91: fix DTC command not found. at91: reorganize at91 subtargets at91: Add SAMA5D2 PTC EK board at91: refreshing kernel configurations. package/boot/at91bootstrap/Makefile| 49 +- package/boot/at91bootstrap/at91bootstrap.mk| 2 +- package/boot/uboot-at91/Makefile | 65 +- package/kernel/linux/modules/other.mk | 6 +- package/kernel/mac80211/Makefile | 15 +- target/linux/at91/Makefile | 2 +- target/linux/at91/base-files/lib/at91.sh | 6 + target/linux/at91/config-4.9 | 445 -- target/linux/at91/image/Makefile | 53 +- target/linux/at91/image/sama5.mk | 90 -- target/linux/at91/image/sama5d2.mk | 31 + target/linux/at91/image/sama5d3.mk | 33 + target/linux/at91/image/sama5d4.mk | 19 + target/linux/at91/legacy/config-default| 239 ++ ...4-ARM-at91-build-dtb-for-sama5d27-SOM1-Ek.patch | 908 + ...105-ARM-at91-build-dtb-for-sama5d2-ptc-Ek.patch | 442 ++ target/linux/at91/sama5/config-default | 52 -- target/linux/at91/sama5/target.mk | 9 - target/linux/at91/sama5d2/config-default | 287 +++ target/linux/at91/sama5d2/target.mk| 10 + target/linux/at91/sama5d3/config-default | 287 +++ target/linux/at91/sama5d3/target.mk| 10 + target/linux/at91/sama5d4/config-default | 287 +++ target/linux/at91/sama5d4/target.mk| 10 + 24 files changed, 3124 insertions(+), 233 deletions(-) delete mode 100644 target/linux/at91/image/sama5.mk create mode 100644 target/linux/at91/image/sama5d2.mk create mode 100644 target/linux/at91/image/sama5d3.mk create mode 100644 target/linux/at91/image/sama5d4.mk create mode 100644 target/linux/at91/patches-4.9/104-ARM-at91-build-dtb-for-sama5d27-SOM1-Ek.patch create mode 100644 target/linux/at91/patches-4.9/105-ARM-at91-build-dtb-for-sama5d2-ptc-Ek.patch delete mode 100644 target/linux/at91/sama5/config-default delete mode 100644 target/linux/at91/sama5/target.mk create mode 100644 target/linux/at91/sama5d2/config-default create mode 100644 target/linux/at91/sama5d2/target.mk create mode 100644 target/linux/at91/sama5d3/config-default create mode 100644 target/linux/at91/sama5d3/target.mk create mode 100644 target/linux/at91/sama5d4/config-default create mode 100644 target/linux/at91/sama5d4/target.mk -- 2.7.4 ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
[LEDE-DEV] [PATCH v1 3/3] at91: refreshing kernel configurations.
refreshing kernel configurations for sama5 and legacy subtarget. Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikar...@microchip.com> --- target/linux/at91/config-4.9 | 445 -- target/linux/at91/legacy/config-default | 239 ++ target/linux/at91/sama5d2/config-default | 329 ++-- target/linux/at91/sama5d3/config-default | 1312 -- target/linux/at91/sama5d4/config-default | 1312 -- 5 files changed, 1202 insertions(+), 2435 deletions(-) diff --git a/target/linux/at91/config-4.9 b/target/linux/at91/config-4.9 index c0151a5..dbc976b 100644 --- a/target/linux/at91/config-4.9 +++ b/target/linux/at91/config-4.9 @@ -8,11 +8,7 @@ CONFIG_ARCH_HAVE_CUSTOM_GPIO_H=y CONFIG_ARCH_HIBERNATION_POSSIBLE=y CONFIG_ARCH_MIGHT_HAVE_PC_PARPORT=y CONFIG_ARCH_MULTIPLATFORM=y -CONFIG_ARCH_MULTI_CPU_AUTO=y -# CONFIG_ARCH_MULTI_V4 is not set -# CONFIG_ARCH_MULTI_V4T is not set -CONFIG_ARCH_MULTI_V4_V5=y -CONFIG_ARCH_MULTI_V5=y +# CONFIG_ARCH_MULTI_CPU_AUTO is not set CONFIG_ARCH_NR_GPIO=0 # CONFIG_ARCH_SELECT_MEMORY_MODEL is not set # CONFIG_ARCH_SPARSEMEM_DEFAULT is not set @@ -24,70 +20,181 @@ CONFIG_ARCH_USE_CMPXCHG_LOCKREF=y CONFIG_ARCH_WANT_GENERAL_HUGETLB=y CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y CONFIG_ARM=y -CONFIG_ARM_APPENDED_DTB=y -# CONFIG_ARM_ATAG_DTB_COMPAT is not set -# CONFIG_ARM_CPU_SUSPEND is not set +CONFIG_ARM_AT91_CPUIDLE=y +CONFIG_ARM_CPU_SUSPEND=y CONFIG_ARM_HAS_SG_CHAIN=y -CONFIG_ARM_L1_CACHE_SHIFT=5 +CONFIG_ARM_HEAVY_MB=y +CONFIG_ARM_L1_CACHE_SHIFT=6 +CONFIG_ARM_L1_CACHE_SHIFT_6=y +# CONFIG_ARM_LPAE is not set +CONFIG_ARM_PATCH_IDIV=y CONFIG_ARM_PATCH_PHYS_VIRT=y CONFIG_ARM_THUMB=y +# CONFIG_ARM_THUMBEE is not set +CONFIG_ARM_UNWIND=y +CONFIG_ARM_VIRT_EXT=y CONFIG_AT91SAM9X_WATCHDOG=y -CONFIG_ATAGS=y -CONFIG_ATMEL_AIC_IRQ=y +CONFIG_AT91_ADC=y +CONFIG_ATMEL_AIC5_IRQ=y CONFIG_ATMEL_EBI=y CONFIG_ATMEL_PIT=y CONFIG_ATMEL_SDRAMC=y -# CONFIG_ATMEL_TCLIB is not set +CONFIG_ATMEL_SSC=y +CONFIG_ATMEL_TCB_CLKSRC=y +CONFIG_ATMEL_TCB_CLKSRC_BLOCK=0 +CONFIG_ATMEL_TCLIB=y CONFIG_AT_HDMAC=y # CONFIG_AT_XDMAC is not set CONFIG_AUTO_ZRELADDR=y -# CONFIG_BLK_DEV_INITRD is not set -# CONFIG_CACHE_L2X0 is not set +CONFIG_BACKLIGHT_CLASS_DEVICE=y +CONFIG_BACKLIGHT_LCD_SUPPORT=y +CONFIG_BACKLIGHT_PWM=y +# CONFIG_BLK_CGROUP is not set +CONFIG_BLK_DEV_LOOP=y +CONFIG_BLK_DEV_RAM=y +CONFIG_BLK_DEV_RAM_COUNT=4 +CONFIG_BLK_DEV_RAM_SIZE=8192 +CONFIG_BLK_DEV_SD=y +# CONFIG_BPF_SYSCALL is not set +# CONFIG_BRIDGE is not set +CONFIG_CACHE_L2X0=y +CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE=y +# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set +CONFIG_CGROUPS=y +CONFIG_CGROUP_CPUACCT=y +# CONFIG_CGROUP_DEVICE is not set +# CONFIG_CGROUP_FREEZER is not set +# CONFIG_CGROUP_PIDS is not set +# CONFIG_CGROUP_SCHED is not set CONFIG_CLKDEV_LOOKUP=y CONFIG_CLKSRC_OF=y CONFIG_CLKSRC_PROBE=y CONFIG_CLONE_BACKWARDS=y +CONFIG_CMA=y +CONFIG_CMA_AREAS=7 +# CONFIG_CMA_DEBUG is not set +# CONFIG_CMA_DEBUGFS is not set +CONFIG_CMDLINE="console=ttyS0,115200 initrd=0x2110,25165824 root=/dev/ram0 rw" CONFIG_COMMON_CLK=y CONFIG_COMMON_CLK_AT91=y +CONFIG_COMPACTION=y +CONFIG_COMPAT_BRK=y CONFIG_CONFIGFS_FS=y -CONFIG_CPU_32v5=y -CONFIG_CPU_ABRT_EV5TJ=y -CONFIG_CPU_ARM926T=y -# CONFIG_CPU_CACHE_ROUND_ROBIN is not set -CONFIG_CPU_CACHE_VIVT=y -CONFIG_CPU_COPY_V4WB=y +CONFIG_CONSOLE_TRANSLATIONS=y +CONFIG_COREDUMP=y +# CONFIG_CPUSETS is not set +CONFIG_CPU_32v6K=y +CONFIG_CPU_32v7=y +CONFIG_CPU_ABRT_EV7=y +# CONFIG_CPU_BPREDICT_DISABLE is not set +CONFIG_CPU_CACHE_V7=y +CONFIG_CPU_CACHE_VIPT=y +CONFIG_CPU_COPY_V6=y CONFIG_CPU_CP15=y CONFIG_CPU_CP15_MMU=y -# CONFIG_CPU_DCACHE_WRITETHROUGH is not set +CONFIG_CPU_HAS_ASID=y # CONFIG_CPU_ICACHE_DISABLE is not set -CONFIG_CPU_PABRT_LEGACY=y -CONFIG_CPU_TLB_V4WBI=y -CONFIG_CPU_USE_DOMAINS=y +CONFIG_CPU_IDLE=y +CONFIG_CPU_IDLE_GOV_LADDER=y +CONFIG_CPU_PABRT_V7=y +CONFIG_CPU_PM=y +CONFIG_CPU_TLB_V7=y +CONFIG_CPU_V7=y CONFIG_CRC16=y +# CONFIG_CRC32_SARWATE is not set +CONFIG_CRC32_SLICEBY8=y +CONFIG_CROSS_MEMORY_ATTACH=y +CONFIG_CRYPTO_AEAD=y +CONFIG_CRYPTO_AEAD2=y +CONFIG_CRYPTO_CCM=y CONFIG_CRYPTO_CRC32C=y +CONFIG_CRYPTO_CTR=y CONFIG_CRYPTO_DEFLATE=y +CONFIG_CRYPTO_DRBG=y +CONFIG_CRYPTO_DRBG_HMAC=y +CONFIG_CRYPTO_DRBG_MENU=y +CONFIG_CRYPTO_ECHAINIV=m +CONFIG_CRYPTO_GCM=y +CONFIG_CRYPTO_GF128MUL=y +CONFIG_CRYPTO_GHASH=y CONFIG_CRYPTO_HASH=y CONFIG_CRYPTO_HASH2=y +CONFIG_CRYPTO_HMAC=y +CONFIG_CRYPTO_JITTERENTROPY=y CONFIG_CRYPTO_LZO=y +CONFIG_CRYPTO_MANAGER=y +CONFIG_CRYPTO_MANAGER2=y +CONFIG_CRYPTO_NULL=y +CONFIG_CRYPTO_NULL2=y +CONFIG_CRYPTO_RNG=y CONFIG_CRYPTO_RNG2=y +CONFIG_CRYPTO_RNG_DEFAULT=y +CONFIG_CRYPTO_SEQIV=y +CONFIG_CRYPTO_SHA256=y +CONFIG_CRYPTO_USER_API=m +CONFIG_CRYPTO_USER_API_HASH=m +CONFIG_CRYPTO_USER_API_SKCIPHER=m CONFIG_CRYPTO_WORKQUEUE=y -CONFIG_DEBUG_BUGVERBOSE=y +CONFIG_DCACHE_WORD_ACCESS=y CONFIG_DEBUG_LL_INCLUDE="mach/debug-macro.S"
[LEDE-DEV] [PATCH v1 2/3] at91: Add SAMA5D2 PTC EK board
Add target device as at91-sama5d2_ptc_ek in SAMA5D2 subtarget and build images for SAMA5D2 PTC Ek board. Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikar...@microchip.com> --- package/boot/at91bootstrap/Makefile| 16 +- package/boot/uboot-at91/Makefile | 18 +- target/linux/at91/base-files/lib/at91.sh | 3 + target/linux/at91/image/sama5d2.mk | 8 + ...105-ARM-at91-build-dtb-for-sama5d2-ptc-Ek.patch | 442 + 5 files changed, 484 insertions(+), 3 deletions(-) create mode 100644 target/linux/at91/patches-4.9/105-ARM-at91-build-dtb-for-sama5d2-ptc-Ek.patch diff --git a/package/boot/at91bootstrap/Makefile b/package/boot/at91bootstrap/Makefile index b350555..22afd1e 100644 --- a/package/boot/at91bootstrap/Makefile +++ b/package/boot/at91bootstrap/Makefile @@ -94,6 +94,18 @@ define AT91Bootstrap/sama5d27_som1_ekqspi_uboot BUILD_DEVICES:=at91-sama5d27_som1_ek endef +define AT91Bootstrap/sama5d2_ptc_eknf_uboot + TITLE:=AT91Bootstrap for SAMA5D2 PTC EK (Nand Flash) + BUILD_SUBTARGET:=sama5d2 + BUILD_DEVICES:=at91-sama5d2_ptc_ek +endef + +define AT91Bootstrap/sama5d2_ptc_eksd_uboot + TITLE:=AT91Bootstrap for SAMA5D2 PTC EK (SDCard) + BUILD_SUBTARGET:=sama5d2 + BUILD_DEVICES:=at91-sama5d2_ptc_ek +endef + AT91BOOTSTRAP_TARGETS := \ sama5d2_xplaineddf_uboot \ sama5d2_xplaineddf_qspi_uboot \ @@ -104,7 +116,9 @@ AT91BOOTSTRAP_TARGETS := \ sama5d4_xplaineddf_uboot_secure \ sama5d4_xplainedsd_uboot_secure \ sama5d27_som1_eksd_uboot \ - sama5d27_som1_ekqspi_uboot + sama5d27_som1_ekqspi_uboot \ + sama5d2_ptc_eknf_uboot \ +sama5d2_ptc_eksd_uboot define Build/Compile +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \ diff --git a/package/boot/uboot-at91/Makefile b/package/boot/uboot-at91/Makefile index fd58b90..f0a4ba5 100644 --- a/package/boot/uboot-at91/Makefile +++ b/package/boot/uboot-at91/Makefile @@ -21,7 +21,7 @@ include $(INCLUDE_DIR)/kernel.mk define U-Boot/Default BUILD_TARGET:=at91 HIDDEN:=1 - UBOOT_IMAGE:=u-boot.bin boot.bin + UBOOT_IMAGE:=u-boot.bin endef define U-Boot/at91sam9m10g45ek_nandflash @@ -92,6 +92,18 @@ define U-Boot/sama5d27_som1_ek_spiflash BUILD_DEVICES:=at91-sama5d27_som1_ek endef +define U-Boot/sama5d2_ptc_ek_nandflash + NAME:=SAMA5D2 PTC Ek (Nand Flash) + BUILD_SUBTARGET:=sama5d2 + BUILD_DEVICES:=at91-sama5d2_ptc_ek +endef + +define U-Boot/sama5d2_ptc_ek_mmc + NAME:=SAMA5D2 PTC Ek (SDCard) + BUILD_SUBTARGET:=sama5d2 + BUILD_DEVICES:=at91-sama5d2_ptc_ek +endef + UBOOT_TARGETS := \ at91sam9m10g45ek_nandflash \ at91sam9x5ek_nandflash \ @@ -103,7 +115,9 @@ UBOOT_TARGETS := \ sama5d4_xplained_spiflash \ sama5d4_xplained_nandflash\ sama5d27_som1_ek_mmc \ -sama5d27_som1_ek_spiflash +sama5d27_som1_ek_spiflash \ + sama5d2_ptc_ek_nandflash \ + sama5d2_ptc_ek_mmc define Build/Compile +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \ diff --git a/target/linux/at91/base-files/lib/at91.sh b/target/linux/at91/base-files/lib/at91.sh index 5d31b67..ea38925 100755 --- a/target/linux/at91/base-files/lib/at91.sh +++ b/target/linux/at91/base-files/lib/at91.sh @@ -46,6 +46,9 @@ at91_board_detect() { *"Atmel SAMA5D27 SOM1 EK") name="sama5d27_som1_ek" ;; + *"Atmel SAMA5D2 PTC EK") + name="sama5d2_ptc_ek" + ;; *"SAMA5D2 Xplained") name="sama5d2_xplained" ;; diff --git a/target/linux/at91/image/sama5d2.mk b/target/linux/at91/image/sama5d2.mk index 28a6f93..b841448 100644 --- a/target/linux/at91/image/sama5d2.mk +++ b/target/linux/at91/image/sama5d2.mk @@ -21,3 +21,11 @@ define Device/at91-sama5d27_som1_ek $(Device/evaluation-sdimage) endef TARGET_DEVICES += at91-sama5d27_som1_ek + +define Device/at91-sama5d2_ptc_ek + $(Device/evaluation-dtb) + DEVICE_TITLE := Microchip(Atmel AT91) SAMA5D2 PTC Ek + KERNEL_SIZE := 6144k + $(Device/evaluation-sdimage) +endef +TARGET_DEVICES += at91-sama5d2_ptc_ek diff --git a/target/linux/at91/patches-4.9/105-ARM-at91-build-dtb-for-sama5d2-ptc-Ek.patch b/target/linux/at91/patches-4.9/105-ARM-at91-build-dtb-for-sama5d2-ptc-Ek.patch new file mode 100644 index 000..3da9955 --- /dev/null +++ b/target/linux/at91/patches-4.9/105-ARM-at91-build-dtb-for-sama5d2-ptc-Ek.patch @@ -0,0 +1,442 @@ +diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile +index c88e426..cb47e80 100644 +--- a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile +@@ -49,6 +49,7 @@ dtb-$(CONFIG_SOC_AT91SAM9) += \ + wb45n.dtb + dtb-$(CONFIG_SOC_SAM_V7) += \ + at91-kizbox2.dtb \ ++ at91-sama5d2_ptc_ek.dtb \ + at91-sama5d27_som1_ek.dtb \ + at91-sama5d2_xplained.dtb \ + at91-sama5d3_xplained.dtb \ +diff --git a/a
[LEDE-DEV] [PATCH v1 1/3] at91: reorganize at91 subtargets
reorganizing at91 subtargets based on sama5 soc features and this fix below problems. 1. able to set neon flags to sama5d2 & sama5d4 subtargets. 2. fix the make clean which removes all the subtargets in bin folder. 3. able to configure kernel specific to subtarget. 4. able to set vfpu4 flags to samad3 subtargets. Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikar...@microchip.com> --- package/boot/at91bootstrap/Makefile| 12 +- package/boot/uboot-at91/Makefile | 18 +- target/linux/at91/Makefile |2 +- target/linux/at91/image/Makefile | 51 +- target/linux/at91/image/sama5.mk | 101 -- target/linux/at91/image/sama5d2.mk | 23 + target/linux/at91/image/sama5d3.mk | 33 + target/linux/at91/image/sama5d4.mk | 19 + target/linux/at91/sama5/target.mk |9 - .../linux/at91/{sama5 => sama5d2}/config-default |0 target/linux/at91/sama5d2/target.mk| 10 + target/linux/at91/sama5d3/config-default | 1311 target/linux/at91/sama5d3/target.mk| 10 + target/linux/at91/sama5d4/config-default | 1311 target/linux/at91/sama5d4/target.mk| 10 + 15 files changed, 2797 insertions(+), 123 deletions(-) delete mode 100644 target/linux/at91/image/sama5.mk create mode 100644 target/linux/at91/image/sama5d2.mk create mode 100644 target/linux/at91/image/sama5d3.mk create mode 100644 target/linux/at91/image/sama5d4.mk delete mode 100644 target/linux/at91/sama5/target.mk rename target/linux/at91/{sama5 => sama5d2}/config-default (100%) create mode 100644 target/linux/at91/sama5d2/target.mk create mode 100644 target/linux/at91/sama5d3/config-default create mode 100644 target/linux/at91/sama5d3/target.mk create mode 100644 target/linux/at91/sama5d4/config-default create mode 100644 target/linux/at91/sama5d4/target.mk diff --git a/package/boot/at91bootstrap/Makefile b/package/boot/at91bootstrap/Makefile index fbe44c4..b350555 100644 --- a/package/boot/at91bootstrap/Makefile +++ b/package/boot/at91bootstrap/Makefile @@ -24,63 +24,73 @@ include $(INCLUDE_DIR)/package.mk define AT91Bootstrap/Default BUILD_TARGET:=at91 - BUILD_SUBTARGET:=sama5 HIDDEN:=1 AT91BOOTSTRAP_IMAGE:=at91bootstrap.bin endef define AT91Bootstrap/sama5d2_xplaineddf_uboot TITLE:=AT91Bootstrap for SAMA5D2 Xplained board (SPI Flash) + BUILD_SUBTARGET:=sama5d2 BUILD_DEVICES:=at91-sama5d2_xplained endef define AT91Bootstrap/sama5d2_xplaineddf_qspi_uboot TITLE:=AT91Bootstrap for SAMA5D2 Xplained board (QSPI Flash) + BUILD_SUBTARGET:=sama5d2 BUILD_DEVICES:=at91-sama5d2_xplained endef define AT91Bootstrap/sama5d2_xplainedsd_uboot TITLE:=AT91Bootstrap for SAMA5D2 Xplained board (SDcard/EMMC) + BUILD_SUBTARGET:=sama5d2 BUILD_DEVICES:=at91-sama5d2_xplained endef define AT91Bootstrap/sama5d3_xplainednf_uboot TITLE:=AT91Bootstrap for SAMA5D3 Xplained board (Nand Flash) + BUILD_SUBTARGET:=sama5d3 BUILD_DEVICES:=at91-sama5d3_xplained endef define AT91Bootstrap/sama5d3_xplainedsd_uboot TITLE:=AT91Bootstrap for SAMA5D3 Xplained board (SDcard) + BUILD_SUBTARGET:=sama5d3 BUILD_DEVICES:=at91-sama5d3_xplained endef define AT91Bootstrap/sama5d4_xplainednf_uboot_secure TITLE:=AT91Bootstrap for SAMA5D4 Xplained board (Nand Flash) + BUILD_SUBTARGET:=sama5d4 BUILD_DEVICES:=at91-sama5d4_xplained endef define AT91Bootstrap/sama5d4_xplaineddf_uboot_secure TITLE:=AT91Bootstrap for SAMA5D4 Xplained board (SPI Flash) + BUILD_SUBTARGET:=sama5d4 BUILD_DEVICES:=at91-sama5d4_xplained endef define AT91Bootstrap/sama5d4_xplainedsd_uboot_secure TITLE:=AT91Bootstrap for SAMA5D4 Xplained board (SDcard) + BUILD_SUBTARGET:=sama5d4 BUILD_DEVICES:=at91-sama5d4_xplained endef define AT91Bootstrap/sama5d27_som1_eksd_uboot TITLE:=AT91Bootstrap for SAMA5D27 SOM1 Ek (SDcard0) + BUILD_SUBTARGET:=sama5d2 BUILD_DEVICES:=at91-sama5d27_som1_ek endef define AT91Bootstrap/sama5d27_som1_eksd1_uboot TITLE:=AT91Bootstrap for SAMA5D27 SOM1 Ek (SDcard1) + BUILD_SUBTARGET:=sama5d2 BUILD_DEVICES:=at91-sama5d27_som1_ek endef define AT91Bootstrap/sama5d27_som1_ekqspi_uboot TITLE:=AT91Bootstrap for SAMA5D27 SOM1 Ek (QSPI Flash) + BUILD_SUBTARGET:=sama5d2 BUILD_DEVICES:=at91-sama5d27_som1_ek endef diff --git a/package/boot/uboot-at91/Makefile b/package/boot/uboot-at91/Makefile index b8c6c6e..fd58b90 100644 --- a/package/boot/uboot-at91/Makefile +++ b/package/boot/uboot-at91/Makefile @@ -40,55 +40,55 @@ endef define U-Boot/sama5d3_xplained_nandflash NAME:=SAMA5D3 Xplained board (NandFlash) - BUILD_SUBTARGET:=sama5 + BUILD_SUBTARGET:=sama5d3 BUILD_DEVICES:=at91-sama5d3_xplained endef define U-Boot/sama5d3_xplained_mmc NAME:=SAMA5D
[LEDE-DEV] [PATCH v1 0/3] at91 patch series.
sending below 3 patches with rebase. Sandeep Sheriker Mallikarjun (3): at91: reorganize at91 subtargets at91: Add SAMA5D2 PTC EK board at91: refreshing kernel configurations. package/boot/at91bootstrap/Makefile| 28 +- package/boot/uboot-at91/Makefile | 36 +- target/linux/at91/Makefile | 2 +- target/linux/at91/base-files/lib/at91.sh | 3 + target/linux/at91/config-4.9 | 445 ++--- target/linux/at91/image/Makefile | 51 ++- target/linux/at91/image/sama5.mk | 101 - target/linux/at91/image/sama5d2.mk | 31 ++ target/linux/at91/image/sama5d3.mk | 33 ++ target/linux/at91/image/sama5d4.mk | 19 + target/linux/at91/legacy/config-default| 239 +++ ...105-ARM-at91-build-dtb-for-sama5d2-ptc-Ek.patch | 442 target/linux/at91/sama5/config-default | 52 --- target/linux/at91/sama5/target.mk | 9 - target/linux/at91/sama5d2/config-default | 287 + target/linux/at91/sama5d2/target.mk| 10 + target/linux/at91/sama5d3/config-default | 287 + target/linux/at91/sama5d3/target.mk| 10 + target/linux/at91/sama5d4/config-default | 287 + target/linux/at91/sama5d4/target.mk| 10 + 20 files changed, 2152 insertions(+), 230 deletions(-) delete mode 100644 target/linux/at91/image/sama5.mk create mode 100644 target/linux/at91/image/sama5d2.mk create mode 100644 target/linux/at91/image/sama5d3.mk create mode 100644 target/linux/at91/image/sama5d4.mk create mode 100644 target/linux/at91/patches-4.9/105-ARM-at91-build-dtb-for-sama5d2-ptc-Ek.patch delete mode 100644 target/linux/at91/sama5/config-default delete mode 100644 target/linux/at91/sama5/target.mk create mode 100644 target/linux/at91/sama5d2/config-default create mode 100644 target/linux/at91/sama5d2/target.mk create mode 100644 target/linux/at91/sama5d3/config-default create mode 100644 target/linux/at91/sama5d3/target.mk create mode 100644 target/linux/at91/sama5d4/config-default create mode 100644 target/linux/at91/sama5d4/target.mk -- 2.7.4 ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
[LEDE-DEV] [PATCH 12/12] at91: refreshing kernel configurations.
refreshing kernel configurations for sama5 and legacy subtarget. Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikar...@microchip.com> --- target/linux/at91/config-4.9 | 445 -- target/linux/at91/legacy/config-default | 239 ++ target/linux/at91/sama5d2/config-default | 329 ++-- target/linux/at91/sama5d3/config-default | 1312 -- target/linux/at91/sama5d4/config-default | 1312 -- 5 files changed, 1202 insertions(+), 2435 deletions(-) diff --git a/target/linux/at91/config-4.9 b/target/linux/at91/config-4.9 index c0151a5..dbc976b 100644 --- a/target/linux/at91/config-4.9 +++ b/target/linux/at91/config-4.9 @@ -8,11 +8,7 @@ CONFIG_ARCH_HAVE_CUSTOM_GPIO_H=y CONFIG_ARCH_HIBERNATION_POSSIBLE=y CONFIG_ARCH_MIGHT_HAVE_PC_PARPORT=y CONFIG_ARCH_MULTIPLATFORM=y -CONFIG_ARCH_MULTI_CPU_AUTO=y -# CONFIG_ARCH_MULTI_V4 is not set -# CONFIG_ARCH_MULTI_V4T is not set -CONFIG_ARCH_MULTI_V4_V5=y -CONFIG_ARCH_MULTI_V5=y +# CONFIG_ARCH_MULTI_CPU_AUTO is not set CONFIG_ARCH_NR_GPIO=0 # CONFIG_ARCH_SELECT_MEMORY_MODEL is not set # CONFIG_ARCH_SPARSEMEM_DEFAULT is not set @@ -24,70 +20,181 @@ CONFIG_ARCH_USE_CMPXCHG_LOCKREF=y CONFIG_ARCH_WANT_GENERAL_HUGETLB=y CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y CONFIG_ARM=y -CONFIG_ARM_APPENDED_DTB=y -# CONFIG_ARM_ATAG_DTB_COMPAT is not set -# CONFIG_ARM_CPU_SUSPEND is not set +CONFIG_ARM_AT91_CPUIDLE=y +CONFIG_ARM_CPU_SUSPEND=y CONFIG_ARM_HAS_SG_CHAIN=y -CONFIG_ARM_L1_CACHE_SHIFT=5 +CONFIG_ARM_HEAVY_MB=y +CONFIG_ARM_L1_CACHE_SHIFT=6 +CONFIG_ARM_L1_CACHE_SHIFT_6=y +# CONFIG_ARM_LPAE is not set +CONFIG_ARM_PATCH_IDIV=y CONFIG_ARM_PATCH_PHYS_VIRT=y CONFIG_ARM_THUMB=y +# CONFIG_ARM_THUMBEE is not set +CONFIG_ARM_UNWIND=y +CONFIG_ARM_VIRT_EXT=y CONFIG_AT91SAM9X_WATCHDOG=y -CONFIG_ATAGS=y -CONFIG_ATMEL_AIC_IRQ=y +CONFIG_AT91_ADC=y +CONFIG_ATMEL_AIC5_IRQ=y CONFIG_ATMEL_EBI=y CONFIG_ATMEL_PIT=y CONFIG_ATMEL_SDRAMC=y -# CONFIG_ATMEL_TCLIB is not set +CONFIG_ATMEL_SSC=y +CONFIG_ATMEL_TCB_CLKSRC=y +CONFIG_ATMEL_TCB_CLKSRC_BLOCK=0 +CONFIG_ATMEL_TCLIB=y CONFIG_AT_HDMAC=y # CONFIG_AT_XDMAC is not set CONFIG_AUTO_ZRELADDR=y -# CONFIG_BLK_DEV_INITRD is not set -# CONFIG_CACHE_L2X0 is not set +CONFIG_BACKLIGHT_CLASS_DEVICE=y +CONFIG_BACKLIGHT_LCD_SUPPORT=y +CONFIG_BACKLIGHT_PWM=y +# CONFIG_BLK_CGROUP is not set +CONFIG_BLK_DEV_LOOP=y +CONFIG_BLK_DEV_RAM=y +CONFIG_BLK_DEV_RAM_COUNT=4 +CONFIG_BLK_DEV_RAM_SIZE=8192 +CONFIG_BLK_DEV_SD=y +# CONFIG_BPF_SYSCALL is not set +# CONFIG_BRIDGE is not set +CONFIG_CACHE_L2X0=y +CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE=y +# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set +CONFIG_CGROUPS=y +CONFIG_CGROUP_CPUACCT=y +# CONFIG_CGROUP_DEVICE is not set +# CONFIG_CGROUP_FREEZER is not set +# CONFIG_CGROUP_PIDS is not set +# CONFIG_CGROUP_SCHED is not set CONFIG_CLKDEV_LOOKUP=y CONFIG_CLKSRC_OF=y CONFIG_CLKSRC_PROBE=y CONFIG_CLONE_BACKWARDS=y +CONFIG_CMA=y +CONFIG_CMA_AREAS=7 +# CONFIG_CMA_DEBUG is not set +# CONFIG_CMA_DEBUGFS is not set +CONFIG_CMDLINE="console=ttyS0,115200 initrd=0x2110,25165824 root=/dev/ram0 rw" CONFIG_COMMON_CLK=y CONFIG_COMMON_CLK_AT91=y +CONFIG_COMPACTION=y +CONFIG_COMPAT_BRK=y CONFIG_CONFIGFS_FS=y -CONFIG_CPU_32v5=y -CONFIG_CPU_ABRT_EV5TJ=y -CONFIG_CPU_ARM926T=y -# CONFIG_CPU_CACHE_ROUND_ROBIN is not set -CONFIG_CPU_CACHE_VIVT=y -CONFIG_CPU_COPY_V4WB=y +CONFIG_CONSOLE_TRANSLATIONS=y +CONFIG_COREDUMP=y +# CONFIG_CPUSETS is not set +CONFIG_CPU_32v6K=y +CONFIG_CPU_32v7=y +CONFIG_CPU_ABRT_EV7=y +# CONFIG_CPU_BPREDICT_DISABLE is not set +CONFIG_CPU_CACHE_V7=y +CONFIG_CPU_CACHE_VIPT=y +CONFIG_CPU_COPY_V6=y CONFIG_CPU_CP15=y CONFIG_CPU_CP15_MMU=y -# CONFIG_CPU_DCACHE_WRITETHROUGH is not set +CONFIG_CPU_HAS_ASID=y # CONFIG_CPU_ICACHE_DISABLE is not set -CONFIG_CPU_PABRT_LEGACY=y -CONFIG_CPU_TLB_V4WBI=y -CONFIG_CPU_USE_DOMAINS=y +CONFIG_CPU_IDLE=y +CONFIG_CPU_IDLE_GOV_LADDER=y +CONFIG_CPU_PABRT_V7=y +CONFIG_CPU_PM=y +CONFIG_CPU_TLB_V7=y +CONFIG_CPU_V7=y CONFIG_CRC16=y +# CONFIG_CRC32_SARWATE is not set +CONFIG_CRC32_SLICEBY8=y +CONFIG_CROSS_MEMORY_ATTACH=y +CONFIG_CRYPTO_AEAD=y +CONFIG_CRYPTO_AEAD2=y +CONFIG_CRYPTO_CCM=y CONFIG_CRYPTO_CRC32C=y +CONFIG_CRYPTO_CTR=y CONFIG_CRYPTO_DEFLATE=y +CONFIG_CRYPTO_DRBG=y +CONFIG_CRYPTO_DRBG_HMAC=y +CONFIG_CRYPTO_DRBG_MENU=y +CONFIG_CRYPTO_ECHAINIV=m +CONFIG_CRYPTO_GCM=y +CONFIG_CRYPTO_GF128MUL=y +CONFIG_CRYPTO_GHASH=y CONFIG_CRYPTO_HASH=y CONFIG_CRYPTO_HASH2=y +CONFIG_CRYPTO_HMAC=y +CONFIG_CRYPTO_JITTERENTROPY=y CONFIG_CRYPTO_LZO=y +CONFIG_CRYPTO_MANAGER=y +CONFIG_CRYPTO_MANAGER2=y +CONFIG_CRYPTO_NULL=y +CONFIG_CRYPTO_NULL2=y +CONFIG_CRYPTO_RNG=y CONFIG_CRYPTO_RNG2=y +CONFIG_CRYPTO_RNG_DEFAULT=y +CONFIG_CRYPTO_SEQIV=y +CONFIG_CRYPTO_SHA256=y +CONFIG_CRYPTO_USER_API=m +CONFIG_CRYPTO_USER_API_HASH=m +CONFIG_CRYPTO_USER_API_SKCIPHER=m CONFIG_CRYPTO_WORKQUEUE=y -CONFIG_DEBUG_BUGVERBOSE=y +CONFIG_DCACHE_WORD_ACCESS=y CONFIG_DEBUG_LL_INCLUDE="mach/debug-macro.S"
[LEDE-DEV] [PATCH 10/12] at91: reorganize at91 subtargets
reorganizing at91 subtargets based on sama5 soc features and this fix below problems. 1. able to set neon flags to sama5d2 & sama5d4 subtargets. 2. fix the make clean which removes all the subtargets in bin folder. 3. able to configure kernel specific to subtarget. 4. able to set vfpu4 flags to samad3 subtargets. Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikar...@microchip.com> --- package/boot/at91bootstrap/Makefile| 12 +- package/boot/uboot-at91/Makefile | 18 +- target/linux/at91/Makefile |2 +- target/linux/at91/image/Makefile | 51 +- target/linux/at91/image/sama5.mk | 101 -- target/linux/at91/image/sama5d2.mk | 23 + target/linux/at91/image/sama5d3.mk | 33 + target/linux/at91/image/sama5d4.mk | 20 + target/linux/at91/sama5/target.mk |9 - .../linux/at91/{sama5 => sama5d2}/config-default |0 target/linux/at91/sama5d2/target.mk| 10 + target/linux/at91/sama5d3/config-default | 1311 target/linux/at91/sama5d3/target.mk| 10 + target/linux/at91/sama5d4/config-default | 1311 target/linux/at91/sama5d4/target.mk| 10 + 15 files changed, 2798 insertions(+), 123 deletions(-) delete mode 100644 target/linux/at91/image/sama5.mk create mode 100644 target/linux/at91/image/sama5d2.mk create mode 100644 target/linux/at91/image/sama5d3.mk create mode 100644 target/linux/at91/image/sama5d4.mk delete mode 100644 target/linux/at91/sama5/target.mk rename target/linux/at91/{sama5 => sama5d2}/config-default (100%) create mode 100644 target/linux/at91/sama5d2/target.mk create mode 100644 target/linux/at91/sama5d3/config-default create mode 100644 target/linux/at91/sama5d3/target.mk create mode 100644 target/linux/at91/sama5d4/config-default create mode 100644 target/linux/at91/sama5d4/target.mk diff --git a/package/boot/at91bootstrap/Makefile b/package/boot/at91bootstrap/Makefile index fbe44c4..b350555 100644 --- a/package/boot/at91bootstrap/Makefile +++ b/package/boot/at91bootstrap/Makefile @@ -24,63 +24,73 @@ include $(INCLUDE_DIR)/package.mk define AT91Bootstrap/Default BUILD_TARGET:=at91 - BUILD_SUBTARGET:=sama5 HIDDEN:=1 AT91BOOTSTRAP_IMAGE:=at91bootstrap.bin endef define AT91Bootstrap/sama5d2_xplaineddf_uboot TITLE:=AT91Bootstrap for SAMA5D2 Xplained board (SPI Flash) + BUILD_SUBTARGET:=sama5d2 BUILD_DEVICES:=at91-sama5d2_xplained endef define AT91Bootstrap/sama5d2_xplaineddf_qspi_uboot TITLE:=AT91Bootstrap for SAMA5D2 Xplained board (QSPI Flash) + BUILD_SUBTARGET:=sama5d2 BUILD_DEVICES:=at91-sama5d2_xplained endef define AT91Bootstrap/sama5d2_xplainedsd_uboot TITLE:=AT91Bootstrap for SAMA5D2 Xplained board (SDcard/EMMC) + BUILD_SUBTARGET:=sama5d2 BUILD_DEVICES:=at91-sama5d2_xplained endef define AT91Bootstrap/sama5d3_xplainednf_uboot TITLE:=AT91Bootstrap for SAMA5D3 Xplained board (Nand Flash) + BUILD_SUBTARGET:=sama5d3 BUILD_DEVICES:=at91-sama5d3_xplained endef define AT91Bootstrap/sama5d3_xplainedsd_uboot TITLE:=AT91Bootstrap for SAMA5D3 Xplained board (SDcard) + BUILD_SUBTARGET:=sama5d3 BUILD_DEVICES:=at91-sama5d3_xplained endef define AT91Bootstrap/sama5d4_xplainednf_uboot_secure TITLE:=AT91Bootstrap for SAMA5D4 Xplained board (Nand Flash) + BUILD_SUBTARGET:=sama5d4 BUILD_DEVICES:=at91-sama5d4_xplained endef define AT91Bootstrap/sama5d4_xplaineddf_uboot_secure TITLE:=AT91Bootstrap for SAMA5D4 Xplained board (SPI Flash) + BUILD_SUBTARGET:=sama5d4 BUILD_DEVICES:=at91-sama5d4_xplained endef define AT91Bootstrap/sama5d4_xplainedsd_uboot_secure TITLE:=AT91Bootstrap for SAMA5D4 Xplained board (SDcard) + BUILD_SUBTARGET:=sama5d4 BUILD_DEVICES:=at91-sama5d4_xplained endef define AT91Bootstrap/sama5d27_som1_eksd_uboot TITLE:=AT91Bootstrap for SAMA5D27 SOM1 Ek (SDcard0) + BUILD_SUBTARGET:=sama5d2 BUILD_DEVICES:=at91-sama5d27_som1_ek endef define AT91Bootstrap/sama5d27_som1_eksd1_uboot TITLE:=AT91Bootstrap for SAMA5D27 SOM1 Ek (SDcard1) + BUILD_SUBTARGET:=sama5d2 BUILD_DEVICES:=at91-sama5d27_som1_ek endef define AT91Bootstrap/sama5d27_som1_ekqspi_uboot TITLE:=AT91Bootstrap for SAMA5D27 SOM1 Ek (QSPI Flash) + BUILD_SUBTARGET:=sama5d2 BUILD_DEVICES:=at91-sama5d27_som1_ek endef diff --git a/package/boot/uboot-at91/Makefile b/package/boot/uboot-at91/Makefile index 73a2d62..b336321 100644 --- a/package/boot/uboot-at91/Makefile +++ b/package/boot/uboot-at91/Makefile @@ -40,55 +40,55 @@ endef define U-Boot/sama5d3_xplained_nandflash NAME:=SAMA5D3 Xplained board (NandFlash) - BUILD_SUBTARGET:=sama5 + BUILD_SUBTARGET:=sama5d3 BUILD_DEVICES:=at91-sama5d3_xplained endef define U-Boot/sama5d3_xplained_mmc NAME:=SAMA5D
[LEDE-DEV] [PATCH 05/12] at91: fix build error for wb50n.
when external kernel is selected from menuconfig, device wb50n is not avaliable and build fails. As a fix adding checks for external kernel. Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikar...@microchip.com> --- target/linux/at91/image/sama5.mk | 24 ++-- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/target/linux/at91/image/sama5.mk b/target/linux/at91/image/sama5.mk index dfc1601..b875888 100644 --- a/target/linux/at91/image/sama5.mk +++ b/target/linux/at91/image/sama5.mk @@ -73,16 +73,20 @@ define Device/at91-sama5d4_xplained endef TARGET_DEVICES += at91-sama5d4_xplained -define Device/wb50n - $(Device/evaluation-fit) - DEVICE_TITLE := Laird WB50N - DEVICE_PACKAGES := \ +ifeq ($(strip $(CONFIG_EXTERNAL_KERNEL_TREE)),"") + ifeq ($(strip $(CONFIG_KERNEL_GIT_CLONE_URI)),"") + define Device/wb50n +$(Device/evaluation-fit) +DEVICE_TITLE := Laird WB50N +DEVICE_PACKAGES := \ kmod-mmc-at91 kmod-ath6kl-sdio ath6k-firmware \ kmod-usb-storage kmod-fs-vfat kmod-fs-msdos \ kmod-leds-gpio - BLOCKSIZE := 128k - PAGESIZE := 2048 - SUBPAGESIZE := 2048 - MKUBIFS_OPTS := -m $$(PAGESIZE) -e 124KiB -c 955 -endef -TARGET_DEVICES += wb50n +BLOCKSIZE := 128k +PAGESIZE := 2048 +SUBPAGESIZE := 2048 +MKUBIFS_OPTS := -m $$(PAGESIZE) -e 124KiB -c 955 + endef + TARGET_DEVICES += wb50n + endif +endif -- 2.7.4 ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
[LEDE-DEV] [PATCH 06/12] at91: Add SAMA5D27 SOM1 EK board
Add support for SAMA5D27 SOM1 with target device as at91-sama5d27_som1_ek in SAMA5 subtarget and build images for SAMA5D27 SOM1 Ek board. Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikar...@microchip.com> --- package/boot/at91bootstrap/Makefile| 19 +- package/boot/uboot-at91/Makefile | 16 +- target/linux/at91/base-files/lib/at91.sh | 3 + target/linux/at91/image/sama5.mk | 18 +- ...4-ARM-at91-build-dtb-for-sama5d27-SOM1-Ek.patch | 908 + 5 files changed, 957 insertions(+), 7 deletions(-) create mode 100644 target/linux/at91/patches-4.9/104-ARM-at91-build-dtb-for-sama5d27-SOM1-Ek.patch diff --git a/package/boot/at91bootstrap/Makefile b/package/boot/at91bootstrap/Makefile index 8a1ec5e..fbe44c4 100644 --- a/package/boot/at91bootstrap/Makefile +++ b/package/boot/at91bootstrap/Makefile @@ -69,6 +69,21 @@ define AT91Bootstrap/sama5d4_xplainedsd_uboot_secure BUILD_DEVICES:=at91-sama5d4_xplained endef +define AT91Bootstrap/sama5d27_som1_eksd_uboot + TITLE:=AT91Bootstrap for SAMA5D27 SOM1 Ek (SDcard0) + BUILD_DEVICES:=at91-sama5d27_som1_ek +endef + +define AT91Bootstrap/sama5d27_som1_eksd1_uboot + TITLE:=AT91Bootstrap for SAMA5D27 SOM1 Ek (SDcard1) + BUILD_DEVICES:=at91-sama5d27_som1_ek +endef + +define AT91Bootstrap/sama5d27_som1_ekqspi_uboot + TITLE:=AT91Bootstrap for SAMA5D27 SOM1 Ek (QSPI Flash) + BUILD_DEVICES:=at91-sama5d27_som1_ek +endef + AT91BOOTSTRAP_TARGETS := \ sama5d2_xplaineddf_uboot \ sama5d2_xplaineddf_qspi_uboot \ @@ -77,7 +92,9 @@ AT91BOOTSTRAP_TARGETS := \ sama5d3_xplainedsd_uboot \ sama5d4_xplainednf_uboot_secure \ sama5d4_xplaineddf_uboot_secure \ -sama5d4_xplainedsd_uboot_secure +sama5d4_xplainedsd_uboot_secure \ + sama5d27_som1_eksd_uboot \ + sama5d27_som1_ekqspi_uboot define Build/Compile +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \ diff --git a/package/boot/uboot-at91/Makefile b/package/boot/uboot-at91/Makefile index 27b113e..994201e 100644 --- a/package/boot/uboot-at91/Makefile +++ b/package/boot/uboot-at91/Makefile @@ -79,6 +79,18 @@ define U-Boot/sama5d4_xplained_nandflash BUILD_DEVICES:=at91-sama5d4_xplained endef +define U-Boot/sama5d27_som1_ek_mmc + NAME:=SAMA5D27 SOM1 Ek (SDCard) + BUILD_SUBTARGET:=sama5 + BUILD_DEVICES:=at91-sama5d27_som1_ek +endef + +define U-Boot/sama5d27_som1_ek_spiflash + NAME:=SAMA5D27 SOM1 Ek (QSPI Flash) + BUILD_SUBTARGET:=sama5 + BUILD_DEVICES:=at91-sama5d27_som1_ek +endef + UBOOT_TARGETS := \ at91sam9m10g45ek_nandflash \ at91sam9x5ek_nandflash \ @@ -88,7 +100,9 @@ UBOOT_TARGETS := \ sama5d2_xplained_spiflash \ sama5d4_xplained_mmc \ sama5d4_xplained_spiflash \ - sama5d4_xplained_nandflash + sama5d4_xplained_nandflash\ +sama5d27_som1_ek_mmc \ +sama5d27_som1_ek_spiflash define Build/Compile +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \ diff --git a/target/linux/at91/base-files/lib/at91.sh b/target/linux/at91/base-files/lib/at91.sh index 61921ed..5d31b67 100755 --- a/target/linux/at91/base-files/lib/at91.sh +++ b/target/linux/at91/base-files/lib/at91.sh @@ -43,6 +43,9 @@ at91_board_detect() { *"SAMA5D3 Xplained") name="sama5d3_xplained" ;; + *"Atmel SAMA5D27 SOM1 EK") + name="sama5d27_som1_ek" + ;; *"SAMA5D2 Xplained") name="sama5d2_xplained" ;; diff --git a/target/linux/at91/image/sama5.mk b/target/linux/at91/image/sama5.mk index b875888..5960f40 100644 --- a/target/linux/at91/image/sama5.mk +++ b/target/linux/at91/image/sama5.mk @@ -11,15 +11,15 @@ define Build/at91-sdcard $(foreach dts,$(DEVICE_DTS), \ mcopy -i $@.boot $(DTS_DIR)/$(dts).dtb \ -::$(dts).dtb;) +::$(dts).dtb) mcopy -i $@.boot \ $(BIN_DIR)/u-boot-$(DEVICE_NAME:at91-%=%)_mmc/u-boot.bin \ ::u-boot.bin - $(CP) $(BIN_DIR)/at91bootstrap-$(DEVICE_NAME:at91-%=%)sd*/at91bootstrap.bin \ -$@.BOOT.bin; \ -mcopy -i $@.boot $@.BOOT.bin ::BOOT.bin + mcopy -i $@.boot \ +$(BIN_DIR)/at91bootstrap-$(DEVICE_NAME:at91-%=%)sd*/at91bootstrap.bin \ +::BOOT.bin ./gen_at91_sdcard_img.sh \ $@.img \ @@ -30,7 +30,7 @@ define Build/at91-sdcard gzip -nc9 $@.img > $@ - rm -f $@.img $@.boot $@.BOOT.bin + rm -f $@.img $@.boot endef define Device/evaluation-sdimage @@ -73,6 +73,14 @@ define Device/at91-sama5d4_xplained endef TARGET_DEVICES += at91-sama5d4_xplained +define Device/at91-sama5d27_som1_ek + $(Device/evaluation-dtb) + DEVICE_TITLE := Microchip(Atmel AT91) SAMA5D27 SOM1 Ek + KERNEL_SIZE := 6144k + $(Device/evaluation-sdimage) +endef +TARGET_DEVICES += at91-sama5d27_som1_ek + ifeq ($(strip $(CONFIG_EXTERNAL_KERNEL_TREE)),"") ifeq ($(strip $(CONFIG_KERNEL_GIT_CLONE_URI)),&quo
[LEDE-DEV] [PATCH 11/12] at91: Add SAMA5D2 PTC EK board
Add target device as at91-sama5d2_ptc_ek in SAMA5D2 subtarget and build images for SAMA5D2 PTC Ek board. Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikar...@microchip.com> --- package/boot/at91bootstrap/Makefile| 16 +- package/boot/uboot-at91/Makefile | 18 +- target/linux/at91/base-files/lib/at91.sh | 3 + target/linux/at91/image/sama5d2.mk | 8 + ...105-ARM-at91-build-dtb-for-sama5d2-ptc-Ek.patch | 443 + 5 files changed, 485 insertions(+), 3 deletions(-) create mode 100644 target/linux/at91/patches-4.9/105-ARM-at91-build-dtb-for-sama5d2-ptc-Ek.patch diff --git a/package/boot/at91bootstrap/Makefile b/package/boot/at91bootstrap/Makefile index b350555..eabfa17 100644 --- a/package/boot/at91bootstrap/Makefile +++ b/package/boot/at91bootstrap/Makefile @@ -94,6 +94,18 @@ define AT91Bootstrap/sama5d27_som1_ekqspi_uboot BUILD_DEVICES:=at91-sama5d27_som1_ek endef +define AT91Bootstrap/sama5d2_ptc_eknf_uboot + TITLE:=AT91Bootstrap for SAMA5D2 PTC EK (Nand Flash) + BUILD_SUBTARGET:=sama5d2 + BUILD_DEVICES:=at91-sama5d2_ptc_ek +endef + +define AT91Bootstrap/sama5d2_ptc_eksd_uboot + TITLE:=AT91Bootstrap for SAMA5D2 PTC EK (SDCard) + BUILD_SUBTARGET:=sama5d2 + BUILD_DEVICES:=at91-sama5d2_ptc_ek +endef + AT91BOOTSTRAP_TARGETS := \ sama5d2_xplaineddf_uboot \ sama5d2_xplaineddf_qspi_uboot \ @@ -104,7 +116,9 @@ AT91BOOTSTRAP_TARGETS := \ sama5d4_xplaineddf_uboot_secure \ sama5d4_xplainedsd_uboot_secure \ sama5d27_som1_eksd_uboot \ - sama5d27_som1_ekqspi_uboot + sama5d27_som1_ekqspi_uboot \ + sama5d2_ptc_eknf_uboot \ +sama5d2_ptc_eksd_uboot define Build/Compile +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \ diff --git a/package/boot/uboot-at91/Makefile b/package/boot/uboot-at91/Makefile index b336321..87ef4ba 100644 --- a/package/boot/uboot-at91/Makefile +++ b/package/boot/uboot-at91/Makefile @@ -21,7 +21,7 @@ include $(INCLUDE_DIR)/kernel.mk define U-Boot/Default BUILD_TARGET:=at91 HIDDEN:=1 - UBOOT_IMAGE:=u-boot.bin boot.bin + UBOOT_IMAGE:=u-boot.bin endef define U-Boot/at91sam9m10g45ek_nandflash @@ -92,6 +92,18 @@ define U-Boot/sama5d27_som1_ek_spiflash BUILD_DEVICES:=at91-sama5d27_som1_ek endef +define U-Boot/sama5d2_ptc_ek_nandflash + NAME:=SAMA5D2 PTC Ek (Nand Flash) + BUILD_SUBTARGET:=sama5d2 + BUILD_DEVICES:=at91-sama5d2_ptc_ek +endef + +define U-Boot/sama5d2_ptc_ek_mmc + NAME:=SAMA5D2 PTC Ek (SDCard) + BUILD_SUBTARGET:=sama5d2 + BUILD_DEVICES:=at91-sama5d2_ptc_ek +endef + UBOOT_TARGETS := \ at91sam9m10g45ek_nandflash \ at91sam9x5ek_nandflash \ @@ -103,7 +115,9 @@ UBOOT_TARGETS := \ sama5d4_xplained_spiflash \ sama5d4_xplained_nandflash\ sama5d27_som1_ek_mmc \ -sama5d27_som1_ek_spiflash +sama5d27_som1_ek_spiflash \ + sama5d2_ptc_ek_nandflash \ + sama5d2_ptc_ek_mmc define Build/Compile +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \ diff --git a/target/linux/at91/base-files/lib/at91.sh b/target/linux/at91/base-files/lib/at91.sh index 5d31b67..ea38925 100755 --- a/target/linux/at91/base-files/lib/at91.sh +++ b/target/linux/at91/base-files/lib/at91.sh @@ -46,6 +46,9 @@ at91_board_detect() { *"Atmel SAMA5D27 SOM1 EK") name="sama5d27_som1_ek" ;; + *"Atmel SAMA5D2 PTC EK") + name="sama5d2_ptc_ek" + ;; *"SAMA5D2 Xplained") name="sama5d2_xplained" ;; diff --git a/target/linux/at91/image/sama5d2.mk b/target/linux/at91/image/sama5d2.mk index 28a6f93..b841448 100644 --- a/target/linux/at91/image/sama5d2.mk +++ b/target/linux/at91/image/sama5d2.mk @@ -21,3 +21,11 @@ define Device/at91-sama5d27_som1_ek $(Device/evaluation-sdimage) endef TARGET_DEVICES += at91-sama5d27_som1_ek + +define Device/at91-sama5d2_ptc_ek + $(Device/evaluation-dtb) + DEVICE_TITLE := Microchip(Atmel AT91) SAMA5D2 PTC Ek + KERNEL_SIZE := 6144k + $(Device/evaluation-sdimage) +endef +TARGET_DEVICES += at91-sama5d2_ptc_ek diff --git a/target/linux/at91/patches-4.9/105-ARM-at91-build-dtb-for-sama5d2-ptc-Ek.patch b/target/linux/at91/patches-4.9/105-ARM-at91-build-dtb-for-sama5d2-ptc-Ek.patch new file mode 100644 index 000..7934e9a --- /dev/null +++ b/target/linux/at91/patches-4.9/105-ARM-at91-build-dtb-for-sama5d2-ptc-Ek.patch @@ -0,0 +1,443 @@ +diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile +index c88e426..cb47e80 100644 +--- a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile +@@ -49,6 +49,7 @@ dtb-$(CONFIG_SOC_AT91SAM9) += \ + wb45n.dtb + dtb-$(CONFIG_SOC_SAM_V7) += \ + at91-kizbox2.dtb \ ++ at91-sama5d2_ptc_ek.dtb \ + at91-sama5d27_som1_ek.dtb \ + at91-sama5d2_xplained.dtb \ + at91-sama5d3_xplained.dtb \ +diff --git a/a
[LEDE-DEV] [PATCH 03/12] uboot-at91: fetch uboot src from u-boot-at91 github
fetching uboot src from linux4sam/u-boot-at91 github for all at91 target. Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikar...@microchip.com> --- package/boot/uboot-at91/Makefile | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/package/boot/uboot-at91/Makefile b/package/boot/uboot-at91/Makefile index cad12ec..27b113e 100644 --- a/package/boot/uboot-at91/Makefile +++ b/package/boot/uboot-at91/Makefile @@ -7,10 +7,12 @@ include $(TOPDIR)/rules.mk -PKG_VERSION:=2016.05 +PKG_VERSION:=linux4sam_5.8 PKG_RELEASE:=1 -PKG_HASH:=87d02275615aaf0cd007b54cbe9fbadceef2bee7c79e6c323ea1ae8956dcb171 +PKG_SOURCE_PROTO:=git +PKG_SOURCE_URL:=https://github.com/linux4sam/u-boot-at91.git +PKG_SOURCE_VERSION:=59f202622154f82e708a6ca2bf86350a5c1b2d33 include $(INCLUDE_DIR)/u-boot.mk include $(INCLUDE_DIR)/package.mk @@ -30,7 +32,9 @@ endef define U-Boot/at91sam9x5ek_nandflash NAME:=AT91SAM9X5-EK board (NandFlash) BUILD_SUBTARGET:=legacy - BUILD_DEVICES:=at91sam9g15ek at91sam9g25ek at91sam9g35ek at91sam9x25ek at91sam9x35ek + BUILD_DEVICES:=at91sam9g15ek at91sam9g25ek \ + at91sam9g35ek at91sam9x25ek \ +at91sam9x35ek endef define U-Boot/sama5d3_xplained_nandflash @@ -87,9 +91,10 @@ UBOOT_TARGETS := \ sama5d4_xplained_nandflash define Build/Compile - +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \ - CROSS_COMPILE=$(TARGET_CROSS) \ - KCFLAGS="$(filter-out -fstack-protector -mfloat-abi=hard, $(TARGET_CFLAGS)) -mfloat-abi=soft" + +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \ + CROSS_COMPILE=$(TARGET_CROSS) \ + KCFLAGS="$(filter-out -fstack-protector \ + -mfloat-abi=hard, $(TARGET_CFLAGS)) -mfloat-abi=soft" endef $(eval $(call BuildPackage/U-Boot)) -- 2.7.4 ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
[LEDE-DEV] [PATCH 08/12] at91: sama5: remove neon and VFPv4 support
sama5d2 & samad4 have neon feature and sama5d3 does not have neon feature due to which sama5d3 boot fails with error message Kernel panic - not syncing: Attempted to kill init! exitcode=0x0004. removing neon & VFPv4 support to fix this Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikar...@microchip.com> --- target/linux/at91/sama5/target.mk | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/target/linux/at91/sama5/target.mk b/target/linux/at91/sama5/target.mk index 8ff6c76..2e452dc 100644 --- a/target/linux/at91/sama5/target.mk +++ b/target/linux/at91/sama5/target.mk @@ -1,8 +1,6 @@ -BOARDNAME:=SAMA5 Xplained boards(Cortex-A5) +BOARDNAME:=SAMA5 boards(Cortex-A5) CPU_TYPE:=cortex-a5 -CPU_SUBTYPE:=neon-vfpv4 -FEATURES+=fpu DEFAULT_PACKAGES += kmod-usb2 define Target/Description -- 2.7.4 ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
[LEDE-DEV] [PATCH 09/12] uboot-at91: fix DTC command not found.
fixed DTC command not found error while compling uboot-at91. The fix is to set DTC PATH in uboot-at91 MAKE command. Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikar...@microchip.com> --- package/boot/uboot-at91/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package/boot/uboot-at91/Makefile b/package/boot/uboot-at91/Makefile index 994201e..73a2d62 100644 --- a/package/boot/uboot-at91/Makefile +++ b/package/boot/uboot-at91/Makefile @@ -16,6 +16,7 @@ PKG_SOURCE_VERSION:=59f202622154f82e708a6ca2bf86350a5c1b2d33 include $(INCLUDE_DIR)/u-boot.mk include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/kernel.mk define U-Boot/Default BUILD_TARGET:=at91 @@ -107,8 +108,9 @@ UBOOT_TARGETS := \ define Build/Compile +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \ CROSS_COMPILE=$(TARGET_CROSS) \ +DTC=$(LINUX_DIR)/scripts/dtc/dtc \ KCFLAGS="$(filter-out -fstack-protector \ - -mfloat-abi=hard, $(TARGET_CFLAGS)) -mfloat-abi=soft" + -mfloat-abi=hard, $(TARGET_CFLAGS)) -mfloat-abi=soft" endef $(eval $(call BuildPackage/U-Boot)) -- 2.7.4 ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
[LEDE-DEV] [PATCH 04/12] kernel: fix build error for external kernel.
fixed build error when external kernel is selected from menuconfig. The patches present in target/linux/generic does not gets applied to external kernel and build fails while compiling mac82011 & regmap-core kernel modules. as a fix added check in Makefile for CONFIG_EXTERNAL_KERNEL_TREE present or not. Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikar...@microchip.com> --- package/kernel/linux/modules/other.mk | 6 +- package/kernel/mac80211/Makefile | 15 ++- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/package/kernel/linux/modules/other.mk b/package/kernel/linux/modules/other.mk index 4aee820..11f28f4 100644 --- a/package/kernel/linux/modules/other.mk +++ b/package/kernel/linux/modules/other.mk @@ -707,11 +707,15 @@ define KernelPackage/regmap CONFIG_REGMAP_I2C \ CONFIG_SPI=y FILES:= \ - $(LINUX_DIR)/drivers/base/regmap/regmap-core.ko \ $(LINUX_DIR)/drivers/base/regmap/regmap-i2c.ko \ $(LINUX_DIR)/drivers/base/regmap/regmap-mmio.ko \ $(if $(CONFIG_SPI),$(LINUX_DIR)/drivers/base/regmap/regmap-spi.ko) AUTOLOAD:=$(call AutoLoad,21,regmap-core regmap-i2c regmap-mmio regmap-spi) + ifeq ($(strip $(CONFIG_EXTERNAL_KERNEL_TREE)),"") + ifeq ($(strip $(CONFIG_KERNEL_GIT_CLONE_URI)),"") +FILES += $(LINUX_DIR)/drivers/base/regmap/regmap-core.ko + endif + endif endef define KernelPackage/regmap/description diff --git a/package/kernel/mac80211/Makefile b/package/kernel/mac80211/Makefile index 22ed841..c178f82 100644 --- a/package/kernel/mac80211/Makefile +++ b/package/kernel/mac80211/Makefile @@ -1760,11 +1760,16 @@ ifneq ($(CONFIG_PACKAGE_kmod-cfg80211)$(CONFIG_PACKAGE_kmod-lib80211),) endef endif -define Build/Configure - cmp $(PKG_BUILD_DIR)/include/linux/ath9k_platform.h $(LINUX_DIR)/include/linux/ath9k_platform.h - cmp $(PKG_BUILD_DIR)/include/linux/ath5k_platform.h $(LINUX_DIR)/include/linux/ath5k_platform.h - cmp $(PKG_BUILD_DIR)/include/linux/rt2x00_platform.h $(LINUX_DIR)/include/linux/rt2x00_platform.h -endef +#do not Build/Configure for EXTERNAL KERNEL +ifeq ($(strip $(CONFIG_EXTERNAL_KERNEL_TREE)),"") + ifeq ($(strip $(CONFIG_KERNEL_GIT_CLONE_URI)),"") +define Build/Configure + cmp $(PKG_BUILD_DIR)/include/linux/ath9k_platform.h $(LINUX_DIR)/include/linux/ath9k_platform.h + cmp $(PKG_BUILD_DIR)/include/linux/ath5k_platform.h $(LINUX_DIR)/include/linux/ath5k_platform.h + cmp $(PKG_BUILD_DIR)/include/linux/rt2x00_platform.h $(LINUX_DIR)/include/linux/rt2x00_platform.h +endef + endif +endif define Build/Compile $(SH_FUNC) var2file "$(call shvar,mac80211_config)" $(PKG_BUILD_DIR)/.config -- 2.7.4 ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
[LEDE-DEV] [PATCH 01/12] at91bootstrap:update to v3.8.10
updating to new version v3.8.10 and copying at91bootstrap.bin to bin folder. Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikar...@microchip.com> --- package/boot/at91bootstrap/Makefile | 4 ++-- package/boot/at91bootstrap/at91bootstrap.mk | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package/boot/at91bootstrap/Makefile b/package/boot/at91bootstrap/Makefile index e704c35..8a1ec5e 100644 --- a/package/boot/at91bootstrap/Makefile +++ b/package/boot/at91bootstrap/Makefile @@ -9,12 +9,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=at91bootstrap -PKG_VERSION:=v3.8.8 +PKG_VERSION:=v3.8.10 PKG_RELEASE:= PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=https://github.com/linux4sam/at91bootstrap.git -PKG_SOURCE_VERSION:=3d33a4e0707c61007a5278f6620453502f7500db +PKG_SOURCE_VERSION:=04efa5500d60a0211d14b6ee60df7ce0a828704d PKG_BUILD_DIR = \ $(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION) diff --git a/package/boot/at91bootstrap/at91bootstrap.mk b/package/boot/at91bootstrap/at91bootstrap.mk index 92353ff..60cd8c4 100644 --- a/package/boot/at91bootstrap/at91bootstrap.mk +++ b/package/boot/at91bootstrap/at91bootstrap.mk @@ -5,7 +5,7 @@ PKG_FLAGS:=nonshared export GCC_HONOUR_COPTS=s define Package/at91bootstrap/install/default - $(CP) $(PKG_BUILD_DIR)/binaries/*uboot* $(1)/ + $(CP) -avL $(PKG_BUILD_DIR)/binaries/at91bootstrap.bin $(1)/ endef Package/at91bootstrap/install = $(Package/at91bootstrap/install/default) -- 2.7.4 ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
[LEDE-DEV] [PATCH 07/12] at91: sdcard image with ext4 rootfs
creating sdcard image with ext4 rootfs only and ignoring creating other filesystem in sdcard image. Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikar...@microchip.com> --- target/linux/at91/image/Makefile | 2 +- target/linux/at91/image/sama5.mk | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/target/linux/at91/image/Makefile b/target/linux/at91/image/Makefile index ccaeebe..93180dd 100644 --- a/target/linux/at91/image/Makefile +++ b/target/linux/at91/image/Makefile @@ -23,7 +23,7 @@ endif define Device/Default $(Device/default-nand) PROFILES := Default - FILESYSTEMS := squashfs ubifs + FILESYSTEMS := squashfs ubifs ext4 DEVICE_DTS := $(1) KERNEL_NAME := zImage KERNEL_SIZE := 4096k diff --git a/target/linux/at91/image/sama5.mk b/target/linux/at91/image/sama5.mk index 5960f40..fd7a534 100644 --- a/target/linux/at91/image/sama5.mk +++ b/target/linux/at91/image/sama5.mk @@ -4,6 +4,7 @@ FAT32_BLOCKS:=$(shell echo \ $$(($(AT91_SD_BOOT_PARTSIZE)*1024*1024/$(FAT32_BLOCK_SIZE define Build/at91-sdcard + $(if $(findstring ext4,$@), \ rm -f $@.boot mkfs.fat -C $@.boot $(FAT32_BLOCKS) @@ -30,7 +31,7 @@ define Build/at91-sdcard gzip -nc9 $@.img > $@ - rm -f $@.img $@.boot + rm -f $@.img $@.boot ) endef define Device/evaluation-sdimage -- 2.7.4 ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
[LEDE-DEV] [PATCH 02/12] at91: fix sdcard create image
copying at91bootstrap and uboot binaries to sdcard image is done based on device name instead of dts name and this avoids creating multiple u-boot and at91bootstrap binaries. Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikar...@microchip.com> --- target/linux/at91/image/sama5.mk | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/target/linux/at91/image/sama5.mk b/target/linux/at91/image/sama5.mk index e51a0bc..dfc1601 100644 --- a/target/linux/at91/image/sama5.mk +++ b/target/linux/at91/image/sama5.mk @@ -11,13 +11,15 @@ define Build/at91-sdcard $(foreach dts,$(DEVICE_DTS), \ mcopy -i $@.boot $(DTS_DIR)/$(dts).dtb \ -::$(dts).dtb; \ - mcopy -i $@.boot \ -$(BIN_DIR)/u-boot-$(dts:at91-%=%)_mmc/u-boot.bin \ -::u-boot.bin; \ - $(CP) $(BIN_DIR)/at91bootstrap-$(dts:at91-%=%)sd_uboot*/*.bin \ - $@.BOOT.bin; \ - mcopy -i $@.boot $@.BOOT.bin ::BOOT.bin;) +::$(dts).dtb;) + + mcopy -i $@.boot \ +$(BIN_DIR)/u-boot-$(DEVICE_NAME:at91-%=%)_mmc/u-boot.bin \ +::u-boot.bin + + $(CP) $(BIN_DIR)/at91bootstrap-$(DEVICE_NAME:at91-%=%)sd*/at91bootstrap.bin \ +$@.BOOT.bin; \ +mcopy -i $@.boot $@.BOOT.bin ::BOOT.bin ./gen_at91_sdcard_img.sh \ $@.img \ -- 2.7.4 ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
[LEDE-DEV] [PATCH 2/3] at91bootstrap: Add support for SAMA5D27 SOM1 EK board
1. Add support for SAMA5D27 SOM1 EK board 2. version update to v3.8.9 Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikar...@microchip.com> --- package/boot/at91bootstrap/Makefile | 20 +--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/package/boot/at91bootstrap/Makefile b/package/boot/at91bootstrap/Makefile index 5d5d2e5..6d27956 100644 --- a/package/boot/at91bootstrap/Makefile +++ b/package/boot/at91bootstrap/Makefile @@ -9,12 +9,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=at91bootstrap -PKG_VERSION:=v3.8. +PKG_VERSION:=v3.8.9 PKG_RELEASE:= PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=https://github.com/linux4sam/at91bootstrap.git -PKG_SOURCE_VERSION:=3d33a4e0707c61007a5278f6620453502f7500db +PKG_SOURCE_VERSION:=f05a4df68b231b86d4a27fe43ef215baca9aee14 PKG_BUILD_DIR = \ $(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION) @@ -76,6 +76,18 @@ define AT91Bootstrap/sama5d4_xplainedsd_uboot_secure BUILD_DEVICES:=at91-sama5d4_xplained endef +define AT91Bootstrap/sama5d27_som1_ekqspi_uboot + TITLE:=AT91Bootstrap for SAMA5D27 SOM1 EK (QSPI Flash) + BUILD_SUBTARGET:=sama5 + BUILD_DEVICES:= at91-sama5d27_som1_ek +endef + +define AT91Bootstrap/sama5d27_som1_eksd_uboot + TITLE:=AT91Bootstrap for SAMA5D27 SOM1 EK (SDcard) + BUILD_SUBTARGET:=sama5 + BUILD_DEVICES:= at91-sama5d27_som1_ek +endef + AT91BOOTSTRAP_TARGETS := \ sama5d2_xplaineddf_uboot \ sama5d2_xplaineddf_qspi_uboot \ @@ -84,7 +96,9 @@ AT91BOOTSTRAP_TARGETS := \ sama5d3_xplainedsd_uboot \ sama5d4_xplainednf_uboot_secure \ sama5d4_xplaineddf_uboot_secure \ -sama5d4_xplainedsd_uboot_secure +sama5d4_xplainedsd_uboot_secure \ +sama5d27_som1_ekqspi_uboot \ +sama5d27_som1_eksd_uboot define Build/Compile +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \ -- 2.7.4 ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
[LEDE-DEV] [PATCH 1/3] at91:Add SAMA5D27 SOM1 EK device
Add support for SAMA5D27 with target device as at91-sama5d27_som1_ek in SAMA5 subtarget and build images for SAMA5D27 SOM1 EK board. Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikar...@microchip.com> --- target/linux/at91/base-files/lib/at91.sh | 3 +++ target/linux/at91/image/sama5.mk | 8 2 files changed, 11 insertions(+) diff --git a/target/linux/at91/base-files/lib/at91.sh b/target/linux/at91/base-files/lib/at91.sh index 61921ed..50812de 100755 --- a/target/linux/at91/base-files/lib/at91.sh +++ b/target/linux/at91/base-files/lib/at91.sh @@ -46,6 +46,9 @@ at91_board_detect() { *"SAMA5D2 Xplained") name="sama5d2_xplained" ;; + *"SAMA5D27 SOM1 EK") + name="sama5d27_SOM1_EK" + ;; *"SAMA5D4 Xplained") name="sama5d4_xplained" ;; diff --git a/target/linux/at91/image/sama5.mk b/target/linux/at91/image/sama5.mk index d33a398..1ed9066 100644 --- a/target/linux/at91/image/sama5.mk +++ b/target/linux/at91/image/sama5.mk @@ -64,6 +64,14 @@ define Device/at91-sama5d2_xplained endef TARGET_DEVICES += at91-sama5d2_xplained +define Device/at91-sama5d27_som1_ek + $(Device/evaluation-dtb) + DEVICE_TITLE := Microchip(Atmel AT91) SAMA5D27 SOM1 EK + KERNEL_SIZE := 6144k + $(Device/evaluation-sdimage) +endef +TARGET_DEVICES += at91-sama5d27_som1_ek + define Device/at91-sama5d4_xplained $(Device/evaluation-dtb) DEVICE_TITLE := Microchip(Atmel AT91) SAMA5D4 Xplained -- 2.7.4 ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
[LEDE-DEV] [PATCH 0/3] Add AT91 SAMA5D27 SOM1 EK board
This patch series includes adding support of SAMA5D27 SOM1 Ek board Sandeep Sheriker Mallikarjun (3): at91:Add SAMA5D27 SOM1 EK device at91bootstrap: Add support for SAMA5D27 SOM1 EK board uboot-at91: Add support for SAMA5D27 SOM1 EK board package/boot/at91bootstrap/Makefile | 20 +--- package/boot/uboot-at91/Makefile | 13 ++--- target/linux/at91/base-files/lib/at91.sh | 3 +++ target/linux/at91/image/sama5.mk | 8 4 files changed, 38 insertions(+), 6 deletions(-) -- 2.7.4 ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
[LEDE-DEV] [PATCH 3/3] uboot-at91: Add support for SAMA5D27 SOM1 EK board
Add support for SAMA5D27 SOM1 EK board. Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikar...@microchip.com> --- package/boot/uboot-at91/Makefile | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/package/boot/uboot-at91/Makefile b/package/boot/uboot-at91/Makefile index ae2e888..c1d5cac 100644 --- a/package/boot/uboot-at91/Makefile +++ b/package/boot/uboot-at91/Makefile @@ -7,10 +7,10 @@ include $(TOPDIR)/rules.mk -PKG_VERSION:=2016.05 +PKG_VERSION:=2017.11 PKG_RELEASE:=1 -PKG_HASH:=87d02275615aaf0cd007b54cbe9fbadceef2bee7c79e6c323ea1ae8956dcb171 +PKG_HASH:=6a018fd3caf58f3dcfa23ee989a82bd35df03af71872b9dca8c6d758a0d26c05 include $(INCLUDE_DIR)/u-boot.mk include $(INCLUDE_DIR)/package.mk @@ -74,6 +74,12 @@ define U-Boot/sama5d4_xplained_nandflash BUILD_DEVICES:=at91-sama5d4_xplained endef +define U-Boot/sama5d27_som1_ek_mmc + NAME:=SAMA5D27 SOM1 EK (SDcard) + BUILD_SUBTARGET:=sama5 + BUILD_DEVICES:=at91-sama5d27_som1_ek +endef + UBOOT_TARGETS := \ at91sam9m10g45ek_nandflash \ at91sam9x5ek_nandflash \ @@ -83,7 +89,8 @@ UBOOT_TARGETS := \ sama5d2_xplained_spiflash \ sama5d4_xplained_mmc \ sama5d4_xplained_spiflash \ - sama5d4_xplained_nandflash + sama5d4_xplained_nandflash \ + sama5d27_som1_ek_mmc UBOOT_MAKE_FLAGS:= -- 2.7.4 ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
[LEDE-DEV] [PATCH 1/1] at91: update kernel 4.9.73 to 4.14.11
update at91 kernel 4.9.73 to 4.14.11 Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikar...@microchip.com> --- target/linux/at91/Makefile | 2 +- target/linux/at91/{config-4.9 => config-4.14} | 6 ++ .../100-ARM-at91-build-dtb-for-LMU5000.patch | 0 .../101-ARM-at91-build-dtb-for-q5xr5.patch | 0 .../102-ARM-at91-build-dtb-for-wb45n.patch | 0 .../103-ARM-at91-build-dtb-for-wb50n.patch | 0 target/linux/at91/sama5/config-default | 7 +++ 7 files changed, 14 insertions(+), 1 deletion(-) rename target/linux/at91/{config-4.9 => config-4.14} (97%) rename target/linux/at91/{patches-4.9 => patches-4.14}/100-ARM-at91-build-dtb-for-LMU5000.patch (100%) rename target/linux/at91/{patches-4.9 => patches-4.14}/101-ARM-at91-build-dtb-for-q5xr5.patch (100%) rename target/linux/at91/{patches-4.9 => patches-4.14}/102-ARM-at91-build-dtb-for-wb45n.patch (100%) rename target/linux/at91/{patches-4.9 => patches-4.14}/103-ARM-at91-build-dtb-for-wb50n.patch (100%) diff --git a/target/linux/at91/Makefile b/target/linux/at91/Makefile index cae3c62..4dc70eb 100644 --- a/target/linux/at91/Makefile +++ b/target/linux/at91/Makefile @@ -13,7 +13,7 @@ BOARDNAME:=Microchip (Atmel AT91) FEATURES:=ext4 squashfs targz usb usbgadget ubifs SUBTARGETS:=sama5 legacy -KERNEL_PATCHVER:=4.9 +KERNEL_PATCHVER:=4.14 include $(INCLUDE_DIR)/target.mk diff --git a/target/linux/at91/config-4.9 b/target/linux/at91/config-4.14 similarity index 97% rename from target/linux/at91/config-4.9 rename to target/linux/at91/config-4.14 index c0151a5..4fdaccd 100644 --- a/target/linux/at91/config-4.9 +++ b/target/linux/at91/config-4.14 @@ -271,3 +271,9 @@ CONFIG_ZBOOT_ROM_BSS=0 CONFIG_ZBOOT_ROM_TEXT=0 CONFIG_ZLIB_DEFLATE=y CONFIG_ZLIB_INFLATE=y +CONFIG_DEBUG_USER=y +CONFIG_DEBUG_ALIGN_RODATA=y +CONFIG_AT91_SOC_ID=y +# CONFIG_TEE is not set +CONFIG_PRINTK_SAFE_LOG_BUF_SHIFT=13 +CONFIG_MACB_USE_HWSTAMP=y diff --git a/target/linux/at91/patches-4.9/100-ARM-at91-build-dtb-for-LMU5000.patch b/target/linux/at91/patches-4.14/100-ARM-at91-build-dtb-for-LMU5000.patch similarity index 100% rename from target/linux/at91/patches-4.9/100-ARM-at91-build-dtb-for-LMU5000.patch rename to target/linux/at91/patches-4.14/100-ARM-at91-build-dtb-for-LMU5000.patch diff --git a/target/linux/at91/patches-4.9/101-ARM-at91-build-dtb-for-q5xr5.patch b/target/linux/at91/patches-4.14/101-ARM-at91-build-dtb-for-q5xr5.patch similarity index 100% rename from target/linux/at91/patches-4.9/101-ARM-at91-build-dtb-for-q5xr5.patch rename to target/linux/at91/patches-4.14/101-ARM-at91-build-dtb-for-q5xr5.patch diff --git a/target/linux/at91/patches-4.9/102-ARM-at91-build-dtb-for-wb45n.patch b/target/linux/at91/patches-4.14/102-ARM-at91-build-dtb-for-wb45n.patch similarity index 100% rename from target/linux/at91/patches-4.9/102-ARM-at91-build-dtb-for-wb45n.patch rename to target/linux/at91/patches-4.14/102-ARM-at91-build-dtb-for-wb45n.patch diff --git a/target/linux/at91/patches-4.9/103-ARM-at91-build-dtb-for-wb50n.patch b/target/linux/at91/patches-4.14/103-ARM-at91-build-dtb-for-wb50n.patch similarity index 100% rename from target/linux/at91/patches-4.9/103-ARM-at91-build-dtb-for-wb50n.patch rename to target/linux/at91/patches-4.14/103-ARM-at91-build-dtb-for-wb50n.patch diff --git a/target/linux/at91/sama5/config-default b/target/linux/at91/sama5/config-default index 736f76b..b720363 100644 --- a/target/linux/at91/sama5/config-default +++ b/target/linux/at91/sama5/config-default @@ -8,7 +8,10 @@ CONFIG_ARM_L1_CACHE_SHIFT_6=y CONFIG_ARM_PATCH_IDIV=y # CONFIG_ARM_THUMBEE is not set CONFIG_ARM_VIRT_EXT=y +# CONFIG_CPU_ICACHE_DISABLE is not set CONFIG_ATMEL_AIC5_IRQ=y +CONFIG_ARM_THUMB=y +# CONFIG_ARM_THUMBEE is not set CONFIG_CACHE_L2X0=y CONFIG_CPU_32v6K=y CONFIG_CPU_32v7=y @@ -83,6 +86,10 @@ CONFIG_DRM_GEM_CMA_HELPER=y CONFIG_DRM_KMS_CMA_HELPER=y ONFIG_DST_CACHE=y CONFIG_DCACHE_WORD_ACCESS=y + +CONFIG_ZBOOT_ROM_TEXT=0x0 +CONFIG_ZBOOT_ROM_BSS=0x0 + # # At least one emulation must be selected # -- 2.7.4 ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
[LEDE-DEV] [PATCH 1/1] at91: kernel configuration
1. enabled DMA controller options 2. Enabled CMA options 3. enabled VFP options 4. Add Atmel SD/MMC Driver Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikar...@microchip.com> --- target/linux/at91/sama5/config-default | 43 ++ 1 file changed, 43 insertions(+) diff --git a/target/linux/at91/sama5/config-default b/target/linux/at91/sama5/config-default index 00d4cf9..736f76b 100644 --- a/target/linux/at91/sama5/config-default +++ b/target/linux/at91/sama5/config-default @@ -34,6 +34,7 @@ CONFIG_MMC_SDHCI=y CONFIG_MMC_SDHCI_IO_ACCESSORS=y CONFIG_MMC_SDHCI_OF_AT91=y CONFIG_MMC_SDHCI_PLTFM=y +CONFIG_MMC_ATMELMCI=y CONFIG_OUTER_CACHE=y CONFIG_OUTER_CACHE_SYNC=y CONFIG_PINCTRL_AT91PIO4=y @@ -48,5 +49,47 @@ CONFIG_SOC_SAMA5D3=y CONFIG_SOC_SAMA5D4=y CONFIG_SOC_SAM_V7=y CONFIG_SPLIT_PTLOCK_CPUS=4 +CONFIG_DMA_SHARED_BUFFER=y +CONFIG_DMA_CMA=y +CONFIG_SCSI_DMA=y +CONFIG_VIDEOBUF2_DMA_CONTIG=y +CONFIG_SND_DMAENGINE_PCM=y +CONFIG_SND_SOC_GENERIC_DMAENGINE_PCM=y +CONFIG_SND_ATMEL_SOC_DMA=y +CONFIG_SND_ATMEL_SOC_SSC_DMA=y +CONFIG_DMA_ENGINE=y +CONFIG_DMA_OF=y +CONFIG_AT_HDMAC=y +CONFIG_AT_XDMAC=y +CONFIG_HAS_DMA=y +CONFIG_CMA=y +# CONFIG_CMA_DEBUG is not set +CONFIG_CMA_DEBUGFS=y +CONFIG_CMA_AREAS=7 +CONFIG_DMA_CMA=y +# +# Default contiguous memory area size: +# +CONFIG_CMA_SIZE_MBYTES=16 +CONFIG_CMA_SIZE_SEL_MBYTES=y +# CONFIG_CMA_SIZE_SEL_PERCENTAGE is not set +# CONFIG_CMA_SIZE_SEL_MIN is not set +# CONFIG_CMA_SIZE_SEL_MAX is not set +CONFIG_CMA_ALIGNMENT=8 + +CONFIG_BCMA_POSSIBLE=y +# CONFIG_BCMA is not set +CONFIG_DRM_GEM_CMA_HELPER=y +CONFIG_DRM_KMS_CMA_HELPER=y +ONFIG_DST_CACHE=y +CONFIG_DCACHE_WORD_ACCESS=y +# +# At least one emulation must be selected +# +CONFIG_VFP=y +CONFIG_VFPv3=y +CONFIG_NEON=y +CONFIG_KERNEL_MODE_NEON=y + # CONFIG_SWP_EMULATE is not set # CONFIG_THUMB2_KERNEL is not set -- 2.7.4 ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
[LEDE-DEV] [PATCH 1/1] at91bootstrap: at91bootstrap default selection
The fixes following problems 1. changing prefix at91bootstrap to AT91bootstrap will fix the default selection of at91bootstrap for the selected sama5 subtarget. 2. fixed missing default selection of sama5d4 nand flash for the selected sama5d4 subtarget. 3. corrected at91bootstrap Title name. Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikar...@microchip.com> --- package/boot/at91bootstrap/Makefile | 34 +- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/package/boot/at91bootstrap/Makefile b/package/boot/at91bootstrap/Makefile index 4571fed..5d5d2e5 100644 --- a/package/boot/at91bootstrap/Makefile +++ b/package/boot/at91bootstrap/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=at91bootstrap -PKG_VERSION:=v3.8.8 +PKG_VERSION:=v3.8. PKG_RELEASE:= PKG_SOURCE_PROTO:=git @@ -28,50 +28,50 @@ define AT91Bootstrap/Default AT91BOOTSTRAP_IMAGE:=at91bootstrap.bin endef -define at91bootstrap/sama5d2_xplaineddf_uboot - TITLE:=AT91Bootstrap for the SAMA5D2 Xplained board (SPI Flash) +define AT91Bootstrap/sama5d2_xplaineddf_uboot + TITLE:=AT91Bootstrap for SAMA5D2 Xplained board (SPI Flash) BUILD_SUBTARGET:=sama5 BUILD_DEVICES:=at91-sama5d2_xplained endef -define at91bootstrap/sama5d2_xplaineddf_qspi_uboot - TITLE:=AT91Bootstrap for the SAMA5D2 Xplained board (QSPI Flash) +define AT91Bootstrap/sama5d2_xplaineddf_qspi_uboot + TITLE:=AT91Bootstrap for SAMA5D2 Xplained board (QSPI Flash) BUILD_SUBTARGET:=sama5 BUILD_DEVICES:=at91-sama5d2_xplained endef -define at91bootstrap/sama5d2_xplainedsd_uboot - TITLE:=AT91Bootstrap for the SAMA5D2 Xplained board (SDcard/EMMC) +define AT91Bootstrap/sama5d2_xplainedsd_uboot + TITLE:=AT91Bootstrap for SAMA5D2 Xplained board (SDcard/EMMC) BUILD_SUBTARGET:=sama5 BUILD_DEVICES:=at91-sama5d2_xplained endef -define at91bootstrap/sama5d3_xplainednf_uboot - TITLE:=AT91Bootstrap for the SAMA5D3 Xplained board (Nand Flash) +define AT91Bootstrap/sama5d3_xplainednf_uboot + TITLE:=AT91Bootstrap for SAMA5D3 Xplained board (Nand Flash) BUILD_SUBTARGET:=sama5 BUILD_DEVICES:=at91-sama5d3_xplained endef -define at91bootstrap/sama5d3_xplainedsd_uboot - TITLE:=AT91Bootstrap for the SAMA5D3 Xplained board (SDcard) +define AT91Bootstrap/sama5d3_xplainedsd_uboot + TITLE:=AT91Bootstrap for SAMA5D3 Xplained board (SDcard) BUILD_SUBTARGET:=sama5 BUILD_DEVICES:=at91-sama5d3_xplained endef -define at91bootstrap/sama5d4_xplainednf_uboot - TITLE:=AT91Bootstrap for the SAMA5D4 Xplained board (Nand Flash) +define AT91Bootstrap/sama5d4_xplainednf_uboot_secure + TITLE:=AT91Bootstrap for SAMA5D4 Xplained board (Nand Flash) BUILD_SUBTARGET:=sama5 BUILD_DEVICES:=at91-sama5d4_xplained endef -define at91bootstrap/sama5d4_xplaineddf_uboot_secure - TITLE:=AT91Bootstrap for the SAMA5D4 Xplained board (SPI Flash) +define AT91Bootstrap/sama5d4_xplaineddf_uboot_secure + TITLE:=AT91Bootstrap for SAMA5D4 Xplained board (SPI Flash) BUILD_SUBTARGET:=sama5 BUILD_DEVICES:=at91-sama5d4_xplained endef -define at91bootstrap/sama5d4_xplainedsd_uboot_secure - TITLE:=AT91Bootstrap for the SAMA5D4 Xplained board (SDcard) +define AT91Bootstrap/sama5d4_xplainedsd_uboot_secure + TITLE:=AT91Bootstrap for SAMA5D4 Xplained board (SDcard) BUILD_SUBTARGET:=sama5 BUILD_DEVICES:=at91-sama5d4_xplained endef -- 2.7.4 ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
[LEDE-DEV] [PATCH v1 1/1] uboot-at91: fix build after fpu activation
neon and VFPv4 support is added to this target and uboot-at91 build fails due to TARGET_CFLAGS -mfloat-abi set to hard. as a fix, setting uboot-at91 CFLAGS -mfloat-abi=soft. Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikar...@microchip.com> --- package/boot/uboot-at91/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/boot/uboot-at91/Makefile b/package/boot/uboot-at91/Makefile index 7c420f1..268b254 100644 --- a/package/boot/uboot-at91/Makefile +++ b/package/boot/uboot-at91/Makefile @@ -88,7 +88,7 @@ UBOOT_TARGETS := \ define Build/Compile +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \ CROSS_COMPILE=$(TARGET_CROSS) \ - KCFLAGS="$(filter-out -fstack-protector, $(TARGET_CFLAGS))" + KCFLAGS="$(filter-out -fstack-protector -mfloat-abi=hard, $(TARGET_CFLAGS)) -mfloat-abi=soft" endef $(eval $(call BuildPackage/U-Boot)) -- 2.7.4 ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
[LEDE-DEV] [PATCH v2 1/1] at91: create sdcard image for sama5
create sdcard image using gen_at91_sdcard_img.sh for sama5 platform and sdcard image partition layout is: P0: Boot (fat32) - contains(at91bootstrap,u-boot,zImage & dtb) p1: Rootfs (ext4) Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikar...@microchip.com> --- .../image/gen_at91_sdcard_img.sh} | 4 +- target/linux/at91/image/sama5.mk | 46 ++ 2 files changed, 48 insertions(+), 2 deletions(-) copy target/linux/{omap/image/gen_omap_sdcard_img.sh => at91/image/gen_at91_sdcard_img.sh} (94%) diff --git a/target/linux/omap/image/gen_omap_sdcard_img.sh b/target/linux/at91/image/gen_at91_sdcard_img.sh similarity index 94% copy from target/linux/omap/image/gen_omap_sdcard_img.sh copy to target/linux/at91/image/gen_at91_sdcard_img.sh index c2f2aad..316ecea 100755 --- a/target/linux/omap/image/gen_omap_sdcard_img.sh +++ b/target/linux/at91/image/gen_at91_sdcard_img.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash # -# Copyright (C) 2013 OpenWrt.org +# Copyright (C) 2017 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -20,7 +20,7 @@ BOOTFSSIZE="$4" ROOTFSSIZE="$5" head=4 -sect=63 +sect=2048 set `ptgen -o $OUTPUT -h $head -s $sect -l 1024 -t c -p ${BOOTFSSIZE}M -t 83 -p ${ROOTFSSIZE}M` diff --git a/target/linux/at91/image/sama5.mk b/target/linux/at91/image/sama5.mk index b26715b..d33a398 100644 --- a/target/linux/at91/image/sama5.mk +++ b/target/linux/at91/image/sama5.mk @@ -1,3 +1,46 @@ +AT91_SD_BOOT_PARTSIZE:=64 +FAT32_BLOCK_SIZE:=1024 +FAT32_BLOCKS:=$(shell echo \ + $$(($(AT91_SD_BOOT_PARTSIZE)*1024*1024/$(FAT32_BLOCK_SIZE + +define Build/at91-sdcard + rm -f $@.boot + mkfs.fat -C $@.boot $(FAT32_BLOCKS) + + mcopy -i $@.boot $(KDIR)/zImage ::zImage + + $(foreach dts,$(DEVICE_DTS), \ + mcopy -i $@.boot $(DTS_DIR)/$(dts).dtb \ +::$(dts).dtb; \ + mcopy -i $@.boot \ +$(BIN_DIR)/u-boot-$(dts:at91-%=%)_mmc/u-boot.bin \ +::u-boot.bin; \ + $(CP) $(BIN_DIR)/at91bootstrap-$(dts:at91-%=%)sd_uboot*/*.bin \ + $(BIN_DIR)/BOOT.bin; \ + mcopy -i $@.boot $(BIN_DIR)/BOOT.bin ::BOOT.bin;) + + ./gen_at91_sdcard_img.sh \ + $(dir $@)$(IMG_PREFIX)-$(PROFILE_SANITIZED)-sdcard.img \ + $@.boot \ + $(KDIR)/root.ext4 \ + $(AT91_SD_BOOT_PARTSIZE) \ + $(CONFIG_TARGET_ROOTFS_PARTSIZE) + + gzip -nc9 $(dir $@)$(IMG_PREFIX)-$(PROFILE_SANITIZED)-sdcard.img \ + > $(dir $@)$(IMG_PREFIX)-$(PROFILE_SANITIZED)-sdcard.img.gz + + $(CP) $(dir $@)$(IMG_PREFIX)-$(PROFILE_SANITIZED)-sdcard.img.gz \ +$(BIN_DIR)/ + + rm -f $(BIN_DIR)/BOOT.bin + rm -f $@.boot +endef + +define Device/evaluation-sdimage + IMAGES += sdcard.img.gz + IMAGE/sdcard.img.gz := at91-sdcard +endef + define Device/default-nand BLOCKSIZE := 128k PAGESIZE := 2048 @@ -9,6 +52,7 @@ define Device/at91-sama5d3_xplained $(Device/evaluation-dtb) DEVICE_TITLE := Microchip(Atmel AT91) SAMA5D3 Xplained KERNEL_SIZE := 6144k + $(Device/evaluation-sdimage) endef TARGET_DEVICES += at91-sama5d3_xplained @@ -16,6 +60,7 @@ define Device/at91-sama5d2_xplained $(Device/evaluation-dtb) DEVICE_TITLE := Microchip(Atmel AT91) SAMA5D2 Xplained KERNEL_SIZE := 6144k + $(Device/evaluation-sdimage) endef TARGET_DEVICES += at91-sama5d2_xplained @@ -27,6 +72,7 @@ define Device/at91-sama5d4_xplained PAGESIZE := 4096 SUBPAGESIZE := 2048 MKUBIFS_OPTS := -m $$(PAGESIZE) -e 248KiB -c 2082 -x lzo + $(Device/evaluation-sdimage) endef TARGET_DEVICES += at91-sama5d4_xplained -- 2.7.4 ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
[LEDE-DEV] [PATCH v2 0/1] at91: sdcard image patch Summary
This patch is about generating sdcard images for at91 sama5 socs. v1->v2: v1 patch was Superseded. re-submiting again. Sandeep Sheriker Mallikarjun (1): at91: create sdcard image for sama5 .../image/gen_at91_sdcard_img.sh} | 4 +- target/linux/at91/image/sama5.mk | 46 ++ 2 files changed, 48 insertions(+), 2 deletions(-) copy target/linux/{omap/image/gen_omap_sdcard_img.sh => at91/image/gen_at91_sdcard_img.sh} (94%) -- 2.7.4 ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
[LEDE-DEV] [PATCH v1 3/4] at91: Add ext4 filesystem
Add ext4 filesystem for creating sdcard image with ext4 rootfs and removing ext2 as it superset of ext4. Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikar...@microchip.com> --- target/linux/at91/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/at91/Makefile b/target/linux/at91/Makefile index 948419a..c4de685 100644 --- a/target/linux/at91/Makefile +++ b/target/linux/at91/Makefile @@ -10,7 +10,7 @@ ARCH:=arm BOARD:=at91 MAINTAINER:=Claudio Mignanti <c.migna...@gmail.com> BOARDNAME:=Microchip (Atmel AT91) -FEATURES:=squashfs targz ext2 usb usbgadget ubifs +FEATURES:=ext4 squashfs targz usb usbgadget ubifs SUBTARGETS:=sama5 legacy KERNEL_PATCHVER:=4.4 -- 2.7.4 ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
[LEDE-DEV] [PATCH v1 4/4] at91: creating sdcard image for sama5
creating sdcard image using gen_at91_sdcard_img.sh for sama5 platform and sdcard image partition layout is: P0: Boot (fat32) - Contains(at91bootstrap,u-boot,zImage & dtb) p1: Rootfs (ext4) Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikar...@microchip.com> --- target/linux/at91/image/Makefile | 45 ++ .../image/gen_at91_sdcard_img.sh} | 9 +++-- target/linux/at91/image/sama5.mk | 3 ++ 3 files changed, 54 insertions(+), 3 deletions(-) copy target/linux/{omap/image/gen_omap_sdcard_img.sh => at91/image/gen_at91_sdcard_img.sh} (68%) diff --git a/target/linux/at91/image/Makefile b/target/linux/at91/image/Makefile index 9333709..628d3d8 100644 --- a/target/linux/at91/image/Makefile +++ b/target/linux/at91/image/Makefile @@ -9,6 +9,11 @@ include $(INCLUDE_DIR)/image.mk KERNEL_LOADADDR := 0x20008000 +AT91_SD_BOOT_PARTSIZE:= 64 +FAT32_BLOCK_SIZE:=1024 +FAT32_BLOCKS:=$(shell echo \ + $$(($(AT91_SD_BOOT_PARTSIZE)*1024*1024/$(FAT32_BLOCK_SIZE + ifeq ($(SUBTARGET),legacy) include ./legacy.mk UBIFS_OPTS := -m 2048 -e 126KiB -c 2048 @@ -48,6 +53,46 @@ define Device/evaluation IMAGE/root.ubi := append-ubi endef +# $(CP) $(KDIR)/zImage \ +# $(BIN_DIR)/$(IMG_PREFIX)-$(PROFILE_SANITIZED)-zImage +define Build/at91-sdcard + rm -f $@.boot + mkfs.fat -C $@.boot $(FAT32_BLOCKS) + + mcopy -i $@.boot $(KDIR)/zImage ::zImage + + $(foreach dts,$(DEVICE_DTS), \ + mcopy -i $@.boot $(DTS_DIR)/$(dts).dtb \ +::$(dts).dtb; \ + mcopy -i $@.boot \ +$(BIN_DIR)/u-boot-$(dts:at91-%=%)_mmc/u-boot.bin \ +::u-boot.bin; \ + $(CP) $(BIN_DIR)/at91bootstrap-$(dts:at91-%=%)sd_uboot*/*.bin \ + $(BIN_DIR)/BOOT.bin; \ + mcopy -i $@.boot $(BIN_DIR)/BOOT.bin ::BOOT.bin;) + + ./gen_at91_sdcard_img.sh \ + $(dir $@)$(IMG_PREFIX)-$(PROFILE_SANITIZED)-sdcard.img \ + $@.boot \ + $(KDIR)/root.ext4 \ + $(AT91_SD_BOOT_PARTSIZE) \ + $(CONFIG_TARGET_ROOTFS_PARTSIZE) + + gzip -nc9 $(dir $@)$(IMG_PREFIX)-$(PROFILE_SANITIZED)-sdcard.img \ + > $(dir $@)$(IMG_PREFIX)-$(PROFILE_SANITIZED)-sdcard.img.gz + + $(CP) $(dir $@)$(IMG_PREFIX)-$(PROFILE_SANITIZED)-sdcard.img.gz \ +$(BIN_DIR)/ + + rm -f $(BIN_DIR)/BOOT.bin + rm -f $@.boot +endef + +define Device/evaluation-sdimage + IMAGES += sdcard.img.gz + IMAGE/sdcard.img.gz := at91-sdcard +endef + define Device/evaluation-zImage IMAGES += zImage IMAGE/zImage := install-zImage diff --git a/target/linux/omap/image/gen_omap_sdcard_img.sh b/target/linux/at91/image/gen_at91_sdcard_img.sh similarity index 68% copy from target/linux/omap/image/gen_omap_sdcard_img.sh copy to target/linux/at91/image/gen_at91_sdcard_img.sh index c2f2aad..16c76f0 100755 --- a/target/linux/omap/image/gen_omap_sdcard_img.sh +++ b/target/linux/at91/image/gen_at91_sdcard_img.sh @@ -9,7 +9,9 @@ set -x [ $# -eq 5 ] || { -echo "SYNTAX: $0 " +echo "SYNTAX: $0 \ +\ + " exit 1 } @@ -20,9 +22,10 @@ BOOTFSSIZE="$4" ROOTFSSIZE="$5" head=4 -sect=63 +sect=2048 -set `ptgen -o $OUTPUT -h $head -s $sect -l 1024 -t c -p ${BOOTFSSIZE}M -t 83 -p ${ROOTFSSIZE}M` +set `ptgen -o $OUTPUT -h $head -s $sect -l 1024 -t c -p \ + ${BOOTFSSIZE}M -t 83 -p ${ROOTFSSIZE}M` BOOTOFFSET="$(($1 / 512))" BOOTSIZE="$(($2 / 512))" diff --git a/target/linux/at91/image/sama5.mk b/target/linux/at91/image/sama5.mk index 1610815..7d32875 100644 --- a/target/linux/at91/image/sama5.mk +++ b/target/linux/at91/image/sama5.mk @@ -8,6 +8,7 @@ define Device/at91-sama5d3_xplained at91bootstrap-sama5d3_xplainedsd_uboot \ u-boot-sama5d3_xplained_mmc \ u-boot-sama5d3_xplained_nandflash + $(Device/evaluation-sdimage) endef TARGET_DEVICES += at91-sama5d3_xplained @@ -22,6 +23,7 @@ define Device/at91-sama5d2_xplained at91bootstrap-sama5d2_xplainedsd_uboot \ u-boot-sama5d2_xplained_mmc \ u-boot-sama5d2_xplained_spiflash + $(Device/evaluation-sdimage) endef TARGET_DEVICES += at91-sama5d2_xplained @@ -37,5 +39,6 @@ define Device/at91-sama5d4_xplained u-boot-sama5d4_xplained_mmc \ u-boot-sama5d4_xplained_nandflash \ u-boot-sama5d4_xplained_spiflash + $(Device/evaluation-sdimage) endef TARGET_DEVICES += at91-sama5d4_xplained -- 2.7.4 ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
[LEDE-DEV] [PATCH v1 1/4] at91: Add DEVICE_PACKAGES for sama5
Added DEVICE_PACKAGES for sama5 to include at91bootstrap & u-boot in default Snapshot build. Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikar...@microchip.com> --- target/linux/at91/image/sama5.mk | 18 ++ 1 file changed, 18 insertions(+) diff --git a/target/linux/at91/image/sama5.mk b/target/linux/at91/image/sama5.mk index 580b51e..1610815 100644 --- a/target/linux/at91/image/sama5.mk +++ b/target/linux/at91/image/sama5.mk @@ -3,6 +3,11 @@ define Device/at91-sama5d3_xplained DEVICE_TITLE := Microchip(Atmel AT91) SAMA5D3 Xplained KERNEL_SIZE := 6144k SUBPAGESIZE := 2048 + DEVICE_PACKAGES += \ +at91bootstrap-sama5d3_xplainednf_uboot \ +at91bootstrap-sama5d3_xplainedsd_uboot \ +u-boot-sama5d3_xplained_mmc \ +u-boot-sama5d3_xplained_nandflash endef TARGET_DEVICES += at91-sama5d3_xplained @@ -11,6 +16,12 @@ define Device/at91-sama5d2_xplained DEVICE_TITLE := Microchip(Atmel AT91) SAMA5D2 Xplained KERNEL_SIZE := 6144k SUBPAGESIZE := 2048 + DEVICE_PACKAGES += \ +at91bootstrap-sama5d2_xplaineddf_qspi_uboot \ +at91bootstrap-sama5d2_xplaineddf_uboot \ +at91bootstrap-sama5d2_xplainedsd_uboot \ +u-boot-sama5d2_xplained_mmc \ +u-boot-sama5d2_xplained_spiflash endef TARGET_DEVICES += at91-sama5d2_xplained @@ -19,5 +30,12 @@ define Device/at91-sama5d4_xplained DEVICE_TITLE := Microchip(Atmel AT91) SAMA5D4 Xplained KERNEL_SIZE := 6144k SUBPAGESIZE := 2048 + DEVICE_PACKAGES += \ +at91bootstrap-sama5d4_xplaineddf_uboot_secure \ +at91bootstrap-sama5d4_xplainednf_uboot_secure \ +at91bootstrap-sama5d4_xplainedsd_uboot_secure \ +u-boot-sama5d4_xplained_mmc \ +u-boot-sama5d4_xplained_nandflash \ +u-boot-sama5d4_xplained_spiflash endef TARGET_DEVICES += at91-sama5d4_xplained -- 2.7.4 ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
[LEDE-DEV] [PATCH v1 0/4] at91: sdcard image patch Summary
This patch seriese is about generating sdcard images for sama5 socs and enabled necessary kernel and filesystem changes to generate sdimage. v0->v1: Adding a missing dependent patch(i.e. Add DEVICE_PACKAGES for sama5) to this patch series. Sandeep Sheriker Mallikarjun (4): at91: Add DEVICE_PACKAGES for sama5 at91: Enable SDHCI for sama5 in default config at91: Add ext4 filesystem at91: creating sdcard image for sama5 target/linux/at91/Makefile | 2 +- target/linux/at91/image/Makefile | 45 ++ .../image/gen_at91_sdcard_img.sh} | 9 +++-- target/linux/at91/image/sama5.mk | 21 ++ target/linux/at91/sama5/config-default | 5 +++ 5 files changed, 78 insertions(+), 4 deletions(-) copy target/linux/{omap/image/gen_omap_sdcard_img.sh => at91/image/gen_at91_sdcard_img.sh} (68%) -- 2.7.4 ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
[LEDE-DEV] [PATCH v1 2/4] at91: Enable SDHCI for sama5 in default config
Enabled SDHCI for sama5 in kernel default config and this is needed to mount sdcard rootfs partition during boot. Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikar...@microchip.com> --- target/linux/at91/sama5/config-default | 5 + 1 file changed, 5 insertions(+) diff --git a/target/linux/at91/sama5/config-default b/target/linux/at91/sama5/config-default index 660e27e..176e85c 100644 --- a/target/linux/at91/sama5/config-default +++ b/target/linux/at91/sama5/config-default @@ -18,3 +18,8 @@ CONFIG_PL310_ERRATA_753970=y CONFIG_PL310_ERRATA_769419=y # CONFIG_SWP_EMULATE is not set # CONFIG_THUMB2_KERNEL is not set +CONFIG_MMC_SDHCI=y +CONFIG_MMC_SDHCI_IO_ACCESSORS=y +CONFIG_MMC_SDHCI_OF_AT91=y +CONFIG_MMC_SDHCI_PLTFM=y + -- 2.7.4 ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
[LEDE-DEV] [PATCH 3/3] at91: creating sdcard image for sama5
creating sdcard image using gen_at91_sdcard_img.sh for sama5 platform and sdcard image partition layout is: P0: Boot (fat32) - Contains(at91bootstrap,u-boot,zImage & dtb) p1: Rootfs (ext4) Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikar...@microchip.com> --- target/linux/at91/image/Makefile | 45 ++ .../image/gen_at91_sdcard_img.sh} | 9 +++-- target/linux/at91/image/sama5.mk | 3 ++ 3 files changed, 54 insertions(+), 3 deletions(-) copy target/linux/{omap/image/gen_omap_sdcard_img.sh => at91/image/gen_at91_sdcard_img.sh} (68%) diff --git a/target/linux/at91/image/Makefile b/target/linux/at91/image/Makefile index 9333709..628d3d8 100644 --- a/target/linux/at91/image/Makefile +++ b/target/linux/at91/image/Makefile @@ -9,6 +9,11 @@ include $(INCLUDE_DIR)/image.mk KERNEL_LOADADDR := 0x20008000 +AT91_SD_BOOT_PARTSIZE:= 64 +FAT32_BLOCK_SIZE:=1024 +FAT32_BLOCKS:=$(shell echo \ + $$(($(AT91_SD_BOOT_PARTSIZE)*1024*1024/$(FAT32_BLOCK_SIZE + ifeq ($(SUBTARGET),legacy) include ./legacy.mk UBIFS_OPTS := -m 2048 -e 126KiB -c 2048 @@ -48,6 +53,46 @@ define Device/evaluation IMAGE/root.ubi := append-ubi endef +# $(CP) $(KDIR)/zImage \ +# $(BIN_DIR)/$(IMG_PREFIX)-$(PROFILE_SANITIZED)-zImage +define Build/at91-sdcard + rm -f $@.boot + mkfs.fat -C $@.boot $(FAT32_BLOCKS) + + mcopy -i $@.boot $(KDIR)/zImage ::zImage + + $(foreach dts,$(DEVICE_DTS), \ + mcopy -i $@.boot $(DTS_DIR)/$(dts).dtb \ +::$(dts).dtb; \ + mcopy -i $@.boot \ +$(BIN_DIR)/u-boot-$(dts:at91-%=%)_mmc/u-boot.bin \ +::u-boot.bin; \ + $(CP) $(BIN_DIR)/at91bootstrap-$(dts:at91-%=%)sd_uboot*/*.bin \ + $(BIN_DIR)/BOOT.bin; \ + mcopy -i $@.boot $(BIN_DIR)/BOOT.bin ::BOOT.bin;) + + ./gen_at91_sdcard_img.sh \ + $(dir $@)$(IMG_PREFIX)-$(PROFILE_SANITIZED)-sdcard.img \ + $@.boot \ + $(KDIR)/root.ext4 \ + $(AT91_SD_BOOT_PARTSIZE) \ + $(CONFIG_TARGET_ROOTFS_PARTSIZE) + + gzip -nc9 $(dir $@)$(IMG_PREFIX)-$(PROFILE_SANITIZED)-sdcard.img \ + > $(dir $@)$(IMG_PREFIX)-$(PROFILE_SANITIZED)-sdcard.img.gz + + $(CP) $(dir $@)$(IMG_PREFIX)-$(PROFILE_SANITIZED)-sdcard.img.gz \ +$(BIN_DIR)/ + + rm -f $(BIN_DIR)/BOOT.bin + rm -f $@.boot +endef + +define Device/evaluation-sdimage + IMAGES += sdcard.img.gz + IMAGE/sdcard.img.gz := at91-sdcard +endef + define Device/evaluation-zImage IMAGES += zImage IMAGE/zImage := install-zImage diff --git a/target/linux/omap/image/gen_omap_sdcard_img.sh b/target/linux/at91/image/gen_at91_sdcard_img.sh similarity index 68% copy from target/linux/omap/image/gen_omap_sdcard_img.sh copy to target/linux/at91/image/gen_at91_sdcard_img.sh index c2f2aad..16c76f0 100755 --- a/target/linux/omap/image/gen_omap_sdcard_img.sh +++ b/target/linux/at91/image/gen_at91_sdcard_img.sh @@ -9,7 +9,9 @@ set -x [ $# -eq 5 ] || { -echo "SYNTAX: $0 " +echo "SYNTAX: $0 \ +\ + " exit 1 } @@ -20,9 +22,10 @@ BOOTFSSIZE="$4" ROOTFSSIZE="$5" head=4 -sect=63 +sect=2048 -set `ptgen -o $OUTPUT -h $head -s $sect -l 1024 -t c -p ${BOOTFSSIZE}M -t 83 -p ${ROOTFSSIZE}M` +set `ptgen -o $OUTPUT -h $head -s $sect -l 1024 -t c -p \ + ${BOOTFSSIZE}M -t 83 -p ${ROOTFSSIZE}M` BOOTOFFSET="$(($1 / 512))" BOOTSIZE="$(($2 / 512))" diff --git a/target/linux/at91/image/sama5.mk b/target/linux/at91/image/sama5.mk index 1610815..7d32875 100644 --- a/target/linux/at91/image/sama5.mk +++ b/target/linux/at91/image/sama5.mk @@ -8,6 +8,7 @@ define Device/at91-sama5d3_xplained at91bootstrap-sama5d3_xplainedsd_uboot \ u-boot-sama5d3_xplained_mmc \ u-boot-sama5d3_xplained_nandflash + $(Device/evaluation-sdimage) endef TARGET_DEVICES += at91-sama5d3_xplained @@ -22,6 +23,7 @@ define Device/at91-sama5d2_xplained at91bootstrap-sama5d2_xplainedsd_uboot \ u-boot-sama5d2_xplained_mmc \ u-boot-sama5d2_xplained_spiflash + $(Device/evaluation-sdimage) endef TARGET_DEVICES += at91-sama5d2_xplained @@ -37,5 +39,6 @@ define Device/at91-sama5d4_xplained u-boot-sama5d4_xplained_mmc \ u-boot-sama5d4_xplained_nandflash \ u-boot-sama5d4_xplained_spiflash + $(Device/evaluation-sdimage) endef TARGET_DEVICES += at91-sama5d4_xplained -- 2.7.4 ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
[LEDE-DEV] [PATCH 0/3] at91: sdcard image patch Summary
This patch seriese is about generating sdcard images for sama5 socs and enabled necessary kernel and filesystem changes to generate sdimage. Sandeep Sheriker Mallikarjun (3): at91: Enable SDHCI for sama5 in default config at91: Add ext4 filesystem at91: creating sdcard image for sama5 target/linux/at91/Makefile | 2 +- target/linux/at91/image/Makefile | 45 ++ .../image/gen_at91_sdcard_img.sh} | 9 +++-- target/linux/at91/image/sama5.mk | 3 ++ target/linux/at91/sama5/config-default | 5 +++ 5 files changed, 60 insertions(+), 4 deletions(-) copy target/linux/{omap/image/gen_omap_sdcard_img.sh => at91/image/gen_at91_sdcard_img.sh} (68%) -- 2.7.4 ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
[LEDE-DEV] [PATCH 1/3] at91: Enable SDHCI for sama5 in default config
Enabled SDHCI for sama5 in kernel default config and this is needed to mount sdcard rootfs partition during boot. Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikar...@microchip.com> --- target/linux/at91/sama5/config-default | 5 + 1 file changed, 5 insertions(+) diff --git a/target/linux/at91/sama5/config-default b/target/linux/at91/sama5/config-default index 660e27e..176e85c 100644 --- a/target/linux/at91/sama5/config-default +++ b/target/linux/at91/sama5/config-default @@ -18,3 +18,8 @@ CONFIG_PL310_ERRATA_753970=y CONFIG_PL310_ERRATA_769419=y # CONFIG_SWP_EMULATE is not set # CONFIG_THUMB2_KERNEL is not set +CONFIG_MMC_SDHCI=y +CONFIG_MMC_SDHCI_IO_ACCESSORS=y +CONFIG_MMC_SDHCI_OF_AT91=y +CONFIG_MMC_SDHCI_PLTFM=y + -- 2.7.4 ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
[LEDE-DEV] [PATCH 2/3] at91: Add ext4 filesystem
Add ext4 filesystem for creating sdcard image with ext4 rootfs and removing ext2 as it superset of ext4. Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikar...@microchip.com> --- target/linux/at91/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/at91/Makefile b/target/linux/at91/Makefile index 948419a..c4de685 100644 --- a/target/linux/at91/Makefile +++ b/target/linux/at91/Makefile @@ -10,7 +10,7 @@ ARCH:=arm BOARD:=at91 MAINTAINER:=Claudio Mignanti <c.migna...@gmail.com> BOARDNAME:=Microchip (Atmel AT91) -FEATURES:=squashfs targz ext2 usb usbgadget ubifs +FEATURES:=ext4 squashfs targz usb usbgadget ubifs SUBTARGETS:=sama5 legacy KERNEL_PATCHVER:=4.4 -- 2.7.4 ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
[LEDE-DEV] [PATCH 0/2] at91bootstrap: fix kconfig and bin install
This patch serires is to fix: 1. Show up in menuconfig, only when sama5 is selected as target device. 2. Fixed install command insead of manually copying to bin folder. Sandeep Sheriker Mallikarjun (2): at91bootstrap: Add BUILD_SUBTARGET variable at91bootstrap: remove manual copy of binaries to BIN_DIR package/boot/at91bootstrap/Makefile | 5 +++-- package/boot/at91bootstrap/at91bootstrap.mk | 12 ++-- 2 files changed, 13 insertions(+), 4 deletions(-) -- 2.7.4 ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
[LEDE-DEV] [PATCH 2/2] at91bootstrap: remove manual copy of binaries to BIN_DIR
removed copying of binaries to BIN_DIR during install and using default/install to install binaries to BIN_DIR folder. Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikar...@microchip.com> --- package/boot/at91bootstrap/at91bootstrap.mk | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/package/boot/at91bootstrap/at91bootstrap.mk b/package/boot/at91bootstrap/at91bootstrap.mk index 732d643..dda5fa4 100644 --- a/package/boot/at91bootstrap/at91bootstrap.mk +++ b/package/boot/at91bootstrap/at91bootstrap.mk @@ -1,6 +1,15 @@ +PKG_TARGETS := bin +PKG_FLAGS:=nonshared + export GCC_HONOUR_COPTS=s +define Package/at91bootstrap/install/default + $(CP) $(PKG_BUILD_DIR)/binaries/*uboot* $(1)/ +endef + +Package/at91bootstrap/install = $(Package/at91bootstrap/install/default) + define AT91Bootstrap/Init BUILD_TARGET:= BUILD_SUBTARGET:= @@ -46,8 +55,7 @@ define Build/AT91Bootstrap/Target endef define Package/at91bootstrap-$(1)/install -$(CP) $(PKG_BUILD_DIR)/binaries/*uboot*.bin \ - $(BIN_DIR)/at91bootstrap-$(1).bin +$$(Package/at91bootstrap/install) endef endef -- 2.7.4 ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
[LEDE-DEV] [PATCH 0/2] uboot-at91: fix build error
This patch series fixes the uboot-at91 build error's. In case when a uboot package is selected of a different subtarget device, the build will fail due to wrong cpu type. Sandeep Sheriker Mallikarjun (2): uboot-at91: remove sama5 platform uboot-at91_sama5: Add New package uboot-at91_sama5 package/boot/uboot-at91/Makefile | 54 +- .../boot/{uboot-at91 => uboot-at91_sama5}/Makefile | 20 ++-- 2 files changed, 7 insertions(+), 67 deletions(-) copy package/boot/{uboot-at91 => uboot-at91_sama5}/Makefile (81%) -- 2.7.4 ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
[LEDE-DEV] [LEDE-DEV, v2, 10/11] uboot-at91: Add support for SAMA5D4 Xplained board
Add support for SAMA5D4 Xplained board and options to select & build u-boot configs for different media storage. Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikar...@microchip.com> --- package/boot/uboot-at91/Makefile | 24 ++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/package/boot/uboot-at91/Makefile b/package/boot/uboot-at91/Makefile index e2d3ed0..8dc5e3e 100644 --- a/package/boot/uboot-at91/Makefile +++ b/package/boot/uboot-at91/Makefile @@ -54,14 +54,34 @@ define uboot/sama5d2_xplained_mmc BUILD_DEVICES:=at91-sama5d2_xplained endef +define uboot/sama5d4_xplained_spiflash + TITLE:=U-Boot for the SAMA5D4 Xplained board (SPI Flash) + BUILD_SUBTARGET:=sama5 + BUILD_DEVICES:=at91-sama5d4_xplained +endef + +define uboot/sama5d4_xplained_mmc + TITLE:=U-Boot for the SAMA5D4 Xplained board (SDcard) + BUILD_SUBTARGET:=sama5 + BUILD_DEVICES:=at91-sama5d4_xplained +endef + +define uboot/sama5d4_xplained_nandflash + TITLE:=U-Boot for the SAMA5D4 Xplained board (NandFlash) + BUILD_SUBTARGET:=sama5 + BUILD_DEVICES:=at91-sama5d4_xplained +endef + UBOOT_TARGETS := \ at91sam9m10g45ek_nandflash \ at91sam9x5ek_nandflash \ sama5d3_xplained_nandflash \ sama5d3_xplained_mmc \ sama5d2_xplained_mmc \ -sama5d2_xplained_spiflash - +sama5d2_xplained_spiflash \ +sama5d4_xplained_mmc \ +sama5d4_xplained_spiflash \ +sama5d4_xplained_nandflash define Build/Compile +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \ -- 2.7.4 ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
[LEDE-DEV] [LEDE-DEV, v2, 08/11] uboot-at91: Add support for SAMA5D3 Xplained board
Add support for SAMA5D3 Xplained board and options to select & build u-boot configs for different media storage. Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikar...@microchip.com> --- package/boot/uboot-at91/Makefile | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/package/boot/uboot-at91/Makefile b/package/boot/uboot-at91/Makefile index 68e4ba4..2c95377 100644 --- a/package/boot/uboot-at91/Makefile +++ b/package/boot/uboot-at91/Makefile @@ -30,9 +30,23 @@ define U-Boot/at91sam9x5ek_nandflash BUILD_SUBTARGET:=legacy endef +define uboot/sama5d3_xplained_nandflash + TITLE:=U-Boot for the SAMA5D3 Xplained board (NandFlash) + BUILD_SUBTARGET:=sama5 + BUILD_DEVICES:=at91-sama5d3_xplained +endef + +define uboot/sama5d3_xplained_mmc + TITLE:=U-Boot for the SAMA5D3 Xplained board (SDcard) + BUILD_SUBTARGET:=sama5 + BUILD_DEVICES:=at91-sama5d3_xplained +endef + UBOOT_TARGETS := \ at91sam9m10g45ek_nandflash \ - at91sam9x5ek_nandflash + at91sam9x5ek_nandflash \ +sama5d3_xplained_nandflash \ +sama5d3_xplained_mmc define Build/Compile +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \ -- 2.7.4 ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
[LEDE-DEV] [LEDE-DEV, v2, 07/11] uboot-at91: move BUILD_SUBTARGET from U-Boot/Default to devices
currenlty U-Boot/Default supports only at91 legacy devices.To add sama5 support, moving BUILD_SUBTARGET from U-Boot/Default to target devices. Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikar...@microchip.com> --- package/boot/uboot-at91/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package/boot/uboot-at91/Makefile b/package/boot/uboot-at91/Makefile index 6a806ff..68e4ba4 100644 --- a/package/boot/uboot-at91/Makefile +++ b/package/boot/uboot-at91/Makefile @@ -17,16 +17,17 @@ include $(INCLUDE_DIR)/package.mk define U-Boot/Default BUILD_TARGET:=at91 - BUILD_SUBTARGET:=legacy UBOOT_IMAGE:=u-boot.bin boot.bin endef define U-Boot/at91sam9m10g45ek_nandflash NAME:=AT91SAM9M10G45-EK board (NandFlash) + BUILD_SUBTARGET:=legacy endef define U-Boot/at91sam9x5ek_nandflash NAME:=AT91SAM9X5-EK board (NandFlash) + BUILD_SUBTARGET:=legacy endef UBOOT_TARGETS := \ -- 2.7.4 ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
[LEDE-DEV] [LEDE-DEV, v2, 06/11] at91: Add UBI parameters for sama5d4.
Add UBIFS_OPTS & UBINIZE_OPTS parameters for sama5d4 Xplained board. Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikar...@microchip.com> --- target/linux/at91/image/Makefile | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/target/linux/at91/image/Makefile b/target/linux/at91/image/Makefile index 99c7e21..9333709 100644 --- a/target/linux/at91/image/Makefile +++ b/target/linux/at91/image/Makefile @@ -16,7 +16,12 @@ endif ifeq ($(SUBTARGET),sama5) include ./sama5.mk -UBIFS_OPTS := -m 2048 -e 124KiB -c 2048 +ifeq ($(TARGET_DEVICES),at91-sama5d4_xplained) + UBIFS_OPTS := -e 0x3e000 -c 2082 -m 0x1000 -x lzo + UBINIZE_OPTS := -m 0x1000 -p 0x4 +else + UBIFS_OPTS := -m 2048 -e 124KiB -c 2048 +endif endif define Device/Default -- 2.7.4 ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
[LEDE-DEV] [LEDE-DEV, v2, 01/11] at91: Renaming subtarget sama5d3 to sama5
Renaming at91 subtarget sama5d3 to sama5 and using at91-sama5d3_xplained as a target device in sama5 subtarget.This will enable to add other sama5d2 & sama5d4 target devices in sama5 subtraget.This will avoid code duplication when sama5d2 & sama5d4 added as different subtarget. Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikar...@microchip.com> --- target/linux/at91/Makefile | 4 ++-- target/linux/at91/image/Makefile| 5 +++-- target/linux/at91/image/{sama5d3.mk => sama5.mk}| 3 +-- target/linux/at91/{sama5d3 => sama5}/config-default | 0 target/linux/at91/{sama5d3 => sama5}/target.mk | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) rename target/linux/at91/image/{sama5d3.mk => sama5.mk} (72%) rename target/linux/at91/{sama5d3 => sama5}/config-default (100%) rename target/linux/at91/{sama5d3 => sama5}/target.mk (52%) diff --git a/target/linux/at91/Makefile b/target/linux/at91/Makefile index a3e0be7..948419a 100644 --- a/target/linux/at91/Makefile +++ b/target/linux/at91/Makefile @@ -9,9 +9,9 @@ include $(TOPDIR)/rules.mk ARCH:=arm BOARD:=at91 MAINTAINER:=Claudio Mignanti <c.migna...@gmail.com> -BOARDNAME:=Atmel AT91 +BOARDNAME:=Microchip (Atmel AT91) FEATURES:=squashfs targz ext2 usb usbgadget ubifs -SUBTARGETS:=legacy sama5d3 +SUBTARGETS:=sama5 legacy KERNEL_PATCHVER:=4.4 diff --git a/target/linux/at91/image/Makefile b/target/linux/at91/image/Makefile index d1ae614..6e2b6b6 100644 --- a/target/linux/at91/image/Makefile +++ b/target/linux/at91/image/Makefile @@ -13,8 +13,9 @@ ifeq ($(SUBTARGET),legacy) include ./legacy.mk UBIFS_OPTS := -m 2048 -e 126KiB -c 2048 endif -ifeq ($(SUBTARGET),sama5d3) -include ./sama5d3.mk + +ifeq ($(SUBTARGET),sama5) +include ./sama5.mk UBIFS_OPTS := -m 2048 -e 124KiB -c 2048 endif diff --git a/target/linux/at91/image/sama5d3.mk b/target/linux/at91/image/sama5.mk similarity index 72% rename from target/linux/at91/image/sama5d3.mk rename to target/linux/at91/image/sama5.mk index fb02ee1..11d8538 100644 --- a/target/linux/at91/image/sama5d3.mk +++ b/target/linux/at91/image/sama5.mk @@ -1,8 +1,7 @@ define Device/at91-sama5d3_xplained $(Device/evaluation-dtb) - DEVICE_TITLE := Atmel AT91SAMA5D3XPLAINED + DEVICE_TITLE := Microchip(Atmel AT91) SAMA5D3 Xplained KERNEL_SIZE := 6144k SUBPAGESIZE := 2048 endef TARGET_DEVICES += at91-sama5d3_xplained - diff --git a/target/linux/at91/sama5d3/config-default b/target/linux/at91/sama5/config-default similarity index 100% rename from target/linux/at91/sama5d3/config-default rename to target/linux/at91/sama5/config-default diff --git a/target/linux/at91/sama5d3/target.mk b/target/linux/at91/sama5/target.mk similarity index 52% rename from target/linux/at91/sama5d3/target.mk rename to target/linux/at91/sama5/target.mk index 0319f4b..7ccf30b 100644 --- a/target/linux/at91/sama5d3/target.mk +++ b/target/linux/at91/sama5/target.mk @@ -1,9 +1,9 @@ -BOARDNAME:=SAMA5D3 (Cortex-A5) +BOARDNAME:=SAMA5 Xplained boards(Cortex-A5) CPU_TYPE:=cortex-a5 DEFAULT_PACKAGES += kmod-usb2 define Target/Description - Build generic firmware for SAMA5D3 AT91 platforms + Build generic firmware for Microchip(Atmel AT91) SAMA5 MPU's using the ARMv7 instruction set. endef -- 2.7.4 ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
[LEDE-DEV] [LEDE-DEV,v2, 03/11] at91: Install zImage.
Installing zImage to bin folder of device target. Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikar...@microchip.com> --- target/linux/at91/image/Makefile | 6 ++ 1 file changed, 6 insertions(+) diff --git a/target/linux/at91/image/Makefile b/target/linux/at91/image/Makefile index 6e2b6b6..99c7e21 100644 --- a/target/linux/at91/image/Makefile +++ b/target/linux/at91/image/Makefile @@ -43,9 +43,15 @@ define Device/evaluation IMAGE/root.ubi := append-ubi endef +define Device/evaluation-zImage + IMAGES += zImage + IMAGE/zImage := install-zImage +endef + define Device/evaluation-dtb $(Device/evaluation) $(Device/dtb) + $(Device/evaluation-zImage) IMAGES += dtb IMAGE/dtb := install-dtb endef -- 2.7.4 ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
[LEDE-DEV] [LEDE-DEV,v2, 05/11] at91: Add SAMA5D4 device
Add support for SAMA5D4 with target device as at91-sama5d4_xplained in SAMA5 subtarget and build images for SAMA5D4 Xplained board. Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikar...@microchip.com> --- target/linux/at91/base-files/lib/at91.sh | 3 +++ target/linux/at91/image/sama5.mk | 8 2 files changed, 11 insertions(+) diff --git a/target/linux/at91/base-files/lib/at91.sh b/target/linux/at91/base-files/lib/at91.sh index 84beecd..61921ed 100755 --- a/target/linux/at91/base-files/lib/at91.sh +++ b/target/linux/at91/base-files/lib/at91.sh @@ -46,6 +46,9 @@ at91_board_detect() { *"SAMA5D2 Xplained") name="sama5d2_xplained" ;; + *"SAMA5D4 Xplained") + name="sama5d4_xplained" + ;; *"CalAmp LMU5000") name="lmu5000" ;; diff --git a/target/linux/at91/image/sama5.mk b/target/linux/at91/image/sama5.mk index 1faeb4b..580b51e 100644 --- a/target/linux/at91/image/sama5.mk +++ b/target/linux/at91/image/sama5.mk @@ -13,3 +13,11 @@ define Device/at91-sama5d2_xplained SUBPAGESIZE := 2048 endef TARGET_DEVICES += at91-sama5d2_xplained + +define Device/at91-sama5d4_xplained + $(Device/evaluation-dtb) + DEVICE_TITLE := Microchip(Atmel AT91) SAMA5D4 Xplained + KERNEL_SIZE := 6144k + SUBPAGESIZE := 2048 +endef +TARGET_DEVICES += at91-sama5d4_xplained -- 2.7.4 ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
[LEDE-DEV] [LEDE-DEV,v2, 04/11] at91: Add SAMA5D2 device
Add support for SAMA5D2 with target device as at91-sama5d2_xplained in SAMA5 subtarget and build images for SAMA5D2 Xplained board. Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikar...@microchip.com> --- target/linux/at91/base-files/lib/at91.sh | 3 +++ target/linux/at91/image/sama5.mk | 8 2 files changed, 11 insertions(+) diff --git a/target/linux/at91/base-files/lib/at91.sh b/target/linux/at91/base-files/lib/at91.sh index 0fa2ee3..84beecd 100755 --- a/target/linux/at91/base-files/lib/at91.sh +++ b/target/linux/at91/base-files/lib/at91.sh @@ -43,6 +43,9 @@ at91_board_detect() { *"SAMA5D3 Xplained") name="sama5d3_xplained" ;; + *"SAMA5D2 Xplained") + name="sama5d2_xplained" + ;; *"CalAmp LMU5000") name="lmu5000" ;; diff --git a/target/linux/at91/image/sama5.mk b/target/linux/at91/image/sama5.mk index 11d8538..1faeb4b 100644 --- a/target/linux/at91/image/sama5.mk +++ b/target/linux/at91/image/sama5.mk @@ -5,3 +5,11 @@ define Device/at91-sama5d3_xplained SUBPAGESIZE := 2048 endef TARGET_DEVICES += at91-sama5d3_xplained + +define Device/at91-sama5d2_xplained + $(Device/evaluation-dtb) + DEVICE_TITLE := Microchip(Atmel AT91) SAMA5D2 Xplained + KERNEL_SIZE := 6144k + SUBPAGESIZE := 2048 +endef +TARGET_DEVICES += at91-sama5d2_xplained -- 2.7.4 ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
[LEDE-DEV] [LEDE-DEV, v2, 02/11] build: add image command for installing zImage file.
Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikar...@microchip.com> --- include/image-commands.mk | 5 + 1 file changed, 5 insertions(+) diff --git a/include/image-commands.mk b/include/image-commands.mk index 2aac8fb..acf25d6 100644 --- a/include/image-commands.mk +++ b/include/image-commands.mk @@ -114,6 +114,11 @@ define Build/install-dtb ) endef +define Build/install-zImage +$(CP) $(KDIR)/zImage \ + $(BIN_DIR)/$(IMG_PREFIX)-$(PROFILE_SANITIZED)-zImage +endef + define Build/fit $(TOPDIR)/scripts/mkits.sh \ -D $(DEVICE_NAME) -o $@.its -k $@ \ -- 2.7.4 ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev