Commit e5ea57d2 authored by Vijayenthiran Subramaniam's avatar Vijayenthiran Subramaniam Committed by Thomas Abraham
Browse files

platforms/sgi575: add virtio.net mode parameters



Set Virtio.Net as default network interface. The SMSC network controller
is disabled by using the model parameters. To enable SMSC network
interface, use the -smscnet parameter in the run-model script, in which
case, the virtio.net interface is disabled.

Change-Id: Iab554b19751e38c4c16a772b15d513693ded961f
Signed-off-by: Vijayenthiran Subramaniam's avatarVijayenthiran Subramaniam <vijayenthiran.subramaniam@arm.com>
parent e9c92b03
......@@ -55,6 +55,7 @@ if [ $# -eq 0 ]; then
NTW_ENABLE="false";
VIRT_IMG="false";
EXTRA_MODEL_PARAMS="";
VIRTIO_NET="false";
fi
# Display usage message and exit
......@@ -65,6 +66,7 @@ function usage_help {
echo -e "$GREEN_FONT virtio_imag_path = Please input virtio image path $NORMAL_FONT" >&2
echo -e "$GREEN_FONT sata_image_path = Please input sata disk image path $NORMAL_FONT" >&2
echo -e "$GREEN_FONT extra_model_params = Input additional model parameters $NORMAL_FONT" >&2
echo -e "$GREEN_FONT smscnet = Use SMSC91c111 network interface instead of Virtio Net $NORMAL_FONT" >&2
}
while test $# -gt 0; do
......@@ -108,6 +110,13 @@ while test $# -gt 0; do
fi
shift
;;
-smscnet)
shift
if test $# -gt 0; then
VIRTIO_NET="false"
fi
shift
;;
-j)
shift
if test $# -gt 0; then
......@@ -183,10 +192,15 @@ fi
mkdir -p ./$MODEL_TYPE
if [ ${NTW_ENABLE,,} == "true" ]; then
if [[ ${NTW_ENABLE,,} == "true" && ${VIRTIO_NET} == "false" ]]; then
MODEL_PARAMS="$MODEL_PARAMS \
-C board.hostbridge.interfaceName="$TAP_INTERFACE" \
-C board.smsc_91c111.enabled=1"
elif [ ${NTW_ENABLE,,} == "true" ]; then
MODEL_PARAMS="$MODEL_PARAMS \
-C board.virtio_net.hostbridge.interfaceName="$TAP_INTERFACE" \
-C board.virtio_net.enabled=1 \
-C board.virtio_net.transport="legacy" "
fi
#check whether crypto plugin exists
......
Supports Markdown
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