public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Problems in kernel migration from 2.4 to 2.6
@ 2005-10-14 14:22 Márcio Oliveira
  2005-10-14 17:41 ` Steven Rostedt
  0 siblings, 1 reply; 5+ messages in thread
From: Márcio Oliveira @ 2005-10-14 14:22 UTC (permalink / raw)
  To: linux-kernel, moliveira

Hi there!

  I am migrating my linux laptop from a kernel 2.4.27-2  to a 2.6.12.6
one. Since I compiled the 2.6.12.6 kernel and booted my laptop, I am
receiving the following message when chose the 2.6.12.6 entry in the
grub menu:

mount: mount point dev does not exist
pivot_root: No such file or directory
/sbin/init: 432: cannot open dev/console: No such file
Kernel panic - not syncing: Attempted to kill init!

   But when I chose the 2.4.27 entry in the grub meno, my laptop boots ok!

   My laptop is running Debian Sarge 3.1a,  kernel 2.4.27-2 (that it is
booting ok) and kernel 2.4.6.12.6 (kernel.org kernel).  I compiled the
2.6.12.6 kernel with all needed modules (sata disk, ext3 ... including
devfs support), maked a initrd image with the necessary modules to mount
the / partition (sata modules, file system modules...) and changed the
disks names in the /etc/fstab from hda to sda (as it is recognized at
2.6.12.6 kernel bootup process). The laptop model is IBM Thinkpad T43.

Any ideia? Anybody knows why it is happen?

Thanks in advice.
Márcio Oliveira.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problems in kernel migration from 2.4 to 2.6
  2005-10-14 14:22 Problems in kernel migration from 2.4 to 2.6 Márcio Oliveira
@ 2005-10-14 17:41 ` Steven Rostedt
  2005-10-14 17:46   ` Problems in kernel migration from 2.4 to 2.6+ Randy.Dunlap
  0 siblings, 1 reply; 5+ messages in thread
From: Steven Rostedt @ 2005-10-14 17:41 UTC (permalink / raw)
  To: Márcio Oliveira; +Cc: linux-kernel, moliveira

On Fri, 14 Oct 2005, Márcio Oliveira wrote:

> Hi there!
>
>   I am migrating my linux laptop from a kernel 2.4.27-2  to a 2.6.12.6
> one. Since I compiled the 2.6.12.6 kernel and booted my laptop, I am
> receiving the following message when chose the 2.6.12.6 entry in the
> grub menu:
>
> mount: mount point dev does not exist
> pivot_root: No such file or directory
> /sbin/init: 432: cannot open dev/console: No such file
> Kernel panic - not syncing: Attempted to kill init!
>
>    But when I chose the 2.4.27 entry in the grub meno, my laptop boots ok!
>
>    My laptop is running Debian Sarge 3.1a,  kernel 2.4.27-2 (that it is
> booting ok) and kernel 2.4.6.12.6 (kernel.org kernel).  I compiled the
> 2.6.12.6 kernel with all needed modules (sata disk, ext3 ... including
> devfs support), maked a initrd image with the necessary modules to mount
> the / partition (sata modules, file system modules...) and changed the
> disks names in the /etc/fstab from hda to sda (as it is recognized at
> 2.6.12.6 kernel bootup process). The laptop model is IBM Thinkpad T43.

That hda to sda looks funny.  I didn't know the T43 has a SCSI (which I'm
pretty sure it doesn't).

>
> Any ideia? Anybody knows why it is happen?
>
Are you sure the initrd was correctly made. That pivot_root seems to
suggest that it wasn't.  You're using Debian. When I went from 2.4 to 2.6
I just used aptitude (or apt-get) to get the 2.6 kernel first, and let the
package manager make all the necessary changes for me.  I also usually
don't use an initrd and just compile in the drivers for my ide and
filesystems.

-- Steve


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problems in kernel migration from 2.4 to 2.6+
  2005-10-14 17:41 ` Steven Rostedt
@ 2005-10-14 17:46   ` Randy.Dunlap
  2005-10-14 18:24     ` Márcio Oliveira
  0 siblings, 1 reply; 5+ messages in thread
From: Randy.Dunlap @ 2005-10-14 17:46 UTC (permalink / raw)
  To: Steven Rostedt; +Cc: Márcio Oliveira, linux-kernel, moliveira

On Fri, 14 Oct 2005, Steven Rostedt wrote:

> On Fri, 14 Oct 2005, Márcio Oliveira wrote:
>
> > Hi there!
> >
> >   I am migrating my linux laptop from a kernel 2.4.27-2  to a 2.6.12.6
> > one. Since I compiled the 2.6.12.6 kernel and booted my laptop, I am
> > receiving the following message when chose the 2.6.12.6 entry in the
> > grub menu:
> >
> > mount: mount point dev does not exist
> > pivot_root: No such file or directory
> > /sbin/init: 432: cannot open dev/console: No such file
> > Kernel panic - not syncing: Attempted to kill init!
> >
> >    But when I chose the 2.4.27 entry in the grub meno, my laptop boots ok!
> >
> >    My laptop is running Debian Sarge 3.1a,  kernel 2.4.27-2 (that it is
> > booting ok) and kernel 2.4.6.12.6 (kernel.org kernel).  I compiled the
> > 2.6.12.6 kernel with all needed modules (sata disk, ext3 ... including
> > devfs support), maked a initrd image with the necessary modules to mount
> > the / partition (sata modules, file system modules...) and changed the
> > disks names in the /etc/fstab from hda to sda (as it is recognized at
> > 2.6.12.6 kernel bootup process). The laptop model is IBM Thinkpad T43.
>
> That hda to sda looks funny.  I didn't know the T43 has a SCSI (which I'm
> pretty sure it doesn't).

It may have SATA, which would show up as sda.

Do you have all of the necessary SATA drivers and sd.o (sd.ko
if modules) present?

> > Any ideia? Anybody knows why it is happen?
> >
> Are you sure the initrd was correctly made. That pivot_root seems to
> suggest that it wasn't.  You're using Debian. When I went from 2.4 to 2.6
> I just used aptitude (or apt-get) to get the 2.6 kernel first, and let the
> package manager make all the necessary changes for me.  I also usually
> don't use an initrd and just compile in the drivers for my ide and
> filesystems.

-- 
~Randy

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problems in kernel migration from 2.4 to 2.6+
  2005-10-14 17:46   ` Problems in kernel migration from 2.4 to 2.6+ Randy.Dunlap
@ 2005-10-14 18:24     ` Márcio Oliveira
  2005-10-14 18:31       ` Randy.Dunlap
  0 siblings, 1 reply; 5+ messages in thread
From: Márcio Oliveira @ 2005-10-14 18:24 UTC (permalink / raw)
  To: Randy.Dunlap; +Cc: Steven Rostedt, linux-kernel, moliveira

Randy.Dunlap wrote:

>On Fri, 14 Oct 2005, Steven Rostedt wrote:
>
>  
>
>>On Fri, 14 Oct 2005, Márcio Oliveira wrote:
>>
>>    
>>
>>>Hi there!
>>>
>>>  I am migrating my linux laptop from a kernel 2.4.27-2  to a 2.6.12.6
>>>one. Since I compiled the 2.6.12.6 kernel and booted my laptop, I am
>>>receiving the following message when chose the 2.6.12.6 entry in the
>>>grub menu:
>>>
>>>mount: mount point dev does not exist
>>>pivot_root: No such file or directory
>>>/sbin/init: 432: cannot open dev/console: No such file
>>>Kernel panic - not syncing: Attempted to kill init!
>>>
>>>   But when I chose the 2.4.27 entry in the grub meno, my laptop boots ok!
>>>
>>>   My laptop is running Debian Sarge 3.1a,  kernel 2.4.27-2 (that it is
>>>booting ok) and kernel 2.4.6.12.6 (kernel.org kernel).  I compiled the
>>>2.6.12.6 kernel with all needed modules (sata disk, ext3 ... including
>>>devfs support), maked a initrd image with the necessary modules to mount
>>>the / partition (sata modules, file system modules...) and changed the
>>>disks names in the /etc/fstab from hda to sda (as it is recognized at
>>>2.6.12.6 kernel bootup process). The laptop model is IBM Thinkpad T43.
>>>      
>>>
>>That hda to sda looks funny.  I didn't know the T43 has a SCSI (which I'm
>>pretty sure it doesn't).
>>    
>>
>
>It may have SATA, which would show up as sda.
>  
>

yeah, my laptop has SATA disks and it is recognized as  a sda disk...

>Do you have all of the necessary SATA drivers and sd.o (sd.ko
>if modules) present?
>  
>

I think I do.  The SATA controller is recognized at the boot time and 
the driver loaded is ata_piix, the boot process messages also shows the 
partiotion table.

All modules dependences are in the initrd file (scsi_mod, libata, 
sd_mod) and the initrd file has the /dev/console device. The laptop 
kernel doesn't have the "sd.ko" module, I think in my case the module sd 
is the sd_mod, right?

>  
>
>>>Any ideia? Anybody knows why it is happen?
>>>
>>>      
>>>
>>Are you sure the initrd was correctly made. That pivot_root seems to
>>suggest that it wasn't.  You're using Debian. When I went from 2.4 to 2.6
>>I just used aptitude (or apt-get) to get the 2.6 kernel first, and let the
>>package manager make all the necessary changes for me.  I also usually
>>don't use an initrd and just compile in the drivers for my ide and
>>filesystems.
>>    
>>

I got the sarge official kernel package with all dependences (via 
apt-get), installed it and the new kernel has the same problem that the 
manualy compiled one has!

Any ideias?




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problems in kernel migration from 2.4 to 2.6+
  2005-10-14 18:24     ` Márcio Oliveira
@ 2005-10-14 18:31       ` Randy.Dunlap
  0 siblings, 0 replies; 5+ messages in thread
From: Randy.Dunlap @ 2005-10-14 18:31 UTC (permalink / raw)
  To: Márcio Oliveira
  Cc: Randy.Dunlap, Steven Rostedt, linux-kernel, moliveira

On Fri, 14 Oct 2005, Márcio Oliveira wrote:

> Randy.Dunlap wrote:
>
> >On Fri, 14 Oct 2005, Steven Rostedt wrote:
> >
> >
> >
> >>On Fri, 14 Oct 2005, Márcio Oliveira wrote:
> >>
> >>
> >>
> >>>Hi there!
> >>>
> >>>  I am migrating my linux laptop from a kernel 2.4.27-2  to a 2.6.12.6
> >>>one. Since I compiled the 2.6.12.6 kernel and booted my laptop, I am
> >>>receiving the following message when chose the 2.6.12.6 entry in the
> >>>grub menu:
> >>>
> >>>mount: mount point dev does not exist
> >>>pivot_root: No such file or directory
> >>>/sbin/init: 432: cannot open dev/console: No such file
> >>>Kernel panic - not syncing: Attempted to kill init!
> >>>
> >>>   But when I chose the 2.4.27 entry in the grub meno, my laptop boots ok!
> >>>
> >>>   My laptop is running Debian Sarge 3.1a,  kernel 2.4.27-2 (that it is
> >>>booting ok) and kernel 2.4.6.12.6 (kernel.org kernel).  I compiled the
> >>>2.6.12.6 kernel with all needed modules (sata disk, ext3 ... including
> >>>devfs support), maked a initrd image with the necessary modules to mount
> >>>the / partition (sata modules, file system modules...) and changed the
> >>>disks names in the /etc/fstab from hda to sda (as it is recognized at
> >>>2.6.12.6 kernel bootup process). The laptop model is IBM Thinkpad T43.
> >>>
> >>>
> >>That hda to sda looks funny.  I didn't know the T43 has a SCSI (which I'm
> >>pretty sure it doesn't).
> >>
> >>
> >
> >It may have SATA, which would show up as sda.
> >
> >
>
> yeah, my laptop has SATA disks and it is recognized as  a sda disk...
>
> >Do you have all of the necessary SATA drivers and sd.o (sd.ko
> >if modules) present?
> >
> >
>
> I think I do.  The SATA controller is recognized at the boot time and
> the driver loaded is ata_piix, the boot process messages also shows the
> partiotion table.

I think that you need the ahci driver for SATA (if ata_piix is
applicable to your hardware, i.e., ICH-something).
That is, if you are using it in SATA mode and not PATA
emulation mode (in BIOS setup somewhere usually).

> All modules dependences are in the initrd file (scsi_mod, libata,
> sd_mod) and the initrd file has the /dev/console device. The laptop
> kernel doesn't have the "sd.ko" module, I think in my case the module sd
> is the sd_mod, right?

That's right.

> >
> >
> >>>Any ideia? Anybody knows why it is happen?
> >>>
> >>>
> >>>
> >>Are you sure the initrd was correctly made. That pivot_root seems to
> >>suggest that it wasn't.  You're using Debian. When I went from 2.4 to 2.6
> >>I just used aptitude (or apt-get) to get the 2.6 kernel first, and let the
> >>package manager make all the necessary changes for me.  I also usually
> >>don't use an initrd and just compile in the drivers for my ide and
> >>filesystems.
> >>
> >>
>
> I got the sarge official kernel package with all dependences (via
> apt-get), installed it and the new kernel has the same problem that the
> manualy compiled one has!
>
> Any ideias?

-- 
~Randy

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-10-14 18:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-14 14:22 Problems in kernel migration from 2.4 to 2.6 Márcio Oliveira
2005-10-14 17:41 ` Steven Rostedt
2005-10-14 17:46   ` Problems in kernel migration from 2.4 to 2.6+ Randy.Dunlap
2005-10-14 18:24     ` Márcio Oliveira
2005-10-14 18:31       ` Randy.Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox