From 5db5842969cae36c206257a573d36151104feae2 Mon Sep 17 00:00:00 2001 From: "Ronald G. Minnich" Date: Thu, 12 May 2022 09:24:49 -0700 Subject: [PATCH] solidrun/honeycomb: tweak the docs Signed-off-by: Ronald G. Minnich --- mainboards/solidrun/honeycomblx2k/Makefile | 22 +++++++++++++++++++-- mainboards/solidrun/honeycomblx2k/README.md | 8 +++++--- 2 files changed, 25 insertions(+), 5 deletions(-) diff --git a/mainboards/solidrun/honeycomblx2k/Makefile b/mainboards/solidrun/honeycomblx2k/Makefile index 4a450e3..17d9a67 100644 --- a/mainboards/solidrun/honeycomblx2k/Makefile +++ b/mainboards/solidrun/honeycomblx2k/Makefile @@ -1,7 +1,12 @@ # This is the makefile for a netbootable image. It has cpud build in. # see README.md in this directory for more information. +# Status: you can netboot the netbootkernel, which is currently 5.17 +# You need to be careful to use the correct dtb, see note. +# I have included the dtb in this repo for safety default: netbootkernel + echo Be sure to use fsl-lx2160a-cex7.dtb, NOT fsl-lx2160a-honeycomb.dtb + echo the latter causes a trap on boot. ARM is so great u-root: GO111MODULE=off go install github.com/u-root/u-root @@ -17,6 +22,7 @@ kexectestimage-5.10: kexecconfig-5.10 kexecinitramfs.cpio cp $< linux-5.10/.config (cd linux-5.10 && CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm64 make oldconfig && CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm64 make -j32) cp linux-5.10/arch/arm64/boot/Image $@ + cp linux/arch/arm64/boot/dts/freescale/fsl-lx2160a-cex7.dtb fsl-lx2160a-cex7.dtb kexectestimage-5.4: kexecconfig-5.4 kexecinitramfs.cpio cp $< linux/.config @@ -36,14 +42,17 @@ kexecinitramfs.cpio: u-root Makefile kernel-5.4 kernel-5.10 github.com/u-root/u-root/cmds/boot/pxeboot \ core \ -flashinitramfs.cpio: u-root Makefile +flashinitramfs.cpio: Makefile GO111MODULE=off 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 \ core \ -netbootkernel: config-5.4.47 flashinitramfs.cpio +netbootkernel: kernel-5.17 + cp $< $@ + +kernel-5.4.47: config-5.4.47 flashinitramfs.cpio cp $< linux/.config (cd linux && CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm64 make oldconfig && CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm64 make -j32) cp linux/arch/arm64/boot/Image $@ @@ -53,6 +62,11 @@ kernel-5.10: config-5.10 flashinitramfs.cpio (cd linux-5.10 && CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm64 make oldconfig && CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm64 make -j32) cp linux-5.10/arch/arm64/boot/Image $@ +kernel-5.17: config-5.17 flashinitramfs.cpio + cp config-5.17 linux-5.17/.config + (cd linux-5.17 && CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm64 make oldconfig && CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm64 make -j32) + cp linux-5.17/arch/arm64/boot/Image $@ + # These stanzas fetch code. fetch: getkernel geturoot apt @@ -64,6 +78,10 @@ getkernel-5.10: rm -rf linux-5.10 git clone --depth=1 -b v5.10 --single-branch https://github.com/torvalds/linux linux-5.10 +getkernel-5.17: + rm -rf linux-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/... diff --git a/mainboards/solidrun/honeycomblx2k/README.md b/mainboards/solidrun/honeycomblx2k/README.md index 475630c..b9db8f4 100644 --- a/mainboards/solidrun/honeycomblx2k/README.md +++ b/mainboards/solidrun/honeycomblx2k/README.md @@ -10,6 +10,10 @@ make ``` Put the netbootkernel and the .dtb somewhere for ftp. +I use the centre tool, and my location for netboot is ~/centre, so: +``` +cp netbootkernel fsl-lx2160a-cex7.dtb ~/centre +``` On the honeycomb: ``` @@ -33,15 +37,13 @@ The kernel will boot. You will need to get an IP address: dhclient -vv & ``` -This takes a few minutes for some reason. - Then: ``` cpud -init & ``` And you can cpu to the board! -Note: you will need an ssh public key, I used ~/.ssh/cpu_rsa.pub +Note: you will need an ssh public key, in the build step, I used ~/.ssh/cpu_rsa.pub You can make getting to the board more convenient, e.g, in my .ssh/config I have this: ```