Skip to content
This repository was archived by the owner on Nov 28, 2025. It is now read-only.
This repository was archived by the owner on Nov 28, 2025. It is now read-only.

Why ASN.1? #126

@andreiw

Description

@andreiw

Is there some history behind why ASN.1 has been chosen? It just seems like a rather arbitrary and strange choice, given that ASN.1 has not been used in any similar capacity by platforms/firmware to describe features (e.g. on Arm, x86, etc)

Is the tooling sound? Do we have decent compilers, libraries? Is it easy enough to parse (single pass without consuming extra memory like Device Tree or complicated like ACPI AML?)? Do we have a good set of open source libraries that are embeddable?

Obviously the "human readable" nature of ASN.1 is a matter of taste, but I would imagine literally no one working on RISC-V systems (hardware or software) is familiar with it. So that's a steep climb already. Then consider that you're likely converting this to either straight Device Tree or Device Tree properties in ACPI. So... why not embrace Device Tree entirely for this purpose? It is lightweight, very flexible, trivial to parse, etc... and natively supported in OSes and firmware like u-boot, TianoCore UEFI, etc. The libraries are dual licensed and the spec is otherwise trivial even if you wanted to roll your own (and the tooling is super familiar to anyone).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions