Changeset 38322


Ignore:
Timestamp:
2013-10-07T17:02:35+02:00 (4 years ago)
Author:
blogic
Message:

ralink: build recovery images for dcs930 ip cam

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

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

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ramips/dts/DCS-930.dts

    r38053 r38322  
    4444 
    4545                partition@50000 { 
     46                        label = "kernel"; 
     47                        reg = <0x50000 0x150000>; 
     48                }; 
     49 
     50                partition@150000 { 
     51                        label = "rootfs"; 
     52                        reg = <0x150000 0x2b0000>; 
     53                }; 
     54         
     55                partition { 
    4656                        label = "firmware"; 
    4757                        reg = <0x50000 0x3b0000>; 
  • trunk/target/linux/ramips/image/Makefile

    r38263 r38322  
    358358Image/Build/Profile/DAP1350WW=$(call BuildFirmware/dap1350/$(1),$(1),dap-1350WW,DAP-1350,RT3052-AP-DAP1350WW-3) 
    359359 
    360 Image/Build/Profile/DCS930=$(call BuildFirmware/Default4M/$(1),$(1),dcs-930,DCS-930) 
     360define BuildFirmware/DCS930/squashfs 
     361        $(call BuildFirmware/Default4M/squashfs,squashfs,$(2),$(3)) 
     362        dd if=$(KDIR)/vmlinux-$(2).bin.lzma of=$(KDIR)/image.$(2).combined bs=1048512 count=1 conv=sync 
     363        cat $(KDIR)/root.squashfs >> $(KDIR)/image.$(2).combined 
     364        $(call MkImage,lzma,$(KDIR)/image.$(2).combined,$(KDIR)/image.$(2)) 
     365        $(call prepare_generic_squashfs,$(KDIR)/image.$(2)) 
     366        if [ `stat -c%s "$(KDIR)/image.$(2)"` -gt $(ralink_default_fw_size_4M) ]; then \ 
     367                echo "Warning: $(KDIR)/image.$(2)  is too big" >&2; \ 
     368        else \ 
     369                dd if=$(KDIR)/image.$(2) of=$(KDIR)/dcs.tmp bs=64K count=5 conv=sync ;\ 
     370                cat $(KDIR)/image.$(2) >> $(KDIR)/dcs.tmp ; \ 
     371                dd if=$(KDIR)/dcs.tmp of=$(call imgname,$(1),$(2))-factory.bin bs=4M count=1 conv=sync ;\ 
     372                $(STAGING_DIR_HOST)/bin/mkdcs932 $(call imgname,$(1),$(2))-factory.bin ; \ 
     373        fi 
     374endef 
     375BuildFirmware/DCS930/initramfs=$(call BuildFirmware/OF/initramfs,$(1),$(2),$(3)) 
     376Image/Build/Profile/DCS930=$(call BuildFirmware/DCS930/$(1),$(1),dcs-930,DCS-930) 
    361377 
    362378Image/Build/Profile/ESR-9753=$(call BuildFirmware/Default4M/$(1),$(1),esr-9753,ESR-9753) 
Note: See TracChangeset for help on using the changeset viewer.