I am setting up my windows 11 tablet, Surface 10 Pro, to compile openwrt for my Mikrotik RB493G router. I don't have any other computers to install Linux on; they are all dead for various reasons. Netboot has a 4MB kernel limit and the openwrt initramfs is currently about 7MB. I plan to compile a copy of the openwrt release 24.10.2 to make sure I have a good environment before I start removing things like IPv6 to shrink the initramfs. I don't need IPv6 to netboot. I have followed the directions and I am at the part where I compile the kernel. I run make and it freezes after:
make[3] -C tools/llvm-bpf clean-build
make[3] -C tools/llvm-bpf compile
There is nothing else. It just sits there for hours, 3 to 4 hours. I ran make distclean and tried a second time but it freezes at the same spot. I tried another make distclean and ran make V=s 2>&1 | tee build.log | grep -i -E "^make.*(error|[12345]...Entering dir)" but that didn't give me any more information. How can I figure out what am I doing wrong?
These are steps I have followed to get to this point:
cmd - run as administrator
wsl --install -d Debian
sudo apt update
sudo apt dist-upgrade
sudo tee -a /etc/wsl.conf << EOF > /dev/null
[interop]
appendWindowsPath = false
EOF
exit
wsl --shutdown
wsl -d Debian
sudo apt install build-essential clang flex bison g++ gawk \
gcc-multilib g++-multilib gettext git libncurses5-dev libssl-dev \
python3-setuptools rsync swig unzip zlib1g-dev file wget
git clone https://git.openwrt.org/openwrt/openwrt.git
cd openwrt
git pull
git checkout v24.10.2
./scripts/feeds update -a
./scripts/feeds install -a
wget https://downloads.openwrt.org/releases/24.10.2/targets/ath79/mikrotik/config.buildinfo -O .config
make menuconfig
select rb493g for target profile, save, and quit
make download
make