Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 1 | Upstream-Status: Pending [Not submitted to upstream yet] |
| 2 | Signed-off-by: Arpita S.K <arpita.s.k@arm.com> |
| 3 | |
| 4 | From e5d9dfa703a5a57e535b5dab4eda47a9707972d3 Mon Sep 17 00:00:00 2001 |
| 5 | From: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com> |
| 6 | Date: Mon, 25 Oct 2021 12:51:37 +0100 |
| 7 | Subject: [PATCH 2/2] script: loading the driver in a generic way |
| 8 | |
| 9 | Use the kernel module from the modules path. |
| 10 | |
| 11 | Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com> |
| 12 | --- |
| 13 | load_module.sh => load_ffa_debugfs.sh | 8 ++++++-- |
| 14 | 1 file changed, 6 insertions(+), 2 deletions(-) |
| 15 | rename load_module.sh => load_ffa_debugfs.sh (50%) |
| 16 | mode change 100755 => 100644 |
| 17 | |
| 18 | diff --git a/load_module.sh b/load_ffa_debugfs.sh |
| 19 | old mode 100755 |
| 20 | new mode 100644 |
| 21 | similarity index 50% |
| 22 | rename from load_module.sh |
| 23 | rename to load_ffa_debugfs.sh |
| 24 | index 2137245..4f31ff3 |
| 25 | --- a/load_module.sh |
| 26 | +++ b/load_ffa_debugfs.sh |
| 27 | @@ -1,10 +1,14 @@ |
| 28 | #!/bin/sh |
| 29 | +# |
| 30 | +# Use: |
| 31 | +# load_ffa_debugfs.sh <folder containing sp_uuid_list.txt> |
| 32 | +# |
| 33 | |
| 34 | -[ ! -f $(dirname "$0")/sp_uuid_list.txt ] && \ |
| 35 | +[ ! -f "$1"/sp_uuid_list.txt ] && \ |
| 36 | { echo "Error: missing SP UUID list"; exit 1; } |
| 37 | |
| 38 | if ! grep -qs 'arm-ffa-user' /proc/modules; then |
| 39 | - insmod $(dirname "$0")/arm-ffa-user.ko uuid_str_list=$(cat $(dirname "$0")/sp_uuid_list.txt) |
| 40 | + insmod /lib/modules/$(uname -r)/extra/arm-ffa-user.ko uuid_str_list=$(cat "$1"/sp_uuid_list.txt) |
| 41 | fi |
| 42 | |
| 43 | if ! grep -qs 'debugfs' /proc/mounts; then |
| 44 | -- |
| 45 | 2.17.1 |
| 46 | |