Dimitrijs
12/24/2024, 1:20 AMbash
scp ./ubuntu-22.04.3.img root@turingpi.local:/mnt/sdcard/
Then used a script for flashing:
bash
#!/usr/bin/env bash
IMAGE="$1"
NODES=(1 2 3 4)
for node in "${NODES[@]}"; do
tpi flash -n "$node" -l -i "$IMAGE"
done
Ran the script:
bash
ssh root@turingpi.local
cd /mnt/sdcard
chmod +x ./flashall.sh
./flashall.sh /mnt/sdcard/ubuntu-22.04.3.img
In about 30 minutes, all nodes were ready.
## Booting Ubuntu Manually
First, from the **BMC terminal**:
bash
picocom /dev/ttyS1 -b 115200
In another terminal window, power on the node:
bash
tpi power on -n 1
Quickly return to the picocom
terminal, interrupt U-Boot (by pressing any key), and run:
bash
setenv boot_targets mmc0
boot
Ubuntu boots from eMMC.
## Flashing Talos to NVMe
Copy Talos image to the node:
bash
scp ./metal-arm64.raw ubuntu@x.x.x.x:/home/ubuntu/
Flash NVMe from Ubuntu:
bash
sudo dd if=metal-arm64.raw of=/dev/nvme0n1 status=progress
sudo reboot
## Conclusion
Each node has Ubuntu on eMMC for emergencies but boots Talos from NVMe by default. To access Ubuntu, interrupt U-Boot and boot manually.
Initial tests look good. I’ll finalize the Kubernetes setup soon.
Thanks to @rlhailey3 for the U-Boot trick!ImJabro
12/24/2024, 7:59 AMXatinni
12/24/2024, 8:16 PMRush
12/24/2024, 9:58 PMRush
12/24/2024, 10:02 PMNico
12/24/2024, 10:25 PMTseng
12/25/2024, 3:05 AMRush
12/25/2024, 3:14 AMRush
12/25/2024, 3:21 AMImJabro
12/25/2024, 7:54 AMTseng
12/25/2024, 12:33 PMNico
12/25/2024, 12:53 PMDimitrijs
12/27/2024, 11:17 AMtpi advanced msd -n 1
dd if=u-boot-rockchip-spi.bin of=/dev/sda1
if yes, then ubuntu and talos have the same u-boot. If not - I have no idea what have I done 🙂 as everything works as before and u-boot version is the same on other nodes where ubuntu was installed, and where I "override" the u-boot with commands above.Dimitrijs
12/28/2024, 7:42 PM