ramips: define common MikroTik RouterBOARD image recipe
All these devices share the exact same image format. The usb3 kmod is added for the rbm11g, as the rbm11g has a mini-pcie slot like its bigger sibling. The usb kmod is necessary for usb-over-pcie support, which is mandatory for a lot of LTE modules. Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
This commit is contained in:
		
				
					committed by
					
						
						Mathias Kresin
					
				
			
			
				
	
			
			
			
						parent
						
							02d53e6a21
						
					
				
				
					commit
					c4f09fc9f8
				
			@@ -260,11 +260,9 @@ define Device/rb750gr3
 | 
				
			|||||||
endef
 | 
					endef
 | 
				
			||||||
TARGET_DEVICES += rb750gr3
 | 
					TARGET_DEVICES += rb750gr3
 | 
				
			||||||
 | 
					
 | 
				
			||||||
define Device/mikrotik_rbm33g
 | 
					define Device/MikroTik
 | 
				
			||||||
  DTS := RBM33G
 | 
					 | 
				
			||||||
  BLOCKSIZE := 64k
 | 
					  BLOCKSIZE := 64k
 | 
				
			||||||
  IMAGE_SIZE := 16128k
 | 
					  IMAGE_SIZE := 16128k
 | 
				
			||||||
  DEVICE_TITLE := MikroTik RBM33G
 | 
					 | 
				
			||||||
  DEVICE_PACKAGES := kmod-usb3
 | 
					  DEVICE_PACKAGES := kmod-usb3
 | 
				
			||||||
  LOADER_TYPE := elf
 | 
					  LOADER_TYPE := elf
 | 
				
			||||||
  PLATFORM := mt7621
 | 
					  PLATFORM := mt7621
 | 
				
			||||||
@@ -272,18 +270,18 @@ define Device/mikrotik_rbm33g
 | 
				
			|||||||
  IMAGE/sysupgrade.bin := append-kernel | kernel2minor -s 1024 | pad-to $$$$(BLOCKSIZE) | \
 | 
					  IMAGE/sysupgrade.bin := append-kernel | kernel2minor -s 1024 | pad-to $$$$(BLOCKSIZE) | \
 | 
				
			||||||
	append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
 | 
						append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
 | 
				
			||||||
endef
 | 
					endef
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					define Device/mikrotik_rbm33g
 | 
				
			||||||
 | 
					  $(Device/MikroTik)
 | 
				
			||||||
 | 
					  DTS := RBM33G
 | 
				
			||||||
 | 
					  DEVICE_TITLE := MikroTik RouterBOARD M33G
 | 
				
			||||||
 | 
					endef
 | 
				
			||||||
TARGET_DEVICES += mikrotik_rbm33g
 | 
					TARGET_DEVICES += mikrotik_rbm33g
 | 
				
			||||||
 | 
					
 | 
				
			||||||
define Device/mikrotik_rbm11g
 | 
					define Device/mikrotik_rbm11g
 | 
				
			||||||
 | 
					  $(Device/MikroTik)
 | 
				
			||||||
  DTS := RBM11G
 | 
					  DTS := RBM11G
 | 
				
			||||||
  BLOCKSIZE := 64k
 | 
					  DEVICE_TITLE := MikroTik RouterBOARD M11G
 | 
				
			||||||
  IMAGE_SIZE := 16128k
 | 
					 | 
				
			||||||
  DEVICE_TITLE := MikroTik RBM11G
 | 
					 | 
				
			||||||
  LOADER_TYPE := elf
 | 
					 | 
				
			||||||
  PLATFORM := mt7621
 | 
					 | 
				
			||||||
  KERNEL := kernel-bin | patch-dtb | lzma | loader-kernel
 | 
					 | 
				
			||||||
  IMAGE/sysupgrade.bin := append-kernel | kernel2minor -s 1024 | pad-to $$$$(BLOCKSIZE) | \
 | 
					 | 
				
			||||||
	append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
 | 
					 | 
				
			||||||
endef
 | 
					endef
 | 
				
			||||||
TARGET_DEVICES += mikrotik_rbm11g
 | 
					TARGET_DEVICES += mikrotik_rbm11g
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user