Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Enforced motherboard replacement, chroot and kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
ianw
n00b
n00b


Joined: 05 Oct 2005
Posts: 9

PostPosted: Tue Feb 21, 2006 12:31 pm    Post subject: Enforced motherboard replacement, chroot and kernel Reply with quote

A dodgy power supply has killed my motherboard, so I'm having to replace it. As a complete newbie in this area, having not had hardware fail on me like this before, was wondering what this means for the Gentoo installation I have - an AMD64 setup if it make any difference. The new mobo has a different chipset, which I guess is bound to affect it, but nothing else hardware-wise is changing bar the addition of some more RAM. Is it then just a case of a few kernel changes to get the system working again - and how do I go about doing it? Really don't want to have to do a full re-install.

Thanks in advance!


Last edited by ianw on Fri Feb 24, 2006 1:22 am; edited 1 time in total
Back to top
View user's profile Send private message
oKtosiTe
Tux's lil' helper
Tux's lil' helper


Joined: 15 Aug 2005
Posts: 122
Location: Halmstad, Sweden

PostPosted: Tue Feb 21, 2006 12:38 pm    Post subject: Reply with quote

If the processor architecture stays the same, it shouldn't be a real problem, especially if you're using a genkernel.
_________________
Ask Ubuntu | Super User
Back to top
View user's profile Send private message
ianw
n00b
n00b


Joined: 05 Oct 2005
Posts: 9

PostPosted: Tue Feb 21, 2006 12:47 pm    Post subject: Reply with quote

Don't think I'm using genkernel though - a friend helped me set the system up and I recall him saying it hadn't been done that way... Is this going to be a problem?
Back to top
View user's profile Send private message
longship
Apprentice
Apprentice


Joined: 04 Jun 2005
Posts: 294
Location: Ontario, CA USA

PostPosted: Tue Feb 21, 2006 11:31 pm    Post subject: Reply with quote

ianw wrote:
Don't think I'm using genkernel though - a friend helped me set the system up and I recall him saying it hadn't been done that way... Is this going to be a problem?


Yes, You're going to have to boot a LiveCD and chroot to your installation (per installation instructions).

Then, you'll have to compile a kernel for the new mobo. Install it in Grub. Then, you should be okay.

[Edit] Ooops! CHROOT, not CHMOD.... Stoopid me.
_________________
AMD 64 X2 4400+, ASUS A8N-Sli Premium + Lian Li PC-V1000A Plus
AMD Duron 800, ABit KT7E, junk case
VIA C3-Nehemiah, VIA EPIA MII12000 + Scythe e-Otonashi fanless case


Last edited by longship on Wed Feb 22, 2006 6:21 am; edited 2 times in total
Back to top
View user's profile Send private message
jballou
Tux's lil' helper
Tux's lil' helper


Joined: 10 Mar 2005
Posts: 128
Location: Baghdad, Iraq

PostPosted: Wed Feb 22, 2006 5:43 am    Post subject: Reply with quote

You might be OK. I upgraded from a VIA chipset on my AMD 64 3400+ to an NForce 4 based Asus board with an Opteron dual-core. Even with the chipset change, and the dual core, it booted the old kernel fine. Of course I recompiled it later, I just wanted to see if it'd work. If the chipsets aren't vastly different, you should be OK for booting proper. Now, if you have onboard sound, LAN, etc. then you will naturally have to change your kernel to reflect these changes in the drivers. If you want to avoid the guesswork, do the livecd (and it's chroot, not chmod :)) and use the output of the lspci command to see what drivers you need to put in.
_________________
-Shuttle SN25P, Opteron 185, 74Gb WD Raptor, 2x 300Gb Barracuda 7200.9, 2x 1Gb Corsair dual channel, BFG GeForce 7800GT
-Asus Z7100 laptop, P-M 2.13, 2Gb DDR, 100Gb 7200RPM HDD, 128Mb GeForce 6600 Go.
Back to top
View user's profile Send private message
ianw
n00b
n00b


Joined: 05 Oct 2005
Posts: 9

PostPosted: Fri Feb 24, 2006 1:22 am    Post subject: Reply with quote

Ok, so the box is back. The chipset has changed from a VIA K8VT800 to a ULi M1689 and the kernel doesn't like it - the boot stops. Tried to boot off the LiveCD I used for installation in the first place, manage to get eth0 up and running but I don't think the SATA drive is detected properly - have also tried doscsi at boot prompt but it seemed to hang at loading sata_sis

some output from lspci

Code:
Unknown mass storage controller: ALi Corporation: Unknown device 5289 (rev 10)


I think the relevant modprobe is sata_uli but it can't find that module - might need a newer LiveCD? The one I have is kernel 2.6.9-r1 if that's relevant. Once I have the SATA drive, I also have no idea of how to chroot in - is the guide at http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?part=1&chap=6 what I'm after? Tried to do this before realising the sata drive wasn't there and it couldn't find a mount point

would appreciate any advice of how to proceed with this - Thanks!!
Back to top
View user's profile Send private message
longship
Apprentice
Apprentice


Joined: 04 Jun 2005
Posts: 294
Location: Ontario, CA USA

PostPosted: Fri Feb 24, 2006 3:17 am    Post subject: Reply with quote

ianw wrote:
Ok, so the box is back. The chipset has changed from a VIA K8VT800 to a ULi M1689 and the kernel doesn't like it - the boot stops. Tried to boot off the LiveCD I used for installation in the first place, manage to get eth0 up and running but I don't think the SATA drive is detected properly - have also tried doscsi at boot prompt but it seemed to hang at loading sata_sis

some output from lspci

Code:
Unknown mass storage controller: ALi Corporation: Unknown device 5289 (rev 10)


I think the relevant modprobe is sata_uli but it can't find that module - might need a newer LiveCD? The one I have is kernel 2.6.9-r1 if that's relevant. Once I have the SATA drive, I also have no idea of how to chroot in - is the guide at http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?part=1&chap=6 what I'm after? Tried to do this before realising the sata drive wasn't there and it couldn't find a mount point

would appreciate any advice of how to proceed with this - Thanks!!


Yes, you can skip the mirrorselect part since you already had a working Gentoo system on the old MoBo.

Follow the steps right after that.

You won't want to do the emerge --sync yet, either, so stop there.

Then go to your existing kernel tree and do your custom compile. You should be okay with compiling the kernel as long as your CFLAGS are good for the new MoBo/CPU combo. If this was a stage3, you should be golden with the tools.

Build the new kernel and do a make modules_install. You may have to change /etc/modules.autoload.d/kernel-x.x file and/or /etc/modules.d/*, etc. per instructions.

Don't forget to review your init scripts (run "rc-update show") to see if there's something there related to your previous MoBo. There shouldn't be, but it won't hurt to check.

Install the kernel into Grub and attempt a reboot. If that doesn't work you'll have to reboot from the LiveCD, do the chroot deal, and try again.

Once you have it booting you can evaluate whether you need to change your make.conf, update your system, etc.

Good luck.
_________________
AMD 64 X2 4400+, ASUS A8N-Sli Premium + Lian Li PC-V1000A Plus
AMD Duron 800, ABit KT7E, junk case
VIA C3-Nehemiah, VIA EPIA MII12000 + Scythe e-Otonashi fanless case
Back to top
View user's profile Send private message
ianw
n00b
n00b


Joined: 05 Oct 2005
Posts: 9

PostPosted: Fri Feb 24, 2006 11:02 am    Post subject: Reply with quote

Still not picking up the SATA drive from the LiveCD - obviously there isn't ULi SATA support on kernel 2.6.9? The Gentoo handbook doesn't seem to have that much information on how to deal with SATA drives. My major problem at the moment is simply how do I access my SATA drive???? Everything should be OK after that...

On that theme, is there a listing anywhere of all the modules you can modprobe? And a list of the hardware supported by each kernel version?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum