openSUSE Forums > Install/Boot/Login » Update/Compile my Kernel after changing param.h file

Go Back   openSUSE Forums > Install/Boot/Login
Forums FAQ Members List Search Today's Posts Mark Forums Read


Install/Boot/Login Questions about installation, login, boot issues, partitioning, file systems, software that runs at boot (GRUB, LILO, boot scripts)

Reply
Page 3 of 4 12 3 4
 
LinkBack Thread Tools Display Modes
  #21 (permalink)  
Old 20-Sep-2009, 09:12
microchip8's Avatar
Shaman Penguin
 
Join Date: Jun 2008
Location: /dev/belgium
Posts: 2,179
microchip8 is a reputation jewel in the roughmicrochip8 is a reputation jewel in the roughmicrochip8 is a reputation jewel in the roughmicrochip8 is a reputation jewel in the roughmicrochip8 is a reputation jewel in the rough
Default Re: Update/Compile my Kernel after changing param.h file

I see in your pevious post that there's an X connection refusal which usually means that there's no authorization. To allow all clients to connect to X from any host, type: xhost +

for the colors, either type 'dircolors' or 'echo $LS_COLORS' (without quotes), they don't specifically mean anything but are used to distinguish between different file types
__________________
My site: http://microchip.bplaced.net
My repo: http://download.opensuse.org/repositories/home:/microchip8
SUSE Unbound Forum: http://suseunbound.lefora.com


Do coders dream of sheep() ?
Reply With Quote
  #22 (permalink)  
Old 20-Sep-2009, 09:43
BenderBendingRodriguez's Avatar
Wise Penguin
 
Join Date: Jun 2008
Posts: 1,655
BenderBendingRodriguez hasn't been rated much yet
Default Re: Update/Compile my Kernel after changing param.h file

It is best for you to COPY the actual kernel sources to a new folder in /usr/src/<whatever-you-name-your-copy>, there work on this kernel keeping the "safe" default kernel intact. You modify the copy (don't forget to change it's local name or something, it CANNOT be named the same as your actual kernel or you will have troubles, that option is somewhere at the beginning)

compile with make, make modules_install, make install,

(i skipped the make xconfig part as you already know how to do that). After that you need to create a symlink to your new sources with

ln -s /usr/src/<whatever-you-name-your-copy> /usr/src/linux

And voila. You're done.
__________________
How does a linux geek make love??

- unzip; strip; touch; finger; mount; fsck; more; yes; umount; sleep;
Reply With Quote
  #23 (permalink)  
Old 20-Sep-2009, 09:52
microchip8's Avatar
Shaman Penguin
 
Join Date: Jun 2008
Location: /dev/belgium
Posts: 2,179
microchip8 is a reputation jewel in the roughmicrochip8 is a reputation jewel in the roughmicrochip8 is a reputation jewel in the roughmicrochip8 is a reputation jewel in the roughmicrochip8 is a reputation jewel in the rough
Default Re: Update/Compile my Kernel after changing param.h file

And whay are you repeating essentially the same thing what I said? Also he already compiled his kernel following my instructions and is up and running, including VMWare and the NV driver
__________________
My site: http://microchip.bplaced.net
My repo: http://download.opensuse.org/repositories/home:/microchip8
SUSE Unbound Forum: http://suseunbound.lefora.com


Do coders dream of sheep() ?
Reply With Quote
  #24 (permalink)  
Old 20-Sep-2009, 10:10
BenderBendingRodriguez's Avatar
Wise Penguin
 
Join Date: Jun 2008
Posts: 1,655
BenderBendingRodriguez hasn't been rated much yet
Default Re: Update/Compile my Kernel after changing param.h file

He may be up and running but you didn't teach him to keep the "working" kernel and kernel-source intact, what you propose is to modify the original kernel source what may wreak havoc in the system if he wanted to compile something or install nVidia drivers.
__________________
How does a linux geek make love??

- unzip; strip; touch; finger; mount; fsck; more; yes; umount; sleep;
Reply With Quote
  #25 (permalink)  
Old 20-Sep-2009, 10:41
microchip8's Avatar
Shaman Penguin
 
Join Date: Jun 2008
Location: /dev/belgium
Posts: 2,179
microchip8 is a reputation jewel in the roughmicrochip8 is a reputation jewel in the roughmicrochip8 is a reputation jewel in the roughmicrochip8 is a reputation jewel in the roughmicrochip8 is a reputation jewel in the rough
Default Re: Update/Compile my Kernel after changing param.h file

I already told him to change the local version in order not to overwrite existing kernel, thus keeping the default intact. As for kernel sources, it won't break anything since the values in the param.h are there to be tuned if needed
__________________
My site: http://microchip.bplaced.net
My repo: http://download.opensuse.org/repositories/home:/microchip8
SUSE Unbound Forum: http://suseunbound.lefora.com


Do coders dream of sheep() ?
Reply With Quote
  #26 (permalink)  
Old 20-Sep-2009, 10:46
BenderBendingRodriguez's Avatar
Wise Penguin
 
Join Date: Jun 2008
Posts: 1,655
BenderBendingRodriguez hasn't been rated much yet
Default Re: Update/Compile my Kernel after changing param.h file

It is fine if he will keep only the compiled kernel, but if he ever tries to compile something using the default kernel with modified kernel-sources then he may be in trouble. Anyway it's fine now that he resolved his issues
__________________
How does a linux geek make love??

- unzip; strip; touch; finger; mount; fsck; more; yes; umount; sleep;
Reply With Quote
  #27 (permalink)  
Old 20-Sep-2009, 10:53
microchip8's Avatar
Shaman Penguin
 
Join Date: Jun 2008
Location: /dev/belgium
Posts: 2,179
microchip8 is a reputation jewel in the roughmicrochip8 is a reputation jewel in the roughmicrochip8 is a reputation jewel in the roughmicrochip8 is a reputation jewel in the roughmicrochip8 is a reputation jewel in the rough
Default Re: Update/Compile my Kernel after changing param.h file

Yes, i should have said to back up the original source but it can the reverted pretty easy. Change back the values in param.h to defaults, copy /boot/config-<original-kernel-version> to /usr/src/linux/.config and then make prepare and make modules_preapre

The changes he did are very small so they are easily reveted
__________________
My site: http://microchip.bplaced.net
My repo: http://download.opensuse.org/repositories/home:/microchip8
SUSE Unbound Forum: http://suseunbound.lefora.com


Do coders dream of sheep() ?
Reply With Quote
  #28 (permalink)  
Old 20-Sep-2009, 19:15
bobcal2000's Avatar
Puzzled Penguin
 
Join Date: Jun 2009
Location: NJ - USA
Posts: 46
bobcal2000 hasn't been rated much yet
Default Re: Update/Compile my Kernel after changing param.h file

No fighting! Please. Both of you helped me a lot!

I understand what is going on now. Now when I read the book I understand what they are talking about.

I will not be making big changes to the kernel's source code, but I do understand keeping the original code safe.

One last question and we can put this thread to bed.

QUESTION: Why did I receive warning during the compile? Are they normal? What should I be looking for next time?

Again Thank you both!
__________________
Bobby
openSUSE Very Dangerous Novice User
Reply With Quote
  #29 (permalink)  
Old 20-Sep-2009, 19:32
BenderBendingRodriguez's Avatar
Wise Penguin
 
Join Date: Jun 2008
Posts: 1,655
BenderBendingRodriguez hasn't been rated much yet
Default Re: Update/Compile my Kernel after changing param.h file

They are compilator warnings i guess. Next time you may look to slim your kernel down by not compiling unnecessary stuff You can cut off compile time and with some modules boot time making some modules built in, for example set a sound module to have it built in, you can check hat you need by using lsmod and looking what is loaded and this way you can trim your kernel down. When i compile my kernel i get rid of LOTS of stuff, unnecessary sound modules, video drivers, cifs and nfs, unnecessary filesystems, or partition tables (there are many for unix etc.) Just don't compile what you don't use
__________________
How does a linux geek make love??

- unzip; strip; touch; finger; mount; fsck; more; yes; umount; sleep;
Reply With Quote
  #30 (permalink)  
Old 21-Sep-2009, 19:03
bobcal2000's Avatar
Puzzled Penguin
 
Join Date: Jun 2009
Location: NJ - USA
Posts: 46
bobcal2000 hasn't been rated much yet
Default Re: Update/Compile my Kernel after changing param.h file

I would like to do this! But before that. I need to Learn how to load and use Samba.

Any documents to that explain "how not to compile stuff I don't need" would be great!

Also, if Samba is part of the OpenSUSE distro how come I can configure it with YaST be the files are not in /usr/local/samba-3... ?
__________________
Bobby
openSUSE Very Dangerous Novice User
Reply With Quote
Reply
Page 3 of 4 12 3 4

Bookmarks

Tags
install, make, recompile kernel, update


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2