Closed nathanchance closed 4 years ago
https://github.com/microsoft/vscode-remote-release not opensource...?
Apparently not. Also has 794 open issues.
I also built it.
Use arch/x86/configs/x86_64_defconfig
linux-msft-5.4.y
bzImage.txt
I also built it. Use
arch/x86/configs/x86_64_defconfig
linux-msft-5.4.y
bzImage.txt
What are you referring to as "it"?
Just run
cat /proc/version
if you want the accurate version information.Ah.
5.7.0-next-20200612-microsoft-standard
I thought this was linux-msft-5.4.y. That's a mistake.
Just run
cat /proc/version
if you want the accurate version information.Ah.
5.7.0-next-20200612-microsoft-standard
I thought this was linux-msft-5.4.y. That's a mistake.
Oh.
I also built it. Use
arch/x86/configs/x86_64_defconfig
linux-msft-5.4.y
bzImage.txt
doesn't boot...
It may be because of d70f2f9 Could someone possibly send me an image with that hack removed? I don't personally fancy using a hack and faking the kernel release just to make "VS Code's Remote WSL plugin" work (which I do not use).
Or how could I remove the hack, add the working config, and build it myself?
remove this line
strcpy(tmp.release, "4.19.104-microsoft-standard");
yes ''|make KCONFIG_CONFIG=arch/x86/configs/wsl2_defconfig
remove this line
strcpy(tmp.release, "4.19.104-microsoft-standard");
yes ''|make KCONFIG_CONFIG=arch/x86/configs/wsl2_defconfig
And git clone the repo first on the next branch, right? Also, what is this doing:
yes ''|make KCONFIG_CONFIG=arch/x86/configs/wsl2_defconfig
git clone --depth=1 https://github.com/nathanchance/WSL2-Linux-Kernel.git -b next
Also, what is this doing:
Build
I meant the KCONFIG_CONFIG part. It also says x86, not x64 in it.
Means x86 architecture. x86_64 means 64bit extended. https://github.com/nathanchance/WSL2-Linux-Kernel/tree/next/arch/x86/configs
Oh, well I still need to build with this .config file
Hmm, Since I have not tried Config, But probably because using Clang.
Could I just change KCONFIG_CONFIG to point to it, or do I need a different argument?
Yeah, probably.
Why do you pipe it to yes ''
?
This kernel should have no issues. As long as that is the case, I'll push the two local commits I have to fix everything.
After that, all you will need to do to build a working kernel without that version hack is:
$ curl -LSs https://github.com/nathanchance/WSL2-Linux-Kernel/commit/d70f2f91a08a610392dc1e4b451b93e0e5db74bd.patch | git apply -R
$ make -skj"$(nproc)" wsl2_defconfig bzImage
This kernel should have no issues. As long as that is the case, I'll push the two local commits I have to fix everything.
After that, all you will need to do to build a working kernel without that version hack is:
$ curl -LSs https://github.com/nathanchance/WSL2-Linux-Kernel/commit/d70f2f91a08a610392dc1e4b451b93e0e5db74bd.patch | git apply -R $ make -skj"$(nproc)" wsl2_defconfig bzImage
Yay!
Confirmed working!
@nathanchance Thanks, it works. But as you can see in free -h
it can't create the swap file.
The original issue has been fixed in v31 so I am closing this.
I will try to investigate the swapon issue as I find time.
Spun off from #1.
@koumaza @Justsnoopy30 are you guys doing anything with
/etc/wsl.conf
?As just a starting point to debugging, could you please try this kernel?
Extract the zip.
Update your
.wslconfig
to point to that kernel.Run
wsl --shutdown
then reopen your browser.If it works, just let me know and I'll do another kernel. If not, run
dmesg > dmesg.log
then upload that dmesg.log here.