musicmann Posted May 1, 2009 Author Share Posted May 1, 2009 Silly question though...where can I get depreciated kernel sources for slackware?... If you use an earlier distribution like 12.1 or maybe even 12.2, you might be able to upgrade the kernel to the appropriate level. I'm sure those sources and headers would still be floating out there somewhere. Quote Link to comment
dgirard Posted May 1, 2009 Share Posted May 1, 2009 Well...I couldn't find the kernel sources to match with 4.5 beta4, so I've reverted to 4.4... I finally got everything built...one thing I had to do after recompiling the kernel, was switch VMWare to present the disk controller as Buslogic instead of LSI. Once I did that, im up... I can live with 4.4 until the next 4.5 is released... Thanks for everyone's help! Now, on to VMWare on top of this (for deployment onto my dedicated hardware) Quote Link to comment
JimmyJoe Posted May 3, 2009 Share Posted May 3, 2009 Thanks musicmann for the great instructions. I was able to build my dev box pretty easily with the great info in this thread. Thanks! Quote Link to comment
Acuum Posted May 18, 2009 Share Posted May 18, 2009 Hi, two days and one everning in and i've yet to get it working. Can somone point me in the right direction? I have followed the steps (using 12.2 and skipping steps 2 and 4) and thigns seems to be build but it then doesn't boot. I guess i've make a mistake in the menuconfig section. it loads a gui with a WHOLE load of options in it. is there a sure fire way of knowing what to change? I've tried this in both a VM, and on real hardware with the same results. any help could be great. thanks A Quote Link to comment
musicmann Posted May 18, 2009 Author Share Posted May 18, 2009 Which version of unRAID are you using? For Step #2, you'll need to find & download updates that match the kernel that your version of unRAID is using. For example, I think 4.5 beta 6 uses the 2.6.29.1 kernel (you can check by booting it and typing in uname -r after logging in), so you would need to find that same level of headers, sources, and such and install them in Step #4. Quote Link to comment
Acuum Posted May 18, 2009 Share Posted May 18, 2009 unraid 4.4.2 http://download.lime-technology.com/unRAID%20Server%204.4.2.zip Quote Link to comment
musicmann Posted May 18, 2009 Author Share Posted May 18, 2009 4.4.2 is built on the 2.6.27.7 kernel which is what Slackware 12.2 ships with. Therefore, you are right, and you should be able to skip steps 2 and 4. You should be able to use the config file from the original post. Download it onto your dev system and unzip it. I think it is called config2 (no extension). This is the file that you need to avoid having to do all the menuconfig stuff manually. After you have unzipped it (and you are in the same directory that the file config2 is in), copy it to the /usr/src/linux location with the command below (Note, this is a replacement for the very last line of Step 5): cp -rf config2 /usr/src/linux/.config What we have done is copied the config file that was attached to the OP over to the needed location and changed its name to the needed name ".config" From here, you should be able to continue. You probably will not need to do the menuconfig command in Step 6. Quote Link to comment
Acuum Posted May 19, 2009 Share Posted May 19, 2009 MenuMan. I had been using yoru config file. I was deleteing the .config from that dir, then opening the same file name in nano and pasting your config file into a the (now empty) new .config file and saving it. however i hadn't realised that doing this meant that the "make menuconfig" command could then be skipped if i had done this. So to double check: step 1) done previously step 2) can skip for DVD isntall of 12.2 Slackware and 4.4.2 unraid step 2) done previously step 4) can skip for DVD isntall of 12.2 Slackware and 4.4.2 unraid step 5) do everything step listed in post step 6) cd /usr/src/linux make clean paste .config file using puty <skip>make menuconfig</skip> step 7) complete all steps listed in post step already done step 9) cross fingers... Thanks MusicMan. Quote Link to comment
musicmann Posted May 19, 2009 Author Share Posted May 19, 2009 Maybe you should do the make clean after the .config file is in place. Not sure if it matters, but that is the order it would be done normally. Last line of Step 8 (lilo -v) may need to be done each time you compile a new kernel (Step 7). Quote Link to comment
Acuum Posted May 19, 2009 Share Posted May 19, 2009 cool back to trying this in my VM which ran a WHOLE lot faster than my physical box. i'll no doubt be back latter where it work or not Quote Link to comment
Acuum Posted May 19, 2009 Share Posted May 19, 2009 IT WORKED! THANKS MUSICMAN! Quote Link to comment
musicmann Posted May 19, 2009 Author Share Posted May 19, 2009 IT WORKED! THANKS MUSICMAN! No doubt that it was your Step 9 that you added! Quote Link to comment
JM2005 Posted May 19, 2009 Share Posted May 19, 2009 IT WORKED! THANKS MUSICMAN! Congrats!!! Glad to hear you got it working! Quote Link to comment
Zero Hour Posted July 28, 2009 Share Posted July 28, 2009 Step #7 problem When I 'make modules' I get this error and it doesn't go any further. Everything up to that seems to work fine. CC [M] drivers/ide/pci/trm290.o CC [M] drivers/md/md.o drivers/md/md.c: In function 'lock_rdev': drivers/md/md.c:456: error: too many arguments to function 'blkdev_put' drivers/md/md.c: In function 'unlock_rdev': drivers/md/md.c:471: error: too many arguments to function 'blkdev_put' drivers/md/md.c: At top level: drivers/md/md.c:951: error: expected declaration specifiers or '...' before 'fmode_t' drivers/md/md.c:960: error: expected declaration specifiers or '...' before 'fmode_t' drivers/md/md.c:972: warning: initialization from incompatible pointer type drivers/md/md.c:973: warning: initialization from incompatible pointer type make[2]: *** [drivers/md/md.o] Error 1 make[1]: *** [drivers/md] Error 2 make: *** [drivers] Error 2 Anyone know? Thanks Quote Link to comment
BRiT Posted July 29, 2009 Share Posted July 29, 2009 Step #7 problem When I 'make modules' I get this error and it doesn't go any further. Everything up to that seems to work fine. CC [M] drivers/ide/pci/trm290.o CC [M] drivers/md/md.o drivers/md/md.c: In function 'lock_rdev': drivers/md/md.c:456: error: too many arguments to function 'blkdev_put' drivers/md/md.c: In function 'unlock_rdev': drivers/md/md.c:471: error: too many arguments to function 'blkdev_put' drivers/md/md.c: At top level: drivers/md/md.c:951: error: expected declaration specifiers or '...' before 'fmode_t' drivers/md/md.c:960: error: expected declaration specifiers or '...' before 'fmode_t' drivers/md/md.c:972: warning: initialization from incompatible pointer type drivers/md/md.c:973: warning: initialization from incompatible pointer type make[2]: *** [drivers/md/md.o] Error 1 make[1]: *** [drivers/md] Error 2 make: *** [drivers] Error 2 Anyone know? Thanks You're trying to use a recent beta version of Unraid 4.5 with an older Kernel. If you're using Slackware 12.2 or similar, you likely have Kernel 2.6.27.7 where as Unraid 4.5beta6 is built for kernel 2.6.29.x. To get past this, you need to update the kernel version you're trying to use OR use Unraid 4.4.2 version. Quote Link to comment
olympia Posted October 14, 2009 Share Posted October 14, 2009 May I(we) ask some more knowledgeable member to put together some steps or at least some good pointer on how to upgrade kernel in our good-old 4.4.2 dev environment to newer kernels? 4.5-beta7 has kernel version 2.6.30.8. There is even no slackware package in current directories for that yet. I assume the required kernel source has to be downloaded from kernel.org for this. So is is possible to put together a relatively easily followable guide on that, or this is not that simple? Thank you in advance! Quote Link to comment
jupilerman Posted October 14, 2009 Share Posted October 14, 2009 you can follow that guide : http://informatix.or.id/willy/installing-kernel-from-source.php Read it (twice if needed) before so you know what you're doing. Try it on a test machine (VM, ...) if you're not sure. Quote Link to comment
ftp222 Posted October 30, 2009 Share Posted October 30, 2009 Thank you to everyone for the great tips and guides so far. I was successful in getting unRAID 4.4.2 working a few months back, so I figured I would try 4.5 beta 7, but I am running into some problems. I got the source for the 2.6.30.8 kernel, built it, and can successfully boot to the new kernel in my development environment, but when I try to build the unRAID version, I get a kernel panic every time. I followed all of the instructions and tried using the attached config file from the first post - the only thing I added was ext4 support since I think I originally formatted the partition as ext4. I have attached a screenshot of the kernel panic in hopes that someone can tell me where to go next. I really want to upgrade my system to 4.5, but I need to have VMware running before I can do that. Quote Link to comment
ftp222 Posted November 2, 2009 Share Posted November 2, 2009 I resolved my issue for the kernel panic. It turns out my SCSI drivers were not loaded properly, so I moved my VM over to using IDE drives and that worked, so I now have a development environment running 2.6.30.8 kernel. Thank you again for the guide. Quote Link to comment
ajax3712 Posted September 3, 2010 Share Posted September 3, 2010 Apologies for reviving an old topic, but I was attempting to get a development environment running on my mac desktop and had a few questions before starting... I have created a VM using Slackware 13.1, the reason being that Unraid's current build (4.5.6) is using kernel 2.6.32.9. There doesn't appear to be a slackware equivalent based on that kernel (Unfortunately, Slackware 13.1 is using 2.6.33.4 and I've checked the various slackware folders listed in url provided in step #1 of the original post (looked in the various ".../k" directories for versions 12+). Is it ok to use Slackware 13.1, or should I stick to a previous version like 12.1? Does it matter what kernel the dev environment is built on? My intent is to build packages to move onto my production build (e.g. VMWare) if it matters. I would think it would since newer kernels may provide different functionality, but this is way beyond my newbie linux knowledge ... If it does matter, can someone point me to a source of the 2.6.32.9 kernel files (I tried googling, and perusing kernel repos, but didn't see any that had breakdowns listed in step 1, e.g. *noarch-1.tgz, *x86-1.tgz, etc) thanks for the help! Quote Link to comment
BRiT Posted September 3, 2010 Share Posted September 3, 2010 It is fine to use Slackware 12.2. If you use Slackware 12.x or older, you will need to update the udev package and the package-tools package so they match what unRAID 4.5.6 uses. I think it's udev 1.41. The package-tools is to handle .txz packages. It's also fine to use Slackware 13.1 or even Slackware-Current (13.1 with patches). However, the GCC compiler tool chain is newer than what unRAID 4.5.6 has, so you might also need to install newer gcc-lib on your official unRAID 4.5.6 server to get things running. As for the source for the kernel, have you checked the primary source of the linux kernel -- http://kernel.org/ ? I know it's there -- http://www.kernel.org/pub/linux/kernel/v2.6/ Quote Link to comment
ajax3712 Posted September 3, 2010 Share Posted September 3, 2010 Thanks for the quick reply! I actually did check the primary source. I just didn't see the file breakdowns listed in step #1, so I had no idea if the files in there would work (the *noarch, etc files), if they were in a different "state" than what the instructions expected, etc. Would I need to pull both the linux-2.6.32.9.tar.gz and the patch-2.6.32.9.gz as well? Quote Link to comment
BRiT Posted September 3, 2010 Share Posted September 3, 2010 Just get the specific version linux-2.6.32.9.tar.gz. The patch is, well, a patch against the main stream (2.6.32). Unless you want to grab linux-2.6.32.tar.gz and then apply the patches in patch-2.6.32.9.gz. So no. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.