1
00:00:00,003 --> 00:00:05,005
(upbeat music)

2
00:00:05,005 --> 00:00:08,001
- [Instructor] We have some good challenges for you,

3
00:00:08,001 --> 00:00:10,002
and please, do the challenges.

4
00:00:10,002 --> 00:00:12,005
That's where you're going to learn the most.

5
00:00:12,005 --> 00:00:14,000
So let's see.

6
00:00:14,000 --> 00:00:16,005
We want to configure and build kernels.

7
00:00:16,005 --> 00:00:18,002
So do a configuration.

8
00:00:18,002 --> 00:00:19,008
You can use either make menuconfig

9
00:00:19,008 --> 00:00:22,006
or make xconfig.

10
00:00:22,006 --> 00:00:26,004
So we want you to remove ReisderFS support,

11
00:00:26,004 --> 00:00:29,007
and there's a hint that's a file system.

12
00:00:29,007 --> 00:00:32,001
And then enable debug_atomic_sleep,

13
00:00:32,001 --> 00:00:34,008
wherever you can find that.

14
00:00:34,008 --> 00:00:37,008
I'm assuming it's not already enabled.

15
00:00:37,008 --> 00:00:38,007
And you can read the help

16
00:00:38,007 --> 00:00:41,000
if you want to learn more about that.

17
00:00:41,000 --> 00:00:48,006
And then look at the help for disabling heap randomization

18
00:00:48,006 --> 00:00:53,003
and determine is that safe to disable on recent distros.

19
00:00:53,003 --> 00:00:55,001
And what does disable mean?

20
00:00:55,001 --> 00:00:57,000
Setting it to what?

21
00:00:57,000 --> 00:00:59,007
What's the default for that?

22
00:00:59,007 --> 00:01:04,004
And then is KVM enabled as a module?

23
00:01:04,004 --> 00:01:06,005
KVM is the kernel virtual machine.

24
00:01:06,005 --> 00:01:09,004
That's what's used to make VMs

25
00:01:09,004 --> 00:01:12,004
for Linux running VMs.

26
00:01:12,004 --> 00:01:14,008
And in the help for that, you should be able to find out

27
00:01:14,008 --> 00:01:17,004
what the module will be called.

28
00:01:17,004 --> 00:01:20,006
And things that need to use KVM,

29
00:01:20,006 --> 00:01:22,002
we'll use a device file,

30
00:01:22,002 --> 00:01:24,009
and the help should tell you the path to the device file.

31
00:01:24,009 --> 00:01:26,006
So see that.

32
00:01:26,006 --> 00:01:30,000
Then go ahead and build bzImage.

33
00:01:30,000 --> 00:01:32,009
Where is the resulting bzImage file?

34
00:01:32,009 --> 00:01:34,008
I think we showed you that.

35
00:01:34,008 --> 00:01:36,005
How big is it?

36
00:01:36,005 --> 00:01:39,006
Compare that size to the size

37
00:01:39,006 --> 00:01:46,003
of the /boot/vmlinuz- kernel version file.

38
00:01:46,003 --> 00:01:51,002
See if they're vastly different or pretty close to the same.

39
00:01:51,002 --> 00:01:53,009
And then you should have also had vmLinux built.

40
00:01:53,009 --> 00:01:54,007
Find that.

41
00:01:54,007 --> 00:01:55,008
How big is that?

42
00:01:55,008 --> 00:01:57,009
What kind of file is that?

43
00:01:57,009 --> 00:02:00,000
All right, those are some good challenges.

