Git Product home page Git Product logo

Comments (3)

VicLin66 avatar VicLin66 commented on May 23, 2024

Can anyone give me an example to illustrate the type code 0xFD's value field format?

from onie.

cbrune avatar cbrune commented on May 23, 2024

Indeed, the documentation for setting type code 0xFD "Vendor Extension" is absent. Also it is not entirely clear from the source code. The docs for the command are here:
https://github.com/opencomputeproject/onie/wiki/Design-Spec-x86-Linux-Kernel

Nevertheless, here is how it works, using a DELL-S6000 as an example:

ONIE:/ # onie-syseeprom -s 0xfd="0x12 0x34 0xAA 0x0A"
Adding   TLV 0xfd: Vendor Extension
Programming passed.
TlvInfo Header:
   Id String:    TlvInfo
   Version:      1
   Total Length: 95
TLV Name             Code Len Value
-------------------- ---- --- -----
Service Tag          0x2F   7 2RY8VS1
Base MAC Address     0x24   6 44:38:39:00:7B:0E
MAC Addresses        0x2A   2 129
Product Name         0x21   5 S6000
Manufacturer         0x2B   4 DELL
Serial Number        0x23   7 2RY8VS1
Platform Name        0x28  26 x86_64-dell_s6000_s1220-r0
Loader Version       0x29  10 2015.02.01
Vendor Extension     0xFD   4  0x12 0x34 0xAA 0x0A
CRC-32               0xFE   4 0x7CA831DF
Checksum is valid.

There a few particularities you have to watch out for:

  • The type code must be 0xfd (lower case). Using 0xFD will not work. That should be fixed.
  • The value is a space separated list of bytes.
  • The bytes can be specified in decimal or hex. If hex then the 0x prefix is required.

All of this should end up in the docs for this command.

from onie.

VicLin66 avatar VicLin66 commented on May 23, 2024

Dear cbrune:
Thanks for your clear explain and illustrate. I will take care with "space separated list of bytes" and make a try on newest ONIE github code. And maybe fixed the case issue(0xfd, 0xFD).

from onie.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.