On 2018-02-22 09:58, Linus Walleij wrote:
On Wed, Feb 21, 2018 at 6:10 PM, Hans Ulli Kroll
<[email protected]> wrote:
Hi Linus
Since Openwrt codebase is *very* outdated and old, v4.4 with mach
files
and only one/two I've done some work on updating this mess.
Now I can build with v4.14.x, now I need to sort out how I can append
DTB
and build the flash binaries / hardddisk images.
Does Roman have plans? It seems he is still the maintainer.
Yes, just didn't have enough time :/
I have 4.9 in my staging but 4.14 with dts sounds better of cause.
Though it's a major change and I would probably better update to 4.9
first, so it could be included in release and then update to 4.14 with
conversion to Device/ infrastructure.
I looked at it briefly but couldn't get anywhere with it, but the
OpenWRT build system seems to have built-in rules to append
DTB as used by bcm and others. Many improvements in the
build system overall, seems very neat.
Yes, it's pretty easy to use
A bunch of stuff (like appending machine code to set the machine
type) can simply be dropped.
We should build all DTBs and create images for them. When we
bump to v4.16 I can patch in my DNS-313 image creation utility
as well.
This is my (unfinished) rewritten fragment for v4.14 based mostly
on bcm:
target/linux/gemini/Makefile
#
# Copyright (C) 2009-2018 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License
v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
ARCH:=arm
BOARD:=gemini
BOARDNAME:=Cortina Systems CS351x
FEATURES:=squashfs pci rtc
MAINTAINER:=Roman Yeryomin <[email protected]>
CPU_TYPE:=fa526
KERNEL_PATCHVER:=4.14
define Target/Description
Build firmware images for the StorLink/Cortina Gemini CS351x
ARM FA526 CPU
endef
include $(INCLUDE_DIR)/target.mk
KERNELNAME:=zImage dtbs
$(eval $(call BuildTarget))
target/linux/gemini/image/Makefile
#
# Copyright (C) 2009-2014 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License
v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/image.mk
define Build/wbd-nops
# work around the bootloader's bug with extra nops
mv $@ [email protected]
echo -en
"\x00\x00\xa0\xe1\x00\x00\xa0\xe1\x00\x00\xa0\xe1\x00\x00\xa0\xe1" >
$@
cat [email protected] >> $@
rm -f [email protected]
endef
define Device/Default
# All DTB files are prefixed with "gemini-"
DEVICE_DTS := $(patsubst %.dtb,%,$(notdir $(wildcard $(if
$(IB),$(KDIR),$(DTS_DIR))/*-$(1).dtb)))
KERNEL := kernel-bin | append-dtb
KERNEL_DEPENDS = $$(wildcard $(DTS_DIR)/$$(DEVICE_DTS).dts)
KERNEL_NAME := zImage
IMAGE_NAME := $$(IMAGE_PREFIX)-$$(1).$$(2)
BLOCKSIZE := 128k
endef
define Device/dlink-dir-685
DEVICE_TITLE := D-Link DIR-685 Xtreme N Storage Router
endef
TARGET_DEVICES += dlink-dir-685
define Device/nas4220b
DEVICE_TITLE := Raidsonic NAS IB-4220-B
endef
TARGET_DEVICES += nas4220b
define Device/rut1xx
DEVICE_TITLE := Teltonika RUT1xx
endef
TARGET_DEVICES += rut1xx
define Device/sq201
DEVICE_TITLE := ITian Square One SQ201
endef
TARGET_DEVICES += sq201
define Device/wbd111
DEVICE_TITLE := Wiliboard WBD-111
endef
TARGET_DEVICES += wbd111
define Device/wbd222
DEVICE_TITLE := Wiliboard WBD-222
endef
TARGET_DEVICES += wbd222
$(eval $(call BuildImage))
Looks valid, did you try building it?
Regards,
Roman
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel