Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
jsm222 opened this issue Oct 27, 2023 · 12 comments
Open
1 task done

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

jsm222 opened this issue Oct 27, 2023 · 12 comments

Comments

@jsm222
Copy link

jsm222 commented Oct 27, 2023

Official FAQ

  • 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 
@sbadux
Copy link

sbadux commented Oct 28, 2023

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

@probonopd
Copy link

probonopd commented Nov 12, 2023

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

@Balanga1
Copy link

Balanga1 commented Nov 21, 2023

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

@derekschrock
Copy link

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

@Alex6357
Copy link

14.0-RELEASE still not supported

@grahamperrin

This comment was marked as outdated.

@grahamperrin
Copy link

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.

@DrBassman
Copy link

DrBassman commented Dec 11, 2023

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.

@emaste
Copy link

emaste commented Dec 15, 2023

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

@ivanov
Copy link

ivanov commented Jan 7, 2024

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!

@Alex6357
Copy link

Alex6357 commented Jan 7, 2024

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.

@bkw777
Copy link

bkw777 commented Feb 20, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests