MT6000 custom build with LuCi and some optimization - kernel 6.6.x

My fault. I'm using Ubuntu 24.04.2 LTS running in WSL and everything works fine till I get to glib2 compile where it gets stuck and just ends up in an error.

vnz@KeepItLowkey:~/openwrt$ make -j$(nproc)
make[2]: Entering directory '/home/vnz/openwrt/scripts/config'
make[2]: 'conf' is up to date.
make[2]: Leaving directory '/home/vnz/openwrt/scripts/config'
 make[1] world
 make[2] tools/compile
 make[2] package/cleanup
 make[3] -C tools/flock compile
 make[3] -C tools/libdeflate compile
 make[3] -C tools/zstd compile
 make[3] -C tools/sed compile
 make[3] -C tools/patch compile
 make[3] -C tools/tar compile
 make[3] -C tools/m4 compile
 make[3] -C tools/autoconf-archive compile
 make[3] -C tools/expat compile
 make[3] -C tools/ninja compile
 make[3] -C tools/xz compile
 make[3] -C tools/gnulib compile
 make[3] -C tools/zlib compile
 make[3] -C tools/cpio compile
 make[3] -C tools/lzma compile
 make[3] -C tools/mtools compile
 make[3] -C tools/patch-image compile
 make[3] -C tools/sstrip compile
 make[3] -C tools/zip compile
 make[3] -C tools/make-ext4fs compile
 make[3] -C tools/squashfs4 compile
 make[3] -C tools/meson compile
 make[3] -C tools/pkgconf compile
 make[3] -C tools/libressl compile
 make[3] -C tools/autoconf compile
 make[3] -C tools/automake compile
 make[3] -C tools/missing-macros compile
 make[3] -C tools/cmake compile
 make[3] -C tools/libtool compile
 make[3] -C tools/dosfstools compile
 make[3] -C tools/flex compile
 make[3] -C tools/elfutils compile
 make[3] -C tools/fakeroot compile
 make[3] -C tools/gengetopt compile
 make[3] -C tools/mklibs compile
 make[3] -C tools/patchelf compile
 make[3] -C tools/gmp compile
 make[3] -C tools/bison compile
 make[3] -C tools/mpfr compile
 make[3] -C tools/bc compile
 make[3] -C tools/util-linux compile
 make[3] -C tools/findutils compile
 make[3] -C tools/mkimage compile
 make[3] -C tools/b43-tools compile
 make[3] -C tools/mpc compile
 make[3] -C tools/e2fsprogs compile
 make[3] -C tools/mtd-utils compile
 make[3] -C tools/padjffs2 compile
 make[3] -C tools/quilt compile
 make[3] -C tools/firmware-utils compile
 make[3] -C tools/llvm-bpf compile
 make[2] toolchain/compile
 make[3] -C toolchain/gdb compile
 make[3] -C toolchain/binutils compile
 make[3] -C toolchain/fortify-headers compile
 make[3] -C toolchain/gcc/initial compile
 make[3] -C toolchain/kernel-headers compile
 make[3] -C toolchain/musl compile
 make[3] -C toolchain/gcc/final compile
 make[2] target/compile
 make[3] -C target/linux compile
 make[2] buildinfo
 make[2] package/compile
 make[3] -C package/utils/lua host-compile
 make[3] -C package/libs/ncurses host-compile
 make[3] -C package/libs/libjson-c host-compile
 make[3] -C package/system/fwtool host-compile
 make[3] -C package/boot/arm-trusted-firmware-tools host-compile
 make[3] -C package/system/usign host-compile
 make[3] -C feeds/luci/modules/luci-base host-compile
 make[3] diffconfig buildversion feedsversion
 make[3] -C feeds/luci/contrib/package/csstidy host-compile
 make[3] -C feeds/packages/libs/libffi host-compile
 make[4] scripts/config/conf
 make[3] -C package/utils/bzip2 host-compile
 make[3] -C feeds/packages/lang/perl host-compile
 make[3] -C package/devel/gperf host-compile
 make[3] -C package/system/apk host-compile
 make[3] -C package/libs/libubox host-compile
 make[3] -C package/system/ucert host-compile
 make[3] -C package/kernel/gpio-button-hotplug compile
 make[3] -C feeds/packages/kernel/mdio-netlink compile
 make[3] -C package/libs/toolchain compile
 make[3] -C feeds/packages/kernel/mtd-rw compile
 make[3] -C feeds/packages/net/siit compile
 make[3] -C package/kernel/leds-gca230718 compile
 make[3] -C package/kernel/leds-ws2812b compile
 make[3] -C package/kernel/trelay compile
 make[3] -C package/kernel/ubootenv-nvram compile
 make[3] -C package/libs/libnfnetlink compile
 make[3] -C package/kernel/bpf-headers compile
 make[3] -C package/network/services/dropbear compile
 make[3] -C package/network/utils/linux-atm compile
 make[3] -C package/network/utils/resolveip compile
 make[3] -C package/network/utils/wwan compile
 make[3] -C package/libs/mbedtls compile
 make[3] -C package/system/ca-certificates compile
 make[3] -C package/utils/fitblk compile
 make[3] -C package/libs/libnl-tiny compile
 make[3] -C package/libs/libjson-c compile
 make[3] -C package/utils/lua compile
 make[3] -C package/libs/libmd compile
 make[3] -C package/firmware/linux-firmware compile
 make[3] -C package/libs/zlib compile
 make[3] -C package/system/fwtool compile
 make[3] -C package/libs/libsepol compile
 make[3] -C package/libs/pcre2 compile
 make[3] -C package/system/openwrt-keyring compile
 make[3] -C package/libs/musl-fts compile
 make[3] -C package/boot/arm-trusted-firmware-mediatek compile
 make[3] -C package/libs/jansson compile
 make[3] -C package/libs/libmnl compile
 make[3] -C package/boot/arm-trusted-firmware-mediatek compile
 make[3] -C package/boot/arm-trusted-firmware-mediatek compile
 make[3] -C feeds/luci/protocols/luci-proto-ppp compile
 make[3] -C feeds/luci/protocols/luci-proto-ipv6 compile
 make[3] -C feeds/packages/utils/attr compile
 make[3] -C package/boot/arm-trusted-firmware-mediatek compile
 make[3] -C package/boot/arm-trusted-firmware-mediatek compile
 make[3] -C feeds/packages/libs/libffi compile
 make[3] -C package/libs/libnl compile
 make[3] -C feeds/packages/libs/expat compile
 make[3] -C feeds/packages/libs/gdbm compile
 make[3] -C package/boot/arm-trusted-firmware-mediatek compile
 make[3] -C feeds/packages/libs/libdaemon compile
 make[3] -C feeds/packages/libs/libnatpmp compile
 make[3] -C feeds/packages/net/miniupnpc compile
 make[3] -C package/utils/bzip2 compile
 make[3] -C package/boot/arm-trusted-firmware-mediatek compile
 make[3] -C package/libs/argp-standalone compile
 make[3] -C feeds/packages/utils/hwdata compile
 make[3] -C package/network/utils/ethtool compile
 make[3] -C feeds/packages/libs/libevdev compile
 make[3] -C package/libs/libpcap compile
 make[3] -C package/firmware/wireless-regdb compile
 make[3] -C package/network/utils/iw compile
 make[3] -C feeds/packages/net/mtkhnat_util compile
 make[3] -C feeds/packages/admin/netatop compile
 make[3] -C feeds/packages/utils/acl compile
 make[3] -C package/libs/gmp compile
 make[3] -C package/libs/libcap compile
 make[3] -C package/libs/readline host-compile
 make[3] -C package/libs/libunwind compile
 make[3] -C package/libs/libusb compile
 make[3] -C feeds/packages/net/wsdd2 compile
 make[3] -C package/libs/libxml2 compile
 make[3] -C feeds/routing/batctl compile
 make[3] -C package/libs/libubox compile
 make[3] -C package/libs/ncurses compile
 make[3] -C package/libs/libselinux compile
 make[3] -C package/system/usign compile
 make[3] -C package/boot/uboot-mediatek compile
 make[3] -C package/libs/libnftnl compile
 make[3] -C feeds/packages/libs/glib2 compile
    ERROR: package/boot/uboot-mediatek failed to build (build variant: mt7986_glinet_gl-mt6000).
make -r world: build failed. Please re-run make with -j1 V=s or V=sc for a higher verbosity level to see what's going on
make: *** [/home/vnz/openwrt/include/toplevel.mk:233: world] Error 1
vnz@KeepItLowkey:~/openwrt$

Cool, this is significantly easier to read.

We already know what is failing, just not why - and because of that we can't give any advice either. To provide more details, make is giving you a hint how to show all the pesky details like warning and error messages.

3 Likes

Did you take a gander at this? https://openwrt.org/docs/guide-developer/toolchain/wsl

Enjoying latest release and it's rock solid
Only issue I'm facing is i don't want kmsbd to auto mount usb drive and I've installed conventional block mount, i use aria2 but on reboot it fails to start aria2 as ksmbd mount the drive automatically even I've disabled this service as well and i need to always restart aria2 service for it to work

Any suggestion to remove this auto mount ?

1 Like

Working on snapshot - make clean && make dirclean should resolve some of the issues.. worst case - make distclean and go for the setup again...

Anyone ? @sfx2000 @pesa1234

Enjoy @immi803

4 Likes

See @pesa1234 comment above - should work...

1 Like

hi @pesa1234

Latest r0+30107-4e13f079c5_next-r4.5.36.rss.mtk seems to break the USB.. after flashing this morning USB drive can't be read anymore..

On the syslog (only one line shows when USB is plugged in):

Sat May 17 13:31:42 2025 kern.info kernel: [  371.940811] usb 2-1: new SuperSpeed USB device number 4 using xhci-mtk

Running lsusb -t

# lsusb -t
/:  Bus 001.Port 001: Dev 001, Class=root_hub, Driver=xhci-mtk/2p, 480M
/:  Bus 002.Port 001: Dev 001, Class=root_hub, Driver=xhci-mtk/1p, 20000M/x2
    |__ Port 001: Dev 004, If 0, Class=[unknown], Driver=[none], 5000M/x2

Is it just on my build or is this happening on yours?

When enabling hostapd background radar feature, I get the following message in the log: Survey for freq 5765 is missing noise floor. The AP is then disabled. AX mode, Auto channel, 80Mhz. I am running the latest build. Is this a known issue?