friendica.eskimo.com


creating a USB gadget

I want to create a USB gadget with a raspberry pi zero 2W. I'm starting with imitating a webcam I already have to see how much of this I can figure out. I've used the online documentation and a couple AI bots to get this far quickly, but I'm hung up on a ln command. It's telling me "ln: failed to create symbolic link 'configs/c.1/uvc.usb0': No such file or directory" when trying to create the link. This makes no sense to me though. I'm trying to create the link, of course it doesn't exist yet. That's what that command is supposed to do.

I've confirmed this problem in alpine linux and raspbian lite.

Below is the little script I have so far just to create the device:

\#!/bin/bash
modprobe libcomposite
cd /sys/kernel/config/usb_gadget/
mkdir -p fauxcam
cd fauxcam
echo 0x046d > idVendor  # Logitech Vendor ID
echo 0x094b > idProduct # Brio 105 Product ID
echo 0x0200 > bcdUSB
echo 0x9914 > bcdDevice
mkdir -p strings/0x409
echo "111111111111" > strings/0x409/serialnumber
echo "Brio 105" > strings/0x409/product
mkdir -p configs/c.1/strings/0x409
echo "UVC Configuration" > configs/c.1/strings/0x409/configuration
echo 250 > configs/c.1/MaxPower
mkdir -p functions/uvc.usb0
ln -s functions/uvc.usb0 configs/c.1/
echo "usb0" > UDC
Hey, you need to also modprobe usb_f_uvc at the beggining, right after modprobe libcomposite
This entry was edited (48 minutes ago)

TIL Kitty terminal can show a dock panel on Linux desktops!

sw.kovidgoyal.net/kitty/kitten…
34 3
Sorry, no, don't want that i a terminal.
8

Can't update to Fedora Silverblue 42

I am trying to update from Silverblue 41 to 42 (fully updated) but run into issues when attempting to update from both the software app and from CLI.

The problem using the software app is the same as what is described by this other user, who is using Fedora Workstation not Silverblue like I am:

discussion.fedoraproject.org/t…

When I click the download button, it looks like it's downloading multiple files since the progress bar goes from 0 to 100 several times, and then it gets up to 95% then suddenly returns to the download button. This happens in about 30 seconds.

Using the CLI method, I run the following command:

rpm-ostree rebase fedora:fedora/42/x86_64/silverblue

and get the following errors:

```error: Could not depsolve transaction; 1 problem detected:
Problem: conflicting requests
- package dnf5-plugin-automatic-5.2.12.0-2.fc42.x86_64 from updates requires libcurl-full(x86-64), but none of the providers can be installed
- package dnf5-plugin-automatic-5.2.12.0-1.fc42.x86_64 from fedora requires libcurl-full(x86-64), but none of the providers can be installed
- package dnf5-plugin-automatic-5.2.12.0-2.fc42.x86_64 from updates-archive requires libcurl-full(x86-64), but none of the providers can be installed
- package libcurl-minimal-8.11.1-4.fc42.x86_64 from @System conflicts with libcurl(x86-64) provided by libcurl-8.11.1-4.fc42.x86_64 from fedora

6 2
Kind of. Atomic versions of Fedora are designed to be set it and forget it kind of distro. New releases can cause issues with third party packages.
2

It worked! I uninstalled dnf-automatic, libreoffice, and rpmfusion and then restarted.

Thanks for your help! Will keep your tips in mind for the future and try to avoid layering.

This entry was edited (7 hours ago)
2

Repartition again plus Printer

Hey again.

Thank you again for all of the help with the dual boot and repartition a few weeks back. I am running Linux Mint.

I repartitioned the Linux side to about 25 GB and over the last few weeks just downloading updates,
I guess it has filled up. It tells me there is only 75 MB left. Is that normal or can I free up room again?

Also, the printer no longer prints. It just hangs when I try to print. It shows up correctly as the HP Deskjet 3510 but won’t print. Any tips on how to fix?

3
Mint has a convenient desktop app included called Disk Usage Analyzer that makes checking what's using your storage space quick work.
1
newer older