WakePup2 for Puppy 2.x and greater (NOW WITH more SUPPORT)

Using applications, configuring, problems
Message
Author
User avatar
Crash
Posts: 453
Joined: Fri 09 Dec 2005, 06:34
Location: Melbourne, FL

#46 Post by Crash »

First, let me state that I really like this version of Wakepup2. It offers a nice set of options.

I made a couple of additions to the opening menu of the AUTOEXEC.BAT file, adding options 7 and 8:

...

echo * 7. Floppy File: Executes last saved boot config from floppy *
echo * *
echo * 8. Target File: Executes last saved boot config from target media*
echo * *

...

choice /C:12345678 Please choose :

...

if "%errorlevel%"=="7" goto load
if "%errorlevel%"=="8" goto load2

...

:load2
LINLD.COM image=%drv%\vmlinuz initrd=%drv%\initrd.gz cl=@%drv%\linld\puppy.lin

goto end

...

If you have a particular setup that you tried that works good, you don't have to remember it. Just type option 7 and it runs your last saved configuration.

You can copy the a:\linld directory to the target device and run it from there when you use option 8.

Ulterior motive: Option 8 works on a floppy image burned to a CD. I can experiment with the best configuration on floppy, copy it to the USB stick, and carry it around along with the boot CD for the poor souls who won't retrofit their computer with a floppy drive.

---

P.S. (Edited August 1):

Philh: Like you, one of the computers I tried would lock up on the USBASPI.SYS driver but work OK with aspiuhci.sys. Another computer that locked up on the USBASPI.SYS driver didn't work with aspiuhci.sys but worked OK with version 2.06 of USBASPI.SYS. Unfortunately, there doesn't seem to be a combination that works on all computers. I consider this a DOS USB support issue rather than a Puppy issue, but it is an issue none the less.

I attached my edits to the autoexec.bat file here since I don't know if my excerpts above are very clear.

---

(Edited August 3): The writeup and attachment was revised to reflect the current new Wakepup2 configuration.
Attachments
autoexec.bat.gz
(3.01 KiB) Downloaded 668 times
Last edited by Crash on Fri 03 Aug 2007, 12:58, edited 2 times in total.

jonyo

#47 Post by jonyo »

Thought I might ask this question here. Have an ibm 380 ed lap P150 32 megs a ram that I'm playing with to run pup. 'Cording to the lenovo site it is non cd bootable.

Stumbled on that it booted a win 98 cd. Ended up trying out gparted that booted. Tried out a bunch a pup vers & no luck. Tried out a wake floppy with a buncha pup vers & no luck with that. Thought at first it wasn't recognizing the cd drive or something..

All of a sudden the wake floppy (outa 2.17) booted pup vers 2.01. So wonderin why it booted 2.01 & not the other 2x variants?

Also didn't boot micro muppy(based on 2.12 i think).
Last edited by jonyo on Wed 08 Aug 2007, 10:15, edited 1 time in total.

j-impossiblix
Posts: 7
Joined: Fri 27 Jul 2007, 22:02

#48 Post by j-impossiblix »

wake pup works for me. it's great for those times that my intermittant cd drive is down, or overheated....

works for 2.17, not sure wake pup version...@ work...

wondering how it works, and how come this is the only distro that can use a floppy to help boot.

others say that since kernel 2.6.... is over 1.44 mb it won't work on a boot floppy, but i think that even tho pup is using 2.4.... and is less than 1.44, am i right that the kernel isn't on the disk anyway?

John Doe
Posts: 1681
Joined: Mon 01 Aug 2005, 04:46
Location: Michigan, US

#49 Post by John Doe »

Thanks Crash, jonyo, and j-impossiblix for jumping in.

really dig 7 and 8, great ideas (8 I will have to look at a bit, but I think I get it). will implement that this week and fix up the main image.

going to add "pfix=noswap" also (if Barry likes it and plans on inclusion for 2.18). <- that's an eight if you have smiley's enabled (stupid regex).

http://www.murga-linux.com/puppy/viewto ... 583#133583

John Doe
Posts: 1681
Joined: Mon 01 Aug 2005, 04:46
Location: Michigan, US

#50 Post by John Doe »

j-impossiblix wrote:wondering how it works...
i'll try to give an quick run down.

the mbr on the floppy gets hit and the bios boots it.
config.sys is loaded and all DOS drivers are loaded in there.
autoexec.bat is next. it has the logic to find puppy and decide what is pasted to linld.
linld is a dos app that will boot a kernel image from DOS.
we use the menu system in order to write the config file for overcomeing the commandline limitations in freedos (we are using freedos not MS-DOS).
j-impossiblix wrote:...and how come this is the only distro that can use a floppy to help boot.
is it really? i'm ignorant, so i must defer this back the group.

@all
is puppy really the only disto (or liveCD) that can use a floppy (GRUP floppy excluded, that wouldn't be any fun)?

jonyo

#51 Post by jonyo »

I think DSL has boot floppies and Slax has a boot cd disk of some kind.

Suppose I'll be tryin it out but does wake floppy boot from a usb floppy drive? I've got some rigs that have no floppy drives.

PaulBx1
Posts: 2312
Joined: Sat 17 Jun 2006, 03:11
Location: Wyoming, USA

#52 Post by PaulBx1 »

Where are we now, with this? Still working on the next version, or is there something I should test that I haven't yet?

jonyo

#53 Post by jonyo »

I'm still curious why my supposed non bootable (mostly doesn't) from cd ibm 380 ED lap that I tried with a wake pup ended up booting only ver 2.01 this way.. Said there were no pup files found on the other 2x variants I tried ?

Any thoughts? Gotta be something diff about 2.01?

John Doe
Posts: 1681
Joined: Mon 01 Aug 2005, 04:46
Location: Michigan, US

#54 Post by John Doe »

PaulBx1 wrote:Where are we now, with this? Still working on the next version, or is there something I should test that I haven't yet?
tomorrow i could post a new image.

thought i was over my cold but it was just changing on me. i've been stuck in bed for most of the past couple days.

John Doe
Posts: 1681
Joined: Mon 01 Aug 2005, 04:46
Location: Michigan, US

#55 Post by John Doe »

Latest version, with 7 and 8 added. No driver menu yet:

http://www.murga-linux.com/puppy/viewto ... 924#122924
Crash wrote:Philh: Like you, one of the computers I tried would lock up on the USBASPI.SYS driver but work OK with aspiuhci.sys. Another computer that locked up on the USBASPI.SYS driver didn't work with aspiuhci.sys but worked OK with version 2.06 of USBASPI.SYS. Unfortunately, there doesn't seem to be a combination that works on all computers. I consider this a DOS USB support issue rather than a Puppy issue, but it is an issue none the less.
I'm starting to see this also. My one test machine has both 1.1 and 2.0 and it used to work with either or and now 2.0 won't work at all.

I'll work in a menu for the drivers next.

we'll have all loaded by default for people that don't know what to pick and a "custom option" for advanced users.

jis
Posts: 2
Joined: Tue 22 May 2007, 15:17

#56 Post by jis »

Philh wrote: I usually use grub to load a wakepup image so I can boot from usb rather than a floppy.
How do you load wakepup from usb flash drive? Do you have to clear the drive before moving the image there and can you store some additional files to the drive afterwards? What kind of line you need in menu.lst for grub?

jonyo

#57 Post by jonyo »

jonyo wrote:I'm still curious why my supposed non bootable (mostly doesn't) from cd ibm 380 ED lap that I tried with a wake pup ended up booting only ver 2.01 this way.. Said there were no pup files found on the other 2x variants I tried ?

Any thoughts? Gotta be something diff about 2.01?
Thought it was something about the early 2x variants (few of 'em booted but even there..not all) that was diff & maybe there still is.. Had no luck with booting variants higher than 2.02..

Ended up trying 2.17 & it booted. :shock: Turns out that the ones that didn't boot were cos I was burning 'em at whatever (high) speed & on r/w type disks. They all booted & worked on newer gear. Re-burned 2.13-4-5-6 at slow speed (x2) on write type disks & they all booted with a wake floppy. :)

ibm 380 ed p150, 80 megs a ram lap live cd save file to hd booting with wake floppy.
Last edited by jonyo on Wed 29 Aug 2007, 18:39, edited 1 time in total.

User avatar
Sit Heel Speak
Posts: 2595
Joined: Fri 31 Mar 2006, 03:22
Location: downwind

#58 Post by Sit Heel Speak »

Nothing to see here folks, it Just Works(tm). Booting 2.17.1 on usb flash key (keypresses 6-4-1) through both a usb 1.1 and a usb 2.0 port.

jonyo

#59 Post by jonyo »

Will a wake floppy boot a cf flash pcmcia adapter on an old win 98 lap with no usb ports?

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#60 Post by BarryK »

Does WakePup2 support frugal installs in a subdirectory?

The upcoming pup 2.20 has improved handling of pup installed into a directory, but just one-deep. So you could have the pup in:
/puppy220/vmlinuz
/puppy220/initrd.gz
/puppy220/pup_220.sfs
/puppy220/zdrv_220.sfs

where the directory name 'puppy220' is your choice. Puppy will also support the 'psubdir=puppy220' boot param, to avoid Puppy searching elsewhere at bootup.
But, WakePup really needs to do its search one-deep through all the directories in dos/fat partitions.

John Doe
Posts: 1681
Joined: Mon 01 Aug 2005, 04:46
Location: Michigan, US

#61 Post by John Doe »

BarryK wrote:Does WakePup2 support frugal installs in a subdirectory?
not yet, but i'll look into getting it in there.
BarryK wrote:Does WakePup2 support frugal installs in a subdirectory?
But, WakePup really needs to do its search one-deep through all the directories in dos/fat partitions.
that's one way. i was thinking command line entry of the name might be better. will have a better idea after i read up on what's possible in dos.

User avatar
Crash
Posts: 453
Joined: Fri 09 Dec 2005, 06:34
Location: Melbourne, FL

#62 Post by Crash »

As a test, I modified a known good installation of Puppy 2.17 on a thumb drive by creating a "\p217" directory and moving the four files to it. Then I modified the Wakepup2 autoexec.bat file by editing the LINLD.COM line:

:load
LINLD.COM image=%drv%\p217\vmlinuz initrd=%drv%\p217\initrd.gz cl=@linld\puppy.lin

Puppy loaded up to a point and then said the following:

Looking for Puppy in sda1... done

ERROR, cannot find Puppy on 'usbflash' boot media.

Then it said a couple of other things (I remember the word "Guru", etc.) and dropped into the command prompt.

So from this, it looks like Wakepup2 at least gets out of DOS and into the Linux kernel load process. I look forward to repeating the test using V2.20 once it is in beta.

John Doe
Posts: 1681
Joined: Mon 01 Aug 2005, 04:46
Location: Michigan, US

#63 Post by John Doe »

jonyo wrote:Will a wake floppy boot a cf flash pcmcia adapter on an old win 98 lap with no usb ports?
my friend has a set up like that. it's an old ibm thinkpad. i tried and failed. added the menu option a few posts back in this thread but didn't think that the DOS drivers needed to be there.

tonight i did some research and dug them up:

http://www.mail-archive.com/arachne@ara ... 20538.html

the main problem is they are 1.22 megs extracted and won't fit on the floppy. perhaps some can be slimmed out or another option found.

btw, got the subdirectory thing worked out already. will post that soon (probably tomorrow afternoon) as i want to do some more testing and maybe get pcmcia going first.

John Doe
Posts: 1681
Joined: Mon 01 Aug 2005, 04:46
Location: Michigan, US

#64 Post by John Doe »

got the subdirectory thing worked out.

obviously i didn't get to this "tomorrow afternoon".

getting closer. have a pcmcia card to test with did the following:

-added subdirectory selection (cli entry, no gui) in autoexec.bat
-slimmed the cardwiz stuff down so it fits (experimental).
-added a menu for hardware selection in config.sys
-updated all FreeDOS binaries to v1.0
-got iomega zip and adaptec cd drivers out of pupwake. not sure if puppy still supports these methods, but figure i'd throw them in incase it does.
-removed all A:\ references in config.sys and made the paths relative rather than absolute because i read somewhere about this allowing the image to work from USB if BIOS supports USB and floppy image is copied to USB. tested and floppy boot still works ok like that.
-experimented with NTFS support using sysinternal NTFSDos. i recall it worked with MSDos, but I can't get it to work with FreeDOS. will tinker more. lines 90-92 of config.sys relate to this. the drivers are in there.

stuck reading (the following link) right now, trying to get himem to work (or not) on all systems.

http://en.wikipedia.org/wiki/Extended_memory

himem is needed for emm386 which is needed for the cardwiz package but himem crashes higher boards. i'm trying to find the best way to implement it.

been messing with /METHOD to try and find a "sweet spot" to allow himem to work on old and new HW.

more soon...

let me know how this copy works for everyone.

i'll post how far i got here for now and update the other thread when some more progress is made.

http://www.murga-linux.com/puppy/viewto ... 924#122924
Last edited by John Doe on Fri 14 Sep 2007, 04:51, edited 2 times in total.

User avatar
Crash
Posts: 453
Joined: Fri 09 Dec 2005, 06:34
Location: Melbourne, FL

#65 Post by Crash »

Boy, you did a lot of work on the config.sys file! This version has some bugs, but has great promise.

I used option 1 on both the first and second menus to boot Puppy 2.20 Alpha on a USB stick. There are some error messages in Wakepup2, looking like it is trying to execute some comment lines. I haven't taken a good look at the code to see what's going on, but it should be pretty easy to correct. But the boot worked OK.

I then moved the Puppy files to a subdirectory, "\puppy220", and modified the LINLD line like this:

:load
LINLD.COM image=%drv%\puppy220\vmlinuz initrd=%drv%\puppy220\initrd.gz cl=@linld\puppy.lin

Puppy booted up OK this way. It is the first time I have been able to boot Puppy in a subdirectory.

I couldn't get the Ethernet driver to load, so I made a copy of zdrv_220.sfs in the root directory and re-booted. Then the Network Wizard worked and I could connect to the Internet. That is the only major bug to work out, although by the time I make this post, that has probably already been addressed.

With the unmodified version, I tried some of the other Wakepup options, and got into the dialog where I enter the subdirectory explicitly, but I haven't gotten that to work yet. I'm sure that the bugs can be worked out though, and this should be a fine enhancement to the program.

I am making this post with the configuration I just described. There is no hard drive active on the system at present, just the USB stick and floppy. It definitely works.

Post Reply