root@dellemc-diag-os:~#Ok. Got into DiagOS and read through /etc/rc.local .
First interesting bit is as follows, and seems to be related to the PIC watchdog. Currently wondering if this could be a workaround to flashing the BIOS (from line 15):
Bash:# Disable PIC Watch Dog i2cset -y 1 0x22 0 0 b # Set PIC Watch Dog default count to 0 (offset 0x0=LSB; 0x1=MSB) i2cset -y 1 0x24 0x0 0x0 b sleep 1 i2cset -y 1 0x24 0x1 0x0 b
The other part is related to the NICs. Starting on line 31 is the interesting bit:
In my case, board id is 00101000, which in return means that it's a VeloCloud version board. This would call for the actions in the 70-persistent-net-rules (rmmod ixgbe, i2cset -y 1 0x31 0x1 0xff, then rescan PCI bus with the newly found igb ports). Just need to figure out a way to shove this into nnSense / FreeBSD.Bash:value=$(i2cget -y 1 0x31 0x0 | cut -c 3-4) boardid=$(echo $value | xxd -r -p | xxd -b | cut -d' ' -f 2) boardtype=$(echo $boardid | cut -c 5-8) case ${boardtype} in "1000"|"1010"|"1011") # For Gris platform reinit the Marvell phy and I350 MAC velo_ver=$(/opt/dellemc/diag/bin/nvramtool -r -R 0x59 | grep VeloCloud | awk '{ print $NF }') if [ -z $velo_ver ]; then : elif [ $velo_ver = "1" ]; then rm /etc/udev/rules.d/70-persistent-net.rules rmmod ixgbe i2cset -y 1 0x31 0x1 0xff sleep 1 while [ -z "$(lsmod | grep igb)" ] && [ $count -le $timeout ] do echo 1 > /sys/bus/pci/rescan echo "Rescan PCI bus..." count=$(( count+1 )) sleep 1 done modprobe ixgbe fi ;; "1001") ;; "1100"|"1101"|"1110"|"1111") ;; *) echo "Unkown Board Type." > /dev/kmsg ;; esac
Note that I've got the rc.local file handy and will post it if it actually helps (granted that I'm allowed to to so, of course).
By the way, here is a screenshot of PfSense console after booting up:
As well as a shot of the dashboard:Code:*** Welcome to Netgate pfSense Plus 23.01-RELEASE (amd64) on pfSense *** WAN (wan) -> ix0 -> v4/DHCP4: 192.168.2.186/24 LAN (lan) -> ix1 -> v4: 192.168.1.1/24 0) Logout (SSH only) 9) pfTop 1) Assign Interfaces 10) Filter Logs 2) Set interface(s) IP address 11) Restart webConfigurator 3) Reset webConfigurator password 12) PHP shell + Netgate pfSense Plus tools 4) Reset to factory defaults 13) Update from console 5) Reboot system 14) Enable Secure Shell (sshd) 6) Halt system 15) Restore recent configuration 7) Ping host 16) Restart PHP-FPM 8) Shell Enter an option:
View attachment 27831
Now, hunting for a way to shove those commands into FreeBSD... Stay tuned!
how i can install openwrt?