picotool icon indicating copy to clipboard operation
picotool copied to clipboard

Include field descriptions for picotool otp list

Open kilograham opened this issue 5 months ago • 0 comments

$ picotool otp list crit1.boot_arch
ROW 0x0040: OTP_DATA_CRIT1
        "Page 1 critical boot flags (RBIT-8)"
    field BOOT_ARCH (bit 3)

vs

$ picotool otp get crit1.boot_arch
ROW 0x0040: OTP_DATA_CRIT1
        "Page 1 critical boot flags (RBIT-8)"

    VALUE 0x000000

    field BOOT_ARCH (bit 3) = 0
        "Set the default boot architecture, 0=ARM 1=RISC-V. Ignored if ARM_DISABLE, RISCV_DISABLE or SECURE_BOOT_ENABLE is set."

There is a -n for not showing descriptions; perhaps the default should be to show field descriptions if you are matching on field, and maybe add another option to force showing field descriptions always

kilograham avatar Sep 03 '24 20:09 kilograham