Welcome, Guest. Please login or register.

Author Topic: Awkward OS4.1 Classic boot procedure  (Read 1842 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline rvo_nlTopic starter

  • Lifetime Member
  • Hero Member
  • *****
  • Join Date: Oct 2006
  • Posts: 860
    • Show only replies by rvo_nl
Awkward OS4.1 Classic boot procedure
« on: February 04, 2013, 09:20:50 AM »
Hi all. Now that my system is working again, Ive 'upgraded' from OS4.0 to OS4.1. Had lots of troubles getting it to install, in the end I had to remove my IDE-Fix. It's now installed, but its very difficult to start it up. But first a little background.
 
I have a single 120GB IDE drive connected to my IDE-Fix Express (on the right channel). I really wanted a dual boot set-up (OS3.9 and OS4.x) so I created a boot partition within the first 4Gb with just a basic Wb3.1 installation. My machine boots from this partition every time I reset. When I start up from cold it fires up idefix and mounts all partitions above the first 4Gb using diskchange. It then prompts me to start either OS3.9 or OS4.1. Selecting each results in some assigns being made and either blizkick or bootloader kicking in, rebooting the machine. It then starts up from that basic partition again, but since its checking the version of exec.library its able to determine which OS Im trying to load, does the assignments and executes the right startup-sequence from the right partition. All completely transparent.
 
This worked perfect with 3.9 and 4.0. But now with 4.1 a lot has changed. When I now choose to boot 4.1, it gets to the bootloader part on the OS4.1 partition, reboots to a blue screen (on indivision) and then, nothing happens. When I then do a soft-reset, it shows me the 4.1 Classic boot screen (while on the indivision it gives me first a purple, then a black/white garbled mess). If I then wait for half a minute, the system boots up from that basic 3.1 partition again. Ofcourse it recognises the new exec.library and goes into the 4.1 booting part. Here it fails, it gives me an error about HD2 (with OS4.1) not being a DOS disk. Generally, this is the warning you'd expect when IDE-Fix hasnt loaded. So I made sure its really there and diskchange has really been run. I've tried with LoadIDE too but that also failed. Somehow I have the feeling the OS4.1 bootloader is patching scsi.device, causing a conflict with my IDE-Fix, but perhaps its something else. Does anyone have a clue?
 
Some notes:
 
- First, I know this is quite a non-standard way of installing 4.1. But I did it before and Im sure there is a way to do it again. I cant install 4.1 below the first 4Gb. Its occuppied by PC and Mac partitions.
 
- There is one way to get it to boot sometimes: by holding down both mouse buttons before the OS4.1 Classic screen comes up, selecting HD2 as boot device and clicking Boot. Naturally, this is not what I want and not something I had to do when I had OS4.0 installed.
 
- Changing the  boot prio of the OS4.1 partition to the highest has the same effect: I then have to hold down mouse buttons when cold booting, select boot from HD0, then choose to load OS4.1. At that point it IS able to boot straight into 4.1. But this is obviously just as awkward.
 
- Keep in mind it IS reaching HD2 when booting from cold, it goes into its startup-sequence to start up bootloader. After the reboot, it is NOT able to reach it anymore. There isnt anything I can change in the OS4.1 startup-sequence.
 
- My OS4.1 partition is using SFS2 (68k version) and during installation I havent touched media toolbox. Ofcourse I did set the flags for IDE-Fix support and Ive also tried Allow Base Page Access.
 
- In the kicklayout-a1200 Ive added the bootdevice module and created the file with 'hd2:' in the kickstart folder, as I already did for OS4.0
 
- Here is part of the startup-sequence on my Wb3.1 boot partition:
 
;loading idefix, patching scsi.device
C:IDEfix
;mounting partitions >4gb using diskchange
c:diskchange hd1: ;OS3
c:diskchange hd2: ;OS4
;checking for resident rom modules
version >NIL: exec.library 52
if warn
;os4 kickrom not found
version >NIL: exec.library 45
if warn
;os3.9 kickrom also not found, ask user which OS to boot
ask "load OS3.9?"
if not warn
ask "load OS4.1?"
if not warn
;booting WB3.1
(...)
else
;booting OS4.1
assign sys: hd2:
assign c: sys:c
path c:
assign s: sys:s
assign l: sys:l
assign libs: sys:libs
assign devs: sys:devs
assign fonts: sys:fonts
assign envarc: sys:prefs/env-archive
assign envarc: sys:prefs/env-archive
execute >NIL: s:startup-sequence
endcli >NIL:
endif
else
;booting OS3.9
(...)
endif
else
;os3.9 kickrom found, booting..
(...)
endif
else
;booting OS4.1
assign sys: hd2:
assign c: sys:c
path c:
assign s: sys:s
assign l: sys:l
assign libs: sys:libs
assign devs: sys:devs
assign fonts: sys:fonts
assign envarc: sys:prefs/env-archive
assign envarc: sys:prefs/env-archive
execute >NIL: s:startup-sequence
endcli >NIL:
endif
« Last Edit: February 04, 2013, 01:44:22 PM by rvo_nl »
Amiga 1200 (1d4) Kickstart 3.1 (40.68), Elbox Power/Winner tower (450w psu), BlizzardPPC 603e+ @240mhz & 060 @50mhz, 256MB, Bvision, IDE-fix Express, IndivisionAGA, 120GB IDE, cd, dvd, Cocolino, Micronik Keycase, PCMCIA Ethernet, Ratte monitor switcher, Prelude1200, triple boot WB3.1 / OS3.9 / OS4.1, Win95 / MacOS8.1
 

Offline JurassicCamper

  • Hero Member
  • *****
  • Join Date: May 2002
  • Posts: 635
    • Show only replies by JurassicCamper
Re: Awkward OS4.1 Classic boot procedure
« Reply #1 on: February 04, 2013, 01:11:45 PM »
You dont need IDEFIX software to use a 4 Way addaptor suchas the idefix express with OS4.1 All you need in your Kicklayout is :-

scsi.device.kmod
scsi.device_ppc.kmod (Required for Memory Paging)
ATAPIismajik (Required for 4 way activation)

I notice you are using blizkick (ages since i used 3.x) means your maprom jumper is closed, OS4.1 requires maprom to be open. (NO MAPROM)

If you are using a medaitor check the state of your wait jumper it needs to be closed for OS4.1

Simplest way to set it up is :-

Add 68K smartfilesystem 1.279 Qualifier 53465300 to the RDB
 
For Dual Boot Without scripts

DH0 - First 1 GB of the disk
SFS/00
512 Blocks
Buffers 600
Bootable BootPri 0
Install OS4.1 from the CD. CDROM-Drive needs to be primary slave.

Create a textfile in sys:kickstart called bootdevice
the contents being DH0

remove the semicolon from the line in your sys:kickstart/Kicklayout-A1200 file

;MODULE Kickstart/BootDevice

HD0 - Second 1 GB of the disk
Same as above
BootPri 1
Put your 3.9 Install here

By default it will boot into 3.9. To boot 4.1 enter the ESS and boot from dh0: the kernel will load, reset and the bootdevice line will tell it to boot workbench from DH0 overriding the higer bootpri of hd0:

Once you have that working then reintroduce your scripts.
« Last Edit: February 04, 2013, 01:16:04 PM by JurassicCamper »
A1200T PPC 330Mhz in a Custom Modified Fractal Design R3 Case
 

Offline rvo_nlTopic starter

  • Lifetime Member
  • Hero Member
  • *****
  • Join Date: Oct 2006
  • Posts: 860
    • Show only replies by rvo_nl
Re: Awkward OS4.1 Classic boot procedure
« Reply #2 on: February 04, 2013, 06:50:31 PM »
Hello sir, thanks for your reply. Said modules are active in my kicklayout config. Maprom is disabled already, because I'm using Blizkick. I have SFS/02 (68k, version 1.290) already in my RDB. I did create the bootdevice file (though i'm in doubt whether it should be hd2 or hd2:. only the last one doesnt give me an error, although in os4.0 I used just plain hd2).

So basically Ive done everything you said, except putting OS4.1 within the first 4Gb of my drive. Like I said, I dont want to do this. I didnt have to do it for OS4.0 and I have my low-level partitions already in this space.
 
There must be a different way. Im quite sure it has something to do with my kicklayout config. I also need to solve that strange 'freeze' after initially loading bootloader. Anyone here with a similar set-up willing to share their experiences and / or kicklayout config? Please help. This looks like a fun OS. Its much faster than I expected, too.
Amiga 1200 (1d4) Kickstart 3.1 (40.68), Elbox Power/Winner tower (450w psu), BlizzardPPC 603e+ @240mhz & 060 @50mhz, 256MB, Bvision, IDE-fix Express, IndivisionAGA, 120GB IDE, cd, dvd, Cocolino, Micronik Keycase, PCMCIA Ethernet, Ratte monitor switcher, Prelude1200, triple boot WB3.1 / OS3.9 / OS4.1, Win95 / MacOS8.1
 

Offline JurassicCamper

  • Hero Member
  • *****
  • Join Date: May 2002
  • Posts: 635
    • Show only replies by JurassicCamper
Re: Awkward OS4.1 Classic boot procedure
« Reply #3 on: February 05, 2013, 07:58:12 PM »
Remove SFS 1.290 from the RDB its PPC, replace it with 1.279 68K version from the Install CD or the internet.
PPC Filesystems are loaded as part of the kickstart not from the RDB
You might as well replace fastfilesystem with V52.6 from the CD too whilst your at it.

to set your bootdevice do the following

Echo >hd2:Kickstart/BootDevice "hd2"

all you need in your script is

;booting OS4.1
assign sys: hd2:
assign c: sys:c
cd sys:
c:bootloader filename hd2:kickstart/kicklayout-a1200 VERBOSE

You can remove VERBOSE part later

to debug this if this

Attach a nullmodem cable between your A1200 and a terminal package on another computer

Change bootloader to

BootLoader COMMANDLINE="debuglevel=3 serial baudrate=38400"

change the kernel line in the kicklayout-a1200 file from

MODULE Kickstart/kernel

to

MODULE Kickstart/kernel.debug

hope this helps.

p.s.

You can also put semicolons in front of a lot of items in the kicklayout file too like the usb, gfxcardones that arnt needed and remove usbctrl start from the startup-sequence
A1200T PPC 330Mhz in a Custom Modified Fractal Design R3 Case
 

Offline rvo_nlTopic starter

  • Lifetime Member
  • Hero Member
  • *****
  • Join Date: Oct 2006
  • Posts: 860
    • Show only replies by rvo_nl
Re: Awkward OS4.1 Classic boot procedure
« Reply #4 on: February 05, 2013, 09:01:36 PM »
hi JurassicCamper,

Thanks so much for your reply. I made a mistake, (no idea how), I have SFS 1.279, it shows up as such in both 3.9 hdtoolbox as 4.1 mediatoolbox.

Its still complaining about hd2 not being DOS when the first reboot took place.
I knew about commenting out the stuff I dont need from kicklayout, I tried but didnt help much so I left it alone for now.

With much interest I read the part about changing my boot script. Did you notice there are 2 parts in my script? First part loads just bootloader, second part is the part that runs when bootloader has reset the machine and new exec is in place. I guess you're now only talking about the first part, since I see no mention of executing os4.1' startup-sequence. I assume I dont need to touch the second part.

So I put your lines into my script, but I get an error when it loads up bootloader. It says it cant find a default set-up in kicklayout-a1200. are you sure this syntax is right? It knows by itself I need kicklayout-a1200, right? (although I have no idea where this is configured)

When I leave out the filename hd2:kickstart/bla stuff, it outputs lots of stuff about the loaded modules, reboots, and fails to recognise hd2 again, unless I tell it to boot from HD2 using the early bootmenu, as explained before.

One thing though, I noticed one of the loaded modules: smartfilesystem (ppc - native). why is this loaded when I only have 68k installed in RDB, I thought. So I went back and removed it from kicklayout. Didnt help though.

Do you have a dual/triple boot set-up too? If so perhaps you can share your script and/or kicklayout config? Would help me out, Im sure!
Amiga 1200 (1d4) Kickstart 3.1 (40.68), Elbox Power/Winner tower (450w psu), BlizzardPPC 603e+ @240mhz & 060 @50mhz, 256MB, Bvision, IDE-fix Express, IndivisionAGA, 120GB IDE, cd, dvd, Cocolino, Micronik Keycase, PCMCIA Ethernet, Ratte monitor switcher, Prelude1200, triple boot WB3.1 / OS3.9 / OS4.1, Win95 / MacOS8.1
 

Offline rvo_nlTopic starter

  • Lifetime Member
  • Hero Member
  • *****
  • Join Date: Oct 2006
  • Posts: 860
    • Show only replies by rvo_nl
Re: Awkward OS4.1 Classic boot procedure
« Reply #5 on: February 05, 2013, 09:55:54 PM »
After a long time trouble shooting I've got it sorted.. :)
The hang-up after the first reboot is fixed by clearing the second port of the IDE-Fix, must play around a bit with jumpers later to see if it can be fixed.

The non-dos hd2 issue was solved by a combination of things. I made my boot script much simpler and played around with enabled modules in kicklayout-1200 until it worked. Just in case anyone needs it later, it needed the following adjustments:

disabled scsi.device_ppc.mod
disabled ata3/sata/pata stuff
enabled atapiismajik
enabled BootDevice module (camel case, no semicolon inside!)

in the startup-sequence of my os4.1 partition I disabled c:bootloader, since its already being run by my triple boot script on my Wb3.1 drive.

the startup-sequence of my Wb3.1 drive looks like this now:

first part:

assign sys: hd2:
assign c: sys:c
cd sys:
c:bootloader

second part (after reboot) :

execute >NIL: hd2:s/startup-sequence
endcli >NIL:

many thanks for  your suggestions, Im really happy its working now! Also, sorry for cross-posting. For some reason I cannot access amiga.org on my pc anymore. This was posted using Ibrowse :)
Amiga 1200 (1d4) Kickstart 3.1 (40.68), Elbox Power/Winner tower (450w psu), BlizzardPPC 603e+ @240mhz & 060 @50mhz, 256MB, Bvision, IDE-fix Express, IndivisionAGA, 120GB IDE, cd, dvd, Cocolino, Micronik Keycase, PCMCIA Ethernet, Ratte monitor switcher, Prelude1200, triple boot WB3.1 / OS3.9 / OS4.1, Win95 / MacOS8.1