Ventoy icon indicating copy to clipboard operation
Ventoy copied to clipboard

[issue]: FreeBSD 14.x not working workaround included..

Open jsm222 opened this issue 2 years ago • 15 comments

Official FAQ

  • [X] I have checked the official FAQ.

Ventoy Version

1.0.96

What about latest release

Yes. I have tried the latest release, but the bug still exist.

Try alternative boot mode

Yes. I have tried them, but the bug still exist.

BIOS Mode

UEFI Mode

Partition Style

GPT

Disk Capacity

8GB

Disk Manufacturer

bhyve

Image file checksum (if applicable)

None

Image file download link (if applicable)

No response

What happened?

Note to workaround this I builded geom_ventoy.ko from 13.x sources on 14.0-RC2 and placed it in ventoy/ventoy_unix.cpio xz compressed. So it seems the shipped 14.x kmod is wrong or outdated..

Thanks

OS CRASH

KDB: stack backtrace:
#0 0xffffffff80b8ff9d at kdb_backtrace+0x5d
#1 0xffffffff80b430a2 at vpanic+0x132
#2 0xffffffff80b42f63 at panic+0x43
#3 0xffffffff80eb24a5 at vm_fault+0x15c5
#4 0xffffffff80eb0e10 at vm_fault_trap+0xb0
#5 0xffffffff8100ca19 at trap_pfault+0x1d9
#6 0xffffffff80fe3268 at calltrap+0x8
#7 0xffffffff8037b023 at btext+0x23
Uptime: 1s 

jsm222 avatar Oct 27 '23 23:10 jsm222

I confirm. I tried to boot FreeBSD 14 RC3 but i get some errors then the system reboots. I can't read the errors because they appear for just a second, but it seems the same reported above

sbadux avatar Oct 28 '23 15:10 sbadux

How to correctly build this? Something like this? Is it documented somewhere?

wget https://download.freebsd.org/releases/amd64/14.0-RC4/src.txz # NOTE: Change accordingly
sudo tar xz src.txz  -C /
git clone https://github.com/ventoy/Ventoy/
cd ./Ventoy/Unix/ventoy_unix_src/FreeBSD/geom_ventoy_src/13.x/sys/modules/geom/geom_ventoy
mkdir -p geom/ventoy
cp ../../../geom/ventoy/* geom/ventoy
cp ../../../geom/ventoy/* .
export CC=$(which clang)
make
xz geom_ventoy.ko

probonopd avatar Nov 12 '23 12:11 probonopd

I'm a FreeBSD Ventoy user. What is the nature of the problem? What is geom_ventoy.ko used for?

Balanga1 avatar Nov 21 '23 20:11 Balanga1

With 14.0-RELEASE now out this should be a real issue.

On a 13.2 host with release/14.0 branch src worked rebuilding geom_ventoy.ko and in turn ventoy_unix.cpio

derekschrock avatar Nov 22 '23 02:11 derekschrock

14.0-RELEASE still not supported

Alex6357 avatar Nov 23 '23 08:11 Alex6357

https://lists.freebsd.org/archives/freebsd-hackers/2023-November/002649.html

grahamperrin avatar Dec 01 '23 18:12 grahamperrin

FreeBSD 14.0 and beyond

From report 275326 – 14.0-RELEASE dvd1-iso installer used in Ventoy got boot panic, comment 6:

I am very interested in improving Ventoy support in FreeBSD, but that will only apply to future releases. This is not a FreeBSD bug and there is nothing we can do for 14.0 - Ventoy needs to be updated to be compatible.

(Cross-reference at comment 7.)


I'll hide my previous comment as outdated.

grahamperrin avatar Dec 03 '23 14:12 grahamperrin

git clone https://github.com/ventoy/Ventoy/ cd ./Ventoy/Unix/ventoy_unix_src/FreeBSD/geom_ventoy_src cp -a 13.x 14.x cd 14.x/sys/modules/geom/geom_ventoy mkdir -p geom/ventoy cp ../../../geom/ventoy/* geom/ventoy cp ../../../geom/ventoy/* . export CC=$(which clang) make xz geom_ventoy.ko

I can verify the above steps worked on my FreeBSD 14.0Release system. I had the FreeBSD source code loaded into the standard location (i.e. /usr/src). Note my system is x86_64. I'm not sure how to build the 32-bit version...

Then one must put the geom_ventoy.ko.xz (produced above) into the ventoy_unix.cpio file (this file is in the VTOYEFI partition in the ventoy folder -- I copied it to my FreeBSD box and did the following): $ cpio -it < ventoy_unix.cpio $ cp geom_ventoy.ko.xz ventoy_unix/FreeBSD/geom_ventoy_ko/14.x/64/ $ mv ventoy_unix.cpio orig_ventoy_unix.cpio # if you want to save the original :-) $ find ventoy_unix | cpio -o >ventoy_unix.cpio

Then copy your newly created ventoy_unix.cpio to the ventoy folder on the VTOYEFI partition of your thumb drive.

DrBassman avatar Dec 11 '23 00:12 DrBassman

I put a copy of the geom_ventoy.ko that I built for testing in https://people.freebsd.org/~emaste/Ventoy/

emaste avatar Dec 15 '23 17:12 emaste

I put a copy of the geom_ventoy.ko that I built for testing in https://people.freebsd.org/~emaste/Ventoy/

Thank you, you are all excellent people! Wanted to report that using Ed's ventoy_unix.cpio in the VTOYEFI partition's ventoy folder got FreeBSD-14.0-RELEASE-amd64-dvd1.iso to boot for me!

ivanov avatar Jan 07 '24 01:01 ivanov

My guess: FreeBSD changed MAXCPU in GENERIC build recently, which made all third-party kernel modules broken and needed to be rebuilt. That explains why early stage snapshots of 14.0 works but 14.0-RELEASE doesn't.

Alex6357 avatar Jan 07 '24 02:01 Alex6357

1.0.97 claims to support fbsd 14.0 but 1.0.97 and FreeBSD-14.0-RELEASE-amd64-dvd1.iso just reboots on my Sony SVZ1311. So does the bootonly.iso and so does Ghostbsd 24.0.1.1, both normal and xfce versions. After selecting "boot normally" it does show some sort of bootloader message for a split-second. It's not the boot.4th menu, just 3 or 4 short lines only a couple words each. 14.0 installs and runs fine from the same thumb drive (dd memstick.img, sandisk extreme pro 256g) on the same machine.

bkw777 avatar Feb 20 '24 20:02 bkw777