The bfb-tool is a command-line utility used to manage BlueField BFB files (i.e., bf-bundle or bf-fwbundle). It supports two primary actions:
-
Extracting payloads from a BFB
-
Repacking BFBs for a specific PSID or OPN
This page provides comprehensive usage instructions, supported options, and examples.
Command Syntax
bfb-tool <action> --bfb <BFB> [--psid <PSID> | --opn <OPN> | --all] [-p | --profile <Profile>] [--output-dir <DIR>] [-v | --verbose]
Actions
|
Action |
Description |
|---|---|
|
|
Extracts the firmware payload for the specified PSID, OPN, or all configurations |
|
|
Extracts and rebuilds a new BFB file tailored to a specific PSID or OPN |
Options
|
Option |
Description |
|---|---|
|
|
Path to the input BFB file (e.g., |
|
|
Target PSID (e.g., |
|
|
Target OPN (e.g., |
|
|
Process all PSID/OPN configurations in the BFB |
|
|
Optional profile to apply during repacking |
|
|
Directory to store the extracted or repacked output files |
|
|
Enable verbose output for detailed execution logs |
Examples
-
Extract payload for a specific PSID:
bfb-tool extract --bfb bf-fwbundle-2.9.2-40_25.02-prod.bfb --psid MT_0000001070
-
Repack BFB for a specific OPN:
bfb-tool repack --bfb bf-fwbundle-2.9.2-40_25.02-prod.bfb --opn 900-9D3B6-F2SV-PA0_Ax
-
Extract all configurations:
bfb-tool extract --bfb bf-fwbundle-2.9.2-40_25.02-prod.bfb --all
-
Specify a custom output directory:
bfb-tool extract --bfb bf-fwbundle-2.9.2-40_25.02-prod.bfb --psid MT_0000001070 --output-dir /path/to/output -
Enable verbose output:
bfb-tool repack --bfb bf-fwbundle-2.9.2-40_25.02-prod.bfb --opn 900-9D3B6-F2SV-PA0_Ax -v
Usage Notes
-
Ensure the specified BFB file exists and is accessible
-
Use only one of
--psid,--opn, or--allper command -
Use
--profileto apply a specific firmware configuration profile (if applicable) -
By default, extracted files are saved to
/tmp/<bfb-name>/unless overridden using--output-dir
Last updated: