[OpenWrt-Devel] wifi Command 'set ssid' failed: -1
Is the message 'set ssid' failed normal? Latest trunk on Asus WL500GP v1. r...@openwrt:/# wifi Command 'set ssid' failed: -1 r...@openwrt:/# dmesg | grep corerev wl0: wlc_attach: chiprev 2 coreunit 0 corerev 9 cccap 0x640009 maccap 0x0 band 2.4G, phy_type 2 phy_rev 7 ana_rev 3 r...@openwrt:/# cat /etc/config/wireless config wifi-device wl0 option type broadcom option channel 5 config wifi-iface option device wl0 option network lan option mode ap option ssid NrSrBerlengas option encryption psk2 option key maria+maria config wifi-iface option device wl0 option network lan option mode ap option ssid NrSrMadeira option encryption psk option key francisca r...@openwrt:/# dmesg CPU revision is: 00029006 Primary instruction cache 16kB, physically tagged, 2-way, linesize 16 bytes. Primary data cache 16kB, 2-way, linesize 16 bytes. Linux version 2.4.37.9 (n...@ground2) (gcc version 3.4.6 (OpenWrt-2.0)) #3 Mon Apr 19 08:50:56 WEST 2010 Setting the PFC to its default value Determined physical RAM map: memory: 0200 @ (usable) On node 0 totalpages: 8192 zone(0): 8192 pages. zone(1): 0 pages. zone(2): 0 pages. Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 init=/etc/preinit noinitrd console=ttyS0,115200 CPU: BCM4704 rev 9 at 264 MHz Using 132.000 MHz high precision timer. Calibrating delay loop... 263.78 BogoMIPS Memory: 30460k/32768k available (1439k kernel code, 2308k reserved, 96k data, 84k init, 0k highmem) Dentry cache hash table entries: 4096 (order: 3, 32768 bytes) Inode cache hash table entries: 2048 (order: 2, 16384 bytes) Mount cache hash table entries: 512 (order: 0, 4096 bytes) Buffer cache hash table entries: 1024 (order: 0, 4096 bytes) Page-cache hash table entries: 8192 (order: 3, 32768 bytes) Checking for 'wait' instruction... unavailable. POSIX conformance testing by UNIFIX PCI: Initializing host PCI: Fixing up bus 0 PCI: Fixing up bridge PCI: Setting latency timer of device 01:00.0 to 64 PCI: Fixing up bus 1 Linux NET4.0 for Linux 2.4 Based upon Swansea University Computer Society NET3.039 Initializing RT netlink socket Starting kswapd Registering mini_fo version $Id$ devfs: v1.12c (20020818) Richard Gooch (rgo...@atnf.csiro.au) devfs: boot_options: 0x1 JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis Communications AB. squashfs: version 3.0 (2006/03/15) Phillip Lougher pty: 256 Unix98 ptys configured Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled ttyS00 at 0xb8000300 (irq = 3) is a 16550A ttyS01 at 0xb8000400 (irq = 3) is a 16550A b44.c:v0.93 (Mar, 2004) PCI: Setting latency timer of device 00:01.0 to 64 eth0: Broadcom 47xx 10/100BaseT Ethernet 00:1d:60:15:5f:a3 PCI: Setting latency timer of device 00:02.0 to 64 eth1: Broadcom 47xx 10/100BaseT Ethernet 40:10:18:00:00:2d Physically mapped flash: Found an alias at 0x80 for the chip at 0x0 Physically mapped flash: Found an alias at 0x100 for the chip at 0x0 Physically mapped flash: Found an alias at 0x180 for the chip at 0x0 Amd/Fujitsu Extended Query Table v1.3 at 0x0040 number of CFI chips: 1 cfi_cmdset_0002: Disabling fast programming due to code brokenness. Flash device: 0x80 at 0x1c00 bootloader size: 262144 Physically mapped flash: Filesystem type: squashfs, size=0x15f295 Updating TRX offsets and length: old trx = [0x001c, 0x0904, 0x0007b000], len=0x00201000 crc32=0x60c6a41e new trx = [0x001c, 0x0904, 0x0007b000], len=0x001e crc32=0x850e33b8 Done Creating 5 MTD partitions on Physically mapped flash: 0x-0x0004 : cfe 0x0004-0x007f : linux 0x000bb000-0x0022 : rootfs mtd: partition rootfs doesn't start on an erase block boundary -- force read-only 0x007f-0x0080 : nvram 0x0022-0x007f : rootfs_data sflash: found no supported devices Initializing Cryptographic API NET4: Linux TCP/IP 1.0 for NET4.0 IP Protocols: ICMP, UDP, TCP, IGMP IP: routing cache hash table of 512 buckets, 4Kbytes TCP: Hash tables configured (established 2048 bind 4096) Linux IP multicast router 0.06 plus PIM-SM NET4: Unix domain sockets 1.0/SMP for Linux NET4.0. NET4: Ethernet Bridge 008 for NET4.0 802.1Q VLAN Support v1.8 Ben Greear gree...@candelatech.com All bugs added by David S. Miller da...@redhat.com VFS: Mounted root (squashfs filesystem) readonly. Mounted devfs on /dev Freeing unused kernel memory: 84k freed diag: Detected 'ASUS WL-500g Premium' b44: eth0: Link is up at 100 Mbps, full duplex. b44: eth0: Flow control is off for TX and off for RX. roboswitch: Probing device eth0: found a 5325! It's a 5350. b44: eth0: Link is up at 100 Mbps, full duplex. b44: eth0: Flow control is off for TX and off for RX. b44: eth0: Link is up at 100 Mbps, full duplex. b44: eth0: Flow control is off for TX and off for RX. mini_fo: using base directory: / mini_fo: using storage
Re: [OpenWrt-Devel] PCI broken on au1000
Hello Manuel, On Monday 19 April 2010 10:37:42 Manuel Lauss wrote: Florian, On Sat, Apr 17, 2010 at 2:23 PM, Florian Fainelli flor...@openwrt.org wrote: However, this is not the case and I need to bisect what was wrong from 2.6.30 to 2.6.32, this is where the problem started to appear. Looking at the changes in that timeframe, my guess would be I made some mistakes in the gpio conversion of the mtx1 code. On the other hand in Ticket #6851 you reported MTX1 working fine with 2.6.32, so I can't say for sure. I tested a wrong kernel, it does not work at all with 2.6.32. The lspci output provided by the reporter of ticket 6851, does it look correct for MTX-1? No it does not. It should only show a PCI bridge and the devices attached to it, in my case 2 Atheros-based cards. -- Florian ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] menuconfig vs kernel_menuconfig
Hi, Some kernel parameters can be configured in 'make menuconfig', but not all of them. The full configuration is in 'make kernel_menuconfig', but its content differs from the other one. What happens if they are configured differently? Regards K. Gy. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] opkg: compile error when using --enable-curl
Hello, I'm working on patch to add two new configuration options for opkg in the menuconfig. These are OPKG_ENABLE_CURL and OPKG_ENABLE_GPG. A problem occurs when enabling OPKG_ENABLE_CURL and therefore enabling the compile flag --enable-curl, the package does not compile properly. The last output from make is (all outputs have some parts of the paths stripped): make[5]: Entering directory `.../build_dir/linux-ar71xx/opkg-513/libopkg' mips-openwrt-linux-uclibc-ar: -L.../staging_dir/target-mips_r2_uClibc-0.9.30.1/usr//lib: No such file or directory make[5]: *** [libopkg.a] Error 1 I tracked this down to the following command in the Makefile: mips-openwrt-linux-uclibc-ar cru libopkg.a opkg.o opkg_cmd.o opkg_configure.o opkg_download.o opkg_install.o opkg_upgrade.o opkg_remove.o opkg_conf.o opkg_utils.o pkg.o pkg_depends.o pkg_extract.o hash_table.o pkg_hash.o pkg_parse.o pkg_vec.o file_util.o opkg_message.o md5.o sprintf_alloc.o xregex.o xsystem.o sha256.o conffile.o conffile_list.o nv_pair.o nv_pair_list.o pkg_dest.o pkg_dest_list.o pkg_src.o pkg_src_list.o str_list.o void_list.o active_list.o ../libbb/libbb.a -L.../staging_dir/target-mips_r2_uClibc-0.9.30.1/usr//lib -L.../staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/lib -lcurl -lcrypto -lssl -lz -L.../staging_dir/target-mips_r2_uClibc-0.9.30.1/usr//lib -lssl -lcrypto -ldl Invoking the above command manually without the parameters after libbb.a seems to work. So I guess this is some misconfiguration in the Makefile.am. However I do not know how to fix this. Can someone provide a patch for the issue above, so I can finish my patch? Thanks, Oliver Ripka ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] menuconfig vs kernel_menuconfig
On 2010-04-19 11:40 PM, RHS Linux User wrote: Hi All, rant This whole config business IMHO is a real mess! I disagree, it just takes a bit of getting used to. Can someone clarify what happens with target config, and whatever other .configs that happen to be around somewhere? It works like this: you have target/linux/generic-2.6/config-kernelversion, which contains the baseline settings for all targets. Each target can override and add any config option relative to that. The delta is stored in target/linux/platform/config-kernelversion. The reason for that is that maintaining one individual .config for each target would create a much bigger mess, as it makes common config changes that affect all targets much harder to implement. Also it seems to me HI TIME that .config became a VERY visible file. So much depends on the main .config and the .config in the kernel directory. For reasons stated above, we can't just stick the plain .config files from the kernel directories in the target dir, as this would mess up other things. Is running make kernel_menuconfig the same as going into the kernel directory and doing menuconfig there? (I hope so.) No, it's not. Make kernel_menuconfig does these things (simplified): - Generate the kernel's .config by merging the following files: - target/linux/generic-2.6/config-kernelver - target/linux/platform/config-kernelver - run make menuconfig in the kernel tree - subtract generic stuff from the kernel's .config and rebuild target/linux/platform/config-kernelver from that The idea is that you only need to hand-edit stuff if you want to make changes to the generic config template, which most of the time you don't have to. A bit more tricky is the interaction with the build system .config for selecting modules. The idea behind that is to not let the kernel build all modules all the time, but allow the user to select which modules to throw in binary packages. For this to work, the build system needs to make further modifications to the kernel's .config before launching the kernel module build, as having making these changes ahead of time for platform kernel configs would launch you into an unmanageable Dependency Tree From Hell. For all of the .config merges, scripts/kconfig.pl is used, which can do some very simple config merging/splitting operation. For the module selection it has a special operation that allows the merged-in config to only *upgrade* config selections. That means if you selected something as =y in kernel_menuconfig, the build system will not change that. It will however select stuff as =m or =y depending on the KCONFIG settings for kmod-* packages that you selected. Normally you don't have to be concerned with this process at all, however occasionally you may encounter undefined config symbols which make kernel_menuconfig or kernel_oldconfig won't show you. In this case, you need to add defaults for the missing symbols either to the KCONFIG line of the package that triggered them, or simply stick them into target/linux/generic-2.6/config-* I hope this clears things up a bit - Felix ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] wifi Command 'set ssid' failed: -1
Yes it is normal.. I have looked in to this issue myself. It occurs because the interfaces are configured twice Once by the the init scripts and then again by hotplug. There is a little bit of a race condition and usually the second configuration is being performed on an interface that is already up. Setting the ssid can only be performed when the radio is off. If it is already on. You will get the error. -- Chris Martin m: 0419812371 -- 2010/4/19 Nuno Gonçalves nuno...@gmail.com Is the message 'set ssid' failed normal? Latest trunk on Asus WL500GP v1. r...@openwrt:/# wifi Command 'set ssid' failed: -1 r...@openwrt:/# dmesg | grep corerev wl0: wlc_attach: chiprev 2 coreunit 0 corerev 9 cccap 0x640009 maccap 0x0 band 2.4G, phy_type 2 phy_rev 7 ana_rev 3 r...@openwrt:/# cat /etc/config/wireless config wifi-device wl0 option type broadcom option channel 5 config wifi-iface option device wl0 option network lan option mode ap option ssid NrSrBerlengas option encryption psk2 option key maria+maria config wifi-iface option device wl0 option network lan option mode ap option ssid NrSrMadeira option encryption psk option key francisca r...@openwrt:/# dmesg CPU revision is: 00029006 Primary instruction cache 16kB, physically tagged, 2-way, linesize 16 bytes. Primary data cache 16kB, 2-way, linesize 16 bytes. Linux version 2.4.37.9 (n...@ground2) (gcc version 3.4.6 (OpenWrt-2.0)) #3 Mon Apr 19 08:50:56 WEST 2010 Setting the PFC to its default value Determined physical RAM map: memory: 0200 @ (usable) On node 0 totalpages: 8192 zone(0): 8192 pages. zone(1): 0 pages. zone(2): 0 pages. Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 init=/etc/preinit noinitrd console=ttyS0,115200 CPU: BCM4704 rev 9 at 264 MHz Using 132.000 MHz high precision timer. Calibrating delay loop... 263.78 BogoMIPS Memory: 30460k/32768k available (1439k kernel code, 2308k reserved, 96k data, 84k init, 0k highmem) Dentry cache hash table entries: 4096 (order: 3, 32768 bytes) Inode cache hash table entries: 2048 (order: 2, 16384 bytes) Mount cache hash table entries: 512 (order: 0, 4096 bytes) Buffer cache hash table entries: 1024 (order: 0, 4096 bytes) Page-cache hash table entries: 8192 (order: 3, 32768 bytes) Checking for 'wait' instruction... unavailable. POSIX conformance testing by UNIFIX PCI: Initializing host PCI: Fixing up bus 0 PCI: Fixing up bridge PCI: Setting latency timer of device 01:00.0 to 64 PCI: Fixing up bus 1 Linux NET4.0 for Linux 2.4 Based upon Swansea University Computer Society NET3.039 Initializing RT netlink socket Starting kswapd Registering mini_fo version $Id$ devfs: v1.12c (20020818) Richard Gooch (rgo...@atnf.csiro.au) devfs: boot_options: 0x1 JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis Communications AB. squashfs: version 3.0 (2006/03/15) Phillip Lougher pty: 256 Unix98 ptys configured Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled ttyS00 at 0xb8000300 (irq = 3) is a 16550A ttyS01 at 0xb8000400 (irq = 3) is a 16550A b44.c:v0.93 (Mar, 2004) PCI: Setting latency timer of device 00:01.0 to 64 eth0: Broadcom 47xx 10/100BaseT Ethernet 00:1d:60:15:5f:a3 PCI: Setting latency timer of device 00:02.0 to 64 eth1: Broadcom 47xx 10/100BaseT Ethernet 40:10:18:00:00:2d Physically mapped flash: Found an alias at 0x80 for the chip at 0x0 Physically mapped flash: Found an alias at 0x100 for the chip at 0x0 Physically mapped flash: Found an alias at 0x180 for the chip at 0x0 Amd/Fujitsu Extended Query Table v1.3 at 0x0040 number of CFI chips: 1 cfi_cmdset_0002: Disabling fast programming due to code brokenness. Flash device: 0x80 at 0x1c00 bootloader size: 262144 Physically mapped flash: Filesystem type: squashfs, size=0x15f295 Updating TRX offsets and length: old trx = [0x001c, 0x0904, 0x0007b000], len=0x00201000 crc32=0x60c6a41e new trx = [0x001c, 0x0904, 0x0007b000], len=0x001e crc32=0x850e33b8 Done Creating 5 MTD partitions on Physically mapped flash: 0x-0x0004 : cfe 0x0004-0x007f : linux 0x000bb000-0x0022 : rootfs mtd: partition rootfs doesn't start on an erase block boundary -- force read-only 0x007f-0x0080 : nvram 0x0022-0x007f : rootfs_data sflash: found no supported devices Initializing Cryptographic API NET4: Linux TCP/IP 1.0 for NET4.0 IP Protocols: ICMP, UDP, TCP, IGMP IP: routing cache hash table of 512 buckets, 4Kbytes TCP: Hash tables configured (established 2048 bind 4096) Linux IP multicast router 0.06 plus PIM-SM NET4: Unix domain sockets 1.0/SMP for Linux NET4.0. NET4: Ethernet Bridge
[OpenWrt-Devel] Why the jffs2 rootfs image size is not page align?(4Byte more)
$ ls -l bin/s3c24xx/ 总用量 114196 ... -rw-r--r-- 1 aaron aaron 5226500 2010-04-20 00:15 openwrt-s3c24xx-root.jffs2-16k ... # tftp 3300 rootfs.jffs2 TFTP from server 192.168.1.102; our IP address is 192.168.1.188 Filename 'rootfs.jffs2'. Load address: 0x3300 Loading: # # # # # # # # # # # # # # # ## done Bytes transferred = 5226500 (4fc004 hex) -- Aaron Xu ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] Fw: Dlink DIR-615C1: small mistake in mtd layout?
Hello! I noticed that on my DIR-615C1 kamikaze prints the following mtd layout: m25p80 spi0.0: s25sl032a (4096 Kbytes) 6 cmdlinepart partitions found on MTD device spi0.0 Creating 6 MTD partitions on spi0.0: 0x-0x0002 : u-boot 0x0002-0x0003 : config 0x0003-0x0011 : kernel 0x0011-0x003e : rootfs 0x0025-0x003e : rootfs_data 0x003e-0x003f : art 0x0003-0x003e : firmware Thus the art partition does not extend all the way to the end of device. The original firmware defined art as 0x3e-0x4. Unless there is some hidden wisdom to defining the art so, here is the patch. Index: target/linux/ar71xx/image/Makefile === --- target/linux/ar71xx/image/Makefile (revision 20879) +++ target/linux/ar71xx/image/Makefile (working copy) @@ -127,7 +127,7 @@ fi; fi endef -cameo_mtdlayout=mtdparts=spi0.0:128k(u-boot)ro,64k(config)ro,896k(kernel),2880k(rootfs),64k(art)ro,37...@0x3(firmware) +cameo_mtdlayout=mtdparts=spi0.0:128k(u-boot)ro,64k(config)ro,896k(kernel),2880k(rootfs),128k(art)ro,37...@0x3(firmware) define Image/Build/Cameo $(call PatchKernelLzma,$(2),$(3) $(cameo_mtdlayout)) if [ `stat -c%s $(KDIR)/vmlinux-$(2).bin.lzma` -gt 917504 ]; then \ signature.asc Description: PGP signature ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel