From edfeb162bedd5af60083b319a47949fdfd469697 Mon Sep 17 00:00:00 2001 From: Christian Gromm Date: Tue, 19 Dec 2017 14:03:10 +0100 Subject: recipes-config: unicens-config: update configuration script This patch updates the shell script that is used to configure the discovered MOST devices. It is needed because current configuration vectors don't match the attached device interfaces Change-Id: I6618a619bc0c1e1332ba91100da1c5e8135c1d72 Signed-off-by: Christian Gromm --- .../unicens-config/files/unicens-config.sh | 41 +++++++++++----------- 1 file changed, 21 insertions(+), 20 deletions(-) mode change 100755 => 100644 recipes-config/unicens-config/files/unicens-config.sh (limited to 'recipes-config/unicens-config') diff --git a/recipes-config/unicens-config/files/unicens-config.sh b/recipes-config/unicens-config/files/unicens-config.sh old mode 100755 new mode 100644 index c54e64615..e4817bded --- a/recipes-config/unicens-config/files/unicens-config.sh +++ b/recipes-config/unicens-config/files/unicens-config.sh @@ -60,38 +60,39 @@ echo mdev1:ep0e:inic-usb-atx > /sys/devices/virtual/most/mostcore/aims/networkin ## chip: Durango ##aim: cdev ##name: inic-usb-crx -echo rx > /sys/devices/virtual/most/mostcore/devices/mdev2/ep87/set_direction 2>/dev/null -echo control > /sys/devices/virtual/most/mostcore/devices/mdev2/ep87/set_datatype 2>/dev/null -echo 16 > /sys/devices/virtual/most/mostcore/devices/mdev2/ep87/set_number_of_buffers 2>/dev/null -echo 64 > /sys/devices/virtual/most/mostcore/devices/mdev2/ep87/set_buffer_size 2>/dev/null +echo rx > /sys/devices/virtual/most/mostcore/devices/mdev0/ep87/set_direction 2>/dev/null +echo control > /sys/devices/virtual/most/mostcore/devices/mdev0/ep87/set_datatype 2>/dev/null +echo 16 > /sys/devices/virtual/most/mostcore/devices/mdev0/ep87/set_number_of_buffers 2>/dev/null +echo 64 > /sys/devices/virtual/most/mostcore/devices/mdev0/ep87/set_buffer_size 2>/dev/null -echo mdev0:ep8f:inic-usb-crx > /sys/devices/virtual/most/mostcore/aims/cdev/add_link 2>/dev/null +echo mdev0:ep87:inic-usb-crx > /sys/devices/virtual/most/mostcore/aims/cdev/add_link 2>/dev/null #aim: cdev #name: inic-usb-ctx -echo tx > /sys/devices/virtual/most/mostcore/devices/mdev2/ep07/set_direction 2>/dev/null -echo control > /sys/devices/virtual/most/mostcore/devices/mdev2/ep07/set_datatype 2>/dev/null -echo 16 > /sys/devices/virtual/most/mostcore/devices/mdev2/ep07/set_number_of_buffers 2>/dev/null -echo 64 > /sys/devices/virtual/most/mostcore/devices/mdev2/ep07/set_buffer_size 2>/dev/null +echo tx > /sys/devices/virtual/most/mostcore/devices/mdev0/ep07/set_direction 2>/dev/null +echo control > /sys/devices/virtual/most/mostcore/devices/mdev0/ep07/set_datatype 2>/dev/null +echo 16 > /sys/devices/virtual/most/mostcore/devices/mdev0/ep07/set_number_of_buffers 2>/dev/null +echo 64 > /sys/devices/virtual/most/mostcore/devices/mdev0/ep07/set_buffer_size 2>/dev/null echo mdev0:ep07:inic-usb-ctx > /sys/devices/virtual/most/mostcore/aims/cdev/add_link 2>/dev/null ########################################### -## interface: mdev0 +## interface: mdev1 +## chip: Durango ## aim: networking ##name: inic-usb-arx -echo rx > /sys/devices/virtual/most/mostcore/devices/mdev2/ep86/set_direction 2>/dev/null -echo async > /sys/devices/virtual/most/mostcore/devices/mdev2/ep86/set_datatype 2>/dev/null -echo 20 > /sys/devices/virtual/most/mostcore/devices/mdev2/ep86/set_number_of_buffers 2>/dev/null -echo 1522 > /sys/devices/virtual/most/mostcore/devices/mdev2/ep86/set_buffer_size 2>/dev/null +echo rx > /sys/devices/virtual/most/mostcore/devices/mdev1/ep86/set_direction 2>/dev/null +echo async > /sys/devices/virtual/most/mostcore/devices/mdev1/ep86/set_datatype 2>/dev/null +echo 20 > /sys/devices/virtual/most/mostcore/devices/mdev1/ep86/set_number_of_buffers 2>/dev/null +echo 1522 > /sys/devices/virtual/most/mostcore/devices/mdev1/ep86/set_buffer_size 2>/dev/null -echo mdev0:ep86:inic-usb-arx > /sys/devices/virtual/most/mostcore/aims/networking/add_link 2>/dev/null +echo mdev1:ep86:inic-usb-arx > /sys/devices/virtual/most/mostcore/aims/networking/add_link 2>/dev/null #aim: networking #name: inic-usb-atx -echo tx > /sys/devices/virtual/most/mostcore/devices/mdev2/ep06/set_direction 2>/dev/null -echo async > /sys/devices/virtual/most/mostcore/devices/mdev2/ep06/set_datatype 2>/dev/null -echo 20 > /sys/devices/virtual/most/mostcore/devices/mdev2/ep06/set_number_of_buffers 2>/dev/null -echo 1522 > /sys/devices/virtual/most/mostcore/devices/mdev2/ep06/set_buffer_size 2>/dev/null +echo tx > /sys/devices/virtual/most/mostcore/devices/mdev1/ep06/set_direction 2>/dev/null +echo async > /sys/devices/virtual/most/mostcore/devices/mdev1/ep06/set_datatype 2>/dev/null +echo 20 > /sys/devices/virtual/most/mostcore/devices/mdev1/ep06/set_number_of_buffers 2>/dev/null +echo 1522 > /sys/devices/virtual/most/mostcore/devices/mdev1/ep06/set_buffer_size 2>/dev/null -echo mdev0:ep06:inic-usb-atx > /sys/devices/virtual/most/mostcore/aims/networking/add_link 2>/dev/null +echo mdev1:ep06:inic-usb-atx > /sys/devices/virtual/most/mostcore/aims/networking/add_link 2>/dev/null ########################################## # interface: mdev2 -- cgit 1.2.3-korg