First pass at fixing CI errors

Signed-off-by: Ryan O'Leary <ryanoleary@google.com>
This commit is contained in:
Ryan O'Leary 2021-06-17 00:24:36 -07:00
parent 14d162880d
commit 7e9957402f
15 changed files with 6298 additions and 45 deletions

View File

@ -18,6 +18,13 @@ jobs:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Environment variables
env:
# Setup $GOPATH
GOPATH: ${{ github.workspace }}/go
# Turn off modules because they are broken.
GO111MODULE: off
# Run the build for each one of these configurations in parallel.
strategy:
matrix:
@ -58,9 +65,13 @@ jobs:
# access it.
- uses: actions/checkout@v2
- name: Install dependent packages
run: sudo apt-get install gcc-aarch64-linux-gnu gcc-arm-linux-gnueabi{,hf} libelf-dev
# Runs a set of commands using the runners shell
- name: Make ${{ matrix.mainboard }} kernel
run: |
cd $GITHUB_WORKSPACE/${{ matrix.mainboard }}
PATH=$PATH:$GOPATH/bin
cd ${{ matrix.mainboard }}
make fetch
make flashkernel

View File

@ -73,7 +73,7 @@ uroot.lzma: uroot
uroot:
go run github.com/u-root/u-root -o initramfs.linux_amd64.cpio -build=bb -initcmd=cpud -files ~/.ssh/cpu_rsa.pub:key.pub \
-defaultsh="" \
github.com/u-root/cpu/cmds/cpud
github.com/u-root/cpu/cmds/cpud/...
alluroot:
go run github.com/u-root/u-root -o initramfs.linux_amd64.cpio -build=bb -initcmd=cpud -files ~/.ssh/cpu_rsa.pub:key.pub \

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

@ -6,9 +6,9 @@ KEYPATH ?= ""
default: build
build:
echo fetch, uroot, kernel, or image.bin
echo fetch, uroot, flashkernel, or image.bin
image.bin: kernel
image.bin: flashkernel
utk \
-xzPath /usr/bin/xz \
ROM.bin \
@ -62,11 +62,11 @@ image.bin: kernel
remove LegacyBiosPlatform \
remove HpPostCodeWorkerDxe \
remove HpPostCodeWorkerSmm \
replace_pe32 Shell kernel \
replace_pe32 Shell flashkernel \
save image.bin
kernel: uroot injectkeys bzImage
cp linux/arch/x86/boot/bzImage kernel
flashkernel: uroot injectkeys bzImage
cp linux/arch/x86/boot/bzImage flashkernel
netboot: netbooturoot bzImage
cp linux/arch/x86/boot/bzImage kernel
@ -143,7 +143,7 @@ getrom:
@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 kernel
@echo make flashkernel
@echo and run that kernel via qemu
geturoot:

View File

@ -6,7 +6,7 @@ default: build
build:
echo fetch, uroot, kernel, or image.bin
image.bin: kernel
image.bin: flashkernel
utk \
-xzPath /usr/bin/xz \
ROM.bin \
@ -32,7 +32,7 @@ image.bin: kernel
remove .*Pxe.* \
remove Ata.* \
remove AMITSE \
replace_pe32 FullShell kernel \
replace_pe32 FullShell flashkernel \
save image.bin
cpukernel: cpu.cpio.lzma cpu.config
@ -48,8 +48,8 @@ cpu.cpio.lzma: Makefile
github.com/u-root/cpu/cmds/cpud
lzma -f -k cpu.cpio
kernel: uroot bzImage
cp linux/arch/x86/boot/bzImage kernel
flashkernel: uroot bzImage
cp linux/arch/x86/boot/bzImage flashkernel
netboot: netbooturoot bzImage
cp linux/arch/x86/boot/bzImage kernel
@ -95,7 +95,7 @@ getrom:
@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 kernel
@echo make flashkernel
@echo and run that kernel via qemu
geturoot:

View File

@ -1,9 +1,9 @@
default: build
build:
echo fetch, uroot, kernel, or image.bin
echo fetch, uroot, flashkernel, or image.bin
image.bin: kernel
image.bin: flashkernel
utk \
-xzPath /usr/bin/xz \
sr630.bin \
@ -29,11 +29,11 @@ image.bin: kernel
remove .*Pxe.* \
remove Ata.* \
remove AMITSE \
replace_pe32 FullShell kernel \
replace_pe32 FullShell flashkernel \
save image.bin
kernel: uroot bzImage
cp linux/arch/x86/boot/bzImage kernel
flashkernel: uroot bzImage
cp linux/arch/x86/boot/bzImage flashkernel
readrom:
echo note: for this to work you need to plug in power

View File

@ -1,9 +1,9 @@
default: build
build:
echo fetch, uroot, kernel, or image.bin
echo fetch, uroot, flashkernel, or image.bin
image.bin: kernel
image.bin: flashkernel
utk \
-xzPath /usr/bin/xz \
sr630.bin \
@ -29,11 +29,11 @@ image.bin: kernel
remove .*Pxe.* \
remove Ata.* \
remove AMITSE \
replace_pe32 FullShell kernel \
replace_pe32 FullShell flashkernel \
save image.bin
kernel: uroot bzImage
cp linux/arch/x86/boot/bzImage kernel
flashkernel: uroot bzImage
cp linux/arch/x86/boot/bzImage flashkernel
readrom:
echo note: for this to work you need to plug in power

View File

@ -1,18 +1,18 @@
default: build
build:
echo fetch, uroot, kernel, or image.bin
echo fetch, uroot, flashkernel, or image.bin
image.bin: kernel coreboot.bin
image.bin: flashkernel coreboot.bin
cp coreboot.bin image.bin
chmod +w image.bin
cbfstool image.bin print
cbfstool image.bin remove -n img/nerf
cbfstool image.bin remove -n genroms/pxe.rom
cbfstool image.bin add-payload -n img/nerf -f kernel
cbfstool image.bin add-payload -n img/nerf -f flashkernel
cbfstool image.bin print
qemu: kernel
sudo /usr/bin/qemu-system-x86_64 -kernel kernel \
qemu: flashkernel
sudo /usr/bin/qemu-system-x86_64 -kernel flashkernel \
-cpu max \
-s \
-m 1024m \
@ -30,8 +30,8 @@ qemu: kernel
-object filter-dump,id=f1,netdev=n1,file=/tmp/vm0.pcap \
kernel: uroot bzImage
cp linux/arch/x86/boot/bzImage kernel
flashkernel: uroot bzImage
cp linux/arch/x86/boot/bzImage flashkernel
netbootkernel: netbooturoot bzImage
cp linux/arch/x86/boot/bzImage kernel
@ -69,7 +69,7 @@ getkernel:
xzcat kernel.xz | tar x
mv linux-4.14.111 linux
getrom:
echo you create the kernel
echo you create the flashkernel
echo on the APU2: flashrom -r coreboot.bin -p internal
echo copy that file here and for safety:
echo chmod a-w coreboot.bin

View File

@ -56,5 +56,5 @@ getrom:
echo chmod a-w apu.bin
geturoot:
go get -u github.com/u-root/u-root
go get -u github.com/u-root/cpu
go get -u github.com/u-root/cpu/...

View File

@ -1,13 +1,13 @@
default: build
build:
echo fetch, kernel, or qemu
echo fetch, flashkernel, or qemu
qemu: kernel
qemu-system-x86_64 -kernel kernel -serial stdio -monitor /dev/null
qemu: flashkernel
qemu-system-x86_64 -kernel flashkernel -serial stdio -monitor /dev/null
kernel: uroot bzImage
cp linux/arch/x86/boot/bzImage kernel
flashkernel: uroot bzImage
cp linux/arch/x86/boot/bzImage flashkernel
uroot:
go run github.com/u-root/u-root -build=bb all

View File

@ -40,7 +40,7 @@ flash: tiny.bin
flashtest: testflashkernel
usefultargets:
echo fetch, uroot, kernel, or image.bin
echo fetch, uroot, flashkernel, or image.bin
flashinitramfs.cpio.lzma: flashinitramfs.cpio
lzma -f -k $<

View File

@ -3,10 +3,10 @@ GOPATH ?= $(HOME)/go
default: build
build:
echo fetch, uroot, kernel, or image.bin
echo fetch, uroot, flashkernel, or image.bin
image.bin: kernel
cp linux/arch/x86/boot/bzImage kernel
image.bin: flashkernel
cp linux/arch/x86/boot/bzImage flashkernel
$(GOPATH)/bin/utk tyan7106.bin \
remove Ip.* \
remove Tcp.* \
@ -30,11 +30,11 @@ image.bin: kernel
remove .*Pxe.* \
remove Ata.* \
remove AMITSE \
replace_pe32 FullShell kernel \
replace_pe32 FullShell flashkernel \
save image.bin
kernel: uroot bzImage
cp linux/arch/x86/boot/bzImage kernel
flashkernel: uroot bzImage
cp linux/arch/x86/boot/bzImage flashkernel
uroot:
u-root -files key.pub:key.pub -files key.pub:authorized_keys -files ssh_host_rsa_key:id_rsa github.com/u-root/u-root/cmds/core/* github.com/u-root/cpu/cmds/cpu

View File

@ -121,4 +121,6 @@ getrom:
echo chmod a-w coreboot.bin
geturoot:
go get -u github.com/u-root/u-root
getfiano:
go get -u github.com/linuxboot/fiano/cmds/utk
go install github.com/linuxboot/fiano/cmds/utk