[OpenWrt-Devel] [PATCH] Patch to use external sources of rootfs

2012-03-22 Thread Tathagata Das
Hi,
  Attached is OpenWRT general purpose patch. Through this patch, OpenWRT 
developers may use external (mentioned) sources of rootfs. I have used latest 
trunk source code (revision number 31050) to create this patch.

Regards,
Tathagata tathag...@alumnux.com




external-cpio-support.patch
Description: Binary data
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] Patch to use local repository and follow symbolic links

2012-03-22 Thread Tathagata Das
Hi,
  Attached is OpenWRT general purpose patch. Through this patch, OpenWRT 
developers can add local repository paths to refer for a tarball download 
(scripts/localmirrors.default). Changes are done also to follow symbolic links. 
I have used latest trunk source code (revision number 31050) to create this 
patch.

Regards,
Tathagata tathag...@alumnux.com



localmirrors-default-support.patch
Description: Binary data
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] LANTIQ- EASY5072- UART0 problem

2012-03-22 Thread Spyridon Tompros

 Dear all,

we have been using OpenWRT on Lantiq's evaluation board with the 
following details.

Target Lantiq GPON/XWAY
Subtarget Danube
Target Profile (EASY50712)

We have tested the following the following USB drivers provided with the 
latest openwrt/trunk version (downloaded yesterday):

-Kmod-usb-core
-Kmod-usb2
-Kmod-serial-to-usb

In all cases we observe lost packets when sending files to a PC and 
receiving them back. Some times the kernel crashes, while crashes happen 
always when we try to physically connect a USB HUB or a media USB device.



As a workaround We've tried to implement another USB port by using an 
external Vinculum VNC1L Chip. It works connected to a serial port. The 
problem we encounter now is that the UART0 port of the Danube seems 
dead We discovered that even if we write the respective register 
(MCON), it remains incactive. Moreover we've tried to include the UART0 
as console from the make menuconfig util and the result was the same.


Has anybody activated the second serial port of Danube?


Thanks,


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] LANTIQ- EASY5072- UART0 problem

2012-03-22 Thread John Crispin
On 22/03/12 17:48, Spyridon Tompros wrote:
  Dear all,
 
 we have been using OpenWRT on Lantiq's evaluation board with the
 following details.
 Target Lantiq GPON/XWAY
 Subtarget Danube
 Target Profile (EASY50712)
 
 We have tested the following the following USB drivers provided with the
 latest openwrt/trunk version (downloaded yesterday):
 -Kmod-usb-core
 -Kmod-usb2
 -Kmod-serial-to-usb
 
 In all cases we observe lost packets when sending files to a PC and
 receiving them back. Some times the kernel crashes, while crashes happen
 always when we try to physically connect a USB HUB or a media USB device.
 
 
 As a workaround We've tried to implement another USB port by using an
 external Vinculum VNC1L Chip. It works connected to a serial port. The
 problem we encounter now is that the UART0 port of the Danube seems
 dead We discovered that even if we write the respective register
 (MCON), it remains incactive. Moreover we've tried to include the UART0
 as console from the make menuconfig util and the result was the same.
 
 Has anybody activated the second serial port of Danube?


Hi,

It has worked in the past, but i have not tried it in a while, i have a
twinpass baord with 2 serial ports and will add this on my todo list for
tomorrow

John
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] LANTIQ- EASY5072- UART0 problem

2012-03-22 Thread Spyridon Tompros

 Hi,

thanks a lot for the support.

Spyros

On 22/3/2012 6:44 μμ, John Crispin wrote:

On 22/03/12 17:48, Spyridon Tompros wrote:

  Dear all,

we have been using OpenWRT on Lantiq's evaluation board with the
following details.
Target Lantiq GPON/XWAY
Subtarget Danube
Target Profile (EASY50712)

We have tested the following the following USB drivers provided with the
latest openwrt/trunk version (downloaded yesterday):
-Kmod-usb-core
-Kmod-usb2
-Kmod-serial-to-usb

In all cases we observe lost packets when sending files to a PC and
receiving them back. Some times the kernel crashes, while crashes happen
always when we try to physically connect a USB HUB or a media USB device.


As a workaround We've tried to implement another USB port by using an
external Vinculum VNC1L Chip. It works connected to a serial port. The
problem we encounter now is that the UART0 port of the Danube seems
dead We discovered that even if we write the respective register
(MCON), it remains incactive. Moreover we've tried to include the UART0
as console from the make menuconfig util and the result was the same.

Has anybody activated the second serial port of Danube?


Hi,

It has worked in the past, but i have not tried it in a while, i have a
twinpass baord with 2 serial ports and will add this on my todo list for
tomorrow

John
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel




--
Best Regards,
Spyridon Tompros


Dr. Ing. Spyridon Tompros
36 GE Lebon, 1160 Brussels
tel:+322.5133076
www.qualtek.eu


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] lantiq: usb_support flag in .config and amazon se

2012-03-22 Thread Conor O'Gorman
Dear Wise People,

How do I get USB_SUPPORT config symbol into tmp/.config-target.in for
amazon ala danube?

I've gone through the files in target/lantiq and I just cannot see how
to make amazon se (ase) support usb, and enable the USB support menu.

I see that the crucial piece ends up in tmp/.config-target.in, but I
cannot find the source.

config TARGET_lantiq_danube
bool Danube
select LINUX_2_6
select LINUX_2_6_32
depends TARGET_lantiq
select mips
select GPIO_SUPPORT
select USES_JFFS2
select PCI_SUPPORT
select USES_SQUASHFS
select USB_SUPPORT
help
  Lantiq Danube/Twinpass

config TARGET_lantiq_ase
bool Amazon-SE
select LINUX_2_6
select LINUX_2_6_32
depends TARGET_lantiq
select mips
select GPIO_SUPPORT
select USES_JFFS2
select USES_SQUASHFS
help
  Lantiq ASE

Thanks for your assistance,
Conor

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] lantiq: usb_support flag in .config and amazon se

2012-03-22 Thread Conor O'Gorman
On Thu, 2012-03-22 at 21:39 +0100, Luca Olivetti wrote:
 Al 22/03/12 21:08, En/na Conor O'Gorman ha escrit:
  Dear Wise People,
  
  How do I get USB_SUPPORT config symbol into tmp/.config-target.in for
  amazon ala danube?
  
  I've gone through the files in target/lantiq and I just cannot see how
  to make amazon se (ase) support usb, and enable the USB support menu.
 
 I don't know if that's enough, but CONFIG_USB_SUPPORT is defined in 
 danube/config-default, 
 so you could try to put in in ase/config-default.
 
 Bye

I have explored that path, without result. I especially noted a recent
comment on the mailing list mentioning kernel_menuconfig as the correct
way to adjust. I also hand-modded them. I may try it again.

 Try make kernel_menuconfig CONFIG_TARGET=subtarget.
 CONFIG_TARGET allows you to select which config you want to edit.
 possible options: target, subtarget, env.

USB_ARCH_HAS_HCD seems to play a role, but it's behaviour is also
confusing me.

Conor



___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] enable ntpd server for busybox

2012-03-22 Thread Etienne Champetier
Hi

The 2 attached patchs (trunk  bacfire) add busybox ntpd enable_server option, 
as busybox ntpd server is compiled by default.
We only need 1 client/server daemon (olipro patch was launching 2 daemons)
I've fully tested the bacfire patch, and as i don't have a running openwrt 
trunk i'm not sure for the trunk patch (i'm sure about my modifications, but 
i'm not sure about [ -x $PROG ] || return 1, as $PROG isn't defined ?!)

Signed-off-by: Etienne CHAMPETIER etienne.champet...@free.fr


Le 16/01/2012 01:57, Philip Prindeville a écrit :
 On 1/14/12 11:37 AM, Olipro wrote:
 On Saturday 14 Jan 2012 02:45:59 Philip Prindeville wrote:
 Don't we already have a 'disabled' option?  Now we're adding an
 'enable_server' option?

 That seems confusing for no useful reason.

 have you bothered to read what I originally wrote? your response would make 
 me inclined to believe that you didn't.

 currently the ntpd initscript only runs it as a CLIENT - this patch enables 
 you to have one instance running as a client and another as a SERVER that 
 other hosts can synchronise with.

 Or perhaps I'm misunderstanding, what would you propose for allowing the 
 built-in busybox ntpd to be utilised as a server? a separate init script 
 entirely perhaps?
 Or separate config sections... instead of 'config ntp' have 'config 
 ntp-server' and 'config ntp-client'.

 -Philip
Index: package/base-files/files/etc/config/system
===
--- package/base-files/files/etc/config/system  (revision 31055)
+++ package/base-files/files/etc/config/system  (working copy)
@@ -7,3 +7,6 @@
list server 1.openwrt.pool.ntp.org
list server 2.openwrt.pool.ntp.org
list server 3.openwrt.pool.ntp.org
+
+config busybox ntpd
+   option enable_server 0
\ No newline at end of file
Index: package/base-files/files/etc/init.d/sysntpd
===
--- package/base-files/files/etc/init.d/sysntpd (revision 31055)
+++ package/base-files/files/etc/init.d/sysntpd (working copy)
@@ -10,6 +10,8 @@
[ -x $BIN ] || exit 0
 
local peers
+   local args=-n
+   local enable_server
 
getpeers() {
config_get peers $1 server
@@ -17,14 +19,20 @@
 
config_load system
config_foreach getpeers timeserver
+   config_get_bool enable_server ntpd enable_server 0
 
+   if [ $enable_server -ne 0 ]; then
+   append args -l
+   fi
+
if [ -n $peers ]; then
local peer
-   local args=-n
for peer in $peers; do
append args -p $peer
done
+   fi
 
+   if [ $args != -n ]; then
start-stop-daemon -x $BIN -m -p $PID -b -S -- $args
fi
 }
Index: package/base-files/files/etc/config/system
===
--- package/base-files/files/etc/config/system  (revision 31054)
+++ package/base-files/files/etc/config/system  (working copy)
@@ -7,3 +7,6 @@
list server 1.openwrt.pool.ntp.org
list server 2.openwrt.pool.ntp.org
list server 3.openwrt.pool.ntp.org
+
+config busybox ntpd
+   option enable_server 0
\ No newline at end of file
Index: package/base-files/files/etc/init.d/sysntpd
===
--- package/base-files/files/etc/init.d/sysntpd (revision 31054)
+++ package/base-files/files/etc/init.d/sysntpd (working copy)
@@ -11,6 +11,8 @@
[ -x $PROG ] || return 1
 
local peers
+   local args=-n
+   local enable_server
 
getpeers() {
config_get peers $1 server
@@ -18,14 +20,20 @@
 
config_load system
config_foreach getpeers timeserver
+   config_get_bool enable_server ntpd enable_server 0
 
+   if [ $enable_server -ne 0 ]; then
+   append args -l
+   fi
+
if [ -n $peers ]; then
local peer
-   local args=-n
for peer in $peers; do
append args -p $peer
done
+   fi
 
+   if [ $args != -n ]; then
service_start /usr/sbin/ntpd $args
fi
 }
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel