Booting IPFire from USB

Post Reply
mars24568
Posts: 5
Joined: Mon Jan 07, 2019 5:59 am
languages_spoken: english, german
ODROIDs: 3xHC1, 1xH2
Has thanked: 0
Been thanked: 0
Contact:

Booting IPFire from USB

Unread post by mars24568 » Sun Jul 07, 2019 3:39 am

Hi,

i would like to install IPFire (http://ipfire.org) on the H2. I've created an USB Stick with the installation iso file. This stick boots ok in "normal" 64bit Computers, but when plugged into the H2 i only get a blank screen with cursor, then the systems hangs.
On the other hand i was able to boot lot of other distros (debian, ubuntu, pfsense) with this method on the H2.

Does this have something to do with secure boot? I suspect i'm missing something really fundamental here. Any hints?

Markus

User avatar
mad_ady
Posts: 6390
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 146 times
Been thanked: 109 times
Contact:

Re: Booting IPFire from USB

Unread post by mad_ady » Sun Jul 07, 2019 3:44 am

The iso needs to suppor uefi boot. H2 sadly doesn't support legacy bios.

mars24568
Posts: 5
Joined: Mon Jan 07, 2019 5:59 am
languages_spoken: english, german
ODROIDs: 3xHC1, 1xH2
Has thanked: 0
Been thanked: 0
Contact:

Re: Booting IPFire from USB

Unread post by mars24568 » Sun Jul 07, 2019 3:56 am

Ok. Since it does only have an EFI partition, i assume it does not support uefi. Is there any way to tweak the image in a way that it supports uefi?

fvolk
Posts: 284
Joined: Sun Jun 05, 2016 11:04 pm
languages_spoken: english
ODROIDs: C2, HC1, H2
Has thanked: 0
Been thanked: 9 times
Contact:

Re: Booting IPFire from USB

Unread post by fvolk » Sun Jul 07, 2019 5:41 am

mars24568 wrote: but when plugged into the H2 i only get a blank screen with cursor, then the systems hangs.
Grub version too old for H2 UEFI?
H2 requires Grub 2.04 - or older Grub 2.02 with "certain patches" some distributions include and some not.
(Spent a lot of time trying with same symptoms until with a Grub 2.04 RC all my boot problems magically went away, see old thread -> viewtopic.php?f=170&t=33469#p252705 )

mars24568
Posts: 5
Joined: Mon Jan 07, 2019 5:59 am
languages_spoken: english, german
ODROIDs: 3xHC1, 1xH2
Has thanked: 0
Been thanked: 0
Contact:

Re: Booting IPFire from USB

Unread post by mars24568 » Sun Jul 07, 2019 6:49 am

@fvolk: that seems to be true. I was able to boot the IPFire Installer by first booting an actual debian setup, going to the command line of grub and then manually starting the ipfire setup... Thanks for pointing me in the right direction!

dr-rox
Posts: 6
Joined: Fri Apr 12, 2019 3:26 am
languages_spoken: english
ODROIDs: HC1, N2, H2
Has thanked: 0
Been thanked: 2 times
Contact:

Re: Booting IPFire from USB

Unread post by dr-rox » Thu Aug 01, 2019 3:12 am

How to persist the boot? I can boot it from grub efi on my USB drive, but I always need to do the ls and configfile(hd2,msdos1)/grub/grub.cfg How can I set the configfile by default so it would boot into menu?

User avatar
mad_ady
Posts: 6390
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 146 times
Been thanked: 109 times
Contact:

Re: Booting IPFire from USB

Unread post by mad_ady » Thu Aug 01, 2019 3:39 am

I think efi needs a gpt partition table to be able to boot. You're loading grub config from a msdos partition table. Maybe that's the issue?

dr-rox
Posts: 6
Joined: Fri Apr 12, 2019 3:26 am
languages_spoken: english
ODROIDs: HC1, N2, H2
Has thanked: 0
Been thanked: 2 times
Contact:

Re: Booting IPFire from USB

Unread post by dr-rox » Thu Aug 01, 2019 4:24 am

What I did is I've copied grubx64.efi from Debian Buster CD to IPFire's /efi/boot partition, which is mounted there to /boot/efi. So the path is /boot/efi/EFI/BOOT. Now when I restart, grub console starts where I need to do all the ls and configfile typing. Where grub is looking the config file by default? Maybe I need to put it into the EFI folder too?

dr-rox
Posts: 6
Joined: Fri Apr 12, 2019 3:26 am
languages_spoken: english
ODROIDs: HC1, N2, H2
Has thanked: 0
Been thanked: 2 times
Contact:

Re: Booting IPFire from USB

Unread post by dr-rox » Thu Aug 01, 2019 4:35 am

Oh damn, I made it boot permanetely :) So this is what I did:

Took Debian Buster CD image and copied it's EFI/boot/grubx64.efi to IPFire's /boot/efi/EFI/BOOT folder
Renamed copied grubx64.efi to bootx64.efi
Created folder named debian in /boot/efi/EFI folder
Copied /boot/grub/grub.cfg file to newly created /boot/efi/EFI/debian folder

And now it boots! So looks like debian's grub had it's config file location hardcoded in the grub efi file.

This is not very good if kernel get's updated, as new values needs to be put into grub.cfg, but as I understand IPFire doesn't have any upgrade features, so it's fine to leave it as is.
These users thanked the author dr-rox for the post:
odroid (Thu Aug 01, 2019 10:40 am)

Post Reply

Return to “Other OS”

Who is online

Users browsing this forum: No registered users and 0 guests