Re: [OpenWrt-Devel] [PATCH v2 1/2] ramips: second spi device on rt5350

2014-08-19 Thread jonsm...@gmail.com
How to use SPI bitbang on OpenWRT http://randomcoderdude.wordpress.com/2013/08/15/spi-over-gpio-in-openwrt/ On Tue, Aug 19, 2014 at 4:03 PM, jonsm...@gmail.com wrote: > This site has a write up on how SPI mode works. > http://elm-chan.org/docs/mmc/mmc_e.html > > > > > On T

Re: [OpenWrt-Devel] [PATCH v2 1/2] ramips: second spi device on rt5350

2014-08-19 Thread jonsm...@gmail.com
This site has a write up on how SPI mode works. http://elm-chan.org/docs/mmc/mmc_e.html On Tue, Aug 19, 2014 at 3:59 PM, jonsm...@gmail.com wrote: > > > > On Tue, Aug 19, 2014 at 3:48 PM, Álvaro Fernández Rojas > wrote: > >> El 19/08/2014 21:43, jonsm...@gmail.com e

Re: [OpenWrt-Devel] [PATCH v2 1/2] ramips: second spi device on rt5350

2014-08-19 Thread jonsm...@gmail.com
On Tue, Aug 19, 2014 at 3:48 PM, Álvaro Fernández Rojas wrote: > El 19/08/2014 21:43, jonsm...@gmail.com escribió: > > How is the clock speed wrong? > > The lowest speed the RT5350 SPI controller can achieve is System Clock / > 128. > System Clock = 120MHz > Lowest

Re: [OpenWrt-Devel] [PATCH v2 1/2] ramips: second spi device on rt5350

2014-08-19 Thread jonsm...@gmail.com
pi *rs) > +@@ -511,24 +582,33 @@ static struct rt2880_spi_ops spi_ops[] = > + .set_cs = rt2880_spi_set_cs, > + .baudrate_set = rt2880_spi_baudrate_set, > + .write_read = rt2880_spi_write_read, > ++ .num_cs = 1, > ++ }, { > ++ .init_hw = rt5350_spi_reset, > ++ .set_cs = rt2880_spi_set_cs, > ++ .baudrate_set = rt2880_spi_baudrate_set, > ++ .write_read = rt2880_spi_write_read, > ++ .num_cs = 2, > + }, { > + .init_hw = mt7621_spi_reset, > + .set_cs = mt7621_spi_set_cs, > + .baudrate_set = mt7621_spi_baudrate_set, > + .write_read = mt7621_spi_write_read, > ++ .num_cs = 1, > + }, > + }; > + > + static const struct of_device_id rt2880_spi_match[] = { > + { .compatible = "ralink,rt2880-spi", .data = &spi_ops[0]}, > +- { .compatible = "ralink,mt7621-spi", .data = &spi_ops[1] }, > ++ { .compatible = "ralink,rt5350-spi", .data = &spi_ops[1]}, > ++ { .compatible = "ralink,mt7621-spi", .data = &spi_ops[2] }, > + {}, > + }; > + MODULE_DEVICE_TABLE(of, rt2880_spi_match); > + > + static int rt2880_spi_probe(struct platform_device *pdev) > + { > +-const struct of_device_id *match; > ++ const struct of_device_id *match; > + struct spi_master *master; > + struct rt2880_spi *rs; > + unsigned long flags; > +@@ -536,10 +616,12 @@ static int rt2880_spi_probe(struct platf > + struct resource *r; > + int status = 0; > + struct clk *clk; > ++ struct rt2880_spi_ops *ops; > + > +-match = of_match_device(rt2880_spi_match, &pdev->dev); > ++ match = of_match_device(rt2880_spi_match, &pdev->dev); > + if (!match) > + return -EINVAL; > ++ ops = (struct rt2880_spi_ops *)match->data; > + > + r = platform_get_resource(pdev, IORESOURCE_MEM, 0); > + base = devm_ioremap_resource(&pdev->dev, r); > +@@ -563,14 +645,13 @@ static int rt2880_spi_probe(struct platf > + return -ENOMEM; > + } > + > +- /* we support only mode 0, and no options */ > +- master->mode_bits = 0; > ++ master->mode_bits = RT2880_SPI_MODE_BITS; > + > + master->setup = rt2880_spi_setup; > + master->transfer_one_message = rt2880_spi_transfer_one_message; > +- master->num_chipselect = RALINK_NUM_CHIPSELECTS; > + master->bits_per_word_mask = SPI_BPW_MASK(8); > + master->dev.of_node = pdev->dev.of_node; > ++ master->num_chipselect = ops->num_cs; > + > + dev_set_drvdata(&pdev->dev, master); > + > +@@ -579,7 +660,7 @@ static int rt2880_spi_probe(struct platf > + rs->clk = clk; > + rs->master = master; > + rs->sys_freq = clk_get_rate(rs->clk); > +- rs->ops = (struct rt2880_spi_ops *) match->data; > ++ rs->ops = ops; > + dev_dbg(&pdev->dev, "sys_freq: %u\n", rs->sys_freq); > + spin_lock_irqsave(&rs->lock, flags); > + > -- Jon Smirl jonsm...@gmail.com ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Re: [OpenWrt-Devel] Second SPI device on RT5350

2014-05-30 Thread jonsm...@gmail.com
ible = "zarlink,le89156"; reg = <1>; spi-max-frequency = <1000>; }; }; That commit on git hub was generated with this procedure. http://wiki.openwrt.org/doc/devel/patches -- Jon Smirl jonsm...@gmail.com --- a/drivers/spi/spi-rt2880.c +++ b/drivers/spi/spi-rt2880.c @@

Re: [OpenWrt-Devel] Second SPI device on RT5350

2014-05-30 Thread jonsm...@gmail.com
On Fri, May 30, 2014 at 3:56 PM, John Crispin wrote: > > > On 30/05/2014 21:46, jonsm...@gmail.com wrote: >> I wrote this code that enables the second chip select on SPI. >> Search down for spi-rt2880. I've never run it since I never had the >> right hardware. Ther

Re: [OpenWrt-Devel] Second SPI device on RT5350

2014-05-30 Thread jonsm...@gmail.com
On Fri, May 30, 2014 at 3:46 PM, jonsm...@gmail.com wrote: > I wrote this code that enables the second chip select on SPI. Search > down for spi-rt2880. I've never run it since I never had the right > hardware. There is an example DTD for enabling it too. I do know for sure that

[OpenWrt-Devel] Second SPI device on RT5350

2014-05-30 Thread jonsm...@gmail.com
audio codec in there, it is just one of the other existing drivers renamed to zarlink as a template. -- Jon Smirl jonsm...@gmail.com ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

[OpenWrt-Devel] Broken Ethernet switch on AsiaRF AWM002

2014-05-30 Thread jonsm...@gmail.com
- if [ -n "${RT3X5X}" ]; then + if [ "${RT3X5X}" ]; then ramips_setup_rt3x5x_vlans else ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2" -- Jon Smirl jonsm...@gmail.com ___ openwrt-devel mailing list openwrt

Re: [OpenWrt-Devel] These new one cubic inch Linux system

2014-05-30 Thread jonsm...@gmail.com
On Fri, May 30, 2014 at 1:12 PM, Michel Stempin wrote: > > > Le 30/05/2014 19:02, jonsm...@gmail.com a écrit : >> On Fri, May 30, 2014 at 12:49 PM, Michel Stempin >> wrote: >>> >>> >>> Le 30/05/2014 15:58, jonsm...@gmail.com a écrit : >>&g

Re: [OpenWrt-Devel] These new one cubic inch Linux system

2014-05-30 Thread jonsm...@gmail.com
On Fri, May 30, 2014 at 12:49 PM, Michel Stempin wrote: > > > Le 30/05/2014 15:58, jonsm...@gmail.com a écrit : >> On Fri, May 30, 2014 at 9:39 AM, Zoltan HERPAI wrote: >>> This is roughly the same as the VoCore, which seems to be more successful as >>> of now

Re: [OpenWrt-Devel] These new one cubic inch Linux system

2014-05-30 Thread jonsm...@gmail.com
p date. Did you catch the offer to make 10 custom RT5350 boards for $5,000? That really interesting. We've been paying $30K plus for similar design work in the US. > > Regards, > -w- > > > On Fri, 30 May 2014, jonsm...@gmail.com wrote: > >> What do you think abou

[OpenWrt-Devel] These new one cubic inch Linux system

2014-05-30 Thread jonsm...@gmail.com
What do you think about these new Linux systems in a cubic inch? I think they are pretty neat. This one is RT5350 based and running OpenWRT. Cheap too. https://www.indiegogo.com/projects/asiarf-tiny-linux-computer-with-wifi-and-ethernet/x/1575657 -- Jon Smirl jonsm...@gmail.com

Re: [OpenWrt-Devel] How to use ethernet port as lan or wan port in WR703N

2014-02-17 Thread jonsm...@gmail.com
On Mon, Feb 17, 2014 at 4:48 PM, Hartmut Knaack wrote: > jonsm...@gmail.com schrieb: >> The switch (esw) configuration separates the LAN and WAN ports. > But according to the wiki, the 703n has only one ethernet port and no switch. AR9331 has the switch on chip. http://www.eeboard.co

Re: [OpenWrt-Devel] How to use ethernet port as lan or wan port in WR703N

2014-02-17 Thread jonsm...@gmail.com
//lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel > ___ > openwrt-devel mailing list > openwrt-devel@lists.openwrt.org > https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel -- Jon Smirl jonsm...@gmail.com ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Re: [OpenWrt-Devel] nfs mount

2014-01-19 Thread jonsm...@gmail.com
Also, if you turn on nfs mount support in busybox it won't build. Although I don't believe that is necessary to use nfs. Something is messed up with the dependencies. On Sat, Jan 18, 2014 at 4:38 PM, jonsm...@gmail.com wrote: > Can any get a remote nfs volume to mount from openwr

[OpenWrt-Devel] nfs mount

2014-01-18 Thread jonsm...@gmail.com
@OpenWrt:/# mount -t nfs -o nolock 192.168.1.40:/export/work /mnt mount.nfs: Connection timed out mount: mounting 192.168.1.40:/export/work on /mnt failed: Invalid argument root@OpenWrt:/# -- Jon Smirl jonsm...@gmail.com ___ openwrt-devel mailin

Re: [OpenWrt-Devel] Ralink pinctrl

2013-12-30 Thread jonsm...@gmail.com
Put this in my dts file? pinctrl { state_default: pinctrl0 { uartf { ralink,group = "uartf"; ralink,function = "pcm gpio"; }; }; }; On Mon, Dec 30, 2013 at 10:43 PM, jonsm...@gmail.com wrote: > What is the correct device tree syntax to ena

[OpenWrt-Devel] Ralink pinctrl

2013-12-30 Thread jonsm...@gmail.com
What is the correct device tree syntax to enable the PCM pins on the RT5350? How does the 'uartf' function work? We need the 'pcm gpio' function. FUNC("pcm gpio", RT305X_GPIO_MODE_PCM_GPIO, 11, 4), -- Jon Smirl jonsm...@gmail.com ___

Re: [OpenWrt-Devel] [PATCH]ralink RT5350: tx, calculate TCP checksum correctly

2013-12-30 Thread jonsm...@gmail.com
On Mon, Dec 30, 2013 at 12:44 PM, jonsm...@gmail.com wrote: > > On Mon, Dec 30, 2013 at 12:07 PM, Darija Tadin-Đurović > <68da...@gmail.com>wrote: > >> Yes. >> My router didn't complain about it and was reachable by ssh. > > > John will need to comme

Re: [OpenWrt-Devel] [PATCH]ralink RT5350: tx, calculate TCP checksum correctly

2013-12-30 Thread jonsm...@gmail.com
netdev->vlan_features do. > > > > -- > Time is the quality of nature that keeps events from happening all at > once. Lately it doesn’t seem to be working. > —Anonymous > > * jonsm...@gmail.com [2013-12-30 11:44:29 -0500]: > > > On Mon, Dec 30, 2013 at 11:19 AM,

Re: [OpenWrt-Devel] [PATCH]ralink RT5350: tx, calculate TCP checksum correctly

2013-12-30 Thread jonsm...@gmail.com
= netdev->vlan_features = netdev->features; > netdev->irq = platform_get_irq(pdev, 0); > if (netdev->irq < 0) { > > > -- > Time is the quality of nature that keeps events from happening all at > once. Lately it doesn’t seem to be working. > —Anonymou

Re: [OpenWrt-Devel] Conflicts between MT7260a and RT5350

2013-12-27 Thread jonsm...@gmail.com
On Fri, Dec 27, 2013 at 4:16 PM, John Crispin wrote: > Hi > > i just pushed a patch that i think will fix the issue. can you please test > it as i don't have access to a rt5350 board right now Didn't fix it. Still same failure. > > John --

Re: [OpenWrt-Devel] Conflicts between MT7260a and RT5350

2013-12-27 Thread jonsm...@gmail.com
On Fri, Dec 27, 2013 at 3:33 PM, jonsm...@gmail.com wrote: > On Fri, Dec 27, 2013 at 3:27 PM, Darija Tadin-Đurović <68da...@gmail.com> > wrote: >> Hi Jon, >> what do you mean by "TCP checksum hardware"? >> I had the same HW board working on (and before)

Re: [OpenWrt-Devel] Conflicts between MT7260a and RT5350

2013-12-27 Thread jonsm...@gmail.com
0xacee (maybe caused by "TCP >>> checksum offload"?)] >>> [Good Checksum: False] >>> [Bad Checksum: True] >>> [Expert Info (Error/Checksum): Bad checksum] >>> [Message: Bad checksum] >

Re: [OpenWrt-Devel] Conflicts between MT7260a and RT5350

2013-12-27 Thread jonsm...@gmail.com
MSS Value: 1460 > TCP SACK Permitted Option: True > Kind: SACK Permission (4) > Length: 2 > Timestamps: TSval 591776, TSecr 0 > Kind: Timestamp (8) > Length: 10 > Timestamp value: 591776 >

[OpenWrt-Devel] Conflicts between MT7260a and RT5350

2013-12-26 Thread jonsm...@gmail.com
: svn://svn.openwrt.org/openwrt/trunk@39019 3c298f89-4303-0410-b956-a3cf2f4a3e73 -- Jon Smirl jonsm...@gmail.com --- a/drivers/net/ethernet/ralink/ralink_soc_eth.c +++ b/drivers/net/ethernet/ralink/ralink_soc_eth.c @@ -37,9 +37,8 @@ #include "esw_rt3052.h" #include "mdi

Re: [OpenWrt-Devel] Problems with the RT5350 Ethernet switch

2013-11-25 Thread jonsm...@gmail.com
On Mon, Nov 25, 2013 at 7:36 PM, jonsm...@gmail.com wrote: > Alright, I truly don't know what is messing up my Ethernet switch on > the RT5350. I just moved up to trunk version of the driver and it is > still work. I tried on two boards and both work. After more testing I see that

Re: [OpenWrt-Devel] Problems with the RT5350 Ethernet switch

2013-11-25 Thread jonsm...@gmail.com
Alright, I truly don't know what is messing up my Ethernet switch on the RT5350. I just moved up to trunk version of the driver and it is still work. I tried on two boards and both work. So something else that came down in my recent 'git pull' fixed it.

Re: [OpenWrt-Devel] Problems with the RT5350 Ethernet switch

2013-11-25 Thread jonsm...@gmail.com
On Mon, Nov 25, 2013 at 7:13 PM, jonsm...@gmail.com wrote: > Support for the RT5350 Ethernet switch is broken in trunk. Reverting back to > > jonsmirl@terra:/home/apps/openwrt/target/linux/ramips/patches-3.10$ > 0111-NET-MIPS-add-ralink-SoC-ethernet-

[OpenWrt-Devel] Problems with the RT5350 Ethernet switch

2013-11-25 Thread jonsm...@gmail.com
additions broke the RT5350 support. This is the same problem I reported a while ago. I just figured out how to fix it. -- Jon Smirl jonsm...@gmail.com ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman

[OpenWrt-Devel] RTSP server for h/264 USB camera

2013-10-31 Thread jonsm...@gmail.com
Is there a tiny RTSP server around somewhere that runs on OpenWRT? -- Jon Smirl jonsm...@gmail.com ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Re: [OpenWrt-Devel] AsiaRF build, no images output

2013-10-02 Thread jonsm...@gmail.com
On Wed, Oct 2, 2013 at 4:38 PM, Shawn Lewis wrote: > I should be using the sysupgrade image then? /openwrt/bin/ramips/openwrt-ramips-rt305x-awm002-evb-8M-squashfs-sysupgrade.bin > > > On Wed, Oct 2, 2013 at 12:09 PM, jonsm...@gmail.com > wrote: >> >> On Wed, Oc

Re: [OpenWrt-Devel] AsiaRF build, no images output

2013-10-02 Thread jonsm...@gmail.com
repared with a JTAG. > > > On Wed, Oct 2, 2013 at 5:24 AM, jonsm...@gmail.com > wrote: >> >> There are several things broken on the AsiaRF build. >> 1) The build system has broken for things with hyphens in the name >> 2) The rt5350 ethernet switch wil

Re: [OpenWrt-Devel] AsiaRF build, no images output

2013-10-02 Thread jonsm...@gmail.com
On Wed, Oct 2, 2013 at 8:24 AM, jonsm...@gmail.com wrote: > There are several things broken on the AsiaRF build. > 1) The build system has broken for things with hyphens in the name > 2) The rt5350 ethernet switch will not function unless VLAN tagging is > turned on. I looked a

Re: [OpenWrt-Devel] Ethernet switch on Ralink

2013-09-23 Thread jonsm...@gmail.com
also turning off the TCP checksum hardware. So we are just getting junk for that checksum which causes the packets to be discarded. -- Jon Smirl jonsm...@gmail.com ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org

Re: [OpenWrt-Devel] Ethernet switch on Ralink

2013-09-23 Thread jonsm...@gmail.com
; > On Mon, Sep 23, 2013 at 8:11 PM, jonsm...@gmail.com > wrote: >> >> I pasted that twice by accident >> >> root@OpenWrt:/# ethtool --show-offload eth0 >> Features for eth0: >> rx-checksumming: on [fixed] >> tx-checksumming: on >> t

Re: [OpenWrt-Devel] Ethernet switch on Ralink

2013-09-23 Thread jonsm...@gmail.com
Somehow this failure is intertwined with the VLAN code since everything works once I turn VLANs on. -- Jon Smirl jonsm...@gmail.com ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo

Re: [OpenWrt-Devel] Ethernet switch on Ralink

2013-09-23 Thread jonsm...@gmail.com
, length 0 0x: 0001 0800 4500 0034 e172 4000 4006 d583 0x0010: c0a8 0128 c0a8 0155 e1b8 0050 dd85 001a 0x0020: a6b2 afe5 8010 0073 c8bf 0000 0101 080a 0x0030: 0141 1f55 f2e5 -- Jon Smirl jonsm...@gmail.com ___ openwrt-devel mailing

Re: [OpenWrt-Devel] Ethernet switch on Ralink

2013-09-23 Thread jonsm...@gmail.com
] rx-vlan-stag-hw-parse: off [fixed] rx-vlan-stag-filter: off [fixed] root@OpenWrt:/# -- Jon Smirl jonsm...@gmail.com ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Re: [OpenWrt-Devel] Ethernet switch on Ralink

2013-09-23 Thread jonsm...@gmail.com
-vlan-stag-hw-insert: off [fixed] rx-vlan-stag-hw-parse: off [fixed] rx-vlan-stag-filter: off [fixed] root@OpenWrt:/# On Mon, Sep 23, 2013 at 1:43 PM, Diego Lopez Recas wrote: > Yes, I meant you checked it on the rt5350. > > > On Mon, Sep 23, 2013 at 7:38 PM, jonsm...@gmail.com > wrot

Re: [OpenWrt-Devel] Ethernet switch on Ralink

2013-09-23 Thread jonsm...@gmail.com
ne on the rt5350. > > > On Mon, Sep 23, 2013 at 5:37 PM, jonsm...@gmail.com > wrote: >> >> I used >> tcpdump -n -v -e -i eth0 >> >> So what is causing those incorrect checksums? >> >> 192.168.1.40 > 224.0.0.22: igmp v3 report, 3 gr

Re: [OpenWrt-Devel] Ethernet switch on Ralink

2013-09-23 Thread jonsm...@gmail.com
options [mss 1460,sackOK,TS val 52006 ecr 18349959,nop,wscale 2], length 0 0x: 4500 003c 4000 4006 b6ee c0a8 0155 0x0010: c0a8 0128 0050 d85d 9e2c e92d 7584 b82e 0x0020: a012 3890 83fc 0204 05b4 0402 080a 0x0030: cb26 0117 ff87 0103 0302 -- Jon Smirl jonsm...@gmail.com ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Re: [OpenWrt-Devel] Ethernet switch on Ralink

2013-09-20 Thread jonsm...@gmail.com
,TS val 1213495 ecr 4294947126], length 512 02:25:22.216720 IP OpenWrt.lan.www > 192.168.1.40.33864: Flags [P.], seq 2810:2889, ack 1469, win 4424, options [nop,nop,TS val 4294947127 ecr 1213495], length 79 02:25:22.257020 IP 192.168.1.40.33864 > OpenWrt.lan.www: Flags [.], ack 2889, win 182, options [nop,nop,TS val 1213506 ecr 4294947127], length 0 -- Jon Smirl jonsm...@gmail.com ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Re: [OpenWrt-Devel] Ethernet switch on Ralink

2013-09-20 Thread jonsm...@gmail.com
_type 'echo-request' list icmp_type 'echo-reply' list icmp_type 'destination-unreachable' list icmp_type 'packet-too-big' list icmp_type 'time-exceeded' list icmp_type 'bad-header' list icmp_type 'unknown-header-type' option limit

Re: [OpenWrt-Devel] Ethernet switch on Ralink

2013-09-20 Thread jonsm...@gmail.com
erything works. > > > On Fri, Sep 20, 2013 at 2:48 PM, jonsm...@gmail.com > wrote: >> >> Seems to me like the vlan=0 case is broken on the RT5350. >> >> So for testing... >> >> First I removed everything from file/etc... and rebuild >> Thi

Re: [OpenWrt-Devel] Ethernet switch on Ralink

2013-09-20 Thread jonsm...@gmail.com
v_good: 0 tr_bad: 0 tr_good: 0 pvid: 1 link: port:3 link:down Port 4: disable: 0 doubletag: 0 untag: 1 led: 5 lan: 1 recv_bad: 0 recv_good: 0 tr_bad: 0 tr_good: 0 pvid: 1 link: port:4 link:down Port 5: disable: 1 doubletag: 0 untag: 0 led: ??? lan: 1 recv_bad: 0 recv_good: 0 tr_bad: 0 tr_good: 0 pvid: 0 link: port:5 link:down Port 6: disable: 0 doubletag: 0 untag: 0 led: ??? lan: ??? recv_bad: ??? recv_good: ??? tr_bad: ??? tr_good: ??? pvid: 0 link: port:6 link:up speed:1000baseT full-duplex VLAN 1: ports: 1 2 3 4 6t VLAN 2: ports: 0 6t -- Jon Smirl jonsm...@gmail.com ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Re: [OpenWrt-Devel] Ethernet switch on Ralink

2013-09-19 Thread jonsm...@gmail.com
t isn't happening any more. > > > So you should add this to your config: > > config 'switch_port' > option 'port' '0' > option 'pvid' '2' > > I hope it helps. > > Regards, > Diego > > >

Re: [OpenWrt-Devel] Ethernet switch on Ralink

2013-09-19 Thread jonsm...@gmail.com
fig switch_port section is required to set the default port VLAN." > > > So you should add this to your config: > > config 'switch_port' > option 'port' '0' > option 'pvid' '2' > > I hope it helps. >

Re: [OpenWrt-Devel] Ethernet switch on Ralink

2013-09-19 Thread jonsm...@gmail.com
On Thu, Sep 19, 2013 at 2:43 PM, jonsm...@gmail.com wrote: > On Thu, Sep 19, 2013 at 2:41 PM, jonsm...@gmail.com > wrote: >> For example do a clean openwrt build with nothing in /files/etc. It >> will generate a network file with the VLAN support turned off. RT5350 >>

Re: [OpenWrt-Devel] Ethernet switch on Ralink

2013-09-19 Thread jonsm...@gmail.com
On Thu, Sep 19, 2013 at 2:41 PM, jonsm...@gmail.com wrote: > For example do a clean openwrt build with nothing in /files/etc. It > will generate a network file with the VLAN support turned off. RT5350 > is not functioning with VLAN turned off. If used to work that way > about si

[OpenWrt-Devel] Ethernet switch on Ralink

2013-09-19 Thread jonsm...@gmail.com
+ +config interface 'wan6' + option ifname '@wan' + option proto 'dhcpv6' + +config switch + option name 'rt305x' + option reset '1' + option enable_vlan '1' + +config switch_vlan + option device 'rt305x' + option vlan &

Re: [OpenWrt-Devel] ramips RT5350F AP+STA mode

2013-09-19 Thread jonsm...@gmail.com
;>> #endif /* IEEE8021X_EAPOL */ >>> sme_sched_obss_scan(wpa_s, 0); >>> +#ifdef MULTICALL >>> + } else if (state == WPA_INACTIVE && wpa_s->hostapd) { >>> + if (wpa_s->current_bss) >>> + hostapd_reload(wpa_s, wpa_s->current_bss);

Re: [OpenWrt-Devel] ramips RT5350F AP+STA mode

2013-09-08 Thread jonsm...@gmail.com
On Sun, Sep 8, 2013 at 8:08 PM, Jiapeng Li wrote: > Thanks jonsmirl, > I'll test it to see what happens, and give you a feed back. I believe you need to apply that patch in the 80211mac project because of the way git openwrt builds. > > > 2013/9/8 jonsm...@gmail.com >

Re: [OpenWrt-Devel] ramips RT5350F AP+STA mode

2013-09-08 Thread jonsm...@gmail.com
t; this feature? > > > Regards. > > JiapengLi > > > > > 2013/9/7 jonsm...@gmail.com > >> This is what an AtherOS chip says... >> >> > valid interface combinations: >> > * #{ managed, WDS, P2P-client } <= 2048, #{

Re: [OpenWrt-Devel] ramips RT5350F AP+STA mode

2013-09-07 Thread jonsm...@gmail.com
This is what an AtherOS chip says... > valid interface combinations: > * #{ managed, WDS, P2P-client } <= 2048, #{ IBSS, AP, mesh > point, P2P-GO } <= 8, >total <= 2048, #channels <= 1 > On Sat, Sep 7, 2013 at 10:36 AM

Re: [OpenWrt-Devel] ramips RT5350F AP+STA mode

2013-09-07 Thread jonsm...@gmail.com
ian >> ___ >> openwrt-devel mailing list >> openwrt-devel@lists.openwrt.org >> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel > > > > ___ >

Re: [OpenWrt-Devel] Strange TCP failure

2013-09-04 Thread jonsm...@gmail.com
'@wan' option proto 'dhcpv6' config switch option name 'rt305x' option reset '1' option enable_vlan '1' config switch_vlan option device 'rt305x' option vlan '1' option ports '1 2 3 4 6t' config switch_vlan option

Re: [OpenWrt-Devel] Strange TCP failure

2013-09-04 Thread jonsm...@gmail.com
On Wed, Sep 4, 2013 at 9:08 PM, Yousong Zhou wrote: > On 5 September 2013 09:04, Yousong Zhou wrote: >> Hi, Jon. >> >> On 5 September 2013 04:02, jonsm...@gmail.com wrote: >>> I'm using OpenWRT git on AsiaRF. AsiaRF may not be completely debugged yet. >

[OpenWrt-Devel] Strange TCP failure

2013-09-04 Thread jonsm...@gmail.com
-- Jon Smirl jonsm...@gmail.com syn.pcap Description: Binary data ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Re: [OpenWrt-Devel] Target profile with hypens in name

2013-09-03 Thread jonsm...@gmail.com
getting parsed. CONFIG_TARGET_ramips_rt305x_AWM002EVB=y parses ok CONFIG_TARGET_ramips_rt305x_AWM002-EVB=y fails with a blank $PROFILE I don't understand the Makefiles well enough to find where this parsing happens. On Tue, Sep 3, 2013 at 8:11 AM, jonsm...@gmail.com wrote: > Any ideas on what is up with hyphen pro

Re: [OpenWrt-Devel] Target profile with hypens in name

2013-09-03 Thread jonsm...@gmail.com
od-i2c-core kmod-i2c-gpio endef -define Profile/AWM002-EVB/Description +define Profile/AWM002EVB/Description Package set for AsiaRF AWM002 Evaluation Board endef -$(eval $(call Profile,AWM002-EVB)) +$(eval $(call Profile,AWM002EVB)) On Mon, Sep 2, 2013 at 5:04 PM, jonsm...@gmail.com wrote: >

[OpenWrt-Devel] Target profile with hypens in name

2013-09-02 Thread jonsm...@gmail.com
Something seems to be wrong in the Makefile when parsing target profiles with hyphens in them. For example: TARGET_ramips_rt305x_RT-N13U $(PROFILE) ends up blank instead of RT-N13U I searched around and can't figure out where this parsing is happening. -- Jon Smirl jonsm...@gmai

[OpenWrt-Devel] Device trees and uboot

2013-07-31 Thread jonsm...@gmail.com
AWM002 dts files and then let the kernel fix them up. But that kind of defeats the point in having DTS files that describe the hardware. -- Jon Smirl jonsm...@gmail.com ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt

Re: [OpenWrt-Devel] [PATCH] Basic support for the AsiaRF RT5350 based AWM002 module and evaluation board.

2013-07-26 Thread jonsm...@gmail.com
On Fri, Jul 26, 2013 at 12:23 PM, jonsm...@gmail.com wrote: > Has this generic RT5350 problem been fixed somehow? The AWM002 support > depended on this fix. > I see this has been committed > diff --git > a/target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips &

Re: [OpenWrt-Devel] [PATCH] Basic support for the AsiaRF RT5350 based AWM002 module and evaluation board.

2013-07-26 Thread jonsm...@gmail.com
T3X5X}" ]; then + swconfig dev rt305x set reset 1 + fi ifname=eth0 } On Fri, Jul 26, 2013 at 11:37 AM, jonsm...@gmail.com wrote: > On Fri, Jul 26, 2013 at 11:29 AM, John Crispin wrote: >> On 26/07/13 17:34, jonsm...@gmail.com wrote: >>> >>>

Re: [OpenWrt-Devel] [PATCH] Basic support for the AsiaRF RT5350 based AWM002 module and evaluation board.

2013-07-26 Thread jonsm...@gmail.com
On Fri, Jul 26, 2013 at 11:29 AM, John Crispin wrote: > On 26/07/13 17:34, jonsm...@gmail.com wrote: >> >> On Fri, Jul 26, 2013 at 11:18 AM, John Crispin wrote: >>> >>> *cough* >>> >>> shame on me for not compile testing it properly and shame o

Re: [OpenWrt-Devel] [PATCH] Basic support for the AsiaRF RT5350 based AWM002 module and evaluation board.

2013-07-26 Thread jonsm...@gmail.com
fter I had it all working. I must have forgotten to recompile them. I have been using OpenWRT on these board for about a month without problem. > > --> https://dev.openwrt.org/changeset/37561 > > > > > > On 24/07/13 03:43, jonsm...@gmail.com wrote: >> >> So ha

[OpenWrt-Devel] 802.11ac miniPCIe

2013-07-24 Thread jonsm...@gmail.com
Are there any other 802.11ac miniPCIe modules for sale other than the Intel ones? The Buffalo routers have some large 3 way ones, but I can't find them for sale anywhere. -- Jon Smirl jonsm...@gmail.com ___ openwrt-devel mailing list openwrt-

Re: [OpenWrt-Devel] [PATCH] Basic support for the AsiaRF RT5350 based AWM002 module and evaluation board.

2013-07-23 Thread jonsm...@gmail.com
ub.com/ayyaris/ayyar > > > Ayyari > > Il giorno 23/lug/2013, alle ore 06:01, John Crispin ha > scritto: > > On 23/07/13 02:10, jonsm...@gmail.com wrote: > > I'm happy with whatever we pick, it isn't hard to edit them. > > > How about this... > > AWM002.

Re: [OpenWrt-Devel] [PATCH] Basic support for the AsiaRF RT5350 based AWM002 module and evaluation board.

2013-07-23 Thread jonsm...@gmail.com
On Tue, Jul 23, 2013 at 6:01 AM, John Crispin wrote: > On 23/07/13 02:10, jonsm...@gmail.com wrote: >> >> I'm happy with whatever we pick, it isn't hard to edit them. >> >> How about this... >> AWM002.dtsi -- the module (with m25p80 flash specified) &g

Re: [OpenWrt-Devel] [PATCH] Basic support for the AsiaRF RT5350 based AWM002 module and evaluation board.

2013-07-22 Thread jonsm...@gmail.com
On Mon, Jul 22, 2013 at 6:00 PM, Jonas Gorski wrote: > On Mon, Jul 22, 2013 at 9:38 PM, John Crispin wrote: >> On 22/07/13 21:37, jonsm...@gmail.com wrote: >>> >>> Here's a photo - you can see how it is a module mounted on a baseboard. >>> http://www.

Re: [OpenWrt-Devel] [PATCH] Basic support for the AsiaRF RT5350 based AWM002 module and evaluation board.

2013-07-22 Thread jonsm...@gmail.com
On Mon, Jul 22, 2013 at 3:38 PM, John Crispin wrote: > On 22/07/13 21:37, jonsm...@gmail.com wrote: >> >> Here's a photo - you can see how it is a module mounted on a baseboard. >> http://www.ayyari.com/pic/AYYAR.jpg > > > these 2 file have essentially the sam

Re: [OpenWrt-Devel] [PATCH] Basic support for the AsiaRF RT5350 based AWM002 module and evaluation board.

2013-07-22 Thread jonsm...@gmail.com
Here's a photo - you can see how it is a module mounted on a baseboard. http://www.ayyari.com/pic/AYYAR.jpg On Mon, Jul 22, 2013 at 3:36 PM, jonsm...@gmail.com wrote: > Alternatively I could ignore the module aspect and just make two > combined dts file... > > AWM002-EVB-4M

Re: [OpenWrt-Devel] [PATCH] Basic support for the AsiaRF RT5350 based AWM002 module and evaluation board.

2013-07-22 Thread jonsm...@gmail.com
x27;d also lose the module include file aspect this way. On Mon, Jul 22, 2013 at 3:31 PM, jonsm...@gmail.com wrote: > It is a reusable module plugged into a baseboard. > > There are three pieces which can be used in two combinations... > 4MB module plugged into baseboard > 8MB

Re: [OpenWrt-Devel] [PATCH] Basic support for the AsiaRF RT5350 based AWM002 module and evaluation board.

2013-07-22 Thread jonsm...@gmail.com
t > openwrt-devel@lists.openwrt.org > https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel -- Jon Smirl jonsm...@gmail.com ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Re: [OpenWrt-Devel] [PATCH] Basic support for the AsiaRF RT5350 based AWM002 module and evaluation board.

2013-07-21 Thread jonsm...@gmail.com
and use Ethernet to route between them. > Thank you again. > Paul > > -----Original Message- > From: jonsm...@gmail.com [mailto:jonsm...@gmail.com] > Sent: Monday, July 22, 2013 8:04 AM > To: OpenWrt Development List > Cc: Paul Lai > Subject: Re: [PATCH] Basic suppor

Re: [OpenWrt-Devel] [PATCH] Basic support for the AsiaRF RT5350 based AWM002 module and evaluation board.

2013-07-21 Thread jonsm...@gmail.com
jonsm...@gmail.com ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Re: [OpenWrt-Devel] port openwrt to BCM4706

2013-07-11 Thread jonsm...@gmail.com
Dual radios? > > Jon Bagg > NAD Electronics > __**_ > openwrt-devel mailing list > openwrt-devel@lists.openwrt.**org > https://lists.openwrt.org/**mailman/listinfo/openwrt-devel<https://lists.openwrt.org/mailman/listinfo/ope

Re: [OpenWrt-Devel] Working with a kernel patch - compat-wireless

2013-07-06 Thread jonsm...@gmail.com
On Sat, Jul 6, 2013 at 2:43 PM, jonsm...@gmail.com wrote: > I tried the kernel patch procedure described here: > http://wiki.openwrt.org/doc/devel/patches > but that kernel tree doesn't seem be getting built > > There is some interaction with the compat-wireless tree. I sho

[OpenWrt-Devel] Working with a kernel patch - compat-wireless

2013-07-06 Thread jonsm...@gmail.com
to it? -- Jon Smirl jonsm...@gmail.com ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Re: [OpenWrt-Devel] OpenOCD and RT3050/5350

2013-07-05 Thread jonsm...@gmail.com
On Fri, Jul 5, 2013 at 4:51 AM, Drasko DRASKOVIC wrote: > On Fri, Jul 5, 2013 at 3:57 AM, jonsm...@gmail.com wrote: >> 32MB memory, 8MB flash. If you need 32MB flash they will pass along >> for whatever the difference is in chip price. > > Which then becomes more expen

[OpenWrt-Devel] More AR9331 and RT5350 modules

2013-07-04 Thread jonsm...@gmail.com
lest-Tiny-Ralink-802-11n-Wireless-AP-Router-Module-Board-AWM002-product-view-375.html I have both of the Toplink modules too. -- Jon Smirl jonsm...@gmail.com ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mai

Re: [OpenWrt-Devel] OpenOCD and RT3050/5350

2013-07-04 Thread jonsm...@gmail.com
On Thu, Jul 4, 2013 at 7:32 PM, Drasko DRASKOVIC wrote: > Hi Jon, > > On Fri, Jul 5, 2013 at 12:35 AM, jonsm...@gmail.com > wrote: >> On Tue, Apr 16, 2013 at 6:32 PM, Drasko DRASKOVIC >> wrote: >>> Hi Jon, >>> both RT3050 and RT5350 have MIPS 24Kc

Re: [OpenWrt-Devel] OpenOCD and RT3050/5350

2013-07-04 Thread jonsm...@gmail.com
://www.asiarf.com/Smallest-Tiny-Ralink-802-11n-Wireless-AP-Router-Module-Board-AWM002-product-view-375.html With 32MB/8MB the modules are around $8.50 Q1000. AsiaRF will sell Q1 for $15 and a dev carrier board for $30. Dev board exposes JTAG, both UARTS, two Ethernet and USB. > > BR, > D

Re: [OpenWrt-Devel] Multiple virtual wireless interfaces - mix adhoc and ap mode?

2013-06-29 Thread jonsm...@gmail.com
On Tue, Jun 25, 2013 at 8:25 AM, Conor O'Gorman wrote: > On Tue, 2013-06-25 at 00:20 -0400, jonsm...@gmail.com wrote: >> Can this be made to work on Ralink? When I have the adhoc0 interface >> up bringing up ap0 says interface busy. >> > > Ralink is not good f

[OpenWrt-Devel] Mixed wireless modes appears to be broken.

2013-06-26 Thread jonsm...@gmail.com
, P2P-GO } <= 8, #{ IBSS } <= 1, total <= 2048, #channels <= 1, STA/AP BI must match * #{ AP } <= 1, total <= 1, #channels <= 1, STA/AP BI must match, radar detect widths: { 20 MHz (no HT), 20 MHz } -- Jon Smirl jonsm...@gmail.com __

Re: [OpenWrt-Devel] Multiple virtual wireless interfaces - mix adhoc and ap mode?

2013-06-25 Thread jonsm...@gmail.com
, P2P-GO } <= 8, #{ IBSS } <= 1, total <= 2048, #channels <= 1, STA/AP BI must match * #{ AP } <= 1, total <= 1, #channels <= 1, STA/AP BI must match, radar detect widths: { 20 MHz (no HT), 20 MHz } -- Jon Smirl jonsm...@gmail.com _

Re: [OpenWrt-Devel] Multiple virtual wireless interfaces - mix adhoc and ap mode?

2013-06-25 Thread jonsm...@gmail.com
On Tue, Jun 25, 2013 at 8:25 AM, Conor O'Gorman wrote: > On Tue, 2013-06-25 at 00:20 -0400, jonsm...@gmail.com wrote: >> Can this be made to work on Ralink? When I have the adhoc0 interface >> up bringing up ap0 says interface busy. >> > > Ralink is not good f

[OpenWrt-Devel] Multiple virtual wireless interfaces - mix adhoc and ap mode?

2013-06-24 Thread jonsm...@gmail.com
option isolate '1' config wifi-iface option device 'radio0' option ifname 'adhoc0' option network 'mesh' option mode 'adhoc' option ssid 'mesh' option bssid '02:CA:FE:CA:CA:40' -- Jon Smirl jonsm...@gmail.com ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Re: [OpenWrt-Devel] Ralink I2S driver

2013-06-24 Thread jonsm...@gmail.com
Read some more about it, but I think this board should hook up to the I2S pins on your AWM002-EVAL carrier board. $30 I2S amp kit that you solder yourself. Dual inputs - I2S and USB. http://www.ebay.com/itm/WEI-DAC1-PCM2706-I2S-CS4398-USB-DIY-KIT-/171018440417?pt=US_Home_Audio_Amplifiers_Preamps

Re: [OpenWrt-Devel] Ralink I2S driver

2013-06-24 Thread jonsm...@gmail.com
n if someone is interested. I did the MPC5200 ALSA driver that is in the kernel. -- Jon Smirl jonsm...@gmail.com ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Re: [OpenWrt-Devel] Ralink I2S driver

2013-06-24 Thread jonsm...@gmail.com
that... >> >> But I found a userland utility called "i2scmd" into the >> "RT288x_SDK/source/user/rt2880_app" directory... So there should be >> something? >> >> -- Michel >> >> Le 24/06/2013 22:04, jonsm...@gmail.com a écrit : &

Re: [OpenWrt-Devel] Ralink I2S driver

2013-06-24 Thread jonsm...@gmail.com
on a Ralink router would be implemented. A codec on I2S would make sense, but I don't see any code for doing that. Anyway, I wasn't planning to use audio in my project. I was just going to make it a compile option for other people using the RT5350 module. -- Jon Smirl jon

Re: [OpenWrt-Devel] Ralink I2S driver

2013-06-24 Thread jonsm...@gmail.com
uot;Mic Jack"; nvidia,i2s-controller = <&tegra_i2s1>; nvidia,audio-codec = <&wm8903>; nvidia,spkr-en-gpios = <&wm8903 2 0>; nvidia,hp-det-gpios = <&gpio 178 0>; /* gpio PW2 */ nvidia,int-mic-en-gpios = <&gpio 184 0>; /*gpio PX0 */ nvidia,ext

Re: [OpenWrt-Devel] Ralink I2S driver

2013-06-24 Thread jonsm...@gmail.com
I checked in the Ralink 3.3 SDK and don't see an I2S driver. Maybe no one has written one? On Mon, Jun 24, 2013 at 7:43 AM, jonsm...@gmail.com wrote: > Is there a driver for Ralink I2S already in OpenWRT? I can't identify one. > If not, can someone with the Ralink SDK tell me if

[OpenWrt-Devel] Ralink I2S driver

2013-06-24 Thread jonsm...@gmail.com
Is there a driver for Ralink I2S already in OpenWRT? I can't identify one. If not, can someone with the Ralink SDK tell me if there is one in there? I'd like to get Ralink I2S going if it can be done without a huge amount of work. -- Jon Smirl jonsm...

Re: [OpenWrt-Devel] Help with DTS file

2013-06-24 Thread jonsm...@gmail.com
On Mon, Jun 24, 2013 at 4:53 AM, Florian Fainelli wrote: > 2013/6/24 jonsm...@gmail.com : >> On Sun, Jun 23, 2013 at 5:50 PM, Flávio Silveira wrote: >>> Good evening, >>> >>> I'm trying to create a dts file for my router which is not supported y

Re: [OpenWrt-Devel] Help with DTS file

2013-06-23 Thread jonsm...@gmail.com
partition@3 { > label = "u-boot-env"; > reg = <0x3 0x8000>; > read-only; > }; > > factory: partition@4 { > label = "factory"; > reg = <0x4 0x1>; > read-only; > }; > > partition@5 { > lab

Re: [OpenWrt-Devel] USB kmod selection in a profile

2013-06-22 Thread jonsm...@gmail.com
I have this working by explicitly enabling the modules I need. I played with this for a while and I don't understand what the purpose of the DEFAULT_kmod-??? variables is. They don't seem to have any effect. On Fri, Jun 21, 2013 at 9:35 PM, jonsm...@gmail.com wrote: > I made a p

  1   2   >