Hardware specs:
- NXP T4240, 12C/24T @ 1.67 GHz
- 3 × 2 GB DDR3 SO-DIMM
- 128 MB NOR flash
- 2 GB SLC NAND
- SD card interface
- PCIe: x4 and x8
- SATA 3 Gbps
- 8 × 1 GbE
- 4 × 10 GbE SFP
- RTC
This commit adds the sysupgrade and factory images for T4240RDB board in
both variants:
- nor: for booting and read whole system from NOR memory
- sdboot: for booting and read whole system from SD card
SD Card images install:
- Burn image to sdcard. E.g:
gunzip -c gunzip -c openwrt-qoriq-generic-fsl_T4240RDB-squashfs-sdcard.img.gz | \
sudo dd of=/dev/mmcblk0 conv=fsync,notrunc status=progress bs=4M && sync
- Download lastest Cortina PHY firmware from NXP github [1], if you accept their
EULA [2].
- Install Cortina PHY on image, E.g:
dd if=cs4315-cs4340-PHY-ucode.txt of=/dev/mmcblk0 bs=1 seek=2M
- Insert SD-Card to SD slot
- Switch SW3.4 to OFF
- Configre mac addresses from sticker in u-boot. E.g:
setenv ethaddr 00:10:f3:3a:a8:66
setenv eth1addr 00:10:f3:3a:a8:67
setenv eth2addr 00:10:f3:3a:a8:68
setenv eth3addr 00:10:f3:3a:a8:69
setenv eth4addr 00:10:f3:3a:a8:6a
setenv eth5addr 00:10:f3:3a:a8:6b
setenv eth6addr 00:10:f3:3a:a8:6c
setenv eth7addr 00:10:f3:3a:a8:6d
setenv eth8addr 00:10:f3:3a:a8:6e
setenv eth9addr 00:10:f3:3a:a8:6f
setenv eth10addr 00:10:f3:3a:a8:70
setenv eth11addr 00:10:f3:3a:a8:71
saveenv
- reset and boot
NOR images install:
- download and extract factory image on tftp server root
- boot device and stop in u-boot (from nor or sd card u-boot)
- configure server and ip address. E.g:
setenv ipaddr 192.168.1.2
setenv serverip 192.168.1.1
- Download image and run flashing:
tftpboot $loadaddr openwrt-qoriq-generic-fsl_T4240RDB-squashfs-factory-nor.bin
protect off all
erase $fwaddr +$filesize
cp.b $loadaddr $fwaddr $filesize
- Switch SW3.4 to ON
- Switch SW3.1-3 to OFF
- reboot
- Do postprocessing (see bellow)
NOR images post processing:
- Configre mac addresses from sticker in u-boot. E.g:
setenv ethaddr 00:10:f3:3a:a8:66
setenv eth1addr 00:10:f3:3a:a8:67
setenv eth2addr 00:10:f3:3a:a8:68
setenv eth3addr 00:10:f3:3a:a8:69
setenv eth4addr 00:10:f3:3a:a8:6a
setenv eth5addr 00:10:f3:3a:a8:6b
setenv eth6addr 00:10:f3:3a:a8:6c
setenv eth7addr 00:10:f3:3a:a8:6d
setenv eth8addr 00:10:f3:3a:a8:6e
setenv eth9addr 00:10:f3:3a:a8:6f
setenv eth10addr 00:10:f3:3a:a8:70
setenv eth11addr 00:10:f3:3a:a8:71
saveenv
- boot
- Download and refresh RCW stored in eeprom:
tr '\0' '\377' < /dev/zero | dd bs=256 of=/sys/bus/i2c/devices/0-0050/eeprom
cat /tmp/openwrt-qoriq-generic-fsl_T4240RDB-squashfs-rcw.bin > /sys/bus/i2c/devices/0-0050/eeprom
- Download lastest Cortina PHY firmware from NXP github [1], if you accept their
EULA [2].
- Install Cortina PHY on image, E.g:
mtd write cs4315-cs4340-PHY-ucode.txt /dev/mtd4
- reset and boot
[1] https://raw.githubusercontent.com/nxp-qoriq/qoriq-firmware-cortina/refs/tags/lf-6.12.34-2.1.0/cs4315-cs4340-PHY-ucode.txt
[2] https://github.com/nxp-qoriq/qoriq-firmware-cortina/blob/lf-6.12.34-2.1.0/EULA.txt
Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/10941
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
48 lines
2.0 KiB
Makefile
48 lines
2.0 KiB
Makefile
define Device/fsl_T4240RDB
|
|
DEVICE_VENDOR := NXP
|
|
DEVICE_MODEL := T4240RDB
|
|
DEVICE_DTS_DIR := $(DTS_DIR)/fsl
|
|
DEVICE_PACKAGES := \
|
|
kmod-eeprom-at24 kmod-gpio-button-hotplug kmod-hwmon-w83793 kmod-leds-gpio \
|
|
kmod-ptp-qoriq kmod-rtc-ds1374 u-boot-fsl_T4240RDB-nor u-boot-fsl_T4240RDB-sdboot
|
|
FILESYSTEMS := squashfs
|
|
KERNEL := kernel-bin | gzip | fit gzip $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb
|
|
IMAGES := factory-nor.bin.gz sdcard.img.gz rcw.bin sysupgrade.bin
|
|
IMAGE/factory-nor.bin.gz := \
|
|
append-kernel | append-rootfs | pad-rootfs | pad-to 126M | \
|
|
pad-to 127M | \
|
|
ls-append fsl_t4240-rdb-fman.bin | pad-to 130176k | \
|
|
ls-append $(1)-nor-uboot-env.bin | pad-to 130304k | \
|
|
ls-append $(1)-nor-uboot.bin | gzip
|
|
IMAGE/rcw.bin := ls-append $(1)-rcw.bin
|
|
IMAGE/sdcard.img.gz := \
|
|
ls-clean | \
|
|
ls-append-sdhead $(1) | pad-to 4K | \
|
|
ls-append $(1)-sdboot-uboot.bin | pad-to 1028k | \
|
|
ls-append $(1)-sdboot-uboot-env.bin | pad-to 1040k | \
|
|
ls-append fsl_t4240-rdb-fman.bin | pad-to 2M | \
|
|
pad-to $(LS_SD_KERNELPART_OFFSET)M | \
|
|
ls-append-kernel | pad-to $(LS_SD_ROOTFSPART_OFFSET)M | \
|
|
append-rootfs | pad-to $(LS_SD_IMAGE_SIZE)M | gzip
|
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
endef
|
|
TARGET_DEVICES += fsl_T4240RDB
|
|
|
|
define Device/watchguard_firebox-m300
|
|
DEVICE_VENDOR := WatchGuard
|
|
DEVICE_MODEL := Firebox M300
|
|
DEVICE_COMPAT_MESSAGE := \
|
|
Kernel switched to FIT uImage. Update U-Boot environment.
|
|
DEVICE_COMPAT_VERSION := 1.1
|
|
DEVICE_DTS_DIR := $(DTS_DIR)/fsl
|
|
DEVICE_PACKAGES := \
|
|
kmod-gpio-button-hotplug kmod-hwmon-w83793 kmod-leds-gpio kmod-ptp-qoriq \
|
|
kmod-rtc-rs5c372a kmod-tpm-i2c-atmel kmod-dsa-mv88e6xxx
|
|
KERNEL := kernel-bin | gzip | fit gzip $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb
|
|
KERNEL_SUFFIX := -fit-uImage.itb
|
|
IMAGES := sdcard.img.gz sysupgrade.img.gz
|
|
IMAGE/sysupgrade.img.gz := sdcard-img | gzip | append-metadata
|
|
IMAGE/sdcard.img.gz := sdcard-img | gzip
|
|
endef
|
|
TARGET_DEVICES += watchguard_firebox-m300
|