Openwrt/package/firmware/layerscape/ls-rcw/Makefile
Tomasz Maciej Nowak 3a3d998c12 layerscape: resurrect support for FRDM-LS1012A
Re-add support for NXP FRDM-LS1012A, which mimics the flash layout of the
rest boards supported by LSDK.

0x000000000000-0x000000100000 : "bl2"
0x000000100000-0x000000500000 : "fip"
0x000000500000-0x000000600000 : "u-boot-env"
0x000000600000-0x000000a00000 : "reserved-1"
0x000000a00000-0x000000d00000 : "pfe"
0x000000d00000-0x000000f00000 : "reserved-2"
0x000000f00000-0x000001000000 : "dtb"
0x000001000000-0x000002000000 : "kernel"
0x000002000000-0x000004000000 : "ubifs"

Specification
SoC: LS1012A single core 800MHz
RAM: 512 MB DDR3
Flash: 64 MB QSPI NOR
Ethernet: 2x 10/100/1000 Mbps
Connectors: µUSB 3.0 OTG
            µUSB 2.0 (debugging & power input)
            2x 3.5mm jack for microphone & headphone (SGTL5000)
            Arduino Shield expansion with I2C, SPI, UART, and GPIO
            JTAG
LEDS: 3x (non-configurable)
Buttons: 1x (reset, non-configurable)

Be advised that erasing or writing 64MB flash takes some time to finish.
Do not reset the board until all operations end with success, otherwise
You'll need external tools to re-program the flash chip.

Installation
Follow the QSPI programing procedure for LS1012AFRWY board in
target/linux/layerscape/README, point 3.3.
Don't forget about updating U-Boot environment with MAC addresses of
ethernet interfaces, variable 'ethaddr' for eth0 and 'eth1addr' for eth1.

As the LSDK images do not support sysupgrade, nor do changes in this
commit, it's planed in upcoming submissions.

Signed-off-by: Tomasz Maciej Nowak <tomek_n@o2.pl>
2020-03-12 12:59:44 +01:00

112 lines
2.9 KiB
Makefile

#
# Copyright (C) 2016 Jiang Yutang <jiangyutang1978@gmail.com>
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=ls-rcw
PKG_VERSION:=lsdk-1903
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://source.codeaurora.org/external/qoriq/qoriq-components/rcw
PKG_SOURCE_VERSION:=f1377876cc06a87ec8afa8a3412ca7c8455861f2
PKG_MIRROR_HASH:=a9c97755809994a668ee5f0e535cef9f344fc5523c4299ac76f26c63976c80bc
include $(INCLUDE_DIR)/package.mk
define Package/layerscape-rcw/Config
define Package/layerscape-rcw-$(1)
SECTION:=firmware
CATEGORY:=Firmware
TITLE:=$(2)
DEPENDS:=@TARGET_layerscape
CONFIG:=$(3)
endef
endef
define Package/layerscape-rcw/ls1012afrdm
TITLE:=NXP LS1012AFRDM RCW binary
CONFIG:=ls1012afrdm/N_SSNP_3305/rcw_800.bin
endef
define Package/layerscape-rcw/ls1012ardb
TITLE:=NXP LS1012ARDB RCW binary
CONFIG:=ls1012ardb/R_SPNH_3508/rcw_1000_default.bin
endef
define Package/layerscape-rcw/ls1012afrwy
TITLE:=NXP LS1012AFRWY RCW binary
CONFIG:=ls1012afrwy/N_SSNP_3305/rcw_1000_default.bin
endef
define Package/layerscape-rcw/ls1043ardb
TITLE:=NXP LS1043ARDB RCW binary
CONFIG:=ls1043ardb/RR_FQPP_1455/rcw_1600.bin
endef
define Package/layerscape-rcw/ls1043ardb-sdboot
TITLE:=NXP LS1043ARDB SD card boot RCW binary
CONFIG:=ls1043ardb/RR_FQPP_1455/rcw_1600_sdboot.bin
endef
define Package/layerscape-rcw/ls1046ardb
TITLE:=NXP LS1046ARDB RCW binary
CONFIG:=ls1046ardb/RR_FFSSPPPH_1133_5559/rcw_1800_qspiboot.bin
endef
define Package/layerscape-rcw/ls1046ardb-sdboot
TITLE:=NXP LS1046ARDB SD card boot RCW binary
CONFIG:=ls1046ardb/RR_FFSSPPPH_1133_5559/rcw_1800_sdboot.bin
endef
define Package/layerscape-rcw/ls1088ardb
TITLE:=NXP LS1088ARDB RCW binary
CONFIG:=ls1088ardb/FCQQQQQQQQ_PPP_H_0x1d_0x0d/rcw_1600_qspi.bin
endef
define Package/layerscape-rcw/ls1088ardb-sdboot
TITLE:=NXP LS1088ARDB SD card boot RCW binary
CONFIG:=ls1088ardb/FCQQQQQQQQ_PPP_H_0x1d_0x0d/rcw_1600_sd.bin
endef
define Package/layerscape-rcw/ls2088ardb
TITLE:=NXP LS2088ARDB RCW binary
CONFIG:=ls2088ardb/FFFFFFFF_PP_HH_0x2a_0x41/rcw_1800.bin
endef
define Package/layerscape-rcw/ls1021atwr
TITLE:=NXP LS1021ATWR RCW binary
CONFIG:=ls1021atwr/SSR_PNS_30/rcw_1200.bin
endef
define Package/layerscape-rcw/Install
define Package/layerscape-rcw-$(1)/install
$(INSTALL_DIR) $(STAGING_DIR_IMAGE)
$(CP) $(PKG_BUILD_DIR)/$(CONFIG) $(STAGING_DIR_IMAGE)/$(1)-rcw.bin
endef
endef
RCWS := \
ls1012afrdm \
ls1012ardb \
ls1012afrwy \
ls1043ardb \
ls1043ardb-sdboot \
ls1046ardb \
ls1046ardb-sdboot \
ls1088ardb \
ls1088ardb-sdboot \
ls2088ardb \
ls1021atwr
$(foreach rcw,$(RCWS), \
$(eval $(Package/layerscape-rcw/$(rcw))) \
$(eval $(call Package/layerscape-rcw/Config,$(rcw),$(TITLE),$(CONFIG))) \
$(eval $(call Package/layerscape-rcw/Install,$(rcw))) \
$(eval $(call BuildPackage,layerscape-rcw-$(rcw))) \
)