[OpenWrt-Devel] Booting D-Link DNS-313, for for 18.03 ??
Linus Walleij
linus.walleij at linaro.org
Thu Feb 22 02:58:20 EST 2018
On Wed, Feb 21, 2018 at 6:10 PM, Hans Ulli Kroll
<ulli.kroll at googlemail.com> 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.
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.
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 <roman at advem.lv>
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 $@ $@.tmp
echo -en
"\x00\x00\xa0\xe1\x00\x00\xa0\xe1\x00\x00\xa0\xe1\x00\x00\xa0\xe1" >
$@
cat $@.tmp >> $@
rm -f $@.tmp
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))
Yours,
Linus Walleij
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list