diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2011-04-28 21:54:06 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2011-04-28 21:54:06 +0200 |
commit | be441a7f64db3c6f8cf4b66c4fba685ebde32916 (patch) | |
tree | a388117e7d4c637078dfa0df4a3d12d1d2fcfd79 | |
parent | 7d21e25fc4ac3c3bb24204c8fc8c694ccda2b4c8 (diff) | |
parent | 3182a995a0cda63c6988243a64c929395736257e (diff) |
Merge branch 'master' of git+ssh://openadk.org/git/openadk
-rw-r--r-- | mk/build.mk | 4 | ||||
-rw-r--r-- | mk/kernel-vars.mk | 8 | ||||
-rw-r--r-- | target/linux/config/Config.in.netdevice | 12 | ||||
-rw-r--r-- | target/linux/patches/2.6.37/brcm.patch | 17 | ||||
-rw-r--r-- | target/mips/Makefile | 8 |
5 files changed, 36 insertions, 13 deletions
diff --git a/mk/build.mk b/mk/build.mk index 2a3bf2d34..8646c79bc 100644 --- a/mk/build.mk +++ b/mk/build.mk @@ -214,7 +214,7 @@ clean: @$(TRACE) clean $(MAKE) -C $(CONFIG) clean for d in ${STAGING_PKG_DIR}; do \ - for f in $$(ls $$d/[a-z]*|grep -v [A-Z] 2>/dev/null); do \ + for f in $$(ls $$d/[a-z]* 2>/dev/null |grep -v [A-Z] 2>/dev/null); do \ while read file ; do \ rm ${STAGING_DIR}/$$file 2>/dev/null;\ done < $$f ; \ @@ -513,7 +513,7 @@ bulk: ( \ echo === building $$arch $$system $$libc on $$(date); \ $(GMAKE) prereq && \ - $(GMAKE) ARCH=$$arch SYSTEM=$$system LIBC=$$libc FS=archive defconfig; \ + $(GMAKE) ARCH=$$arch SYSTEM=$$system LIBC=$$libc FS=nfsroot defconfig; \ $(GMAKE) VERBOSE=1 all; if [ $$? -ne 0 ]; then touch .exit;fi; \ rm .config; \ ) 2>&1 | tee $(TOPDIR)/bin/$${system}_$${arch}_$$libc/build.log; \ diff --git a/mk/kernel-vars.mk b/mk/kernel-vars.mk index 346a26fc9..e726b14da 100644 --- a/mk/kernel-vars.mk +++ b/mk/kernel-vars.mk @@ -8,10 +8,14 @@ KERNEL_MAKE_OPTS+= CROSS_COMPILE="$(TARGET_CROSS)" ARCH=$(ARCH) \ HOSTCFLAGS='${CFLAGS_FOR_BUILD}' endif ifeq (${ADK_TARGET_BROADCOM_MODEL_LINKSYS_WRT54G},y) -ADK_KCPPFLAGS+= -DBCM47XX_OVERRIDE_FLASHSIZE=0x400000 +ADK_KCPPFLAGS+= -DBCM47XX_OVERRIDE_FLASHSIZE=0x400000 \ + -DBCM47XX_OVERRIDE_NVRAMSIZE=0x10000 \ + -DBCM47XX_OVERRIDE_CFESIZE=0x40000 endif ifeq (${ADK_TARGET_BROADCOM_MODEL_LINKSYS_WRT54GS},y) -ADK_KCPPFLAGS+= -DBCM47XX_OVERRIDE_FLASHSIZE=0x800000 +ADK_KCPPFLAGS+= -DBCM47XX_OVERRIDE_FLASHSIZE=0x800000 \ + -DBCM47XX_OVERRIDE_NVRAMSIZE=0x20000 \ + -DBCM47XX_OVERRIDE_CFESIZE=0x40000 endif KERNEL_MAKE_ENV+= KCPPFLAGS='${ADK_KCPPFLAGS}' diff --git a/target/linux/config/Config.in.netdevice b/target/linux/config/Config.in.netdevice index f942046ac..590a466c4 100644 --- a/target/linux/config/Config.in.netdevice +++ b/target/linux/config/Config.in.netdevice @@ -343,6 +343,18 @@ config ADK_KERNEL_ATH5K_DEBUG config ADK_KPACKAGE_KMOD_B43 prompt "kmod-b43..................... Broadcom B43xx wireless cards" tristate + select ADK_PACKAGE_B43_FIRMWARE + select ADK_KPACKAGE_KMOD_FW_LOADER + select ADK_KPACKAGE_KMOD_MAC80211 + depends on ADK_TARGET_WITH_SSB || ADK_TARGET_WITH_MINIPCI + default n + help + Driver for Broadcom B43xx wireless chips. + +config ADK_KPACKAGE_KMOD_B43LEGACY + prompt "kmod-b43legacy............... Broadcom B43xx (legacy) wireless cards" + tristate + select ADK_PACKAGE_B43_FIRMWARE select ADK_KPACKAGE_KMOD_FW_LOADER select ADK_KPACKAGE_KMOD_MAC80211 depends on ADK_TARGET_WITH_SSB || ADK_TARGET_WITH_MINIPCI diff --git a/target/linux/patches/2.6.37/brcm.patch b/target/linux/patches/2.6.37/brcm.patch index c484dc838..e1f0ecbde 100644 --- a/target/linux/patches/2.6.37/brcm.patch +++ b/target/linux/patches/2.6.37/brcm.patch @@ -9,8 +9,8 @@ diff -Nur linux-2.6.37.orig/arch/mips/bcm47xx/Makefile linux-2.6.37/arch/mips/bc +obj-y := gpio.o irq.o nvram.o prom.o serial.o setup.o time.o platform.o diff -Nur linux-2.6.37.orig/arch/mips/bcm47xx/platform.c linux-2.6.37/arch/mips/bcm47xx/platform.c --- linux-2.6.37.orig/arch/mips/bcm47xx/platform.c 1970-01-01 01:00:00.000000000 +0100 -+++ linux-2.6.37/arch/mips/bcm47xx/platform.c 2011-04-26 21:54:17.727672777 +0200 -@@ -0,0 +1,147 @@ ++++ linux-2.6.37/arch/mips/bcm47xx/platform.c 2011-04-27 09:51:38.177664121 +0200 +@@ -0,0 +1,146 @@ +/* + * This file is subject to the terms and conditions of the GNU General Public + * License. See the file "COPYING" in the main directory of this archive @@ -28,7 +28,6 @@ diff -Nur linux-2.6.37.orig/arch/mips/bcm47xx/platform.c linux-2.6.37/arch/mips/ +#include <asm/mach-bcm47xx/bcm47xx.h> +#include <asm/mach-bcm47xx/nvram.h> + -+#define NVRAM_FLASH_SIZE 0x10000 +#define CFGFS_FLASH_SIZE (128 * 1024) + +static struct mtd_partition bcm47xx_partitions[] = { @@ -36,8 +35,8 @@ diff -Nur linux-2.6.37.orig/arch/mips/bcm47xx/platform.c linux-2.6.37/arch/mips/ + { + .name = "cfe", + .offset = 0, -+ .size = 0x40000, /* 256k */ -+ .mask_flags = MTD_WRITEABLE /* force read-only */ ++ .size = BCM47XX_OVERRIDE_CFESIZE, ++ .mask_flags = MTD_WRITEABLE /* force read-only */ + }, +#define SLOT_LINUX 1 + { @@ -108,7 +107,7 @@ diff -Nur linux-2.6.37.orig/arch/mips/bcm47xx/platform.c linux-2.6.37/arch/mips/ + struct ssb_mipscore *mcore = &ssb_bcm47xx.mipscore; + struct bcm47xx_trx_header *trx_hdr; + -+ trx_hdr = (void *)KSEG1ADDR(mcore->flash_window + 0x40000); ++ trx_hdr = (void *)KSEG1ADDR(mcore->flash_window + BCM47XX_OVERRIDE_CFESIZE); + + /* devices might have 2, 4 or 8 MB flash size */ +#ifdef BCM47XX_OVERRIDE_FLASHSIZE @@ -122,11 +121,11 @@ diff -Nur linux-2.6.37.orig/arch/mips/bcm47xx/platform.c linux-2.6.37/arch/mips/ + printk(KERN_INFO "FLASH SIZE%s: %x\n", BCM47XX_OVERRODE_FLASHSIZE, + flash_size); + -+ left = flash_size - 0x40000; ++ left = flash_size - BCM47XX_OVERRIDE_CFESIZE; + posn = flash_size; -+ UPTODOWN(SLOT_NVRAM, NVRAM_FLASH_SIZE); ++ UPTODOWN(SLOT_NVRAM, BCM47XX_OVERRIDE_NVRAMSIZE); + UPTODOWN(SLOT_CFGFS, CFGFS_FLASH_SIZE); -+ bcm47xx_partitions[SLOT_LINUX].offset = 0x40000; ++ bcm47xx_partitions[SLOT_LINUX].offset = BCM47XX_OVERRIDE_CFESIZE; + bcm47xx_partitions[SLOT_LINUX].size = left; + + if (trx_hdr->magic == BCM47XX_TRX_MAGIC) { diff --git a/target/mips/Makefile b/target/mips/Makefile index abb98a107..5c2dad231 100644 --- a/target/mips/Makefile +++ b/target/mips/Makefile @@ -49,6 +49,14 @@ ifeq ($(ADK_TARGET_SYSTEM_MIKROTIK_RB532),y) kernel-install: $(TARGET_CROSS)objcopy $(OSTRIP) -S $(KERNEL) $(BUILD_DIR)/$(TARGET_KERNEL) endif +ifeq ($(ADK_TARGET_SYSTEM_MIKROTIK_RB411),y) +kernel-install: + $(TARGET_CROSS)objcopy $(OSTRIP) -S $(KERNEL) $(TARGET_DIR)/boot/kernel +endif +ifeq ($(ADK_TARGET_SYSTEM_MIKROTIK_RB433),y) +kernel-install: + $(TARGET_CROSS)objcopy $(OSTRIP) -S $(KERNEL) $(TARGET_DIR)/boot/kernel +endif ifeq ($(ADK_TARGET_FS),nfsroot) imageinstall: kernel-install $(BIN_DIR)/$(ROOTFSUSERTARBALL) |