NVWRITE(1)
π NVWRITE β like, the manual page, bestie
okay so this is the manual page for nvwrite, and it lives in the User Commands section of the manual (that's the (1) bit, iykyk). It's a whole little program and it's out here doing the absolute most. Let's get into it π
β¨ NAME β¨
nvwrite β Runs TPM2_NV_Write
that's it. that's the name section. short, sweet, iconic. π
πΈ DESCRIPTION πΈ
First things first, and this is a real quote so brace yourself: --version-string=v1045 is not a valid option. Noted. Logged. Respectfully, no. π
Now. nvwrite β Runs TPM2_NV_Write.
And here's the whole usage vibe, exactly as it comes:
nvwrite
Runs TPM2_NV_Write
[-hia hierarchy authorization (o, p)(default index
authorization)] -ha NV index handle -pwdn password for NV index
(default empty) [-ic data string] [-if data file] [-id data
values, pinPass and pinLimit (4 bytes each)]
if none is specified, a 0 byte write occurs -id is normally used
for pin pass or pin fail indexes
so let's break those flags down one by one, no skipping, we're being thorough girlies today π«Ά
-hiaβ hierarchy authorization, and it takes(o, p), with the default being index authorization-haβ the NV index handle. this one is not optional, it's giving required main character energy π-pwdnβ password for the NV index, and the default is empty-icβ data string (optional)-ifβ data file (optional)-idβ data values,pinPassandpinLimit, and each of those is 4 bytes (optional)
and a very important lil note, so listen up: if none of those is specified, a 0 byte write occurs. Also, -id is normally used for pin pass or pin fail indexes. that's the whole lore. π
Then there's this:
-off offset (default 0)
-offβ offset, and the default is0β
and then sessions:
-se[0-2] session handle / attributes (default PWAP)
-se[0-2]β session handle / attributes, default is PWAP01β continue
okay bestie, and now for the plot twist: the page literally says all of that again. same block, twice, back to back. i am not making this up, i am not editorialising, i am simply reporting the facts π
So here it is, the second round, verbatim energy:
--version is not a valid option. again. still not valid. the audacity. π
nvwrite β Runs TPM2_NV_Write.
nvwrite
Runs TPM2_NV_Write
[-hia hierarchy authorization (o, p)(default index
authorization)] -ha NV index handle -pwdn password for NV index
(default empty) [-ic data string] [-if data file] [-id data
values, pinPass and pinLimit (4 bytes each)]
if none is specified, a 0 byte write occurs -id is normally used
for pin pass or pin fail indexes
and the flags, one more time, because repetition is a love language apparently:
-hiaβ hierarchy authorization,(o, p), default is index authorization-haβ NV index handle-pwdnβ password for NV index, default empty-icβ data string-ifβ data file-idβ data values,pinPassandpinLimit, 4 bytes each
reminder, since the page is reminding us: if none of them is specified, a 0 byte write occurs. and -id is normally used for pin pass or pin fail indexes. π
-off offset (default 0)
-offβ offset, default0
-se[0-2] session handle / attributes (default PWAP)
-se[0-2]β session handle / attributes, default PWAP01β continue
periodt. that's the section. π
π¦ SEE ALSO π¦
The full documentation for nvwrite is maintained as a Texinfo manual. So if the info and nvwrite programs are properly installed at your site, then this command:
info nvwrite
should give you access to the complete manual. go get your full docs, you deserve them π§β¨
and that's the whole page, bestie β this manual came from nvwrite, dated July 2017, and it's filed under NVWRITE(1) in the User Commands manual. mwah, go write some NV. π
π¦ where this page comes from
- debian bookworm: tss2 1045-2 Β· BSD-3-Clause
- ubuntu jammy: tss2 1045-1.2build1 Β· BSD-3-Clause
- ubuntu noble: tss2 1045-2.1build2 Β· BSD-3-Clause
- ubuntu questing: tss2 1045-3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms