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 Thu 27 Aug 2015, 17:20
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
Booting Puppy 2.01 from USB via PCMCIA USB2 adapter card
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [9 Posts]  
Author Message
pakt


Joined: 04 Jun 2005
Posts: 1094
Location: Sweden

PostPosted: Sat 24 Jun 2006, 04:31    Post subject:  Booting Puppy 2.01 from USB via PCMCIA USB2 adapter card  

Puppy 2.01 can be made to boot from a USB flash pen connected to the PC through a PCMCIA USB2 adapter card if the PCMCIA modules are loaded before the USB modules. I have modified Puppy 2.01's initrd.gz to do that.

This initrd.gz mod lets the user choose whether or not to load the PCMCIA modules before the USB ones with the use of the 'usbcard' boot option. (I thought I had posted this mod to the forum, but I can't seem to find it)

My mod in the 'init' script is the code between the '#----------------' lines.
Code:

####LOAD MODULES###########################################
# Load kernel modules:
echo "Loading kernel modules..."

#base module for scsi (and usb)...
[ -f /lib/modules/${KERNVER}/scsi_mod.ko ] && insmod /lib/modules/${KERNVER}/scsi_mod.ko
#...builtin to my 2.6.16.7, but leave this line for other kernels.

#----------------
#if boot option 'usbcard' then load PCMCIA modules now
#this will allow booting from USB flash pen through USB2 adapter card
if [ ! "`grep -i "usbcard" /proc/cmdline`" = "" ];then
 insmod /lib/modules/${KERNVER}/rsrc_nonstatic.ko
 insmod /lib/modules/${KERNVER}/yenta_socket.ko
 echo "Detecting USB2 adapter card..."
 sleep 2
fi
#----------------

#/usr/share/pci.ids is cutdown with only usb info...


gunzip and re-name the attached file to initrd.gz and replace the original with it.

No other modification (like modifying rc.modules) is necessary.

EDIT: I can't seem to attach the file here either, so I'll use a file server instead...
http://www.mysharefile.com/v/1289380/initrd.gz_p2.01_usbcard.gz.html

Use the boot option like this:
boot: puppy PMEDIA=usbflash usbcard

Feedback welcome Wink
Paul
Back to top
View user's profile Send private message 
Sit Heel Speak


Joined: 30 Mar 2006
Posts: 2595
Location: downwind

PostPosted: Sun 25 Jun 2006, 00:36    Post subject:  

(EDITED: As of August 7 2006, MU is hosting pakt's initrd.gz for Puppy 2.01, it can be found at

http://dotpups.de/files/wakepup/

)

It now works. I lacked the proper initrd.gz before. With this new one, Puppy 2.01 does now boot using the new wakepup from floppy, and (I don't doubt) will also now boot using a disk installation of GRUB, from the USB key with Puppy 2.01 on the USB 2 adapter.

The Puppy Developer forum is down at the moment, so can't post my success there (EDITED: it's up now, I'm doing so).

Thanks again, Paul,

Philip

Last edited by Sit Heel Speak on Mon 07 Aug 2006, 14:47; edited 1 time in total
Back to top
View user's profile Send private message 
pakt


Joined: 04 Jun 2005
Posts: 1094
Location: Sweden

PostPosted: Sun 25 Jun 2006, 02:40    Post subject:  

Good to hear it Very Happy

I really think Barry should use this initrd.gz mod in Puppy2 even if it increases the size of the file by a couple of K.

Paul
Back to top
View user's profile Send private message 
John Doe

Joined: 01 Aug 2005
Posts: 1689
Location: Michigan, US

PostPosted: Sun 25 Jun 2006, 02:54    Post subject:  

Yes, if this works he should hear about it.

Did one of you guys send him a PM or email?
Back to top
View user's profile Send private message 
pakt


Joined: 04 Jun 2005
Posts: 1094
Location: Sweden

PostPosted: Sun 25 Jun 2006, 03:00    Post subject:  

John Doe wrote:
Yes, if this works he should hear about it.

Did one of you guys send him a PM or email?

I'm not sure Barry would appreciate getting PMs or email every time we come up with a suggestion. Isn't that what the forum is for? I assume (and hope) he reads it. Wink

Paul
Back to top
View user's profile Send private message 
John Doe

Joined: 01 Aug 2005
Posts: 1689
Location: Michigan, US

PostPosted: Sun 25 Jun 2006, 03:16    Post subject:  

pakt wrote:
I'm not sure Barry would appreciate getting PMs or email every time we come up with a suggestion


I thought this was a know problem (I might be wrong) and a solution is much different than a suggestion.

Best wishes.
Back to top
View user's profile Send private message 
Sit Heel Speak


Joined: 30 Mar 2006
Posts: 2595
Location: downwind

PostPosted: Sun 25 Jun 2006, 03:24    Post subject:  

pakt wrote:
I really think Barry should use this initrd.gz mod in Puppy2 even if it increases the size of the file by a couple of K.

I agree, this initrd.gz should be the standard issue (EDITED: Puppy 2.02 doesn't need a special initrd.gz, see the thread "Booting Puppy 2.02 from USB via PCMCIA USB2 adapter card" at

http://www.murga.org/~puppy/viewtopic.php?p=61704

).

Bootup time, booting from Paul's new wkpup2x_img on a floppy, with Puppy 2.01 on a USB flash key connected through a USB 2 PCMCIA adapter port: 73 seconds.

Bootup time, with the new initrd.gz copied (in Windows) to my C:\p201disk booting directory and Puppy 2.01 in this directory booted from a grub.exe line in C:\autoexec.bat: 49 seconds.

This is on a Pentium 3 800MHz notebook with 256MB of PC133 RAM and a UDMA-2 (33Mbps) hard disk. Also a very slow floppy drive.

Last edited by Sit Heel Speak on Mon 07 Aug 2006, 14:50; edited 2 times in total
Back to top
View user's profile Send private message 
pakt


Joined: 04 Jun 2005
Posts: 1094
Location: Sweden

PostPosted: Sun 25 Jun 2006, 09:42    Post subject:  

I've sent Barry an email refering him to this topic. I hope he can give us some feedback on it.

Btw, Sit Heel Speak, I found Montana to be a majestic state when my wife and I drove through the rockies there back in the 70's. We lived in Denver at the time and were on a vacation trip north to Canada, then west to Vancouver, south down to California (to visit my father) then east again, back to Colorado. All in thirteen days and with two cats in our little VW Smile
Paul
Back to top
View user's profile Send private message 
Sit Heel Speak


Joined: 30 Mar 2006
Posts: 2595
Location: downwind

PostPosted: Sun 25 Jun 2006, 10:16    Post subject:  

pakt wrote:
I found Montana to be a majestic state...

"Majestic" is a good word for it, yes. I took a few dozen 7.1-megapixel pictures of Little Bighorn Battlefield and surrounding environs. Some of these might be good desktop backgrounds. I would be willing to share them, if someone has the server space.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [9 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Cutting edge
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
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0599s ][ Queries: 12 (0.0207s) ][ GZIP on ]