[OpenWrt-Devel] Howto/advice: Patch for variant of hardware platform?
L. D. Pinney
ldpinney at gmail.com
Wed Feb 22 21:18:43 EST 2017
spi-mt7621.c has bugs ... isn't very helpful.
Please describe the problem?
Can I reproduce the same problem on one of my many MT76x8 devices?
If so how?
The MediaTek Linkit github is based on OpenWrt 15.05 using a 3.18 kernel.
The patches needed for 3.18 vs. 4.4 or 4.9 will be quite different.
On Wed, Feb 22, 2017 at 7:00 PM, Dana Myers <k6jq at comcast.net> wrote:
> On 2/22/2017 4:27 PM, L. D. Pinney wrote:
>
> Are you using https://github.com/OnionIoT/source onion-omega2 branch ?
>
>
> I am not; I'm using https://github.com/lede-project/source (master branch)
>
> However, I don't believe it makes any difference - spi-mt7621.c appears
> to be identical in both and the same patch applies; and this isn't an
> Omega2-specific issue. All MT7688-based systems have this issue; MediaTek
> Labs patched their LinkIt repo for this. A fix really belongs upstream.
>
> Thanks -
> Dana
>
>
> On Wed, Feb 22, 2017 at 2:30 PM, Dana Myers <k6jq at comcast.net> wrote:
>
>>
>> I'm working with the Onion Omega2, which is based on an MT7688 SoC.
>> The MT7688 SoC is a variant of the MT76xx family; in particular, it
>> shares the same SPI peripheral. Support for SPI is in
>> ..../drivers/spi/mt7621.c
>>
>> However, there's bugs with the SPI in the MT7688 which require a patch
>> to spi-mt7621.c - and I don't know if the same bugs are present in the
>> other MT76xx family members. It is possible the other MT76xx SoCs have
>> the same hardware issue (I'd be surprised if not) but I can only test
>> the MT7688 I have.
>>
>> I think I want to patch the source file only when building only the MT7688
>> target, but I'm not sure how to do that or if it's supported.
>>
>> So I'm looking for advice on how I might incorporate this patch so
>> that it is only applied when building ramips/mt7688.
>>
>> Thanks,
>> Dana K6JQ
>> _______________________________________________
>> openwrt-devel mailing list
>> openwrt-devel at lists.openwrt.org
>> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20170222/5bbcc28c/attachment.htm>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list