473,322 Members | 1,755 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Kernel Compilation

1,059 1GB
I have followed the steps below according to a book:

Edited init/main.c as below:
Expand|Select|Wrap|Line Numbers
  1. asmlinkage void __init start_kernel(void)
  2. {
  3.  ..............
  4.  ..............
  5.  //this line is added right after variable declaration 
  6.  printk("Penguins are Cute, But so are polar bears\n");
  7.  ............
  8.  ............
  9. }
  10.  
Expand|Select|Wrap|Line Numbers
  1. bash>cd /usr/src/linux-x.y.z/
  2. bash>make clean
  3. #bash>make menuconfig//i have skipped this part
  4. //instead i have done this
  5. bash>cp .config.old .config
  6. bash>make bzImage
  7. bash>cp arch/x86/boot/bzImage /boot/vmlinuz
  8.  
Then I have edited the /boot/grub/menu.lst file. as below:

Expand|Select|Wrap|Line Numbers
  1. title openSUSE 11.0 - 2.6.25.5-1.1
  2. root(hd0,1)
  3. kernel /boot/vmlinuz root=/dev/disk/by-id/scsi-SATA_VBOX_HARDDISK_VB72b5415f-0465leee-part2 resume=/devsda1 splash=silent showopts
  4. initrd /boo/initrd-2.6.25.5.1.1-default
  5.  
After that I have rebooted the OS. According to book suggestion I was suppose to see my added line in the beginning of the boot sequence

But all I have found is, I cant connect to internet anymore from that. What am I missing?

I am using this on VirtualBox.

Best Regards,
johny
Sep 7 '10 #1
3 1433
Oralloy
985 Expert 512MB
Johnny,

Have you tried the very simplest build - which is to change nothing at all?

That way you will at least know if your build process is working correctly, and that you've made no perturbations in the kernel that disable your networking (or other system behaviour).

You're a smart guy, and just like me, you tend to consider the basic baby steps as avoidable. Apparently this is one of those instances when it's not.

Also - just a thought - are you building the same kernel version as you were running with? If there's a version mismatch, some of the higher level driver code may not work correctly.

Luck!
Oralloy
Sep 7 '10 #2
johny10151981
1,059 1GB
I am using the same version of kernel that I have found on SUSE disk(linux-2.6.25.5-1.1).

I am trying to do the simplest compilation, so that my os can run with minimum feature(video card, sound card, Network support, USB Support). But During
bash>make bzImage it ask about lots of driver installation. In some case I dont even understand what to do...

So, if I can get a suggestion on simplest compilation, it will be great for me to understand what needed to be done.
Sep 7 '10 #3
Oralloy
985 Expert 512MB
Johny,

Take the other tack. Compile everyting in, and see if your system works properly that way.

Then you can start eliminating bits until you have a minimal kernel, assuming that's what you truly need (or want).

Luck!
Sep 7 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Steven T. Hatton | last post by:
http://netlab.ru.is/exception/LinuxCXX.shtml We have implemented a complete kernel level run-time support for C++ in the Linux kernel. In particular our run-time support enables the full use of...
2
by: Rick | last post by:
Does anyone have any recommendations for setting kernel.shmmax and/or some of the other kernel parms that affect DB2, on a system that has 24-32GB of RAM available? I am also looking for a good...
12
by: Jean-Marc Blaise | last post by:
Hi, Is it worth to use 64-bit DB2 instances on a 32-bit kernel, in terms of: - performance - configuration (go beyond the 256 Mb segment for private mem, 1.75 Gb for Bufferpools) - other ? ...
50
by: Romeo Colacitti | last post by:
Is the C library of most OSes (i.e, unix type OSes) implemented at the very low kernel or just outside kernel level? Looking through the source tree of Linux/BSDs it seems like the C library is...
8
by: David | last post by:
Hi, I am using header file for driver so Can I define macro to call Kernel function ? What are the generatl rules for defining macro. - David
8
by: db2_d_b_a | last post by:
Hello All, Brief info on the system: Db2 version : "DB2 v8.1.0.121" and FixPak "13". OS : RHEL 3 2.4.21-37.0.1 Memory : 8 GB Swap : 2 GB The issue here is the instance not being able to...
1
by: venumadhavb4u | last post by:
Hi, I am new to linux environment, and I would like to know if i can compile the kernel (2.6.14) downloaded from www.denx.de on a PC with linux 2.4 kernel. Thanks in Advance, Madhav
7
by: antoine | last post by:
Hi all! I'm a French student currently doing an internship in Beijing. I have to simulate a mips machine running with the micro kernel l4. When i compile the kernel i got some compilation errors. I...
20
by: Jimmy | last post by:
Hi to all python now has grown to a versatile language that can accomplish tasks for many different purposes. However, AFAIK, little is known about its ability of kernel coding. So I am...
82
by: raashid bhatt | last post by:
is there any standards that tell us how c code has to be compiled into machine code
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.