Changeset 33206


Ignore:
Timestamp:
2012-08-17T19:56:07+02:00 (5 years ago)
Author:
juhosg
Message:

ramips: add board alias for the ALL0239-3G

Generate image for the ALL0239-3G which can be flashed through the
chipset-vendor SDK based firmware's web-interface and bootloader.

The bootloader seems to ignore uImage checksum errors, but does complain about
them once the 0xDEADC0DE was replaced by an actual JFFS2 page.

I'm working on implementing fixtrx for uImage in the mtd package to solve this.

Signed-off-by: Daniel Golle <dgolle@…>

Location:
trunk/target/linux/ramips
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ramips/base-files/etc/diag.sh

    r33205 r33206  
    5252                status_led="fonera20n:green:power" 
    5353                ;; 
     54        all0239-3g|\ 
    5455        hw550-3g) 
    5556                status_led="hw550-3g:green:status" 
  • trunk/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom

    r33205 r33206  
    5454 
    5555        3g-6200n | \ 
     56        all0239-3g | \ 
    5657        all0256n | \ 
    5758        all5002 | \ 
  • trunk/target/linux/ramips/base-files/etc/uci-defaults/leds

    r33205 r33206  
    5050                set_wifi_led "fonera20n:orange:wifi" 
    5151                ;; 
     52        all0239-3g|\ 
    5253        hw550-3g) 
    5354                set_usb_led "hw550-3g:green:usb" 
  • trunk/target/linux/ramips/base-files/etc/uci-defaults/network

    r33205 r33206  
    153153                ;; 
    154154 
     155        all0239-3g | \ 
    155156        w502u) 
    156                 lan_mac=$(ramips_get_mac_binary factory 40) 
    157                 wan_mac=$(ramips_get_mac_binary factory 46) 
     157                lan_mac=$(ramips_get_mac_binary factory 40) 
     158                wan_mac=$(ramips_get_mac_binary factory 46) 
    158159                ;; 
    159160 
  • trunk/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac

    r33205 r33206  
    3535                ifconfig eth0 hw ether $mac 2>/dev/null 
    3636                ;; 
     37        all0239-3g |\ 
    3738        all0256n |\ 
    3839        all5002 |\ 
  • trunk/target/linux/ramips/base-files/lib/ramips.sh

    r33205 r33206  
    5050        *"Edimax 3g-6200n") 
    5151                name="3g-6200n" 
     52                ;; 
     53        *"Allnet ALL0239-3G") 
     54                name="all0239-3g" 
    5255                ;; 
    5356        *"Allnet ALL0256N") 
  • trunk/target/linux/ramips/base-files/lib/upgrade/platform.sh

    r33205 r33206  
    1616        case "$board" in 
    1717        3g-6200n | \ 
     18        all0239-3g | \ 
    1819        all0256n | \ 
    1920        all5002 | \ 
  • trunk/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/machine.h

    r33205 r33206  
    3636 
    3737        /* RT3052 based machines */ 
     38        RAMIPS_MACH_ALL0239_3G,         /* ALL0239-3G */ 
    3839        RAMIPS_MACH_ARGUS_ATP52B,       /* Argus ATP-52B */ 
    3940        RAMIPS_MACH_BC2,                /* NexAira BC2 */ 
  • trunk/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-hw550-3g.c

    r30650 r33206  
    101101MIPS_MACHINE(RAMIPS_MACH_HW550_3G, "HW550-3G", "Aztech HW550-3G", 
    102102             hw550_3g_init); 
     103 
     104MIPS_MACHINE(RAMIPS_MACH_ALL0239_3G, "ALL0239-3G", "Allnet ALL0239-3G", 
     105             hw550_3g_init); 
  • trunk/target/linux/ramips/image/Makefile

    r33205 r33206  
    6161endef 
    6262 
     63define MkCombineduImage 
     64        $(call PatchKernelLzma,$(2),$(3)) 
     65        if [ `stat -c%s "$(KDIR)/vmlinux-$(2).bin.lzma"` -gt `expr $(4) - 64` ]; then \ 
     66                echo "Warning: $(KDIR)/vmlinux-$(2).bin.lzma is too big"; \ 
     67        else if [ `stat -c%s "$(KDIR)/root.$(1)"` -gt $(5) ]; then \ 
     68                echo "Warning: $(KDIR)/root.$(1) is too big"; \ 
     69        else \ 
     70                ( dd if=$(KDIR)/vmlinux-$(2).bin.lzma bs=`expr $(4) - 64` conv=sync ; dd if=$(KDIR)/root.$(1) ) > $(KDIR)/vmlinux-$(2).bin.lzma.combined ; \ 
     71        fi ; fi 
     72        $(call MkImage,lzma,$(KDIR)/vmlinux-$(2).bin.lzma.combined,$(call sysupname,$(1),$(2)),$(6)) 
     73endef 
     74 
    6375define CatFiles 
    6476        if [ `stat -c%s "$(1)"` -gt $(2) ]; then \ 
     
    124136define BuildFirmware/GENERIC_8M/initramfs 
    125137        $(call BuildFirmware/Generic/initramfs,$(1),$(2),$(call mkcmdline,$(3),$(4),$(5)) $(call mkmtd/$(6),$(mtdlayout_8M))) 
     138endef 
     139 
     140define BuildFirmware/UIMAGE_8M 
     141        $(call MkCombineduImage,$(1),$(2),$(call mkcmdline,$(3),$(4),$(5)) $(call mkmtd/$(6),$(mtdlayout_8M)),$(kernel_size_8M),$(rootfs_size_8M),$(7)) 
    126142endef 
    127143 
     
    368384endef 
    369385 
     386define Image/Build/Profile/ALL02393G 
     387        $(call Image/Build/Template/$(fs_squash)/$(1),UIMAGE_8M,all0239-3g,ALL0239-3G,ttyS1,57600,phys) 
     388endef 
     389 
    370390define Image/Build/Profile/ALL0256N 
    371391        $(call Image/Build/Template/$(fs_squash)/$(1),GENERIC_4M,all0256n,ALL0256N,ttyS1,57600,spi) 
     
    514534define Image/Build/Profile/Default 
    515535        $(call Image/Build/Profile/3G6200N,$(1)) 
     536        $(call Image/Build/Profile/ALL02393G,$(1)) 
    516537        $(call Image/Build/Profile/ALL0256N,$(1)) 
    517538        $(call Image/Build/Profile/ALL5002,$(1)) 
Note: See TracChangeset for help on using the changeset viewer.