Rafał Miłecki e68c1cebd1 brcm47xx: extend firmware validation
This provides TRX validation result, so final JSON may look like:
{
	"tests": {
		"fwtool_signature": true,
		"fwtool_device_match": true,
		"trx_valid": true
	},
	"valid": true,
	"forceable": true
}

It also prevents users from installing broken firmware files, e.g.:

root@OpenWrt:/# sysupgrade -F -n /tmp/TZ
Image metadata not found
Invalid image type. Please use firmware specific for this device.
Image check failed but --force given - will update anyway!
Commencing upgrade. Closing all shell sessions.
Firmware image is broken and cannot be installed

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
2019-09-04 06:37:17 +02:00
..
2019-07-31 16:51:46 +02:00
2019-07-10 16:56:16 +02:00
2019-09-02 22:38:47 +02:00
2019-08-30 16:45:54 +02:00
2019-07-31 16:51:46 +02:00
2019-08-28 13:08:20 +02:00
2019-08-06 11:52:47 +02:00
2019-08-06 11:52:47 +02:00
2019-08-30 16:45:54 +02:00
2019-03-11 19:35:43 +01:00
2019-08-02 22:45:02 +02:00
2019-05-11 17:15:41 +02:00
2019-05-11 17:15:41 +02:00
2019-08-27 10:32:44 +02:00
2019-08-17 16:57:32 +02:00