mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2025-12-07 05:04:00 -05:00
Dual-slot NAS based on Marvell Kirkwood.
Specifications:
- Marvell 88F6702 @1GHz
- 256Mb RAM
- 128Mb NAND
- 1x GbE LAN (Marvell 88E1318R)
- 1x USB 2.0
- 2x SATA
- Weltrend WT69P3 ("supervisor" MCU chip)
- Serial on J2 (115200,8n1)
- Newer bootROM so kwboot-ing via serial is possible
Notes:
- The Weltrend MCU is controlled by the package added in utils/dns320l-mcu.
- The original MAC address is stored in the "mini firmware" image's first
17 bytes.
- Compared to the original MTD layout, the uImage+rootfs are now stored in
a common ubi partition.
Installation:
1. Serial console
- Connect your levelshifter to the serial console
on J2 (refer to the wiki page for pinout)
2. Update u-boot
- Download the u-boot.kwb image for the device
- Powercycle the NAS
- Run "kwboot -b u-boot-dns320l/u-boot.kwb /dev/ttyUSB0 -p"
- Connect to the serial console with minicom
- tftp 0x0800000 u-boot-dns320l/u-boot.kwb
(Please note that "PHY reset timed out" seems to be customary
on kirkwood devices, the egiga0 interface works regardless.)
- nand erase 0x0 100000
- nand write 0x0800000 0x0 0x100000
- reset
3. Install OpenWrt
- Boot up the initramfs image
- tftpboot 0x800000 openwrt-kirkwood-generic-dlink_dns320l-initramfs-uImage; bootm 0x800000
- Download the sysupgrade image and perform sysupgrade
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
Reviewed-by: Pawel Dembicki <paweldembicki@gmail.com>
88 lines
2.3 KiB
Makefile
88 lines
2.3 KiB
Makefile
#
|
|
# Copyright (C) 2006-2014 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=uboot-envtools
|
|
PKG_DISTNAME:=u-boot
|
|
PKG_VERSION:=2024.01
|
|
PKG_RELEASE:=3
|
|
|
|
PKG_SOURCE:=$(PKG_DISTNAME)-$(PKG_VERSION).tar.bz2
|
|
PKG_SOURCE_URL:= \
|
|
https://ftp.denx.de/pub/u-boot \
|
|
https://mirror.cyberbits.eu/u-boot \
|
|
ftp://ftp.denx.de/pub/u-boot
|
|
PKG_HASH:=b99611f1ed237bf3541bdc8434b68c96a6e05967061f992443cb30aabebef5b3
|
|
PKG_SOURCE_SUBDIR:=$(PKG_DISTNAME)-$(PKG_VERSION)
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_DISTNAME)-$(PKG_VERSION)
|
|
|
|
PKG_BUILD_DEPENDS:=fstools
|
|
|
|
PKG_LICENSE:=GPL-2.0 GPL-2.0+
|
|
PKG_LICENSE_FILES:=Licenses/README
|
|
|
|
PKG_FLAGS:=nonshared
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/uboot-envtools
|
|
SECTION:=utils
|
|
CATEGORY:=Utilities
|
|
SUBMENU:=Boot Loaders
|
|
TITLE:=read/modify U-Boot bootloader environment
|
|
URL:=http://www.denx.de/wiki/U-Boot
|
|
endef
|
|
|
|
define Package/uboot-envtools/description
|
|
This package includes tools to read and modify U-Boot bootloader environment.
|
|
endef
|
|
|
|
define Build/Configure
|
|
$(call Build/Compile/Default,tools-only_defconfig)
|
|
endef
|
|
|
|
define Build/Compile
|
|
$(call Build/Compile/Default,envtools)
|
|
endef
|
|
|
|
# We need to override the ARCH passed by buildsystem as otherwise the defconfig
|
|
# for tools-only wont match and the includes for sandbox will be dropped
|
|
MAKE_FLAGS += \
|
|
ARCH="sandbox" \
|
|
TARGET_CFLAGS="$(TARGET_CFLAGS)" \
|
|
TARGET_LDFLAGS="$(TARGET_LDFLAGS)"
|
|
|
|
define Package/uboot-envtools/conffiles
|
|
/etc/config/ubootenv
|
|
/etc/fw_env.config
|
|
/etc/fw_sys.config
|
|
endef
|
|
|
|
define Package/uboot-envtools/install
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/env/fw_printenv $(1)/usr/sbin
|
|
$(LN) fw_printenv $(1)/usr/sbin/fw_setenv
|
|
$(INSTALL_BIN) ./files/fw_printsys $(1)/usr/sbin
|
|
$(INSTALL_BIN) ./files/fw_setsys $(1)/usr/sbin
|
|
$(INSTALL_DIR) $(1)/lib
|
|
$(INSTALL_DATA) ./files/uboot-envtools.sh $(1)/lib
|
|
$(INSTALL_DIR) $(1)/etc/uci-defaults
|
|
$(if $(wildcard ./files/$(BOARD)_$(SUBTARGET)), \
|
|
$(INSTALL_DATA) ./files/$(BOARD)_$(SUBTARGET) \
|
|
$(1)/etc/uci-defaults/30_uboot-envtools, \
|
|
$(if $(wildcard ./files/$(BOARD)), \
|
|
$(INSTALL_DATA) ./files/$(BOARD) \
|
|
$(1)/etc/uci-defaults/30_uboot-envtools \
|
|
) \
|
|
)
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,uboot-envtools))
|