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

modprobe or modprobe_small? #26

Closed
pwFoo opened this issue Mar 22, 2020 · 8 comments
Closed

modprobe or modprobe_small? #26

pwFoo opened this issue Mar 22, 2020 · 8 comments

Comments

@pwFoo
Copy link

pwFoo commented Mar 22, 2020

Hi,
I again try to move to rustybox because it would be easier to build (if musl / static build works) for custom needs.

With busybox binary I have some problems with modprobe_small which not handle (soft) deps as should.
Supports rustybox modprobe, modprobe_small or both?

@pwFoo
Copy link
Author

pwFoo commented Mar 22, 2020

Blocked by non-static build? :(
See #25

@samuela
Copy link
Owner

samuela commented Mar 22, 2020

There are modprobe and modprobe_small implementations in https://github.com/samuela/rustybox/tree/master/modutils.

@pwFoo
Copy link
Author

pwFoo commented Mar 22, 2020

I play with busybox today and have a problem with soft dependencies :(

For example I try to load r8169 nic driver, but realtek.ko isn't loaded as pre dependency.
To get the nic working I need to do manually the following steps.

modprobe -r r8169
modprobe realtek
modprobe r8169

But it should work without manually reload the modules in the right order...
Maybe rustybox have the same problem... I also tried alpine linux based busybox + kmod without success...
So I'm not sure if it is modprobe_small related ...

@samuela
Copy link
Owner

samuela commented Mar 23, 2020

Hmm, it sounds as though this is an issue with modprobe/modprobe_small. If the busybox version doesn't work for you, then the rustybox one won't either since the rustybox utilities have been transpiled from the busybox ones.

@samuela
Copy link
Owner

samuela commented Mar 23, 2020

If busybox and rustybox versions of the same utilities don't perform identically then that's a bug.

@pwFoo
Copy link
Author

pwFoo commented Mar 23, 2020

I need to test it with kernel 4.x! Maybe it could be a kernel 5.x problem!

@pwFoo
Copy link
Author

pwFoo commented Mar 23, 2020

Tested different kernel versions. It fails with kernel 5.x and works fine with alpine linux-vanilla 4.9.x kernel!

So shouldn't be a busybox bug...

@pwFoo pwFoo closed this as completed Mar 23, 2020
@samuela
Copy link
Owner

samuela commented Mar 23, 2020

Ok glad to hear you got it working!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants