Re: [OpenWrt-Devel] [PROPOSAL] move OpenWrt codebase to Git and GitHub

2016-06-07 Thread Jiapeng Li
I also agree with Luka. Github supplies a serious of features to make
open source development more easier. Pull request, issue tracker etc.
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] How to enable ttyS1 UART for a RT5350 device

2013-07-27 Thread Jiapeng Li
I have a hlk-rm04(http://wiki.openwrt.org/toh/hilink/hlk-rm04) module, i
create a dts file for it, based on MPR-A2 dts file.
Now i need enable /dev/ttyS1 in the dts file, but i don't have an idea
about that. The dts file likes this:

/dts-v1/;

/include/ "rt5350.dtsi"

/ {
compatible = "HLKRM04", "ralink,rt5350-soc";
model = "HILINK HLK-RM04";

memory@0 {
reg = <0x0 0x200>;
};

palmbus@1000 {
sysc@0 {
ralink,pinmux = "i2c", "spi", "uartlite", "uart", "mdio", "sdram", "rgmii";
ralink,gpiomux = "jtag";
// ralink,uartmux = "gpio";
ralink,wdtmux = <1>;
};

gpio0: gpio@600 {
status = "okay";
};

spi@b00 {
status = "okay";
m25p80@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "s25fl064k";
reg = <0 0>;
linux,modalias = "m25p80", "s25fl064k";
spi-max-frequency = <1000>;

partition@0 {
label = "u-boot";
reg = <0x0 0x3>;
read-only;
};

partition@3 {
label = "u-boot-env";
reg = <0x3 0x1>;
read-only;
};

factory: partition@4 {
label = "factory";
reg = <0x4 0x1>;
read-only;
};

partition@5 {
label = "firmware";
reg = <0x5 0x7b>;
};
};
};

* uart@500 {*
* status = "enabled";*

* };*
};

ethernet@1010 {
status = "okay";
};

esw@1011 {
status = "okay";
ralink,portmap = <0x2f>;
};

wmac@1018 {
status = "okay";
};

ehci@101c {
status = "okay";
};

ohci@101c1000 {
status = "okay";
};

// gpio-leds {
// compatible = "gpio-leds";
// system {
// label = "hlk-rm04:blue:system";
// gpios = <&gpio0 20 1>;
// };
// power {
// label = "hlk-rm04:red:power";
// gpios = <&gpio0 17 1>;
// };
// };

gpio-keys-polled {
compatible = "gpio-keys-polled";
#address-cells = <1>;
#size-cells = <0>;
poll-interval = <20>;
wps {
label = "reset";
gpios = <&gpio0 0 1>;
linux,code = <0x198>;
};
};

// gpio_export {
// compatible = "gpio-export";
// #size-cells = <0>;
// usb {
// gpio-export,name = "usb";
// gpio-export,output = <1>;
// gpios = <&gpio0 7 0>;
// };
// root_hub {
// gpio-export,name = "root_hub";
// gpio-export,output = <1>;
// gpios = <&gpio0 12 0>;
// };
// };
};
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] How to enable ttyS1 UART for a RT5350 device

2013-07-27 Thread Jiapeng Li
Sorry for my mistake, i accidentally sent the last mail.

I have a hlk-rm04(http://wiki.openwrt.org/toh/hilink/hlk-rm04) module, i
create a dts file for it, based on MPR-A2 dts file.
Now i need enable /dev/ttyS1 in the dts file, but i don't have an idea
about that.

About the DTS file, i have some questions:
1. what does the "pinmux" mean?

2. how do i initial uart, and make it enable, so that i can access ttyS1 in
the concole.

3. i attempt to add a node like this:
*uart@500{*
*status = "okay"*
*}*
but i got the kernel panic, openwrt didn't start up.

4. now when i input the command:
*echo "something" > /dev/ttyS1*
i got
*ash: write error: Input/output error*
I guess this is because the uart is not initialized, and ttyS1 is disabled,

5. i also try to edit the *sysc* node to add *uart* to the *pinmux* array,
but it does not works.

Thanks for everyone.


The dts file likes this:

==
/dts-v1/;

/include/ "rt5350.dtsi"

/ {
compatible = "HLKRM04", "ralink,rt5350-soc";
model = "HILINK HLK-RM04";

memory@0 {
reg = <0x0 0x200>;
};

palmbus@1000 {
sysc@0 {
//
ralink,pinmux = "i2c", "spi", "uartlite", "uart", "mdio", "sdram", "rgmii";
ralink,gpiomux = "jtag";
*// ralink,uartmux = "gpio";*
ralink,wdtmux = <1>;
};

gpio0: gpio@600 {
status = "okay";
};

spi@b00 {
status = "okay";
m25p80@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "s25fl064k";
reg = <0 0>;
linux,modalias = "m25p80", "s25fl064k";
spi-max-frequency = <1000>;

partition@0 {
label = "u-boot";
reg = <0x0 0x3>;
read-only;
};

partition@3 {
label = "u-boot-env";
reg = <0x3 0x1>;
read-only;
};

factory: partition@4 {
label = "factory";
reg = <0x4 0x1>;
read-only;
};

partition@5 {
label = "firmware";
reg = <0x5 0x7b>;
};
};
};

* uart@500 {*
* status = "enabled";*

* };*
};

ethernet@1010 {
status = "okay";
};

esw@1011 {
status = "okay";
ralink,portmap = <0x2f>;
};

wmac@1018 {
status = "okay";
};

ehci@101c {
status = "okay";
};

ohci@101c1000 {
status = "okay";
};

// gpio-leds {
// compatible = "gpio-leds";
// system {
// label = "hlk-rm04:blue:system";
// gpios = <&gpio0 20 1>;
// };
// power {
// label = "hlk-rm04:red:power";
// gpios = <&gpio0 17 1>;
// };
// };

gpio-keys-polled {
compatible = "gpio-keys-polled";
#address-cells = <1>;
#size-cells = <0>;
poll-interval = <20>;
wps {
label = "reset";
gpios = <&gpio0 0 1>;
linux,code = <0x198>;
};
};

// gpio_export {
// compatible = "gpio-export";
// #size-cells = <0>;
// usb {
// gpio-export,name = "usb";
// gpio-export,output = <1>;
// gpios = <&gpio0 7 0>;
// };
// root_hub {
// gpio-export,name = "root_hub";
// gpio-export,output = <1>;
// gpios = <&gpio0 12 0>;
// };
// };
};

==


2013/7/28 Jiapeng Li 

> I have a hlk-rm04(http://wiki.openwrt.org/toh/hilink/hlk-rm04) module, i
> create a dts file for it, based on MPR-A2 dts file.
> Now i need enable /dev/ttyS1 in the dts file, but i don't have an idea
> about that. The dts file likes this:
>
> /dts-v1/;
>
> /include/ "rt5350.dtsi"
>
> / {
> compatible = "HLKRM04", "ralink,rt5350-soc";
>  model = "HILINK HLK-RM04";
>
> memory@0 {
> reg = <0x0 0x200>;
>  };
>
> palmbus@1000 {
> sysc@0 {
>  ralink,pinmux = "i2c", "spi", "uartlite", "uart", "mdio", "sdram",
> "rgmii";
> ralink,gpiomux = "jtag";
> // ralink,uartmux = "gpio";
> ralink,wdtmux = <1>;
> };
>
> gpio0: gpio@600 {
> status = "okay";
> };
>
> spi@b00 {
> status = "okay";
> m25p80@0 {
>  #address-cells = <1>;
> #size-cells = <1>;
> compatible = "s25fl064k";
>  reg = <0 0>;
> linux,modalias = "m25p80", "s25fl064k";
> spi-max-frequency = <1000>;
>
> partition@0 {
> label = "u-boot";
> reg = <0x0 0x3>;
>  read-only;
> };
>
> partition@3 {
>  label = "u-boot-env";
> reg = <0x3 0x1>;
> read-only;
>  };
>
> factory: partition

Re: [OpenWrt-Devel] How to enable ttyS1 UART for a RT5350 device (to John Crispin)

2013-07-27 Thread Jiapeng Li
Hi John,
Thank you for your so quickly reply.  I recompile the openwrt as what you
said in the email, but it doesn't work, did i miss something? The dts file
likes this:

/dts-v1/;

/include/ "rt5350.dtsi"

/ {
compatible = "HLKRM04", "ralink,rt5350-soc";
model = "HILINK HLK-RM04";

memory@0 {
reg = <0x0 0x200>;
};

palmbus@1000 {
sysc@0 {
ralink,pinmux = "i2c", "spi", "uartlite", "uart", "mdio", "sdram", "rgmii";
ralink,gpiomux = "jtag";
ralink,uartmux = "uartf";
ralink,wdtmux = <1>;
};

gpio0: gpio@600 {
status = "okay";
};

spi@b00 {
status = "okay";
m25p80@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "s25fl064k";
reg = <0 0>;
linux,modalias = "m25p80", "s25fl064k";
spi-max-frequency = <1000>;

partition@0 {
label = "u-boot";
reg = <0x0 0x3>;
read-only;
};

partition@3 {
label = "u-boot-env";
reg = <0x3 0x1>;
read-only;
};

factory: partition@4 {
label = "factory";
reg = <0x4 0x1>;
read-only;
};

partition@5 {
label = "firmware";
reg = <0x5 0x7b>;
};
};
};

*uart@500 {*
* status = "enabled";*
* };*
};

ethernet@1010 {
status = "okay";
};

esw@1011 {
status = "okay";
ralink,portmap = <0x2f>;
};

wmac@1018 {
status = "okay";
};

ehci@101c {
status = "okay";
};

ohci@101c1000 {
status = "okay";
};

gpio-keys-polled {
compatible = "gpio-keys-polled";
#address-cells = <1>;
#size-cells = <0>;
poll-interval = <20>;
wps {
label = "reset";
gpios = <&gpio0 0 1>;
linux,code = <0x198>;
};
};

};


And it seems the i can't set the uart node like this
*uart@500 {*
* status = "okay";*
*}; *
*when i set status = "okay", i got the kernel panic*


   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 8000) ...
## Giving linux memsize in MB, 32

Starting kernel ...

[0.00] Linux version 3.10.3 (lich@lich-pc) (gcc version 4.6.4
(OpenWrt/Linaro GCC 4.6-2012.12 r37551) ) #26 Sun Jul 28 00:51:46 CST 2013
[0.00] SoC Type: Ralink RT5350 id:1 rev:3
[0.00] bootconsole [early0] enabled
[0.00] CPU revision is: 0001964c (MIPS 24KEc)
[0.00] MIPS: machine is HILINK HLK-RM04
[0.00] Determined physical RAM map:
[0.00]  memory: 0200 @  (usable)
[0.00] User-defined physical RAM map:
[0.00]  memory: 0200 @  (usable)
[0.00] Initrd not found or empty - disabling initrd
[0.00] Zone ranges:
[0.00]   Normal   [mem 0x-0x01ff]
[0.00] Movable zone start for each node
[0.00] Early memory node ranges
[0.00]   node   0: [mem 0x-0x01ff]
[0.00] Primary instruction cache 32kB, VIPT, 4-way, linesize 32
bytes.
[0.00] Primary data cache 16kB, 4-way, VIPT, no aliases, linesize
32 bytes
[0.00] Built 1 zonelists in Zone order, mobility grouping on.
 Total pages: 8128
[0.00] Kernel command line: console=ttyS0,57600
rootfstype=squashfs,jffs2 mem=32M
[0.00] PID hash table entries: 128 (order: -3, 512 bytes)
[0.00] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[0.00] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[0.00] Writing ErrCtl register=00018fa0
[0.00] Readback ErrCtl register=00018fa0
[0.00] Memory: 29420k/32768k available (2104k kernel code, 3348k
reserved, 525k data, 184k init, 0k highmem)
[0.00] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[0.00] NR_IRQS:128
[0.00] CPU Clock: 360MHz
[0.00] systick: runing - mult: 214748, shift: 32
[0.00] Calibrating delay loop... 479.23 BogoMIPS (lpj=2396160)
[0.06] pid_max: default: 32768 minimum: 301
[0.06] Mount-cache hash table entries: 512
[0.07] NET: Registered protocol family 16
[0.08] pinmux: failed to load group "uart"
[0.09] bio: create slab  at 0
[0.10] rt2880_gpio 1600.gpio: registering 24 gpios
[0.10] rt2880_gpio 1600.gpio: registering 24 irq handlers
[0.11] Switching to clocksource systick
[0.12] NET: Registered protocol family 2
[0.12] TCP established hash table entries: 512 (order: 0, 4096
bytes)
[0.14] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
[0.14] TCP: Hash tables configured (established 512 bind 512)
[0.16] TCP: reno registered
[0.16] UDP hash table entries: 256 (order: 0, 4096 bytes)
[0.18] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[0.19] NET: Registered protocol family 1
[0.20] rt-timer 1100.timer: maximum frequncy is 7324Hz
[0.24] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[0.26] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME)
(CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[0.28] msgmni has been set to 57
[0.29] io scheduler noop registered
[0.30] io scheduler deadl

Re: [OpenWrt-Devel] How to enable ttyS1 UART for a RT5350 device (to John Crispin)

2013-07-27 Thread Jiapeng Li
Hi john,
Here are the openwrt boot logs of r37568 and r35407, and i can see there
are some difference of the serial init part, i bold them, but i don't know
what it means, just think it may help a little.

Can i ask where can i found it in the source code?

Thanks.

r37568=
[0.00] Linux version 3.10.3 (lich@lich-pc) (gcc version 4.6.4
(OpenWrt/Linaro GCC 4.6-2012.12 r37551) ) #8 Sat Jul 27 18:29:45 CST 2013
[0.00] SoC Type: Ralink RT5350 id:1 rev:3
...
*[0.33] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled*
*[0.33] 1c00.uartlite: ttyS0 at MMIO 0x1c00 (irq = 20) is a
16550A*
*[0.36] console [ttyS0] enabled, bootconsole disabled*
*[0.36] console [ttyS0] enabled, bootconsole disabled*
[0.38] m25p80 spi0.0: found pm25lq032, expected s25fl064k
[0.40] m25p80 spi0.0: pm25lq032 (4096 Kbytes)
...
BusyBox v1.19.4 (2013-07-27 00:12:03 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  ___ __
 |   |.-.-.-.|  |  |  |..|  |_
 |   -   ||  _  |  -__| ||  |  |  ||   _||   _|
 |___||   __|_|__|__||||__|  ||
  |__| W I R E L E S S   F R E E D O M
 -
 BARRIER BREAKER (Bleeding Edge, *r37568*)
 -
  * 1/2 oz Galliano Pour all ingredients into
  * 4 oz cold Coffeean irish coffee mug filled
  * 1 1/2 oz Dark Rum   with crushed ice. Stir.
  * 2 tsp. Creme de Cacao
 -
root@OpenWrt:/#

/*/
*r35407*==
Starting kernel ...

[0.00] Linux version 3.7.5 (lich@lich-pc) (gcc version 4.6.4
20121210 (prerelease) (Linaro GCC 4.6-2012.12) ) #1 Fri Apr 12 15:26:15 CST
2013
[0.00] bootconsole [early0] enabled
...
[0.00] Memory: 29632k/32768k available (1969k kernel code, 3136k
reserved, 473k data, 180k init, 0k highmem)
[0.00] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0,
CPUs=1, Nodes=1
[0.00] NR_IRQS:48
*[0.00] console [ttyS1] enabled, bootconsole disabled*
*[0.00] console [ttyS1] enabled, bootconsole disabled*
[0.01] Calibrating delay loop... 239.61 BogoMIPS (lpj=1198080)
...
[0.32] io scheduler noop registered
[0.33] io scheduler deadline registered (default)
*[0.34] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled*
*[0.36] serial8250: ttyS0 at MMIO 0x1500 (irq = 13) is a 16550A*
*[0.37] serial8250: ttyS1 at MMIO 0x1c00 (irq = 20) is a 16550A*
[0.39] ramips-spi ramips-spi.0: master is unqueued, this is
deprecated
[0.41] m25p80 spi0.0: found s25fl064k, expected pm25lq032
[0.42] m25p80 spi0.0: s25fl064k (8192 Kbytes)

[   45.44] jffs2: notice: (1091) jffs2_build_xattr_subsystem: complete
building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref
(0 dead, 0 orphan) found.



BusyBox v1.19.4 (2013-04-11 22:01:38 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  ___ __
 |   |.-.-.-.|  |  |  |..|  |_
 |   -   ||  _  |  -__| ||  |  |  ||   _||   _|
 |___||   __|_|__|__||||__|  ||
  |__| W I R E L E S S   F R E E D O M
 -
 BARRIER BREAKER (Bleeding Edge, r35407)
 -
  * 1/2 oz Galliano Pour all ingredients into
  * 4 oz cold Coffeean irish coffee mug filled
  * 1 1/2 oz Dark Rum   with crushed ice. Stir.
  * 2 tsp. Creme de Cacao
 -
root@OpenWrt:/#



2013/7/28 John Crispin 

> On 27/07/13 19:06, Jiapeng Li wrote:
>
>> Hi John,
>> Thank you for your so quickly reply.  I recompile the openwrt as what
>> you said in the email, but it doesn't work, did i miss something? The
>> dts file likes this:
>>
>>
> i will have a look in a second 
> __**_
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.**org 
> https://lists.openwrt.org/cgi-**bin/mailman/listinfo/openwrt-**devel<https://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


[OpenWrt-Devel] where does "boot log info 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 20) is a 16550A" come from?

2013-07-28 Thread Jiapeng Li
Hi everyone,

Today i dig the linux kernel to see what happened.
I want to find from which funciton these kernel info comes.
And i found below result. But for the *[ 0.40] 1c00.uartlite: ttyS0
at MMIO 0x1c00 (irq = 20) is a 16550A,* i didn't find mention from any
source code.

Thanks.
Jiapeng

// this kernel info comes from* serial8250_init*
[0.36] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled

// 
*[0.40] 1c00.uartlite: ttyS0 at MMIO 0x1c00 (irq = 20) is a
16550A*
*
*
// this two info come from linux function *register_console*###
[0.42] console [ttyS0] enabled, bootconsole disabled
[0.42] console [ttyS0] enabled, bootconsole disabled

// ?
*[0.45] 1500.uart: ttyS1 at MMIO 0x1500 (irq = 13) is a
16550A*
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [Ramips] RT5350--Does the order of the 'uartf' and 'uartlite' decide the serial register sequence?

2013-08-06 Thread Jiapeng Li
In the target/linux/ramips/dts/rt5350.dtsi, the uartlite node is declared
prior of uart node, and i found when i enable the uartf, the uartf is
register to ttyS0, and uartlite to ttyS1. After i change the order of the
uartf and uartlite(make uartf prior to uartlite), uartf is registered to
ttyS1, and uartlite to ttyS1.

Regards.
JiapengLi
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] [package] uboot-env: fix spurious esac within ramips uci-defaults

2013-08-20 Thread Jiapeng Li
邮件列表地址
OpenWrt Development List 


2013/8/19 Luka Perkov 

> Hi Alexander,
>
> On Mon, Aug 19, 2013 at 05:21:38AM +0200, Alexander Couzens wrote:
> > Signed-off-by: Alexander Couzens 
> > ---
> >  package/boot/uboot-envtools/files/ramips | 2 --
> >  1 file changed, 2 deletions(-)
>
> Applied in r37814. Don't forget to bump PKG_RELEASE next time.
>
> Thank you.
>
> Luka
> ___
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://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


[OpenWrt-Devel] ramips RT5350F AP+STA mode

2013-09-06 Thread Jiapeng Li
Does openwrt support RT5350F for AP+STA mode?

I compile openwrt for MPR-A2 use the latest trunk, i use luci to configure
the wifi,
and found that OpenWrt can't open wifi client and master mode
simultaneously.

Did i miss something or RT5350F driver don't support this feature.
___
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 Jiapeng Li
hi bastian,
Yes, each of AP and STA mode can work alone, but can't work together.


2013/9/7 Bastian Bittorf 

> * Jiapeng Li  [07.09.2013 09:34]:
> > and found that OpenWrt can't open wifi client and master mode
> > simultaneously.
>
> have you tried to establish only one mode of each?
> does AP work?
> does STA work?
>
> IMHO for client (aka 'station'-mode) you need
> to include wpa-supplicant...
>
> bye, bastian
> ___
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://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


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

2013-09-08 Thread Jiapeng Li
Hi jonsmirl,

Thank you, i am new to Openwrt, and not sure about this feature.

What i know now is that RT5350 chip truly supports AP+STA mode, i test the
MPR-A2, it can support this feature and works fine.

If it is because of the WIFI driver, i think we can take an effort to make
OpenWrt support this feature.
AP+STA mode is  a very useful function.

Can you give me some idea about how to enhance the WIFI driver to support
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, #{ IBSS, AP,
> mesh point, P2P-GO } <= 8,
> >total <= 2048, #channels <= 1
> >
>
> On Sat, Sep 7, 2013 at 10:36 AM, jonsm...@gmail.com 
> wrote:
> > Use the iw command..   iw phy  for rt5350..
> >
> > valid interface combinations:
> > * #{ AP, mesh point } <= 8,
> >   total <= 8, #channels <= 1
> >
> > I suspect this is a software limitation that could be expanded with
> > some driver work.
> >
> > The AtherOS chips will do what you want.
> >
> >
> > On Sat, Sep 7, 2013 at 6:29 AM, Jiapeng Li  wrote:
> >> hi bastian,
> >> Yes, each of AP and STA mode can work alone, but can't work together.
> >>
> >>
> >> 2013/9/7 Bastian Bittorf 
> >>>
> >>> * Jiapeng Li  [07.09.2013 09:34]:
> >>> > and found that OpenWrt can't open wifi client and master mode
> >>> > simultaneously.
> >>>
> >>> have you tried to establish only one mode of each?
> >>> does AP work?
> >>> does STA work?
> >>>
> >>> IMHO for client (aka 'station'-mode) you need
> >>> to include wpa-supplicant...
> >>>
> >>> bye, bastian
> >>> ___
> >>> openwrt-devel mailing list
> >>> openwrt-devel@lists.openwrt.org
> >>> https://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
>
>
>
> --
> 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 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-08 Thread Jiapeng Li
Thanks jonsmirl,
I'll test it to see what happens, and give you a feed back.


2013/9/8 jonsm...@gmail.com 

> You can try this and see what breaks  but a lot of testing and
> verification will be needed to ensure that this is working correctly.
>
> --- a/drivers/net/wireless/rt2x00/rt2x00dev.c
> +++ b/drivers/net/wireless/rt2x00/rt2x00dev.c
> @@ -1264,7 +1264,7 @@ static inline void rt2x00lib_set_if_comb
>  */
> if_limit = &rt2x00dev->if_limits_ap;
> if_limit->max = rt2x00dev->ops->max_ap_intf;
> -   if_limit->types = BIT(NL80211_IFTYPE_AP);
> +   if_limit->types = BIT(NL80211_IFTYPE_STATION) |
> BIT(NL80211_IFTYPE_AP);
>  #ifdef CONFIG_MAC80211_MESH
> if_limit->types |= BIT(NL80211_IFTYPE_MESH_POINT);
>  #endif
>
>
>
> On Sun, Sep 8, 2013 at 9:07 AM, Jiapeng Li  wrote:
> > Hi jonsmirl,
> >
> > Thank you, i am new to Openwrt, and not sure about this feature.
> >
> > What i know now is that RT5350 chip truly supports AP+STA mode, i test
> the
> > MPR-A2, it can support this feature and works fine.
> >
> > If it is because of the WIFI driver, i think we can take an effort to
> make
> > OpenWrt support this feature.
> > AP+STA mode is  a very useful function.
> >
> > Can you give me some idea about how to enhance the WIFI driver to support
> > 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, #{ IBSS, AP,
> >> > mesh point, P2P-GO } <= 8,
> >> >total <= 2048, #channels <= 1
> >> >
> >>
> >> On Sat, Sep 7, 2013 at 10:36 AM, jonsm...@gmail.com  >
> >> wrote:
> >> > Use the iw command..   iw phy  for rt5350..
> >> >
> >> > valid interface combinations:
> >> > * #{ AP, mesh point } <= 8,
> >> >   total <= 8, #channels <= 1
> >> >
> >> > I suspect this is a software limitation that could be expanded with
> >> > some driver work.
> >> >
> >> > The AtherOS chips will do what you want.
> >> >
> >> >
> >> > On Sat, Sep 7, 2013 at 6:29 AM, Jiapeng Li 
> wrote:
> >> >> hi bastian,
> >> >> Yes, each of AP and STA mode can work alone, but can't work together.
> >> >>
> >> >>
> >> >> 2013/9/7 Bastian Bittorf 
> >> >>>
> >> >>> * Jiapeng Li  [07.09.2013 09:34]:
> >> >>> > and found that OpenWrt can't open wifi client and master mode
> >> >>> > simultaneously.
> >> >>>
> >> >>> have you tried to establish only one mode of each?
> >> >>> does AP work?
> >> >>> does STA work?
> >> >>>
> >> >>> IMHO for client (aka 'station'-mode) you need
> >> >>> to include wpa-supplicant...
> >> >>>
> >> >>> bye, bastian
> >> >>> ___
> >> >>> openwrt-devel mailing list
> >> >>> openwrt-devel@lists.openwrt.org
> >> >>> https://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
> >>
> >>
> >>
> >> --
> >> 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 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
>
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Corrupted packets with bgmac on BCM5357* devices

2013-09-12 Thread Jiapeng Li
I want to  test bcm5357 openwrt with my RT-N10U too. Which device should i
choose to compile the OpenWrt, is there related patches need to use.

Thank you
Jiapeng


2013/9/12 Rafał Miłecki 

> Some example with Wireshark output visible too.
>
> ___
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://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


Re: [OpenWrt-Devel] Corrupted packets with bgmac on BCM5357* devices

2013-09-12 Thread Jiapeng Li
Hi Rafał,
Thank you for your reply, but i have no idea about top post. If i do that
truly, i am sorry.
It will be appreciated, if you would like to tell me about how to avoid to
top post

Thanks again.
Jiapeng


2013/9/13 Rafał Miłecki 

> 2013/9/12 Jiapeng Li :
> > I want to  test bcm5357 openwrt with my RT-N10U too. Which device should
> i
> > choose to compile the OpenWrt, is there related patches need to use.
>
> First of all, don't top post please.
>
> I've no idea what are you asking for. You can compile OpenWrt *on*
> almost any architecture host. *For* what architecture you can compile
> OpenWrt? bcm47xx, bcm63xx, ar71xx... Just Google.
>
> If you have other questions not related to the BCM5357* and
> network/DMA problems, please post them in separated thread.
> ___
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://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


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

2013-09-18 Thread Jiapeng Li
pa_s->current_bss);
> + else
> + hostapd_start(wpa_s);
> +#endif
>   }
>   wpa_s->wpa_state = state;
>
>
>
> Unfortunately, it does not work. I have one AP Router, the OpenWrt AP+STA
> and one PC. OpenWrt STA connects to the AP Router and my PC's wifi connects
> to OpenWrt AP. In the initial configuration, everything goes fine, wireless
> connections work as I just said, but if I issue the following command in a
> console in my OpenWrt:
>
> # wpa_cli -p /var/run/wpa_supplicant-wlan0-1 -i wlan0-1 disable_net 0
>
> OK
>
>
> The OpenWrt AP is turned off, my PC's wifi is disconnected from OpenWrt
> and cannot connect back anymore even though wpa_supplicant has gone to
> INACTIVE:
>
> # wpa_cli -p /var/run/wpa_supplicant-wlan0-1 -i wlan0-1 status
> wpa_state=INACTIVE
> ip_address=X.X.X.X
> address=xx:xx:xx:xx:xx:xx
>
> What am I missing? Can the behavior I propose be implemented?
>
> Regards,
> Diego
>
>
>
>
>
>
>
>
>
> On Mon, Sep 9, 2013 at 2:18 AM, jonsm...@gmail.com wrote:
>
>> 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 
>> >
>> >> You can try this and see what breaks  but a lot of testing and
>> >> verification will be needed to ensure that this is working correctly.
>> >>
>> >> --- a/drivers/net/wireless/rt2x00/rt2x00dev.c
>> >> +++ b/drivers/net/wireless/rt2x00/rt2x00dev.c
>> >> @@ -1264,7 +1264,7 @@ static inline void rt2x00lib_set_if_comb
>> >>  */
>> >> if_limit = &rt2x00dev->if_limits_ap;
>> >> if_limit->max = rt2x00dev->ops->max_ap_intf;
>> >> -   if_limit->types = BIT(NL80211_IFTYPE_AP);
>> >> +   if_limit->types = BIT(NL80211_IFTYPE_STATION) |
>> >> BIT(NL80211_IFTYPE_AP);
>> >>  #ifdef CONFIG_MAC80211_MESH
>> >> if_limit->types |= BIT(NL80211_IFTYPE_MESH_POINT);
>> >>  #endif
>> >>
>> >>
>> >>
>> >> On Sun, Sep 8, 2013 at 9:07 AM, Jiapeng Li 
>> wrote:
>> >> > Hi jonsmirl,
>> >> >
>> >> > Thank you, i am new to Openwrt, and not sure about this feature.
>> >> >
>> >> > What i know now is that RT5350 chip truly supports AP+STA mode, i
>> test
>> >> > the
>> >> > MPR-A2, it can support this feature and works fine.
>> >> >
>> >> > If it is because of the WIFI driver, i think we can take an effort to
>> >> > make
>> >> > OpenWrt support this feature.
>> >> > AP+STA mode is  a very useful function.
>> >> >
>> >> > Can you give me some idea about how to enhance the WIFI driver to
>> >> > support
>> >> > 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, #{ IBSS,
>> >> >> > AP,
>> >> >> > mesh point, P2P-GO } <= 8,
>> >> >> >total <= 2048, #channels <= 1
>> >> >> >
>> >> >>
>> >> >> On Sat, Sep 7, 2013 at 10:36 AM, jonsm...@gmail.com
>> >> >> 
>> >> >> wrote:
>> >> >> > Use the iw command..   iw phy  for rt5350..
>> >> >> >
>> >> >> > valid interface combinations:
>> >> >> > * #{ AP, mesh point } <= 8,
>> >> >> >   total <= 8, #channels <= 1
>> >> >> >
>> >> >> > I suspect this is a software limitation that could be expanded
>> with
>> >> >> > some driver work.
>> >> >> >
>> >> >> > The AtherOS chips will do what you want.
>> >> >> >
>> >

[OpenWrt-Devel] [ramips] How to write pinctrl node?

2013-10-09 Thread Jiapeng Li
r38026 change the gpio initial node to pinctrl. I want to enable uartf for
HLK-RM04 device, so i add a "uartf_pins: uartf" node to the pinctrl node.
+ uartf_pins: uartf {
+ uartf {
+ ralink,group = "uartf";
+ ralink,function = "gpio uartf";
+ };
+ };
This node can enable uartf function of RT5350, but after add this node i
can't export gpio in the command line.

root@OpenWrt:/sys/class/gpio# echo 1 > export
[ 1056.70] rt2880-pinmux pinctrl.1: pin 1 is not set to gpio mux
[ 1056.72] rt2880-pinmux pinctrl.1: request() failed for pin 1
[ 1056.73] rt2880-pinmux pinctrl.1: pin-1 (pio:1) status -22
ash: write error: Invalid argument

I am suspecting if the dts file of mine is wrong.

Index: target/linux/ramips/dts/HLKRM04.dts
===
--- target/linux/ramips/dts/HLKRM04.dts (revision 0)
+++ target/linux/ramips/dts/HLKRM04.dts (working copy)
@@ -0,0 +1,101 @@
+/dts-v1/;
+
+/include/ "rt5350.dtsi"
+
+/ {
+ compatible = "HLKRM04", "ralink,rt5350-soc";
+ model = "HILINK HLK-RM04";
+
+ palmbus@1000 {
+ spi@b00 {
+ status = "okay";
+ m25p80@0 {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ compatible = "s25fl064k";
+ reg = <0 0>;
+ linux,modalias = "m25p80", "s25fl064k";
+ spi-max-frequency = <1000>;
+
+ partition@0 {
+ label = "u-boot";
+ reg = <0x0 0x3>;
+ read-only;
+ };
+
+ partition@3 {
+ label = "u-boot-env";
+ reg = <0x3 0x1>;
+ read-only;
+ };
+
+ factory: partition@4 {
+ label = "factory";
+ reg = <0x4 0x1>;
+ read-only;
+ };
+
+ partition@5 {
+ label = "firmware";
+ reg = <0x5 0xFb>;
+ };
+ };
+ };
+
+ uartlite@c00 {
+ status = "okay";
+ };
+
+ uart@500 {
+ status = "okay";
+ };
+ };
+
+ pinctrl {
+ state_default: pinctrl0 {
+ gpio {
+ ralink,group = "i2c", "jtag", "rgmii", "mdio";
+ ralink,function = "gpio";
+ };
+ };
+
+ uartf_pins: uartf {
+ uartf {
+ ralink,group = "uartf";
+ ralink,function = "gpio uartf";
+ };
+ };
+ };
+
+ esw@1011 {
+ status = "okay";
+ };
+
+ ehci@101c {
+ status = "okay";
+ };
+
+ ohci@101c1000 {
+ status = "okay";
+ };
+
+ gpio-keys-polled {
+ compatible = "gpio-keys-polled";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ poll-interval = <20>;
+ wps {
+ label = "reset";
+ gpios = <&gpio0 14 1>;
+ linux,code = <0x198>;
+ };
+ };
+
+ gpio-leds {
+ compatible = "gpio-leds";
+ power {
+ label = "hlk-rm04:red:power";
+ gpios = <&gpio0 0 1>;
+ };
+ };
+};
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] GPIO and pinctrl problem

2013-10-10 Thread Jiapeng Li
I think the new gpio driver(after r38026(include)) of ramips platform has
some bugs, after i set uartf to "gpio uartf" mode, i can't export any gpio.
Maybe there are some relationship between this error and mine.

root@OpenWrt:/sys/class/gpio# echo 1 > export
[ 1056.70] rt2880-pinmux pinctrl.1: pin 1 is not set to gpio mux
[ 1056.72] rt2880-pinmux pinctrl.1: request() failed for pin 1
[ 1056.73] rt2880-pinmux pinctrl.1: pin-1 (pio:1) status -22
ash: write error: Invalid argument
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] GPIO and pinctrl problem

2013-10-10 Thread Jiapeng Li
Which version of trunk do you use? After i downgrade to r38025, all things
work fine.
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH][packages] libnfc: Update to version 1.7.0

2013-10-11 Thread Jiapeng Li
Update libnfc to version 1.7.0.

https://libnfc.googlecode.com/files/libnfc-1.7.0.tar.bz2 needs to be added
to http://downloads.openwrt.org/sources/

Signed-off-by: JiapengLi 
---
diff --git a/libs/libnfc/Makefile b/libs/libnfc/Makefile
index 882554f..ae30c8e 100644
--- a/libs/libnfc/Makefile
+++ b/libs/libnfc/Makefile
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk

 PKG_NAME:=libnfc
-PKG_VERSION:=1.4.2
+PKG_VERSION:=1.7.0
 PKG_RELEASE:=1

-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:=http://libnfc.googlecode.com/files
-PKG_MD5SUM:=c99b2b9212b1a1b064055a199779bdd8
+PKG_MD5SUM:=8d8aced79cc0859c605c04d59e4484b3

 PKG_FIXUP:=autoreconf
 PKG_INSTALL:=1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] Fwd: [PATCH][packages] ser2net: Update to version 2.9.1

2013-10-11 Thread Jiapeng Li
Update ser2net to version 2.9.1.

http://sourceforge.net/projects/ser2net/files/ser2net/ser2net-2.9.1.tar.gz
needs
to be added to http://downloads.openwrt.org/sources/

Signed-off-by: JiapengLi 
---
diff --git a/net/ser2net/Makefile b/net/ser2net/Makefile
index 2782972..c67e08f 100644
--- a/net/ser2net/Makefile
+++ b/net/ser2net/Makefile
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk

 PKG_NAME:=ser2net
-PKG_VERSION:=2.8
+PKG_VERSION:=2.9.1
 PKG_RELEASE:=1

 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=@SF/ser2net
-PKG_MD5SUM:=1cffbdaad221f19dcf82681472f7f947
+PKG_MD5SUM:=80011ac0e60bbdcb65f1d7a86251e3f3

 PKG_FIXUP:=autoreconf
 PKG_INSTALL:=1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Fwd: [PATCH][packages] ser2net: Update to version 2.9.1

2013-10-12 Thread Jiapeng Li
Thank you, Yegor.
Need i cancel the patch i sent?
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH][packages] libnfc: Add configuration file installtion.

2013-11-04 Thread Jiapeng Li
libnfc version 1.7.0 need a configuration file to configure work mode.

Signed-off-by: JiapengLi 
---
diff --git a/libs/libnfc/Makefile b/libs/libnfc/Makefile
index ae30c8e..0aa2ad9 100644
--- a/libs/libnfc/Makefile
+++ b/libs/libnfc/Makefile
@@ -91,6 +91,8 @@ endef
 define Package/libnfc/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libnfc.so.* $(1)/usr/lib/
+   $(INSTALL_DIR) $(1)/etc/nfc/devices.d
+   $(CP) $(PKG_BUILD_DIR)/libnfc.conf.sample $(1)/etc/nfc/libnfc.conf
 endef

 define Package/libnfc-bin/install
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH][packages] gstreamer: Update to version 1.2.2. Make grammar.y work with Bison 3

2013-12-30 Thread Jiapeng Li
Update gstreamer to version 1.2.2.

gstreamer 0.10.36 doesn't support bison 3+(from r38169), this patch
can solve the compile error. gstreamer starts supporting bison 3+ from
1.1.4.

http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-1.2.2.tar.xz
needs to be added to http://downloads.openwrt.org/sources/

Signed-off-by: JiapengLi 
---
diff --git a/multimedia/gstreamer/Makefile b/multimedia/gstreamer/Makefile
index a5e896f..dda4f24 100644
--- a/multimedia/gstreamer/Makefile
+++ b/multimedia/gstreamer/Makefile
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk

 PKG_NAME:=gstreamer
-PKG_VERSION:=0.10.36
+PKG_VERSION:=1.2.2
 PKG_RELEASE:=1

-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=http://gstreamer.freedesktop.org/src/gstreamer/
-PKG_MD5SUM:=a0cf7d6877f694a1a2ad2b4d1ecb890b
+PKG_MD5SUM:=4293ca4d8333690d5acdffe3ad354924

 PKG_FIXUP:=autoreconf
 PKG_REMOVE_FILES:=autogen.sh aclocal.m4
@@ -79,7 +79,7 @@ $(call Package/gstreamer/description/Default)
 endef


-GST_VERSION:=0.10
+GST_VERSION:=1.0

 CONFIGURE_ARGS += \
  --disable-examples \
@@ -101,7 +101,7 @@ define Build/InstallDev
  )
  $(INSTALL_DIR) $(1)/usr/lib
  ( cd $(PKG_INSTALL_DIR); $(CP) \
- ./usr/lib/libgst*-$(GST_VERSION).{a,la,so*} \
+ ./usr/lib/libgst*-$(GST_VERSION).{la,so*} \
  $(1)/usr/lib/ \
  )
  $(INSTALL_DIR) $(1)/usr/lib/gstreamer-$(GST_VERSION)
@@ -184,7 +184,6 @@ endef

 $(eval $(call GstBuildLibrary,check,check unit testing))
 $(eval $(call GstBuildLibrary,controller,dynamic parameter control))
-$(eval $(call GstBuildLibrary,dataprotocol,data protocol))
 $(eval $(call GstBuildLibrary,net,network classes))

 $(eval $(call BuildPackage,gstreamer))
diff --git a/multimedia/gstreamer/patches/001-no_docs.patch
b/multimedia/gstreamer/patches/001-no_docs.patch
index e94fd00..a4bb6b8 100644
--- a/multimedia/gstreamer/patches/001-no_docs.patch
+++ b/multimedia/gstreamer/patches/001-no_docs.patch
@@ -1,14 +1,14 @@
 --- a/Makefile.am
 +++ b/Makefile.am
-@@ -8,7 +8,6 @@ aclocal_DATA = gst-element-check-@GST_MA
+@@ -8,7 +8,6 @@ aclocal_DATA = gst-element-check-@GST_AP

  SUBDIRS = pkgconfig \
- gst libs plugins tools tests \
+ gst libs plugins tests \
 - docs \
  po \
  m4 \
  common
-@@ -16,7 +15,6 @@ SUBDIRS = pkgconfig \
+@@ -20,7 +19,6 @@ endif
  # These are all the possible subdirs
  DIST_SUBDIRS = pkgconfig \
  gst libs plugins tools tests \
@@ -18,15 +18,14 @@
  common
 --- a/Makefile.in
 +++ b/Makefile.in
-@@ -445,7 +445,6 @@ aclocaldir = $(datadir)/aclocal
- aclocal_DATA = gst-element-check-@GST_MAJORMINOR@.m4
- SUBDIRS = pkgconfig \
- gst libs plugins tools tests \
-- docs \
- po \
- m4 \
- common
-@@ -454,7 +453,6 @@ SUBDIRS = pkgconfig \
+@@ -555,13 +555,12 @@ top_srcdir = @top_srcdir@
+ DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --enable-docbook
+ aclocaldir = $(datadir)/aclocal
+ aclocal_DATA = gst-element-check-@GST_API_VERSION@.m4
+-SUBDIRS = pkgconfig gst libs plugins tests docs po m4 common \
++SUBDIRS = pkgconfig gst libs plugins tests po m4 common \
+ $(am__append_1)
+
  # These are all the possible subdirs
  DIST_SUBDIRS = pkgconfig \
  gst libs plugins tools tests \
diff --git a/multimedia/gstreamer/patches/002-no_tests.patch
b/multimedia/gstreamer/patches/002-no_tests.patch
index 6058a38..4fef94f 100644
--- a/multimedia/gstreamer/patches/002-no_tests.patch
+++ b/multimedia/gstreamer/patches/002-no_tests.patch
@@ -1,14 +1,15 @@
 --- a/Makefile.am
 +++ b/Makefile.am
-@@ -7,14 +7,14 @@ aclocaldir = $(datadir)/aclocal
- aclocal_DATA = gst-element-check-@GST_MAJORMINOR@.m4
+@@ -7,7 +7,7 @@ aclocaldir = $(datadir)/aclocal
+ aclocal_DATA = gst-element-check-@GST_API_VERSION@.m4

  SUBDIRS = pkgconfig \
-- gst libs plugins tools tests \
-+ gst libs plugins tools \
+- gst libs plugins tests \
++ gst libs plugins \
  po \
  m4 \
  common
+@@ -18,7 +18,7 @@ endif

  # These are all the possible subdirs
  DIST_SUBDIRS = pkgconfig \
@@ -19,16 +20,13 @@
  common
 --- a/Makefile.in
 +++ b/Makefile.in
-@@ -444,7 +444,7 @@ DISTCHECK_CONFIGURE_FLAGS = --enable-gtk
+@@ -555,12 +555,12 @@ top_srcdir = @top_srcdir@
+ DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --enable-docbook
  aclocaldir = $(datadir)/aclocal
- aclocal_DATA = gst-element-check-@GST_MAJORMINOR@.m4
- SUBDIRS = pkgconfig \
-- gst libs plugins tools tests \
-+ gst libs plugins tools \
- po \
- m4 \
- common
-@@ -452,7 +452,7 @@ SUBDIRS = pkgconfig \
+ aclocal_DATA = gst-element-check-@GST_API_VERSION@.m4
+-SUBDIRS = pkgconfig gst libs plugins tests po m4 common \
++SUBDIRS = pkgconfig gst libs plugins po m4 common \
+ $(am__append_1)

  # These are all the possible subdirs
  DIST_SUBDIRS = pkgconfig \
diff --git a/multimedia/gstreamer/patches/003-no_translations.patch
b/multimedia/gstreamer/patches/003-no_translations.patch
index 8090563..7fdfc4e 100644
--- a/multimedia/gstreamer/patches/003-no_translations.patch
+++ b/multimedia/gstreamer/patches/003-no_translations.patch
@@ -1,23 +1,14 @@
 a/configure.ac
-++

Re: [OpenWrt-Devel] [PATCH][packages] gstreamer: Update to version 1.2.2. Make grammar.y work with Bison 3

2013-12-30 Thread Jiapeng Li
> This will break packages that depend on 0.10 series of gstreamer. I have 
> already
> submitted a patch, "[PATCH][packages]gstreamer: update grammar.y to build with
> bison 3", that addresses this issue. It was submitted early December.
Thank you john, your patch is applied by luka.
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Ralink pinctrl

2013-12-30 Thread Jiapeng Li
hi jonsmirl,
>From what i known, to enable uartf of RT5350F, we need patch serial/8250.
https://github.com/JiapengLi/OpenWrt-HiLink-HLK-RM04/blob/master/openwrt-fix-enable-uartf-kernel-panic.patch

I use uart and gpio functions, the pinctrl of mine:

+pinctrl {
+compatible = "ralink,rt2880-pinmux";
+
+pinctrl-names = "default";
+pinctrl-0 = <&state_default>;
+
+state_default: pinctrl0 {
+gpio {
+ralink,group = "jtag", "rgmii", "mdio";
+ralink,function = "gpio";
+};
+};
+
+spi_pins: spi {
+spi {
+ralink,group = "spi";
+ralink,function = "spi";
+};
+};
+i2c_pins: i2c {
+i2c {
+ralink,group = "i2c";
+ralink,function = "i2c";
+};
+};
+phy_led_pins: phy_led {
+phy_led {
+ralink,group = "led";
+ralink,function = "led";
+};
+};
+uartlite_pins: uartlite {
+uart {
+ralink,group = "uartlite";
+ralink,function = "uartlite";
+};
+};





*+uartf_pins: uartf {+uartf {+
   ralink,group = "uartf";+
   ralink,function = "gpio uartf";+};+
   };*
+};

BR.
Jiapeng
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Svn commit help please

2014-02-15 Thread Jiapeng Li
If you want to commit to local, you could use openwrt git source.
https://dev.openwrt.org/wiki/GetSource
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH][ralink] hlk-rm04: configure uartf to 'gpio uartf' mode

2014-02-22 Thread Jiapeng Li
ralink: hlk-rm04 - uartf should be configured to 'gpio uartf'
mode, make sure pin14 is set to `gpio` mode.
Signed-off-by: JiapengLi 
--
diff --git a/target/linux/ramips/dts/HLKRM04.dts
b/target/linux/ramips/dts/HLKRM04.dts
index 13597dc..e1f5ce4 100644
--- a/target/linux/ramips/dts/HLKRM04.dts
+++ b/target/linux/ramips/dts/HLKRM04.dts
@@ -63,6 +63,12 @@
  ralink,function = "gpio";
  };
  };
+ uartf_pins: uartf {
+ uartf {
+ ralink,group = "uartf";
+ ralink,function = "gpio uartf";
+ };
+ };
  };

  ethernet@1010 {


-- 
JiapengLi
Blog:jiapeng.me
GitHub: github.com/jiapengli
AboutMe: about.me/lich
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel