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

usbip: Init at ${kernel.version} #31948

Merged
merged 4 commits into from Nov 22, 2017
Merged

usbip: Init at ${kernel.version} #31948

merged 4 commits into from Nov 22, 2017

Conversation

the-kenny
Copy link
Contributor

@the-kenny the-kenny commented Nov 22, 2017

Motivation for this change

Our kernel has the userspace modules for usbip (usb-over-ip) but lacks the necessary userspace tools.

With this package I was able to attach a simple wireless mouse receiver plugged into a raspberry-pi over a wireless network to my notebook running NixOS.

I'm not entirely sure if this approach (src = kernel.src etc.) is the right one for this situation. If there's a better way to package userspace tools in the kernel source tree, please tell me.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@NeQuissimus
Copy link
Member

@GrahamcOfBorg build linuxPackages_4_14.usbip
linuxPackages_4_4.usbip

Copy link

@GrahamcOfBorg GrahamcOfBorg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failure for system: x86_64-darwin

error: assertion failed at /tmp/nix-ofborg/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/31948/pkgs/os-specific/linux/kernel/generic.nix:32:1
(use ‘--show-trace’ to show detailed location information)

Copy link

@GrahamcOfBorg GrahamcOfBorg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Success for system: x86_64-linux

shrinking /nix/store/1pw2w5azyx8jy7faxqdqnz16ymnz12wn-usbip-linux-4.14.1/sbin/usbip
shrinking /nix/store/1pw2w5azyx8jy7faxqdqnz16ymnz12wn-usbip-linux-4.14.1/sbin/usbipd
shrinking /nix/store/1pw2w5azyx8jy7faxqdqnz16ymnz12wn-usbip-linux-4.14.1/lib/libusbip.so.0.0.1
gzipping man pages under /nix/store/1pw2w5azyx8jy7faxqdqnz16ymnz12wn-usbip-linux-4.14.1/share/man/
stripping (with flags -S) in /nix/store/1pw2w5azyx8jy7faxqdqnz16ymnz12wn-usbip-linux-4.14.1/lib  /nix/store/1pw2w5azyx8jy7faxqdqnz16ymnz12wn-usbip-linux-4.14.1/sbin 
patching script interpreter paths in /nix/store/1pw2w5azyx8jy7faxqdqnz16ymnz12wn-usbip-linux-4.14.1
checking for references to /tmp/nix-build-usbip-linux-4.14.1.drv-0 in /nix/store/1pw2w5azyx8jy7faxqdqnz16ymnz12wn-usbip-linux-4.14.1...
moving /nix/store/1pw2w5azyx8jy7faxqdqnz16ymnz12wn-usbip-linux-4.14.1/sbin/* to /nix/store/1pw2w5azyx8jy7faxqdqnz16ymnz12wn-usbip-linux-4.14.1/bin
/nix/store/1pw2w5azyx8jy7faxqdqnz16ymnz12wn-usbip-linux-4.14.1
/nix/store/rcj5wwik4sk0akavl39ny4axzx310rl8-usbip-linux-4.4.100

sorry for breakage, I was testing the wrong code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants