23 lines
659 B
Bash
Executable File
23 lines
659 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
echo "--- Starting NXP DPAA1 Hardware Initialization ---"
|
|
|
|
# 1. Run FMC to configure FMan, QMan, and BMan
|
|
# -c: path to config xml
|
|
# -p: path to policy xml
|
|
# -a: apply the configuration
|
|
if [ -f /etc/fmc/config.xml ]; then
|
|
echo "Applying FMC Configuration..."
|
|
cd /etc/fmc
|
|
fmc -c /etc/fmc/config.xml -p /etc/fmc/policy.xml -a
|
|
echo "FMC Configuration applied successfully."
|
|
else
|
|
echo "ERROR: /etc/fmc/config.xml not found!"
|
|
echo "VPP will likely fail with 'Main heap allocation failure'."
|
|
fi
|
|
|
|
echo "--- Starting VPP Forwarder ---"
|
|
# 2. Start VPP and replace this script's process (exec)
|
|
exec vpp -c /etc/vpp/startup.conf
|