Changeset 36315


Ignore:
Timestamp:
2013-04-11T21:18:07+02:00 (5 years ago)
Author:
blogic
Message:

[lantiq] add VG3503J support

this adds basic support. the bootloader on these units is locked down.

until we have a replacement we can do basic testing with these env variables in uboot.

set update_openwrt erase 0xb0020000 0xb073ffff \;tftp 0x81000000 openwrt-lantiq-xway-VG3503J-squashfs.image\;cp.b 0x81000000 0xb0020000 \$(filesize)
set bootcmd cp.b 0xb0020000 0x80002000 0x400000\; go 0x80002000

unfortunatley the bootloader ignores the bootcmd, so autobooting is not possible yet. you need to call "run bootcmd" by hand after each power cycle.

please note that the vdsl firmware is non redistributable. you can find it in the GPL drop that BT provides.

Signed-off-by: John Crispin <blogic@…>

Location:
trunk/target/linux/lantiq
Files:
1 added
2 edited

Legend:

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

    r36026 r36315  
    2626endef 
    2727 
     28define PatchKernelRaw 
     29        cp $(KDIR)/vmlinux $(KDIR)/vmlinux-$(1) 
     30        $(LINUX_DIR)/scripts/dtc/dtc -O dtb -o $(KDIR)/$(1).dtb ./$(1).dts 
     31        $(STAGING_DIR_HOST)/bin/patch-dtb $(KDIR)/vmlinux-$(1) $(KDIR)/$(1).dtb 
     32endef 
     33 
    2834define MkBrnImage 
    2935        mkbrncmdline -i $(KDIR)/vmlinux-$(4) -o $(KDIR)/vmlinux-$(4)-brn BRN-BOOT $(6) 
     
    7177endef 
    7278 
     79define Image/BuildRaw/squashfs 
     80        dd if=$(KDIR)/vmlinux-$(2) of=$(KDIR)/vmlinux-$(2)-$(1) bs=1M conv=sync 
     81        cat $(KDIR)/vmlinux-$(2)-$(1) $(KDIR)/root.$(1) > $(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1).image 
     82        $(call prepare_generic_squashfs,$(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1).image) 
     83endef 
     84 
    7385define Image/BuildNANDEVA/jffs2-128k 
    7486        cp $(KDIR)/root.$(1) $(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1).rootfs 
     
    96108endef 
    97109 
     110define Image/BuildKernelRaw/Template 
     111        $(call PatchKernelRaw,$(1)) 
     112        $(CP) $(KDIR)/vmlinux-$(1) $(BIN_DIR)/$(IMG_PREFIX)-$(1)-vmlinux 
     113endef 
     114 
    98115define Image/BuildKernelEVA/Template 
    99116        $(call PatchKernelLzma,$(1),$(if $(2),$(2) machtype=$(1),)) 
     
    197214Image/Build/Profile/FRITZ3370=$(call Image/BuildNANDEVA/$(1),$(1),FRITZ3370) 
    198215 
     216Image/BuildKernel/Profile/VG3503J=$(call Image/BuildKernelRaw/Template,VG3503J) 
     217Image/Build/Profile/VG3503J=$(call Image/BuildRaw/$(1),$(1),VG3503J) 
     218 
    199219endif 
    200220 
  • trunk/target/linux/lantiq/xway/profiles/arv.mk

    r35352 r36315  
    115115 
    116116$(eval $(call Profile,ARV752DPW22)) 
     117 
     118define Profile/VG3503J 
     119  NAME:=BT Openreach - ECI VDSL Modem 
     120  PACKAGES:=kmod-ltq-vdsl-vr9-mei kmod-ltq-vdsl-vr9 \ 
     121        kmod-ltq-ptm-vr9 ltq-vdsl-app 
     122endef 
     123 
     124$(eval $(call Profile,VG3503J)) 
Note: See TracChangeset for help on using the changeset viewer.