Re: [Emc-developers] LinuxCNC 2.8.2 Debian 10 Buster PREEMPT-RT ISO can't install Grub

2022-10-02 Thread Alec Ari via Emc-developers
Sorry for all the emails, just wanted to clarify, `isohybrid` comes from the 
`syslinux-utils` package:

https://packages.debian.org/bullseye/amd64/syslinux-utils/filelist

->

/usr/bin/isohybrid

Alec


___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


Re: [Emc-developers] LinuxCNC 2.8.2 Debian 10 Buster PREEMPT-RT ISO can't install Grub

2022-10-02 Thread Alec Ari via Emc-developers
`isohybrid -s 63 -h 255 ` will dual boot. -s 63 -h 255 is to 
ensure compatibility and proper sector/head (geometry) alignment.

Alec


___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


Re: [Emc-developers] LinuxCNC 2.8.2 Debian 10 Buster PREEMPT-RT ISO can't install Grub

2022-10-02 Thread Rod Webster
Alec, Great but how can the Linuxcnc ISO be modified so it works for uefi
and non-uefi images?
I guess that is what Andy would like to achieve.
It's not always possible to disable uefi on newer PC's.

Rod Webster
*1300 896 832*
+61 435 765 611
Vehicle Modifications Network
www.vehiclemods.net.au


On Mon, 3 Oct 2022 at 11:44, Alec Ari via Emc-developers <
emc-developers@lists.sourceforge.net> wrote:

> I should note that if you boot systemrescuecd, to boot using UEFI (not
> legacy) otherwise the ISO will not be able to change the UEFI boot loader
> either.
>
> `isohybrid --uefi ` then disabling CSM in BIOS settings is a
> good way to make sure legacy is not used.
>
> If you installed Debian using legacy (not UEFI) then installing GRUB-PC
> (grub-i386 or whatever) the old fashioned way will suffice:
>
> grub-install --no-floppy --recheck /dev/sda
>
> (change /dev/sda to your block device, do not specify partition)
>
> If doing through systemrescuecd with legacy BIOS, you just need to make
> sure /dev /sys /proc and /boot (if applicable) are mounted, none of these
> need to be recursive if legacy (bind is fine, no need for rbind)
>
> Alec
>
>
> ___
> Emc-developers mailing list
> Emc-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-developers
>

___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


Re: [Emc-developers] LinuxCNC 2.8.2 Debian 10 Buster PREEMPT-RT ISO can't install Grub

2022-10-02 Thread Alec Ari via Emc-developers
I should note that if you boot systemrescuecd, to boot using UEFI (not legacy) 
otherwise the ISO will not be able to change the UEFI boot loader either.

`isohybrid --uefi ` then disabling CSM in BIOS settings is a good 
way to make sure legacy is not used.

If you installed Debian using legacy (not UEFI) then installing GRUB-PC 
(grub-i386 or whatever) the old fashioned way will suffice:

grub-install --no-floppy --recheck /dev/sda

(change /dev/sda to your block device, do not specify partition)

If doing through systemrescuecd with legacy BIOS, you just need to make sure 
/dev /sys /proc and /boot (if applicable) are mounted, none of these need to be 
recursive if legacy (bind is fine, no need for rbind)

Alec


___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


Re: [Emc-developers] LinuxCNC 2.8.2 Debian 10 Buster PREEMPT-RT ISO can't install Grub

2022-10-02 Thread Alec Ari via Emc-developers
In short,

PREEMPT_RT disabled EFI runtime, meaning efibootmgr does not work. GRUB uses 
efibootmgr to set the UEFI boot loader to itself and manages this internally by 
`grub-install`

1.) Set `efi=runtime` on kernel command line (not required if using 
systemrescuecd)

2.) Boot into Debian. If you do not have access to the Debian system due to 
boot loader not being installed correctly or missing, then:

2b.) Boot systemrescuecd

2c.) Mount Debian root filesystem, EFI partition and boot partition. i.e.

/dev/sda1 - 100MB - EFI system partition (/efi)
/dev/sda2 - 2GB - Linux filesystem (/boot)
/dev/sda3 - 100GB - Linux root filesystem (x86-64) (/)

With the above partition layout (`fdisk -l` to print current table) chroot and 
mount like so:

mkdir -p /mnt/debian
mount /dev/sda3 /mnt/debian
mount /dev/sda1 /mnt/debian/efi
mount /dev/sda2 /mnt/debian/boot
mount -t proc none /mnt/debian/proc
mount --rbind /dev /mnt/debian/dev
mount --rbind /sys /mnt/debian/sys
mount --bind /run /mnt/debian/run
chroot /mnt/debian /bin/bash
source /etc/profile && ldconfig

Note `bind` for /run and `rbind` for /dev and /sys this is so /dev and /sys and 
mounted recursively (i.e. /sys/firmware and /sys/firmware/efivars are mounted 
too)

3.) Install GRUB with UEFI:

grub-install --target=x86_64-efi --efi-directory=/efi

4.) Generate GRUB config file:

grub-mkconfig -o /boot/grub/grub.cfg

Change EFI path and all partitions accordingly.

Alec


___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


Re: [Emc-developers] LinuxCNC 2.8.2 Debian 10 Buster PREEMPT-RT ISO can't install Grub

2022-10-02 Thread lcnc

I tried again on virtualbox with no network adapter. No uefi.
No problem with grub.

And again with boot the iso from boot menu.
No problem with grub.

So far,
Joachim

Am 02.10.22 um 00:37 schrieb Sam Sokolik:

I have had issues installing debian from the boot menu..  but so far - the
installer when you boot into the live has worked every time.

On Sat, Oct 1, 2022, 1:06 PM  wrote:


I just installed from the 2.8.4 ISO in a virtual machine
(virtual box) with a network card active, but no connected
ethernet cable, with success. No problems with grub.

Joachim

Am 01.10.22 um 13:06 schrieb andy pugh:

On Sat, 7 Aug 2021 at 13:47, Rod Webster  wrote:


Just a heads up. It looks like the Buster ISO has a dependency for Grub
that has to be installed from the network while installing. The install
fails at this point in an endless loop and no way to boot the machine if
you don't have internet access during the installation.


I would assume that this is still the case with the 2.8.4 ISO?

Does anyone know of a viable solution?




___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers



___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

.




___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


Re: [Emc-developers] LinuxCNC 2.8.2 Debian 10 Buster PREEMPT-RT ISO can't install Grub

2022-10-01 Thread Rod Webster
My solution was to upgrade to a later version of Debian with NIC driver
support.
I don't think installing with a disconnected NIC would test the condition,
you would need to test with an unsupported NIC or maybe no NIC installed.
The hardware I used is no longer available (Odroid H2+) so its not a real
concern

The release of 2.9 will solve the issue as kernel 5.9 and up support the
2.5gb NICs but have their own issues with network latency with Mesa
ethernet boards mostly with Realtek NIC's. This causes an error finishing
read that disables the mesa card. Peter Wallace seems to think this was
some bug introduced in the kernel but  has been resolved in V6 of the
kernel. I think that will become Kernel V5.20 when released so hopefully
that finds its way into Bookworm before the official release as the stable
Debian version. (Bookworm is currently on kernel 5.19). Peter has suggested
that
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_idle.max_cstate=1
processor.max_cstate=1 idle=poll i915.enable_dc=0"
might help resolve the issue but I have yet to test that.
Sorry to go a bit off topic.

Rod Webster
*1300 896 832*
+61 435 765 611
Vehicle Modifications Network
www.vehiclemods.net.au


On Sun, 2 Oct 2022 at 09:38, Sam Sokolik  wrote:

> I have had issues installing debian from the boot menu..  but so far - the
> installer when you boot into the live has worked every time.
>
> On Sat, Oct 1, 2022, 1:06 PM  wrote:
>
> > I just installed from the 2.8.4 ISO in a virtual machine
> > (virtual box) with a network card active, but no connected
> > ethernet cable, with success. No problems with grub.
> >
> > Joachim
> >
> > Am 01.10.22 um 13:06 schrieb andy pugh:
> > > On Sat, 7 Aug 2021 at 13:47, Rod Webster  wrote:
> > >>
> > >> Just a heads up. It looks like the Buster ISO has a dependency for
> Grub
> > >> that has to be installed from the network while installing. The
> install
> > >> fails at this point in an endless loop and no way to boot the machine
> if
> > >> you don't have internet access during the installation.
> > >
> > > I would assume that this is still the case with the 2.8.4 ISO?
> > >
> > > Does anyone know of a viable solution?
> > >
> >
> >
> > ___
> > Emc-developers mailing list
> > Emc-developers@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/emc-developers
> >
>
> ___
> Emc-developers mailing list
> Emc-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-developers
>

___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


Re: [Emc-developers] LinuxCNC 2.8.2 Debian 10 Buster PREEMPT-RT ISO can't install Grub

2022-10-01 Thread Sam Sokolik
I have had issues installing debian from the boot menu..  but so far - the
installer when you boot into the live has worked every time.

On Sat, Oct 1, 2022, 1:06 PM  wrote:

> I just installed from the 2.8.4 ISO in a virtual machine
> (virtual box) with a network card active, but no connected
> ethernet cable, with success. No problems with grub.
>
> Joachim
>
> Am 01.10.22 um 13:06 schrieb andy pugh:
> > On Sat, 7 Aug 2021 at 13:47, Rod Webster  wrote:
> >>
> >> Just a heads up. It looks like the Buster ISO has a dependency for Grub
> >> that has to be installed from the network while installing. The install
> >> fails at this point in an endless loop and no way to boot the machine if
> >> you don't have internet access during the installation.
> >
> > I would assume that this is still the case with the 2.8.4 ISO?
> >
> > Does anyone know of a viable solution?
> >
>
>
> ___
> Emc-developers mailing list
> Emc-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-developers
>

___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


Re: [Emc-developers] LinuxCNC 2.8.2 Debian 10 Buster PREEMPT-RT ISO can't install Grub

2022-10-01 Thread lcnc

I just installed from the 2.8.4 ISO in a virtual machine
(virtual box) with a network card active, but no connected
ethernet cable, with success. No problems with grub.

Joachim

Am 01.10.22 um 13:06 schrieb andy pugh:

On Sat, 7 Aug 2021 at 13:47, Rod Webster  wrote:


Just a heads up. It looks like the Buster ISO has a dependency for Grub
that has to be installed from the network while installing. The install
fails at this point in an endless loop and no way to boot the machine if
you don't have internet access during the installation.


I would assume that this is still the case with the 2.8.4 ISO?

Does anyone know of a viable solution?




___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


Re: [Emc-developers] LinuxCNC 2.8.2 Debian 10 Buster PREEMPT-RT ISO can't install Grub

2022-10-01 Thread andy pugh
On Sat, 7 Aug 2021 at 13:47, Rod Webster  wrote:
>
> Just a heads up. It looks like the Buster ISO has a dependency for Grub
> that has to be installed from the network while installing. The install
> fails at this point in an endless loop and no way to boot the machine if
> you don't have internet access during the installation.

I would assume that this is still the case with the 2.8.4 ISO?

Does anyone know of a viable solution?

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1912


___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers