mirror of
https://github.com/linuxboot/linuxboot
synced 2024-11-21 07:42:25 +00:00
pruning broken board
Signed-off-by: Ronald G Minnich <rminnich@gmail.com>
This commit is contained in:
parent
03ce8a4a05
commit
faa2b2bac9
@ -1,8 +0,0 @@
|
||||
/*.cpio
|
||||
/*.lzma
|
||||
/linux
|
||||
/*kernel
|
||||
cpukernel-5.10
|
||||
cpukernel-5.4
|
||||
linux-5.10
|
||||
linux-5.4
|
@ -1,23 +0,0 @@
|
||||
# This file is generated from information provided by
|
||||
# the datasource. Changes to it will not persist across an instance.
|
||||
# To disable cloud-init's network configuration capabilities, write a file
|
||||
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
|
||||
# network: {config: disabled}
|
||||
network:
|
||||
ethernets:
|
||||
ens33:
|
||||
addresses: []
|
||||
dhcp4: true
|
||||
enx00e04c68017a:
|
||||
addresses: [192.168.0.1/24, "2001:db8:0:1::129/56"]
|
||||
dhcp4: false
|
||||
enxa0cec8cbc29b:
|
||||
addresses: [192.168.0.1/24, "2001:db8:0:1::129/56"]
|
||||
dhcp4: false
|
||||
enx00e04c6800ee:
|
||||
addresses: [192.168.0.1/24, "2001:db8:0:1::129/56"]
|
||||
dhcp4: false
|
||||
enx00e04c680a0f:
|
||||
addresses: [192.168.0.1/24, "2001:db8:0:1::129/56"]
|
||||
dhcp4: false
|
||||
version: 2
|
@ -1,11 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
utk \
|
||||
-xzPath \
|
||||
/usr/bin/xz \
|
||||
upimagewithup2dxeremovemore.bin \
|
||||
replace_pe32 \
|
||||
Shell_Full \
|
||||
$1 \
|
||||
save \
|
||||
/tmp/xxx.bin
|
@ -1,301 +0,0 @@
|
||||
# This is the makefile for a flash image, a netbootable sshd image,
|
||||
# and a netbootable cpu image.
|
||||
#
|
||||
# sshdkernel produces a kernel with a built-in initramfs for netboot
|
||||
# It provides (and starts) an sshd, and also has flashrom.
|
||||
# Hence you can ssh to a node, flashrom -r on it, scp the
|
||||
# image back, process it, scp the new image to the node, and
|
||||
# write with flashrom.
|
||||
# e.g.
|
||||
# ssh -i class_key -p 2022 board flashrom -r image.bin -p internal
|
||||
# scp -i class_key -P 2022 board:/image.bin image.bin
|
||||
# make flashpxeboot.bin
|
||||
# scp -i class_key -P 2022 flashpxeboot.bin board:/tiny.bin
|
||||
# ssh -i class_key -p 2022 board flashrom -w flashpxeboot.bin -p internal
|
||||
#
|
||||
# The cpu image uses a cpud as its init, and you
|
||||
# can cpu to it to run commands, including flashrom -p internal
|
||||
# to flash the flash image.
|
||||
# e.g.
|
||||
# cpu board flashrom -r image.bin -p internal
|
||||
# Note this writes image image.bin to the host directoy; no scp needed
|
||||
# make flashpxeboot.bin
|
||||
# cpu board flashrom -w flashpxeboot.bin -p internal
|
||||
# cpu is way more convenient than ssh/scp if you can learn it.
|
||||
# you can also just
|
||||
# cpu board
|
||||
# and once you are in:
|
||||
# flashrom -r image.bin -p internal
|
||||
# make flashpxeboot.bin
|
||||
# flashrom -w flashpxeboot.bin -p internal
|
||||
# NOTE: those commands are running on the board, and they all work
|
||||
#
|
||||
# flashpxeboot.bin produces a flash image which will pxeboot.
|
||||
# cpu.bin produces a flash image that starts a cpu daemon.
|
||||
#
|
||||
# You can test the flash image kernel with qemu
|
||||
# make flashtest
|
||||
|
||||
default: sshdkernel flash cpukernel
|
||||
|
||||
flash: flashpxeboot.bin
|
||||
|
||||
flashtest: testflashkernel
|
||||
|
||||
usefultargets:
|
||||
echo fetch, uroot, kernel, or image.bin
|
||||
|
||||
flashpxeboot.bin: edk2.bin flashkernel flashinitramfs.cpio.lzma
|
||||
utk \
|
||||
-xzPath /usr/bin/xz \
|
||||
$< \
|
||||
replace_pe32 Shell flashkernel \
|
||||
save $@
|
||||
dd if=flashinitramfs.cpio.lzma of=$@ bs=4096 seek=360 conv=notrunc
|
||||
|
||||
cpu.bin: edk2.bin cpuflashkernel cpu.cpio.lzma
|
||||
utk \
|
||||
-xzPath /usr/bin/xz \
|
||||
$< \
|
||||
replace_pe32 Shell cpuflashkernel \
|
||||
save $@
|
||||
NOT GOING dd if=cpu.cpio.lzma of=$@ bs=4096 seek=360 conv=notrunc
|
||||
|
||||
edk2.bin: dxeremove.bin
|
||||
echo Note, this inserts the edk2 bds and shell
|
||||
echo Only flash this image if you have an sf100.
|
||||
echo It will not be able to boot anything.
|
||||
utk \
|
||||
-xzPath /usr/bin/xz \
|
||||
$< \
|
||||
insert_dxe edk2bdsdxe.ffs insert_dxe edk2shell.ffs \
|
||||
save $@
|
||||
|
||||
dxeremove.bin: hap.bin
|
||||
echo note, we remove DXE to the point the image is not viable
|
||||
echo until you put a kernel in it in place of the shell.
|
||||
utk $< \
|
||||
comment FlashDriver_do_not_remove_efi_panics \
|
||||
comment S3Save_do_not_remove_gets_error \
|
||||
comment testremove \
|
||||
comment FlashDriver_do_not_remove_efi_panics \
|
||||
comment S3Save_do_not_remove_gets_error \
|
||||
comment testremove \
|
||||
remove Ahci.* \
|
||||
remove AMITSE \
|
||||
remove AMITSE.* \
|
||||
remove Arp.* \
|
||||
remove Ata.* \
|
||||
remove Bds \
|
||||
remove Button.* \
|
||||
remove CryptoD.* \
|
||||
remove .*Dhcp.* \
|
||||
remove Dhcp6Dxe \
|
||||
remove Disk.* \
|
||||
remove EbcDxe \
|
||||
remove Fat.* \
|
||||
remove .*ftp.* \
|
||||
remove .*harging.* \
|
||||
remove I2c.* \
|
||||
remove IntelGopV.* \
|
||||
remove IntelIsh.* \
|
||||
remove Ip4.* \
|
||||
remove Ip6Dxe \
|
||||
remove Iscsi.* \
|
||||
remove Ish.* \
|
||||
remove .*Keyboard.* \
|
||||
remove Logo.* \
|
||||
remove Maxim.* \
|
||||
remove Mmc.* \
|
||||
remove MnpDxe \
|
||||
remove Mouse.* \
|
||||
remove Mtftp4Dxe \
|
||||
remove Mtftp6Dxe \
|
||||
remove NetworkStackSetupScreen \
|
||||
remove Partition.* \
|
||||
remove .*PxeDxe.* \
|
||||
remove RandomNumberGen \
|
||||
remove ReFlash \
|
||||
remove Sata.* \
|
||||
remove Scsi.* \
|
||||
remove SnpDxe \
|
||||
remove SoftKbd \
|
||||
remove Tcp.* \
|
||||
remove TcpDxe \
|
||||
remove TimestampDxe \
|
||||
remove Udp.* \
|
||||
remove Udp4.* \
|
||||
remove Udp6Dxe \
|
||||
remove UefiPxe.* \
|
||||
remove Uhcd \
|
||||
remove Usb.* \
|
||||
remove Whea.* \
|
||||
remove Xpower.* \
|
||||
comment S3Save_do_not_remove_gets_error \
|
||||
comment below_still_unknown \
|
||||
comment TcgMor \
|
||||
comment AmiTcgNvflagSample \
|
||||
comment AmiTcgPlatformDxe \
|
||||
comment TcgDxeplatform \
|
||||
comment Tpm20PlatformDxe \
|
||||
comment CrbTpm20Acpi \
|
||||
comment TcgSmm \
|
||||
comment TcgDxe \
|
||||
comment Tcg2Dxe \
|
||||
comment TcgPlatformSetupPolicy \
|
||||
save $@
|
||||
chmod a-w $@
|
||||
|
||||
hap.bin: tighten.bin
|
||||
cp $< $@
|
||||
me_cleaner.py -s $@
|
||||
chmod a-w $@
|
||||
|
||||
tighten.bin: image.bin
|
||||
utk $< tighten_me save $@
|
||||
|
||||
sshdkernel: sshd.cpio.lzma sshd.config
|
||||
cp sshd.config linux/.config
|
||||
(cd linux && make oldconfig && make -j32)
|
||||
cp linux/arch/x86/boot/bzImage $@
|
||||
|
||||
cpukernel: cpu.cpio.lzma cpu.config
|
||||
cp cpu.config linux/.config
|
||||
(cd linux && make oldconfig && make -j32)
|
||||
cp linux/arch/x86/boot/bzImage $@
|
||||
|
||||
cpukernel-5.4: cpu.cpio.lzma cpu.config-5.4
|
||||
cp cpu.config-5.4 linux-5.4/.config
|
||||
(cd linux-5.4 && make oldconfig && make -j32)
|
||||
cp linux-5.4/arch/x86/boot/bzImage $@
|
||||
|
||||
cpukernel-5.10: cpu.cpio.lzma cpu.config-5.10
|
||||
cp cpu.config-5.10 linux-5.10/.config
|
||||
(cd linux-5.10 && make oldconfig && make -j32)
|
||||
cp linux-5.10/arch/x86/boot/bzImage $@
|
||||
|
||||
dutkernel-5.10: dut.cpio.lzma dut.config-5.10
|
||||
cp dut.config-5.10 linux-5.10/.config
|
||||
(cd linux-5.10 && make oldconfig && make -j32)
|
||||
cp linux-5.10/arch/x86/boot/bzImage $@
|
||||
|
||||
cpuflashkernel: cpu.cpio.lzma cpuflash.config
|
||||
cp cpuflash.config linux/.config
|
||||
(cd linux && make oldconfig && make -j32)
|
||||
cp linux/arch/x86/boot/bzImage $@
|
||||
|
||||
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
|
||||
|
||||
flashinitramfs.cpio.lzma: flashinitramfs.cpio
|
||||
lzma -f -k $<
|
||||
|
||||
flashinitramfs.cpio: Makefile
|
||||
u-root -o $@ -build=bb \
|
||||
-uinitcmd=/bbin/pxeboot \
|
||||
github.com/u-root/u-root/cmds/boot/pxeboot \
|
||||
github.com/u-root/u-root/cmds/core/cat \
|
||||
github.com/u-root/u-root/cmds/core/elvish \
|
||||
github.com/u-root/u-root/cmds/core/init \
|
||||
github.com/u-root/u-root/cmds/core/ip \
|
||||
github.com/u-root/u-root/cmds/core/ls \
|
||||
github.com/u-root/u-root/cmds/core/kexec \
|
||||
github.com/u-root/u-root/cmds/core/pci \
|
||||
github.com/u-root/u-root/cmds/core/wget \
|
||||
|
||||
# this target builds an initramfs with only one program, the cpu server.
|
||||
# It depends on the kernel setting the IP address.
|
||||
# You need ip=dhcp OR ip=fixed.ip.address.here in the command line
|
||||
cpu.cpio.lzma: Makefile
|
||||
u-root -o cpu.cpio -build=bb -initcmd=cpud -files ~/.ssh/cpu_rsa.pub:key.pub \
|
||||
-defaultsh="" \
|
||||
github.com/u-root/cpu/cmds/cpud
|
||||
lzma -f -k cpu.cpio
|
||||
|
||||
dut.cpio.lzma: Makefile
|
||||
u-root -o dut.cpio -build=bb -initcmd=dut -files ~/.ssh/cpu_rsa.pub:key.pub \
|
||||
-defaultsh="" \
|
||||
github.com/u-root/cpu/cmds/cpud
|
||||
lzma -f -k cpu.cpio
|
||||
|
||||
# this target builds an initramfs with all of u-root, AND all of /bin, /usr/bin, /sbin, /usr/sbin, /etc
|
||||
# the intent is to demonstrate the capability of http loading.
|
||||
# It depends on the kernel setting the IP address.
|
||||
# You need ip=dhcp OR ip=fixed.ip.address.here in the command line
|
||||
sshd.cpio.lzma: Makefile
|
||||
u-root -o sshd.cpio -build=bb \
|
||||
-uinitcmd=/bbin/sshd \
|
||||
-files class_key.pub:authorized_keys \
|
||||
-files classhostkey:id_rsa \
|
||||
-files /usr/bin/vi \
|
||||
-files /usr/share/vim \
|
||||
-files /usr/share/terminfo \
|
||||
-files /bin/bash \
|
||||
-files /usr/sbin/flashrom \
|
||||
-files /usr/bin/xz \
|
||||
all
|
||||
lzma -f -k sshd.cpio
|
||||
ls -l sshd.cpio.*
|
||||
|
||||
flashkernel: flash.config flashinitramfs.cpio.lzma Makefile
|
||||
cp $< linux/.config
|
||||
echo CONFIG_CMDLINE_BOOL=y >> linux/.config
|
||||
echo CONFIG_CMDLINE_OVERRIDE=y >> linux/.config
|
||||
stat -c 'CONFIG_CMDLINE="noefi ip=dhcp earlyprintk=ttyS0,115200,keep console=ttyS0,115200 netconsole=6666@192.168.0.2/,6666@192.168.0.1/ initrdmem=0xff968000,%s"' flashinitramfs.cpio.lzma >> linux/.config
|
||||
(cd linux && make oldconfig && make -j32)
|
||||
cp linux/arch/x86/boot/bzImage $@
|
||||
|
||||
testflashkernel: flashkernel
|
||||
qemu-system-x86_64 -kernel flashkernel -nographic -serial /dev/tty -initrd flashinitramfs.cpio.lzma
|
||||
|
||||
testcpukernel: cpukernel
|
||||
qemu-system-x86_64 -kernel cpukernel -nographic -serial /dev/tty
|
||||
|
||||
# These stanzas fetch code.
|
||||
fetch: getkernel geturoot getfiano getrom
|
||||
|
||||
getkernel:
|
||||
rm -rf linux
|
||||
git clone --depth=1 -b v5.15 --single-branch https://github.com/torvalds/linux
|
||||
|
||||
getlinux-5.4:
|
||||
rm -rf linux-5.4
|
||||
git clone --depth=1 -b v5.4 --single-branch https://github.com/torvalds/linux linux-5.4
|
||||
|
||||
getlinux-5.10:
|
||||
rm -rf linux-5.10
|
||||
git clone --depth=1 -b v5.10 --single-branch https://github.com/torvalds/linux linux-5.10
|
||||
|
||||
getfiano:
|
||||
go get -u github.com/linuxboot/fiano/cmds/utk
|
||||
go install github.com/linuxboot/fiano/cmds/utk
|
||||
go install github.com/linuxboot/fiano/cmds/guid2english
|
||||
getrom:
|
||||
echo you can put a wget here
|
||||
echo and unxip it
|
||||
echo and cp it to image.bin
|
||||
geturoot:
|
||||
go get -u github.com/u-root/u-root
|
||||
go get -u github.com/u-root/cpu/...
|
||||
|
||||
# Serve the combined sshd-kernel and sshd-initramfs image. This includes flashrom
|
||||
sshd-pxeserver:
|
||||
echo Consider Disabling any system services ...
|
||||
echo e.g. sudo systemctl stop tftpd-hpa.service
|
||||
echo e.g. sudo systemctl stop isc-dhcp-server
|
||||
sudo `go env GOPATH`/bin/pxeserver -tftp-dir . -bootfilename sshdkernel -http-dir . -interface $(NETWORK)
|
||||
|
||||
# Serve the combined cpu-kernel and cpu-initramfs image.
|
||||
cpu-pxeserver:
|
||||
echo Consider Disabling any system services ...
|
||||
echo e.g. sudo systemctl stop tftpd-hpa.service
|
||||
echo e.g. sudo systemctl stop isc-dhcp-server
|
||||
sudo `go env GOPATH`/bin/pxeserver -tftp-dir . -bootfilename cpukernel -http-dir . -interface $(NETWORK)
|
||||
|
||||
ssh:
|
||||
ssh -i class_key -p 2022 root@up
|
@ -1 +0,0 @@
|
||||
sudo flashrom -p dediprog:voltage=1.8 -r $*
|
@ -1,9 +0,0 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
rm -f /tmp/xxx.bin
|
||||
utk -xzPath /usr/bin/xz \
|
||||
/mnt/hgfs/rminnich/Downloads/OVMF.fd \
|
||||
remove BdsDxe insert_dxe up2bds.ffs \
|
||||
remove Shell insert_dxe up2shellfull.ffs \
|
||||
save /tmp/xxx.fd
|
||||
/usr/bin/qemu-system-x86_64 -nographic -net none -bios /tmp/xxx.fd
|
@ -1,36 +0,0 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
echo "Make sure me_cleaner.py is in our path"
|
||||
which me_cleaner.py
|
||||
echo "Make sure utk is in our path"
|
||||
which utk
|
||||
echo "Make sure guid2english is in our path"
|
||||
which guid2english
|
||||
echo "Let's go!"
|
||||
touch image.bin
|
||||
read -p "Hit return to see the original UEFI image structure"
|
||||
utk image.bin table | guid2english | less
|
||||
echo "Cut the ME area down to a smaller area"
|
||||
make tighten.bin
|
||||
read -p "hit to see the changed UEFI structure" i
|
||||
utk tighten.bin table | guid2english | less
|
||||
read -p "hit return to continue to setting HAP bit" i
|
||||
chmod +w hap.bin
|
||||
make hap.bin
|
||||
# read -p "hit return to continue" i
|
||||
# utk hap.bin table | guid2english | less
|
||||
read -p "hit return to remove DXEs" i
|
||||
chmod +w dxeremove.bin
|
||||
make dxeremove.bin
|
||||
# read -p "hit return to see the post-removal table" i
|
||||
# utk dxeremove.bin table | guid2english | less
|
||||
read -p "Hit return to add BdsDxe and UEFIShellDxe built from source" i
|
||||
make edk2.bin
|
||||
read -p "hit return to see the new UEFI image" i
|
||||
utk edk2.bin table | guid2english | less
|
||||
read -p "hit return to Replace shell binary with kernel and add initramfs" i
|
||||
make tiny.bin
|
||||
read -p "hit return to see the final image" i
|
||||
utk tiny.bin table | guid2english | less
|
||||
read -p "to see how the kernel finds the initrd hit return" i
|
||||
grep initrd= linux/.config
|
@ -1 +0,0 @@
|
||||
sudo flashrom -p dediprog:voltage=1.8 -v $*
|
@ -1 +0,0 @@
|
||||
sudo flashrom -p dediprog:voltage=1.8 -w $*
|
@ -1,27 +0,0 @@
|
||||
-----BEGIN RSA PRIVATE KEY-----
|
||||
MIIEpQIBAAKCAQE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AIaFY+1kWAPpDBggq1n9UVYzNTK1zpyJHBvmhvr7T6ZsvcgVvVdkNs4LeBJsY9XhXTFmtW3 rminnich@xcpu
|
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
File diff suppressed because it is too large
Load Diff
@ -1,22 +0,0 @@
|
||||
allow booting;
|
||||
allow bootp;
|
||||
option option-128 code 128 = string;
|
||||
option option-129 code 129 = text;
|
||||
next-server 192.168.0.1;
|
||||
filename "grubnetx64.efi.signed";
|
||||
option domain-name "coreboot.org";
|
||||
option domain-name-servers ns1.google.com, ns2.google.com;
|
||||
default-lease-time 600;
|
||||
max-lease-time 7200;
|
||||
ddns-update-style none;
|
||||
authoritative;
|
||||
default-lease-time 600;
|
||||
max-lease-time 7200;
|
||||
log-facility local7;
|
||||
subnet 192.168.0.0 netmask 255.255.255.0 {
|
||||
option routers 192.168.0.1;
|
||||
# Specify the subnet-mask
|
||||
option subnet-mask 255.255.255.0;
|
||||
# Specify the range of leased IP addresses
|
||||
range 192.168.0.2 192.168.0.128;
|
||||
}
|
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@ -1,14 +0,0 @@
|
||||
timeout=0
|
||||
menuentry "NERF with linuxboot build no graphics" {
|
||||
linux kernel ip=dhcp earlyprintk=ttyS0,115200 console=ttyS0,115200
|
||||
initrd /initramfs.linux_amd64.cpio.lzma
|
||||
}
|
||||
|
||||
menuentry "NERF with linuxboot build no graphics and a netconsole" {
|
||||
linux kernel ip=dhcp earlyprintk=ttyS0,115200 netconsole=6666@192.168.0.2/,6666@192.168.0.1/
|
||||
initrd /initramfs.linux_amd64.cpio.lzma
|
||||
}
|
||||
|
||||
menuentry "NERF with linuxboot build no graphics initramfs in SPI" {
|
||||
linux kernel ip=dhcp earlyprintk=ttyS0,115200 console=ttyS0,115200 initrd=0xff968000,1294143
|
||||
}
|
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,116 +0,0 @@
|
||||
# nasm -f bin
|
||||
bits 64
|
||||
section .header
|
||||
DOS:
|
||||
dw 0x5a4d ;e_magic
|
||||
times 29 dw 0 ;unused
|
||||
dd 0x40 ;e_lfanew
|
||||
|
||||
PECOFF:
|
||||
dd `PE\0\0` ;Signature
|
||||
dw 0x8664 ;Machine
|
||||
dw 3 ;NumberOfSections
|
||||
dd 0 ;TimeDateStamp
|
||||
dd 0 ;PointerToSymbolTable
|
||||
dd 0 ;NumberOfSymbols
|
||||
dw 160 ;SizeOfOptionalHeader
|
||||
dw 0x202 ;Characteristics
|
||||
dw 0x20b ;Magic
|
||||
db 0 ;MajorLinkerVersion
|
||||
db 0 ;MinorLinkerVersion
|
||||
dd 0x200 ;SizeOfCode
|
||||
dd 0x400 ;SizeOfInitializedData
|
||||
dd 0 ;SizeOfUninitializedData
|
||||
dd 0x0 ;AddressOfEntryPoint
|
||||
dd 0x0 ;BaseOfCode
|
||||
dq 0x0 ;ImageBase
|
||||
dd 0x1000 ;SectionAlignment
|
||||
dd 0x200 ;FileAlignment
|
||||
dw 0 ;MajorOperatingSystemVersion
|
||||
dw 0 ;MinorOperatingSystemVersion
|
||||
dw 0 ;MajorImageVersion
|
||||
dw 0 ;MinorImageVersion
|
||||
dw 0 ;MajorSubsystemVersion
|
||||
dw 0 ;MinorSubsystemVersion
|
||||
dd 0 ;Reserved
|
||||
dd 0x3000 ;SizeOfImage
|
||||
dd 0x200 ;SizeOfHeaders
|
||||
dd 0 ;CheckSum
|
||||
dw 10 ;Subsystem
|
||||
dw 0 ;DllCharacteristics
|
||||
dq 0 ;SizeOfStackReserve
|
||||
dq 0 ;SizeOfStackCommit
|
||||
dq 0 ;SizeOfHeapReserve
|
||||
dq 0 ;SizeOfHeapCommit
|
||||
dd 0 ;LoaderFlags
|
||||
dd 6 ;NumberOfRvaAndSizes
|
||||
|
||||
DIRS:
|
||||
times 40 db 0 ;unused dirs for this app
|
||||
dd 0x1000 ;VirtualAddress(.reloc)
|
||||
dd 8 ;Size(.reloc)
|
||||
|
||||
SECTS:
|
||||
.1:
|
||||
dq `.text` ;Name
|
||||
dd codesize ;VirtualSize
|
||||
dd 0x0 ;VirtualAddress
|
||||
dd 0x200 ;SizeOfRawData
|
||||
dd 0x200 ;PointerToRawData
|
||||
dd 0 ;PointerToRelocations
|
||||
dd 0 ;PointerToLinenumbers
|
||||
dw 0 ;NumberOfRelocations
|
||||
dw 0 ;NumberOfLinenumbers
|
||||
dd 0x60500020 ;Characteristics
|
||||
|
||||
.2:
|
||||
dq `.reloc`
|
||||
dd 0x8
|
||||
dd 0x1000
|
||||
dd 0x200
|
||||
dd 0x400
|
||||
dd 0
|
||||
dd 0
|
||||
dw 0
|
||||
dw 0
|
||||
dd 0x42100040
|
||||
|
||||
.3:
|
||||
dq `.data`
|
||||
dd datasize
|
||||
dd 0x2000
|
||||
dd 0x200
|
||||
dd 0x600
|
||||
dd 0
|
||||
dd 0
|
||||
dw 0
|
||||
dw 0
|
||||
dd 0xc0100040
|
||||
|
||||
section .text follows=.header align=0x200
|
||||
a:
|
||||
mov rax, 48
|
||||
mov rdx, 1016
|
||||
db 0xee
|
||||
jmp a
|
||||
sub rsp, 40
|
||||
|
||||
mov rcx, [rdx+64]
|
||||
lea rdx, [rel hello]
|
||||
call [rcx+8]
|
||||
|
||||
add rsp, 40
|
||||
ret
|
||||
|
||||
codesize equ $ - $$
|
||||
|
||||
section .reloc follows=.text align=0x200
|
||||
dd 0 ;PageRVA
|
||||
dd 8 ;BlockSize
|
||||
|
||||
section .data follows=.reloc align=0x200 vstart=0x2200 ;yeah this is the trick!
|
||||
hello:
|
||||
db __utf16__ `hello world!\n\r\0`
|
||||
|
||||
datasize equ $ - $$
|
||||
align 0x200,db 0
|
@ -1,2 +0,0 @@
|
||||
#!/bin/bash
|
||||
netcat -l -u 192.168.0.1 6666
|
@ -1,27 +0,0 @@
|
||||
prompt 0
|
||||
timeout 300
|
||||
ONTIMEOUT local
|
||||
DEFAULT cpu
|
||||
|
||||
MENU TITLE PXE Menu
|
||||
|
||||
LABEL flash
|
||||
MENU LABEL flash
|
||||
kernel http://192.168.0.1/tinykernel
|
||||
append ip=dhcp earlyprintk=ttyS0,115200 console=ttyS0,115200 memmap=256M!1G netconsole=6666@192.168.0.2/,6666@192.168.0.1/
|
||||
|
||||
LABEL reflash
|
||||
MENU LABEL reflash
|
||||
kernel http://192.168.0.1/sshdkernel
|
||||
append ip=dhcp earlyprintk=ttyS0,115200 console=ttyS0,115200 netconsole=6666@192.168.0.2/,6666@192.168.0.1/ intel-spi.writeable=1 debug loglevel=8
|
||||
|
||||
LABEL reflashslow
|
||||
MENU LABEL reflash
|
||||
kernel sshdkernel
|
||||
append ip=dhcp earlyprintk=ttyS0,115200 console=ttyS0,115200 netconsole=6666@192.168.0.2/,6666@192.168.0.1/ intel-spi.writeable=1 debug loglevel=8
|
||||
|
||||
LABEL cpu
|
||||
MENU LABEL cpu
|
||||
kernel http://192.168.0.1/cpukernel
|
||||
append ip=dhcp earlyprintk=ttyS0,115200 console=ttyS0,115200 netconsole=6666@192.168.0.2/,6666@192.168.0.1/ intel-spi.writeable=1 debug loglevel=8
|
||||
|
@ -1,27 +0,0 @@
|
||||
prompt 0
|
||||
timeout 300
|
||||
ONTIMEOUT local
|
||||
DEFAULT cpu
|
||||
|
||||
MENU TITLE PXE Menu
|
||||
|
||||
LABEL flash
|
||||
MENU LABEL flash
|
||||
kernel http://192.168.0.1/tinykernel
|
||||
append ip=dhcp earlyprintk=ttyS0,115200 console=ttyS0,115200 memmap=256M!1G netconsole=6666@192.168.0.2/,6666@192.168.0.1/
|
||||
|
||||
LABEL reflash
|
||||
MENU LABEL reflash
|
||||
kernel http://192.168.0.1/sshdkernel
|
||||
append ip=dhcp earlyprintk=ttyS0,115200 console=ttyS0,115200 netconsole=6666@192.168.0.2/,6666@192.168.0.1/ intel-spi.writeable=1 debug loglevel=8
|
||||
|
||||
LABEL reflashslow
|
||||
MENU LABEL reflash
|
||||
kernel sshdkernel
|
||||
append ip=dhcp earlyprintk=ttyS0,115200 console=ttyS0,115200 netconsole=6666@192.168.0.2/,6666@192.168.0.1/ intel-spi.writeable=1 debug loglevel=8
|
||||
|
||||
LABEL cpu
|
||||
MENU LABEL cpu
|
||||
kernel http://192.168.0.1/cpukernel
|
||||
append ip=dhcp earlyprintk=ttyS0,115200 console=ttyS0,115200 netconsole=6666@192.168.0.2/,6666@192.168.0.1/ intel-spi.writeable=1 debug loglevel=8
|
||||
|
@ -1,27 +0,0 @@
|
||||
prompt 0
|
||||
timeout 300
|
||||
ONTIMEOUT local
|
||||
DEFAULT cpu
|
||||
|
||||
MENU TITLE PXE Menu
|
||||
|
||||
LABEL flash
|
||||
MENU LABEL flash
|
||||
kernel http://192.168.0.1/tinykernel
|
||||
append initrd=http://192.168.0.1/flashinitramfs.cpio.lzma ip=dhcp earlyprintk=ttyS0,115200 console=ttyS0,115200 memmap=256M!1G netconsole=6666@192.168.0.2/,6666@192.168.0.1/
|
||||
|
||||
LABEL reflash
|
||||
MENU LABEL reflash
|
||||
kernel http://192.168.0.1/kernel
|
||||
append initrd=http://192.168.0.1/biguroot.cpio.lzma ip=dhcp earlyprintk=ttyS0,115200 console=ttyS0,115200 netconsole=6666@192.168.0.2/,6666@192.168.0.1/ intel-spi.writeable=1 debug loglevel=8
|
||||
|
||||
LABEL reflashslow
|
||||
MENU LABEL reflash
|
||||
kernel kernel
|
||||
append initrd=/biguroot.cpio.lzma ip=dhcp earlyprintk=ttyS0,115200 console=ttyS0,115200 netconsole=6666@192.168.0.2/,6666@192.168.0.1/ intel-spi.writeable=1 debug loglevel=8
|
||||
|
||||
LABEL cpu
|
||||
MENU LABEL cpu
|
||||
kernel http://192.168.0.1/kernel
|
||||
append initrd=http://192.168.0.1/initramfs.linux_amd64.cpio.lzma ip=dhcp earlyprintk=ttyS0,115200 console=ttyS0,115200 netconsole=6666@192.168.0.2/,6666@192.168.0.1/ intel-spi.writeable=1 debug loglevel=8
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,18 +0,0 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
echo https://wiki.up-community.org/Enable_PXE_boot
|
||||
sudo netplan apply
|
||||
ip a
|
||||
sudo service isc-dhcp-server restart
|
||||
sudo systemctl restart tftpd-hpa
|
||||
echo Serving IP4 but you can get ip6 via other means
|
||||
echo dont forget to get this
|
||||
echo http://archive.ubuntu.com/ubuntu/dists/trusty/main/uefi/grub2-amd64/current/grubnetx64.efi.signed
|
||||
|
||||
exit 0
|
||||
mkdir -p /tmp/kea
|
||||
sudo kea-dhcp6 -d -d -d -c ~/bin/kea6.conf
|
||||
|
||||
|
||||
echo sudo tar xvf /mnt/hgfs/rminnich/Downloads/netboot.tar.gz
|
Loading…
Reference in New Issue
Block a user