:: Re: [DNG] Which qemu version is shi…
Góra strony
Delete this message
Reply to this message
Autor: Ralph Ronnquist
Data:  
Dla: dng
Temat: Re: [DNG] Which qemu version is shipped by default with devuan 3 ?
Mmm if you registter that "CD" as a disk instead, it seems to be
happier.

I.e., instead of:
-cdrom $CD \
you use:
-drive file=$CD,media=disk,format=raw \

then it boots up to a login prompt for me.

Ralph.


On Mon, Aug 14, 2023 at 11:50:26AM +0200, Mario Marietto wrote:
> I've found the solution here :
>
> https://github.com/utmapp/UTM/issues/2333#issuecomment-786129411
>
> The parameters that I have used probably have always been correct,but for
> some reason,the qemu disk is not detected at a first shot. It should be
> chosen from the EFI menu. It seems like a Bug. Once booted,the boot
> messages are displayed below :
>
> Loading kernel...
> /boot/kernel/kernel text=0x1b4 text=0x719e9c text=0x19a610 data=0xb1f60
> data=0x0+0x1e8000 0x4+0xa4160+0x4+0x116be3-
> Loading configured modules...
> /boot/kernel/umodem.ko text=0x1540 text=0xe90 data=0x230+0x4
> 0x4+0xe70+0x4+0xa7c
> loading required module 'ucom'
> /boot/kernel/ucom.ko text=0x19f8 text=0x2d18 data=0x494+0x838
> 0x4+0x1480+0x4+0xbcf
> can't find '/etc/hostid'
> can't find '/boot/entropy'
>
> Hit [Enter] to boot immediately, or any other key for command prompt.
> Booting [/boot/kernel/kernel]...
> Using DTB provided by EFI at 0x5feed000.
> Kernel entry at 0x56000200...
> Kernel args: (null)
> WARNING: Cannot find freebsd,dts-version property, cannot check DTB
> compliance
> ---<<BOOT>>---
> !!!WARNING!!! CPU(0) is vulnerable to speculative branch attacks. !!!
> We cannot enable required bit(s) in ACTRL register
> because it's locked by secure monitor and/or firmware.
> Copyright (c) 1992-2021 The FreeBSD Project.
> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
>        The Regents of the University of California. All rights reserved.
> FreeBSD is a registered trademark of The FreeBSD Foundation.
> FreeBSD 13.2-RELEASE releng/13.2-n254617-525ecfdad597 GENERIC arm
> FreeBSD clang version 14.0.5 (https://github.com/llvm/llvm-project.git
> llvmorg-14.0.5-0-gc12386ae247c)
> VT: init without driver.
> CPU: ARM Cortex-A15 r0p4 (ECO: 0x00000000)
> CPU Features:
>  Multiprocessing, Thumb2, Security, Virtualization, Generic Timer, VMSAv7,
>  PXN, LPAE, Coherent Walk
> Optional instructions:
>  SDIV/UDIV, UMULL, SMULL, SIMD(ext)
> LoUU:2 LoC:3 LoUIS:2
> Cache level 1:
> 32KB/64B 2-way data cache WB Read-Alloc Write-Alloc
> 32KB/64B 2-way instruction cache Read-Alloc
> Cache level 2:
> 1024KB/64B 16-way unified cache WB Read-Alloc Write-Alloc
> real memory  = 487772160 (465 MB)
> avail memory = 460943360 (439 MB)
> arc4random: WARNING: initial seeding bypassed the cryptographic random
> device because it was not yet seeded and the knob 'bypass_before
> _seeding' was enabled.
> random: entropy device external interface
> kbd0 at kbdmux0
> ofwbus0: <Open Firmware Device Tree>
> simplebus0: <Flattened device tree simple bus> on ofwbus0
> clk_fixed0: <Fixed clock> on ofwbus0
> psci0: <ARM Power State Co-ordination Interface Driver> on ofwbus0
> gic0: <ARM Generic Interrupt Controller> mem
> 0x8000000-0x800ffff,0x8010000-0x801ffff on ofwbus0
> gic0: pn 0x2, arch 0x2, rev 0x0, implementer 0x43b irqs 288
> gicv2m0: <ARM Generic Interrupt Controller MSI/MSIX> mem
> 0x8020000-0x8020fff on gic0
> generic_timer0: <ARMv7 Generic Timer> irq 35,36,37,38 on ofwbus0
> Timecounter "ARM MPCore Timecounter" frequency 24000000 Hz quality 1000
> Event timer "ARM MPCore Eventtimer" frequency 24000000 Hz quality 1000
> pcib0: <Generic PCI host controller> mem 0x3f000000-0x3fffffff on ofwbus0
> pci0: <PCI bus> on pcib0
> virtio_pci0: <VirtIO PCI (legacy) Network adapter> port 0x100-0x11f mem
> 0x11067000-0x11067fff,0x1105c000-0x1105ffff at device 1.0 on pci0
> vtnet0: <VirtIO Networking Adapter> on virtio_pci0
> vtnet0: Ethernet address: 52:54:00:12:34:55
> virtio_pci1: <VirtIO PCI (modern) GPU adapter> mem
> 0x11066000-0x11066fff,0x11058000-0x1105bfff at device 2.0 on pci0
> virtio_pci1: cannot alloc resource for COMMON_CFG
> virtio_pci1: cannot map configs
> device_attach: virtio_pci1 attach returned 22
> xhci0: <NEC uPD720200 USB 3.0 controller> mem 0x11060000-0x11063fff at
> device 3.0 on pci0
> xhci0: 32 bytes context size, 32-bit DMA
> usbus0 on xhci0
> vgapci0: <VGA-compatible display> port 0x120-0x12f mem
> 0x10000000-0x10ffffff,0x11040000-0x1104ffff at device 4.0 on pci0
> vgapci0: Boot video device
> virtio_pci1: <VirtIO PCI (legacy) Block adapter> port 0x80-0xff mem
> 0x11065000-0x11065fff,0x11054000-0x11057fff at device 5.0 on pci0
> vtblk0: <VirtIO Block Adapter> on virtio_pci1
> vtblk0: 5120MB (10485760 512 byte sectors)
> virtio_pci2: <VirtIO PCI (legacy) Block adapter> mem
> 0x11064000-0x11064fff,0x11050000-0x11053fff at device 6.0 on pci0
> vtblk1: <VirtIO Block Adapter> on virtio_pci2
> vtblk1: 51200MB (104857600 512 byte sectors)
> uart0: <PrimeCell UART (PL011)> mem 0x9000000-0x9000fff irq 34 on ofwbus0
> uart0: console (115200,n,8,1)
> cpulist0: <Open Firmware CPU Group> on ofwbus0
> cpu0: <Open Firmware CPU> on cpulist0
> Timecounters tick every 1.000 msec
> usbus0: 5.0Gbps Super Speed USB v3.0
> Trying to mount root from ufs:/dev/ufs/rootfs [rw]...
> ugen0.1: <(0x1033) XHCI root HUB> at usbus0
> uhub0 on usbus0
> uhub0: <(0x1033) XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0
> Warning: no time-of-day clock registered, system time will not be set
> accurately
> Dual Console: Serial Primary, Video Secondary
> /etc/rc: WARNING: hostid: unable to figure out a UUID from DMI data,
> generating a new one
> uhub0: 8 ports with 8 removable, self powered
> ugen0.2: <QEMU QEMU USB Keyboard> at usbus0
> Loading kernel...
> /boot/kernel/kernel text=0x1b4 text=0x719e9c text=0x19a610 data=0xb1f60
> data=0x0+0x1e8000 0x4+0xa4160+0x4+0x116be3-
> Loading configured modules...
> /boot/kernel/umodem.ko text=0x1540 text=0xe90 data=0x230+0x4
> 0x4+0xe70+0x4+0xa7c
> loading required module 'ucom'
> /boot/kernel/ucom.ko text=0x19f8 text=0x2d18 data=0x494+0x838
> 0x4+0x1480+0x4+0xbcf
> can't find '/etc/hostid'
> can't find '/boot/entropy'

>
> Hit [Enter] to boot immediately, or any other key for command prompt.
> Booting [/boot/kernel/kernel]...
> Using DTB provided by EFI at 0x5feed000.
> Kernel entry at 0x56000200...
> Kernel args: (null)
> WARNING: Cannot find freebsd,dts-version property, cannot check DTB
> compliance
> ---<<BOOT>>---
> !!!WARNING!!! CPU(0) is vulnerable to speculative branch attacks. !!!
> We cannot enable required bit(s) in ACTRL register
> because it's locked by secure monitor and/or firmware.
> Copyright (c) 1992-2021 The FreeBSD Project.
> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
>        The Regents of the University of California. All rights reserved.
> FreeBSD is a registered trademark of The FreeBSD Foundation.
> FreeBSD 13.2-RELEASE releng/13.2-n254617-525ecfdad597 GENERIC arm
> FreeBSD clang version 14.0.5 (https://github.com/llvm/llvm-project.git
> llvmorg-14.0.5-0-gc12386ae247c)
> VT: init without driver.
> CPU: ARM Cortex-A15 r0p4 (ECO: 0x00000000)
> CPU Features:
>  Multiprocessing, Thumb2, Security, Virtualization, Generic Timer, VMSAv7,
>  PXN, LPAE, Coherent Walk
> Optional instructions:
>  SDIV/UDIV, UMULL, SMULL, SIMD(ext)
> LoUU:2 LoC:3 LoUIS:2
> Cache level 1:
> 32KB/64B 2-way data cache WB Read-Alloc Write-Alloc
> 32KB/64B 2-way instruction cache Read-Alloc
> Cache level 2:
> 1024KB/64B 16-way unified cache WB Read-Alloc Write-Alloc
> real memory  = 511139840 (487 MB)
> avail memory = 483815424 (461 MB)
> arc4random: WARNING: initial seeding bypassed the cryptographic random
> device because it was not yet seeded and the knob 'bypass_before _seeding'
> was enabled.
> random: entropy device external interface
> kbd0 at kbdmux0
> ofwbus0: <Open Firmware Device Tree>
> simplebus0: <Flattened device tree simple bus> on ofwbus0
> clk_fixed0: <Fixed clock> on ofwbus0
> psci0: <ARM Power State Co-ordination Interface Driver> on ofwbus0
> gic0: <ARM Generic Interrupt Controller> mem
> 0x8000000-0x800ffff,0x8010000-0x801ffff on ofwbus0
> gic0: pn 0x2, arch 0x2, rev 0x0, implementer 0x43b irqs 288
> gicv2m0: <ARM Generic Interrupt Controller MSI/MSIX> mem
> 0x8020000-0x8020fff on gic0
> generic_timer0: <ARMv7 Generic Timer> irq 35,36,37,38 on ofwbus0
> Timecounter "ARM MPCore Timecounter" frequency 24000000 Hz quality 1000
> Event timer "ARM MPCore Eventtimer" frequency 24000000 Hz quality 1000
> pcib0: <Generic PCI host controller> mem 0x3f000000-0x3fffffff on ofwbus0
> pci0: <PCI bus> on pcib0
> virtio_pci0: <VirtIO PCI (legacy) Network adapter> port 0x100-0x11f mem
> 0x11067000-0x11067fff,0x1105c000-0x1105ffff at device 1.0 on pci0
> vtnet0: <VirtIO Networking Adapter> on virtio_pci0
> vtnet0: Ethernet address: 52:54:00:12:34:55
> virtio_pci1: <VirtIO PCI (modern) GPU adapter> mem
> 0x11066000-0x11066fff,0x11058000-0x1105bfff at device 2.0 on pci0
> virtio_pci1: cannot alloc resource for COMMON_CFG
> virtio_pci1: cannot map configs
> device_attach: virtio_pci1 attach returned 22
> xhci0: <NEC uPD720200 USB 3.0 controller> mem 0x11060000-0x11063fff at
> device 3.0 on pci0
> xhci0: 32 bytes context size, 32-bit DMA
> usbus0 on xhci0
> vgapci0: <VGA-compatible display> port 0x120-0x12f mem
> 0x10000000-0x10ffffff,0x11040000-0x1104ffff at device 4.0 on pci0
> vgapci0: Boot video device
> virtio_pci1: <VirtIO PCI (legacy) Block adapter> port 0x80-0xff mem
> 0x11065000-0x11065fff,0x11054000-0x11057fff at device 5.0 on pci0
> vtblk0: <VirtIO Block Adapter> on virtio_pci1
> vtblk0: 5120MB (10485760 512 byte sectors)
> virtio_pci2: <VirtIO PCI (legacy) Block adapter> mem
> 0x11064000-0x11064fff,0x11050000-0x11053fff at device 6.0 on pci0
> vtblk1: <VirtIO Block Adapter> on virtio_pci2
> vtblk1: 51200MB (104857600 512 byte sectors)
> uart0: <PrimeCell UART (PL011)> mem 0x9000000-0x9000fff irq 34 on ofwbus0
> uart0: console (115200,n,8,1)
> cpulist0: <Open Firmware CPU Group> on ofwbus0
> cpu0: <Open Firmware CPU> on cpulist0
> Timecounters tick every 1.000 msec
> usbus0: 5.0Gbps Super Speed USB v3.0
> Trying to mount root from ufs:/dev/ufs/rootfs [rw]...
> ugen0.1: <(0x1033) XHCI root HUB> at usbus0
> uhub0 on usbus0
> uhub0: <(0x1033) XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0
> Warning: no time-of-day clock registered, system time will not be set
> accurately
> Dual Console: Serial Primary, Video Secondary
> /etc/rc: WARNING: hostid: unable to figure out a UUID from DMI data,
> generating a new one
> uhub0: 8 ports with 8 removable, self powered
> ugen0.2: <QEMU QEMU USB Keyboard> at usbus0
> ukbd0 on uhub0
> ukbd0: <QEMU QEMU USB Keyboard, class 0/0, rev 2.00/0.00, addr 1> on usbus0
> kbd1 at ukbd0
> ugen0.3: <QEMU QEMU USB Mouse> at usbus0
> ums0 on uhub0
> ums0: <QEMU QEMU USB Mouse, class 0/0, rev 2.00/0.00, addr 2> on usbus0
> ums0: 3 buttons and [XYZ] coordinates ID=0
> random: unblocking device.
> Setting hostuuid: 4e4c4eb8-b589-4658-b536-efa3c318ce22.
> Setting hostid: 0x7df9c464.
> Starting file system checks:
> /dev/ufs/rootfs: FILE SYSTEM CLEAN; SKIPPING CHECKS
> /dev/ufs/rootfs: clean, 752041 free (649 frags, 93924 blocks, 0.1%
> fragmentation)
> Growing root partition to fill device
> vtbd0: hard error cmd=write fsbn 0
> gpart: Input/output error
> vtbd0: hard error cmd=write 104448-104463
> gpart: Input/output error
> growfs: requested size 4.9GB is equal to the current filesystem size 4.9GB
> vtbd0: hard error cmd=write 144960-144967
> g_vfs_done():ufs/rootfs[WRITE(offset=20676608, length=4096)]error = 6
> UFS: forcibly unmounting /dev/ufs/rootfs from /
> pid 89 (mount), jid 0, uid 0: exited on signal 11
> pid 88 (sh), jid 0, uid 0: exited on signal 11
> pid 15 (sh), jid 0, uid 0: exited on signal 11

>
> the installation stops here,the error is : Guest disabled display.
>
> I think that this error should be fixed by asking help on the FreeBSD forum
> because it is related to it.
>
>
> On Mon, Aug 14, 2023 at 1:23 AM Ralph Ronnquist <rrq@???> wrote:
>
> > On Sun, Aug 13, 2023 at 08:22:20PM +0200, Mario Marietto via Dng wrote:
> > > Hello,
> > >
> > > I have copied the following files :
> > >
> > > AAVMF32_CODE.fd
> > > bookworm_mini_armhf.iso
> > > FreeBSD.img
> > > AAVMF32_VARS.fd
> > > FreeBSD-13.2-RELEASE-arm-armv7-GENERICSD.img
> > >
> > >
> > > inside the directory /home/marietto/Dati/Si and I've configured the
> > > permissions of every file and directory with :
> > >
> > > chown marietto:marietto
> > >
> > > and
> > >
> > > chmod -R 777
> > >
> > > and then I've logged out from the ssh server and I have re entered with :
> > >
> > > ssh -Y marietto@192.168.1.6
> > >
> > > and I started the qemu script. Nothing,the error is still there.
> >
> > (And, I assume that you also did "cd /home/marietto/Dati/Si" when you
> > entered that host so that "/home/marietto/Dati/Si:" was the current
> > working directory for the command shell wherein you run the qemu
> > command)
> >
> > That error:
> > ----
> > ERROR : qemu-system-arm: device requires 67108864 bytes, block backend
> > provides 35745792 bytes
> > ----
> > most likely concerns the UEFI code or vars, which for me both are
> > 67108864 bytes in size. I got mine by installing the qemu-efi-arm
> > package; maybe you got yours from elsewhere?
> >
> > My suggestion is that you replace yours by installing qemu-efi-arm.
> > Possibty you will need to undo whatever that gave you those files
> > (i.e., /usr/share/AAVMF/AAVMF32_{CODE,VARS}.fd) first, and then
> > install qemu-efi-arm, plus copy them to the Dati/Si directory for
> > trying yet again.
> >
> > regards,
> >
> > Ralph.
> >
> > >
> > >
> > > On Sun, Aug 13, 2023 at 7:22 PM tempforever <dev1@???>
> > wrote:
> > >
> > > > Mario, please re-read this:
> > > >
> > > > Ralph Ronnquist wrote:
> > > > > ----------
> > > > > UEFICODE=AAVMF32_CODE.fd
> > > > > UEFIVARS=AAVMF32_VARS.fd
> > > > > CD=FreeBSD-13.2-RELEASE-arm-armv7-GENERICSD.img
> > > > > DISK=FreeBSD.img
> > > > >
> > > > > qemu-system-arm \
> > > > > -serial stdio \
> > > > > -m 512 -M virt -cpu cortex-a15 \
> > > > > -drive if=pflash,format=raw,unit=0,file=$UEFICODE \
> > > > > -drive if=pflash,format=raw,unit=1,file=$UEFIVARS \
> > > > > -cdrom $CD \
> > > > > -drive file=$DISK,format=raw \
> > > > > -device virtio-net,netdev=net0,mac="52:54:00:12:34:75" \
> > > > > -netdev type=user,id=net0 \
> > > > > -device virtio-gpu-pci \
> > > > > -device vmware-svga,id=video0,vgamem_mb=16
> > > > > ----------
> > > > >
> > > > > 1) For some reason qemu objected to using the system UEFI emulation
> > > > > files but was happy when I copied them (to `pwd`). I also reordered
> > > > > the pflash parameters (for clarity).
> > > > >
> > > > >
> > > > the "run" directory, mentioned in a later post, is the current working
> > > > directory, one which the user has read/write access to. not "/run"
> > > >
> > > > not sure it that will fix all the problems, but at least it should fix
> > > > the UEFI part.
> > > >
> > > >
> > > > _______________________________________________
> > > > Dng mailing list
> > > > Dng@???
> > > > https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
> > > >
> > >
> > >
> > > --
> > > Mario.
> >
> > > _______________________________________________
> > > Dng mailing list
> > > Dng@???
> > > https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
> >
> > _______________________________________________
> > Dng mailing list
> > Dng@???
> > https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
> >
>
>
> --
> Mario.