Is building customized Debian kernel for BeagleBoneBlack is not needed any more, or the old way of building it is already outdated? I tried to google the updated build guide to build one and all are outdated.
After the Linux started, there is no usb0, no usb1 available after running ifconfig.
I checked the .config and the relevant features are selected.
I compared the /etc/network/interfaces with pre-build image and didn’t find anything relevant to usb0 and usb1.
I googled and didn’t find any articles relevant to network configuration before Linux boot.
What do you think might go wrong?
No, it is not installed.
Dynamically setting IP address failed.
I referred to “Networking Guide for BeagleBone” by Brian Fraser and tried to set static IP address. But it needs root password. It seems both blank and “-” are not valid password. What’s the root’s password?
Thanks!
Crane
Eventually get BBB connected to the internet.
Installed bb-usb-gadgets package.
But get error message when enabling its service, saying “couldn’t find libcomposite module”. I guess it is relevant what you said, right?
Tried to google some information about libcomposite, but couldn’t find anything that can address my question.
So, how to use the script you shared to help enable the usb gadget service?
Thanks!
No I didn’t change the default kernel configuration.
Here is the results when enabling it and checking the status:
debian@arm:~$ sudo systemctl enable --now bb-usb-gadgets.service
Job for bb-usb-gadgets.service failed because the control process exited with error code.
See “systemctl status bb-usb-gadgets.service” and “journalctl -xe” for details.
debian@arm:~$ sudo systemctl status bb-usb-gadgets.service
? bb-usb-gadgets.service - BeagleBoard.org USB gadgets
Loaded: loaded (/lib/systemd/system/bb-usb-gadgets.service; enabled; vendo>
Active: failed (Result: exit-code) since Wed 2023-03-08 03:26:20 UTC; 36s >
Process: 832 ExecStartPre=/sbin/modprobe libcomposite (code=exited, status=>
CPU: 24ms
Mar 08 03:26:20 arm systemd[1]: Starting BeagleBoard.org USB gadgets…
Mar 08 03:26:20 arm modprobe[832]: modprobe: FATAL: Module libcomposite not fou>
Mar 08 03:26:20 arm systemd[1]: bb-usb-gadgets.service: Control process exited,>
Mar 08 03:26:20 arm systemd[1]: bb-usb-gadgets.service: Failed with result 'exi>
Mar 08 03:26:20 arm systemd[1]: Failed to start BeagleBoard.org USB gadgets.
debian@arm:~$
It says:
debian@arm:~$ sudo /sbin/depmod -a
depmod: ERROR: could not open directory /lib/modules/4.19.94-ti-r73.1: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
debian@arm:~$
Then try to install kernel headers:
debian@arm:~$ sudo apt install linux-headers-$(uname -r)
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
E: Unable to locate package linux-headers-4.19.94-ti-r73.1
E: Couldn’t find any package by glob ‘linux-headers-4.19.94-ti-r73.1’
debian@arm:~$ lsmod
Module Size Used by
debian@arm:~$
There might be something wrong with the image. It doesn’t happen when using the pre-build Debian image.
Indeed not available.
linux-headers-4.19.94-ti-r73/unknown 1bullseye armhf
Linux kernel headers for 4.19.94-ti-r73 on armhf
Would xxx-r73 instead of xxx-r73.1 work?
It looks it is there, right?
Enable it again and still failed. The reason looks a little different.
debian@arm:~$ sudo systemctl status bb-usb-gadgets.service
? bb-usb-gadgets.service - BeagleBoard.org USB gadgets
Loaded: loaded (/lib/systemd/system/bb-usb-gadgets.service; enabled; vendo>
Active: failed (Result: exit-code) since Thu 2022-10-06 19:49:04 UTC; 3min>
Process: 380 ExecStartPre=/sbin/modprobe libcomposite (code=exited, status=>
Process: 381 ExecStart=/usr/bin/bb-start-usb-gadgets (code=exited, status=2)
CPU: 67ms
No previous regular expression (press RETURN)
Oct 06 19:49:04 arm systemd[1]: Starting BeagleBoard.org USB gadgets…
Oct 06 19:49:04 arm bb-start-usb-gadgets[381]: bb-usb-gadgets: bb-start-acm-ncm>
Oct 06 19:49:04 arm bb-start-usb-gadgets[382]: usb_gadget: Looking for libcompo>
Oct 06 19:49:04 arm bb-start-usb-gadgets[383]: ls: write error: Device or resou>
Oct 06 19:49:04 arm systemd[1]: bb-usb-gadgets.service: Control process exited,>
Oct 06 19:49:04 arm systemd[1]: bb-usb-gadgets.service: Failed with result 'exi>
Oct 06 19:49:04 arm systemd[1]: Failed to start BeagleBoard.org USB gadgets.