aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-config/unicens-config
diff options
context:
space:
mode:
authorChristian Gromm <christian.gromm@microchip.com>2017-12-19 14:03:10 +0100
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2017-12-19 22:18:03 +0000
commitedfeb162bedd5af60083b319a47949fdfd469697 (patch)
treea060f70f0d5bce17ac041459a6be1729903857e9 /recipes-config/unicens-config
parentea4276348fa0eb54be3240f69c269278c4a36acd (diff)
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 <christian.gromm@microchip.com>
Diffstat (limited to 'recipes-config/unicens-config')
-rw-r--r--[-rwxr-xr-x]recipes-config/unicens-config/files/unicens-config.sh41
1 files changed, 21 insertions, 20 deletions
diff --git a/recipes-config/unicens-config/files/unicens-config.sh b/recipes-config/unicens-config/files/unicens-config.sh
index c54e64615..e4817bded 100755..100644
--- 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