OS2 World Community Forum

OS/2, eCS & ArcaOS - Technical => Setup & Installation => Topic started by: Sigurd Fastenrath on September 25, 2014, 02:23:54 pm

Title: OS/4 Kernel and QSINIT - some more Questions
Post by: Sigurd Fastenrath on September 25, 2014, 02:23:54 pm
As I do have a clue about the basic things I have to do I would like to add some more features to the QSINIT on the OS/2-4 DVD. Even after reading most of the documentation I still have no idea what I have to do to achieve the following:

- I would like to have QSINIT to display Different OS/2 kernels in the boot menue, especially for the OS/4 kernel
- In combination with this I would like to make it boot with different config.sys files

i.e.:

-Bootoptions:

a - OS/4 Kernel and OS4ACPI
b - OS/4 Kernel without ACPI
c - OS/2 14.106W4 Kernel without ACPI
d - OS/2 14.106SMP Kernel without ACPI
e - OS/2 14.106SMP Kernel with ACPI 3.2203

-> I do know what the config.sys files mostly need to look like and what files are needed in the boot disk, my question is in witch way I have to modifies QSINIT.INI to choose the one I want.

i.e.:

for the options Qsinit (better the OS2LOADER of QSINIT) shall choose

a - OS/4krnl and config.4pa
b - OS/4krnl and config.4wa
c - OS/2krnl and config.uni
d - OS/2krnl and config.spa
e - OS/2krnl and config.swa

(I name the different config.sys like config.4pa wich means to me OS/4 kernel plus ACPI)

Thanks for hints!!







Title: Re: OS/4 Kernel and QSINIT - some more Questions
Post by: walking_x on September 25, 2014, 02:52:01 pm
Something like this?
OS4KRNL - name of OS/4 kernel file, OS2KRNL - 106W4, OS2KRNL.SMP - 106SMP.
But how resolve UNI/SMP DOSCALLS problem?

[config]
default=3
timeout=5

[kernel]
OS4KRNL = OS/4 Kernel and OS4ACPI, cfgext=4pa
OS4KRNL = OS/4 Kernel without ACPI, cfgext=4wa
OS2KRNL = OS/2 14.106W4 Kernel without ACPI, cfgext=uni
OS2KRNL.SMP = OS/2 14.106SMP Kernel without ACPI, cfgext=spa
OS2KRNL.SMP = OS/2 14.106SMP Kernel with ACPI 3.2203, cfgext=swa
Title: Re: OS/4 Kernel and QSINIT - some more Questions
Post by: Sigurd Fastenrath on September 25, 2014, 03:21:17 pm
Something like this?
OS4KRNL - name of OS/4 kernel file, OS2KRNL - 106W4, OS2KRNL.SMP - 106SMP.
But how resolve UNI/SMP DOSCALLS problem?

[config]
default=3
timeout=5

[kernel]
OS4KRNL = OS/4 Kernel and OS4ACPI, cfgext=4pa
OS4KRNL = OS/4 Kernel without ACPI, cfgext=4wa
OS2KRNL = OS/2 14.106W4 Kernel without ACPI, cfgext=uni
OS2KRNL.SMP = OS/2 14.106SMP Kernel without ACPI, cfgext=spa
OS2KRNL.SMP = OS/2 14.106SMP Kernel with ACPI 3.2203, cfgext=swa


Ah - yes, thank you! DOSCALLS1 - that's a good point! For now I will change the "Uni" Kernel therefore with the SMP kernel and add MAXCPU=1 to config.sys.

I still have to sort out in wich way I can modify UPDCD to choose for the later installation process exactly the combination that has been selected before.
But one step after another  ;)
And I am in contact with Zsolt for some things now  ::)
Title: Re: OS/4 Kernel and QSINIT - some more Questions
Post by: ivan on September 25, 2014, 05:57:53 pm
There may be a few other files that need changing if you are using the SMP kernel - testcfg, resource and *.psd come to mind. 
Title: Re: OS/4 Kernel and QSINIT - some more Questions
Post by: walking_x on September 25, 2014, 09:20:31 pm
  I made at least one way now ;)
  New option - CALL. It launch QSINIT batch file when kernel is ready to launch.
  Because MEMDISK is FAT - it can be modified freely by QSINIT :)
  So:

OS4KRNL = OS/4 Kernel and OS4ACPI, cfgext=4pa, call=A:\setupos4.cmd
OS2KRNL = OS/2 14.106W4 Kernel without ACPI, cfgext=uni, call=A:\setupuni.cmd
OS2KRNL.SMP = OS/2 14.106SMP Kernel without ACPI, cfgext=spa, call=A:\setupsmp.cmd

 setupuni.cmd:
copy /q A:\DOSCALL1.UNI A:\DOSCALL1.DLL

 setupsmp.cmd:
copy /q A:\DOSCALL1.SMP A:\DOSCALL1.DLL

 Note - A:\ here because boot drive is A: in QSINIT (it uses own drive letters).
Title: Re: OS/4 Kernel and QSINIT - some more Questions
Post by: Sigurd Fastenrath on September 25, 2014, 10:48:18 pm
  I made at least one way now ;)
  New option - CALL. It launch QSINIT batch file when kernel is ready to launch.
  Because MEMDISK is FAT - it can be modified freely by QSINIT :)
  So:

OS4KRNL = OS/4 Kernel and OS4ACPI, cfgext=4pa, call=A:\setupos4.cmd
OS2KRNL = OS/2 14.106W4 Kernel without ACPI, cfgext=uni, call=A:\setupuni.cmd
OS2KRNL.SMP = OS/2 14.106SMP Kernel without ACPI, cfgext=spa, call=A:\setupsmp.cmd

 setupuni.cmd:
copy /q A:\DOSCALL1.UNI A:\DOSCALL1.DLL

 setupsmp.cmd:
copy /q A:\DOSCALL1.SMP A:\DOSCALL1.DLL

 Note - A:\ here because boot drive is A: in QSINIT (it uses own drive letters).

Thanks, downloaded Version 294 :-) -> will give it a try during the weekend

EDIT: do I need the "cfgext" parts as well or can I add to the setupsmp.cmd 'copy /q A:\config.4pa A:\config.sys' so that I always have then the config file named config.sys for the further installation process - or is this done automatically via cfgext?
And I guess it is right that I can add more lines, like some for 'reserve.sys' or any kind of files wicht are needed in different versions but do have the same name?
Title: Re: OS/4 Kernel and QSINIT - some more Questions
Post by: walking_x on September 26, 2014, 02:06:23 pm
And I guess it is right that I can add more lines, like some for 'reserve.sys' or any kind of files wicht are needed in different versions but do have the same name?
Yes, of course.
CFGEXT is common solution, it makes patches in loaded kernel data.
This required because there is no way to change HPFS/JFS during boot time (other than write a real driver for both).

But with FAT we can do everything :)
So you can use common batch syntax here (echo, pause, or just "cmd" - to type dir and so on... ;)).
At this time the kernel is already loaded, but not started - and these operations do not touch it.
Title: Re: OS/4 Kernel and QSINIT - some more Questions
Post by: Sigurd Fastenrath on September 28, 2014, 08:44:51 am
Hi,

I think I do make some progress, will publish a video about it so far this evening  ::)

As allways I do have some more questions - just as these things occur as I go on -- I do hope to do not bother here!

1. I wanted to add switches like "ALT+F2" and "ALT+F4" to the lines in os2loader.ini as arguments -> is this possible and do I have to use quotes? I tried it just like this:
os2krnl=OS/2 Kernel 106W4, cfgext=104, ALT+F2
but it does not react. During boot it shows something like "cannot find the argument -> "

2. In the "F9" apps menue there is the funciton "Diskmenue". After a short while I get used to it - is FAT32 the only option to "Format" a partition or what is needed to have the possibility to use HPFS or/and JFS instead?

Thank you very much in advance!

Sigurd
Title: Re: OS/4 Kernel and QSINIT - some more Questions
Post by: walking_x on September 28, 2014, 10:50:13 am
1. I wanted to add switches like "ALT+F2" and "ALT+F4" to the lines in os2loader.ini as arguments -> is this possible and do I have to use quotes? I tried it just like this:
os2krnl=OS/2 Kernel 106W4, cfgext=104, ALT+F2
but it does not react. During boot it shows something like "cannot find the argument -> "
ALTF2 - without space. In OS/4 archive there is a file "os2ldr.read.me" - QSINIT share all these options with OS/4.

Quote
2. In the "F9" apps menue there is the funciton "Diskmenue". After a short while I get used to it - is FAT32 the only option to "Format" a partition or what is needed to have the possibility to use HPFS or/and JFS instead?
Format is self-implemented - I can`t call OS/2 version of format utilites :) So it format partition to FAT/FAT32 (depends on size).

I'm thinking about HPFS format, but this still too complex task. Any way, this is not a large problem, because no access to HPFS volumes (loader is able only read files from the root directory).

FAT/FAT32 - can be created, written, xcopy-ied and so on - so acts as target for temporary storage, for example. When I tried to move huge amount of files between 2 FAT32 partitions - it was faster, than in our famous FAT32.IFS :D
Title: Re: OS/4 Kernel and QSINIT - some more Questions
Post by: Sigurd Fastenrath on September 28, 2014, 11:51:41 am
Thank you very much!

I guess it it not necessary to have HPFS - it is OK that I can create partitions and the OS/2 Installation process can recognize that there are partitions/LVMVolumes

I will show all of this in the upcoming video, please take a look at it later (I will post the link to it once it is finished) and correct me in case of errors or misunderstanding.

 ;) 8) ::)
Title: Re: OS/4 Kernel and QSINIT - some more Questions
Post by: Sigurd Fastenrath on November 17, 2015, 12:54:51 pm
I am still experimenting with this and do have a problem now, hope to geht help and advice - thanks in advance!

I am Using:

QSINIT Loader Version 360, dated 2015-10-10
OS/4 Kernel Version 4473

This is what the OS2LDR.INI contains for OS/4 (i.e.):

os4krnl=OS/4 Kernel 4473 mit OS/4 ACPI, cfgext=o4a, call=A:\setupos4.cmd

This is what setupos4.cmd looks like:

copy /q A:\DOSCOS41.DLL A:\DOSCALL1.DLL
copy /q A:\harderr.smp A:\harderr.exe
copy /q A:\sesdd32.smp A:\sesdd32.sys


(All files are in place)

When I start and select this then I get the errormessage:

unable to open batchfile "A:\setupos4.cmd"

What do I miss?




Title: Re: OS/4 Kernel and QSINIT - some more Questions
Post by: Doug Bissett on November 18, 2015, 04:05:31 am
Quote
unable to open batchfile "A:\setupos4.cmd"

I am not clear about exactly how you have this set up, but "drive A:" only works for FAT boot drives (or possibly FAT32, which probably won't work with OS/2). In my test system, my boot drive is JFS. If I drop to a QSINIT command line at boot, there is no A: drive. It says "Device not mounted". If it is a FAT drive, you need to mount it before you can use it (that may be done automatically for a FAT drive). Trying to mount a JFS drive appears to work, but it says it is not mounted if I try to use it. I expect that trying a HPFS drive would do the same.
Title: Re: OS/4 Kernel and QSINIT - some more Questions
Post by: Sigurd Fastenrath on November 18, 2015, 08:24:37 am
Quote
unable to open batchfile "A:\setupos4.cmd"

I am not clear about exactly how you have this set up, but "drive A:" only works for FAT boot drives (or possibly FAT32, which probably won't work with OS/2). In my test system, my boot drive is JFS. If I drop to a QSINIT command line at boot, there is no A: drive. It says "Device not mounted". If it is a FAT drive, you need to mount it before you can use it (that may be done automatically for a FAT drive). Trying to mount a JFS drive appears to work, but it says it is not mounted if I try to use it. I expect that trying a HPFS drive would do the same.

Hi Doug,

thanks for this, what makes me wonder is that this worked before, QSINIT automatically grabbs Drive letter a: (see above posts) I still can not figure out what I might have changed. Everything else with QSINIT is working fine, i.e. booting the 14.106SMP Kernel works without issues. May be the "call" order is somehow broken with newer QSINIT. I hope to get some response or hint from the developer.
Title: Re: OS/4 Kernel and QSINIT - some more Questions
Post by: walking_x on November 18, 2015, 11:13:00 am
  A: is always mounted. When volume is FAT - its usable, for JFS & HPFS mounting gives some options too -  format, bpb dump...
  Nothing was changed in this part, i checked it - and it works (at least, on my test FAT volume ;)). Is cmd file really visible? Check it in QSINIT shell:
    dir a:\*.cmd
  because it looks absent (may be some FAT/disk image problems?)
Title: Re: OS/4 Kernel and QSINIT - some more Questions
Post by: Sigurd Fastenrath on November 18, 2015, 02:39:41 pm
Hi Walking_X,

that is what it looks like if I do like you suggested.

So ist seems not to be there. May I placed the setup.cmd in the wrong place (here it resides on root of drive c:) ?

Thanks!

Title: Re: OS/4 Kernel and QSINIT - some more Questions
Post by: Doug Bissett on November 18, 2015, 05:29:13 pm
You said:
Quote
I am Using:

QSINIT Loader Version 360, dated 2015-10-10

but the picture shows that you are using Version 327, which is somewhat older. Perhaps check everything to be sure that it is all the same version.
Title: Re: OS/4 Kernel and QSINIT - some more Questions
Post by: walking_x on November 18, 2015, 06:36:12 pm
that is what it looks like if I do like you suggested.
No! :) On screenshot - dir a\*.cmd instead of a:\*.cmd, ":" missed ;)

Pattern match code seems a bit incorrect, but it shows all cmds in the current dir then, not in a:\
Title: Re: OS/4 Kernel and QSINIT - some more Questions
Post by: Sigurd Fastenrath on November 18, 2015, 07:34:48 pm
You said:
Quote
I am Using:

QSINIT Loader Version 360, dated 2015-10-10

but the picture shows that you are using Version 327, which is somewhat older. Perhaps check everything to be sure that it is all the same version.

Yes, sorry, I seem to confuse sometime the files that I use to build my DVD and the ones installed on the Sony  :-\

that is what it looks like if I do like you suggested.
No! :) On screenshot - dir a\*.cmd instead of a:\*.cmd, ":" missed ;)

Pattern match code seems a bit incorrect, but it shows all cmds in the current dir then, not in a:\

Sorry again, I am getting old, I guess....

So, changed everything, results are in the pictures - seem to be even worse. I included a picture of the HDD Layout as it is seen by QSINIT.

Title: Re: OS/4 Kernel and QSINIT - some more Questions
Post by: dx2 on November 18, 2015, 08:07:27 pm
So, changed everything, results are in the pictures - seem to be even worse. I included a picture of the HDD Layout as it is seen by QSINIT.
Yes, looks like boot from HPFS partition "OS/2 Warp 4" (boot partition is always marked as 0:/A: in list).
QSINIT unable to browse HPFS/JFS on boot and this error is normal.

I.e. "call" option can help on FAT boot only (from FAT partition or emulated disk - pae or veit`s memdisk). Even if I can implement HPFS read in future, I am just avoid writing to such complex file systems at boot time.

p.s. hmm, can't even remember when created this second login ;)
Title: Re: OS/4 Kernel and QSINIT - some more Questions
Post by: Sigurd Fastenrath on November 18, 2015, 10:26:23 pm

I.e. "call" option can help on FAT boot only (from FAT partition or emulated disk - pae or veit`s memdisk). Even if I can implement HPFS read in future, I am just avoid writing to such complex file systems at boot time.

p.s. hmm, can't even remember when created this second login ;)

Thanks for the clarification - I deleted the call things from OS2LDR.INI and changed that I "only" use 14.106SMP or OS4 kernel so that I do nat have to change files (at least I try it this way), doscall1 etc. are all taken from the 14106SMP Part.

While 14106SMP is booting fine, as before, OS/4 does start now - but stopps when it comes to start the PMSHELL.EXE and crashes (no CTRl+ALT+DEL) - so almost at the end of the boot process. Will look into this later.

OS/4 kernel while starting complains (with or wihtout acpi4.sys support) to not having acpi4.bpd (a file I do not have), but seems to ignore it later..

Well, have to look more into it... ::) :)

Thanks so far!