Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 25 Oct 2014, 03:06
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Installing to, booting from SATA in Puppy 1.0.4
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
danleff


Joined: 08 May 2005
Posts: 294
Location: Albany, NY

PostPosted: Sat 23 Jul 2005, 08:05    Post_subject:  Installing to, booting from SATA in Puppy 1.0.4  

I have currently been able to get my Puppy to see and mount my sata drive. Puppy is installed on an IDE drive.

I am attempting to get Puppy installed on the sata drive and to run from Grub.

The two modules that are needed for my system are;

libata
sata_sil

I currently have the modules loaded in /etc/rc.d/rc.local.

Puppy was able to do an install on a partition on my sata drive.

However, Puppy won't boot, apparently as the new install on the sata drive does not have the modules installed to run at boot.

So, I installed Vector Linux to do a kernel compile and followed the recompile instructions that Barry has...no problem. Found the sata_sil module during the kernel compile, but I can't find libata in the kernel tree, during the recompile. It should be in the scsi subdirectory when doing make menuconfig, but it seems nowhere to be found.

Anyone have an idea where libata is resident, so I can add it directly, not as a module during the kernel compile?

_________________
I love it when a plan comes together

--Hannibal Smith
Back to top
View user's profile Send_private_message Visit_website 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7047
Location: Perth, Western Australia

PostPosted: Sat 23 Jul 2005, 12:14    Post_subject:  

Running "modprobe -vn libata" in Vector reports:

Code:
/sbin/insmod /lib/modules/2.4.29/kernel/drivers/scsi/scsi_mod.o
/sbin/insmod /lib/modules/2.4.29/kernel/drivers/scsi/libata.o


For "modprobe -vn sata_sil":

Code:
/sbin/insmod /lib/modules/2.4.29/kernel/drivers/scsi/scsi_mod.o
/sbin/insmod /lib/modules/2.4.29/kernel/drivers/scsi/libata.o
/sbin/insmod /lib/modules/2.4.29/kernel/drivers/scsi/sata_sil.o


You don't have to recompile the kernel:
If you have Unleashed, just place the modules in
puppy-unleashed/kernels/2.4.29/modules/0base_modules-2.4.29/lib/modules/2.4.29/scsi/
and compress them with gzip.
and run createpuppy script to create a new image.gz.
... createpuppy will run depmod, so the new modules will be recognised.
Back to top
View user's profile Send_private_message Visit_website 
danleff


Joined: 08 May 2005
Posts: 294
Location: Albany, NY

PostPosted: Sat 23 Jul 2005, 18:06    Post_subject:  

Yep, this make more sense. The scsi_mod module is already there in Puppy Unleashed. I added libata and sata_sil.

I'm trying this out tonight and will report back.

_________________
I love it when a plan comes together

--Hannibal Smith
Back to top
View user's profile Send_private_message Visit_website 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7047
Location: Perth, Western Australia

PostPosted: Sat 23 Jul 2005, 20:31    Post_subject:  

I noticed there's a whole lot of sata_*.o modules, for example sata_via.o, so I guess if we are going to put sata support into Pup 1.0.5 then we would need all of those?

To boot off a sata drive... would you need a kernel parameter to load the sata module? ...or, would the kernel be able to do that automatically?
Back to top
View user's profile Send_private_message Visit_website 
danleff


Joined: 08 May 2005
Posts: 294
Location: Albany, NY

PostPosted: Sat 23 Jul 2005, 21:15    Post_subject:  

This is what I was trying to get at. I knew that my sata chipset was sil, so I was golden setting up my IDE install to recognize the sata drive and partitions.

VectorLinux (STC RC2) has sata support built into both the 2.6.12 and 2.4.29-sata kernel. Unfortunately, it uses Lilo, which I am a bit rusty at now. I made a boot floppy by hand and need to look at this a bit. Even though I set the root=/dev/sdax properly, it still try to load the 2.6.12 kernel on the VectorLinux partition.

I have Linspire's Grub booting multiple Linux distros, but ran into problems here, as It was installed before I had the sata drive on my system. It does not have the /boot/grub/device.lst file that I am used to using to define the drive locations. I also had to disable their utility, called jiffyboot, as it kept changing all my other distros in grub to boot as chainloader +1. Not good.

I made a Puppy Unleashed cd with the modules placed, as suggested. However, you still have to modprobe them (except scsi_mod, which is "built in" and loads at boot time).

Once I sort this all out, I will post the results. I just assumed that the modules had to be compiled directly into the kernel, not as modules.

_________________
I love it when a plan comes together

--Hannibal Smith
Back to top
View user's profile Send_private_message Visit_website 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7047
Location: Perth, Western Australia

PostPosted: Sun 24 Jul 2005, 08:46    Post_subject:  

it's annoying, the documentation supplied with the 2.4.29 kernel source has nothing about sata.

So, maybe you are right, you need to compile it into the kernel to be able to boot from a sata drive.
Back to top
View user's profile Send_private_message Visit_website 
danleff


Joined: 08 May 2005
Posts: 294
Location: Albany, NY

PostPosted: Mon 25 Jul 2005, 05:47    Post_subject:  

A little more information. I installed Fedora Core 4 with grub on a floppy.

I used Partimage to place my modified Puppy 1.0.4 install (from an image) on the sata drive, the one that had libata and sata_sil in /etc/rc.d/rc.local.

Modified Puppy's /etc/fstab to reflect root as sda5

Modified grub and tried to boot.

Kernel panic with a message that the kernel cannot open device ... sda5 is not a valid partition, to append root= to a valid partition.

The other Vector lilo boot floppy, of course, has the Vector (sata) kernel on the floppy. It booted Puppy on the sata drive, but failed to load the modules. It obviously was looking for the kernel 2.6.12 modules for Vector.

I'll keep looking and post any success.

_________________
I love it when a plan comes together

--Hannibal Smith
Back to top
View user's profile Send_private_message Visit_website 
danleff


Joined: 08 May 2005
Posts: 294
Location: Albany, NY

PostPosted: Sun 31 Jul 2005, 17:30    Post_subject:  

I'm still working on this. I have beem able to re-compile the kernel from within Puppy 1.0.5a and get Puppy (with the recompiled kernel) to see the sata drives (dmesg), but lsmod still shows the modules being loaded, apparently through rc.modules and/or rc.sysinit and probepart and fdisk fails and hangs in the terminal window with the recompiled kernel. My regular vmlinux (Puppy stock) with the modules loaded manaully works fine.

I also need to figure out why grub will not boot the sata drive.

I'll post and success with this.

_________________
I love it when a plan comes together

--Hannibal Smith
Back to top
View user's profile Send_private_message Visit_website 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0609s ][ Queries: 11 (0.0070s) ][ GZIP on ]