-
Notifications
You must be signed in to change notification settings - Fork 335
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lk2nd: fastboot: Add "fastboot oem dtb" to dump dtb passed by bootloader
This allows inspecting the changes to the dtb made by the bootloader. Usage: "fastboot oem dtb && fastboot get_staged output.dtb" Fixes #372
- Loading branch information
1 parent
6d8312b
commit 3e665dc
Showing
5 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// SPDX-License-Identifier: BSD-3-Clause | ||
/* Copyright (c) 2021-2022, Stephan Gerhold <[email protected]> */ | ||
|
||
#include <fastboot.h> | ||
#include <libfdt.h> | ||
|
||
#include "../device/device.h" | ||
|
||
static void cmd_oem_dtb(const char *arg, void *data, unsigned sz) | ||
{ | ||
fastboot_stage(lk2nd_dev.dtb, fdt_totalsize(lk2nd_dev.dtb)); | ||
} | ||
FASTBOOT_REGISTER("oem dtb", cmd_oem_dtb); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters