Skip to content

Instantly share code, notes, and snippets.

@FlorianHeigl
Created March 26, 2025 23:35
Show Gist options
  • Save FlorianHeigl/53a618b0e6eac7f19479858537d8e163 to your computer and use it in GitHub Desktop.
Save FlorianHeigl/53a618b0e6eac7f19479858537d8e163 to your computer and use it in GitHub Desktop.
mehr cavium files (non final)
upload fehlt
braucht eh ewig viele auffrischungen
bootdelay=10
autoboot=0
pci_console_active
serial_console_active=1
stdin=pci,serial,bootoct
stdout=serial
stderr=serial
octeth0_speed=10
octeth1_speed=10
bootcmd=mmc init; dhcp ; tftp ; bootoctlinux coremask=f root=/dev/ram rootwait=5 console=ttyS0,115200 ip=dhcp reboot=pci rootwait=10 panic=10 mem=8G
saveenv
#!/usr/bin/env bash
load_fw(){
cd /root/firmware
# reset falls sfp xaui problem mit erkennung dac da waere
OCTEON_REMOTE_PROTOCOL=PCI:${1} oct-remote-reset ; sleep 10
OCTEON_REMOTE_PROTOCOL=PCI:${1} oct-remote-boot u-boot-octeon_nic225e.bin --envfile=env.tftp
}
run_dhcp(){
OCTEON_REMOTE_PROTOCOL=PCI:${1} oct-remote-bootcmd "dhcp ; tftp ; bootoctlinux coremask=0xff root=/dev/ram rootwait=5 console=ttyS0,115200 ip=dhcp reboot=pci rootwait=10 panic=10 mem=8G"
}
for _cnt in 0 2 4 6 8 10 12 14 16 18 ; do
sleep 1
clear
echo "lade auf adapter #${_cnt}"
load_fw ${_cnt} &&
echo "geladen auf adapter #${_cnt}" &&
sleep 2 &&
run_dhcp ${_cnt} &
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment