Closed startergo closed 4 years ago
Built the Kernel again with the default config-wsl:
sudo cp Microsoft/config-wsl .config
sudo make -j$((`nproc`+1)) --trace
Answered the following automatic questions:
Processor type and features
*
DMA memory allocation support (ZONE_DMA) [Y/n/?] y
Symmetric multi-processing support (SMP) [Y/n/?] y
Processor feature human-readable names (X86_FEATURE_NAMES) [Y/?] y
Support x2apic (X86_X2APIC) [Y/n/?] y
Enable MPS table (X86_MPPARSE) [N/y/?] n
Avoid speculative indirect branches in kernel (RETPOLINE) [Y/n/?] y
Intel Resource Director Technology support (INTEL_RDT) [N/y/?] n
Support for extended (non-PC) x86 platforms (X86_EXTENDED_PLATFORM) [N/y/?] n
Intel Low Power Subsystem Support (X86_INTEL_LPSS) [N/y/?] n
AMD ACPI2Platform devices support (X86_AMD_PLATFORM_DEVICE) [N/y/?] n
Intel SoC IOSF Sideband support for SoC platforms (IOSF_MBI) [N/m/y/?] n
Single-depth WCHAN output (SCHED_OMIT_FRAME_POINTER) [N/y/?] n
Processor family
1. Opteron/Athlon64/Hammer/K8 (MK8)
2. Intel P4 / older Netburst based Xeon (MPSC)
> 3. Core 2/newer Xeon (MCORE2)
4. Intel Atom (MATOM)
5. Generic-x86-64 (GENERIC_CPU)
choice[1-5?]: 3
Enable DMI scanning (DMI) [Y/n/?] y
Old AMD GART IOMMU support (GART_IOMMU) [N/y/?] n
IBM Calgary IOMMU support (CALGARY_IOMMU) [N/y/?] n
Maximum number of CPUs (NR_CPUS) [256] 256
Multi-core scheduler support (SCHED_MC) [Y/n/?] y
CPU core priorities scheduler support (SCHED_MC_PRIO) [N/y/?] n
Reroute for broken boot IRQs (X86_REROUTE_FOR_BROKEN_BOOT_IRQS) [N/y/?] n
Machine Check / overheating reporting (X86_MCE) [N/y/?] n
Enable support for 16-bit segments (X86_16BIT) [Y/n/?] y
Enable vsyscall emulation (X86_VSYSCALL_EMULATION) [Y/n/?] y
Dell i8k legacy laptop support (I8K) [N/m/y/?] n
CPU microcode loading support (MICROCODE) [N/y/?] n
/dev/cpu/*/msr - Model-specific register support (X86_MSR) [N/m/y/?] n
/dev/cpu/*/cpuid - CPU information support (X86_CPUID) [N/m/y/?] n
Enable 5-level page tables support (X86_5LEVEL) [N/y/?] n
AMD Secure Memory Encryption (SME) support (AMD_MEM_ENCRYPT) [N/y/?] n
Numa Memory Allocation and Scheduler Support (NUMA) [N/y/?] n
Support non-standard NVDIMMs and ADR protected memory (X86_PMEM_LEGACY) [Y/n/m/?] y
Check for low memory corruption (X86_CHECK_BIOS_CORRUPTION) [N/y/?] n
Amount of low memory, in kilobytes, to reserve for the BIOS (X86_RESERVE_LOW) [64] 64
MTRR (Memory Type Range Register) support (MTRR) [Y/n/?] y
MTRR cleanup support (MTRR_SANITIZER) [N/y/?] n
x86 PAT support (X86_PAT) [Y/n/?] y
x86 architectural random number generator (ARCH_RANDOM) [Y/n/?] y
Supervisor Mode Access Prevention (X86_SMAP) [Y/n/?] y
Intel User Mode Instruction Prevention (X86_INTEL_UMIP) [Y/n/?] y
Intel MPX (Memory Protection Extensions) (X86_INTEL_MPX) [Y/n/?] y
Intel Memory Protection Keys (X86_INTEL_MEMORY_PROTECTION_KEYS) [Y/n/?] y
TSX enable mode
> 1. off (X86_INTEL_TSX_MODE_OFF) (NEW)
2. on (X86_INTEL_TSX_MODE_ON) (NEW)
3. auto (X86_INTEL_TSX_MODE_AUTO) (NEW)
choice[1-3?]: 2
built-in kernel command line (CMDLINE_BOOL) [N/y/?] n
Enable the LDT (local descriptor table) (MODIFY_LDT_SYSCALL) [Y/n/?] y
*
* Graphics support
*
VGA Arbitration (VGA_ARB) [N/y/?] n
Laptop Hybrid Graphics - GPU switching support (VGA_SWITCHEROO) [N/y/?] n
Enable DisplayPort CEC-Tunneling-over-AUX HDMI support (DRM_DP_CEC) [N/y/?] n
Microsoft virtual GPU support (DXGKRNL) [N/m/y/?] (NEW) yes
The WSL starts but without the network shares:
9pnet: Could not find request transport: virtio
[ 2.196853] init: (1) ERROR: MountPlan9WithRetry:282: mount drvfs on /mnt/a (cache=mmap,noatime,msize=262144,trans=virtio,aname=drvfs;path=A:\;uid=1000;gid=1000;symlinkroot=/mnt/
[ 2.196855] ) failed: 22
[ 2.207170] 9pnet: Could not find request transport: virtio
[ 2.210124] init: (1) ERROR: MountPlan9WithRetry:282: mount drvfs on /mnt/b (cache=mmap,noatime,msize=262144,trans=virtio,aname=drvfs;path=B:\;uid=1000;gid=1000;symlinkroot=/mnt/
[ 2.210126] ) failed: 22
[ 2.223327] 9pnet: Could not find request transport: virtio
[ 2.227766] init: (1) ERROR: MountPlan9WithRetry:282: mount drvfs on /mnt/c (cache=mmap,noatime,msize=262144,trans=virtio,aname=drvfs;path=C:\;uid=1000;gid=1000;symlinkroot=/mnt/
[ 2.227768] ) failed: 22
[ 2.241270] 9pnet: Could not find request transport: virtio
[ 2.244414] init: (1) ERROR: MountPlan9WithRetry:282: mount drvfs on /mnt/f (cache=mmap,noatime,msize=262144,trans=virtio,aname=drvfs;path=F:\;uid=1000;gid=1000;symlinkroot=/mnt/
[ 2.244415] ) failed: 22
[ 2.254537] 9pnet: Could not find request transport: virtio
[ 2.257515] init: (1) ERROR: MountPlan9WithRetry:282: mount drvfs on /mnt/g (cache=mmap,noatime,msize=262144,trans=virtio,aname=drvfs;path=G:\;uid=1000;gid=1000;symlinkroot=/mnt/
[ 2.257517] ) failed: 22
[ 2.267962] 9pnet: Could not find request transport: virtio
[ 2.271002] 9pnet: Could not find request transport: virtio
[ 2.274411] 9pnet: Could not find request transport: virtio
[ 2.277372] 9pnet: Could not find request transport: virtio
[ 2.280392] 9pnet: Could not find request transport: virtio
[ 2.283564] 9pnet: Could not find request transport: virtio
[ 2.287905] 9pnet: Could not find request transport: virtio
[ 2.290887] 9pnet: Could not find request transport: virtio
[ 2.294247] 9pnet: Could not find request transport: virtio
Windows no longer automatically updates the kernel in :
c:\windows\system32\lxss\tools\kernel
If the kernel is manually deleted.
Use zcat /proc/config.gz > .config
instead of Microsoft/config-wsl.
Apparently Microsoft/config-wsl doesn't seem to be updated.
Use
zcat /proc/config.gz > .config
instead of Microsoft/config-wsl. Apparently Microsoft/config-wsl doesn't seem to be updated.
I had a config file extracted from the Microsoft original 121 distro using zcat and compiled the latest linux branch from Linus's repo:
git clone https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
Now everything works again with the exception of the audio. I was never able to get the audio to work. I was able to customize the kernel further using that git branch. Here it is attached. config.txt
Built Linux kernel with the attached config file. Upon starting of the WSL machine it shuts down. Windows version
Debug message:
confignew.txt