From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "magic" |
|---|
| subject | "Format:Broadcom TRX" |
|---|
| claim | "A TRX image starts with the ASCII bytes 'HDR0' (0x30524448 read little-endian); the -M option of trx.c can write another magic, so vendor variants of the layout exist." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:Broadcom TRX" |
|---|
| observed_in | |
|---|
|
|---|
| data | | bytes | "48 44 52 30" |
|---|
| offset | 0 |
|---|
| meaning | "TRX header magic HDR0" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "#define TRX_MAGIC 0x30524448 /* HDR0 */; case 'M' overrides p->magic" |
|---|
| repo | "https://github.com/openwrt/firmware-utils" |
|---|
| commit | "0179ab1e367f756ac108a485f26585661d4c528c" |
|---|
| path | "src/trx.c" |
|---|
| lines | "57, 234-242" |
|---|
|
| type | "source" |
|---|
| detail | "binwalk trx_magic() = b"HDR0"" |
|---|
| repo | "https://github.com/ReFirmLabs/binwalk" |
|---|
| commit | "26713972e3f9f52dc37d4a421c4554b0bd9e82ef" |
|---|
| path | "src/signatures/trx.rs" |
|---|
| lines | "9-11" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "HDR0 magic" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T06:50:47.167Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T08:20:10.596Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read src/trx.c at the commit: TRX_MAGIC 0x30524448 /* HDR0 */ (line 57), option -M stores an arbitrary value with STORE32_LE into p->magic (234-242), so file bytes 48 44 52 30 by default and other magics are possible." |
|---|
|
|
|---|