Starting Linux without unplugging Amiga drives

AmigaOne X5000 platform specific issues related to Linux only.
Post Reply
User avatar
Amiguy
Posts: 93
Joined: Mon May 15, 2017 8:01 pm
Location: France

Starting Linux without unplugging Amiga drives

Post by Amiguy »

Hello,

I installed Fienix on an SSD hard drive of my X5000 and am very satisfied.

Currently, I have to plug either my Linux SSD directly to the motherboard or my two Amiga SSDs. I would have liked to use Linux and Amiga without having to disconnect and reconnect the corresponding disks, for example using my PCI Sil3512 port.

When I plug my Amiga disks into the motherboard and my Linux disk into the PCI port, the boot doesn't work because it is hampered by the two Amiga disks which it doesn't know the format (NGFS) and stops.

Isn't there a way to ignore with a U-Boot command the disks in NGFS format to allow Linux to boot?

Thank you in advance for your suggestions.
Amiga 1200 2Mb Chip - PiStorm32 lite - CF 128Gb - Indivision MK3 - GOEX Drive - WB 3.2.2.1
AmigaOne X5000 2Ghz / 8Gb Ram - SSD 2x4Tb - Radeon RX 580 4Gb - Sound Blaster Audigy FX 5.1 SBX - AmigaOS4.1 FE
User avatar
Skateman
Posts: 863
Joined: Thu Aug 10, 2017 8:36 pm
Location: The Netherlands

Re: Starting Linux without unplugging Amiga drives

Post by Skateman »

I bought myself a cheap asmedia sata controller and attached an SSD for running Linux.

Image

Image
AmigaOne X5000 -> 2GHz / 16GB RAM / Radeon RX 570 / Radeon X1950 / M-Audio 5.1 -> AmigaOS / Linux
Amiga 1200 -> Recapped / 68ec020 ACA 1221ec / CF HDD / RetroNET connected to the world
Vampire 4SA - RPi4 Running AmiKitXE Full
User avatar
Amiguy
Posts: 93
Joined: Mon May 15, 2017 8:01 pm
Location: France

Re: Starting Linux without unplugging Amiga drives

Post by Amiguy »

Hi Skateman,

The controller is ordered. I will get back to you as soon as it is assembled and tested.

Thanks again ;)
Amiga 1200 2Mb Chip - PiStorm32 lite - CF 128Gb - Indivision MK3 - GOEX Drive - WB 3.2.2.1
AmigaOne X5000 2Ghz / 8Gb Ram - SSD 2x4Tb - Radeon RX 580 4Gb - Sound Blaster Audigy FX 5.1 SBX - AmigaOS4.1 FE
daz
Beta Tester
Beta Tester
Posts: 329
Joined: Tue Dec 21, 2010 7:32 pm

Re: Starting Linux without unplugging Amiga drives

Post by daz »

Amiguy wrote: Fri Sep 11, 2020 3:25 pm Hello,

I installed Fienix on an SSD hard drive of my X5000 and am very satisfied.

Currently, I have to plug either my Linux SSD directly to the motherboard or my two Amiga SSDs. I would have liked to use Linux and Amiga without having to disconnect and reconnect the corresponding disks, for example using my PCI Sil3512 port.
Why do you need to disconnect/reconnect? Only the AmigaOS disk with your kickstart files on needs to be attached to the motherboard ports. Additional Amiga disks will be detected during boot.

Have you tried with Amiga Boot volume and Linux disk on Motherboard ports and the second Amiga disk on PCI card?

If you really need both Amiga disks attached to the motherboard there two solutions:
1) Plug a USB stick into one of the back usb ports, and store your kernel and dtb on that. You'll find that's what most of us do. Make life a whole lot easier.
2) It's possible to store a kernel in the unused space on the boot SD card. There are instructions on this board somewhere, but it's not for the feint hearted, as you could temporarily brick your machine.
When I plug my Amiga disks into the motherboard and my Linux disk into the PCI port, the boot doesn't work because it is hampered by the two Amiga disks which it doesn't know the format (NGFS) and stops.

Isn't there a way to ignore with a U-Boot command the disks in NGFS format to allow Linux to boot?
U-Boot can't talk to any SATA ports except the ones on the motherboard, and as you've noticed it doesn't understand Amiga RDB partition tables, so can't boot Linux from such a disk. To boot Linux U-Boot needs to be able to load the kernel.

Buying a PCI-e probably won't help either, I suspect there will be the same problems as with your PCI card.
Thank you in advance for your suggestions.
Let us know how you get on

Darren
User avatar
Skateman
Posts: 863
Joined: Thu Aug 10, 2017 8:36 pm
Location: The Netherlands

Re: Starting Linux without unplugging Amiga drives

Post by Skateman »

@DAZ

U-boot can talk to other ports than the onboard sata ports i think. In the Uboot bootargs i specify the controller /dev/

No need for a USB key. i have the Kernel on the SDcard and that it.
AmigaOne X5000 -> 2GHz / 16GB RAM / Radeon RX 570 / Radeon X1950 / M-Audio 5.1 -> AmigaOS / Linux
Amiga 1200 -> Recapped / 68ec020 ACA 1221ec / CF HDD / RetroNET connected to the world
Vampire 4SA - RPi4 Running AmiKitXE Full
daz
Beta Tester
Beta Tester
Posts: 329
Joined: Tue Dec 21, 2010 7:32 pm

Re: Starting Linux without unplugging Amiga drives

Post by daz »

Skateman wrote: Sat Sep 12, 2020 6:08 pm @DAZ

U-boot can talk to other ports than the onboard sata ports i think. In the Uboot bootargs i specify the controller /dev/
I'm referring to loading the kernel i.e. the 'load sata 0 addr uImage' bit - the uImage must be on a drive U-Boot can read. The /dev/sdxx is passed to the kernel once it has started.
No need for a USB key. i have the Kernel on the SDcard and that it.
I did mention that, since you've got it to work perhaps you can list instructions here?

Regards
Darren
User avatar
Skateman
Posts: 863
Joined: Thu Aug 10, 2017 8:36 pm
Location: The Netherlands

Re: Starting Linux without unplugging Amiga drives

Post by Skateman »

daz wrote: Sat Sep 12, 2020 8:25 pm I'm referring to loading the kernel i.e. the 'load sata 0 addr uImage' bit - the uImage must be on a drive U-Boot can read. The /dev/sdxx is passed to the kernel once it has started.
Ah i see... yes you are right.

Setting up the SDcard has been posted on the forum already. I have also used these instructions back then.
When needed i can always help.
AmigaOne X5000 -> 2GHz / 16GB RAM / Radeon RX 570 / Radeon X1950 / M-Audio 5.1 -> AmigaOS / Linux
Amiga 1200 -> Recapped / 68ec020 ACA 1221ec / CF HDD / RetroNET connected to the world
Vampire 4SA - RPi4 Running AmiKitXE Full
User avatar
Amiguy
Posts: 93
Joined: Mon May 15, 2017 8:01 pm
Location: France

Re: Starting Linux without unplugging Amiga drives

Post by Amiguy »

Thanks for putting me on the trail. Thanks to your suggestions, I can now start linux and the Amiga without disconnecting anything and without a USB key. I did not fully understand how the startup of the two systems works.

Initially, I relied on two tips: ... but, indeed, I had not tried booting the Linux SSD on the motherboard sata port, while the second sata port was occupied by the Amiga SSD.

My configuration is therefore the following:

I have two Amiga SSDs and one Linux SSD. The Amiga SSD which contains the kikstart files is connected to the sata1 port. The Linux SSD drive is connected to the sata0 port. The third Amiga SSD drive is attached to the controller board.

The Linux SSD drive is divided into two partitions. A boot partition, named FIENIX-BOOT, and a partition containing the filesystem, named FIENIX-DISK. The boot instructions, when I select Linux boot from the U-Boot menu, allow me to boot from the partition of the FIENIX-BOOT Linux SSD drive.

My booting instructions are as follows:

X5000> setenv linuxboot 'setenv bootargs root=/dev/sda2 ; load sata 1:1 1000000 uImage-5.8 ; load sata 1:1 2000000 cyrus-p5040.dtb ; bootm 1000000 - 2000000'

I therefore confirm that it is not absolutely necessary to start from a USB key. Booting from SSD seems more elegant to me and works.

@Skateman : I have an unused controller for sale. If you're interested ... (just kidding :lol: )

Thanks guys for your help ;)
Amiga 1200 2Mb Chip - PiStorm32 lite - CF 128Gb - Indivision MK3 - GOEX Drive - WB 3.2.2.1
AmigaOne X5000 2Ghz / 8Gb Ram - SSD 2x4Tb - Radeon RX 580 4Gb - Sound Blaster Audigy FX 5.1 SBX - AmigaOS4.1 FE
User avatar
Skateman
Posts: 863
Joined: Thu Aug 10, 2017 8:36 pm
Location: The Netherlands

Re: Starting Linux without unplugging Amiga drives

Post by Skateman »

Amiguy wrote: Sun Sep 13, 2020 12:06 pm @Skateman : I have an unused controller for sale. If you're interested ... (just kidding )
I have my system setup with onboard sata0 AmigaOS4.1 onboard sata1 Fienix-Linux (disconnected the optical drive) PCIe x1 Controller Sata Ubuntu Mate

I have every SSD drive dedicated voor the OS installed.
AmigaOne X5000 -> 2GHz / 16GB RAM / Radeon RX 570 / Radeon X1950 / M-Audio 5.1 -> AmigaOS / Linux
Amiga 1200 -> Recapped / 68ec020 ACA 1221ec / CF HDD / RetroNET connected to the world
Vampire 4SA - RPi4 Running AmiKitXE Full
Post Reply