Re: GRUB doesn't install

2020-07-26 Thread Romain Dolbeau
Le sam. 25 juil. 2020 à 20:48, Mark Cave-Ayland
 a écrit :
> -prom-env 'boot-device=hd:,\\BootX'

Nope; however going for the full paths (both device from syslog and
file from looking in the partition - turns out it mirrors OSX's
bootloader) like this:

-prom-env 
'boot-device=/pci@f200/mac-io@c/ata-3@2/@0:2,\System\Library\CoreServices\BootX'

loaded grub, so it's on the drive. At that point there's no grub.cfg,
so you just get the command-line. Instead of figuring out how to load
the kernel, I just re-booted the VM with -kernel/-initrd/-append, then
re-installed grub (it re-failed with the same error, of course), then
did a manual update-grub to get the grub.cfg.

After that, using the '-prom-env' above allowed me to boot the VM
directly. There were some errors/warnings from the firmware it seems,
but I eventually got a login prompt.

Out of curiosity, I installed a newer kernel (the CD installer used
5.6, I added 5.7), install was flawless including the update of
grub.cfg, and the VM rebooted directly on 5.7.

So it seems if qemu let 'nvsetenv' do its thing, the installer would
have no issue (at least with this particular firmware/qemu
combination).

Cordially,

-- 
Romain Dolbeau



Re: GRUB doesn't install

2020-07-25 Thread John Paul Adrian Glaubitz
On 7/25/20 11:54 AM, Mark Cave-Ayland wrote:
> That's complaining that nvsetenv fails which is because QEMU doesn't emulate
> persistent NVRAM so that is to be expected (and indeed, yaboot raised an 
> error in
> exactly the same way during installation).

Okay, then it's not surprising that grub-install fails. The emulation
here is just incomplete here then.

> First thing to ask is does your newly created vm-ppc HD image boot when you 
> change
> the "-boot" parameter to "-boot c"?
You can just skip the failed installation of GRUB and continue with no 
bootloader.

Then extract kernel and initrd from the VM image and pass them to QEMU with
"-kernel" and "-initrd" respectively.

You don't really need bootloader for a QEMU anyway as you can always specify
kernel and initrd through parameters as explained above.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaub...@debian.org
`. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
  `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



Re: GRUB doesn't install

2020-07-25 Thread Mark Cave-Ayland
On 25/07/2020 18:16, Romain Dolbeau wrote:

> Le sam. 25 juil. 2020 à 11:55, Mark Cave-Ayland
>  a écrit :
>> First thing to ask is does your newly created vm-ppc HD image boot when you 
>> change
>> the "-boot" parameter to "-boot c"?
> 
> Nope, couldn't get it to boot with just 'c' or the parameters I listed
> (... after removing the '-cdrom XXX' parameter, otherwise it boots the
> installer).

Okay so it seems like OpenBIOS can't locate the bootloader on its own. Does it 
work
if you try adding the following to the QEMU command line:

-prom-env 'boot-device=hd:,\\BootX'

or:

-prom-env 'boot-device=hd:,\BootX'


ATB,

Mark.



Re: GRUB doesn't install

2020-07-25 Thread Romain Dolbeau
Le sam. 25 juil. 2020 à 11:55, Mark Cave-Ayland
 a écrit :
> First thing to ask is does your newly created vm-ppc HD image boot when you 
> change
> the "-boot" parameter to "-boot c"?

Nope, couldn't get it to boot with just 'c' or the parameters I listed
(... after removing the '-cdrom XXX' parameter, otherwise it boots the
installer).

Cordially,

-- 
Romain Dolbeau



Re: GRUB doesn't install

2020-07-25 Thread Mark Cave-Ayland
On 25/07/2020 10:02, Romain Dolbeau wrote:

> Le mer. 22 juil. 2020 à 18:01, John Paul Adrian Glaubitz
>  a écrit :
>> Use scp.
> 
> Or 'cp' to /target, and then mount /target from the VM host.
> 
> Attached is the syslog from attempting to install in a QEMU VM
> (similar to David's); GRUB fails to install for me as well. This is
> with Mark's OpenBIOS.
> 
> Self-compiler qemu 4.2.0 started with:
> 
> $QEMU/bin/qemu-system-ppc \
> -monitor stdio \
> -M mac99 -machine accel=tcg -m 1G \
> -cdrom ./debian-10.0.0-powerpc-NETINST-1.iso \
> -hda  /dev/zvol/x10drldatapool/vm-ppc \
> -boot order=dc,menu=on \
> -net nic,macaddr=00:a2:6d:80:10:8f,model=rtl8139 -net user \
> -rtc base=localtime \
> -bios openbios-ppc-grubfix \
> -vnc :1
> 
> Hope this helps.

Thanks Romain! AFAICT the only errors related to grub are these:

Jul 25 08:52:06 grub-installer: info: Installing grub on 'dummy'
Jul 25 08:52:07 grub-installer: info: grub-install does not support --no-floppy
Jul 25 08:52:07 grub-installer: info: Running chroot /target grub-install  
--force
--macppc-directory=/boot/grub
Jul 25 08:52:08 grub-installer: Installing for powerpc-ieee1275 platform.
Jul 25 08:52:15 grub-installer: No common Block found
Jul 25 08:52:15 grub-installer: grub-install: error: `nvsetenv' failed.
Jul 25 08:52:15 grub-installer: You will have to set `boot-device' variable 
manually.
 At the IEEE1275 prompt, type:
Jul 25 08:52:15 grub-installer:   setenv boot-device
/pci@f200/mac-io@c/ata-3@2/@0:2,\\BootX
Jul 25 08:52:15 grub-installer: .
Jul 25 08:52:16 grub-installer: error: Running 'grub-install  --force
--macppc-directory=/boot/grub' failed.

That's complaining that nvsetenv fails which is because QEMU doesn't emulate
persistent NVRAM so that is to be expected (and indeed, yaboot raised an error 
in
exactly the same way during installation).

First thing to ask is does your newly created vm-ppc HD image boot when you 
change
the "-boot" parameter to "-boot c"?


ATB,

Mark.



Re: GRUB doesn't install

2020-07-25 Thread Romain Dolbeau
Le mer. 22 juil. 2020 à 18:01, John Paul Adrian Glaubitz
 a écrit :
> Use scp.

Or 'cp' to /target, and then mount /target from the VM host.

Attached is the syslog from attempting to install in a QEMU VM
(similar to David's); GRUB fails to install for me as well. This is
with Mark's OpenBIOS.

Self-compiler qemu 4.2.0 started with:

$QEMU/bin/qemu-system-ppc \
-monitor stdio \
-M mac99 -machine accel=tcg -m 1G \
-cdrom ./debian-10.0.0-powerpc-NETINST-1.iso \
-hda  /dev/zvol/x10drldatapool/vm-ppc \
-boot order=dc,menu=on \
-net nic,macaddr=00:a2:6d:80:10:8f,model=rtl8139 -net user \
-rtc base=localtime \
-bios openbios-ppc-grubfix \
-vnc :1

Hope this helps.

Cordially,

-- 
Romain Dolbeau


syslog.gz
Description: application/gzip


Re: GRUB doesn't install

2020-07-23 Thread Mark Cave-Ayland
On 23/07/2020 18:47, Dennis Clarke wrote:

>> For /var/log/syslog, I don't know how to catch it. I can't boot the
>> virtual machine as GRUB did not install. I tried to mount the qcow2
>> image with libqcow-utils but it did not work. I will make a new
>> installation (3-4 hours) if I find how to catch the log.
>>
> 
> I did give a try at your above ( strange ) stuff and not much works
> for me at all. I don't know quite why but I don't see a reason to keep
> poking it with a stick either.  The installer works great for ppc64
> across a number of configs and also on real hardware. Sorry.
> 
> I did try a number of silly things however.
> 
> ppc64@styx:~$
> ppc64@styx:~$ ls
> ppc64le.qcow2  ppc64le.sh  ppc64.qcow2  readme  resources
> ppc64@styx:~$ ls resources/
> debian-10.0.0-powerpc-NETINST-1.iso  openbios-ppc-grubfix
> debian-10.0.0-ppc64-NETINST-1.iso
> ppc64@styx:~$
> ppc64@styx:~$ ls /usr/local/bin/*ppc*
> /usr/local/bin/qemu-ppc /usr/local/bin/qemu-ppc64le
> /usr/local/bin/qemu-ppc64   /usr/local/bin/qemu-system-ppc
> /usr/local/bin/qemu-ppc64abi32  /usr/local/bin/qemu-system-ppc64
> ppc64@styx:~$
> ppc64@styx:~$
> ppc64@styx:~$
> ppc64@styx:~$ uname -a
> Linux styx 4.19.0-9-amd64 #1 SMP Debian 4.19.118-2+deb10u1 (2020-06-07)
> x86_64 GNU/Linux
> ppc64@styx:~$ /usr/local/bin/qemu-system-ppc --version
> QEMU emulator version 5.0.90 (v5.1.0-rc0-66-g1e6c50ad85-dirty)
> Copyright (c) 2003-2020 Fabrice Bellard and the QEMU Project developers
> ppc64@styx:~$
> ppc64@styx:~$ /usr/local/bin/qemu-system-ppc \
>> -monitor stdio -M mac99 -k fr -machine accel=tcg \
>> -m 512 \
>> -cdrom ./resources/debian-10.0.0-powerpc-NETINST-1.iso \
>> -hda ppc64.qcow2 \
>> -virtfs
> local,id=shared_folder_dev_0,path=/home/ppc64,security_model=none,mount_tag=shared0
> \
>> -boot once=c,menu=on \
>> -net nic,macaddr=00:a2:6d:80:10:8f,model=rtl8139 \
>> -net user -net user,smb=/home/ppc64 \
>> -rtc base=localtime -name "Debian + LXDE sur iMac G3" \
>> -bios /home/ppc64/resources/openbios-ppc-grubfix
> qemu-system-ppc: Could not find '/usr/sbin/smbd', please install it
> ppc64@styx:~$
> 
> ppc64@styx:~$
> ppc64@styx:~$ /usr/local/bin/qemu-system-ppc \
>> -M mac99 -machine accel=tcg \
>> -cdrom ./resources/debian-10.0.0-powerpc-NETINST-1.iso \
>> -hda ppc64.qcow2 -boot once=c,menu=on \
>> -bios /home/ppc64/resources/openbios-ppc-grubfix \
>> -name "Debian + LXDE sur iMac G3" \
>> -serial stdio -display none -vga none
> 
>>> =
>>> OpenBIOS 1.1 [Jul 18 2020 08:00]
>>> Configuration device id QEMU version 1 machine id 1
>>> CPUs: 1
>>> Memory: 128M
>>> UUID: ----
>>> CPU type PowerPC,G4
> milliseconds isn't unique.
> Output device screen not found.
> Output device screen not found.
> Trying hd:,\\:tbxi...
> Trying hd:,\ppc\bootinfo.txt...
> Trying hd:,%BOOT...
> No valid state has been set by load or init-program
> 
> 0 >
> 
> ppc64@styx:~$
> ppc64@styx:~$ /usr/local/bin/qemu-system-ppc \
>> -M mac99 -hda ppc64.qcow2 \
>> -cdrom ./resources/debian-10.0.0-powerpc-NETINST-1.iso \
>> -boot menu=on -serial stdio -display none -vga none
> 
>>> =
>>> OpenBIOS 1.1 [Jul 7 2020 17:30]
>>> Configuration device id QEMU version 1 machine id 1
>>> CPUs: 1
>>> Memory: 128M
>>> UUID: ----
>>> CPU type PowerPC,G4
> milliseconds isn't unique.
> Output device screen not found.
> Output device screen not found.
> Trying hd:,\\:tbxi...
> Trying hd:,\ppc\bootinfo.txt...
> Trying hd:,%BOOT...
> No valid state has been set by load or init-program
> 
> 0 > qemu-system-ppc: terminating on signal 2
> ppc64@styx:~$
> 
> ppc64@styx:~$ /usr/local/bin/qemu-system-ppc \
>> -M mac99 -hda ppc64.qcow2 -boot d \
>> -cdrom ./resources/debian-10.0.0-powerpc-NETINST-1.iso \
>> -boot menu=on -serial stdio -display none -vga none
> 
>>> =
>>> OpenBIOS 1.1 [Jul 7 2020 17:30]
>>> Configuration device id QEMU version 1 machine id 1
>>> CPUs: 1
>>> Memory: 128M
>>> UUID: ----
>>> CPU type PowerPC,G4
> milliseconds isn't unique.
> Output device screen not found.
> Output device screen not found.
> Trying cd:,\\:tbxi...
>>> switching to new context:
> Output device screen not found.
> NULL ihandleNULL ihandleNULL ihandleNULL ihandleNULL ihandleNULL
> ihandleNULL ihandleNULL ihandleNULL ihandle
> Unexpected client interface exception: -2
> call-method block-size: exception -21
>>> call-method block-size failed with error ffdf
> call-method block-size: exception -21
>>> call-method block-size failed with error ffdf
> qemu-system-ppc: terminating on signal 2
> ppc64@styx:~$
> 
> 
> right ... this is going no where fast.  Sorry.

Yeah, those commmand lines are not right - certainly some of those boot options 
won't
work correctly outside of an x86 world. There are some good examples on the 

Re: GRUB doesn't install

2020-07-23 Thread Dennis Clarke
On 7/20/20 3:21 PM, David VANTYGHEM wrote:
> Le 20/07/2020 à 15:18, John Paul Adrian Glaubitz a écrit :
>> On 7/20/20 12:57 PM, David VANTYGHEM wrote:
>>> and at the end of the installation, GRUB doesn't install :
>>> http://dl.free.fr/jG1llNJtk
>> I don't speak French, so a French error message won't help much.
>>
>> Also, I need the contents of /var/log/syslog, as this message basically
>> just says that the GRUB installation failed.
>>
>> I also need to know which image was used and what the machine configuration
>> was.
>>
>> Adrian
>>
> The image is this :
> https://cdimage.debian.org/cdimage/ports/2020-05-30/debian-10.0.0-powerpc-NETINST-1.iso
> 
> And I'm using this BIOS :
> https://www.ilande.co.uk/tmp/qemu/openbios-ppc-grubfix
> 
> The machine configuration is :
> 
> /usr/bin/qemu-system-ppc \
> 
> -monitor stdio \
> 
> -M mac99 \
> 
> -k fr \
> 
> -machine accel=tcg \
> 
> -m 512 \
> 
> -cdrom /home/david/Bureau/debian-10.0.0-powerpc-NETINST-1.iso \
> 
> -hda /home/david/Documents/Informatique et téléphone/Documentation
> informatique/Macintosh/Debian_10_LXDE \
> 
> -virtfs
> local,id=shared_folder_dev_0,path=/home/david/Bureau,security_model=none,mount_tag=shared0
> \
> 
> -boot once=c,menu=on \
> 
> -net nic,macaddr=00:a2:6d:80:10:8f,model=rtl8139 \
> 
> -net user \
> 
> -net user,smb=/home/david/Bureau \
> 
> -rtc base=localtime \
> 
> -name "Debian + LXDE sur iMac G3" \
> 
> -bios /home/david/Bureau/openbios-ppc-grubfix
> 
> For /var/log/syslog, I don't know how to catch it. I can't boot the
> virtual machine as GRUB did not install. I tried to mount the qcow2
> image with libqcow-utils but it did not work. I will make a new
> installation (3-4 hours) if I find how to catch the log.
> 

I did give a try at your above ( strange ) stuff and not much works
for me at all. I don't know quite why but I don't see a reason to keep
poking it with a stick either.  The installer works great for ppc64
across a number of configs and also on real hardware. Sorry.

I did try a number of silly things however.

ppc64@styx:~$
ppc64@styx:~$ ls
ppc64le.qcow2  ppc64le.sh  ppc64.qcow2  readme  resources
ppc64@styx:~$ ls resources/
debian-10.0.0-powerpc-NETINST-1.iso  openbios-ppc-grubfix
debian-10.0.0-ppc64-NETINST-1.iso
ppc64@styx:~$
ppc64@styx:~$ ls /usr/local/bin/*ppc*
/usr/local/bin/qemu-ppc /usr/local/bin/qemu-ppc64le
/usr/local/bin/qemu-ppc64   /usr/local/bin/qemu-system-ppc
/usr/local/bin/qemu-ppc64abi32  /usr/local/bin/qemu-system-ppc64
ppc64@styx:~$
ppc64@styx:~$
ppc64@styx:~$
ppc64@styx:~$ uname -a
Linux styx 4.19.0-9-amd64 #1 SMP Debian 4.19.118-2+deb10u1 (2020-06-07)
x86_64 GNU/Linux
ppc64@styx:~$ /usr/local/bin/qemu-system-ppc --version
QEMU emulator version 5.0.90 (v5.1.0-rc0-66-g1e6c50ad85-dirty)
Copyright (c) 2003-2020 Fabrice Bellard and the QEMU Project developers
ppc64@styx:~$
ppc64@styx:~$ /usr/local/bin/qemu-system-ppc \
> -monitor stdio -M mac99 -k fr -machine accel=tcg \
> -m 512 \
> -cdrom ./resources/debian-10.0.0-powerpc-NETINST-1.iso \
> -hda ppc64.qcow2 \
> -virtfs
local,id=shared_folder_dev_0,path=/home/ppc64,security_model=none,mount_tag=shared0
\
> -boot once=c,menu=on \
> -net nic,macaddr=00:a2:6d:80:10:8f,model=rtl8139 \
> -net user -net user,smb=/home/ppc64 \
> -rtc base=localtime -name "Debian + LXDE sur iMac G3" \
> -bios /home/ppc64/resources/openbios-ppc-grubfix
qemu-system-ppc: Could not find '/usr/sbin/smbd', please install it
ppc64@styx:~$

ppc64@styx:~$
ppc64@styx:~$ /usr/local/bin/qemu-system-ppc \
> -M mac99 -machine accel=tcg \
> -cdrom ./resources/debian-10.0.0-powerpc-NETINST-1.iso \
> -hda ppc64.qcow2 -boot once=c,menu=on \
> -bios /home/ppc64/resources/openbios-ppc-grubfix \
> -name "Debian + LXDE sur iMac G3" \
> -serial stdio -display none -vga none

>> =
>> OpenBIOS 1.1 [Jul 18 2020 08:00]
>> Configuration device id QEMU version 1 machine id 1
>> CPUs: 1
>> Memory: 128M
>> UUID: ----
>> CPU type PowerPC,G4
milliseconds isn't unique.
Output device screen not found.
Output device screen not found.
Trying hd:,\\:tbxi...
Trying hd:,\ppc\bootinfo.txt...
Trying hd:,%BOOT...
No valid state has been set by load or init-program

0 >

ppc64@styx:~$
ppc64@styx:~$ /usr/local/bin/qemu-system-ppc \
> -M mac99 -hda ppc64.qcow2 \
> -cdrom ./resources/debian-10.0.0-powerpc-NETINST-1.iso \
> -boot menu=on -serial stdio -display none -vga none

>> =
>> OpenBIOS 1.1 [Jul 7 2020 17:30]
>> Configuration device id QEMU version 1 machine id 1
>> CPUs: 1
>> Memory: 128M
>> UUID: ----
>> CPU type PowerPC,G4
milliseconds isn't unique.
Output device screen not found.
Output device screen not found.
Trying hd:,\\:tbxi...
Trying hd:,\ppc\bootinfo.txt...
Trying hd:,%BOOT...
No valid state has been set by load or init-program

0 > qemu-system-ppc: terminating on signal 2
ppc64@styx:~$

ppc64@styx:~$ 

Re: GRUB doesn't install

2020-07-22 Thread John Paul Adrian Glaubitz
On 7/22/20 6:31 PM, David VANTYGHEM wrote:
> apt-install refused to install mc or scp or anything, saying apt-install
> is already running or something like it.

You cannot use apt within the installation environment.

> I went to the end of the installation and... the VM rebooted.
> 
> Sorry, but I'm giving up.

I'm pretty sure that SCP is already available in the installer environment.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaub...@debian.org
`. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
  `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



Re: GRUB doesn't install

2020-07-22 Thread David VANTYGHEM


Le 22/07/2020 à 18:01, John Paul Adrian Glaubitz a écrit :
> On 7/22/20 6:00 PM, David VANTYGHEM wrote:
>> I dont know how to :o(
>>
>> I tried to mount a local shared folder with 9P but it doesn't work. I'm
>> trying to copy it by FTP with mc but mc doesn't start (strange because I
>> can install it with apt-install mc).
> Use scp.
>
> Adrian
>
apt-install refused to install mc or scp or anything, saying apt-install
is already running or something like it.

I went to the end of the installation and... the VM rebooted.

Sorry, but I'm giving up.

-- 
Installer facilement Linux : http://infolib.re

.--.
   |o_o |
   ||_/ |
  //\\Envoyé depuis mon Linux
 (|  |)
/ \_   _/ \
\___)=(___/



Re: GRUB doesn't install

2020-07-22 Thread John Paul Adrian Glaubitz
On 7/22/20 6:00 PM, David VANTYGHEM wrote:
> I dont know how to :o(
> 
> I tried to mount a local shared folder with 9P but it doesn't work. I'm
> trying to copy it by FTP with mc but mc doesn't start (strange because I
> can install it with apt-install mc).

Use scp.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaub...@debian.org
`. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
  `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



Re: GRUB doesn't install

2020-07-22 Thread David VANTYGHEM


Le 22/07/2020 à 17:57, John Paul Adrian Glaubitz a écrit :
> On 7/22/20 5:35 PM, David VANTYGHEM wrote:
>> Ask me if you need lines before.
> Can you please send the whole log file? Having to ask you
> for every line is not helpful.
>
I dont know how to :o(

I tried to mount a local shared folder with 9P but it doesn't work. I'm
trying to copy it by FTP with mc but mc doesn't start (strange because I
can install it with apt-install mc).

-- 
Installer facilement Linux : http://infolib.re

.--.
   |o_o |
   ||_/ |
  //\\Envoyé depuis mon Linux
 (|  |)
/ \_   _/ \
\___)=(___/



Re: GRUB doesn't install

2020-07-22 Thread John Paul Adrian Glaubitz
On 7/22/20 5:35 PM, David VANTYGHEM wrote:
> Ask me if you need lines before.

Can you please send the whole log file? Having to ask you
for every line is not helpful.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaub...@debian.org
`. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
  `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



Re: GRUB doesn't install

2020-07-22 Thread David VANTYGHEM


> If that doesn't work either, go back to the main menu after the installation 
> has
> failed and then go to "Execute a shell" and access the syslog this way.

Aaaah ! I did not understand and see this option in the menu. Thank you.

A screenshot of the last lines in /var/log/system :
https://drop.infini.fr/r/jEkYMhh6_J#mY0pv8yxJ47Ny535epJMBur7ChbbI/F52BzefLTtJCk=

Ask me if you need lines before.

-- 
Installer facilement Linux : http://infolib.re

.--.
   |o_o |
   ||_/ |
  //\\Envoyé depuis mon Linux
 (|  |)
/ \_   _/ \
\___)=(___/



Re: GRUB doesn't install

2020-07-22 Thread John Paul Adrian Glaubitz


> On Jul 22, 2020, at 11:25 AM, David VANTYGHEM  
> wrote:
> I found something that could work. I started my VM with -monitor stdio option 
> and then I had the qemu shell. With the qemu command sendkey ctrl-alt-f2, 
> sendkey ctrl-alt-f1, I can switch to terminal in VM. I make a new install, 
> result in a few hours maybe...
> 
Like I said, you can also execute a shell from the main menu after the 
installation has failed to access the syslog file.

And please don’t forget to choose English as the installation language.

Adrian

Re: GRUB doesn't install

2020-07-22 Thread David VANTYGHEM

Le 22/07/2020 à 08:51, John Paul Adrian Glaubitz a écrit :
> On 7/22/20 8:43 AM, David VANTYGHEM wrote:
>> Alt+Function Keys don't work in AQEMU.
> Then run the installation through a virtual serial console. This allows you
> switch to different screens (i.e. from GNU screen) using Ctrl+a+p.
>
> Even though I have a hard time believing that you can't use Alt+Function Keys
> in your emulation. You should look into fixing the keyboard configuration 
> then.
>
> If that doesn't work either, go back to the main menu after the installation 
> has
> failed and then go to "Execute a shell" and access the syslog this way.
>
>> I tried to mount the qcow image, it failed. I tried to boot Debian installed
>> in the VM with -append root= -kernel -initrd options as explained here
>> https://www.emaculation.com/forum/viewtopic.php?f=34=10736=67023#p67023
> It's not in the image, it's a RAM file system.
>
> Please understand that it's not possible to help you without a log file.
>
> Adrian

I found something that could work. I started my VM with *-monitor stdio*
option and then I had the qemu shell. With the qemu command *sendkey
ctrl-alt-f2*, *sendkey ctrl-alt-f1*, I can switch to terminal in VM. I
make a new install, result in a few hours maybe...


-- 
Installer facilement Linux : http://infolib.re

.--.
   |o_o |
   ||_/ |
  //\\Envoyé depuis mon Linux
 (|  |)
/ \_   _/ \
\___)=(___/



Re: GRUB doesn't install

2020-07-22 Thread John Paul Adrian Glaubitz
On 7/22/20 8:43 AM, David VANTYGHEM wrote:
> Alt+Function Keys don't work in AQEMU.

Then run the installation through a virtual serial console. This allows you
switch to different screens (i.e. from GNU screen) using Ctrl+a+p.

Even though I have a hard time believing that you can't use Alt+Function Keys
in your emulation. You should look into fixing the keyboard configuration then.

If that doesn't work either, go back to the main menu after the installation has
failed and then go to "Execute a shell" and access the syslog this way.

> I tried to mount the qcow image, it failed. I tried to boot Debian installed
> in the VM with -append root= -kernel -initrd options as explained here
> https://www.emaculation.com/forum/viewtopic.php?f=34=10736=67023#p67023

It's not in the image, it's a RAM file system.

Please understand that it's not possible to help you without a log file.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaub...@debian.org
`. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
  `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



Re: GRUB doesn't install

2020-07-22 Thread David VANTYGHEM
Le 22/07/2020 à 08:34, John Paul Adrian Glaubitz a écrit :
> On 7/22/20 7:13 AM, David VANTYGHEM wrote:
>> Hello, I have another message before GRUB fails to install :
>> https://catdrop.drycat.fr/r/UheCT4A9#k87hxx5VOwuzHT12nKCWTdVO89cfLUXAaE3y8uNVhU4=
> As I have said, I neither speak French nor can I help you if I don't
> have a log file.
>
> Please run the installation in English and please copy /var/log/syslog
> of the installer system and attach it to this bug report.
>
> You can access the virtual consoles with Alt+Function Keys, then copy
> the syslog using SCP.
>
> Adrian

Alt+Function Keys don't work in AQEMU. I tried to mount the qcow image,
it failed. I tried to boot Debian installed in the VM with -append root=
-kernel -initrd options as explained here
https://www.emaculation.com/forum/viewtopic.php?f=34=10736=67023#p67023
but it failed because I don't know the names of the files (vmlinuz ?
init.img ?) and where they are (/dev/sda2 for /boot, /dev/sda3 for / ?).

-- 
Installer facilement Linux : http://infolib.re

.--.
   |o_o |
   ||_/ |
  //\\Envoyé depuis mon Linux
 (|  |)
/ \_   _/ \
\___)=(___/



Re: GRUB doesn't install

2020-07-22 Thread John Paul Adrian Glaubitz
On 7/22/20 7:13 AM, David VANTYGHEM wrote:
> Hello, I have another message before GRUB fails to install :
> https://catdrop.drycat.fr/r/UheCT4A9#k87hxx5VOwuzHT12nKCWTdVO89cfLUXAaE3y8uNVhU4=

As I have said, I neither speak French nor can I help you if I don't
have a log file.

Please run the installation in English and please copy /var/log/syslog
of the installer system and attach it to this bug report.

You can access the virtual consoles with Alt+Function Keys, then copy
the syslog using SCP.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaub...@debian.org
`. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
  `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



Re: GRUB doesn't install

2020-07-21 Thread David VANTYGHEM
Le 20/07/2020 à 18:32, Dennis Clarke a écrit :
> On 7/20/20 4:22 PM, John Paul Adrian Glaubitz wrote:
>>> On Jul 20, 2020, at 5:55 PM, David VANTYGHEM  
>>> wrote:
>>>
>>> I suppose you need /var/log/syslog of Linux I'm installing in the
>>> virtual computer, isn't it ?
>> I need the log of the Linux system running *inside* the VM that gets created 
>> *while* the installation was running.
>>
>> When you boot the installer, it will actually boot a Linux live system and 
>> that system logs to /var/log/syslog in the installer’s system environment.
>>
>> Adrian
>>
> I will try to re-create the problem here and get everything for you also.
>
> Dennis


Hello, I have another message before GRUB fails to install :
https://catdrop.drycat.fr/r/UheCT4A9#k87hxx5VOwuzHT12nKCWTdVO89cfLUXAaE3y8uNVhU4=

-- 
Installer facilement Linux : http://infolib.re

.--.
   |o_o |
   ||_/ |
  //\\Envoyé depuis mon Linux
 (|  |)
/ \_   _/ \
\___)=(___/



Re: GRUB doesn't install

2020-07-20 Thread Dennis Clarke
On 7/20/20 4:22 PM, John Paul Adrian Glaubitz wrote:
> 
>> On Jul 20, 2020, at 5:55 PM, David VANTYGHEM  
>> wrote:
>>
>> I suppose you need /var/log/syslog of Linux I'm installing in the
>> virtual computer, isn't it ?
> 
> I need the log of the Linux system running *inside* the VM that gets created 
> *while* the installation was running.
> 
> When you boot the installer, it will actually boot a Linux live system and 
> that system logs to /var/log/syslog in the installer’s system environment.
> 
> Adrian
> 

I will try to re-create the problem here and get everything for you also.

Dennis



Re: GRUB doesn't install

2020-07-20 Thread John Paul Adrian Glaubitz


> On Jul 20, 2020, at 5:55 PM, David VANTYGHEM  
> wrote:
> 
> I suppose you need /var/log/syslog of Linux I'm installing in the
> virtual computer, isn't it ?

I need the log of the Linux system running *inside* the VM that gets created 
*while* the installation was running.

When you boot the installer, it will actually boot a Linux live system and that 
system logs to /var/log/syslog in the installer’s system environment.

Adrian


Re: GRUB doesn't install

2020-07-20 Thread David VANTYGHEM


Le 20/07/2020 à 17:51, John Paul Adrian Glaubitz a écrit :
>
>
>> On Jul 20, 2020, at 5:21 PM, David VANTYGHEM
>>  wrote:
>>
>> For /var/log/syslog, I don't know how to catch it. I can't boot the
>> virtual machine as GRUB did not install. I tried to mount the qcow2
>> image with libqcow-utils but it did not work. I will make a new
>> installation (3-4 hours) if I find how to catch the log.
>>
> You are misunderstanding. This is about providing /var/log/syslog
> while the installation is running.
>
> Adrian


I suppose you need /var/log/syslog of Linux I'm installing in the
virtual computer, isn't it ? Not /var/log/syslog of my computer that is
running qemu.

-- 
Installer facilement Linux : http://infolib.re

.--.
   |o_o |
   ||_/ |
  //\\Envoyé depuis mon Linux
 (|  |)
/ \_   _/ \
\___)=(___/



Re: GRUB doesn't install

2020-07-20 Thread John Paul Adrian Glaubitz


> On Jul 20, 2020, at 5:21 PM, David VANTYGHEM  
> wrote:
> For /var/log/syslog, I don't know how to catch it. I can't boot the virtual 
> machine as GRUB did not install. I tried to mount the qcow2 image with 
> libqcow-utils but it did not work. I will make a new installation (3-4 hours) 
> if I find how to catch the log.
> 
You are misunderstanding. This is about providing /var/log/syslog while the 
installation is running.

Adrian

Re: GRUB doesn't install

2020-07-20 Thread John Paul Adrian Glaubitz



> On Jul 20, 2020, at 5:28 PM, Dennis Clarke  wrote:
> 
> This may not be helpful but I installed that exact image into real G5
> hardware and it worked great.  I am not sure what qemu does from a
> firmware perspective but I also have ppc64le running with qemu and it
> runs great.

qemu behaves differently depending on the machine type specified on the command 
line.

You therefore can’t compare these two.

> Something fishy about qemu here.
> 
> I did a build of the qemu from sources :
> 
> styx$ /usr/local/bin/qemu-system-ppc64 --version
> QEMU emulator version 5.0.50 (v5.0.0-2005-geb6490f544-dirty)
> Copyright (c) 2003-2020 Fabrice Bellard and the QEMU Project developers
> styx$
> 
> That thing runs great.
> 
> What qemu are you running?

Please keep in mind that GRUB uses different installation mechanisms depending 
on the hardware used.

It’s impossible to debug David’s problem unless he provides the installation 
log through syslog as I requested earlier.

Debugging this without a log file is like looking into a crystal ball.

Adrian


Re: GRUB doesn't install

2020-07-20 Thread Dennis Clarke


>> Something fishy about qemu here.
>>
>> I did a build of the qemu from sources :
>>
>> styx$ /usr/local/bin/qemu-system-ppc64 --version
>> QEMU emulator version 5.0.50 (v5.0.0-2005-geb6490f544-dirty)
>> Copyright (c) 2003-2020 Fabrice Bellard and the QEMU Project developers
>> styx$
>>
>> That thing runs great.
>>
>> What qemu are you running?
>>
>>
> 
> $ qemu-system-ppc -version
> QEMU emulator version 4.2.0 (Debian 1:4.2-3ubuntu6.3)
> Copyright (c) 2003-2019 Fabrice Bellard and the QEMU Project developers
> 

Hrmmm .. that is odd.

I will test your qemu command line options here with my qemu and see
what happens. This will take an hour or so.



-- 
Dennis Clarke
RISC-V/SPARC/PPC/ARM/CISC
UNIX and Linux spoken
GreyBeard and suspenders optional



Re: GRUB doesn't install

2020-07-20 Thread David VANTYGHEM


Le 20/07/2020 à 17:27, Dennis Clarke a écrit :
> On 7/20/20 3:21 PM, David VANTYGHEM wrote:
>> Le 20/07/2020 à 15:18, John Paul Adrian Glaubitz a écrit :
>>> On 7/20/20 12:57 PM, David VANTYGHEM wrote:
 and at the end of the installation, GRUB doesn't install :
 http://dl.free.fr/jG1llNJtk
>>> I don't speak French, so a French error message won't help much.
>>>
>>> Also, I need the contents of /var/log/syslog, as this message basically
>>> just says that the GRUB installation failed.
>>>
>>> I also need to know which image was used and what the machine configuration
>>> was.
>>>
>>> Adrian
>>>
>> The image is this :
>> https://cdimage.debian.org/cdimage/ports/2020-05-30/debian-10.0.0-powerpc-NETINST-1.iso
>>
> This may not be helpful but I installed that exact image into real G5
> hardware and it worked great.  I am not sure what qemu does from a
> firmware perspective but I also have ppc64le running with qemu and it
> runs great.
>
> Something fishy about qemu here.
>
> I did a build of the qemu from sources :
>
> styx$ /usr/local/bin/qemu-system-ppc64 --version
> QEMU emulator version 5.0.50 (v5.0.0-2005-geb6490f544-dirty)
> Copyright (c) 2003-2020 Fabrice Bellard and the QEMU Project developers
> styx$
>
> That thing runs great.
>
> What qemu are you running?
>
>

$ qemu-system-ppc -version
QEMU emulator version 4.2.0 (Debian 1:4.2-3ubuntu6.3)
Copyright (c) 2003-2019 Fabrice Bellard and the QEMU Project developers

-- 
Installer facilement Linux : http://infolib.re

.--.
   |o_o |
   ||_/ |
  //\\Envoyé depuis mon Linux
 (|  |)
/ \_   _/ \
\___)=(___/



Re: GRUB doesn't install

2020-07-20 Thread Dennis Clarke
On 7/20/20 3:21 PM, David VANTYGHEM wrote:
> Le 20/07/2020 à 15:18, John Paul Adrian Glaubitz a écrit :
>> On 7/20/20 12:57 PM, David VANTYGHEM wrote:
>>> and at the end of the installation, GRUB doesn't install :
>>> http://dl.free.fr/jG1llNJtk
>> I don't speak French, so a French error message won't help much.
>>
>> Also, I need the contents of /var/log/syslog, as this message basically
>> just says that the GRUB installation failed.
>>
>> I also need to know which image was used and what the machine configuration
>> was.
>>
>> Adrian
>>
> The image is this :
> https://cdimage.debian.org/cdimage/ports/2020-05-30/debian-10.0.0-powerpc-NETINST-1.iso
> 

This may not be helpful but I installed that exact image into real G5
hardware and it worked great.  I am not sure what qemu does from a
firmware perspective but I also have ppc64le running with qemu and it
runs great.

Something fishy about qemu here.

I did a build of the qemu from sources :

styx$ /usr/local/bin/qemu-system-ppc64 --version
QEMU emulator version 5.0.50 (v5.0.0-2005-geb6490f544-dirty)
Copyright (c) 2003-2020 Fabrice Bellard and the QEMU Project developers
styx$

That thing runs great.

What qemu are you running?


-- 
Dennis Clarke
RISC-V/SPARC/PPC/ARM/CISC
UNIX and Linux spoken
GreyBeard and suspenders optional



Re: GRUB doesn't install

2020-07-20 Thread David VANTYGHEM
Le 20/07/2020 à 15:18, John Paul Adrian Glaubitz a écrit :
> On 7/20/20 12:57 PM, David VANTYGHEM wrote:
>> and at the end of the installation, GRUB doesn't install :
>> http://dl.free.fr/jG1llNJtk
> I don't speak French, so a French error message won't help much.
>
> Also, I need the contents of /var/log/syslog, as this message basically
> just says that the GRUB installation failed.
>
> I also need to know which image was used and what the machine configuration
> was.
>
> Adrian
>
The image is this :
https://cdimage.debian.org/cdimage/ports/2020-05-30/debian-10.0.0-powerpc-NETINST-1.iso

And I'm using this BIOS :
https://www.ilande.co.uk/tmp/qemu/openbios-ppc-grubfix

The machine configuration is :

/usr/bin/qemu-system-ppc \

-monitor stdio \

-M mac99 \

-k fr \

-machine accel=tcg \

-m 512 \

-cdrom /home/david/Bureau/debian-10.0.0-powerpc-NETINST-1.iso \

-hda /home/david/Documents/Informatique et téléphone/Documentation
informatique/Macintosh/Debian_10_LXDE \

-virtfs
local,id=shared_folder_dev_0,path=/home/david/Bureau,security_model=none,mount_tag=shared0
\

-boot once=c,menu=on \

-net nic,macaddr=00:a2:6d:80:10:8f,model=rtl8139 \

-net user \

-net user,smb=/home/david/Bureau \

-rtc base=localtime \

-name "Debian + LXDE sur iMac G3" \

-bios /home/david/Bureau/openbios-ppc-grubfix

For /var/log/syslog, I don't know how to catch it. I can't boot the
virtual machine as GRUB did not install. I tried to mount the qcow2
image with libqcow-utils but it did not work. I will make a new
installation (3-4 hours) if I find how to catch the log.

-- 
Installer facilement Linux : http://infolib.re

.--.
   |o_o |
   ||_/ |
  //\\Envoyé depuis mon Linux
 (|  |)
/ \_   _/ \
\___)=(___/



Re: GRUB doesn't install

2020-07-20 Thread John Paul Adrian Glaubitz
On 7/20/20 12:57 PM, David VANTYGHEM wrote:
> and at the end of the installation, GRUB doesn't install :
> http://dl.free.fr/jG1llNJtk

I don't speak French, so a French error message won't help much.

Also, I need the contents of /var/log/syslog, as this message basically
just says that the GRUB installation failed.

I also need to know which image was used and what the machine configuration
was.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaub...@debian.org
`. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
  `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



Re: GRUB doesn't install on G3

2019-05-05 Thread John Paul Adrian Glaubitz
On 5/5/19 8:06 AM, David VANTYGHEM wrote:
> I tested
> https://cdimage.debian.org/cdimage/ports/grub-test/debian-10.0-powerpc-grub-NETINST-1.iso
> on an iMac G3 in QAMEU. GRUB doesn't install :

Yes, the cause of this problem is already known and we know what to
fix. It will take a little longer since we need to fix grub-ofpathname
first.

@all:

We have enough data now. Thanks for testing. There is no need to test the
GRUB installation at the moment, but I'm still interested in boot tests
of the image itself and reports in cases where it doesn't work.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaub...@debian.org
`. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
  `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913