pruning broken board

Signed-off-by: Ronald G Minnich <rminnich@gmail.com>
This commit is contained in:
Ronald G Minnich 2024-10-23 23:19:58 -07:00 committed by Daniel Maslowski
parent 0dc8ae7c9f
commit 6825bff247
8 changed files with 0 additions and 21146 deletions

View File

@ -1,90 +0,0 @@
# 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
@echo Make sure $(GOPATH)/bin is in your PATH
@echo if GOPATH is empty, then put ~/go/bin in your PATH
usefultargets:
echo fetch, uroot, netbootkernel
# the kexectestimage has standard u-root commands, kexec-tools version of kexec, and two
# test kernels, a 5.10 and a 5.4
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
(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 $@
kernel-5.4: 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 $@
kexecinitramfs.cpio: u-root Makefile kernel-5.4 kernel-5.10
GO111MODULE=off 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 \
github.com/u-root/u-root/cmds/boot/pxeboot \
core \
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: 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 $@
kernel-5.10: config-5.10 flashinitramfs.cpio
cp $< linux/.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 $@
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
getkernel:
rm -rf linux
git clone --depth=1 -b solidrun-honeycomb --single-branch https://github.com/linuxboot/linux
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/...
apt:
sudo apt install gcc-aarch64-linux-gnu

View File

@ -1,56 +0,0 @@
Using this mainboard with the solidrun.
This assumes you are running a reasonably new LSDK, if not, build one and put it on an SD.
You MUST have go1.17.
```
make fetch
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:
```
setenv netboot 'mmc read 0x80d00000 0x6800 0x800; dhcp; tftpboot ${kernel_addr_r} netbootkernel; tftpboot ${fdt_addr_r} fsl-lx2160a-cex7.dtb; fsl_mc apply DPL 0x80d00000; bootefi ${kernel_addr_r} ${fdt_addr_r}'
saveenv
```
Let the honeycomb boot to the
```
Hit any key to stop autoboot:
```
and hit any key.
```
run netboot
```
The kernel will boot. You will need to get an IP address:
```
dhclient -vv &
```
Then:
```
cpud -init &
```
And you can cpu to the board!
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:
```
Host honeycomb
HostName honeycomb
Port 23
User root
IdentityFile ~/.ssh/cpu_rsa
```

View File

@ -1,2 +0,0 @@
mmc read 0x80d00000 0x6800 0x800; dhcp; tftpboot ${kernel_addr_r} netbootkernel; tftpboot ${fdt_addr_r} fsl-lx2160a-cex7.dtb; fsl_mc apply DPL 0x80d00000; bootefi ${kernel_addr_r} ${fdt_addr_r}
;

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

File diff suppressed because it is too large Load Diff