-
-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Addition of nvmutil (nvm) from osboot project to play with gbe (Tha…
…nks @githubisnonfree!) - Addition of ifdtool from coreboot project to extract gbe - CONFIG_NVMUTIL in board config adds both ifdtool and nvmutil into initrd Manually tested (working!): - backup rom from: `flashrom -p internal -r /tmp/backup.rom` - go to that dir: `cd /tmp` - extract gbe from ifdtool on backup.rom: `ifdtool -x backup.rom` - source shell functions: `. /etc/functions` - show current PHY mac address: `nvm showmac flashregion_3_gbe.bin` - generate mac address from sourced shell functions: `newmac=$(generate_random_mac_address)` - show new mac: `echo $newmac` - change mac from nvmtool on extracted gbe: `nvm flashregion_3_gbe.bin setmac $newmac` - insert modified gbe into backup.rom.new with ifdtool: `ifdtool -i gbe:flashregion_3_gbe.bin backup.rom` - flash back modified gbe only through flashrom: `flashrom -p internal --ifd -i gbe -w backup.rom.new`
- Loading branch information
Showing
3 changed files
with
29 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
modules-$(CONFIG_NVMUTIL) += nvmutil | ||
|
||
nvmutil_depends := $(musl_dep) | ||
|
||
nvmutil_version := 20220802 | ||
nvmutil_dir := nvmutil-tools-$(nvmutil_version) | ||
nvmutil_tar := $(nvmutil_version).tar.gz | ||
nvmutil_url := https://notabug.org/osboot/nvmutil/archive/$(nvmutil_tar) | ||
nvmutil_hash := 9c82964c073bf38abcd64e9d394308fe88c92f1f828f4a1933284c972818493b | ||
|
||
nvmutil_target := \ | ||
$(CROSS_TOOLS) \ | ||
CFLAGS="-I$(INSTALL)/include" \ | ||
LDFLAGS="-L$(INSTALL)/lib" \ | ||
|
||
nvmutil_output := \ | ||
nvm \ | ||
|
||
nvmutil_libraries := \ | ||
|
||
nvmutil_configure := |