Open eimfach opened 10 months ago
i meet the same problem. have you solved it?
@eimfach this might help https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/arch/x86/Kconfig?h=v5.15.140#n2911
You will need a recent binutils (2.22 or later) with elf32_x86_64 support enabled to compile a kernel with this option set
@zcobol Thanks, I think I don't even need this option I just want to be able to mount my SD Cards with ext4 via USBIPD-WIN (wsl --mount does not work see this). I am following this guide: https://www.youtube.com/watch?v=iyBfQXmyH4o
As I understand it I just reuse the currenct kernel config and just set the option for "USB Mass Storage" and that's it.
Greetings,
I have a similar problem to this. Has this been resolved?
no influence about this remind. So just let it go
I am following this guide: https://www.youtube.com/watch?v=iyBfQXmyH4o
I am having the exact same problem when following this youtube. How many issues do I need to resolve before I can use USB via WSL.
edit: I set the CONFIG_X86_32 = Y to N in the .config file then make again the warning is gone. But it won't be able to use 32bit bin with this kernel.
Do you use Windows 10 or 11 ?
Win11 with Ubuntu wsl (no version flag)
update: I delete the no flag Ubuntu and install fresh the Ubuntu 20 LTS, no need to make the kernel by yourself, usb storage just works. what a surprise.
Windows Version
Microsoft Windows [Version 10.0.19045.3693]
WSL Version
2.0.9.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.133.1
Distro Version
22.04
Other Software
No response
Repro Steps
VERSION=5.15.133.1 sudo apt update && sudo apt upgrade -y && sudo apt install -y build-essential flex bison libgtk2.0-dev libelf-dev libncurses-dev autoconf libudev-dev libtool zip unzip v4l-utils libssl-dev python3-pip cmake git iputils-ping net-tools dwarves sudo mkdir /usr/src cd /usr/src sudo git clone -b linux-msft-wsl-${VERSION} https://github.com/microsoft/WSL2-Linux-Kernel.git ${VERSION}-microsoft-standard && cd ${VERSION}-microsoft-standard sudo cp /proc/config.gz config.gz sudo gunzip config.gz sudo mv config .config sudo make menuconfig sudo make -j$(nproc) sudo make modules_install -j$(nproc) sudo make install -j$(nproc)
Expected Behavior
Install the compiled kernel ?
Actual Behavior
arch/x86/Makefile:142: CONFIG_X86_X32 enabled but no binutils support sh ./arch/x86/boot/install.sh 5.15.133.1-microsoft-standard-WSL2+ \ arch/x86/boot/bzImage System.map "/boot" run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 5.15.133.1-microsoft-standard-WSL2+ /boot/vmlinuz-5.15.133.1-microsoft-standard-WSL2+
Diagnostic Logs
No response