diff --git a/tools/kmod_scripts/sof_bootloop.sh b/tools/kmod_scripts/sof_bootloop.sh deleted file mode 100755 index 813732d6c..000000000 --- a/tools/kmod_scripts/sof_bootloop.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash -# SPDX-License-Identifier: BSD-3-Clause -# Copyright(c) 2018 Intel Corporation. All rights reserved. - -set -e - -MAXLOOPS=100 -COUNTER=0 - -while [ $COUNTER -lt $MAXLOOPS ]; do - echo "test $COUNTER" - ./sof_bootone.sh - dmesg > boot_$COUNTER.bootlog - let COUNTER+=1 - sleep 6 -done diff --git a/tools/kmod_scripts/sof_bootone.sh b/tools/kmod_scripts/sof_bootone.sh deleted file mode 100755 index 61856cac2..000000000 --- a/tools/kmod_scripts/sof_bootone.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/bash -# SPDX-License-Identifier: BSD-3-Clause -# Copyright(c) 2018 Intel Corporation. All rights reserved. - -dmesg -C -./sof_remove.sh - -# exit if remove failed -ERROR=$(dmesg | grep sof-audio | grep "error") -if [ ! -z "$ERROR" ] -then - dmesg > boot_fail.log - echo "sof_remove failed, see boot_fail.log for details" - exit 1 -fi - -unset ERROR - -./sof_insert.sh -sleep 1 - -unset FW_BOOT -unset ERROR -FW_BOOT=$(dmesg | grep sof-audio | grep "boot complete") -ERROR=$(dmesg | grep sof-audio | grep -v "DSP trace buffer overflow" | grep "error") -TIMEOUT=$(dmesg | grep sof-audio | grep "ipc timed out") - -# exit if insert failed -if [ ! -z "$ERROR" ] || [ -z "$FW_BOOT" ] || [ ! -z "$TIMEOUT" ] -then - dmesg > boot_fail.log - echo "sof_insert failed, see boot_fail.log for details" - exit 1 -else - echo "boot success" -fi - diff --git a/tools/kmod_scripts/sof_insert.sh b/tools/kmod_scripts/sof_insert.sh deleted file mode 100755 index 9f87d159d..000000000 --- a/tools/kmod_scripts/sof_insert.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/bash -# SPDX-License-Identifier: BSD-3-Clause -# Copyright(c) 2018 Intel Corporation. All rights reserved. - -insert_module() { - - MODULE="$1" - - if modinfo "$MODULE" &> /dev/null ; then - echo "Inserting $MODULE" - modprobe $MODULE - else - echo "skipping $MODULE, not in tree" - fi -} - -insert_module snd_soc_da7213 -insert_module snd_soc_da7219 - -insert_module snd_soc_rt274 -insert_module snd_soc_rt286 -insert_module snd_soc_rt298 -insert_module snd_soc_rt5640 -insert_module snd_soc_rt5645 -insert_module snd_soc_rt5651 -insert_module snd_soc_rt5670 -insert_module snd_soc_rt5677_spi -insert_module snd_soc_rt5682 - -insert_module snd_soc_pcm512x_i2c -insert_module snd_soc_wm8804_i2c -insert_module snd_soc_max98357a -insert_module snd_soc_max98090 - -insert_module snd_soc_rt700 -insert_module snd_soc_rt711 -insert_module snd_soc_rt1308_sdw -insert_module snd_soc_rt715 -insert_module snd_soc_rt1011 - -insert_module sof_acpi_dev -insert_module sof_pci_dev - -insert_module snd_sof_acpi -insert_module snd_sof_pci - diff --git a/tools/kmod_scripts/sof_remove.sh b/tools/kmod_scripts/sof_remove.sh deleted file mode 100755 index 080a4b80f..000000000 --- a/tools/kmod_scripts/sof_remove.sh +++ /dev/null @@ -1,106 +0,0 @@ -#!/bin/bash -# SPDX-License-Identifier: BSD-3-Clause -# Copyright(c) 2018 Intel Corporation. All rights reserved. - -remove_module() { - - MODULE="$1" - - if lsmod | grep "$MODULE" &> /dev/null ; then - echo "Removing $MODULE" - rmmod $MODULE - else - echo "skipping $MODULE, not loaded" - fi -} - -remove_module sof_pci_dev -remove_module sof_acpi_dev -remove_module snd_sof_pci -remove_module snd_sof_acpi - -remove_module snd_sof_intel_byt -remove_module snd_sof_intel_bdw -remove_module snd_sof_intel_hda_common -remove_module snd_sof_intel_hda -remove_module snd_sof_intel_ipc -remove_module snd_sof_xtensa_dsp -remove_module snd_soc_acpi_intel_match - -remove_module snd_soc_sof_rt5682 -remove_module snd_soc_sst_bdw_rt5677_mach -remove_module snd_soc_sst_broadwell -remove_module snd_soc_sst_bxt_da7219_max98357a -remove_module snd_soc_sst_bxt_pcm512x -remove_module snd_soc_sst_bxt_rt298 -remove_module snd_soc_sst_bxt_wm8804 -remove_module snd_soc_sst_byt_cht_da7213 -remove_module snd_soc_sst_byt_cht_es8316 -remove_module snd_soc_sst_bytcr_rt5640 -remove_module snd_soc_sst_bytcr_rt5651 -remove_module snd_soc_sst_cht_bsw_max98090_ti -remove_module snd_soc_sst_cht_bsw_nau8824 -remove_module snd_soc_sst_cht_bsw_rt5645 -remove_module snd_soc_sst_cht_bsw_rt5672 -remove_module snd_soc_sst_glk_rt5682_max98357a -remove_module snd_soc_cml_rt1011_rt5682 -remove_module snd_soc_skl_hda_dsp -remove_module snd_soc_sdw_rt700 -remove_module snd_soc_sdw_rt711_rt1308_rt715 - -remove_module snd_sof -remove_module snd_sof_nocodec - -remove_module snd_soc_da7213 -remove_module snd_soc_da7219 -remove_module snd_soc_pcm512x_i2c -remove_module snd_soc_pcm512x - -remove_module snd_soc_rt274 -remove_module snd_soc_rt286 -remove_module snd_soc_rt298 -remove_module snd_soc_rt700 -remove_module snd_soc_rt711 -remove_module snd_soc_rt1308_sdw -remove_module snd_soc_rt715 -remove_module snd_soc_rt1011 -remove_module snd_soc_rt5640 -remove_module snd_soc_rt5645 -remove_module snd_soc_rt5651 -remove_module snd_soc_rt5670 -remove_module snd_soc_rt5677_spi -remove_module snd_soc_rt5677 -remove_module snd_soc_rt5682 -remove_module snd_soc_rl6231 -remove_module snd_soc_rl6347a - -remove_module snd_soc_wm8804_i2c -remove_module snd_soc_wm8804 - -remove_module snd_soc_max98090 -remove_module snd_soc_ts3a227e -remove_module snd_soc_max98357a - -remove_module snd_soc_hdac_hda -remove_module snd_soc_hdac_hdmi -remove_module snd_hda_codec_hdmi -remove_module snd_soc_dmic - -remove_module snd_hda_codec_realtek -remove_module snd_hda_codec_generic - -remove_module snd_soc_acpi -remove_module snd_hda_ext_core - -remove_module soundwire_intel_init -remove_module soundwire_intel -remove_module soundwire_cadence -remove_module soundwire_generic_allocation -remove_module regmap_sdw -remove_module soundwire_bus - -remove_module snd_soc_core -remove_module snd_hda_codec -remove_module snd_hda_core -remove_module snd_hwdep -remove_module snd_pcm