How can I avoid that the configuration of the provided debian image for beagle bone black will hinder load of...
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
add a comment |
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
add a comment |
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
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
debian beagleboneblack
asked 2 days ago
JackGrinningCat
1234
1234
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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.
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
add a comment |
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.
add a comment |
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.
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.
edited yesterday
answered 2 days ago
JackGrinningCat
1234
1234
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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