pruning broken board

Signed-off-by: Ronald G Minnich <rminnich@gmail.com>
This commit is contained in:
Ronald G Minnich 2024-10-23 23:19:58 -07:00 committed by Daniel Maslowski
parent faa2b2bac9
commit 38655daa09
7 changed files with 0 additions and 8483 deletions

View File

@ -1,154 +0,0 @@
MAJOR ?= 5
STABLE = $(MAJOR).15
CONFIG ?= $(MAJOR).15.0
KEYPATH ?= ""
default: build
build:
echo fetch, uroot, flashkernel, or image.bin
image.bin: flashkernel
utk \
-xzPath /usr/bin/xz \
ROM.bin \
remove TraceHubStatusCodeHandlerRuntimeDxe \
remove TraceHubStatusCodeHandlerSmm \
remove StatusCodeHandlerRuntimeDxeUsb \
remove DataHubDxe \
remove HpBootMenuApp \
remove TxtDxe \
remove HstiIhvProviderDxe \
remove LegacyRegion2 \
remove EbcDxe \
remove LegacyInterrupt \
remove PciHotPlug \
remove HwpLvtSmm \
remove IsPlatformSupportWhea \
remove WheaSupport \
remove WheaErrorInj \
remove WheaPlatformBoot \
remove WheaErrorLog \
remove LastBootErrorLog \
remove McBankErrorInjection \
remove OpaPlatCfg \
remove DataHubStdErrDxe \
remove HpLogStdErrToMem \
remove HpBiosLogToAhsDxe \
remove HpBiosLogToAhsSmm \
remove ServerConfigLock \
remove ServerConfigLockDxe \
remove IntelligentProvisioningApp \
remove ErrorInformationApp \
remove ImlViewApp \
remove EmbeddedDiagsApp \
remove HpPlotPciRebootTestDriver \
remove HpNvDimmDxe \
remove HpNvDimmBlkIoDxe \
remove NvDimmFwUpdate \
remove HpType10NvdimmPowerMonitorDxe \
remove FirmwarePerformanceSmm \
remove HpType10NvdimmCommonDataDxe \
remove HpNvDimmMemScan \
remove HpNvDimmTelemetryDxe \
remove BackupRestore \
remove HpBackupRestoreDxe \
remove HpSecureErase \
remove HpSecureEraseDxe \
remove TerminalDxe \
remove IsaSerialDxe \
remove LegacyBiosDxe \
remove HpLegacyBootDxe \
remove LegacyBiosPlatform \
remove HpPostCodeWorkerDxe \
remove HpPostCodeWorkerSmm \
replace_pe32 Shell flashkernel \
save image.bin
flashkernel: uroot injectkeys bzImage
cp linux/arch/x86/boot/bzImage flashkernel
netboot: netbooturoot bzImage
cp linux/arch/x86/boot/bzImage kernel
readrom:
echo You need to get a ROM image from *somewhere*
echo Once you do, put it in ROM.bin
writerom: image.bin
echo Here is where you would do the flashrom, e.g.
echo sudo flashrom -p dediprog -w image.bin
netbooturoot:
u-root -build=bb -uinitcmd="hostname dl360Gen10" \
github.com/u-root/u-root/cmds/core/hostname \
github.com/u-root/u-root/cmds/core/init \
github.com/u-root/u-root/cmds/core/id \
github.com/u-root/u-root/cmds/core/cat \
github.com/u-root/u-root/cmds/core/ls \
github.com/u-root/u-root/cmds/core/ip \
github.com/u-root/u-root/cmds/core/elvish \
github.com/u-root/u-root/cmds/core/sshd \
github.com/u-root/u-root/cmds/core/scp \
github.com/u-root/u-root/cmds/core/pci \
github.com/u-root/u-root/cmds/core/dhclient \
github.com/u-root/u-root/cmds/core/rsdp \
github.com/u-root/u-root/cmds/boot/*
cp /tmp/initramfs.linux_amd64.cpio .
lzma -k -f initramfs.linux_amd64.cpio
ls -l initramfs*
cp *lzma linux/
uroot:
u-root -build=bb -uinitcmd="hostname dl360Gen10" \
github.com/u-root/u-root/cmds/core/hostname \
github.com/u-root/u-root/cmds/core/dd \
github.com/u-root/u-root/cmds/core/init \
github.com/u-root/u-root/cmds/core/id \
github.com/u-root/u-root/cmds/core/cat \
github.com/u-root/u-root/cmds/core/ls \
github.com/u-root/u-root/cmds/core/ip \
github.com/u-root/u-root/cmds/core/elvish \
github.com/u-root/u-root/cmds/core/more \
github.com/u-root/u-root/cmds/core/mount \
github.com/u-root/u-root/cmds/core/sshd \
github.com/u-root/u-root/cmds/core/scp \
github.com/u-root/u-root/cmds/core/dmesg \
github.com/u-root/u-root/cmds/core/grep \
github.com/u-root/u-root/cmds/core/pci \
github.com/u-root/u-root/cmds/core/dhclient \
github.com/u-root/u-root/cmds/core/rsdp \
github.com/u-root/u-root/cmds/boot/*
cp /tmp/initramfs.linux_amd64.cpio .
lzma -k -f initramfs.linux_amd64.cpio
ls -l initramfs*
cp *lzma linux
injectkeys:
echo "FIXME: 'injectkeys' got lost; see Makefile.rej!"
bzImage:
cp config-$(CONFIG) linux/.config
(cd linux && make oldconfig && make -j32)
fetch: getkernel geturoot getfiano getrom
getkernel:
rm -rf linux
wget -O kernel.xz https://cdn.kernel.org/pub/linux/kernel/v$(MAJOR).x/linux-$(STABLE).tar.xz
xzcat kernel.xz | tar x
mv linux-$(STABLE) linux
getfiano:
go get -u github.com/linuxboot/fiano/cmds/utk
go install github.com/linuxboot/fiano/cmds/utk
getrom:
@echo If you plan to flash to hardware,
@echo you will need to get a rom imagei
@echo and put it in rom.bin
@echo you can get it via wget, flashrom, whatever.
@echo If you are not targeting hardware, you can
@echo make flashkernel
@echo and run that kernel via qemu
geturoot:
go get -u github.com/u-root/u-root

View File

@ -1,11 +0,0 @@
diff a/mainboards/hpe/dl360gen10/Makefile b/mainboards/hpe/dl360gen10/Makefile (rejected hunks)
@@ -122,6 +122,9 @@ uroot:
github.com/u-root/u-root/cmds/boot/*
cp /tmp/initramfs.linux_amd64.cpio .
+ lzma -k -f initramfs.linux_amd64.cpio
+ ls -l initramfs*
+ cp *lzma linux/
injectkeys:
ifneq ($(KEYPATH),"")

View File

@ -1,10 +0,0 @@
Copyright 2020 Hewlett Packard Enterprise Development LP.
Initial support for DL360 Gen 10
Maintainer: jean-marie.verdun@hpe.com / vejmarie
"Code" inspired from the intel default motherboard
Can be tested by using the public HPE Continuous Integration platform available at https://osfci.tech
Feel free to contribute !

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,18 +0,0 @@
rm -r tmp
mkdir tmp
cp initramfs.linux_amd64.cpio tmp
cd tmp
sudo cpio -idv < initramfs.linux_amd64.cpio
sudo mkdir etc/sshd
cd etc/sshd
sudo ssh-keygen -t rsa -P "$2" -f id_rsa 2>&1 >/dev/null
test -f "$1" && sudo cp $1 authorized_keys
cd ../..
rm initramfs.linux_amd64.cpio
rm /tmp/initramfs.linux_amd64.cpio
sudo find . 2>/dev/null | sudo cpio -o -H newc -R root:root | xz -9 --format=lzma > /tmp/initramfs.linux_amd64.cpio.lzma
cd ..
sudo rm -r tmp
cp /tmp/initramfs.linux_amd64.cpio.lzma .
cp *lzma linux
exit 0