uboot-envtools: add support for Aruba AP-303 and AP-365
Both devices use u-boot env variables to boot OpenWrt from its flash partition. Using u-boot envtools, it is possible to change the bootcmd back to the stock firmware partition directly from OpenWrt without attaching a serial cable or even physically accessing the device. Signed-off-by: Jan Alexander <jan@nalx.net>
This commit is contained in:
		 Jan Alexander
					Jan Alexander
				
			
				
					committed by
					
						 David Bauer
						David Bauer
					
				
			
			
				
	
			
			
			 David Bauer
						David Bauer
					
				
			
						parent
						
							4e46beb313
						
					
				
				
					commit
					6738b5e2ac
				
			| @@ -43,6 +43,12 @@ plasmacloud,pa1200 |\ | |||||||
| plasmacloud,pa2200) | plasmacloud,pa2200) | ||||||
| 	ubootenv_add_uci_config "/dev/mtd5" "0x0" "0x10000" "0x10000" | 	ubootenv_add_uci_config "/dev/mtd5" "0x0" "0x10000" "0x10000" | ||||||
| 	;; | 	;; | ||||||
|  | aruba,ap-303) | ||||||
|  | 	ubootenv_add_uci_config "/dev/mtd13" "0x0" "0x10000" "0x10000" | ||||||
|  | 	;; | ||||||
|  | aruba,ap-365) | ||||||
|  | 	ubootenv_add_uci_config "/dev/mtd8" "0x0" "0x10000" "0x10000" | ||||||
|  | 	;; | ||||||
| buffalo,wtr-m2133hp) | buffalo,wtr-m2133hp) | ||||||
| 	ubootenv_add_uci_config "/dev/mtd8" "0x0" "0x40000" "0x20000" | 	ubootenv_add_uci_config "/dev/mtd8" "0x0" "0x40000" "0x20000" | ||||||
| 	;; | 	;; | ||||||
|   | |||||||
| @@ -145,10 +145,8 @@ | |||||||
| 			}; | 			}; | ||||||
|  |  | ||||||
| 			partition@380000 { | 			partition@380000 { | ||||||
| 				/* This is empty */ |  | ||||||
| 				label = "appsblenv"; | 				label = "appsblenv"; | ||||||
| 				reg = <0x380000 0x10000>; | 				reg = <0x380000 0x10000>; | ||||||
| 				read-only; |  | ||||||
| 			}; | 			}; | ||||||
|  |  | ||||||
| 			partition@390000 { | 			partition@390000 { | ||||||
|   | |||||||
| @@ -138,7 +138,6 @@ | |||||||
| 			partition@e0000 { | 			partition@e0000 { | ||||||
| 				label = "u-boot-env"; | 				label = "u-boot-env"; | ||||||
| 				reg = <0xe0000 0x10000>; | 				reg = <0xe0000 0x10000>; | ||||||
| 				read-only; |  | ||||||
| 			}; | 			}; | ||||||
|  |  | ||||||
| 			partition@f0000 { | 			partition@f0000 { | ||||||
|   | |||||||
| @@ -156,6 +156,7 @@ endef | |||||||
| define Device/aruba_ap-303 | define Device/aruba_ap-303 | ||||||
| 	$(call Device/aruba_glenmorangie) | 	$(call Device/aruba_glenmorangie) | ||||||
| 	DEVICE_MODEL := AP-303 | 	DEVICE_MODEL := AP-303 | ||||||
|  | 	DEVICE_PACKAGES += uboot-envtools | ||||||
| endef | endef | ||||||
| TARGET_DEVICES += aruba_ap-303 | TARGET_DEVICES += aruba_ap-303 | ||||||
|  |  | ||||||
| @@ -168,7 +169,7 @@ TARGET_DEVICES += aruba_ap-303h | |||||||
| define Device/aruba_ap-365 | define Device/aruba_ap-365 | ||||||
| 	$(call Device/aruba_glenmorangie) | 	$(call Device/aruba_glenmorangie) | ||||||
| 	DEVICE_MODEL := AP-365 | 	DEVICE_MODEL := AP-365 | ||||||
| 	DEVICE_PACKAGES += kmod-hwmon-ad7418 | 	DEVICE_PACKAGES += kmod-hwmon-ad7418 uboot-envtools | ||||||
| endef | endef | ||||||
| TARGET_DEVICES += aruba_ap-365 | TARGET_DEVICES += aruba_ap-365 | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user