seeed/beaglev: checkpoint commit -- boots, no interrupts, no console

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
Ronald G. Minnich 2021-07-16 20:59:57 +00:00 committed by Ryan O'Leary
parent c22c2e4818
commit 2919c79a5e

View File

@ -23,10 +23,12 @@ CONFIG ?= $(MAJOR).14.esmil
LINUX=linux-$(CONFIG)
KERNCONFIG=$(CONFIG).config
default: cpu
default: flash
echo you can add any of these targets to the beaglev image.
echo as img/nerf. You can also set priority.
flash: flashkernel
flashtest: testflashkernel
usefultargets:
@ -84,19 +86,26 @@ flashinitramfs.cpio.lzma: flashinitramfs.cpio
lzma -f -k $<
flashinitramfs.cpio: Makefile
GO111MODULE=off GOARCH=riscv64 u-root -o $@ -files ~/.ssh/cpu_rsa.pub:key.pub \
echo NO GO111MODULE=off 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 \
-uinitcmd /bbin/cpud \
github.com/u-root/u-root/cmds/core/init \
github.com/u-root/u-root/cmds/core/elvish \
github.com/u-root/cpu/cmds/cpud
# This target builds a full-featured initramfs INCLUDING cpud.
# You need ip=dhcp OR ip=fixed.ip.address.here in the command line
cpu.cpio.gz: Makefile
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 \
all \
github.com/u-root/cpu/cmds/cpud
gzip -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.