Re: [OpenWrt-Devel] Ask a question related SDIO on Linux StarterKit with Ubiquiti RouterStation Pro on openwrt
HI,Matsu I change the gpio with hardware engineer's help and SDIO(based on gpio, not the GL827L) works currently . But i can't mount it . I can see following message when i plug an SD card . [ 243.86] mmc1: host does not support reading read-only switch. assuming write-enable. [ 243.87] mmc1: new SDHC card on SPI [ 243.88] mmcblk0: mmc1: SD08G 7.42 GiB [ 243.94] mmcblk0: p1 ls -l /dev/mmcblk* /dev/mmcblk0/dev/mmcblk0p1 mount /dev/mmcblk0 /mnt mount: mounting /dev/mmcblk0 on /mnt failed: Invalid argument mount /dev/mmcblk0p1 /mnt mount: mounting /dev/mmcblk0p1 on /mnt failed: Invalid argument mount -t vfat /dev/mmcblk0 /mnt mount: mounting /dev/mmcblk0 on /mnt failed: No such device Thanks and Regards Peter Meng On Thu, Feb 23, 2012 at 12:15 AM, Kentaro Matsuyama wrote: > Hi peter! > > sorry, I have not tried to connect SDIO device but I remember someone said > SD slot of rspro is not usable with any other device except SD storage card... > > Here is SD slot part of lsusb messages and it looks it's not sdio > interface anymore. no? > > --- > Bus 001 Device 002: ID 05e3:0723 Genesys Logic, Inc. GL827L SD/MMC/MS > Flash Card Reader > Device Descriptor: > bLength 18 > bDescriptorType 1 > bcdUSB 2.00 > bDeviceClass 0 (Defined at Interface level) > bDeviceSubClass 0 > bDeviceProtocol 0 > bMaxPacketSize0 64 > idVendor 0x05e3 Genesys Logic, Inc. > idProduct 0x0723 GL827L SD/MMC/MS Flash Card Reader > bcdDevice 94.51 > iManufacturer 3 Generic > iProduct 4 USB Storage > iSerial 2 9451 > bNumConfigurations 1 > Configuration Descriptor: > bLength 9 > bDescriptorType 2 > wTotalLength 32 > bNumInterfaces 1 > bConfigurationValue 1 > iConfiguration 0 > bmAttributes 0x80 > (Bus Powered) > MaxPower 500mA > Interface Descriptor: > bLength 9 > bDescriptorType 4 > bInterfaceNumber 0 > bAlternateSetting 0 > bNumEndpoints 2 > bInterfaceClass 8 Mass Storage > bInterfaceSubClass 6 SCSI > bInterfaceProtocol 80 Bulk-Only > iInterface 0 > Endpoint Descriptor: > bLength 7 > bDescriptorType 5 > bEndpointAddress 0x81 EP 1 IN > bmAttributes 2 > Transfer Type Bulk > Synch Type None > Usage Type Data > wMaxPacketSize 0x0200 1x 512 bytes > bInterval 0 > Endpoint Descriptor: > bLength 7 > bDescriptorType 5 > bEndpointAddress 0x02 EP 2 OUT > bmAttributes 2 > Transfer Type Bulk > Synch Type None > Usage Type Data > wMaxPacketSize 0x0200 1x 512 bytes > bInterval 0 > Device Qualifier (for other device speed): > bLength 10 > bDescriptorType 6 > bcdUSB 2.00 > bDeviceClass 0 (Defined at Interface level) > bDeviceSubClass 0 > bDeviceProtocol 0 > bMaxPacketSize0 64 > bNumConfigurations 1 > Device Status: 0x > (Bus Powered) > --- > > Regards, > matsu > > 2012/2/22 peter.meng : >> HI,Matsu >> >> Thank you . >> I want to know whether i can connect a SDIO device (not SD card, such >> as wifi based on sdio) after install following modules . >> >> >> Thanks a lot >> Best Regards >> Peter Meng >> >> On Wed, Feb 22, 2012 at 8:27 PM, Kentaro Matsuyama >> wrote: >>> hi peter! >>> >>> I have several rspro board. >>> You need to install below kernel modules related with usb2. because >>> rspro board has converter >>> device from mmc to usb, i guess. >>> >>> kmod-nls-iso8859-1 >>> kmod-nls-utf8 >>> kmod-fs-vfat >>> kmod-usb2 >>> kmod-usb-storage >>> >>> Regards >>> matsu >>> >>> 2012/2/22 peter.meng : HI, I just got a Linux StarterKit board that compile it with Ubiquiti RouterStation Pro on openwrt . I met the issue that can't access my SD card , dmesg didn't show mmc message too when plug SD card . lsmod | grep mmc gpiommc 3712 0 spi_gpio_old 2929 1 gpiommc mmc_spi 9264 0 mmc_block 7440 0 Anybody can give me the suggestion on this ? Best Regards . Peter Meng mengsans...@gmail.com ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel >>> ___ >>> openwrt-devel mailing lis
[OpenWrt-Devel] OpenWrt: source code
Good morning, where can I find the OpenWrt's source code (C files of the code)? Can you help me please? Thank you a lot. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] OpenWrt: source code
2012/2/23 sami souibki : > Good morning, > > where can I find the OpenWrt's source code (C files of the code)? > > Can you help me please? http://lmgtfy.com/?q=openwrt+source -- Rafał ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] Updated kernel patch in trunk to support brcm47xx BCMA NAND flash
Hi, Attached is the updated kernel patch to support brcm47xx BCMA NAND flash. I have used latest trunk source code to create this patch. Thanks to Florian and Hauke for their comments. Regards, Tathagata 9991-bcm47xx-bcma-nandflash.patch Description: Binary data ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Ask a question related SDIO on Linux StarterKit with Ubiquiti RouterStation Pro on openwrt
hello peter > I change the gpio with hardware engineer's help and SDIO(based on > gpio, not the GL827L) works currently . > But i can't mount it . > I can see following message when i plug an SD card . > > [ 243.86] mmc1: host does not support reading read-only switch. > assuming write-enable. > [ 243.87] mmc1: new SDHC card on SPI > [ 243.88] mmcblk0: mmc1: SD08G 7.42 GiB > [ 243.94] mmcblk0: p1 wow, great! Is that hardware hack? so now you can use SDIO device like wifi sdio card? that's very interesting... > mount -t vfat /dev/mmcblk0 /mnt > mount: mounting /dev/mmcblk0 on /mnt failed: No such device sorry, i forget to write "kmod-nls-cp437" in last email. I think that's why you can't mount. Good luck! matsu 2012/2/23 peter.meng : > HI,Matsu > > I change the gpio with hardware engineer's help and SDIO(based on > gpio, not the GL827L) works currently . > But i can't mount it . > I can see following message when i plug an SD card . > > [ 243.86] mmc1: host does not support reading read-only switch. > assuming write-enable. > [ 243.87] mmc1: new SDHC card on SPI > [ 243.88] mmcblk0: mmc1: SD08G 7.42 GiB > [ 243.94] mmcblk0: p1 > > > ls -l /dev/mmcblk* > /dev/mmcblk0/dev/mmcblk0p1 > > mount /dev/mmcblk0 /mnt > mount: mounting /dev/mmcblk0 on /mnt failed: Invalid argument > mount /dev/mmcblk0p1 /mnt > mount: mounting /dev/mmcblk0p1 on /mnt failed: Invalid argument > mount -t vfat /dev/mmcblk0 /mnt > mount: mounting /dev/mmcblk0 on /mnt failed: No such device > > > Thanks and Regards > Peter Meng > > > On Thu, Feb 23, 2012 at 12:15 AM, Kentaro Matsuyama > wrote: >> Hi peter! >> >> sorry, I have not tried to connect SDIO device but I remember someone said >> SD slot of rspro is not usable with any other device except SD storage >> card... >> >> Here is SD slot part of lsusb messages and it looks it's not sdio >> interface anymore. no? >> >> --- >> Bus 001 Device 002: ID 05e3:0723 Genesys Logic, Inc. GL827L SD/MMC/MS >> Flash Card Reader >> Device Descriptor: >> bLength18 >> bDescriptorType 1 >> bcdUSB 2.00 >> bDeviceClass0 (Defined at Interface level) >> bDeviceSubClass 0 >> bDeviceProtocol 0 >> bMaxPacketSize064 >> idVendor 0x05e3 Genesys Logic, Inc. >> idProduct 0x0723 GL827L SD/MMC/MS Flash Card Reader >> bcdDevice 94.51 >> iManufacturer 3 Generic >> iProduct4 USB Storage >> iSerial 2 9451 >> bNumConfigurations 1 >> Configuration Descriptor: >>bLength 9 >>bDescriptorType 2 >>wTotalLength 32 >>bNumInterfaces 1 >>bConfigurationValue 1 >>iConfiguration 0 >>bmAttributes 0x80 >> (Bus Powered) >>MaxPower 500mA >>Interface Descriptor: >> bLength 9 >> bDescriptorType 4 >> bInterfaceNumber0 >> bAlternateSetting 0 >> bNumEndpoints 2 >> bInterfaceClass 8 Mass Storage >> bInterfaceSubClass 6 SCSI >> bInterfaceProtocol 80 Bulk-Only >> iInterface 0 >> Endpoint Descriptor: >>bLength 7 >>bDescriptorType 5 >>bEndpointAddress 0x81 EP 1 IN >>bmAttributes2 >> Transfer TypeBulk >> Synch Type None >> Usage Type Data >>wMaxPacketSize 0x0200 1x 512 bytes >>bInterval 0 >> Endpoint Descriptor: >>bLength 7 >>bDescriptorType 5 >>bEndpointAddress 0x02 EP 2 OUT >>bmAttributes2 >> Transfer TypeBulk >> Synch Type None >> Usage Type Data >>wMaxPacketSize 0x0200 1x 512 bytes >>bInterval 0 >> Device Qualifier (for other device speed): >> bLength10 >> bDescriptorType 6 >> bcdUSB 2.00 >> bDeviceClass0 (Defined at Interface level) >> bDeviceSubClass 0 >> bDeviceProtocol 0 >> bMaxPacketSize064 >> bNumConfigurations 1 >> Device Status: 0x >> (Bus Powered) >> --- >> >> Regards, >> matsu >> >> 2012/2/22 peter.meng : >>> HI,Matsu >>> >>> Thank you . >>> I want to know whether i can connect a SDIO device (not SD card, such >>> as wifi based on sdio) after install following modules . >>> >>> >>> Thanks a lot >>> Best Regards >>> Peter Meng >>> >>> On Wed, Feb 22, 2012 at 8:27 PM, Kentaro Matsuyama >>> wrote: hi peter! I have several rspro board. You need to install below kernel modules related with usb2. because rspro board has converter device from mmc to usb, i guess. kmod-nls-iso8859-1
[OpenWrt-Devel] WBMR-HP-G300H flash image for flashing from original FW?
Hello, after got this device I'm just wonder a little bit why there is no image for flashing from original dd-wrt web interface. It should not hard to build this bin file (as for brcm47xx). It would be make life easier if there is the possibility to flash directly from dd-wrt webif. With best regards Christoph -- Linux User Group Wernigerode http://www.lug-wr.de/ signature.asc Description: This is a digitally signed message part. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] WBMR-HP-G300H flash image for flashing from original FW?
On 23/02/12 19:19, Christoph Thielecke wrote: > Hello, > > after got this device I'm just wonder a little bit why there is no image for > flashing from original dd-wrt web interface. It should not hard to build this > bin file (as for brcm47xx). > > It would be make life easier if there is the possibility to flash directly > from dd-wrt webif. > > > With best regards > > Christoph most likely true... i will investigate how to do so ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] WBMR-HP-G300H flash image for flashing from original FW?
On 23.02.2012 19:21, John Crispin wrote: > dd-wrt webif on openwrt? ..ede ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] WBMR-HP-G300H flash image for flashing from original FW?
Hello, > On 23.02.2012 19:21, John Crispin wrote: > > dd-wrt webif > > on openwrt? ..ede OpenWRT bin image for flashing on dd-wrt webif on first time. With best regards Christoph -- Linux User Group Wernigerode http://www.lug-wr.de/ signature.asc Description: This is a digitally signed message part. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Frequent reboot WBMR & Lantiq
Al 21/02/12 13:29, En/na Luca Olivetti ha escrit: > Al 21/02/2012 12:38, En/na John Crispin ha escrit: >> On 21/02/12 12:36, Luca Olivetti wrote: >>> Al 21/02/2012 12:15, En/na John Crispin ha escrit: On 21/02/12 12:13, Luca Olivetti wrote: > Al 21/02/2012 10:56, En/na John Crispin ha escrit: >> please build a kernel with KALLSYMS enable > > Does it work now? > Last time I tried it, it didn't work, but it was a while ago > http://pastebin.ca/2072861 most likely a error your end >>> >>> hints appreciated >>> >>> Bye >> >> >> most likely you activated it in kernel_menuconfig and not menuconfig > > Thank you, I don't remember how I activated it at the time, but I'll try now > with menuconfig. I tried and I had the exact same crash, then I tried with a make dirclean before make, and it doesn't crash now. Is there a way to avoid rebuilding everything? Bye -- Luca ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] WBMR-HP-G300H flash image for flashing from original FW?
On 23.02.2012 19:21, John Crispin wrote: > On 23/02/12 19:19, Christoph Thielecke wrote: >> Hello, >> >> after got this device I'm just wonder a little bit why there is no image for >> flashing from original dd-wrt web interface. It should not hard to build >> this >> bin file (as for brcm47xx). >> >> It would be make life easier if there is the possibility to flash directly >> from dd-wrt webif. >> >> >> With best regards >> >> Christoph > > most likely true... i will investigate how to do so DD-Wrt normally awaits a TRX flash image (HDR0 header) with the "noheader" flag set. See https://forum.openwrt.org/viewtopic.php?pid=154817#p154817 Maddes ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [OpenWrt-Users] Linksys WRT150N wireless supported in 10.03.1?
On 02/12/2012 09:10 PM, Aaron Z wrote: > On 02/02/2012 4:52:09 PM, Hauke Mehrtens wrote: >> On 01/28/2012 06:55 AM, Aaron Z wrote: >>> When I run "killall -9 hostapd" then "wifi" I get told: >>> "Configuration file: /var/run/hostapd-phy0.conf" and "Using >>> interface wlan0 with hwaddr MACADDRESS and ssid 'OpenWrt'"wifi is >>> still rejecting connections. >>> When I run "killall -9 hostapd; /usr/sbin/hostapd -dd >>> /var/run/hostapd-phy0.conf > /tmp/hostapd.log" it works right >>> away. >> This behavior is strange it could be that debugging activates some >> needed code path, hostapd just works after the second start or that >> there are timing issues. Could you run hostapd just with -d and >> without >> -d and report what happens in these cases? > Sorry for the delay. Its been busy around here. > I ran "killall -9 hostapd; /usr/sbin/hostapd -d /var/run/hostapd-phy0.conf > > /tmp/hostapd.log" I was able to connect and go online. The log is attached as > hostapd -d.txt (4 KB). > I then rebooted the WAP and ran "killall -9 hostapd; /usr/sbin/hostapd > /var/run/hostapd-phy0.conf > /tmp/hostapd.log" I was able to connect and go > online. The logfile was blank, so I didn't attach it. > > I tried connecting before running the commands and was rejected both times. > > Thanks > > Aaron Z Hi Aaron Z, have you set up a build environment? If so please try the attached patch ( just place it under package/mac80211/patches/) and build b43 with debug enabled. I had some problems with n-phy device on bcma as well and it was fixed with this patch. If the problem still exists please post the output of dmesg after the first boot. Hauke >From cd6e7f84fa813c48f608f95152f020c842cc8e5a Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sat, 18 Feb 2012 22:21:01 +0100 Subject: [PATCH 202/202] b43: do not use msleep(1) in b43_radio_init2056_post With msleep(1) I get a Data bus error and with usleep_range(1500, 2000) it works. I udelay(1000) also works, but usleep_range(1000, 1500) does not work. The timer documentation says you should not use msleep for values < 20. Signed-off-by: Hauke Mehrtens --- drivers/net/wireless/b43/phy_n.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) --- a/drivers/net/wireless/b43/phy_n.c +++ b/drivers/net/wireless/b43/phy_n.c @@ -661,7 +661,7 @@ static void b43_radio_init2056_post(stru b43_radio_set(dev, B2056_SYN_COM_CTRL, 0xB); b43_radio_set(dev, B2056_SYN_COM_PU, 0x2); b43_radio_set(dev, B2056_SYN_COM_RESET, 0x2); - msleep(1); + udelay(1000); b43_radio_mask(dev, B2056_SYN_COM_RESET, ~0x2); b43_radio_mask(dev, B2056_SYN_PLL_MAST2, ~0xFC); b43_radio_mask(dev, B2056_SYN_RCCAL_CTRL0, ~0x1); ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] Gateworks Laguna GW2388-4
I have been able to boot images fine off the network but for the life of me can't get flashed images to work. The gateworks wiki states: Laguna> erase 0x1006 0x10ff Laguna> tftpboot 0x80 laguna/openwrt-cns3xxx-uImage Laguna> cp.b 0x80 0x1006 $(filesize) Laguna> tftpboot 0x80 laguna/openwrt-cns3xxx-squashfs.img Laguna> cp.b 0x80 0x1026 $(filesize) Now ignoring the fact that 0x1026 doesn't work for me so I picked the next erase block I found in flinfo, it still fails to boot after crc check. Hit any key to stop autoboot: 0 ## Booting kernel from Legacy Image at 1006 ... Image Name: Linux-2.6.39.2 Created: 2012-02-21 8:48:58 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size:3778760 Bytes = 3.6 MB Load Address: 20008000 Entry Point: 20008000 Verifying Checksum ... Bad Data CRC ERROR: can't get kernel image! Laguna > The gateworks patches apply almost completely to trunk, is it possible to get a target made for the GW2388-x? target/linux/cns3xxx/ changes: http://openwrt.pastebin.ca/2121145 entire targets patch: http://svn.gateworks.com/bsp/generic/trunk/targets.patch all patches: http://svn.gateworks.com/bsp/generic/trunk/ ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Gateworks Laguna GW2388-4
Weedy gmail.com> writes: Weedy, > > I have been able to boot images fine off the network but for the life of > me can't get flashed images to work. The gateworks wiki states: > > Laguna> erase 0x1006 0x10ff > Laguna> tftpboot 0x80 laguna/openwrt-cns3xxx-uImage > Laguna> cp.b 0x80 0x1006 $(filesize) > Laguna> tftpboot 0x80 laguna/openwrt-cns3xxx-squashfs.img > Laguna> cp.b 0x80 0x1026 $(filesize) > > Now ignoring the fact that 0x1026 doesn't work for me so I picked > the next erase block I found in flinfo, it still fails to boot after crc > check. What exactly about these commands does not work for you? These work fine on my gw2388-4. I'm wondering if you have an issue with your board (flash). > > Hit any key to stop autoboot: 0 > ## Booting kernel from Legacy Image at 1006 ... >Image Name: Linux-2.6.39.2 >Created: 2012-02-21 8:48:58 UTC >Image Type: ARM Linux Kernel Image (uncompressed) >Data Size:3778760 Bytes = 3.6 MB >Load Address: 20008000 >Entry Point: 20008000 >Verifying Checksum ... Bad Data CRC > ERROR: can't get kernel image! > Laguna > your kernel image failed the checksum in its header - again, I wonder if there is something wrong with your board. > > The gateworks patches apply almost completely to trunk, is it possible > to get a target made for the GW2388-x? > > target/linux/cns3xxx/ changes: > http://openwrt.pastebin.ca/2121145 > entire targets patch: > http://svn.gateworks.com/bsp/generic/trunk/targets.patch > all patches: > http://svn.gateworks.com/bsp/generic/trunk/ > The Gateworks BSP uses OpenWRT but can't continually stay up to date with OpenWRT trunk as its a continually moving target. The Gateworks instructions at http://trac.gateworks.com/wiki/build_openwrt explain this and detail what OpenWRT revision the patches are compatible with with step-by-step isntructions to build a firmware image. There is also a pre-built images available here: http://svn.gateworks.com/laguna/trunk/images/gw2388-x.bin Its not difficult to use the Gateworks patches against OpenWRT trunk if needed (with a little massaging), but Gateworks will be updating their patches likely in the next couple of weeks if you want to wait for that. I suggest you send an e-mail to supp...@gateworks.com with your issue, and be sure to give them the serial number of your board and a log of serial console that shows the bootloader messages from powerup until you encounter your error. Thanks, Tim ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel