Fixed oops due to incorrect build flags
This commit is contained in:
@@ -17,20 +17,7 @@ for port in $SFP_PORTS; do
|
||||
fi
|
||||
done
|
||||
|
||||
# 1. PRE-REQUISITE: Unbind ports from the kernel
|
||||
# This frees the hardware so FMC/VPP can claim it.
|
||||
# MAC 3 usually maps to fm0-port.3 or similar in sysfs.
|
||||
echo "Releasing hardware ports from kernel..."
|
||||
for port in 3 4 5 6 9 10; do
|
||||
# Try to unbind from the DPAA Ethernet driver if it exists
|
||||
if [ -e /sys/bus/platform/drivers/fsl-dpa-ethernet/fm0-port.$port ]; then
|
||||
echo "fm0-port.$port" > /sys/bus/platform/drivers/fsl-dpa-ethernet/unbind 2>/dev/null || true
|
||||
fi
|
||||
# Ensure the interface is DOWN
|
||||
# Note: You may need to map MAC numbers to eth names (eth0, eth1, etc.)
|
||||
done
|
||||
|
||||
# 2. Run FMC
|
||||
# Run FMC
|
||||
if [ -f /etc/fmc/config.xml ]; then
|
||||
echo "Applying FMC Configuration..."
|
||||
cd /etc/fmc
|
||||
|
||||
Reference in New Issue
Block a user