Articles

Kernel Upgrade – Gentoo (December 2018)

July 5, 2019



okay we are gonna do a colonel upgrade to the sources okay um I just did back-to-back Gen 2 released four point fourteen point eighty two and then the four point fourteen point eighty three and I'm in there two E's select profile list I'm under gem to stable you know it's a the AMD 17.0 stable release but yeah four point fourteen point eight two and four four four point fourteen point eight three or the last two stable releases and I'm just sort of doing this for fun is I'm gonna upgrade to and it's still under their stable release so hey but it's four point 19.0 and I checked it's not under experimental of course I don't I suppose it could be well that's an experiment in any sense for me right now so the first thing we're gonna do to switch over let's change directories and to user will go into Hugh's or source Linux and this is actually the directory that the current kernel is selling to and this is the directory that we compile the kernel in actually if we go back a directory and we do a long list you'll see that Lenox right now is sim linked to Linux 4.14 point 83 and that is that is the kernel I'm currently using I think if you do it you name – or it'll show you so we're gonna do is the first thing we're gonna do is copy our configuration over in case anything does go wrong and I like to just copy it to my home directory if you leave it in the sim linked directory it will be overwritten so I copy copy config and we'll copy that – we're gonna rename kernel – config don't put that you name – or command and in that way it'll name it so we know which kernel configuration we have oops and it's not cause it's chemistry okay yeah if you do a list all you'll see like these are the configurations I will work under I was working on by date but if you look at the top files and here this dot config is is the configuration that it uses like if you were to happen to put like to do to do any kind of configurations like make menu config Oh spell all right make menu config and that's that's actually bringing up that's opening with the with the current configuration the dot config so this is uh this is the King this is the file that we're working with first thing we're gonna do though is we're going to well let's look at e select you select less okay and this is the the kernel that I just downloaded so we're gonna switch over to that do sudo just just to check to make sure it is and we can even go back directory and do a long list and we'll see that y'all that when you do e select kernel set command all that does is it creates the sim link to Linux the Linux directory under user source Linux so now that we're back in this directory what we're gonna do is we're going to copy we're going to copy the actual configuration from from our boot file from our boot file we have this configuration and that's the that's the configuration that goes with the kernel work currently using was after we can pile our kernel and user source Linux it copies it over into the boot directory and then from there we configure grub to pick up our colonel so what we're going to do is we're going to copy this configuration since we changed the assembly we're going to copy the configuration from boot over to our new colonel so we're going to do a coffee boot that works run feed user source Linux whoops and we want to use sudo ok there we go so now that our configuration is copied over there's two options that we can use the first one here is it's make old default config but it's old DF config and this sets all the new options to the to the default recommended status is how it's listed this next option makes silent old config this option will go through all the new changes in this case going from four point fourteen point eighty three to four point eight nineteen point zero it'll go through all the new configurations between those two kernels for the new kernel and it'll it'll ask you each option and you'll see like this is just an example that you'll see like the capital y and that would be that that yes would be the default recommended status if it's capitalized and then no and then the module I'm just gonna do I'm just gonna do this one okay so that it that adjusted the configuration that we just copied over from boot and now it's setup for our new kernel and after I do that these are two important steps here's we want to do sudo make modules prepare this is kind of a short and you also want to check check to see if emerge has any updates on oops yeah – a is the same as – – ask but this whole this will go through and and check and see if there are any updates in any of the modules and if there are any updated modules at all our package manager will we'll pull them in and after we do that this next string of commands is actually what it takes to to compile to compile the kernel and it's it's three separate commands here and there they're separated by the two ampere stands which I guess and computer science kind of acts like the logical operator to wear like this the second the second command wouldn't wouldn't take place if the first command wasn't successful it would kind of stop to where yet as logical operators both have to evaluate to true for it to pass on to the next set of instructions it does the same thing so I some people will do them separate they'll do make and then make modules install and make install I just kind of like to run them all together and now this this will take some time at least it should take some time and I'll probably fast forward the video it'll take 20 minutes on my own okay we're just about finished you know alright this ass laugh step here is just all it does is well if we look in if we list our boot directory now we'll see that we'll see order the kernel we just compiles now in the boot directory and this this command here will configure grub to check it looks on the boot directory and then it configures the kernel into the grub boot and you just configures grub so we do that next you can see it found it and you can also see it found the old kernel which if if you go into advanced if something does go wrong with this with with the new kernel you can if you have it set up right normally and go into advanced and then boot into your old colonel but in any case I still copy the configuration over to my home directory in case something does go wrong the first step you would do if something did go wrong and say you you didn't have the backup option of going into advanced and in your grub menu and picking up your old colonel what you would do whether you're booting up into like a TTY or you have to change route into your gem to partition what you would do the first step you would do is just sudo ease select Colonel I'll do the list first but you would you would go from that and you would set to your old colonel and then after you set to your old colonel and it's M linked into this directory here's user source Linux directory your next step would be to copy the configuration that we copied to our home directory so you would just copy colonel in this case it would be 83 okay and then you would copy that use your source and after after you copied the configuration over you would you would just run this string of commands again and depending on your computer your RAM your processor like for me like I said it takes about 20 minutes to run this command now you can alter make like I have my processor has 4 threads so I could actually run as my first step sudo make – J + – j 5 so don't make – J 5 and that would utilize all four threads in my processor and it would complete a lot quicker I just wanted to make everything a little simpler but it's not too bad I mean like I said if you have any trouble just convert back to your original configuration that's about it you have any questions if yep good luck peace out

You Might Also Like

2 Comments

  • Reply Nguyễn Văn Đức July 5, 2019 at 8:46 am

    what distro did you used ?

  • Reply Edgar Moreira July 5, 2019 at 8:46 am

    Gentoo does not recognise windows 7 on dual boot… How to fix this issue?

  • Leave a Reply