Changeset 47432


Ignore:
Timestamp:
2015-11-10T01:16:35+01:00 (2 years ago)
Author:
luka
Message:

kirkwood: generate factory images for Linksys EA[34]500

This is done with the new image generation system and board names.
It also generates a sysupgrade.tar image.

Signed-off-by: Claudio Leite <leitec@…>

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

Legend:

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

    r47330 r47432  
    1010include $(TOPDIR)/rules.mk 
    1111include $(INCLUDE_DIR)/image.mk 
     12 
     13DEVICE_VARS += DEVICE_DTS KERNEL_SIZE PAGESIZE BLOCKSIZE SUBPAGESIZE 
     14KERNEL_LOADADDR:=0x8000 
     15TARGET_DEVICES = linksys-audi linksys-viper 
     16 
     17define Device/Default 
     18  KERNEL := kernel-bin | append-dtb | uImage none 
     19  KERNEL_NAME := zImage 
     20endef 
     21 
     22define Device/linksys-audi 
     23  DEVICE_DTS := kirkwood-linksys-audi 
     24  PAGESIZE := 512 
     25  SUBPAGESIZE := 256 
     26  BLOCKSIZE := 16KiB 
     27  KERNEL_SIZE := 2624k 
     28  FILESYSTEMS := squashfs 
     29  PROFILES := EA3500 
     30  IMAGES := factory.bin sysupgrade.tar 
     31  IMAGE/factory.bin := append-kernel $$$$(KERNEL_SIZE) | append-ubi 
     32  IMAGE/sysupgrade.tar := sysupgrade-nand 
     33endef 
     34 
     35define Device/linksys-viper 
     36  DEVICE_DTS := kirkwood-linksys-viper 
     37  PAGESIZE := 2048 
     38  SUBPAGESIZE := 512 
     39  BLOCKSIZE := 128KiB 
     40  KERNEL_SIZE := 2688k 
     41  FILESYSTEMS := squashfs 
     42  PROFILES := EA4500 
     43  IMAGES := factory.bin sysupgrade.tar 
     44  IMAGE/factory.bin := append-kernel $$$$(KERNEL_SIZE) | append-ubi 
     45  IMAGE/sysupgrade.tar := sysupgrade-nand 
     46endef 
     47 
     48define Build/append-dtb 
     49        cat $(DTS_DIR)/$(DEVICE_DTS).dtb >> $@ 
     50endef 
    1251 
    1352define Image/BuildKernel/Template 
     
    110149Image/InstallKernel/Template/DOCKSTAR=$(call Image/InstallKernel/Template,dockstar) 
    111150 
    112 Image/BuildKernel/Template/EA3500=$(call Image/BuildKernel/Template,ea3500) 
    113 Image/InstallKernel/Template/EA3500=$(call Image/InstallKernel/Template,ea3500) 
    114  
    115 Image/BuildKernel/Template/EA4500=$(call Image/BuildKernel/Template,ea4500) 
    116 Image/InstallKernel/Template/EA4500=$(call Image/InstallKernel/Template,ea4500) 
    117  
    118151Image/BuildKernel/Template/GOFLEXHOME=$(call Image/BuildKernel/Template,goflexhome) 
    119152Image/InstallKernel/Template/GOFLEXHOME=$(call Image/InstallKernel/Template,goflexhome) 
  • trunk/target/linux/kirkwood/profiles/115-router.mk

    r46565 r47432  
    1717endef 
    1818 
    19 EA3500_UBIFS_OPTS:="-m 512 -e 15872 -c 4096" 
    20 EA3500_UBI_OPTS:="-m 512 -p 16384 -s 256" 
    21  
    2219$(eval $(call Profile,EA3500)) 
    2320 
     
    3330endef 
    3431 
    35 EA4500_UBIFS_OPTS:="-m 2048 -e 126KiB -c 4096" 
    36 EA4500_UBI_OPTS:="-m 2048 -p 128KiB -s 512" 
    37  
    3832$(eval $(call Profile,EA4500)) 
Note: See TracChangeset for help on using the changeset viewer.