From 4c509fb2b812a34246078b97e92425d3578ec3ef Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Wed, 16 Dec 2009 19:55:02 +0100 Subject: add basic support for ag241 ar7 based dsl router - my wag54g died. disable wag54g for now. - add 2.6.32 support for ag241. - cpmac still broken --- target/ag241/Makefile | 54 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 target/ag241/Makefile (limited to 'target/ag241/Makefile') diff --git a/target/ag241/Makefile b/target/ag241/Makefile new file mode 100644 index 000000000..abfaf7bef --- /dev/null +++ b/target/ag241/Makefile @@ -0,0 +1,54 @@ +# $Id: Makefile 30 2008-09-04 13:31:09Z wbx $ +#- +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include $(TOPDIR)/rules.mk +include $(TOPDIR)/mk/kernel.mk +include $(TOPDIR)/mk/modules.mk +include $(TOPDIR)/mk/kernel-build.mk +include $(TOPDIR)/mk/image.mk + +$(TOOLS_BUILD_DIR): + mkdir -p $(TOOLS_BUILD_DIR) + +tools-compile: $(TOOLS_BUILD_DIR) + $(MAKE) -C tools/addpattern + $(MAKE) -C tools/srec2bin + $(MAKE) -C tools/squashfs prepare compile install + +kernel-install: tools-compile + PATH='${TARGET_PATH}' \ + mipsel-linux-objcopy -S -O srec $(LINUX_DIR)/vmlinux \ + $(LINUX_DIR)/vmlinux.srec + PATH='${TARGET_PATH}' \ + srec2bin $(LINUX_DIR)/vmlinux.srec $(LINUX_DIR)/vmlinux.bin + (dd if=/dev/zero bs=16 count=1; cat $(LINUX_DIR)/vmlinux.bin) > \ + $(LINUX_DIR)/vmlinux.tmp + PATH='${TARGET_PATH}' \ + addpattern -p AG3B -b -r 2.0 -i $(LINUX_DIR)/vmlinux.tmp \ + -o $(BIN_DIR)/${ADK_TARGET}-${ARCH}-kernel + +ifeq ($(FS),squashfs) +imageinstall: $(BIN_DIR)/$(ROOTFSSQUASHFS) + ${CP} ${BUILD_DIR}/${ROOTFSSQUASHFS} $(BIN_DIR)/$(ROOTFSSQUASHFS) + @echo + @echo The image file is $(ROOTFSSQUASHFS) + @echo 'You can flash the image via tftp:' + @echo 'tftp 192.168.1.1' + @echo 'tftp> binary' + @echo "tftp> put $(ROOTFSSQUASHFS) upgrade_code.bin" + @echo 'Login as user root with password linux123 via ssh or console' +endif + +ifeq ($(FS),nfsroot) +imageinstall: $(BIN_DIR)/$(ROOTFSTARBALL) + @echo + @echo 'The kernel file is: ${BIN_DIR}/${ADK_TARGET}-${ARCH}-kernel' + @echo 'The nfs root tarball is: ${BIN_DIR}/${ROOTFSTARBALL}' + @echo 'You can flash the kernel via tftp:' + @echo 'tftp 192.168.1.1' + @echo 'tftp> binary' + @echo 'tftp> put ag241-mips-kernel upgrade_code.bin' + @echo 'Login as user root with password linux123 via ssh or console' +endif -- cgit v1.2.3 From cac2cd65b190f7eb2b678886052621405d30e9de Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Thu, 17 Dec 2009 21:29:33 +0100 Subject: check image size --- target/ag241/Makefile | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'target/ag241/Makefile') diff --git a/target/ag241/Makefile b/target/ag241/Makefile index abfaf7bef..e1c5b47a5 100644 --- a/target/ag241/Makefile +++ b/target/ag241/Makefile @@ -31,14 +31,17 @@ kernel-install: tools-compile ifeq ($(FS),squashfs) imageinstall: $(BIN_DIR)/$(ROOTFSSQUASHFS) - ${CP} ${BUILD_DIR}/${ROOTFSSQUASHFS} $(BIN_DIR)/$(ROOTFSSQUASHFS) - @echo - @echo The image file is $(ROOTFSSQUASHFS) - @echo 'You can flash the image via tftp:' - @echo 'tftp 192.168.1.1' - @echo 'tftp> binary' - @echo "tftp> put $(ROOTFSSQUASHFS) upgrade_code.bin" - @echo 'Login as user root with password linux123 via ssh or console' + @if [ $$(stat --format=%s ${BUILD_DIR}/${ROOTFSSQUASHFS}) -gt 4063233 ];then \ + echo 'Image is too big!'; \ + else \ + ${CP} ${BUILD_DIR}/${ROOTFSSQUASHFS} $(BIN_DIR)/$(ROOTFSSQUASHFS); \ + echo The image file is $(ROOTFSSQUASHFS); \ + echo 'You can flash the image via tftp:'; \ + echo 'tftp 192.168.1.1'; \ + echo 'tftp> binary'; \ + echo "tftp> put $(ROOTFSSQUASHFS) upgrade_code.bin"; \ + echo 'Login as user root with password linux123 via ssh or console'; \ + fi endif ifeq ($(FS),nfsroot) -- cgit v1.2.3 From ecccdfb45e27df5d9ee6deba57fb4fa28131a59d Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Fri, 18 Dec 2009 08:44:40 +0100 Subject: enable pppoa and fix dsl driver - fix dsl driver crash, sync is now successful - add ppp ppp over atm --- target/ag241/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'target/ag241/Makefile') diff --git a/target/ag241/Makefile b/target/ag241/Makefile index e1c5b47a5..730b06bfa 100644 --- a/target/ag241/Makefile +++ b/target/ag241/Makefile @@ -31,10 +31,10 @@ kernel-install: tools-compile ifeq ($(FS),squashfs) imageinstall: $(BIN_DIR)/$(ROOTFSSQUASHFS) - @if [ $$(stat --format=%s ${BUILD_DIR}/${ROOTFSSQUASHFS}) -gt 4063233 ];then \ + @if [ $$(stat --format=%s ${BUILD_DIR}/${ROOTFSSQUASHFS}) -gt 3801088 ];then \ echo 'Image is too big!'; \ else \ - ${CP} ${BUILD_DIR}/${ROOTFSSQUASHFS} $(BIN_DIR)/$(ROOTFSSQUASHFS); \ + ${CP} ${BUILD_DIR}/${ROOTFSSQUASHFS} ${BIN_DIR}/${ROOTFSSQUASHFS}; \ echo The image file is $(ROOTFSSQUASHFS); \ echo 'You can flash the image via tftp:'; \ echo 'tftp 192.168.1.1'; \ -- cgit v1.2.3