despite a fair bit of searching, i'm still unclear on openwrt
support for the mediatek MT7610E so i dug through the source and
here's what i've gleaned, feel free to tell me where i've
misunderstood.

  i can see that, with a fresh checkout, i can configure openwrt for:

* Target System (Ralink RT288x/RT3xxx)
* Subtarget (MT7620a based boards)   (my current board)
* Target Profile (Default Profile)

once i configure for a fairly *minimal* system and do a "make", i can
see the results in bin/ramips/, which includes some images that
clearly(?) have MT7610E (or MT7612E) support, such as:

openwrt-ramips-mt7620a-mt7620a_mt7610e-initramfs-uImage.bin
openwrt-ramips-mt7620a-whr-1166d-initramfs-uImage.bin
openwrt-ramips-mt7620a-dir-810l-squashfs-sysupgrade.bin

so my obvious question is, what part of the build process incorporated
(alleged) MT7610E functionality?

  i wandered down to target/linux/ramips/image and, in the Makefile,
found this:

ifeq ($(SUBTARGET),mt7620a)
define Image/Build/Profile/Default
        $(call Image/Build/Profile/MT7620a,$(1))
        $(call Image/Build/Profile/MT7620a_MT7610e,$(1))
        $(call Image/Build/Profile/MT7620a_MT7530,$(1))
        $(call Image/Build/Profile/MT7620a_V22SG,$(1))
        $(call Image/Build/Profile/RP-N53,$(1))
        $(call Image/Build/Profile/DIR-810L,$(1))
        $(call Image/Build/Profile/WHR300HP2,$(1))
        $(call Image/Build/Profile/WHR600D,$(1))
        $(call Image/Build/Profile/WHR1166D,$(1))
        $(call Image/Build/Profile/MZK-750DHP,$(1))
        $(call Image/Build/Profile/NA930,$(1))
        $(call Image/Build/Profile/Y1,$(1))
        $(call Image/Build/Profile/Y1S,$(1))
endef
endif

  ok, that explains where all those different profiles are coming
from, and if i look a bit above that in the Makefile, i see (among
other things):

Image/Build/Profile/MT7620a=$(call 
BuildFirmware/Default8M/$(1),$(1),mt7620a,MT7620a)
Image/Build/Profile/MT7620a_MT7610e=$(call 
BuildFirmware/Default8M/$(1),$(1),mt7620a_mt7610e,MT7620a_MT7610e)

  finally, in that same Makefile, there's:

# Build images for default ralink layout for 8MB flash
# kernel + roots = 0x7b0000
# $(1) = squashfs/initramfs
# $(2) = lowercase board name
# $(3) = dts file
# $(4) = uImage header name field
ralink_default_fw_size_8M=8060928
BuildFirmware/Default8M/squashfs=$(call
BuildFirmware/OF,$(1),$(2),$(3),$(ralink_default_fw_size_8M),$(4))
BuildFirmware/Default8M/initramfs=$(call
BuildFirmware/OF/initramfs,$(1),$(2),$(3),$(4))

where the relevant parameter seems to be $(3), the name of the .dts
file -- in this case, say, MT7620a_MT7610e.dts. but not being an
expert (yet) at dts files, is that the file that supplies support for
the MT7610E? if so, what part of that dts file does that?

  i'm just trying to figure out:

* is the MT7610E supported in openwrt?
* if so, what *precisely* provides that support?

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users

Reply via email to