How can I avoid that the configuration of the provided debian image for beagle bone black will hinder load of...












0














I used an given ArchLinux on a BeagleBone Black and used on test environment the gadget drivers(g_printer, g_serial) as I encounter driver problems with some wifi dongles. The drivers where not compatible with 4.19 of linux.



After some hassle I moved to a a raspberry pi 3+ and like that the provided debian image was more usable in this context.



Now i tried to use this image also for the other test but encounter following message



sudo modprobe g_printer
dmesg | tail



[ 321.445928] udc-core: couldn't find an available UDC - added [printer] to list of pending drivers




I tried to unload all the modules with also



sudo modprobe -rf g_ether
sudo modprobe -rf usb_f_mass_storage


But they where already used from the debian image to provide easy-to-use interfaces. I didn't find a way to unload all of those.



I needed to change something with the boot up. But where and how I can find the scripts and change them to avoid the load?










share|improve this question



























    0














    I used an given ArchLinux on a BeagleBone Black and used on test environment the gadget drivers(g_printer, g_serial) as I encounter driver problems with some wifi dongles. The drivers where not compatible with 4.19 of linux.



    After some hassle I moved to a a raspberry pi 3+ and like that the provided debian image was more usable in this context.



    Now i tried to use this image also for the other test but encounter following message



    sudo modprobe g_printer
    dmesg | tail



    [ 321.445928] udc-core: couldn't find an available UDC - added [printer] to list of pending drivers




    I tried to unload all the modules with also



    sudo modprobe -rf g_ether
    sudo modprobe -rf usb_f_mass_storage


    But they where already used from the debian image to provide easy-to-use interfaces. I didn't find a way to unload all of those.



    I needed to change something with the boot up. But where and how I can find the scripts and change them to avoid the load?










    share|improve this question

























      0












      0








      0







      I used an given ArchLinux on a BeagleBone Black and used on test environment the gadget drivers(g_printer, g_serial) as I encounter driver problems with some wifi dongles. The drivers where not compatible with 4.19 of linux.



      After some hassle I moved to a a raspberry pi 3+ and like that the provided debian image was more usable in this context.



      Now i tried to use this image also for the other test but encounter following message



      sudo modprobe g_printer
      dmesg | tail



      [ 321.445928] udc-core: couldn't find an available UDC - added [printer] to list of pending drivers




      I tried to unload all the modules with also



      sudo modprobe -rf g_ether
      sudo modprobe -rf usb_f_mass_storage


      But they where already used from the debian image to provide easy-to-use interfaces. I didn't find a way to unload all of those.



      I needed to change something with the boot up. But where and how I can find the scripts and change them to avoid the load?










      share|improve this question













      I used an given ArchLinux on a BeagleBone Black and used on test environment the gadget drivers(g_printer, g_serial) as I encounter driver problems with some wifi dongles. The drivers where not compatible with 4.19 of linux.



      After some hassle I moved to a a raspberry pi 3+ and like that the provided debian image was more usable in this context.



      Now i tried to use this image also for the other test but encounter following message



      sudo modprobe g_printer
      dmesg | tail



      [ 321.445928] udc-core: couldn't find an available UDC - added [printer] to list of pending drivers




      I tried to unload all the modules with also



      sudo modprobe -rf g_ether
      sudo modprobe -rf usb_f_mass_storage


      But they where already used from the debian image to provide easy-to-use interfaces. I didn't find a way to unload all of those.



      I needed to change something with the boot up. But where and how I can find the scripts and change them to avoid the load?







      debian beagleboneblack






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 2 days ago









      JackGrinningCat

      1234




      1234






















          1 Answer
          1






          active

          oldest

          votes


















          0














          Well you can start a search where the usb0 interface is loaded or which driver is used in every file by searching recursively in every file.



          sudo grep -r "usb0" /



          follow the input, if it is slow enough you will see some scripts in /opt/scripts/boot/. The grep will crash in the end.



          debian@beaglebone:~$ ls /opt/scripts/boot/
          am335x_evm.sh autoconfigure_usb1.sh capemgr.sh generic.sh legacy omap5_uevm.sh
          autoconfigure_usb0.sh~ beagle_x15.sh default generic-startup.sh omap3_beagle.sh
          debian@beaglebone:~$


          As you can see I wanted to avoid loading of autoconfigure_usb0.sh by adding a '~' to it. But that didn't helped. The interface where already generated and the driver loaded.



          So instead to manipulate the g_multi driver to parallel load the driver by using the configfs I decided to edit the am335x_evm.sh.



          I added following line



          USB_NETWORK_DISABLED="yes"
          USB_IMAGE_FILE_DISABLED="yes"


          but that didn't avoid the loading within the ifs. Actually I don't understand why but i guessed the environment variables are interpreted at start of the script or i don't set the right values to trigger following ifs



          if [ ! "x${USB_NETWORK_DISABLED}" = "xyes" ]; then


          So i moved the file by using



          mv /opt/scripts/boot/am335x_evm.sh /opt/scripts/boot/am335x_evm.sh~


          and restarted the system with



          sudo shutdown -r now


          Well and see I can use gadget driver g_printer.



          Following links helped me. Everyone that hassle to much with the beagle bone should at least stay some hours in the beagle chat room Chat group around the beagle bone



          They pointed again to the /opt/scripts/boot/ folder and different ways to dynamically load multiple drivers Drivers to load multiple driver instances and the provided interfaces Kernel USB Gadget Configfs Interface.



          How do I grep recursively helped.






          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "106"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f492280%2fhow-can-i-avoid-that-the-configuration-of-the-provided-debian-image-for-beagle-b%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            Well you can start a search where the usb0 interface is loaded or which driver is used in every file by searching recursively in every file.



            sudo grep -r "usb0" /



            follow the input, if it is slow enough you will see some scripts in /opt/scripts/boot/. The grep will crash in the end.



            debian@beaglebone:~$ ls /opt/scripts/boot/
            am335x_evm.sh autoconfigure_usb1.sh capemgr.sh generic.sh legacy omap5_uevm.sh
            autoconfigure_usb0.sh~ beagle_x15.sh default generic-startup.sh omap3_beagle.sh
            debian@beaglebone:~$


            As you can see I wanted to avoid loading of autoconfigure_usb0.sh by adding a '~' to it. But that didn't helped. The interface where already generated and the driver loaded.



            So instead to manipulate the g_multi driver to parallel load the driver by using the configfs I decided to edit the am335x_evm.sh.



            I added following line



            USB_NETWORK_DISABLED="yes"
            USB_IMAGE_FILE_DISABLED="yes"


            but that didn't avoid the loading within the ifs. Actually I don't understand why but i guessed the environment variables are interpreted at start of the script or i don't set the right values to trigger following ifs



            if [ ! "x${USB_NETWORK_DISABLED}" = "xyes" ]; then


            So i moved the file by using



            mv /opt/scripts/boot/am335x_evm.sh /opt/scripts/boot/am335x_evm.sh~


            and restarted the system with



            sudo shutdown -r now


            Well and see I can use gadget driver g_printer.



            Following links helped me. Everyone that hassle to much with the beagle bone should at least stay some hours in the beagle chat room Chat group around the beagle bone



            They pointed again to the /opt/scripts/boot/ folder and different ways to dynamically load multiple drivers Drivers to load multiple driver instances and the provided interfaces Kernel USB Gadget Configfs Interface.



            How do I grep recursively helped.






            share|improve this answer




























              0














              Well you can start a search where the usb0 interface is loaded or which driver is used in every file by searching recursively in every file.



              sudo grep -r "usb0" /



              follow the input, if it is slow enough you will see some scripts in /opt/scripts/boot/. The grep will crash in the end.



              debian@beaglebone:~$ ls /opt/scripts/boot/
              am335x_evm.sh autoconfigure_usb1.sh capemgr.sh generic.sh legacy omap5_uevm.sh
              autoconfigure_usb0.sh~ beagle_x15.sh default generic-startup.sh omap3_beagle.sh
              debian@beaglebone:~$


              As you can see I wanted to avoid loading of autoconfigure_usb0.sh by adding a '~' to it. But that didn't helped. The interface where already generated and the driver loaded.



              So instead to manipulate the g_multi driver to parallel load the driver by using the configfs I decided to edit the am335x_evm.sh.



              I added following line



              USB_NETWORK_DISABLED="yes"
              USB_IMAGE_FILE_DISABLED="yes"


              but that didn't avoid the loading within the ifs. Actually I don't understand why but i guessed the environment variables are interpreted at start of the script or i don't set the right values to trigger following ifs



              if [ ! "x${USB_NETWORK_DISABLED}" = "xyes" ]; then


              So i moved the file by using



              mv /opt/scripts/boot/am335x_evm.sh /opt/scripts/boot/am335x_evm.sh~


              and restarted the system with



              sudo shutdown -r now


              Well and see I can use gadget driver g_printer.



              Following links helped me. Everyone that hassle to much with the beagle bone should at least stay some hours in the beagle chat room Chat group around the beagle bone



              They pointed again to the /opt/scripts/boot/ folder and different ways to dynamically load multiple drivers Drivers to load multiple driver instances and the provided interfaces Kernel USB Gadget Configfs Interface.



              How do I grep recursively helped.






              share|improve this answer


























                0












                0








                0






                Well you can start a search where the usb0 interface is loaded or which driver is used in every file by searching recursively in every file.



                sudo grep -r "usb0" /



                follow the input, if it is slow enough you will see some scripts in /opt/scripts/boot/. The grep will crash in the end.



                debian@beaglebone:~$ ls /opt/scripts/boot/
                am335x_evm.sh autoconfigure_usb1.sh capemgr.sh generic.sh legacy omap5_uevm.sh
                autoconfigure_usb0.sh~ beagle_x15.sh default generic-startup.sh omap3_beagle.sh
                debian@beaglebone:~$


                As you can see I wanted to avoid loading of autoconfigure_usb0.sh by adding a '~' to it. But that didn't helped. The interface where already generated and the driver loaded.



                So instead to manipulate the g_multi driver to parallel load the driver by using the configfs I decided to edit the am335x_evm.sh.



                I added following line



                USB_NETWORK_DISABLED="yes"
                USB_IMAGE_FILE_DISABLED="yes"


                but that didn't avoid the loading within the ifs. Actually I don't understand why but i guessed the environment variables are interpreted at start of the script or i don't set the right values to trigger following ifs



                if [ ! "x${USB_NETWORK_DISABLED}" = "xyes" ]; then


                So i moved the file by using



                mv /opt/scripts/boot/am335x_evm.sh /opt/scripts/boot/am335x_evm.sh~


                and restarted the system with



                sudo shutdown -r now


                Well and see I can use gadget driver g_printer.



                Following links helped me. Everyone that hassle to much with the beagle bone should at least stay some hours in the beagle chat room Chat group around the beagle bone



                They pointed again to the /opt/scripts/boot/ folder and different ways to dynamically load multiple drivers Drivers to load multiple driver instances and the provided interfaces Kernel USB Gadget Configfs Interface.



                How do I grep recursively helped.






                share|improve this answer














                Well you can start a search where the usb0 interface is loaded or which driver is used in every file by searching recursively in every file.



                sudo grep -r "usb0" /



                follow the input, if it is slow enough you will see some scripts in /opt/scripts/boot/. The grep will crash in the end.



                debian@beaglebone:~$ ls /opt/scripts/boot/
                am335x_evm.sh autoconfigure_usb1.sh capemgr.sh generic.sh legacy omap5_uevm.sh
                autoconfigure_usb0.sh~ beagle_x15.sh default generic-startup.sh omap3_beagle.sh
                debian@beaglebone:~$


                As you can see I wanted to avoid loading of autoconfigure_usb0.sh by adding a '~' to it. But that didn't helped. The interface where already generated and the driver loaded.



                So instead to manipulate the g_multi driver to parallel load the driver by using the configfs I decided to edit the am335x_evm.sh.



                I added following line



                USB_NETWORK_DISABLED="yes"
                USB_IMAGE_FILE_DISABLED="yes"


                but that didn't avoid the loading within the ifs. Actually I don't understand why but i guessed the environment variables are interpreted at start of the script or i don't set the right values to trigger following ifs



                if [ ! "x${USB_NETWORK_DISABLED}" = "xyes" ]; then


                So i moved the file by using



                mv /opt/scripts/boot/am335x_evm.sh /opt/scripts/boot/am335x_evm.sh~


                and restarted the system with



                sudo shutdown -r now


                Well and see I can use gadget driver g_printer.



                Following links helped me. Everyone that hassle to much with the beagle bone should at least stay some hours in the beagle chat room Chat group around the beagle bone



                They pointed again to the /opt/scripts/boot/ folder and different ways to dynamically load multiple drivers Drivers to load multiple driver instances and the provided interfaces Kernel USB Gadget Configfs Interface.



                How do I grep recursively helped.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited yesterday

























                answered 2 days ago









                JackGrinningCat

                1234




                1234






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Unix & Linux Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f492280%2fhow-can-i-avoid-that-the-configuration-of-the-provided-debian-image-for-beagle-b%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    How to make a Squid Proxy server?

                    Is this a new Fibonacci Identity?

                    19世紀