mirror of
https://github.com/linuxboot/linuxboot
synced 2024-11-21 23:59:59 +00:00
solidrun/honeycomb: tweak the docs
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
parent
a32b0a735e
commit
5db5842969
@ -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/...
|
||||
|
@ -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:
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user