i don’t have this menuentry (“GE1 connected to” is the last one)…also see no mt7531-driver in uboot-mt/drivers/net
the 4.19-repo seems to have the mt7531-driver, but there also the menuentry is missing.
i have additional “DDR Component”
│ │ (MT7622) Chip ID │ │
│ │ (ASIC) Chip Type │ │
│ │ (eMMC) Flash Type │ │
│ │ (1024Mb) DDR Component │ │
│ │ (GMAC1) Use GE1 or GE2 │ │
│ │ (GE_SGMII_FORCE_2500) GE1 connected to │ │
│ │ --- │ │
│ │ Load an Alternate Configuration File │ │
│ │ Save Configuration to an Alternate File
as far as i see mt7531 is linked in makefile but not in any kconfig…also searching in menuconfig is disabled (i cannot search with / like in Linux-Kernel-menuconfig). maybe it’s because uboot-version is 2014-04…i guess kconfig-support is added later. also the string “switch connected to” is not in config.in (which seems to be the source for the menuconfig). Interesting detail in config.in:
if [ "$CONFIG_GE1_SGMII_FORCE_2500" = "y" ]; then
define_bool CONFIG_RTL8367 y
fi
so here old switch is always used if selecting sgmii for ge1, i tried to add a coice for switch:
choice 'switch' "RTL8367s CONFIG_RTL8367 \
MT7631 CONFIG_MT7631
" RTL8367s
but compile failes on missing arm-linux-gcc
/bin/sh: 1: /opt/buildroot-gcc492_arm/usr/bin/arm-linux-gcc: not found
makefile ignores CROSS_COMPILE environment variable and set it directly
ifeq ($(MT7622), y)
CROSS_COMPILE_PATH = /opt/buildroot-gcc492_arm/usr/bin
CROSS_COMPILE = $(CROSS_COMPILE_PATH)/arm-linux-
endif
have fixed it locally, but hanging now on wrong “-march”, build.sh on top dir compiles till multiple definition of __raw_read* __raw_write* (also without my modifications to Makefile) and setting new chip per default