OS4.1 and MorphOS on same drive on X5000?
  • Order of the Butterfly
    Order of the Butterfly
    JohnFante
    Posts: 156 from 2006/9/4
    From: Copenhagen
    My goal is to get OS4.1 and MorphOS to boot from the same drive on my X5000 or alternatively to get MorphOS to boot from the same drive I have Linux installed.

    My setup is that I have a DVD and a HD attached to the onboard SATA-ports and another HD attached to a SIL3114 with linux installed. I boot the linux kernel frem an USB and then linux itself from the HD.

    I have uploaded my partition-scheme here: Partitions

    As you can see I prepared for MorphOS support when I partitioned the drive way back :-). DH2 is formated as SFS and the idea was to install the MorphOS system partition there.

    Is that possible or does it need another hidden partition as it does on a Mac. The rest af the data partitions I would install on the first part of the linux drive where I have an old Ubuntu installation that I do not need.

    I have searched in Uboot for the MorphOS boot variables so that I can tell it where to look but did not find any.

    Another course could be to install MorphOS on the first half of my linux drive but I think that boot from SIL3114 is not supported on X5000 or is it?

    I could move the linux HD from the SIL and install MorphOS from USB. I have looked for the recommend partition scheme for X5000 but not found any. Do I need any hidden partitions or? I would like to keep my second fienix-linux installation so I would not like to use my complete drive.

    Thank you in advance! :-)
  • »02.04.20 - 16:52
    Profile
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Andreas_Wolf
    Posts: 12077 from 2003/5/22
    From: Germany
    > I boot the linux kernel frem an USB and then linux itself from the HD. [...]
    > I think that boot from SIL3114 is not supported on X5000 or is it?

    The fact that you don't run the Linux kernel directly from the SiI3114 may indicate that the X5000 U-Boot cannot boot it from the SiI3114, for whatever reason. If that's the case (in contrast to what I wrote in that other thread), the MorphOS boot.img cannot be booted from the SiI3114 either, nor anything else for that matter.

    > does it need another hidden partition as it does on a Mac.
    > [...] Do I need any hidden partitions or?

    In case you mean the 128 MiB padding partitions between your normal partitions, then no, they are only required on the Macs. In case you mean the partition where the MorphOS boot.img resides to be different from the partition where the MorphOS system files reside (as done on the Pegasos I and on the Macs), then this may be necessary if U-Boot cannot access the MorphOS system partition.

    > I have searched in Uboot for the MorphOS boot variables so that I can
    > tell it where to look but did not find any.

    "Before installing MorphOS, please make sure that your X5000 device has been updated to a firmware version that supports installing MorphOS."
    https://www.morphos-team.net/installation

    Did you do this?
  • »02.04.20 - 18:56
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    JohnFante
    Posts: 156 from 2006/9/4
    From: Copenhagen
    Quote:

    In case you mean the 128 MiB padding partitions between your normal partitions, then no, they are only required on the Macs. In case you mean the partition where the MorphOS boot.img resides to be different from the partition where the MorphOS system files reside (as done on the Pegasos I and on the Macs), then this may be necessary if U-Boot cannot access the MorphOS system partition.


    That is more or less the key question here. Does MorphOS on X5000 need a boot partition with the boot.img or does/can that recide on the System partition. Anyone?

    Quote:

    "Before installing MorphOS, please make sure that your X5000 device has been updated to a firmware version that supports installing MorphOS."
    https://www.morphos-team.net/installation

    Did you do this?


    I have - as far as I know - the latest version of uBoot. Since it can boot from the MorphOS install CD I would assume that it supports MorphOS install/boot. But good point!
  • »03.04.20 - 05:56
    Profile
  • MorphOS Developer
    cyfm
    Posts: 537 from 2003/4/11
    From: Germany
    Quote:


    That is more or less the key question here. Does MorphOS on X5000 need a boot partition with the boot.img or does/can that recide on the System partition. Anyone?



    No, it does not. The boot.img is written to the root directory of the bootable System partition.

    HDConfig/IWizard installs a second level bootloader dubbed "hyberbootloader" to the MorphOS drive. It is used/detected by X5000 UBoot and is required to load the boot.img found on the MorphOS system partition.
  • »03.04.20 - 09:55
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    JohnFante
    Posts: 156 from 2006/9/4
    From: Copenhagen
    Quote:

    cyfm wrote:
    Quote:


    That is more or less the key question here. Does MorphOS on X5000 need a boot partition with the boot.img or does/can that recide on the System partition. Anyone?



    No, it does not. The boot.img is written to the root directory of the bootable System partition.

    HDConfig/IWizard installs a second level bootloader dubbed "hyberbootloader" to the MorphOS drive. It is used/detected by X5000 UBoot and is required to load the boot.img found on the MorphOS system partition.



    Thank you for the reply :-)

    So it should be possible/safe to install MorphOS to my SFS formatted DH2 partition on my primary OS4 drive as long as it is made bootable? In other words iWizard will install everything necessary to the same partition (in this case DH2).
  • »03.04.20 - 10:45
    Profile
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Andreas_Wolf
    Posts: 12077 from 2003/5/22
    From: Germany
    > The boot.img is written to the root directory of the bootable System partition.
    > HDConfig/IWizard installs a second level bootloader dubbed "hyberbootloader"
    > to the MorphOS drive. It is used/detected by X5000 UBoot and is required to
    > load the boot.img found on the MorphOS system partition.

    Thanks for explaining the mechanism. So pre-3.10, when Hyperbootloader didn't support SFS yet (only FFS and ISO9660), Sam460 users had to have the MorphOS boot.img on a partition separate from the MorphOS system partition when they didn't want the latter on FFS?
  • »03.04.20 - 11:07
    Profile
  • MorphOS Developer
    cyfm
    Posts: 537 from 2003/4/11
    From: Germany
    Quote:



    So it should be possible/safe to install MorphOS to my SFS formatted DH2 partition on my primary OS4 drive as long as it is made bootable? In other words iWizard will install everything necessary to the same partition (in this case DH2).




    Yes, this should basically work. Starting with MorphOS 3.10, the supplied hyperbootloader supports both FFS and SFS formatted system partitions.
    Make sure that the OS4 system partition has a higher boot priority, though. Otherwise OS4 might try to boot from the MorphOS system partition instead.
  • »03.04.20 - 11:43
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    JohnFante
    Posts: 156 from 2006/9/4
    From: Copenhagen
    It works ....sort of!

    The installer has copied everything to the DH2 partition as expected. Even the boot.img.

    However, I have to have the CD in to get it to boot from DH2 (and pres 2 to get it to boot from DH2). It is like Uboot does not see the loader on DH2 partition but only on the CD but the loader on the CD sees and can boot from DH2 ....

    Here is a video of boot without CD: No CD

    And here with CD: With CD

    I am running the latest Uboot from 2018.

    Is there a way to edit the env in Uboot for MorphOS boot to point it to DH2?

    And one final thing: is there a way to get MorphOS to read the NGFS filesystem?

    [ Edited by JohnFante 04.04.2020 - 10:41 ]
  • »04.04.20 - 09:31
    Profile
  • MorphOS Developer
    cyfm
    Posts: 537 from 2003/4/11
    From: Germany
    Quote:


    I am running the latest Uboot from 2018.



    This sounds pretty much like it couldn't find the bootloader on the drive.
    Did you try to select booting MorphOS manually via the Boot MorphOS entry in the custom X5000 bootmenu ? You can access that via SPACE key afair.

    Also, once booted into MorphOS - albeit via CD -, you could check via HDConfig if there is a bootloader on the drive. There is some popup menu if you press the button left to the drive string



    which should have some "Edit Bootloader..." entry on X5000/Sam460 as seen in the picture above.



    Quote:


    Is there a way to edit the env in Uboot for MorphOS boot to point it to DH2?



    Typically this should work automatically if it can find the bootloader on the drive. My guess is that something failed with the hyperbootloader.

    Quote:


    And one final thing: is there a way to get MorphOS to read the NGFS filesystem?



    No, there is no way to read NGFS from within MorphOS as it is some proprietary OS4 filesystem afaict.
  • »04.04.20 - 10:43
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    JohnFante
    Posts: 156 from 2006/9/4
    From: Copenhagen
    Thank you!

    Installing the hyberbootloader made the system boot from HD :-)

    However, now OS4.1 will not load (hangs on the bootscreen) and I can not even use an install CD to check the OS4.1 installation. It just hangs at the bootscreen .... :-(

    I have tried uninstalling the hyperbootloader to see if that unconfuses OS4.1 but to no success so far. It simply will not boot in any form. Both MorphOS and Linux boots fine.

    OS4.1 has a higher bootnumber than MorphOS so it is not that.

    Is there a way to uninstall the hyberbootloader effectively? I have tried doing the opposite of installing it but it simply will not go away. I would sure like to get to my OS4.1 data somehow.

    I have ordered a new HD so that I can use seperate HD's for OS4.1, Linux and MorphOS. It seems like the safe way to go.

    And last but not least. Thank you for all your help :-)


    [ Edited by JohnFante 04.04.2020 - 19:08 ]
  • »04.04.20 - 16:32
    Profile
  • MorphOS Developer
    cyfm
    Posts: 537 from 2003/4/11
    From: Germany
    Quote:


    Installing the hyberbootloader made the system boot from HD :-)

    However, now OS4.1 will not load (hangs on the bootscreen) and I can not even use an install CD to check the OS4.1 installation. It just hangs at the bootscreen .... :-(



    Hangs at bootscreen means the early UBoot screen and not any OS4 specific one I guess ? Did you already try the UBoot menu which is accessed via SPACE key to select OS4 boot manually ?

    Quote:


    I have tried uninstalling the hyperbootloader to see if that unconfuses OS4.1 but to no success so far. It simply will not boot in any form. Both MorphOS and Linux boots fine.

    OS4.1 has a higher bootnumber than MorphOS so it is not that.



    If it already hangs within UBoot, it most likely isn't related to the boot partition priority. You can try to change the MorphOS partition to not bootable with HDConfig and check if that makes any difference for OS4 boot. You can modify it again by booting from a MorphOS CD later on.

    Quote:


    Is there a way to uninstall the hyberbootloader effectively? I have tried doing the opposite of installing it but it simply will not go away. I would sure like to get to my OS4.1 data somehow.



    There is no easy way to uninstall the hyperbootloader but it is possible of course. Send me a PM and I can go into more detail.

    Quote:


    I have ordered a new HD so that I can use seperate HD's for OS4.1, Linux and MorphOS. It seems like the safe way to go.



    That is probably the safest way to deal with it indeed.
  • »05.04.20 - 12:15
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    JohnFante
    Posts: 156 from 2006/9/4
    From: Copenhagen
    I moved the main HD to my SIL3114 card and took the linux-HD from there and put it into one of the main SATA-ports. Found out that the OS4.1 CD would not boot with no SATA HD's attached to the main SATA-ports.

    With the old main HD on the SIL3114 the OS4.1 install CD boots all the way and I can see my partitions AND access the data :-)

    When I tried using the HDtool in OS4.1 to check my normal main drive (with OS4.1 and MorphOS on DH2) it gave me en error saying that the drive had major errors that needed correcting (probably the hyberloader). I did that and rebooted but that did not make the OS4.1 partitions bootable when I moved it to the main SATA-ports. It just hangs on the OS4.1 boot screen.

    I tried making the MorphOS partition nonbootable but that did not change anything. Still hangs on the OS4.1 boot screen.

    Quote:

    Hangs at bootscreen means the early UBoot screen and not any OS4 specific one I guess ? Did you already try the UBoot menu which is accessed via SPACE key to select OS4 boot manually ?


    It hangs on OS4.1 bootlogo screen. No problems in Uboot :-). Sorry for not beeing completely clear on that.

    Thank you very much for you offer to help me with removing the hyberbootloader but I think I will pass on that for now. I think the safe route is to get a new drive. Move my OS4.1 drive and then reinstall with a separate drive to each OS.

    I will report my findings when I am done.
  • »05.04.20 - 13:47
    Profile