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] [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
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
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

[OpenWrt-Devel] Ralink chips and iNIC boot mode

2013-04-07 Thread jonsm...@gmail.com
project. -- 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 chips and iNIC boot mode

2013-04-07 Thread jonsm...@gmail.com
be in the Linux kernel. On Sun, Apr 7, 2013 at 7:26 PM, Tobias Diedrich wrote: > jonsm...@gmail.com wrote: >> Ralink CPU datasheets mention an iNIC boot mode without describing >> what it does. For example the RT5350 supports iNIC-USB and iNIC PHY >> boot modes. >> >

[OpenWrt-Devel] Using JTAG on a new Ralink board

2013-04-08 Thread jonsm...@gmail.com
ze an empty flash. Doesn't look like MIPS has the small SRAM region like ARM does. Is there a write up around somewhere on how to get going with a JTAG on these chips? -- Jon Smirl jonsm...@gmail.com ___ openwrt-devel mailing list ope

Re: [OpenWrt-Devel] Using JTAG on a new Ralink board

2013-04-08 Thread jonsm...@gmail.com
rt3352, > so you can just try to use whole DDRAM. > > Best regards. > > ___ > openwrt-devel mailing list > openwrt-devel@lists.openwrt.org > https://lists.openwrt.org/mailman/listinfo/openwrt-devel -- Jon Smirl jonsm...@gmail.com _

Re: [OpenWrt-Devel] Using JTAG on a new Ralink board

2013-04-08 Thread jonsm...@gmail.com
t; Drasko > > > On Tue, Apr 9, 2013 at 12:10 AM, Daniel Golle wrote: >> Hi! >> >> On 04/09/2013 12:38 AM, jonsm...@gmail.com wrote: >>> Does the MIPS u-boot in the OpenWRT tree run on the RT5350? If so, >> >> U-Boot for Ralink chips is not (yet) part of O

Re: [OpenWrt-Devel] Using JTAG on a new Ralink board

2013-04-08 Thread jonsm...@gmail.com
; do you know what would be the best way to augment flash on these? Some > cheap NAND? SD Card? What would be the best solution? We believe The miniPCI version has enough on the connector to attach a SD Card using SPI. > > BR, > Drasko > > On Tue, Apr 9, 2013 at 12:21 AM, jon

Re: [OpenWrt-Devel] Using JTAG on a new Ralink board

2013-04-08 Thread jonsm...@gmail.com
, as it seem to be better described. > This company haowever have not been so responsive in my case, still > waiting on some contacts. > > I can see that they go up to 64MB RAM, but I do not trust these > Alibaba adds too much... > > BR, > Drasko > > On Tue, Apr 9, 2013

Re: [OpenWrt-Devel] Using JTAG on a new Ralink board

2013-04-08 Thread jonsm...@gmail.com
On Mon, Apr 8, 2013 at 6:28 PM, jonsm...@gmail.com wrote: > On Mon, Apr 8, 2013 at 6:24 PM, Drasko DRASKOVIC > wrote: >> Yes, >> I have seen these boards and contacted suppliers. they seem really >> responsive. >> >> I am missing some more flash though. 8MB

Re: [OpenWrt-Devel] Using JTAG on a new Ralink board

2013-04-08 Thread jonsm...@gmail.com
s not a miniPCI card. They just used the miniPCI connector. It is in no-way compatible with miniPCI. They bring out the Ethernet, USB, I2C, SPI from the rt5350 to the miniPCI connector pins. > > How do you plan to fix this card? > > BR, > Drasko > > On Tue, Apr 9, 2013 at 12

Re: [OpenWrt-Devel] Using JTAG on a new Ralink board

2013-04-08 Thread jonsm...@gmail.com
On Mon, Apr 8, 2013 at 7:09 PM, jonsm...@gmail.com wrote: > On Mon, Apr 8, 2013 at 7:04 PM, Drasko DRASKOVIC > wrote: >> Great, thanks a lot John. >> >> I has just a little trouble with their miniPCI card, as it has only >> one hole in the middle, and will not

Re: [OpenWrt-Devel] Using JTAG on a new Ralink board

2013-04-09 Thread jonsm...@gmail.com
cause it is more expensive. > ___ > openwrt-devel mailing list > openwrt-devel@lists.openwrt.org > https://lists.openwrt.org/mailman/listinfo/openwrt-devel -- Jon Smirl jonsm...@gmail.com ___ op

Re: [OpenWrt-Devel] Using JTAG on a new Ralink board

2013-04-09 Thread jonsm...@gmail.com
do you know what would be the best way to augment flash on these? Some > cheap NAND? SD Card? What would be the best solution? > > BR, > Drasko > > On Tue, Apr 9, 2013 at 12:21 AM, jonsm...@gmail.com > wrote: >> It will be a while for the boards to arrive from China. Bu

Re: [OpenWrt-Devel] Using JTAG on a new Ralink board

2013-04-09 Thread jonsm...@gmail.com
On Tue, Apr 9, 2013 at 4:08 PM, Michel Stempin wrote: > Hi John, > > Le 09/04/2013 21:13, jonsm...@gmail.com a écrit : >> Does any one actually have one of the TopLink minPCIe boards? Their >> datasheet doesn't clearly identify the pins. They have pins called >> L

Re: [OpenWrt-Devel] Using JTAG on a new Ralink board

2013-04-09 Thread jonsm...@gmail.com
On Tue, Apr 9, 2013 at 4:08 PM, Michel Stempin wrote: > Hi John, > > Le 09/04/2013 21:13, jonsm...@gmail.com a écrit : >> Does any one actually have one of the TopLink minPCIe boards? Their >> datasheet doesn't clearly identify the pins. They have pins called >> L

[OpenWrt-Devel] Configuring for WR512-3NG

2013-04-09 Thread jonsm...@gmail.com
shots/trunk/ramips/openwrt-ramips-rt305x-wr512-3ng-8M-squashfs-sysupgrade.bin -- 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] Configuring for WR512-3NG

2013-04-09 Thread jonsm...@gmail.com
I believe the answer is to select the Default target and then all of these rt30xx variations get built in build_dir/target-mipsel_uClibc-0.9.33.2/linux-ramips_rt305x/* On Tue, Apr 9, 2013 at 10:19 PM, jonsm...@gmail.com wrote: > I'm trying to get a build going for an old WS-WN512N

[OpenWrt-Devel] AP mode UI

2013-04-12 Thread jonsm...@gmail.com
tuff in AP mode. AP mode needs to keep stuff like wifi setup. -- 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] Using JTAG on a new Ralink board

2013-04-12 Thread jonsm...@gmail.com
On Tue, Apr 9, 2013 at 6:42 PM, jonsm...@gmail.com wrote: > > I put two and two together and figured out that those are the names > from the Ralink reference design, not the datasheet. So based on that > observation > Toplink has confirmed this to be the correct pin out.

Re: [OpenWrt-Devel] Using JTAG on a new Ralink board

2013-04-16 Thread jonsm...@gmail.com
On Fri, Apr 12, 2013 at 7:09 PM, Drasko DRASKOVIC < drasko.drasko...@gmail.com> wrote: > Hi Jon, > > On Fri, Apr 12, 2013 at 8:42 PM, jonsm...@gmail.com > wrote: > > > > On Tue, Apr 9, 2013 at 6:42 PM, jonsm...@gmail.com > > wrote: > >> > >>

[OpenWrt-Devel] OpenOCD and RT3050/5350

2013-04-16 Thread jonsm...@gmail.com
come from China. -- Jon Smirl jonsm...@gmail.com ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel

[OpenWrt-Devel] Compiling Ralink uboot at 8devices

2013-04-25 Thread jonsm...@gmail.com
this building I was planning to try and figure out the diffs to standard uboot. -- 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] Compiling Ralink uboot at 8devices

2013-04-25 Thread jonsm...@gmail.com
I had STAGING_DIR set wrong. This works: STAGING_DIR=/home/apps/openwrt/staging_dir/toolchain-mipsel_gcc-4.6-linaro_uClibc-0.9.33.2 This fails: STAGING_DIR=/home/apps/openwrt/staging_dir On Thu, Apr 25, 2013 at 8:24 PM, jonsm...@gmail.com wrote: > Has anyone gotten that source to build us

Re: [OpenWrt-Devel] MIPS Ralink GPIO and DTS

2013-05-02 Thread jonsm...@gmail.com
elects */ &gpio_ebi_i2stx_0 3 0>; s25sl032a@0 { compatible = "code,s25sl032a"; reg = <0>; spi-max-frequency = <100>; }; }; then use something like: gpio = of_get_gpio_flags(pdev->dev.of_no

Re: [OpenWrt-Devel] MIPS Ralink GPIO and DTS

2013-05-02 Thread jonsm...@gmail.com
This patch is in openwrt tree: ramips/patches-3.8/0209-owrt-GPIO-add-gpio_export_with_name.patch Looks like it supports naming them. On Thu, May 2, 2013 at 10:25 AM, Michel Stempin wrote: > > > Le 02/05/2013 16:06, jonsm...@gmail.com a écrit : >> On Thu, May 2, 2013 at 9:49 AM,

[OpenWrt-Devel] Compile target object instead of toolchain object

2013-05-05 Thread jonsm...@gmail.com
' make[2]: Entering directory `/home/apps/openwrt/package/toolchain' -- 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] Compile target object instead of toolchain object

2013-05-06 Thread jonsm...@gmail.com
On Mon, May 6, 2013 at 4:32 AM, Jo-Philipp Wich wrote: > On 05.05.2013 18:46, jonsm...@gmail.com wrote: > > How do I compile a target object when there is a toolchain object of the > > same name? > > > > For example sed. I want it to make the target version, not

[OpenWrt-Devel] Native compiling on a 32MB Ralink

2013-05-06 Thread jonsm...@gmail.com
H \ (REAL_VALUE_TYPE_SIZE/HOST_BITS_PER_WIDE_INT \ + (REAL_VALUE_TYPE_SIZE%HOST_BITS_PER_WIDE_INT ? 1 : 0)) /* round up */ /* Verify the guess. */ extern char test_real_width [sizeof(REAL_VALUE_TYPE) <= REAL_WIDTH*sizeof(HOST_WIDE_INT) ? 1 : -1]; -- Jon Smirl jonsm...@gmail.com _

Re: [OpenWrt-Devel] Native compiling on a 32MB Ralink

2013-05-06 Thread jonsm...@gmail.com
I attached my current makefiles for mpc, mpfr, gmp and gcc. On Mon, May 6, 2013 at 1:40 PM, jonsm...@gmail.com wrote: > Suppose I am crazy and I want to directly compile something on my RT3050 > chip. Has anyone tried this? Will the compiler work in 32MB? I can load it > via a USB

[OpenWrt-Devel] Renaming a package during compilation

2013-05-17 Thread jonsm...@gmail.com
up in target_mipsel/gcc-1.0 What is the right way to achieve a rename like this? I need the source in the avr-gcc tree so that I can apply avr specific patches to it. -- Jon Smirl jonsm...@gmail.com ___ openwrt-devel mailing list openwrt-devel@lists.openwr

Re: [OpenWrt-Devel] Renaming a package during compilation

2013-05-17 Thread jonsm...@gmail.com
vr-binutils' make[1]: *** [package/feeds/packages/avr-binutils/compile] Error 2 make[1]: Leaving directory `/home/jonsmirl/openwrt' make: *** [package/avr-binutils/compile] Error 2 jonsmirl@jonsmirl-VirtualBox:~/openwrt$ On Fri, May 17, 2013 at 3:04 PM, Mirko Vogt wrote: > On 05/17/201

Re: [OpenWrt-Devel] Renaming a package during compilation

2013-05-18 Thread jonsm...@gmail.com
gt; On 05/17/2013 09:25 PM, jonsm...@gmail.com wrote: >> PKG_NAME:=avr-binutils >> PKG_VERSION:=2.20.1a >> PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) >> PKG_SOURCE:=binutils-$(PKG_VERSION).tar.bz2 >> PKG_SOURCE_URL:=http://ftp.gnu.org/gnu/binutils/ > > This means

Re: [OpenWrt-Devel] Renaming a package during compilation

2013-05-18 Thread jonsm...@gmail.com
/user-manual/install_tools.html DEPENDS:=+zlib endef On Sat, May 18, 2013 at 1:09 PM, Sergey Ryazanov wrote: > 2013/5/18 jonsm...@gmail.com : >> So PKG_SOURCE_SUBDIR is not the feature I am looking for. I'm trying >> to figure out how to make my package name end up different tha

[OpenWrt-Devel] Controlling package architecture

2013-05-18 Thread jonsm...@gmail.com
My packages are getting built with the architecture ramips_24kec. A normal downloaded package is simply built for ramips. What controls this? How to I switch to the ramips architecture. My target CPU is a rt5350 but nothing in the package should be specific to that CPU. -- Jon Smirl jonsm

Re: [OpenWrt-Devel] Controlling package architecture

2013-05-19 Thread jonsm...@gmail.com
fig. > > > 2013/5/18 jonsm...@gmail.com >> >> My packages are getting built with the architecture ramips_24kec. A >> normal downloaded package is simply built for ramips. >> >> What controls this? How to I switch to the ramips architecture. >> >> My targe

Re: [OpenWrt-Devel] Controlling package architecture

2013-05-19 Thread jonsm...@gmail.com
On Sun, May 19, 2013 at 8:48 PM, jonsm...@gmail.com wrote: > On Sun, May 19, 2013 at 4:21 AM, xakep wrote: >> Try set ARCH_PACKAGES:=ramips (in linux/ramips/rt305x/target.mk) > > So how do the snapshots get built with ARCH_PACKAGES:=ramips instead > of ARCH_PACKAGES:=rami

[OpenWrt-Devel] Luci on the desktop

2013-05-20 Thread jonsm...@gmail.com
I just discovered the 'make runhttpd' feature of Luci. Is there a way to aim it at the standard OpenWRT web pages so that they can be edited/debugged on the host? -- Jon Smirl jonsm...@gmail.com ___ openwrt-devel mailing list ope

Re: [OpenWrt-Devel] Luci on the desktop

2013-05-20 Thread jonsm...@gmail.com
On Mon, May 20, 2013 at 11:29 AM, jonsm...@gmail.com wrote: > I just discovered the 'make runhttpd' feature of Luci. > > Is there a way to aim it at the standard OpenWRT web pages so that > they can be edited/debugged on the host? I see that I can switch the theme over to

[OpenWrt-Devel] Bringing up new rt5350 board

2013-06-05 Thread jonsm...@gmail.com
0x19c/0x3f4 [ 36.44] [<8006f564>] __do_fault+0xd0/0x4f4 [ 36.45] [<80072cec>] handle_pte_fault+0x450/0x944 [ 36.46] [<80073280>] handle_mm_fault+0xa0/0xe0 [ 36.47] [<80013c00>] do_page_fault+0x154/0x398 [ 36.48] [<80004820>] ret_from_exception+

Re: [OpenWrt-Devel] Bringing up new rt5350 board

2013-06-05 Thread jonsm...@gmail.com
_____ > openwrt-devel mailing list > openwrt-devel@lists.openwrt.org > https://lists.openwrt.org/mailman/listinfo/openwrt-devel -- Jon Smirl jonsm...@gmail.com ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel

[OpenWrt-Devel] Compiling 8device uboot source for Ralink.

2013-06-06 Thread jonsm...@gmail.com
c/4.7.2 \ -Map u-boot.map -o u-boot /bin/sh: line 0: [: : integer expression expected cpu/ralink_soc/start.o: In function `reset': (.text+0x6b8): undefined reference to `_GLOBAL_OFFSET_TABLE_' make: *** [u-boot] Error 1 -- Jon Smirl jonsm...@gmail.com __

Re: [OpenWrt-Devel] Compiling 8device uboot source for Ralink.

2013-06-07 Thread jonsm...@gmail.com
Answer to this is to add -fpic in mips_config.mk On Thu, Jun 6, 2013 at 8:02 PM, jonsm...@gmail.com wrote: > I'm compiling the 8device uboot located here: > https://github.com/8devices/u-boot.git > Using the OpenWRT cross compiler. > > When I get to the end I can't

[OpenWrt-Devel] Using JTAG on Ralink

2013-06-08 Thread jonsm...@gmail.com
b' connection from Warn : acknowledgment received, but no packet pending Info : dropped 'gdb' connection -- 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] Using JTAG on Ralink

2013-06-10 Thread jonsm...@gmail.com
Seeing as it looks like the gdb is built by openwrt, can you check if it has > xml support built in? > > Cheers, > Karl P > > > > On 06/09/2013 02:06 AM, jonsm...@gmail.com wrote: >> >> Any idea what I am doing wrong? Why are the registers too long? >> >&g

[OpenWrt-Devel] breakage in the rt3050 build

2013-06-19 Thread jonsm...@gmail.com
/apps/openwrt/staging_dir/target-mipsel_dsp_uClibc-0.9.33.2/pkginfo ERROR: module '/home/apps/openwrt/build_dir/target-mipsel_dsp_uClibc-0.9.33.2/linux-ramips_rt305x/compat-wireless-2013-06-13/drivers/net/wireless/rt2x00/rt2x00pci.ko' is missing. -- Jon Smirl jon

Re: [OpenWrt-Devel] breakage in the rt3050 build

2013-06-20 Thread jonsm...@gmail.com
I got it working, I needed to run 'make menuconfig' and tell it to write out a new config file. On Thu, Jun 20, 2013 at 12:53 PM, jonsm...@gmail.com wrote: > I'm still failing in the build. > > if [ -f > /home/apps/openwrt/staging_dir/target-mipsel_dsp_uClib

Re: [OpenWrt-Devel] breakage in the rt3050 build

2013-06-20 Thread jonsm...@gmail.com
wrt.org/openwrt/trunk@36977 3c298f89-4303-0410-b956-a3cf2f4a3e73 On Thu, Jun 20, 2013 at 11:31 AM, Hauke Mehrtens wrote: > On 06/20/2013 04:09 AM, jonsm...@gmail.com wrote: >> That last commit didn't fix everything. rt2x00pci.ko is still in the >> package list. >>

[OpenWrt-Devel] USB kmod selection in a profile

2013-06-21 Thread jonsm...@gmail.com
age set for AsiaRF AWM002 endef $(eval $(call Profile,AWM002)) .targetinfo-ramips-- Target-Profile: AWM002 Target-Profile-Name: AsiaRF AWM002 Target-Profile-Packages: kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-ledtrig-usbdev kmod-i2c-core kmod-i2c-gpio Target-Profile-Config: @@ Target-Profile-Description: Package set for AsiaRF AWM002 -- 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] 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

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] 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

[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] 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

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
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
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
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
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

[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] 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

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 _

[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-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

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] 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

[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-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] 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] 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

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] [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] [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-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-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
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
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
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-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-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.

[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-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

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
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 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 &

[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

[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

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: >

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

[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] 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. >

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] 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] 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-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-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-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);

[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 &

  1   2   >