mirror of
https://github.com/opnsense/docs.git
synced 2026-02-19 02:27:52 -05:00
Hardware / BIOS: slight tweaks to file naming and README
This commit is contained in:
parent
98ab2fc838
commit
f5b3dc8d77
5 changed files with 32 additions and 12 deletions
19
README.md
19
README.md
|
|
@ -76,17 +76,28 @@ sphinx-autobuild source build/html
|
|||
|
||||
#### Publish BIOS ROM Images
|
||||
|
||||
BIOS ROM images are written to OPNsense appliances using a FAT32 formatted drive containing in its root directory
|
||||
BIOS ROM images are written to Deciso appliances using a FAT32 formatted (thumb) drive containing in its root directory
|
||||
the combined contents of the `source/hardware/files/BIOS_update_sources.zip` file and the latest platform-specific
|
||||
compressed BIOS ROM image. The BIOS_update_sources directory contains the EFI boot structure to trigger the
|
||||
`startup.nsh` file when booting from the drive.
|
||||
`startup.nsh` file when booting from the drive and kickstart the update using the `LATEST.FD` file.
|
||||
|
||||
The SHA256 hash of the `BIOS_update.sources.zip` file:
|
||||
|
||||
```
|
||||
0cf1b042223482ea073a7a3599d6170be7c849ff8399936cf5a9db1ec5406dcf BIOS_update_sources.zip
|
||||
```
|
||||
|
||||
Place a `.FD` ROM image into the `source/hardware/files/` directory and run:
|
||||
To create a publishable archive, use the provided `make_bios.py` script and give it the platform type, version number and
|
||||
source `.fd` file:
|
||||
|
||||
```
|
||||
./make_bios.py --platform <A10|A20|A30> --source <.FD filename>
|
||||
./make_bios.py --platform <A10|A20|A30> --version <version> --source <.FD filename>
|
||||
```
|
||||
|
||||
Example output:
|
||||
|
||||
```
|
||||
2d5143f221fa120ef6d5c8799a90bd2c08e8238b3b9dd350327336d0605944a6 source/hardware/files/A10_v30_bios.tar.gz
|
||||
```
|
||||
|
||||
A SHA256 hash of the resulting compressed archive is provided for integrity checking.
|
||||
|
|
|
|||
21
make_bios.py
21
make_bios.py
|
|
@ -86,20 +86,29 @@ def calculate_sha256(file_path):
|
|||
if __name__ == '__main__':
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument('--platform', help='BIOS platform [A10|A20|A30]')
|
||||
parser.add_argument('--source', help='BIOS ROM image name in source/hardware/files')
|
||||
parser.add_argument('--version', help='BIOS version (for example: 13a)')
|
||||
parser.add_argument('--source', help='BIOS ROM image file (.fd)')
|
||||
|
||||
args = parser.parse_args()
|
||||
if not args.platform or args.platform not in ['A10', 'A20', 'A30']:
|
||||
print('invalid platform')
|
||||
print('invalid platform, expected A10, A20 or A30')
|
||||
exit(1)
|
||||
|
||||
if not args.source.endswith('.FD'):
|
||||
print('invalid source file, must be a .FD file')
|
||||
if not args.version:
|
||||
print('No version specified')
|
||||
exit(1)
|
||||
|
||||
if not args.source.lower().endswith('.fd'):
|
||||
print('invalid source file')
|
||||
exit(1)
|
||||
|
||||
if not os.path.isfile(args.source):
|
||||
print('source file not found')
|
||||
exit(1)
|
||||
|
||||
static = 'source/hardware/files/BIOS_update_sources.zip'
|
||||
source = f'source/hardware/files/{args.source}'
|
||||
output = f'source/hardware/files/{args.platform}_bios'
|
||||
source = args.source
|
||||
output = f'source/hardware/files/{args.platform}_v{args.version}_bios'
|
||||
|
||||
merge_files(static, source, output)
|
||||
print(calculate_sha256(f'{output}.tar.gz'), f'{output}.tar.gz')
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ DEC800, DEC3800 & DEC4000 series
|
|||
+-------------------------------------------------------------------------+-------------------------------------------------------------------------------+
|
||||
| Download |SHA256 Checksum |
|
||||
+=========================================================================+===============================================================================+
|
||||
|:download:`Archive <files/A20_bios.tar.gz>` |da3bb83194d92af5b61b37a44286dd181f0d44e4e4d9683968c3bd60cbcb89a6 |
|
||||
|:download:`Archive <files/A20_v15_bios.tar.gz>` |9089a1875617fedf0ae634515d31e683e67f494ae55df8cfcac2db6edfb00888 |
|
||||
+-------------------------------------------------------------------------+-------------------------------------------------------------------------------+
|
||||
| CVE Update. |
|
||||
+---------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
|
|
@ -38,7 +38,7 @@ DEC700 and DEC2700 series
|
|||
+-------------------------------------------------------------------------+-------------------------------------------------------------------------------+
|
||||
| Download |SHA256 Checksum |
|
||||
+=========================================================================+===============================================================================+
|
||||
|:download:`Archive <files/A10_bios.tar.gz>` |30b3df027140b9eaa8affe8c571f5ab580cc895d2102d613cf52341cd8eb6a86 |
|
||||
|:download:`Archive <files/A10_v30_bios.tar.gz>` |2d5143f221fa120ef6d5c8799a90bd2c08e8238b3b9dd350327336d0605944a6 |
|
||||
+-------------------------------------------------------------------------+-------------------------------------------------------------------------------+
|
||||
| CVE Update. |
|
||||
+---------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Loading…
Reference in a new issue