Commit 7b28086
committed
[ot] scripts/opentitan: flashgen.py: Change
Currently the `otdesc` option accepts an address for a binary and then
attempts to guess whether the binary is a ROM_EXT or a bootloader file,
loading it at the hard-coded offsets.
With the result of `opentitantool image assemble` it would instead be
more useful to place binaries arbitrarily, wherever we wish, even across
flash banks to support mirrored flash images. This commit changes the
`otdesc` option to just load the given data at the given offset provided
it does not exceed the maximum flash size. This option is basically
converted to mean "place this data at this location, without care for
what it is".
For now, use of ELFs for debug symbol support is dropped from the
`otdesc` option, because binaries can be loaded that are not ROM_EXTs or
bl0s as defined in the flash format. In the future, the flash format
should be updated to support an arbitrary number of convenience
debugging ELFs, and then this option can be added back, but support for
this is dropped for now when using this option (debug ELFs still remain
if loading ROM_EXT and bl0 files the normal way).
Signed-off-by: Alex Jones <[email protected]>otdesc to use any binaries1 parent 58f17bc commit 7b28086
2 files changed
+22
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
81 | 81 | | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
369 | 367 | | |
370 | 368 | | |
371 | 369 | | |
| |||
376 | 374 | | |
377 | 375 | | |
378 | 376 | | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
386 | 381 | | |
387 | | - | |
388 | | - | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
389 | 389 | | |
390 | 390 | | |
391 | 391 | | |
| |||
0 commit comments