2020-08-23 18:15:17 +00:00
|
|
|
|
2017-06-01 22:04:52 +00:00
|
|
|
define Device/default-nand
|
|
|
|
BLOCKSIZE := 128k
|
|
|
|
PAGESIZE := 2048
|
|
|
|
SUBPAGESIZE := 512
|
|
|
|
MKUBIFS_OPTS := -m $$(PAGESIZE) -e 126KiB -c 2048
|
|
|
|
endef
|
|
|
|
|
2019-09-11 18:35:56 +00:00
|
|
|
define Build/at91-sdcard
|
|
|
|
$(if $(findstring ext4,$@), \
|
|
|
|
rm -f $@.boot
|
|
|
|
mkfs.fat -C $@.boot $(FAT32_BLOCKS)
|
|
|
|
|
|
|
|
mcopy -i $@.boot \
|
|
|
|
$(KDIR)/$(DEVICE_NAME)-fit-zImage.itb \
|
|
|
|
::$(DEVICE_NAME)-fit.itb
|
|
|
|
|
|
|
|
mcopy -i $@.boot \
|
2020-08-23 18:15:17 +00:00
|
|
|
$(BIN_DIR)/u-boot-at91sam9x5ek_mmc/u-boot.bin \
|
|
|
|
::u-boot.bin
|
2019-09-11 18:35:56 +00:00
|
|
|
|
|
|
|
mcopy -i $@.boot \
|
2020-08-23 18:15:17 +00:00
|
|
|
$(BIN_DIR)/at91bootstrap-at91sam9x5eksd_uboot/at91bootstrap.bin \
|
|
|
|
::BOOT.bin
|
2019-09-11 18:35:56 +00:00
|
|
|
|
|
|
|
$(CP) uboot-env.txt $@-uboot-env.txt
|
|
|
|
sed -i '2d;3d' $@-uboot-env.txt
|
|
|
|
sed -i '2i board='"$(DEVICE_NAME)"'' $@-uboot-env.txt
|
2020-08-23 18:15:17 +00:00
|
|
|
sed -i '3i board_name='"$(firstword $(SUPPORTED_DEVICES))"'' $@-uboot-env.txt
|
2019-09-11 18:35:56 +00:00
|
|
|
|
|
|
|
mkenvimage -s 0x4000 -o $@-uboot.env $@-uboot-env.txt
|
|
|
|
|
|
|
|
mcopy -i $@.boot $@-uboot.env ::uboot.env
|
|
|
|
|
|
|
|
./gen_at91_sdcard_img.sh \
|
2020-08-23 18:15:17 +00:00
|
|
|
$@.img \
|
|
|
|
$@.boot \
|
|
|
|
$(KDIR)/root.ext4 \
|
|
|
|
$(AT91_SD_BOOT_PARTSIZE) \
|
|
|
|
$(CONFIG_TARGET_ROOTFS_PARTSIZE)
|
2019-09-11 18:35:56 +00:00
|
|
|
|
|
|
|
gzip -nc9 $@.img > $@
|
|
|
|
|
|
|
|
rm -f $@.img $@.boot $@-uboot.env $@-uboot-env.txt)
|
|
|
|
endef
|
|
|
|
|
2020-08-23 18:15:17 +00:00
|
|
|
define Device/atmel_at91sam9263ek
|
2017-05-03 21:15:20 +00:00
|
|
|
$(Device/evaluation-dtb)
|
2019-07-10 21:31:42 +00:00
|
|
|
DEVICE_VENDOR := Atmel
|
|
|
|
DEVICE_MODEL := AT91SAM9263-EK
|
2017-05-03 21:15:20 +00:00
|
|
|
endef
|
2020-08-23 18:15:17 +00:00
|
|
|
TARGET_DEVICES += atmel_at91sam9263ek
|
2017-05-03 21:15:20 +00:00
|
|
|
|
2020-08-23 18:15:17 +00:00
|
|
|
define Device/atmel_at91sam9g15ek
|
2017-05-03 21:15:20 +00:00
|
|
|
$(Device/evaluation)
|
2019-07-10 21:31:42 +00:00
|
|
|
DEVICE_VENDOR := Atmel
|
|
|
|
DEVICE_MODEL := AT91SAM9G15-EK
|
2017-05-03 21:15:20 +00:00
|
|
|
endef
|
2020-08-23 18:15:17 +00:00
|
|
|
TARGET_DEVICES += atmel_at91sam9g15ek
|
2017-05-03 21:15:20 +00:00
|
|
|
|
2020-08-23 18:15:17 +00:00
|
|
|
define Device/atmel_at91sam9g20ek
|
2017-05-03 21:15:20 +00:00
|
|
|
$(Device/evaluation-dtb)
|
2019-07-10 21:31:42 +00:00
|
|
|
DEVICE_VENDOR := Atmel
|
|
|
|
DEVICE_MODEL := AT91SAM9G20-EK
|
2017-05-03 21:15:20 +00:00
|
|
|
endef
|
2020-08-23 18:15:17 +00:00
|
|
|
TARGET_DEVICES += atmel_at91sam9g20ek
|
2017-05-03 21:15:20 +00:00
|
|
|
|
2020-08-23 18:15:17 +00:00
|
|
|
define Device/atmel_at91sam9g20ek-2mmc
|
2017-05-03 21:15:20 +00:00
|
|
|
$(Device/evaluation-dtb)
|
2019-07-10 21:31:42 +00:00
|
|
|
DEVICE_VENDOR := Atmel
|
|
|
|
DEVICE_MODEL := AT91SAM9G20-EK
|
|
|
|
DEVICE_VARIANT := 2MMC
|
2020-08-23 18:15:17 +00:00
|
|
|
DEVICE_DTS := at91sam9g20ek_2mmc
|
|
|
|
SUPPORTED_DEVICES := atmel,at91sam9g20ek_2mmc
|
2017-05-03 21:15:20 +00:00
|
|
|
endef
|
2020-08-23 18:15:17 +00:00
|
|
|
TARGET_DEVICES += atmel_at91sam9g20ek-2mmc
|
2017-05-03 21:15:20 +00:00
|
|
|
|
2020-08-23 18:15:17 +00:00
|
|
|
define Device/atmel_at91sam9g25ek
|
2017-05-03 21:15:20 +00:00
|
|
|
$(Device/evaluation)
|
2019-07-10 21:31:42 +00:00
|
|
|
DEVICE_VENDOR := Atmel
|
|
|
|
DEVICE_MODEL := AT91SAM9G25-EK
|
2017-05-03 21:15:20 +00:00
|
|
|
endef
|
2020-08-23 18:15:17 +00:00
|
|
|
TARGET_DEVICES += atmel_at91sam9g25ek
|
2017-05-03 21:15:20 +00:00
|
|
|
|
2020-08-23 18:15:17 +00:00
|
|
|
define Device/atmel_at91sam9g35ek
|
2017-05-03 21:15:20 +00:00
|
|
|
$(Device/evaluation)
|
2019-07-10 21:31:42 +00:00
|
|
|
DEVICE_VENDOR := Atmel
|
|
|
|
DEVICE_MODEL := AT91SAM9G35-EK
|
2017-05-03 21:15:20 +00:00
|
|
|
endef
|
2020-08-23 18:15:17 +00:00
|
|
|
TARGET_DEVICES += atmel_at91sam9g35ek
|
2017-05-03 21:15:20 +00:00
|
|
|
|
2020-08-23 18:15:17 +00:00
|
|
|
define Device/atmel_at91sam9m10g45ek
|
2017-05-03 21:15:20 +00:00
|
|
|
$(Device/evaluation)
|
2019-07-10 21:31:42 +00:00
|
|
|
DEVICE_VENDOR := Atmel
|
|
|
|
DEVICE_MODEL := AT91SAM9M10G45-EK
|
2017-05-03 21:15:20 +00:00
|
|
|
endef
|
2020-08-23 18:15:17 +00:00
|
|
|
TARGET_DEVICES += atmel_at91sam9m10g45ek
|
2017-05-03 21:15:20 +00:00
|
|
|
|
2020-08-23 18:15:17 +00:00
|
|
|
define Device/atmel_at91sam9x25ek
|
2019-09-11 18:35:56 +00:00
|
|
|
$(Device/evaluation-dtb)
|
2019-07-10 21:31:42 +00:00
|
|
|
DEVICE_VENDOR := Atmel
|
|
|
|
DEVICE_MODEL := AT91SAM9X25-EK
|
2019-09-11 18:35:56 +00:00
|
|
|
$(Device/evaluation-sdimage)
|
2017-05-03 21:15:20 +00:00
|
|
|
endef
|
2020-08-23 18:15:17 +00:00
|
|
|
TARGET_DEVICES += atmel_at91sam9x25ek
|
2017-05-03 21:15:20 +00:00
|
|
|
|
2020-08-23 18:15:17 +00:00
|
|
|
define Device/atmel_at91sam9x35ek
|
2019-09-11 18:35:56 +00:00
|
|
|
$(Device/evaluation-dtb)
|
2019-07-10 21:31:42 +00:00
|
|
|
DEVICE_VENDOR := Atmel
|
|
|
|
DEVICE_MODEL := AT91SAM9X35-EK
|
2019-09-11 18:35:56 +00:00
|
|
|
$(Device/evaluation-sdimage)
|
2017-05-03 21:15:20 +00:00
|
|
|
endef
|
2020-08-23 18:15:17 +00:00
|
|
|
TARGET_DEVICES += atmel_at91sam9x35ek
|
2017-05-03 21:15:20 +00:00
|
|
|
|
2020-08-23 18:15:17 +00:00
|
|
|
define Device/calamp_lmu5000
|
2017-05-03 21:15:20 +00:00
|
|
|
$(Device/production)
|
2019-07-10 21:31:42 +00:00
|
|
|
DEVICE_VENDOR := CalAmp
|
|
|
|
DEVICE_MODEL := LMU5000
|
2021-02-25 10:54:43 +00:00
|
|
|
DEVICE_PACKAGES := kmod-rtc-pcf2123 kmod-usb-acm \
|
|
|
|
kmod-usb-serial-option kmod-usb-serial-sierrawireless kmod-gpio-mcp23s08
|
2017-05-03 21:15:20 +00:00
|
|
|
endef
|
2020-08-23 18:15:17 +00:00
|
|
|
TARGET_DEVICES += calamp_lmu5000
|
2017-05-03 21:15:20 +00:00
|
|
|
|
2020-08-23 18:15:17 +00:00
|
|
|
define Device/calao_tny-a9260
|
2017-05-03 21:15:20 +00:00
|
|
|
$(Device/production-dtb)
|
2019-07-10 21:31:42 +00:00
|
|
|
DEVICE_VENDOR := Calao
|
2020-08-23 18:15:17 +00:00
|
|
|
DEVICE_MODEL := TNY A9260
|
|
|
|
DEVICE_DTS := tny_a9260
|
2017-05-03 21:15:20 +00:00
|
|
|
endef
|
2020-08-23 18:15:17 +00:00
|
|
|
TARGET_DEVICES += calao_tny-a9260
|
2017-05-03 21:15:20 +00:00
|
|
|
|
2020-08-23 18:15:17 +00:00
|
|
|
define Device/calao_tny-a9263
|
2017-05-03 21:15:20 +00:00
|
|
|
$(Device/production-dtb)
|
2019-07-10 21:31:42 +00:00
|
|
|
DEVICE_VENDOR := Calao
|
2020-08-23 18:15:17 +00:00
|
|
|
DEVICE_MODEL := TNY A9263
|
|
|
|
DEVICE_DTS := tny_a9263
|
|
|
|
SUPPORTED_DEVICES := atmel,tny-a9263
|
2017-05-03 21:15:20 +00:00
|
|
|
endef
|
2020-08-23 18:15:17 +00:00
|
|
|
TARGET_DEVICES += calao_tny-a9263
|
2017-05-03 21:15:20 +00:00
|
|
|
|
2020-08-23 18:15:17 +00:00
|
|
|
define Device/calao_tny-a9g20
|
2017-05-03 21:15:20 +00:00
|
|
|
$(Device/production-dtb)
|
2019-07-10 21:31:42 +00:00
|
|
|
DEVICE_VENDOR := Calao
|
2020-08-23 18:15:17 +00:00
|
|
|
DEVICE_MODEL := TNY A9G20
|
|
|
|
DEVICE_DTS := tny_a9g20
|
2017-05-03 21:15:20 +00:00
|
|
|
endef
|
2020-08-23 18:15:17 +00:00
|
|
|
TARGET_DEVICES += calao_tny-a9g20
|
2017-05-03 21:15:20 +00:00
|
|
|
|
2020-08-23 18:15:17 +00:00
|
|
|
define Device/calao_usb-a9260
|
2017-05-03 21:15:20 +00:00
|
|
|
$(Device/production-dtb)
|
2019-07-10 21:31:42 +00:00
|
|
|
DEVICE_VENDOR := Calao
|
2020-08-23 18:15:17 +00:00
|
|
|
DEVICE_MODEL := USB A9260
|
|
|
|
DEVICE_DTS := usb_a9260
|
2017-05-03 21:15:20 +00:00
|
|
|
endef
|
2020-08-23 18:15:17 +00:00
|
|
|
TARGET_DEVICES += calao_usb-a9260
|
2017-05-03 21:15:20 +00:00
|
|
|
|
2020-08-23 18:15:17 +00:00
|
|
|
define Device/calao_usb-a9263
|
2017-05-03 21:15:20 +00:00
|
|
|
$(Device/production-dtb)
|
2019-07-10 21:31:42 +00:00
|
|
|
DEVICE_VENDOR := Calao
|
2020-08-23 18:15:17 +00:00
|
|
|
DEVICE_MODEL := USB A9263
|
|
|
|
DEVICE_DTS := usb_a9263
|
|
|
|
SUPPORTED_DEVICES := atmel,usb-a9263
|
2017-05-03 21:15:20 +00:00
|
|
|
endef
|
2020-08-23 18:15:17 +00:00
|
|
|
TARGET_DEVICES += calao_usb-a9263
|
2017-05-03 21:15:20 +00:00
|
|
|
|
2020-08-23 18:15:17 +00:00
|
|
|
define Device/calao_usb-a9g20
|
2017-05-03 21:15:20 +00:00
|
|
|
$(Device/production-dtb)
|
2019-07-10 21:31:42 +00:00
|
|
|
DEVICE_VENDOR := Calao
|
2020-08-23 18:15:17 +00:00
|
|
|
DEVICE_MODEL := USB A9G20
|
|
|
|
DEVICE_DTS := usb_a9g20
|
2017-05-03 21:15:20 +00:00
|
|
|
endef
|
2020-08-23 18:15:17 +00:00
|
|
|
TARGET_DEVICES += calao_usb-a9g20
|
2017-05-03 21:15:20 +00:00
|
|
|
|
2020-08-23 18:15:17 +00:00
|
|
|
define Device/egnite_ethernut5
|
2017-05-03 21:15:20 +00:00
|
|
|
$(Device/evaluation)
|
2019-07-10 21:31:42 +00:00
|
|
|
DEVICE_VENDOR := egnite
|
|
|
|
DEVICE_MODEL := Ethernut 5
|
2017-05-03 21:15:20 +00:00
|
|
|
UBINIZE_OPTS := -E 5
|
|
|
|
endef
|
2020-08-23 18:15:17 +00:00
|
|
|
TARGET_DEVICES += egnite_ethernut5
|
2017-05-03 21:15:20 +00:00
|
|
|
|
2020-08-23 18:15:17 +00:00
|
|
|
define Device/exegin_q5xr5
|
2017-05-03 21:15:20 +00:00
|
|
|
$(Device/production-dtb)
|
2019-07-10 21:31:42 +00:00
|
|
|
DEVICE_VENDOR := Exegin
|
2020-08-23 18:15:17 +00:00
|
|
|
DEVICE_MODEL := Q5x
|
|
|
|
DEVICE_VARIANT := rev5
|
|
|
|
DEVICE_DTS := at91-q5xr5
|
2017-05-03 21:15:20 +00:00
|
|
|
KERNEL_SIZE := 2048k
|
2020-07-28 18:47:33 +00:00
|
|
|
DEFAULT := n
|
2017-05-03 21:15:20 +00:00
|
|
|
endef
|
2020-08-23 18:15:17 +00:00
|
|
|
TARGET_DEVICES += exegin_q5xr5
|
2016-06-10 19:07:32 +00:00
|
|
|
|
2020-08-23 18:15:17 +00:00
|
|
|
define Device/laird_wb45n
|
2016-06-10 19:07:32 +00:00
|
|
|
$(Device/evaluation-fit)
|
2019-07-10 21:31:42 +00:00
|
|
|
DEVICE_VENDOR := Laird
|
|
|
|
DEVICE_MODEL := WB45N
|
2016-06-10 19:07:32 +00:00
|
|
|
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
|
2020-08-23 18:15:17 +00:00
|
|
|
TARGET_DEVICES += laird_wb45n
|