It is currently Fri Aug 22, 2014 7:34 pm

All times are UTC - 8 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 10 posts ] 
Author Message
 Post subject: how to pass arguments to a defaut floppy image
PostPosted: Wed Aug 17, 2005 8:59 am 
Offline

Joined: Tue Aug 16, 2005 11:34 pm
Posts: 5
Hi,
i'm trying to create a dos floppy image to replace the freedos.img provided in UBCD.

i want to use it like like that:
Code:
isolinux memdisk initrd=/images/mydos.img ubcdcmd=mycmd

where mydos.img = the image of my dos floppy
and mycmd = parameter given to mydos.img

i can't find any web site explaining this.
So if someone can give me some advices, he's welcome !

thanks


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 18, 2005 1:22 am 
Offline

Joined: Mon Feb 21, 2005 10:59 pm
Posts: 1280
You need BCDW.COM from the "bin" directory in freedos.img. The DOS commands to get the boot parameter can be found in UBCD.BAT in the same directory:

Code:
rem ---- BCDW ----
if not exist %ramdrv%\bin\bcdw.com goto _bcdw
bcdw CheckForBCDW
if errorlevel 1 goto _bcdw
bcdw FindBootableCDLetter
if errorlevel 1 goto _bcdw
bcdw GetBootImageCommandLine
if errorlevel 1 goto _bcdw
if "%cd1%"=="" set cd1=%BCDW_CDROM%:
set ubcdcmd=%BCDW_CL%
:_bcdw


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 18, 2005 3:22 am 
Offline

Joined: Tue Aug 16, 2005 11:34 pm
Posts: 5
i've watched in UBCD.BAT and in the AUTOEXEC.BAT from freedos.img but i don't understand how it works:

i've put BCW.COM on my floppy image, and added the dos command you gave me but each call to bcdw return 1

do you have a step by step tutorial about this ?

this is what i've done:

on "myfloppy.IMG"
added the file "BCDW.COM"
added theses lines at the end of AUTOEXEC.BAT:
Code:
rem ---- BCDW ----
if not exist %ramdrv%\bin\bcdw.com goto _bcdw
bcdw CheckForBCDW
rem if errorlevel 1 goto _bcdw
rem bcdw FindBootableCDLetter
rem if errorlevel 1 goto _bcdw
bcdw GetBootImageCommandLine
if errorlevel 1 goto _bcdw
rem if "%cd1%"=="" set cd1=%BCDW_CDROM%:
set ubcdcmd=%BCDW_CL%
:_bcdw
call \dosapps\%ubcdcmd%\startup.bat


in custom.scn
add line
Code:
if ($lastKey == key[f3]); then isolinux memdisk initrd=/images/myfloppy.IMG ubcdcmd=mydosapp


and i created \dosapps\mydosapp\startup.bat:
Code:
echo BCDW_OK


what happens: myfloppy.img is launch but it seems that the bcdw commands don't work: errorlevel 1 return by bcdw commands


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 18, 2005 3:38 am 
Offline

Joined: Thu Feb 24, 2005 1:32 am
Posts: 27
xufux,

Get msubcd.img from nwdsk-beta and rename it to freedos.img and overwrite the one on your ISO with it. It contains a MsDOS 7.10 version of the general UBCD image. When you do not like all the optional modules on it, edit the image (with WinImage or so) and remove the modules from dirs \level0, \level1 and \level2 that you do not like. They are all optional except the CDROM module (and maybe VC).

Success,

Erwin


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 18, 2005 4:05 am 
Offline

Joined: Tue Aug 16, 2005 11:34 pm
Posts: 5
that doesn't work: i replaced freedos.img with msubcd.img as you said but it doesn't load my dos apps: must miss something but don't know what.

nevermind: i don' t what to get rid of freedos and replace it with something as complicated as it.

all i wanna do is to understand the mechanisms of calling dos apps with bcdw.

my floppy boot will be very simple: i aim to use my ghost 2003 floopy (PC-DOS) which only contains USB drivers (no CD, etc)

here's the autoexec:
Code:
@echo off
SET TZ=GHO-01:00
GUEST.EXE
MOUSE.COM


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 18, 2005 4:26 am 
Offline

Joined: Thu Feb 24, 2005 1:32 am
Posts: 27
xufux,

Then is any regular dos-app from UBCD working at all or is it just that yours are not working?.
Are you working with UBCD 3.3 using bcdw.csm 2.0a1 in boot\modules (just peek in bcdw.csm with a viewer to see) ?

Try adding the full dos-path '\dosapps\yourapp\startup.bat'.

Like:
Code:
bcdw boot \images\yourdos.img \dosapps\yourapp\startup.bat
Or:
Code:
isolinux memdisk initrd=/images/yourdos.img ubcdcmd=\dosapps\yourapp\startup.bat

Erwin


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 18, 2005 4:32 am 
Offline

Joined: Tue Aug 16, 2005 11:34 pm
Posts: 5
the error with msubcd.img (works OK with freedos.img)

Code:
The memory-resident portion of SMARTDrive is loaded. 
UNPACK: Extracting "A:\level1\VC.CAB"                 
UNPACK: Extracting "A:\level3\AUTORUN3.CAB"           
                                                     
Your program caused a divide overflow error.         
If the problem persists, contact your program vendor.
                                                     
BOOTDRV:     A:                                       
RAMDRV:      Q:                                       
UBCDDRV:     T:                                       
                                                     
                                                     
Your program caused a divide overflow error.         
If the problem persists, contact your program vendor.
                                                     
Your program caused a divide overflow error.         
If the problem persists, contact your program vendor.
                                                     
Your program caused a divide overflow error.         


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 18, 2005 5:11 am 
Offline

Joined: Thu Feb 24, 2005 1:32 am
Posts: 27
Hmm, I need to check those errors later. Strange that MsDOS is making problems where FreeDOS rolls on.

How about my remarks on your path-statement with your own dos-image and about the version of bcdw.csm and UBCD?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 18, 2005 1:18 pm 
Offline

Joined: Thu Feb 24, 2005 1:32 am
Posts: 27
About the errors with the msubcd.img:
Allthough I could not reproduce them, msubcd did choke with me on accessing the CDROM when searching for the dos-app when LFN was activated. So I changed LFN (long file names) to be inactive by default instead of active. I just uploaded the corrected msubcd.img again to the same location.

Erwin


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 24, 2005 2:01 am 
Offline

Joined: Mon Apr 18, 2005 9:07 pm
Posts: 136
If you're aiming for a Ghost 2003 floppy image, you can install Ghost 2003 in Windows and use it's utility to create a bootable floppy. From there you can edit out the unneeded drivers.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 10 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 2 guests


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 post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group