Commit b703280c authored by Benoit Rat's avatar Benoit Rat Committed by Alessandro Rubini

rt_cpu: load rt_cpu.elf file and change PLL config according to scb_ver

The script to load the elf file at startup need to be improved but it
was a quick hack to have things works on SCB v3.3 and SCB v3.4.
parent 307525a9
......@@ -13,7 +13,7 @@ FWDIR="${WRS_OUTPUT_DIR}/images/wr/lib/firmware"
mkdir -p "$FWDIR"
echo "Using pre-compiled (binaries/) RT firmware"
cp ${WRS_BASE_DIR}/../binaries/rt_cpu.bin "$FWDIR"
cp ${WRS_BASE_DIR}/../binaries/rt_cpu.elf "$FWDIR"
if [ "$WRS_HW_DIR" != "" ]; then
wrs_echo "Copying binaries from $WRS_HW_DIR"
......@@ -12,8 +12,14 @@ done
# Obtain the type of FPGA (LX130XT or LX240XT)
tfpga=$($WR_HOME/bin/wrs_version -F)
# TODO: Update wrsw_version to read this value from DF.
if mtdinfo -a | grep -A 1 dataflash | grep 264 &> /dev/null; then
$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.elf scb_ver=${scb_ver}
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