Re: [OpenWrt-Devel] [OpenWrt] #6081: Wifi toggle package propose

2009-11-02 Thread Nuno Gonçalves
https://dev.openwrt.org/ticket/5256 is quite different.

To toggle script they used:

| elif [ -z $(cat /var/state/wireless) ]; then
|  # empty state file signals deactivated wireless
|  $(logcmd) WLAN is OFF. Switch ON and set LEDS accordingly.
|  wifi up
|  set_leds ON
| else
|  $(logcmd) WLAN is ON. Switch OFF and set LEDS accordingly.
|  wifi down
|  set_leds OFF
| fi

I checked the trunk version of wifi and calling wifi up or just
wifi is the same. This means that this script can't enable
connection that have the wifi disabled at the config file. Also that
is impossible to use a default off on power up.

I use the following script:

| load_wireless() {
| uci set wireless.${1}.disabled=$disabled
| }
|
| setwifi() {
| setled
|
| config_load wireless
| config_foreach load_wireless wifi-device
| wifi
| }

So it iterates over every wifi-device at /etc/config/wireless and
disable/enable it.
So I think it's also generic for whatever you want.


There is still a little issue that I don't know if it's real an issue.
And it is about checking the current toggle state. I use:

| if [ $(uci get wireless.wifi0.disabled) = 1 ]

So the question is: is possible to have more than on wifi-device?
If so all solutions that I see have...more issues.

--
\ Nuno Gonçalves
/
\ Bugs? Features!
/
\ nuno...@gmail.com
/ PORTUGAL
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [OpenWrt] #6081: Wifi toggle package propose

2009-11-02 Thread edgar . soldin


I checked the trunk version of wifi and calling wifi up or just
wifi is the same. This means that this script can't enable
connection that have the wifi disabled at the config file. Also that
is impossible to use a default off on power up.


true .. that can only be achieved by toggling the uci config variables.
hotplug-radiobutton was never meant to switch the default. A router 
should switch to a default on reboot. What if nobody is around to push 
the button but wireless is needed but it was disabled before it was 
rebooted?



I use the following script:


SNIP


So it iterates over every wifi-device at /etc/config/wireless and
disable/enable it.
So I think it's also generic for whatever you want.


it is ..


So the question is: is possible to have more than on wifi-device?


yes it is..


If so all solutions that I see have...more issues.


question is what do you want. A simple switch on/off of wireless 
(meaning all wireless devices) or a more complicated configurable script 
switching just some devices..



... best regards ede


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


Re: [OpenWrt-Devel] [PATCH] bcm63xx_enet: update upstream fixes (with the patch)

2009-11-02 Thread Guillaume LECERF
2009/10/20 Guillaume LECERF foxc...@gmail.com:
 With the patch this time.

Ping?


-- 
Guillaume LECERF
GeeXboX developer - www.geexbox.org
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] Status of the amazon port (Samsung GMT-3210)

2009-11-02 Thread Stephan Heuser

Hi,

is there any information available on the status of the Infinion amazon 
port? I'm eager to try it on an Samsung 3210, which is based on this 
design.


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


[OpenWrt-Devel] WRAP board (x86-generic-pcengines wrap) boot problems

2009-11-02 Thread David A. Bandel
Folks,

OK, not sure what the problem is.  I've previously (cerca r-16637)
built the wrap image and all went well.

I've tried with a more recent svn, but using the same .config from
r-16637.  Unfortunately, it won't boot.  Here's the last few lines
during boot:

scsi0 : sc1200
scsi1 : sc1200
ata1: PATA max UDMA/33 cmd 0x1f0 ctl 0x3f6 bmdma 0xfc00 irq 14
ata2: DUMMY
ata1.00: failed to IDENTIFY (device reports invalid type, err_mask=0x0)
Clocksource tsc unstable (delta = -478254592 ns)
ata1.00: failed to IDENTIFY (device reports invalid type, err_mask=0x0)
block2mtd: error: cannot open device /dev/hda2
PNP: No PS/2 controller found. Probing ports directly.
i8042.c: No controller found.
mice: PS/2 mouse device common for all mice
enabling scx200 high-res timer (1 MHz +0 ppm)
TCP westwood registered
NET: Registered protocol family 17
Bridge firewalling registered
802.1Q VLAN Support v1.8 Ben Greear gree...@candelatech.com
All bugs added by David S. Miller da...@redhat.com
Using IPI Shortcut mode
VFS: Cannot open root device mtdblock0 or unknown-block(0,0)
Please append a correct root= boot option; here are the available partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
Pid: 1, comm: swapper Not tainted 2.6.31.5 #1
Call Trace:
 [c101f6c7] ? panic+0x47/0xf0
 [c12bbab0] ? mount_block_root+0x1d0/0x270
 [c1002930] ? do_notify_resume+0x3f0/0x910
 [c12bbb97] ? mount_root+0x47/0x60
 [c12bbce5] ? prepare_namespace+0x135/0x170
 [c106765f] ? sys_access+0x1f/0x30
 [c12bb552] ? kernel_init+0xd2/0xe0
 [c12bb480] ? kernel_init+0x0/0xe0
 [c1003813] ? kernel_thread_helper+0x7/0x14

Again, identical configs, last one that boot was 16637, current version 18261.

Not sure what happened here.

TIA,

David A. Bandel
-- 
Focus on the dream, not the competition.
- Nemesis Air Racing Team motto
Visit my blog at: http://www.pananix.com/cgi-bin/blosxom
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] WRAP board (x86-generic-pcengines wrap) boot problems

2009-11-02 Thread Jo-Philipp Wich
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Not sure whether same config is supposed to work. At least the rootfs
partition name changed recently, my Wrap Board here works fine with an
ext2 image and CONFIG_X86_GRUB_ROOTPART=/dev/sda2 .

~ JoW
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkrvGpUACgkQdputYINPTPPJWgCgmXQacMH3hE5b+/cXQRkMW3mG
7g4AoKe414dFfhAIQsBa/MRMeCS32S3A
=9Q7Q
-END PGP SIGNATURE-
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] WRAP board (x86-generic-pcengines wrap) boot problems

2009-11-02 Thread David A. Bandel
On Mon, Nov 2, 2009 at 12:44, Jo-Philipp Wich x...@subsignal.org wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Not sure whether same config is supposed to work. At least the rootfs
 partition name changed recently, my Wrap Board here works fine with an
 ext2 image and CONFIG_X86_GRUB_ROOTPART=/dev/sda2 .

OK, tried again -- make distclean, then make package/symlinks (did a
minimal config), make menuconfig (added packages and I see the
/dev/sda2 entry vice /dev/hda2), build went well, but I still have:

ata1.00: failed to IDENTIFY (device reports invalid type, err_mask=0x0)
block2mtd: error: cannot open device /dev/sda2
PNP: No PS/2 controller found. Probing ports directly.
i8042.c: No controller found.
mice: PS/2 mouse device common for all mice
enabling scx200 high-res timer (1 MHz +0 ppm)
TCP westwood registered
NET: Registered protocol family 17
Bridge firewalling registered
802.1Q VLAN Support v1.8 Ben Greear gree...@candelatech.com
All bugs added by David S. Miller da...@redhat.com
Using IPI Shortcut mode
VFS: Cannot open root device mtdblock0 or unknown-block(0,0)
Please append a correct root= boot option; here are the available partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
Pid: 1, comm: swapper Not tainted 2.6.31.5 #1
Call Trace:
 [c101f6c7] ? panic+0x47/0xf0
 [c12baab0] ? mount_block_root+0x1d0/0x270
 [c1002930] ? do_notify_resume+0x3f0/0x910
 [c12bab97] ? mount_root+0x47/0x60
 [c12bace5] ? prepare_namespace+0x135/0x170
 [c106764f] ? sys_access+0x1f/0x30
 [c12ba552] ? kernel_init+0xd2/0xe0
 [c12ba480] ? kernel_init+0x0/0xe0
 [c1003813] ? kernel_thread_helper+0x7/0x14


This is after starting from scratch.  Something is still broken.


David A. Bandel
-- 
Focus on the dream, not the competition.
- Nemesis Air Racing Team motto
Visit my blog at: http://www.pananix.com/cgi-bin/blosxom
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] WRAP board (x86-generic-pcengines wrap) boot problems

2009-11-02 Thread Florian Fainelli
Hi David,

2009/11/3, David A. Bandel david.ban...@gmail.com:
 On Mon, Nov 2, 2009 at 12:44, Jo-Philipp Wich x...@subsignal.org wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Not sure whether same config is supposed to work. At least the rootfs
 partition name changed recently, my Wrap Board here works fine with an
 ext2 image and CONFIG_X86_GRUB_ROOTPART=/dev/sda2 .

 OK, tried again -- make distclean, then make package/symlinks (did a
 minimal config), make menuconfig (added packages and I see the
 /dev/sda2 entry vice /dev/hda2), build went well, but I still have:

 ata1.00: failed to IDENTIFY (device reports invalid type, err_mask=0x0)
 block2mtd: error: cannot open device /dev/sda2

It will not work because of those two lines before. Could you paste
the message that is shown before the failed to IDENTIFY? Are you
using some broken medium ?
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] Add beep package

2009-11-02 Thread Thomas Albers
This adds the beep program by Johnathan Nightingale, which plays beeps 
of chosen frequency and length through the PC speaker. It's quite useful 
to give feedback from within scripts.


Signed-off by: Thomas Albers n...@formigao.me.uk
Index: beep/Makefile
===
--- beep/Makefile	(revision 0)
+++ beep/Makefile	(revision 0)
@@ -0,0 +1,45 @@
+# 
+# Copyright (C) 2008 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+# This Makefile is a skeleton
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=beep
+PKG_VERSION:=1.2.2
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=http://johnath.com/beep/
+PKG_MD5SUM:=d541419fd7e5642952d7b48cbb40c712
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/beep
+  SECTION:=sound
+  CATEGORY:=Sound
+  TITLE:=beep
+  URL:=http://johnath.com/beep/README
+  DEPENDS:=+kmod-pcspkr
+endef
+
+define Package/beep/description
+	This program plays beeps through the PC speaker
+endef
+
+CONFIGURE_ARGS += \
+	--enable-static \
+	--enable-shared
+
+MAKE_FLAGS += \
+	CFLAGS=$(TARGET_CFLAGS)
+
+define Package/beep/install
+	$(INSTALL_DIR) $(1)/usr/bin
+	$(INSTALL_BIN) $(PKG_BUILD_DIR)/beep $(1)/usr/bin
+endef
+
+$(eval $(call BuildPackage,beep))
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel