Commit b63671b2 authored by Joanne Hugé's avatar Joanne Hugé

Update scripts

Update u-boot boot.cmd scripts
Update configure-board script
Add update-packet-exchange script
parent 2ee01afb
setenv bootargs console=ttyS0,115200 root=/dev/mmcblk0p2 rootwait panic=10 isolcpus=1 nohz_full=1 nohz=off rcu_nocbs=1 irqaffinity=1
setenv bootargs console=ttyS0,115200 root=/dev/mmcblk0p2 rootwait panic=10 isolcpus=1 rcu_nocbs=1 irqaffinity=1
load mmc 0:1 0x43000000 ${fdtfile} || load mmc 0:1 0x43000000 boot/${fdtfile}
load mmc 0:1 0x42000000 uImage || load mmc 0:1 0x42000000 boot/uImage
bootm 0x42000000 - 0x43000000
setenv bootargs console=ttyS0,115200 root=/dev/mmcblk0p2 rootwait panic=10 isolcpus=1 nohz_full=1 nohz=off rcu_nocbs=1 irqaffinity=1
load mmc 0:1 0x43000000 ${fdtfile} || load mmc 0:1 0x43000000 boot/${fdtfile}
load mmc 0:1 0x42000000 uImage || load mmc 0:1 0x42000000 boot/uImage
bootm 0x42000000 - 0x43000000
......@@ -38,9 +38,13 @@ fi
rm -rf mnt_sd;
mkdir -p mnt_sd;
echo "mount ${device}${partition_number} mnt_sd";
mount ${device}${partition_number} mnt_sd;
echo "cp -r $cfg_dir/common/* mnt_sd";
cp -r $cfg_dir/common/* mnt_sd;
echo "cp -r $cfg_dir/$board_name/* mnt_sd";
cp -r $cfg_dir/$board_name/* mnt_sd;
echo "umount ${device}${partition_number}";
umount ${device}${partition_number};
rm -rf mnt_sd;
#!/bin/bash
usage() {
echo "Usage: $0 [-h] DEVICE"
exit 1;
}
board_rt_measures_dir="mnt_sd/home/oli/rt-measures"
git_root_dir="../.."
while getopts "hdkmi:" opt; do
case "${opt}" in
h )
usage
;;
* )
usage
;;
esac
done
shift $((OPTIND-1))
if [ -z "$1" ]; then
usage
fi
device=$1
rm -rf mnt_sd;
mkdir -p mnt_sd;
mount ${device}2 mnt_sd;
rm -rf $board_rt_measures_dir/packet-exchange;
cp -r $git_root_dir/packet-exchange $board_rt_measures_dir/;
cp -r $git_root_dir/scripts $board_rt_measures_dir/;
umount mnt_sd;
rm -rf mnt_sd;
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