* JetHome: add basic files for JetHub D1/H1 boards Signed-off-by: Vyacheslav Bocharov <adeep@lexina.in> * JetHome: add uboot patches Signed-off-by: Vyacheslav Bocharov <adeep@lexina.in> * JetHome: add kernel patches for JetHub D1/H1 (backport from 5.16-dt kernel) Signed-off-by: Vyacheslav Bocharov <adeep@lexina.in> * JetHome: add bsp packages for JetHub D1/H1 Signed-off-by: Vyacheslav Bocharov <adeep@lexina.in> * JetHome: add kernel options for hardware JetHub D1/H1 Signed-off-by: Vyacheslav Bocharov <adeep@lexina.in> * JetHome: fix targets-cli-beta.conf for JetHub D1/H1 Signed-off-by: Vyacheslav Bocharov <adeep@lexina.in> * JetHome: add axg uboot creation function for JetHub D1 Signed-off-by: Vyacheslav Bocharov <adeep@lexina.in>
20 lines
465 B
C++
20 lines
465 B
C++
#include <cstdlib>
|
|
#include <iomanip>
|
|
|
|
#include "jethub_get_efuse_raw_key.h"
|
|
|
|
int main (/*int argc, char *argv[]*/) {
|
|
auto mac = getKey("mac");
|
|
if (mac.size() == 6) {
|
|
for (auto it = mac.begin(); it != mac.end(); ++it) {
|
|
std::cout << std::setfill('0') << std::setw(2) << std::right << std::hex << static_cast<int>(*it);
|
|
if (it < mac.end() - 1) {
|
|
std::cout << ":";
|
|
}
|
|
}
|
|
std::cout << std::endl;
|
|
}
|
|
|
|
return EXIT_SUCCESS;
|
|
}
|