034 Configure the kernel using make menuconfig linux tutorials [w/ subs]



00:00:00 – let's look at my favorite way of
00:00:02 – configuring a linux kernel using make
00:00:04 – menu config menu at the top level of the
00:00:07 – colonel directory and you type make men
00:00:09 – you can figure it should launch
00:00:11 – something like this you move around with
00:00:13 – your arrow keys
00:00:15 – it's not Mouse oriented on the bottom of
00:00:17 – the screen where there's a couple
00:00:18 – choices like exit and help you get to
00:00:20 – those by using your writing left arrow
00:00:22 – keys when you've highlighted one of the
00:00:24 – entries that's a submenu with the dash
00:00:27 – greater than on the side a little arrow
00:00:30 – thing when you hit enter then it expands
00:00:32 – that submenu to go back up a level out
00:00:36 – of the submenu you can do
00:00:37 – escape escape or you can do the exit for
00:00:41 – bottom level options that is not
00:00:43 – submenus you should see either square
00:00:46 – brackets or angle brackets the angle
00:00:48 – brackets less than greater than mean you
00:00:50 – have three choices is termed tri-state
00:00:53 – the three choices are asterisk meaning
00:00:57 – you want that option statically linked
00:00:59 – into the kernel and M means you wanted
00:01:02 – to be a module or if it empty
00:01:04 – that means it won't be compiled at all
00:01:06 – with square brackets that's just a
00:01:08 – boolean you have two choices either you
00:01:10 – have it or you don't
00:01:12 – when options are grayed out that
00:01:14 – indicates that you can't choose that
00:01:15 – option and that's because something that
00:01:18 – option requires is not yet turned out
00:01:22 – for example if you want to enable a
00:01:24 – network device driver and that's a pci
00:01:28 – device and you have not yet configured
00:01:31 – pci support then you can't enable that
00:01:35 – ethernet device that will be grayed out
00:01:37 – conversely some things are automatically
00:01:40 – enabled when you choose an option when
00:01:43 – you exit out of make many config it's
00:01:45 – going to save all your choices in the
00:01:47 – dot config now that's a text file and
00:01:49 – you could edit it but it's not
00:01:51 – recommended in particular because you
00:01:54 – might mess up these dependencies so you
00:01:56 – really want to use the interface make
00:01:58 – men you configure one of the others so
00:02:00 – that you get all the dependencies taken
00:02:02 – care of properly make many config lets
00:02:05 – you search for something by using a
00:02:07 – slash it will show you information about
00:02:10 – all the config variable
00:02:12 – tools that have that string in the name
00:02:14 – for example if you searched for power
00:02:18 – then it would give you a list of all the
00:02:21 – symbols that had p 0 wer in the name and
00:02:24 – it would give you information about what
00:02:25 – type of config variable it is what
00:02:28 – string it will prompt you with and make
00:02:30 – menu config will show you where in the
00:02:33 – submenus it resides it will tell you in
00:02:36 – which cake config file and on what line
00:02:39 – that is defined and it will show you
00:02:41 – information about dependencies on the
00:02:44 – bottom of the screen is an entry this
00:02:46 – has helped when you've highlighted one
00:02:48 – of the options and make many config menu
00:02:51 – select help if there is any help and
00:02:54 – usually there is it will display that
00:02:56 – text forget usually that's advice about
00:02:58 – why you would or wouldn't want to pick
00:03:02 – that option and if its intended to
00:03:04 – usually be a loadable module will give
00:03:06 – the name of the module sometimes that's
00:03:08 – kind of handy with make many config
00:03:10 – config is red automatically when you
00:03:12 – start and saved automatically when you
00:03:15 – exit if you say you want to save it but
00:03:17 – you can have other config files you want
00:03:19 – to use instead so you can load an
00:03:21 – alternate config file or save an
00:03:23 – alternate config file but there's no
00:03:25 – actual save to the default option to
00:03:28 – make many config a little bit scary when
00:03:31 – you've made your changes and you exit
00:03:33 – out finally from the top level it will
00:03:35 – ask you if you want to save your changes
00:03:37 – and normally you say yes let's look at
00:03:40 – using make menu config so here i am and
00:03:43 – the top-level Colonel directory and I
00:03:46 – type make menu config and it pops up the
00:03:49 – interface we see in the top here in the
00:03:53 – blue what Colonel were talking about and
00:03:56 – we see submenus with dash dash dash
00:03:58 – greater than let's say we want to
00:04:00 – configure a network device driver as a
00:04:04 – module so we have to find that somehow
00:04:06 – we can scroll down looking at options
00:04:08 – maybe it's under device drivers so we
00:04:12 – hit enter an hour inside the device
00:04:15 – drivers submenu and you can see up above
00:04:17 – it says device drivers now let's see if
00:04:21 – we can find network devices network
00:04:25 – device support we
00:04:26 – see that that selected on here and then
00:04:29 – we've got lots of options let's say
00:04:31 – we're going to try to configure for an
00:04:34 – intel be 1000 which is a fairly common
00:04:37 – network device ethernet driver support
00:04:40 – we go in there and we've got different
00:04:44 – brands and so forth we scroll Scroll
00:04:47 – scroll not always guaranteed that things
00:04:51 – are alphabetical
00:04:53 – ok so we've got some Intel ones here and
00:04:56 – we've got the strings like gigabit
00:04:57 – ethernet support and pci express gigabit
00:04:59 – ethernet support what is this
00:05:02 – so we'll highlight the pro 1000 gigabit
00:05:05 – ethernet support and then with my right
00:05:08 – arrow i'm going to move over to help and
00:05:11 – then i'm going to hit enter and we get
00:05:14 – the help it shows us in the lower right
00:05:16 – corner that we're looking at about forty
00:05:18 – three percent of the help file so
00:05:21 – there's some documentation here that it
00:05:22 – supports the pro 1000 gigabit ethernet
00:05:24 – family and then i'm going to do my right
00:05:27 – arrow to scroll some more
00:05:29 – it says underneath documentation
00:05:31 – networking there's a documentation file
00:05:34 – be 1000 dot txt and it says the module
00:05:37 – be called be 1000 so hey that's what i
00:05:40 – was looking for so i hit enter and exit
00:05:43 – out of the help and then with this still
00:05:45 – highlighted i can choose to enable it so
00:05:49 – right now it's blank if I hit the
00:05:51 – spacebar it makes it an M if I hit the
00:05:53 – spacebar again it makes it an asterisk
00:05:56 – have hit spacebar again it goes back to
00:05:58 – blank so i can cycle through the three
00:05:59 – choices with the spacebar know typically
00:06:03 – I want a network driver to be a module
00:06:05 – so i would say am there and then I can
00:06:08 – with my right arrow go to exit the right
00:06:10 – arrow go to exit my right arrow go to
00:06:13 – exit right arrow go to exit
00:06:16 – oh I'm at the top it asked me if I wish
00:06:18 – to save and it tells you we can do
00:06:21 – escape escape if you want to get out and
00:06:23 – not exit and i'll say yes and it tells
00:06:27 – me configuration written to dot config
00:06:29 – there we go
00:06:30 – and then i could build the colonel from
00:06:31 – there


Video Url:
http://youtu.be/EFrBf2Xthi0

(Visited 419 times, 145 visits today)

Comments

comments