Commit 9f2bb3be authored by Benoit Rat's avatar Benoit Rat

binaries: use 2 binaries rt_cpu.bin for SCB v3.3 or v3.4

We use the DF type to obtain the SCB type that we are using and load
proper binary
parent 2bdafe12
......@@ -17,7 +17,7 @@ if [ -f "${WRS_BASE_DIR}/../rt/rt_cpu.bin" ]; then
cp ${WRS_BASE_DIR}/../rt/rt_cpu.bin "$FWDIR"
else
echo "Using pre-compiled (binaries/) RT firmware"
cp ${WRS_BASE_DIR}/../binaries/rt_cpu.bin "$FWDIR"
cp -v ${WRS_BASE_DIR}/../binaries/rt_cpu*.bin "$FWDIR"
fi
if [ "$WRS_HW_DIR" != "" ]; then
......
......@@ -12,8 +12,13 @@ done
# Obtain the type of FPGA (LX130XT or LX240XT)
tfpga=$($WR_HOME/bin/shw_ver -F)
scb_ver=33
if mtdinfo -a | grep -A 1 dataflash | grep 264 &> /dev/null; then
scb_ver=34
fi
$WR_HOME/bin/load-virtex $WR_HOME/lib/firmware/18p_mb-${tfpga}.bin
$WR_HOME/bin/load-lm32 $WR_HOME/lib/firmware/rt_cpu.bin
$WR_HOME/bin/load-lm32 $WR_HOME/lib/firmware/rt_cpu-${scb_ver}.bin
insmod $WR_HOME/lib/modules/at91_softpwm.ko
insmod $WR_HOME/lib/modules/wr_vic.ko
insmod $WR_HOME/lib/modules/wr-nic.ko macaddr=$val
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment