Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from coolsnowwolf:master #102

Open
wants to merge 2,296 commits into
base: master
Choose a base branch
from
Open

Conversation

pull[bot]
Copy link

@pull pull bot commented Aug 30, 2022

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.1)

Can you help keep this open source service alive? 💖 Please sponsor : )

@pull pull bot added ⤵️ pull merge-conflict Resolve conflicts manually labels Aug 30, 2022
@coolsnowwolf coolsnowwolf force-pushed the master branch 3 times, most recently from 073fdc3 to 5d87cf5 Compare September 1, 2022 17:31
@aiamadeus aiamadeus force-pushed the master branch 2 times, most recently from 420f56a to d91aa7c Compare September 12, 2022 16:19
@coolsnowwolf coolsnowwolf force-pushed the master branch 2 times, most recently from a6eeaee to 4f056f8 Compare September 22, 2022 05:37
@coolsnowwolf coolsnowwolf force-pushed the master branch 3 times, most recently from f9a69f3 to 5c42490 Compare October 11, 2022 16:46
@coolsnowwolf coolsnowwolf force-pushed the master branch 2 times, most recently from 59986c3 to 1fcad6d Compare October 19, 2022 13:06
@aiamadeus aiamadeus force-pushed the master branch 2 times, most recently from c9360b1 to 8443bb1 Compare March 13, 2023 04:16
@aiamadeus aiamadeus force-pushed the master branch 2 times, most recently from b3d5b40 to 4fc24cc Compare May 5, 2023 16:20
981213 and others added 16 commits February 23, 2025 23:00
Setting up usb gadgets using g_* kernel modules are considered a
legacy approach, but the usb_gadget configfs is a bit annoying
to use directly.
The usb_gadget configfs works by creating magic directories
and writing to magic files under /sys/kernel/config/usbgadget.
This new package is an init script to setup usb_gadget configfs
using uci. In the config file, gadget/configuration/function
sections create corresponding directories. UCI options are magic
files available in the configfs and strings/0x409 directories,
grabbed with a 'find' command. UDC option in gadget writes
the UDC file under the 'gadget' directory to attach the
generated gadget config.

It's also possible to apply pre-made config templates under
/usr/share/usbgadget. The templates use the same UCI config
format, with the 'gadget' entry named 'g1'. Currently, there
are templates for CDC-ACM and CDC-NCM gadgets written based
on existing g_*.ko module code.

Certain SBCs come with only a USB device port (e.g. Raspberry Pi
Zero). With this script, it's now possible to perform initial
setup on them by adding a default NCM gadget.

Signed-off-by: Chuanhong Guo <[email protected]>
The calculation in some cases does not finish for non-prime p.

This fixes CVE-2022-0778.

Based on patch by David Benjamin <[email protected]>.

Reviewed-by: Paul Dale <[email protected]>
Reviewed-by: Matt Caswell <[email protected]>
aiamadeus and others added 6 commits March 4, 2025 20:00
This hack is only needed when running sdk u-boot.
Prior to commit torvalds/linux@8a7d12d,
cdc-ethernet USB LTE modems (e.g. Quectel EC200A) were consistently named
usb0. After 8a7d12d67, devices began renaming to eth1 due to an assumption
that local MAC addresses originate exclusively from the kernel. Some
devices provide driver-assigned local MACs, causing point-to-point
interfaces with driver-set MACs to adopt eth%d names instead of usb%d.

Restore the naming exception for point-to-point devices: interfaces
without driver MACs or with driver-provided local MACs will retain the
usb%d convention. This addresses issues reported in [1] and fixed in [2].

[1] https://lore.kernel.org/all/[email protected]/
[2] https://lore.kernel.org/all/[email protected]/

Tested-by: Ahmed Naseef <[email protected]>
Signed-off-by: Ahmed Naseef <[email protected]>
Signed-off-by: Robert Marko <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⤵️ pull merge-conflict Resolve conflicts manually
Projects
None yet
Development

Successfully merging this pull request may close these issues.