Custom Kernel Questions



  • So I am in the process of trying to get one kernel for a bunch of Dell’s, and the newer ones are having issues and will not boot with the other kernel. So I know the kernel is monolithic in that it contains all of the drivers it needs and the wike refers to using one of the .config files to start with, what I am trying to understand is what is in the baseline .conf and what is required. Is there any reason that I could not take a baseline ubuntu .config file and re-complile and select monolithic and use that one?

    The reason I ask is that the newer Ubuntu versions boot on the machines and work just fine, so I know they can work just wanting to understand more about the requirements for the kernel.


  • Banned

    This post is deleted!


  • %(#222222]Missed a Step)[
    Secure Boot > Disable, Apply]
    General > Advanced Boot Options > Enable Legacy
    Exit, Restart, Re-Enter Bios
    Boot Sequence > Switch to Legacy > Move NIC to top.
    ***System Configuration > Integrated NIC > Enabled with PXE



  • Should have posted my notes to the bios as it took me a while to figure out how to switch the bios to legacy mode on the Opti 3010:

    Secure Boot > Disable, Apply
    General > Advanced Boot Options > Enable Legacy
    Exit, Restart, Re-Enter Bios
    Boot Sequence > Switch to Legacy > Move NIC to top.

    Pat



  • Thanks for the help bishoptf.

    The key to this for us on these 3010 was getting the GPT partition table switched to MSDOS using gparted. With that, I captured the image on both a 0.32 test fog server with bishops kernel, but also on our production 0.27 install (we still have 0.27 as we have it set up with a multi-subnet distributed fog storage config - there is some 0.31 component patched in, but I can’t remember what)…anyhow…the kernel on the 0.27 is an “older one” not sure what version. Kernel size is 4,606,848.

    The 3010 Windows 8 image we’re deploying is ~30GB and the upload took just under 30 minutes on a 100 mbps switch.

    Pat



  • @PatinMT, post: 12136, member: 913 said:

    @bishoptf - are you using the chainloading solution on the 3010s, or can you get successful pxe boot without that?

    Thanks, Pat
    Yeah I have been using chainloading for sometime, I was having issues with some vostros, even now though sometimes it doesn’t always want to boot off of the Hard drive sometimes, but a reboot usually corrects that. I am also using SSD’s so that may add to what I am seeing. The other thing to note is that I do not have mine always boot through the FOG loader on startup, I use it more of a backup and imaging tool so I usually only boot into fog from a wol wakeup, so that way most users never see the fog screen. Although the new Dell bios with the 3010 seems to boot whatever you did the last time even though it is not selected.



  • @bishoptf - are you using the chainloading solution on the 3010s, or can you get successful pxe boot without that?

    Thanks, Pat



  • Update, I have a newer kernel that appears to be working for the Dell 3010’s, I thought I had already posted this but it appears not. Took me a long time to get it to working and so far it is also working for my other Dell opti’s. If anyone is in the need of the custom kernel shoot me a PM.

    The only thing that is still odd is that on the 3010 when it boots it gets to one point and pauses (about a minute) or times out before carrying on, not sure what is the issue but it does work, but for now just happy to be getting images of all of the desktops.


  • Moderator

    It’s at the root of the xconfig screen. You select the top most option on the left, and on the right panel, it’s somewhere down a bit. It will say something about kernel config and give you the option to include it in the kernel and/or make it available via /proc/config.gz



  • @chad-bisd, post: 10833, member: 18 said:

    When I rebuilt my kernel, I chose to use the core.config from FOG, remove a few things I didn’t need and added a few things I did, including new source files for the ASIX usb networking drivers.

    Compiling a custom kernel doesn’t take long once you’ve got the source files downloaded and the workstation configured. If the kernel for one of the newer ubuntu versions work, see if you can zcat /proc/config.gz to get the config out of it. You can also lsmod to see what modules are loaded so you know what you need to have selected when you compile your kernel.

    Chad,

    I have good kernels that will boot the 3010, what I would like to know is what are the required kernel .config variables that I need to add. Looking at the core.configs I know I need nfs support and probably ntfs support but what are the other variables that I need to have loaded in order for everything to work.

    I have looked and search but it does not appear to be listed, as for what are the minimum required .config variables that you need to have. I would assume a developer would be able to answer this quickly but not sure the best place to post…thanks.



  • @chad-bisd, post: 10876, member: 18 said:

    It also appears to have some extra lines near the top.

    Heh… Didn’t think to look there once I saw the bottom. :)

    Either way, figured I’d post the info here so the official core.config could be cleaned up for future downloaders.

    Thanks!


  • Moderator

    It also appears to have some extra lines near the top.



  • @chad-bisd, post: 10833, member: 18 said:

    When I rebuilt my kernel, I chose to use the core.config from FOG, remove a few things I didn’t need and added a few things I did, including new source files for the ASIX usb networking drivers.

    Compiling a custom kernel doesn’t take long once you’ve got the source files downloaded and the workstation configured. If the kernel for one of the newer ubuntu versions work, see if you can zcat /proc/config.gz to get the config out of it. You can also lsmod to see what modules are loaded so you know what you need to have selected when you compile your kernel.

    Not sure if anyone is aware of this but the current freeghost/kerne/core.config file has some extraneous HTML code appended to it - apparently inserted by Adblock all on one line - adding 73,883 bytes of crap to the core.config.

    The end of the core.config file looks like this:

    # CONFIG_AVERAGE is not set
    # CONFIG_CORDIC is not set
    </pre></body><style type="text/css" style="display: none !important; ">/*This block of style rules is inserted by AdBlock*/#FFN_Banner_Holder,#FFN_imBox_Container,#RadAd_Skyscraper,#ab_pointer,#adxLeaderboard
    ...snip...
    ],a[href^="http://www.adbrite.com/mb/commerce/purchase_form.php?"],a[href^="http://www.firstload.de/affiliate/"],a[href^="http://www.friendlyduck.com/AF_"],a[href^="http://www.google.com/aclk?"],a[href^="http://www.liutilities.com/aff"],a[href^="http://www.liutilities.com/products/campaigns/adv/"],a[href^="http://www.my-dirty-hobby.com/?sub="],a[href^="http://www.ringtonematcher.com/"],#cnt #center_col > #res > #topstuff > .ts:only-child,#mbEnd[cellspacing="0"][cellpadding="0"],#mclip_container:last-child,#mn #center_col > div > h2.spon:first-child,#mn #center_col > div > h2.spon:first-child + ol:last-child,#ssmiwdiv[jsdisplay],#tads.c,#tadsb.c,#tadsto.c,.ch[onclick="ga(this,event)"],.ra[width="30%"],.ra[width="30%"],#center > .dose > .dosesingle.float { display:none !important; }</style></html>
    
    

    And of course when running a make using it,

    
    # make all
    scripts/kconfig/conf --silentoldconfig Kconfig
    .config:2:warning: unexpected data
    .config:3:warning: unexpected data
    .config:3332:warning: unexpected data
    .config:3333:warning: unexpected data
    
    

    editing the core.config file and stripping off that one line reduces the core.config file to 79,521 bytes and it works without causing make to complain.



  • Well the ubuntu .config witht the latest linux sources did not work either, however I do know that Ubuntu boots fine on the computer so it must be a driver conflict since most of its drivers are modules (ubuntu that is) and only load when needed vs loading all of them in the kernel.

    My next plan of action is to figure out which modules I need for the 3010 and the other opti’s that I have and see if I can get something that works for all of them, at least try, otherwise I will have to have 2 kernels.



  • @chad-bisd, post: 10833, member: 18 said:

    When I rebuilt my kernel, I chose to use the core.config from FOG, remove a few things I didn’t need and added a few things I did, including new source files for the ASIX usb networking drivers.

    Compiling a custom kernel doesn’t take long once you’ve got the source files downloaded and the workstation configured. If the kernel for one of the newer ubuntu versions work, see if you can zcat /proc/config.gz to get the config out of it. You can also lsmod to see what modules are loaded so you know what you need to have selected when you compile your kernel.

    You can find the .config files in the /boot directory, I’m building now as we speak, I used their config and just turned of the makke modules option so it compiles with the drivers, we will see if it works or not…


  • Moderator

    When I rebuilt my kernel, I chose to use the core.config from FOG, remove a few things I didn’t need and added a few things I did, including new source files for the ASIX usb networking drivers.

    Compiling a custom kernel doesn’t take long once you’ve got the source files downloaded and the workstation configured. If the kernel for one of the newer ubuntu versions work, see if you can zcat /proc/config.gz to get the config out of it. You can also lsmod to see what modules are loaded so you know what you need to have selected when you compile your kernel.


Log in to reply
 

489
Online

38916
Users

10687
Topics

101373
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.