Changeset 3221


Ignore:
Timestamp:
2006-02-12T07:00:38+01:00 (12 years ago)
Author:
nbd
Message:

add support for netgear dg834 and the almost identical sphairon jdr454wb: new images, automatic boot loader patcher, updated flash script (dlink.pl renamed to adam2flash.pl) - Thanks to Jonathan McDowell (Noodles)

Location:
trunk/openwrt
Files:
9 added
3 edited
2 moved

Legend:

Unmodified
Added
Removed
  • trunk/openwrt/scripts/adam2flash.pl

    r3220 r3221  
    4040$setip > 0 or usage(); 
    4141 
     42my @packets; 
     43foreach my $ver ([18, 1], [22, 2]) { 
     44        push @packets, pack("vCCVNV", 0, @$ver, 1, $setip, 0); 
     45} 
    4246print STDERR "Looking for device: "; 
    43 my $packet = pack("vCCVNV", 0, 22, 2, 1, $setip, 0); 
    4447my $broadcast = sockaddr_in(5035, INADDR_BROADCAST); 
    4548my $scanning; 
     
    4851$SIG{"ALRM"} = sub { 
    4952        return if --$scanning <= 0; 
    50         $probe->send($packet, 0, $broadcast); 
     53        foreach my $packet (@packets) { 
     54                $probe->send($packet, 0, $broadcast); 
     55        } 
    5156        print STDERR "."; 
    5257}; 
    5358 
    5459$scanning = 10; 
    55 $probe->send($packet, 0, $broadcast); 
     60foreach my $packet (@packets) { 
     61        $probe->send($packet, 0, $broadcast); 
     62} 
    5663print STDERR "."; 
    5764 
  • trunk/openwrt/target/linux/image/ar7/Makefile

    r3112 r3221  
    8484endef 
    8585 
     86define sercomm_template 
     87$(BIN_DIR)/openwrt-$(1)-$(KERNEL)-$(FS).bin: $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(FS).bin 
     88        cat sercomm/adam2.bin "$$^" > "$$@.tmp" 
     89        dd if=sercomm/$(1) of="$$@.tmp" bs=$$$$((0x3e0000 - 80)) seek=1 conv=notrunc 
     90        $(STAGING_DIR)/bin/dgfirmware -f -w "$$@" "$$@.tmp" 
     91        rm -f "$$@.tmp" 
     92 
     93install: $(BIN_DIR)/openwrt-$(1)-$(KERNEL)-$(FS).bin 
     94endef 
     95 
     96$(eval $(call sercomm_template,dg834)) 
     97$(eval $(call sercomm_template,jdr454wb)) 
     98 
    8699$(eval $(call pattern_template,AG1B)) 
    87100$(eval $(call pattern_template,WA22)) 
  • trunk/openwrt/target/linux/package/base-files/Makefile

    r3112 r3221  
    1616        touch $@ 
    1717 
     18ifeq ($(BOARD),ar7) 
     19$(PKG_BUILD_DIR)/adam2patcher: src/adam2patcher.c 
     20        $(TARGET_CC) -o $@ $< 
     21 
     22$(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/adam2patcher 
     23 
     24$(IDIR_OPENWRT)/sbin/adam2patcher: $(PKG_BUILD_DIR)/adam2patcher 
     25        mkdir -p $(IDIR_OPENWRT)/sbin 
     26        $(CP) $(PKG_BUILD_DIR)/adam2patcher $(IDIR_OPENWRT)/sbin 
     27 
     28$(IPKG_OPENWRT): $(IDIR_OPENWRT)/sbin/adam2patcher 
     29endif 
     30 
    1831ifeq ($(BOARD),brcm) 
    19 $(PKG_BUILD_DIR)/jffs2root: jffs2root.c 
     32$(PKG_BUILD_DIR)/jffs2root: src/jffs2root.c 
    2033        $(TARGET_CC) -o $@ $< 
    2134 
  • trunk/openwrt/target/utils/Makefile

    r3112 r3221  
    11include $(TOPDIR)/rules.mk 
    22 
    3 TARGETS := addpattern trx motorola-bin 
     3TARGETS := addpattern trx motorola-bin dgfirmware 
    44 
    55UTILS_BUILD_DIR:=$(BUILD_DIR)/target-utils 
Note: See TracChangeset for help on using the changeset viewer.