LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 06-25-2013, 01:48 AM   #31
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705

Hi,

Quote:
Originally Posted by Angela Wu View Post
OK. let me try to do so, and after that I should have to do one thing, to copy for which files into my VTC 1000.
Is that vmlinuz-3.x , initrd.img-3.x, System.map-3.x abi-3.x config-3.x???
No, you should copy the linux-image-*.deb you created to the VTC1000 and then install it using dpkg.

Evo2.
 
Old 06-25-2013, 02:01 AM   #32
Angela Wu
Member
 
Registered: Jun 2013
Location: Taiwan
Posts: 99

Original Poster
Rep: Reputation: Disabled
Question

Quote:
Originally Posted by evo2 View Post
Hi,


No, you should copy the linux-image-*.deb you created to the VTC1000 and then install it using dpkg.

Evo2.
what should I use make command , is that
Code:
DEB_HOST_ARCH=i386 make-kpkg --arch i386
Could you specific more about the command
After that I should do
Code:
make modules install
      make install
I got confused!
 
Old 06-25-2013, 02:11 AM   #33
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,
Quote:
Originally Posted by Angela Wu View Post
Could you specific more about the command
After that I should do
Code:
make modules install
      make install
I got confused!
I have _never_ suggested that you do the above. I gave my recommended approach in post #10. Modified for cross compiling, and starting with some existing config it would be something like:
Code:
cd /usr/src
tar xjf linux-source-3.xx.tar.bz2
cd linux-source-3.xx
cp /from/somewhere/.config-foo .config
export DEB_HOST_ARCH=i386 
make oldconfig
make menuconfig
fakeroot make-kpkg clean
fakeroot make-kpkg --arch i386 --append-to-version="-vtc1000" --revision="1.0" --initrd kernel-image kernel-headers modules-image
Evo2.
 
Old 06-25-2013, 02:12 AM   #34
Angela Wu
Member
 
Registered: Jun 2013
Location: Taiwan
Posts: 99

Original Poster
Rep: Reputation: Disabled
Smile

Quote:
Originally Posted by evo2 View Post
Hi,

I have _never_ suggested that you do the above. I gave my recommended approach in post #10. Modified for cross compiling, and starting with some existing config it would be something like:
Code:
cd /usr/src
tar xjf linux-source-3.xx.tar.bz2
cd linux-source-3.xx
cp /from/somewhere/.config-foo .config
export DEB_HOST_ARCH=i386 
make oldconfig
make menuconfig
fakeroot make-kpkg clean
fakeroot make-kpkg --arch i386 --append-to-version="-vtc1000" --revision="1.0" --initrd kernel-image kernel-headers modules-image
Evo2.
OK. Thanks , I will test!
 
Old 06-25-2013, 02:30 AM   #35
Angela Wu
Member
 
Registered: Jun 2013
Location: Taiwan
Posts: 99

Original Poster
Rep: Reputation: Disabled
Question

Quote:
Originally Posted by evo2 View Post
Hi,


No, you should copy the linux-image-*.deb you created to the VTC1000 and then install it using dpkg.

Evo2.
I have done the code you metion above. and got noe *.deb file
see below
Code:
angela@ubuntu:~/linux-3.6.11/debian$ ls
changelog      docs                          ruleset
ChangeLog      examples                      scripts
config         files                         stamp
Config         linux-headers-3.6.11-vtc1000  substvars
control        linux-image-3.6.11-vtc1000    templates.in
Control        pkg                           templates.l10n
Control.bin86  po                            templates.master
control.dist   rules
Where can I find the *.deb file? Sorry for ask you again!
 
Old 06-25-2013, 02:37 AM   #36
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

If the compilation of the kernel worked the .deb files should be in your home directory?

Did you get any error messages?

Also, I highly recommend you read at least the first ~200 or so lines of /usr/share/doc/kernel-package/README.gz

Evo2.
 
Old 06-25-2013, 02:59 AM   #37
Angela Wu
Member
 
Registered: Jun 2013
Location: Taiwan
Posts: 99

Original Poster
Rep: Reputation: Disabled
Question I can't log in into new kernel

I think its .config problem. Because I had copy the above two *.deb.
And done dpkg command success. After reboot, the kernel isn't up!
 
Old 06-25-2013, 03:02 AM   #38
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,
Quote:
Originally Posted by Angela Wu View Post
I think its .config problem. Because I had copy the above two *.deb.
And done dpkg command success. After reboot, the kernel isn't up!
How long did the compilation take?

Were there any error messages during the compile or when installing the deb packages on the vtc1000?

Evo2.
 
Old 06-25-2013, 03:05 AM   #39
Angela Wu
Member
 
Registered: Jun 2013
Location: Taiwan
Posts: 99

Original Poster
Rep: Reputation: Disabled
Question

Quote:
Originally Posted by evo2 View Post
Hi,

How long did the compilation take?

Were there any error messages during the compile or when installing the deb packages on the vtc1000?

Evo2.
This compilation take for about 15 minustes(I guess).
There were not any error messages show , everything work well.
 
Old 06-25-2013, 03:06 AM   #40
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

what kernel is the vtc1000 currently running? In an earlier post I think you said you got your initial .config from a standards Ubuntu kernel. Is that the same kernel that the vtc100 is currently running?

Evo2.
 
Old 06-25-2013, 03:16 AM   #41
Angela Wu
Member
 
Registered: Jun 2013
Location: Taiwan
Posts: 99

Original Poster
Rep: Reputation: Disabled
Exclamation

Quote:
Originally Posted by evo2 View Post
Hi,

what kernel is the vtc1000 currently running? In an earlier post I think you said you got your initial .config from a standards Ubuntu kernel. Is that the same kernel that the vtc100 is currently running?

Evo2.
I used the kernel running in my personal PC. Which is Ubuntu 12.04 , kernel 3.6.11(Oh~ I think I take the previous compile well
kernel, because I successed done upgrade the kernel in my personal PC)
I think I got to reinstall the Ubuntu 12.04 and do it all again~ Because my kernel was change for so many times.
 
Old 06-25-2013, 03:18 AM   #42
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,
Quote:
Originally Posted by Angela Wu View Post
This compilation take for about 15 minustes(I guess).
Ok, that sounds about right, and about 20 times faster than doing it on the vtc1000 :-)

Quote:
There were not any error messages show , everything work well.
Ok, good.

Evo2.
 
Old 06-25-2013, 03:23 AM   #43
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,
Quote:
Originally Posted by Angela Wu View Post
I used the kernel running in my personal PC. Which is Ubuntu 12.04 , kernel 3.6.11(Oh~ I think I take the previous compile well
kernel, because I successed done upgrade the kernel in my personal PC)
I think I got to reinstall the Ubuntu 12.04 and do it all again~ Because my kernel was change for so many times.
Ok, but when you build a new kernel it is probably best to start with the config from working kernel on the machine that you are trying to build the new kernel for. Also, please don't do the "make install" or "make modules install" etc. Stick to building and installing the deb packages. This way you will be able keep your old kernels installed next to the new kernel.

Evo2.
 
Old 06-25-2013, 03:50 AM   #44
Angela Wu
Member
 
Registered: Jun 2013
Location: Taiwan
Posts: 99

Original Poster
Rep: Reputation: Disabled
Wink

Quote:
Originally Posted by evo2 View Post
Hi,

Ok, but when you build a new kernel it is probably best to start with the config from working kernel on the machine that you are trying to build the new kernel for. Also, please don't do the "make install" or "make modules install" etc. Stick to building and installing the deb packages. This way you will be able keep your old kernels installed next to the new kernel.

Evo2.
O.K.
 
Old 06-25-2013, 04:25 AM   #45
Angela Wu
Member
 
Registered: Jun 2013
Location: Taiwan
Posts: 99

Original Poster
Rep: Reputation: Disabled
Question The new kernel show in command line

I had done the
Code:
sudo dpkg -i linux*
And do reset, But the kernel didn't show in window instead of command shell.
When I type
Code:
ifconfig
it has no action. Is that my ethernet doesn't work???
 
  


Reply

Tags
kernel



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Backup of complete linux system eprabhat08 Linux - Newbie 5 02-05-2013 11:32 PM
Backup system ala rdiff-backup, but without mirror and with dst encryption dr_dex Linux - Software 0 08-04-2008 03:39 AM
How can I backup a linux system ? chu2654 Linux - General 6 11-16-2006 01:16 PM
backup for linux system in CF lbdgwgt Linux - Newbie 2 10-23-2006 06:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 06:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration