Ignore:
Timestamp:
2012-05-02T21:17:59+02:00 (4 years ago)
Author:
juhosg
Message:

ramips: W306R V2.0 - GPIO and Network fixes

Fixed: GPIO typos and confirmed GPIO_BUTTON_RESET
Fixed: Lan & Wan reversed: swaped "eth0.2" with "eth0.1" by

removing a line(default is correct), and reversed the
Lan/wan layout LLLLW to WLLLL.

Added: image/Makefile now builds -factory.bin files. I am

unsure of the accepted way to change the makefile but
the name of the image needs to be 'linkn Kernel Image'
in order to be accepted by the OEM firmware.

Known issue: eth0 (internal switch i think has mac address:

00:11:22:33:44:55 but i think it should be same as
the lan).

Known issue: Pressing the reset button has no noticable effect,

i would expect the router to boot failsafe if being
pressed on boot, reboot if short press and reset all
to default if long press.

[juhosg: remove mtdlayout_W306R and use mtdlayout_4M instead]

Signed-off-by: David Pearce <david_18051985@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ramips/image/Makefile

    r31556 r31557  
    219219define BuildFirmware/RTN10PLUS 
    220220        $(call BuildFirmware/Generic,$(1),$(2),board=$(3) $(call mkmtd/phys,$(mtdlayout_rtn10plus)),$(mtd_rtn10plus_kernel_part_size),$(mtd_rtn10plus_rootfs_part_size)) 
     221endef 
     222 
     223define BuildFirmware/W306R_4M 
     224        $(call BuildFirmware/w306r,$(1),$(2),$(call mkcmdline,$(3),$(4),$(5)) $(call mkmtd/$(6),$(mtdlayout_4M)),917504,2949120) 
     225endef 
     226 
     227define BuildFirmware/w306r 
     228        $(call PatchKernelLzma,$(2),$(3)) 
     229        mkimage -A mips -O linux -T kernel -C lzma $(call kernel_entry)\ 
     230         -n 'linkn Kernel Image' \ 
     231         -d $(KDIR)/vmlinux-$(2).bin.lzma $(KDIR)/vmlinux-$(2).uImage 
     232        $(call CatFiles,$(KDIR)/vmlinux-$(2).uImage,$(4),$(KDIR)/root.$(1),$(5),$(call imgname,$(1),$(2))-factory.bin) 
    221233endef 
    222234 
     
    378390define Image/Build/Profile/W306R_V20 
    379391        $(call Image/Build/Template/$(fs_squash)/$(1),GENERIC_4M,w306r-v20,W306R_V20,ttyS1,57600,phys) 
     392        $(call Image/Build/Template/$(fs_squash)/$(1),W306R_4M,w306r-v20,W306R_V20,ttyS1,57600,phys) 
    380393endef 
    381394 
Note: See TracChangeset for help on using the changeset viewer.