[SOLVED] Weird kernel Versioning error with Virtualbox-kernel. Sed magic needed?
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Weird kernel Versioning error with Virtualbox-kernel. Sed magic needed?
From the Slackbuilds I have virtualbox and virtualbox-kernel installed. The modules will not load "Exec Format Error"
The kernel is the Linux stable git 3.19.0-rc6. The error dmesg shows is
Code:
[86788.162754] vboxdrv: version magic '3.19.0 SMP mod_unload ' should be '3.19.0-rc6 SMP mod_unload '
The modules are installed in /lib/modules/3.19.0-rc6 but a hex editor reveals they have the version "3.19.0 SMP mod_unload" internally. There's a string of 0x00 after the kernel version.
sed 's/3.19.0 SMP mod_unload/3.19.0-rc6 SMP mod_unload/' -i <file> produces a length error, so I need to take out 4 0x00 characters as well. Ideas anyone? My hex reader, dhex doesn't seem to do edits.
@ppr:kut: No, same kernel, but a Linus stable git source, not a normal version
@mancha: Nice try, but it resolutely refused to alter the thing. The syntax is probably ok, but sed didn't like the mix of ascii & hex, or something. I tried it every way I could think of, .bak files > .ko files, also escapes on the full stops (3\.19\.0) but to no avail. Searching for text in a binary file didn't really work. I had to get up the ascii table and search for 33 2e 31 39 2e 30 in the hex search of dhex to find it.
Then I discovered dhex does do edits and it was just that I never really examined it. It needs a console to be happy, not an xterm. but I laboriously altered the things (no copy & paste for hex codes, only the search bar).Installing Fedora Electronic spin while I write.
Last edited by business_kid; 05-05-2015 at 06:59 AM.
Though, as you said, to be entirely proper we should escape the periods in our sed (i.e. sed -i -e 's/3\.19\.0 SMP mod_unload\x00\x00\x00\x00/3.19.0-rc6 SMP mod_unload/').
Looking at the actual file helped a great deal. Basically, there's a space between "mod_unload" and the 0x00's that needs to be
accounted for. With that change, sed works as expected:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.