fix(Makefile): Use newer installation method in Go

Signed-off-by: Dmitrii Okunev <xaionaro@meta.com>
This commit is contained in:
Dmitrii Okunev 2024-06-19 16:32:37 +01:00
parent 11381cd899
commit 01f7f8210d
32 changed files with 106 additions and 125 deletions

View File

@ -9,8 +9,8 @@ debian-packages:
sudo apt-get install qemu-system-x86
getmecleaner:
go get -u github.com/u-root/u-root
go get -u github.com/u-root/cpu/...
go install github.com/u-root/u-root@latest
go install github.com/u-root/cpu/...@latest
git clone https://github.com/corna/me_cleaner
@echo Now add $(PWD)/me_cleaner to PATH
@ -21,7 +21,6 @@ docker-build: Dockerfile
docker-run-aeeon-up: docker-build
docker run --rm -v "$(shell pwd)/aeeon/up":/$(CONTAINER_NAME) $(CONTAINER_NAME) 'make fetch flashkernel'
docker-run-aeeon-upxtreme: docker-build
docker run --rm -v "$(shell pwd)/aeeon/upxtreme":/$(CONTAINER_NAME) $(CONTAINER_NAME) 'make fetch flashkernel'
@ -89,4 +88,4 @@ docker-run-walmart-robot: docker-build
docker run --rm -v "$(shell pwd)/walmart/robot":/$(CONTAINER_NAME) $(CONTAINER_NAME) 'make fetch flashkernel'
docker-run-qemu-x86-64: docker-build
docker run --rm -v "$(shell pwd)/qemu/x86_64":/$(CONTAINER_NAME) $(CONTAINER_NAME) 'make fetch flashkernel'
docker run --rm -v "$(shell pwd)/qemu/x86_64":/$(CONTAINER_NAME) $(CONTAINER_NAME) 'make fetch flashkernel'

View File

@ -217,7 +217,7 @@ cpu.cpio.lzma: cpu.cpio
lzma -f -k cpu.cpio
cpu.cpio: Makefile
GO111MODULE=off CGO_ENABLED=0 u-root -build=bb -o cpu.cpio \
CGO_ENABLED=0 u-root -build=bb -o cpu.cpio \
-initcmd=cpud \
-files ~/.ssh/cpu_rsa.pub:key.pub \
github.com/u-root/cpu/cmds/cpud \
@ -270,16 +270,15 @@ getkernel-5.4.65:
git clone --depth=1 -b hwe-5.4-upboard --single-branch git@github.com:AaeonCM/ubuntu-bionic-up linux-5.4.65
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
go install github.com/linuxboot/fiano/cmds/utk@latest
go install github.com/linuxboot/fiano/cmds/guid2english@latest
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/...
go install github.com/u-root/u-root@latest
go install github.com/u-root/cpu/...@latest
# Serve the combined sshd-kernel and sshd-initramfs image. This includes flashrom
sshd-pxeserver:

View File

@ -108,13 +108,12 @@ upgetkernel:
git clone --depth=1 https://github.com/emutex/ubilinux-kernel.git -b upboard-4.9 linux
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/utk@latest
getrom:
echo you can put a wget here
echo and unxip it
echo and cp it to sr630.bin
geturoot:
go get -u github.com/u-root/u-root
go get -u github.com/u-root/cpu/...
go install github.com/u-root/u-root@latest
go install github.com/u-root/cpu/...@latest

View File

@ -242,16 +242,15 @@ getkernel:
git clone --depth=1 -b v5.15 --single-branch https://github.com/torvalds/linux
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
go install github.com/linuxboot/fiano/cmds/utk@latest
go install github.com/linuxboot/fiano/cmds/guid2english@latest
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/...
go install github.com/u-root/u-root@latest
go install github.com/u-root/cpu/...@latest
# Serve the combined sshd-kernel and sshd-initramfs image. This includes flashrom
sshd-pxeserver:

View File

@ -455,16 +455,15 @@ getkernel:
git clone --depth=1 -b v5.8 --single-branch https://github.com/torvalds/linux
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
go install github.com/linuxboot/fiano/cmds/utk@latest
go install github.com/linuxboot/fiano/cmds/guid2english@latest
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/...
go install github.com/u-root/u-root@latest
go install github.com/u-root/cpu/...@latest
# Serve the combined sshd-kernel and sshd-initramfs image. This includes flashrom
sshd-pxeserver:

View File

@ -21,7 +21,7 @@ flashinitramfs.cpio.lzma: flashinitramfs.cpio
lzma -f -k $<
flashinitramfs.cpio: Makefile
GO111MODULE=off GOARCH=arm64 u-root -uroot-source ${GOPATH}/src/github.com/u-root/u-root -uinitcmd=systemboot -o $@ core \
GOARCH=arm64 u-root -uroot-source ${GOPATH}/src/github.com/u-root/u-root -uinitcmd=systemboot -o $@ core \
github.com/u-root/u-root/cmds/boot/systemboot \
github.com/u-root/u-root/cmds/boot/localboot \
github.com/u-root/u-root/cmds/boot/fbnetboot \
@ -36,7 +36,7 @@ flashinitramfs.cpio: Makefile
# 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
GO111MODULE=off GOARCH=arm64 go run github.com/u-root/u-root -o cpu.cpio -build=bb -initcmd=cpud -files ~/.ssh/cpu_rsa.pub:key.pub \
GOARCH=arm64 go run github.com/u-root/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
@ -46,7 +46,7 @@ cpu.cpio.lzma: Makefile
# 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
GO111MODULE=off GOARCH=arm64 go run github.com/u-root/u-root -o sshd.cpio -build=bb \
GOARCH=arm64 go run github.com/u-root/u-root -o sshd.cpio -build=bb \
-uinitcmd=/bbin/sshd \
-files class_key.pub:authorized_keys \
-files classhostkey:id_rsa \
@ -79,8 +79,8 @@ getkernel:
(cd linux && ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- make tinyconfig)
geturoot:
GO111MODULE=off go get -u github.com/u-root/u-root
GO111MODULE=off go get -u github.com/u-root/cpu/...
go install github.com/u-root/u-root@latest
go install github.com/u-root/cpu/...@latest
# Serve the combined sshd-kernel and sshd-initramfs image. This includes flashrom
sshd-pxeserver:

View File

@ -61,7 +61,7 @@ There is an example project that will build LinuxBoot with 9P enabled and system
Install the u-root/cpu package.
`go get -u github.com/u-root/cpu/...`
`go install github.com/u-root/cpu/...@latest`
- SSH client private key (.ssh/identity)
@ -411,4 +411,4 @@ ___
cpu default port
-timeout9p string
time to wait for the 9p mount to happen. (default "100ms")
```
```

View File

@ -36,13 +36,12 @@ getkernel:
git clone --depth=1 -b v5.15 --single-branch https://github.com/torvalds/linux
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
go install github.com/linuxboot/fiano/cmds/utk@latest
go install github.com/linuxboot/fiano/cmds/guid2english@latest
geturoot:
go get -u github.com/u-root/u-root
go get -u github.com/u-root/cpu/...
go install github.com/u-root/u-root@latest
go install github.com/u-root/cpu/...@latest
testflashkernel: flashkernel
echo ^C will exit qemu! be careful!

View File

@ -41,7 +41,7 @@ getkernel:
(cd linux && make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- sunxi_defconfig)
geturoot:
go get -u github.com/u-root/u-root
go install github.com/u-root/u-root@latest
packages:
sudo apt install gcc-arm-linux-gnueabihf

View File

@ -272,16 +272,15 @@ getlinux-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
go install github.com/linuxboot/fiano/cmds/utk@latest
go install github.com/linuxboot/fiano/cmds/guid2english@latest
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/...
go install github.com/u-root/u-root@latest
go install github.com/u-root/cpu/...@latest
# Serve the combined sshd-kernel and sshd-initramfs image. This includes flashrom
sshd-pxeserver:

View File

@ -138,8 +138,7 @@ getkernel:
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
go install github.com/linuxboot/fiano/cmds/utk@latest
getrom:
@echo If you plan to flash to hardware,
@echo you will need to get a rom imagei
@ -150,5 +149,5 @@ getrom:
@echo and run that kernel via qemu
geturoot:
go get -u github.com/u-root/u-root
go install github.com/u-root/u-root@latest

View File

@ -87,8 +87,7 @@ getkernel:
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
go install github.com/linuxboot/fiano/cmds/utk@latest
getrom:
@echo If you plan to flash to hardware,
@echo you will need to get a rom image
@ -99,5 +98,5 @@ getrom:
@echo and run that kernel via qemu
geturoot:
go get -u github.com/u-root/u-root
go install github.com/u-root/u-root@latest

View File

@ -306,16 +306,15 @@ getkernel:
git clone --depth=1 -b v5.8 --single-branch https://github.com/torvalds/linux
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
go install github.com/linuxboot/fiano/cmds/utk@latest
go install github.com/linuxboot/fiano/cmds/guid2english@latest
getrom:
echo you can put a wget here
echo and unzip 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/...
go install github.com/u-root/u-root@latest
go install github.com/u-root/cpu/...@latest
# Serve the combined sshd-kernel and sshd-initramfs image. This includes flashrom
sshd-pxeserver:

View File

@ -36,13 +36,12 @@ getkernel:
git clone --depth=1 -b v5.15 --single-branch https://github.com/torvalds/linux
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
go install github.com/linuxboot/fiano/cmds/utk@latest
go install github.com/linuxboot/fiano/cmds/guid2english@latest
geturoot:
go get -u github.com/u-root/u-root
go get -u github.com/u-root/cpu/...
go install github.com/u-root/u-root@latest
go install github.com/u-root/cpu/...@latest
testflashkernel: flashkernel
echo ^C will exit qemu! be careful!

View File

@ -214,16 +214,15 @@ getkernel:
git clone --depth=1 -b v5.15 --single-branch https://github.com/torvalds/linux
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
go install github.com/linuxboot/fiano/cmds/utk@latest
go install github.com/linuxboot/fiano/cmds/guid2english@latest
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/...
go install github.com/u-root/u-root@latest
go install github.com/u-root/cpu/...@latest
# Serve the combined sshd-kernel and sshd-initramfs image. This includes flashrom
sshd-pxeserver:

View File

@ -61,14 +61,13 @@ getkernel:
xzcat kernel.xz | tar x
mv linux-5.15 linux
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/utk@latest
getrom:
echo you can put a wget here
echo and unxip it
echo and cp it to sr630.bin
geturoot:
go get -u github.com/u-root/u-root
go install github.com/u-root/u-root@latest
# everything from here below was part of an experiment and can be ignored.
experiment:

View File

@ -59,14 +59,13 @@ getkernel:
rm -rf linux
git clone --depth=1 -b v5.15 --single-branch https://github.com/torvalds/linux
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/utk@latest
getrom:
echo you can put a wget here
echo and unxip it
echo and cp it to sr630.bin
geturoot:
go get -u github.com/u-root/u-root
go install github.com/u-root/u-root@latest
# everything from here below was part of an experiment and can be ignored.
experiment:

View File

@ -74,9 +74,8 @@ getrom:
echo copy that file here and for safety:
echo chmod a-w coreboot.bin
geturoot:
go get -u github.com/u-root/u-root
go get -u github.com/u-root/cpu/...
go install github.com/u-root/u-root@latest
go install github.com/u-root/cpu/...@latest
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
go install github.com/linuxboot/fiano/cmds/utk@latest
go install github.com/linuxboot/fiano/cmds/guid2english@latest

View File

@ -33,14 +33,13 @@
# You can test the flash image kernel with qemu
# make flashtest
MARVELL_GIT?=https://github.com/MarvellEmbeddedProcessors
TOOLCHAIN?=aarch64-linux-gnu-
default: flash-image.bin
u-root:
GO111MODULE=off go install github.com/u-root/u-root
go install github.com/u-root/u-root
@echo Make sure $(GOPATH)/bin is in your PATH
@echo if GOPATH is empty, then put ~/go/bin in your PATH
@ -87,7 +86,7 @@ flashinitramfs.cpio.xz: flashinitramfs.cpio
xz --check=crc32 -f -k $<
flashinitramfs.cpio: u-root Makefile
GO111MODULE=off GOARCH=arm64 u-root -o $@ -build=bb \
GOARCH=arm64 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 \
@ -103,7 +102,7 @@ flashinitramfs.cpio: u-root Makefile
# 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.xz: u-root Makefile
GO111MODULE=off GOARCH=arm64 u-root -o cpu.cpio -build=bb -initcmd=cpud -files ~/.ssh/cpu_rsa.pub:key.pub \
GOARCH=arm64 u-root -o cpu.cpio -build=bb -initcmd=cpud -files ~/.ssh/cpu_rsa.pub:key.pub \
-defaultsh="" \
github.com/u-root/cpu/cmds/cpud
xz --check=crc32 -f -k cpu.cpio
@ -113,7 +112,7 @@ cpu.cpio.xz: u-root Makefile
# 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.xz: u-root Makefile
GO111MODULE=off GOARCH=arm64 u-root -o sshd.cpio -build=bb \
GOARCH=arm64 u-root -o sshd.cpio -build=bb \
-uinitcmd=/bbin/sshd \
-files ../../class_key.pub:authorized_keys \
-files ../../classhostkey:id_rsa \
@ -147,8 +146,8 @@ getkernel:
git clone --depth=1 -b v5.6 --single-branch https://github.com/torvalds/linux
geturoot:
GO111MODULE=off go get -u github.com/u-root/u-root
GO111MODULE=off go get -u github.com/u-root/cpu/...
go install github.com/u-root/u-root@latest
go install github.com/u-root/cpu/...@latest
# Serve the combined sshd-kernel and sshd-initramfs image. This includes flashrom
sshd-pxeserver:

View File

@ -263,16 +263,15 @@ getkernel:
git clone --depth=1 -b v5.8 --single-branch https://github.com/torvalds/linux
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
go install github.com/linuxboot/fiano/cmds/utk@latest
go install github.com/linuxboot/fiano/cmds/guid2english@latest
getrom:
echo you can put a wget here
echo and unzip 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/...
go install github.com/u-root/u-root@latest
go install github.com/u-root/cpu/...@latest
# Serve the combined sshd-kernel and sshd-initramfs image. This includes flashrom
sshd-pxeserver:

View File

@ -55,10 +55,9 @@ getrom:
echo copy that file here and for safety:
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 install github.com/u-root/u-root@latest
go install github.com/u-root/cpu/...@latest
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
go install github.com/linuxboot/fiano/cmds/utk@latest
go install github.com/linuxboot/fiano/cmds/guid2english@latest

View File

@ -67,7 +67,7 @@ flashinitramfs.cpio.lzma: flashinitramfs.cpio
lzma -f -k $<
flashinitramfs.cpio: Makefile
GO111MODULE=off u-root -o $@ -build=bb \
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 \
@ -83,7 +83,7 @@ flashinitramfs.cpio: Makefile
# 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: Makefile
CGO_ENABLED=0 GO111MODULE=off u-root -o cpu.cpio -build=bb -initcmd=cpud -files ~/.ssh/cpu_rsa.pub:key.pub \
CGO_ENABLED=0 u-root -o cpu.cpio -build=bb -initcmd=cpud -files ~/.ssh/cpu_rsa.pub:key.pub \
minimal \
github.com/u-root/cpu/cmds/cpud
@ -98,7 +98,7 @@ cpu.cpio.xz: cpu.cpio
# 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
CGO_ENABLED=0 GO111MODULE=off u-root -o sshd.cpio -build=bb \
CGO_ENABLED=0 u-root -o sshd.cpio -build=bb \
-uinitcmd=/bbin/sshd \
-files class_key.pub:authorized_keys \
-files classhostkey:id_rsa \
@ -134,9 +134,9 @@ getrom:
echo you can use flashrom to read the apu2 image.
geturoot:
go get -u github.com/u-root/u-root
CGO_ENABLED=0 GO111MODULE=off go install github.com/u-root/u-root
CGO_ENABLED=0 GO111MODULE=off go get -u github.com/u-root/cpu/...
go install github.com/u-root/u-root@latest
CGO_ENABLED=0 go install github.com/u-root/u-root
CGO_ENABLED=0 go install github.com/u-root/cpu/...@latest
# Serve the combined sshd-kernel and sshd-initramfs image. This includes flashrom
sshd-pxeserver:

View File

@ -1,5 +1,5 @@
flashinitramfs.cpio: flashkernel core.cpio
GO111MODULE=off GOARCH=arm64 u-root -o $@ \
GOARCH=arm64 u-root -o $@ \
-files flashkernel \
-files core.cpio \
-files /usr/bin/gzip \
@ -14,7 +14,7 @@ flashinitramfs.cpio: flashkernel core.cpio
github.com/u-root/u-root/cmds/core/wget
core.cpio: flash.config Makefile
GO111MODULE=off GOARCH=arm64 u-root -o $@
GOARCH=arm64 u-root -o $@
flashkernel: flash.config core.cpio
cp $< linux/.config
@ -41,4 +41,4 @@ getkernel:
git clone --depth=1 -b v5.11 https://github.com/torvalds/linux
geturoot:
GO111MODULE=off go get -u github.com/u-root/u-root
go install github.com/u-root/u-root@latest

View File

@ -1,7 +1,7 @@
OVMF_BIN ?= /usr/share/qemu/OVMF.fd
flashinitramfs.cpio: flashkernel core.cpio
GO111MODULE=off u-root -o $@ \
u-root -o $@ \
-files flashkernel \
-files core.cpio \
-files /usr/bin/gzip \
@ -16,7 +16,7 @@ flashinitramfs.cpio: flashkernel core.cpio
github.com/u-root/u-root/cmds/core/wget
core.cpio: flash.config Makefile
GO111MODULE=off u-root -o $@
u-root -o $@
flashkernel: flash.config core.cpio
cp $< linux/.config
@ -49,4 +49,4 @@ getkernel:
git clone --depth=1 -b v5.15 https://github.com/torvalds/linux
geturoot:
GO111MODULE=off go get -u github.com/u-root/u-root
go install github.com/u-root/u-root@latest

View File

@ -86,12 +86,12 @@ flashinitramfs.cpio.lzma: flashinitramfs.cpio
lzma -f -k $<
flashinitramfs.cpio: Makefile
echo NO GO111MODULE=off GOARCH=riscv64 u-root -o $@ -files ~/.ssh/cpu_rsa.pub:key.pub \
echo NO GOARCH=riscv64 u-root -o $@ -files ~/.ssh/cpu_rsa.pub:key.pub \
-defaultsh="" \
-uinitcmd /bbin/cpud \
github.com/u-root/u-root/cmds/core/init \
github.com/u-root/cpu/cmds/cpud
GO111MODULE=off GOARCH=riscv64 u-root -o $@ -files ~/.ssh/cpu_rsa.pub:key.pub \
GOARCH=riscv64 u-root -o $@ -files ~/.ssh/cpu_rsa.pub:key.pub \
-uinitcmd /bbin/cpud \
github.com/u-root/u-root/cmds/core/init \
github.com/u-root/u-root/cmds/core/elvish \
@ -103,7 +103,7 @@ cpu.cpio.gz: cpu.cpio Makefile
gzip -f -k cpu.cpio
cpu.cpio:
GO111MODULE=off GOARCH=riscv64 u-root -o cpu.cpio -files ~/.ssh/cpu_rsa.pub:key.pub \
GOARCH=riscv64 u-root -o cpu.cpio -files ~/.ssh/cpu_rsa.pub:key.pub \
all \
github.com/u-root/cpu/cmds/cpud
@ -153,8 +153,8 @@ getrom:
echo you can use flashrom to read the beaglev image.
geturoot:
go get -u github.com/u-root/u-root
go get -u github.com/u-root/cpu/...
go install github.com/u-root/u-root@latest
go install github.com/u-root/cpu/...@latest
getuboot:
git clone https://github.com/starfive-tech/beagle_uboot-opensbi uboot

View File

@ -27,5 +27,5 @@ getkernel:
xzcat kernel.xz | tar x
mv linux-5.15 linux
geturoot:
go get -u github.com/u-root/u-root
go install github.com/u-root/u-root@latest

View File

@ -9,7 +9,7 @@ default: netbootkernel
echo the latter causes a trap on boot. ARM is so great
u-root:
GO111MODULE=off go install github.com/u-root/u-root
go install github.com/u-root/u-root
@echo Make sure $(GOPATH)/bin is in your PATH
@echo if GOPATH is empty, then put ~/go/bin in your PATH
@ -35,7 +35,7 @@ kernel-5.4: config-5.4.47 flashinitramfs.cpio
cp linux/arch/arm64/boot/Image $@
kexecinitramfs.cpio: u-root Makefile kernel-5.4 kernel-5.10
GO111MODULE=off GOARCH=arm64 u-root -o $@ -build=bb \
GOARCH=arm64 u-root -o $@ -build=bb \
-files ~/.ssh/cpu_rsa.pub:key.pub \
-files kernel-5.4 -files kernel-5.10 \
github.com/u-root/cpu/cmds/cpud \
@ -43,7 +43,7 @@ kexecinitramfs.cpio: u-root Makefile kernel-5.4 kernel-5.10
core \
flashinitramfs.cpio: Makefile
GO111MODULE=off GOARCH=arm64 u-root -o $@ -build=bb \
GOARCH=arm64 u-root -o $@ -build=bb \
-files ~/.ssh/cpu_rsa.pub:key.pub \
github.com/u-root/cpu/cmds/cpud \
github.com/u-root/u-root/cmds/boot/pxeboot \
@ -83,8 +83,8 @@ getkernel-5.17:
git clone --depth=1 -b v5.17 --single-branch https://github.com/torvalds/linux linux-5.17
geturoot:
GO111MODULE=off go get -u github.com/u-root/u-root
GO111MODULE=off go get -u github.com/u-root/cpu/...
go install github.com/u-root/u-root@latest
go install github.com/u-root/cpu/...@latest
apt:
sudo apt install gcc-aarch64-linux-gnu

View File

@ -104,8 +104,8 @@ getkernel:
(cd linux && ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- make tinyconfig)
geturoot:
go get -u github.com/u-root/u-root
go get -u github.com/u-root/cpu/...
go install github.com/u-root/u-root@latest
go install github.com/u-root/cpu/...@latest
# Serve the combined sshd-kernel and sshd-initramfs image. This includes flashrom
sshd-pxeserver:

View File

@ -33,8 +33,8 @@ getkernel:
git clone --depth=1 -b v5.15.5-openwrt --single-branch https://github.com/orangecms/linux
geturoot:
GO111MODULE=off go get -u github.com/u-root/u-root
GO111MODULE=off go get -u github.com/u-root/cpu/...
go install github.com/u-root/u-root@latest
go install github.com/u-root/cpu/...@latest
# Serve the combined sshd-kernel and sshd-initramfs image. This includes flashrom
sshd-pxeserver:

View File

@ -21,7 +21,7 @@ RUN apt install -y \
# Get the correct version of UTK
RUN git clone https://github.com/linuxboot/fiano /go/src/github.com/linuxboot/fiano
RUN cd /go/src/github.com/linuxboot/fiano/cmds/utk && git checkout v5.0.0 && GO111MODULE=off go install
RUN cd /go/src/github.com/linuxboot/fiano/cmds/utk && git checkout v5.0.0 && go install
# Working directory for mounting git repo in
RUN mkdir /linuxboot-ovmf

View File

@ -52,14 +52,14 @@ fetch:
wget -O kernel.xz https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.15.tar.xz
xzcat kernel.xz | tar x
mv linux-5.15 linux
go get -u github.com/linuxboot/fiano/cmds/utk
go install github.com/linuxboot/fiano/cmds/utk@latest
wget ftp://ftp.tyan.com/bios/S7106GM2NR-L2_v204.zip
unzip -o S7106GM2NR-L2_v204.zip
cp 7106V204.ROM tyan7106.bin
touch key.pub
touch ssh_host_rsa_key
go get -u github.com/u-root/u-root
go get -u github.com/u-root/cpu/...
go install github.com/u-root/u-root@latest
go install github.com/u-root/cpu/...@latest
# everything from here below was part of an experiment and can be ignored.
experiment:

View File

@ -117,7 +117,6 @@ getrom:
echo copy that file here and for safety:
echo chmod a-w coreboot.bin
geturoot:
go get -u github.com/u-root/u-root
go install github.com/u-root/u-root@latest
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/utk@latest