OpenWrt Forum Archive

Topic: D-link DIR-505 support?

The content of this topic has been archived between 2 Apr 2018 and 5 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

This is against AA 12.09, the release.

danz wrote:

This is against AA 12.09, the release.

in patch file, a few lines missing in trunk/target/linux/ar71xx/files/arch/mips/ath79/mach-dir-505-a1.c:


-    ath79_register_wmac(art + DIR_505A1_CALDATA_OFFSET, lan_mac);
-}
-MIPS_MACHINE(ATH79_MACH_DIR_505_A1, "DIR-505-A1","D-Link DIR-505 A1", dir_505_a1_setup);

danz wrote:

This is against AA 12.09, the release.

additionally, i got no led light, red or green...

just figure out, have to edit the /etc/config/system, to trigger the led light.

config 'led' 'wlan_led'
        option 'name'   'WLAN'
        option 'sysfs'  'd-link:green:power'
        option 'trigger'        'netdev'
        option 'dev'    'wlan0'
        option 'mode'   'link tx rx'

(Last edited by tangsoft on 22 May 2013, 17:32)

... can some1 please, upload or point to a compiled binary file?
thanks,
-a.

Thank you for this great work, danz!!

Now I just have to figure out how to compile that whole stuff... smile

I've been following this for the last few weeks with some interest and had mine running but very rough until danz added his latest patch.

Here's a vanilla firmware image for those who just want their DIR-505 modded without having to compile anything:

https://mega.co.nz/#!mgIyCazI!M2_-Aw6w6 … Tn1qc1lU3g

Just upload it via the standard web interface and go. It is very basic but you can grab anything else you want as packages. I've included all of the suggestions from tangsoft above and this is based on danz's patch.

Big thank you to rAndy, danz and tangsoft for their work and suggestions.

A bit more experimenting shows that USB audio support is pretty flakey when the WLAN is associated. Works great when only connected via Ethernet though. Symptoms seem to be related to issued that danz linked to above.

Hi,

thanks for posting this file, i really want to test it.

BTW, can we revert back to the default firmware from D-LINK ?

Regards

Yes you can, just scp the D-Link bin file to /tmp then write it to /dev/mtdblock7 but skip the first 84 bytes.

Eg

dd if=/tmp/dlinkfw.bin of=/dev/mtdblock8 bs=84 skip=1

Reboot and it's just like new.

(Last edited by NZLamb on 27 May 2013, 10:03)

Thanks for the image, NZLamb!!

I have already installed it, almost everything works fine.

But I have a problem with mounting usb storage.

I've installed all required packages (like kmod-usb-storage etc.) but I can't see any (of the tested) usb drives to mount them (no "dev/sda1" etc.)...

Any ideas about this?

About reverting to original FW:
I tried it the way NZLamb described in the last post and bricked my device!! Don't know why...

The only way to get it back to life again was the built in "Emergency Flashing" mode.
(see http://forums.dlink.com/index.php?topic … #msg162511 )

Sorry that was supposed to be mtdblock8, not 7! I've edited the post.

Glad to hear you got it going again and yes that way is also perfectly valid! smile I haven't had a chance to check the USB storage issue yet though but will soon.

When you say "almost everything works fine" it's about what ?

In my case, I simply would like to connect the adaptater to my router in wifi, repeat the SSID, and connect ethernet to the adaptater. (repeater function in stock firmware)

Maybe, I will try to use the VPN function if this include and the bandwitch in realtime use.

@NZLamb:

Thanks for the edit! But there is still "mtdblock7" in the first line... smile

How did you compile the binary, especially the kernel?
I found out, that when I installed the kmod-usb-storage etc. packages, I had to set the "--force-depends" parameter, otherwise they would'nt install because the kernel version does not fit to the packages (especially the hash):

root@OpenWrt:~# opkg install --force-depends kmod-usb-storage-extras
Installing kmod-usb-storage-extras (3.3.8-1) to root...
Downloading http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages/kmod-usb-storage-extras_3.3.8-1_ar71xx.ipk.
Configuring kmod-usb-storage-extras.
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-usb-storage-extras:
 *      kernel (= 3.3.8-1-d6597ebf6203328d3519ea3c3371a493) *

As you can see, the kernel versions don't match exactly:

packages depend on:
kernel - 3.3.8-1-d6597ebf6203328d3519ea3c3371a493 (which is from 12.09 AA release)

installed by your binary:
kernel - 3.3.8-1-64732b5b20a8cdc8e9808ad89efc3679 (is that from trunk?)


Perhaps this is the cause of my problems?

Could you do a recompile with 12.09 AA release, please?

here is a demsg dump:

[    6.960000] scsi_mod: Unknown symbol bsg_unregister_queue (err 0)
[    6.970000] scsi_mod: Unknown symbol bsg_register_queue (err 0)
[    7.140000] usbcore: registered new interface driver usbfs
[    7.150000] usbcore: registered new interface driver hub
[    7.150000] usbcore: registered new device driver usb
[    7.200000] sd_mod: Unknown symbol scsi_mode_sense (err 0)
[    7.200000] sd_mod: Unknown symbol scsi_device_get (err 0)
[    7.210000] sd_mod: Unknown symbol scsi_setup_blk_pc_cmnd (err 0)
[    7.220000] sd_mod: Unknown symbol scsi_get_sense_info_fld (err 0)
[    7.220000] sd_mod: Unknown symbol scsi_get_vpd_page (err 0)
[    7.230000] sd_mod: Unknown symbol scsicam_bios_param (err 0)
[    7.230000] sd_mod: Unknown symbol scsi_command_normalize_sense (err 0)
[    7.240000] sd_mod: Unknown symbol scsi_test_unit_ready (err 0)
[    7.250000] sd_mod: Unknown symbol scsi_block_when_processing_errors (err 0)
[    7.250000] sd_mod: Unknown symbol scsi_register_driver (err 0)
[    7.260000] sd_mod: Unknown symbol scsi_ioctl (err 0)
[    7.260000] sd_mod: Unknown symbol scsi_nonblockable_ioctl (err 0)
[    7.270000] sd_mod: Unknown symbol scsi_show_sense_hdr (err 0)
[    7.280000] sd_mod: Unknown symbol scsi_device_put (err 0)
[    7.280000] sd_mod: Unknown symbol scsi_prep_fn (err 0)
[    7.290000] sd_mod: Unknown symbol scsi_show_result (err 0)
[    7.290000] sd_mod: Unknown symbol scsi_setup_fs_cmnd (err 0)
[    7.300000] sd_mod: Unknown symbol scsi_print_command (err 0)
[    7.300000] sd_mod: Unknown symbol scsi_execute_req (err 0)
[    7.310000] sd_mod: Unknown symbol scsi_mode_select (err 0)
[    7.310000] sd_mod: Unknown symbol scsi_print_sense (err 0)
[    7.320000] sd_mod: Unknown symbol scsi_show_extd_sense (err 0)
[    7.330000] sd_mod: Unknown symbol scsi_prep_return (err 0)
[    7.330000] sd_mod: Unknown symbol scsi_set_medium_removal (err 0)
[    7.440000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    7.450000] ehci-platform ehci-platform: Generic Platform EHCI Controller
[    7.450000] ehci-platform ehci-platform: new USB bus registered, assigned bus                                                                              number 1
[    7.490000] ehci-platform ehci-platform: irq 3, io mem 0x1b000000
[    7.510000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
[    7.510000] hub 1-0:1.0: USB hub found
[    7.510000] hub 1-0:1.0: 1 port detected
[    7.570000] usb_storage: Unknown symbol scsi_report_device_reset (err 0)
[    7.580000] usb_storage: Unknown symbol scsi_remove_host (err 0)
[    7.590000] usb_storage: Unknown symbol scsi_report_bus_reset (err 0)
[    7.590000] usb_storage: Unknown symbol scsi_sense_desc_find (err 0)
[    7.600000] usb_storage: Unknown symbol scsi_eh_prep_cmnd (err 0)
[    7.600000] usb_storage: Unknown symbol scsi_host_put (err 0)
[    7.610000] usb_storage: Unknown symbol scsi_scan_host (err 0)
[    7.620000] usb_storage: Unknown symbol scsi_eh_restore_cmnd (err 0)
[    7.620000] usb_storage: Unknown symbol scsi_cmd_get_serial (err 0)
[    7.630000] usb_storage: Unknown symbol scsi_add_host_with_dma (err 0)
[    7.640000] usb_storage: Unknown symbol scsi_normalize_sense (err 0)
[    7.640000] usb_storage: Unknown symbol scsi_host_alloc (err 0)
[    7.650000] usb_storage: Unknown symbol scsi_get_host_dev (err 0)
[    7.870000] usb 1-1: new high-speed USB device number 2 using ehci-platform

Here my installed packages:

base-files - 117.1-r36682
blkid - 2.21.2-1
block-mount - 0.2.0-9
busybox - 1.19.4-6
dnsmasq - 2.62-2
dropbear - 2011.54-2
fdisk - 2.21.2-1
firewall - 2-55.1
hotplug2 - 1.0-beta-4
iptables - 1.4.10-4
iw - 3.6-1
jshn - 2013-01-29-0bc317aa4d9af44806c28ca286d79a8b5a92b2b8
kernel - 3.3.8-1-64732b5b20a8cdc8e9808ad89efc3679
kmod-ath - 3.3.8+2013-02-22-1
kmod-ath9k - 3.3.8+2013-02-22-1
kmod-ath9k-common - 3.3.8+2013-02-22-1
kmod-cfg80211 - 3.3.8+2013-02-22-1
kmod-crypto-aes - 3.3.8-1
kmod-crypto-arc4 - 3.3.8-1
kmod-crypto-core - 3.3.8-1
kmod-fs-vfat - 3.3.8-1
kmod-gpio-button-hotplug - 3.3.8-1
kmod-ipt-conntrack - 3.3.8-1
kmod-ipt-core - 3.3.8-1
kmod-ipt-nat - 3.3.8-1
kmod-ipt-nathelper - 3.3.8-1
kmod-leds-gpio - 3.3.8-1
kmod-ledtrig-default-on - 3.3.8-1
kmod-ledtrig-netdev - 3.3.8-1
kmod-ledtrig-timer - 3.3.8-1
kmod-lib-crc-ccitt - 3.3.8-1
kmod-mac80211 - 3.3.8+2013-02-22-1
kmod-nls-base - 3.3.8-1
kmod-ppp - 3.3.8-1
kmod-pppoe - 3.3.8-1
kmod-pppox - 3.3.8-1
kmod-scsi-core - 3.3.8-1
kmod-scsi-generic - 3.3.8-1
kmod-usb-core - 3.3.8-1
kmod-usb-storage - 3.3.8-1
kmod-usb-storage-extras - 3.3.8-1
kmod-usb2 - 3.3.8-1
kmod-wdt-ath79 - 3.3.8-1
libblkid - 2.21.2-1
libblobmsg-json - 2013-01-29-0bc317aa4d9af44806c28ca286d79a8b5a92b2b8
libc - 0.9.33.2-1
libgcc - 4.6-linaro-1
libip4tc - 1.4.10-4
libiwinfo - 36
libiwinfo-lua - 36
libjson - 0.9-2
liblua - 5.1.4-8
libnl-tiny - 0.1-3
libpthread - 0.9.33.2-1
librt - 0.9.33.2-1
libubox - 2013-01-29-0bc317aa4d9af44806c28ca286d79a8b5a92b2b8
libubus - 2013-01-13-bf566871bd6a633e4504c60c6fc55b2a97305a50
libubus-lua - 2013-01-13-bf566871bd6a633e4504c60c6fc55b2a97305a50
libuci - 2013-05-02.1-1
libuci-lua - 2013-01-04.1-1
libusb-1.0 - 1.0.9-1
libuuid - 2.21.2-1
libxtables - 1.4.10-4
lua - 5.1.4-8
luci - 0.11.1-1
luci-app-firewall - 0.11.1-1
luci-i18n-english - 0.11.1-1
luci-lib-core - 0.11.1-1
luci-lib-ipkg - 0.11.1-1
luci-lib-nixio - 0.11.1-1
luci-lib-sys - 0.11.1-1
luci-lib-web - 0.11.1-1
luci-mod-admin-core - 0.11.1-1
luci-mod-admin-full - 0.11.1-1
luci-proto-core - 0.11.1-1
luci-proto-ppp - 0.11.1-1
luci-sgi-cgi - 0.11.1-1
luci-theme-base - 0.11.1-1
luci-theme-openwrt - 0.11.1-1
mtd - 18.1
netifd - 2013-01-29.2-4bb99d4eb462776336928392010b372236ac3c93
opkg - 618-3
ppp - 2.4.5-8
ppp-mod-pppoe - 2.4.5-8
swap-utils - 2.21.2-1
swconfig - 10
uboot-envtools - 2012.04.01-1
ubus - 2013-01-13-bf566871bd6a633e4504c60c6fc55b2a97305a50
ubusd - 2013-01-13-bf566871bd6a633e4504c60c6fc55b2a97305a50
uci - 2013-05-02.1-1
uhttpd - 2012-10-30-e57bf6d8bfa465a50eea2c30269acdfe751a46fd
usbreset - 2
usbutils - 005-1
vsftpd - 3.0.2-1
wpad-mini - 20130405-1
zlib - 1.2.7-1

@wackou: Well, everything but the USB (-mount)... I haven't had any other problems until now.

(Last edited by lee181 on 27 May 2013, 21:21)

@lee181 Thanks for your answer smile I will try asap

Dear all... I have no idea how to compile a firmware for 505 for official openwrt does not support it. The patch says something goes wrong. Even the compiled binary from mega does not work on my newly bought router( saying it is not a firmware file. ) . I do wanna know how to compile it. I did have compiled a firmware for TP-link WR720 which is supported by the trunk list. Please help me...

This patch is against AA 12.09, the release.
The OpenWrt 12.09 "attitude_adjustment" source code can be checked out at:
  svn://svn.openwrt.org/openwrt/tags/attitude_adjustment_12.09/

Blaok wrote:

Dear all... I have no idea how to compile a firmware for 505 for official openwrt does not support it. The patch says something goes wrong. Even the compiled binary from mega does not work on my newly bought router( saying it is not a firmware file. ) . I do wanna know how to compile it. I did have compiled a firmware for TP-link WR720 which is supported by the trunk list. Please help me...

danz wrote:

Okay here it is.
http://pastie.org/7936110

This is against AA 12.09, not trunk. Haven't tried it against trunk, haven't had time. If somebody would try it that would help.

So this is rAndy's orig patch, plus some changes that make it flashable from the web interface. rAndy i don't have your info so to put in that patch. PM me if you would plz, have question anwyas.

It's not quite a compete patch, sysupgrade still requires an -F to get it to upgrade, and i'm sure there's other loose ends, but I just can't find documentation on it all.

So anyways, directions:

1) Check out the code (git is your friend)
2) patch -p0 < patch.txt or somesuch.
3) make menuconfig, choose D-Link 505 profile, and anything else you want.
4) make, go get coffee or tea depending on your cultural affinity.
5) /bin/ar71xx will have the file openwrt-ar71xx-generic-dir-505-a1-squashfs-factory.bin

Then: plug the 505 in, set the switch to router/AP mode and connect ethernet to your computer.

Assign 192.168.0.100 to your computer, wait for bootup, then in a browser go to 192.168.0.1. You'll see the startup wizard (ugly orange/white screen), click on cancel to get to the main menu, then Maintenance, Firmware, Click on Browse, choose the .bin file from above, and upload.

Then don't touch the thing till it comes up, or you might brick it. If you reset your ip to 192.168.1.10, you should be able to login.


Hello all I am totally a newbie followed all above but gets this error:

def@ubuntu:~/openwrt/attitude_adjustment_12.09$ patch -p0  <patch.txt
patching file trunk/target/linux/ar71xx/base-files/etc/diag.sh
Hunk #1 FAILED at 60.
1 out of 1 hunk FAILED -- saving rejects to file trunk/target/linux/ar71xx/base-files/etc/diag.sh.rej
patching file trunk/target/linux/ar71xx/base-files/etc/uci-defaults/network
Hunk #1 FAILED at 136.
1 out of 1 hunk FAILED -- saving rejects to file trunk/target/linux/ar71xx/base-files/etc/uci-defaults/network.rej
patching file trunk/target/linux/ar71xx/base-files/lib/ar71xx.sh
Hunk #1 FAILED at 324.
1 out of 1 hunk FAILED -- saving rejects to file trunk/target/linux/ar71xx/base-files/lib/ar71xx.sh.rej
patching file trunk/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
Hunk #1 FAILED at 102.
1 out of 1 hunk FAILED -- saving rejects to file trunk/target/linux/ar71xx/base-files/lib/upgrade/platform.sh.rej
patching file trunk/target/linux/ar71xx/config-3.3
Hunk #1 FAILED at 32.
1 out of 1 hunk FAILED -- saving rejects to file trunk/target/linux/ar71xx/config-3.3.rej
The next patch would delete the file trunk/target/linux/ar71xx/files/arch/mips/ath79/mach-dir-505-a1.c,
which does not exist!  Assume -R? [n] y
patching file trunk/target/linux/ar71xx/files/arch/mips/ath79/mach-dir-505-a1.c
patching file trunk/target/linux/ar71xx/generic/profiles/d-link.mk
Hunk #1 FAILED at 5.
1 out of 1 hunk FAILED -- saving rejects to file trunk/target/linux/ar71xx/generic/profiles/d-link.mk.rej
patching file trunk/target/linux/ar71xx/image/Makefile
Hunk #1 FAILED at 168.
Hunk #2 FAILED at 346.
Hunk #3 FAILED at 422.
3 out of 3 hunks FAILED -- saving rejects to file trunk/target/linux/ar71xx/image/Makefile.rej
The next patch would delete the file trunk/target/linux/ar71xx/patches-3.3/613-MIPS-ath79-dir505a1-support.patch,
which does not exist!  Assume -R? [n] y
patching file trunk/target/linux/ar71xx/patches-3.3/613-MIPS-ath79-dir505a1-support.patch



In make menuconfig there isnt dilink dir 505 listed




The precompiled image file from this link https://mega.co.nz/#!mgIyCazI!M2_-Aw6w6 … Tn1qc1lU3g

works well but there is usb issue.

(Last edited by ami_narod on 2 Jun 2013, 21:25)

Hello everyone
I want to thank you all for really good job. I recompiled it and currently I can mount USB device. I have no serial port cable and before apply new firmware I restore original d-link firmware.

Here is a link to firmware file: https://mega.co.nz/#!wgJUhACR!ICLw_SO1d … 4Uv8xFmFlk

Thanks guys this is awesome

Few things

So the patch is Backwards :)that's why you cant apply it properly withouth -R.  Patch actually is setup to REMOVE change. (OOPS)

Also if you APPLY the patch AFTER a make menu config it will not reflect the changes.

Check out http://www.packetfog.com/openwrt-on-a-dir-515/  for a copy of a corrected patch and some instructions.

Ill try to upload a working image when I finish compiling.

plesiu wrote:

Hello everyone
I want to thank you all for really good job. I recompiled it and currently I can mount USB device. I have no serial port cable and before apply new firmware I restore original d-link firmware.

Here is a link to firmware file: https://mega.co.nz/#!wgJUhACR!ICLw_SO1d … 4Uv8xFmFlk


uploaded and flashed with your build firmware . USB device is now recognized and hub is also shown but cannot mount the device there .


The output of dmesg , fdisk -ls ,lsusb , lsmod ,is put below please help.
root@OpenWrt:/# dmesg
[    0.000000] Linux version 3.3.8 (jeremy@harold-mint) (gcc version 4.6.3 20120
201 (prerelease) (Linaro GCC 4.6-2012.02) ) #2 Sat May 25 10:57:11 NZST 2013
[    0.000000] MyLoader: sysp=71c3aa6b, boardp=223451ef, parts=5d57d807
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 00019374 (MIPS 24Kc)
[    0.000000] SoC: Atheros AR9330 rev 1
[    0.000000] Clocks: CPU:400.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:25.00
0MHz
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone PFN ranges:
[    0.000000]   Normal   0x00000000 -> 0x00004000
[    0.000000] Movable zone start PFN for each node
[    0.000000] Early memory PFN ranges
[    0.000000]     0: 0x00000000 -> 0x00004000
[    0.000000] On node 0 totalpages: 16384
[    0.000000] free_area_init_node: node 0, pgdat 802d61e0, node_mem_map 8100000
0
[    0.000000]   Normal zone: 128 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 16256 pages, LIFO batch:3
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pag
es: 16256
[    0.000000] Kernel command line:  board=DIR-505-A1 console=ttyATH0,115200 mtd
parts=spi0.0:64k(u-boot)ro,64k(art)ro,64k(mac)ro,64k(nvram)ro,256k(language)ro,1
024k(kernel),6656k(rootfs),7680k@0x80000(firmware) rootfstype=squashfs,jffs2 noi
nitrd
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32
bytes
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 61604k/65536k available (2115k kernel code, 3932k reserve
d, 406k data, 208k init, 0k highmem)
[    0.000000] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, No
des=1
[    0.000000] NR_IRQS:51
[    0.000000] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
[    0.080000] pid_max: default: 32768 minimum: 301
[    0.080000] Mount-cache hash table entries: 512
[    0.090000] NET: Registered protocol family 16
[    0.090000] gpiochip_add: registered GPIOs 0 to 29 on device: ath79
[    0.100000] MIPS: machine is D-Link DIR-505 A1
[    0.350000] bio: create slab <bio-0> at 0
[    0.360000] Switching to clocksource MIPS
[    0.360000] NET: Registered protocol family 2
[    0.370000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.370000] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    0.380000] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.380000] TCP: Hash tables configured (established 2048 bind 2048)
[    0.390000] TCP reno registered
[    0.390000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.400000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.400000] NET: Registered protocol family 1
[    0.410000] PCI: CLS 0 bytes, default 32
[    0.430000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.430000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY
) (c) 2001-2006 Red Hat, Inc.
[    0.440000] msgmni has been set to 120
[    0.440000] io scheduler noop registered
[    0.450000] io scheduler deadline registered (default)
[    0.450000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.460000] ar933x-uart: ttyATH0 at MMIO 0x18020000 (irq = 11) is a AR933X UA
RT
[    0.470000] console [ttyATH0] enabled, bootconsole disabled
[    0.480000] m25p80 spi0.0: found mx25l6405d, expected m25p80
[    0.480000] m25p80 spi0.0: mx25l6405d (8192 Kbytes)
[    0.490000] 8 cmdlinepart partitions found on MTD device spi0.0
[    0.490000] Creating 8 MTD partitions on "spi0.0":
[    0.500000] 0x000000000000-0x000000010000 : "u-boot"
[    0.510000] 0x000000010000-0x000000020000 : "art"
[    0.510000] 0x000000020000-0x000000030000 : "mac"
[    0.520000] 0x000000030000-0x000000040000 : "nvram"
[    0.520000] 0x000000040000-0x000000080000 : "language"
[    0.530000] 0x000000080000-0x000000180000 : "kernel"
[    0.530000] 0x000000180000-0x000000800000 : "rootfs"
[    0.540000] mtd: partition "rootfs" set to be root filesystem
[    0.540000] mtd: partition "rootfs_data" created automatically, ofs=300000, l
en=500000
[    0.550000] 0x000000300000-0x000000800000 : "rootfs_data"
[    0.560000] 0x000000080000-0x000000800000 : "firmware"
[    0.580000] ag71xx_mdio: probed
[    0.590000] eth0: Atheros AG71xx at 0xb9000000, irq 4
[    1.140000] ag71xx ag71xx.0: eth0: connected to PHY at ag71xx-mdio.1:04 [uid=
004dd041, driver=Generic PHY]
[    1.150000] TCP cubic registered
[    1.150000] NET: Registered protocol family 17
[    1.160000] 8021q: 802.1Q VLAN Support v1.8
[    1.170000] VFS: Mounted root (squashfs filesystem) readonly on device 31:6.
[    1.170000] Freeing unused kernel memory: 208k freed
[    2.990000] Registered led device: d-link:green:power
[    3.000000] Registered led device: d-link:red:status
[    6.330000] JFFS2 notice: (427) jffs2_build_xattr_subsystem: complete buildin
g xattr subsystem, 1 of xdatum (1 unchecked, 0 orphan) and 10 of xref (0 dead, 2
orphan) found.
[    7.000000] scsi_mod: Unknown symbol bsg_unregister_queue (err 0)
[    7.010000] scsi_mod: Unknown symbol bsg_register_queue (err 0)
[    7.180000] usbcore: registered new interface driver usbfs
[    7.190000] usbcore: registered new interface driver hub
[    7.190000] usbcore: registered new device driver usb
[    7.240000] sd_mod: Unknown symbol scsi_mode_sense (err 0)
[    7.240000] sd_mod: Unknown symbol scsi_device_get (err 0)
[    7.250000] sd_mod: Unknown symbol scsi_setup_blk_pc_cmnd (err 0)
[    7.250000] sd_mod: Unknown symbol scsi_get_sense_info_fld (err 0)
[    7.260000] sd_mod: Unknown symbol scsi_get_vpd_page (err 0)
[    7.270000] sd_mod: Unknown symbol scsicam_bios_param (err 0)
[    7.270000] sd_mod: Unknown symbol scsi_command_normalize_sense (err 0)
[    7.280000] sd_mod: Unknown symbol scsi_test_unit_ready (err 0)
[    7.280000] sd_mod: Unknown symbol scsi_block_when_processing_errors (err 0)
[    7.290000] sd_mod: Unknown symbol scsi_register_driver (err 0)
[    7.300000] sd_mod: Unknown symbol scsi_ioctl (err 0)
[    7.300000] sd_mod: Unknown symbol scsi_nonblockable_ioctl (err 0)
[    7.310000] sd_mod: Unknown symbol scsi_show_sense_hdr (err 0)
[    7.310000] sd_mod: Unknown symbol scsi_device_put (err 0)
[    7.320000] sd_mod: Unknown symbol scsi_prep_fn (err 0)
[    7.330000] sd_mod: Unknown symbol scsi_show_result (err 0)
[    7.330000] sd_mod: Unknown symbol scsi_setup_fs_cmnd (err 0)
[    7.340000] sd_mod: Unknown symbol scsi_print_command (err 0)
[    7.340000] sd_mod: Unknown symbol scsi_execute_req (err 0)
[    7.350000] sd_mod: Unknown symbol scsi_mode_select (err 0)
[    7.350000] sd_mod: Unknown symbol scsi_print_sense (err 0)
[    7.360000] sd_mod: Unknown symbol scsi_show_extd_sense (err 0)
[    7.360000] sd_mod: Unknown symbol scsi_prep_return (err 0)
[    7.370000] sd_mod: Unknown symbol scsi_set_medium_removal (err 0)
[    7.480000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    7.480000] ehci-platform ehci-platform: Generic Platform EHCI Controller
[    7.490000] ehci-platform ehci-platform: new USB bus registered, assigned bus
number 1
[    7.530000] ehci-platform ehci-platform: irq 3, io mem 0x1b000000
[    7.550000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
[    7.550000] hub 1-0:1.0: USB hub found
[    7.550000] hub 1-0:1.0: 1 port detected
[    7.610000] usb_storage: Unknown symbol scsi_report_device_reset (err 0)
[    7.620000] usb_storage: Unknown symbol scsi_remove_host (err 0)
[    7.630000] usb_storage: Unknown symbol scsi_report_bus_reset (err 0)
[    7.630000] usb_storage: Unknown symbol scsi_sense_desc_find (err 0)
[    7.640000] usb_storage: Unknown symbol scsi_eh_prep_cmnd (err 0)
[    7.640000] usb_storage: Unknown symbol scsi_host_put (err 0)
[    7.650000] usb_storage: Unknown symbol scsi_scan_host (err 0)
[    7.660000] usb_storage: Unknown symbol scsi_eh_restore_cmnd (err 0)
[    7.660000] usb_storage: Unknown symbol scsi_cmd_get_serial (err 0)
[    7.670000] usb_storage: Unknown symbol scsi_add_host_with_dma (err 0)
[    7.680000] usb_storage: Unknown symbol scsi_normalize_sense (err 0)
[    7.680000] usb_storage: Unknown symbol scsi_host_alloc (err 0)
[    7.690000] usb_storage: Unknown symbol scsi_get_host_dev (err 0)
[    7.910000] usb 1-1: new high-speed USB device number 2 using ehci-platform
[   28.980000] Compat-drivers backport release: compat-drivers-2013-01-21-1
[   28.990000] Backport based on wireless-testing.git master-2013-02-22
[   28.990000] compat.git: wireless-testing.git
[   29.080000] scsi_mod: Unknown symbol bsg_unregister_queue (err 0)
[   29.090000] scsi_mod: Unknown symbol bsg_register_queue (err 0)
[   29.100000] cfg80211: Calling CRDA to update world regulatory domain
[   29.100000] cfg80211: World regulatory domain updated:
[   29.110000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gai
n, max_eirp)
[   29.110000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 20
00 mBm)
[   29.120000] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 20
00 mBm)
[   29.130000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 20
00 mBm)
[   29.140000] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 20
00 mBm)
[   29.140000] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 20
00 mBm)
[   29.850000] ath: EEPROM regdomain: 0x0
[   29.850000] ath: EEPROM indicates default country code should be used
[   29.850000] ath: doing EEPROM country->regdmn map search
[   29.850000] ath: country maps to regdmn code: 0x3a
[   29.850000] ath: Country alpha2 being used: US
[   29.850000] ath: Regpair used: 0x3a
[   29.850000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   29.860000] Registered led device: ath9k-phy0
[   29.860000] ieee80211 phy0: Atheros AR9330 Rev:1 mem=0xb8100000, irq=2
[   29.870000] cfg80211: Calling CRDA for country: US
[   29.870000] cfg80211: Regulatory domain changed to country: US
[   29.880000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gai
n, max_eirp)
[   29.890000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 27
00 mBm)
[   29.900000] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 17
00 mBm)
[   29.900000] cfg80211:   (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 20
00 mBm)
[   29.910000] cfg80211:   (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 20
00 mBm)
[   29.920000] cfg80211:   (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 20
00 mBm)
[   29.930000] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 30
00 mBm)
[   30.050000] NTFS driver 2.1.30 [Flags: R/O MODULE].
[   30.300000] PPP generic driver version 2.4.2
[   30.440000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   30.560000] NET: Registered protocol family 24
[   30.580000] sd_mod: Unknown symbol scsi_mode_sense (err 0)
[   30.580000] sd_mod: Unknown symbol scsi_device_get (err 0)
[   30.590000] sd_mod: Unknown symbol scsi_setup_blk_pc_cmnd (err 0)
[   30.590000] sd_mod: Unknown symbol scsi_get_sense_info_fld (err 0)
[   30.600000] sd_mod: Unknown symbol scsi_get_vpd_page (err 0)
[   30.600000] sd_mod: Unknown symbol scsicam_bios_param (err 0)
[   30.610000] sd_mod: Unknown symbol scsi_command_normalize_sense (err 0)
[   30.620000] sd_mod: Unknown symbol scsi_test_unit_ready (err 0)
[   30.620000] sd_mod: Unknown symbol scsi_block_when_processing_errors (err 0)
[   30.630000] sd_mod: Unknown symbol scsi_register_driver (err 0)
[   30.640000] sd_mod: Unknown symbol scsi_ioctl (err 0)
[   30.640000] sd_mod: Unknown symbol scsi_nonblockable_ioctl (err 0)
[   30.650000] sd_mod: Unknown symbol scsi_show_sense_hdr (err 0)
[   30.650000] sd_mod: Unknown symbol scsi_device_put (err 0)
[   30.660000] sd_mod: Unknown symbol scsi_prep_fn (err 0)
[   30.660000] sd_mod: Unknown symbol scsi_show_result (err 0)
[   30.670000] sd_mod: Unknown symbol scsi_setup_fs_cmnd (err 0)
[   30.670000] sd_mod: Unknown symbol scsi_print_command (err 0)
[   30.680000] sd_mod: Unknown symbol scsi_execute_req (err 0)
[   30.690000] sd_mod: Unknown symbol scsi_mode_select (err 0)
[   30.690000] sd_mod: Unknown symbol scsi_print_sense (err 0)
[   30.700000] sd_mod: Unknown symbol scsi_show_extd_sense (err 0)
[   30.700000] sd_mod: Unknown symbol scsi_prep_return (err 0)
[   30.710000] sd_mod: Unknown symbol scsi_set_medium_removal (err 0)
[   30.750000] nf_conntrack version 0.5.0 (965 buckets, 3860 max)
[   31.050000] usb_storage: Unknown symbol scsi_report_device_reset (err 0)
[   31.060000] usb_storage: Unknown symbol scsi_remove_host (err 0)
[   31.070000] usb_storage: Unknown symbol scsi_report_bus_reset (err 0)
[   31.070000] usb_storage: Unknown symbol scsi_sense_desc_find (err 0)
[   31.080000] usb_storage: Unknown symbol scsi_eh_prep_cmnd (err 0)
[   31.080000] usb_storage: Unknown symbol scsi_host_put (err 0)
[   31.090000] usb_storage: Unknown symbol scsi_scan_host (err 0)
[   31.100000] usb_storage: Unknown symbol scsi_eh_restore_cmnd (err 0)
[   31.100000] usb_storage: Unknown symbol scsi_cmd_get_serial (err 0)
[   31.110000] usb_storage: Unknown symbol scsi_add_host_with_dma (err 0)
[   31.120000] usb_storage: Unknown symbol scsi_normalize_sense (err 0)
[   31.120000] usb_storage: Unknown symbol scsi_host_alloc (err 0)
[   31.130000] usb_storage: Unknown symbol scsi_get_host_dev (err 0)
[   41.660000] device wlan0 entered promiscuous mode
[   41.740000] br-lan: port 1(wlan0) entered forwarding state
[   41.750000] br-lan: port 1(wlan0) entered forwarding state
[   43.750000] br-lan: port 1(wlan0) entered forwarding state
root@OpenWrt:/#




root@OpenWrt:/# fdisk -ls

Disk /dev/mtdblock0: 0 MB, 65536 bytes
255 heads, 63 sectors/track, 0 cylinders, total 128 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mtdblock1: 0 MB, 65536 bytes
255 heads, 63 sectors/track, 0 cylinders, total 128 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mtdblock2: 0 MB, 65536 bytes
255 heads, 63 sectors/track, 0 cylinders, total 128 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mtdblock3: 0 MB, 65536 bytes
255 heads, 63 sectors/track, 0 cylinders, total 128 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mtdblock4: 0 MB, 262144 bytes
255 heads, 63 sectors/track, 0 cylinders, total 512 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mtdblock5: 1 MB, 1048576 bytes
255 heads, 63 sectors/track, 0 cylinders, total 2048 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mtdblock6: 6 MB, 6815744 bytes
255 heads, 63 sectors/track, 0 cylinders, total 13312 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mtdblock7: 5 MB, 5242880 bytes
255 heads, 63 sectors/track, 0 cylinders, total 10240 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mtdblock8: 7 MB, 7864320 bytes
255 heads, 63 sectors/track, 0 cylinders, total 15360 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

root@OpenWrt:/#


root@OpenWrt:/# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 03f0:5a07 Hewlett-Packard
root@OpenWrt:/#


root@OpenWrt:/# lsmod
Module                  Size  Used by    Tainted: G
ath79_wdt               2240  1
ledtrig_netdev          3184  0
nf_nat_irc               784  0
nf_conntrack_irc        2464  1 nf_nat_irc
nf_nat_ftp               976  0
nf_conntrack_ftp        4416  1 nf_nat_ftp
ipt_MASQUERADE           976  1
iptable_nat             2112  1
nf_nat                  9792  4 nf_nat_irc,nf_nat_ftp,ipt_MASQUERADE,iptable_nat
pppoe                   7488  0
xt_conntrack            2048  3
xt_CT                   1216  0
xt_NOTRACK               448  0
iptable_raw              560  1
xt_state                 608  0
nf_conntrack_ipv4       3872  6 iptable_nat,nf_nat
nf_defrag_ipv4           624  1 nf_conntrack_ipv4
nf_conntrack           37104 12 nf_nat_irc,nf_conntrack_irc,nf_nat_ftp,nf_conntr
ack_ftp,ipt_MASQUERADE,iptable_nat,nf_nat,xt_conntrack,xt_CT,xt_NOTRACK,xt_state
,nf_conntrack_ipv4
pppox                   1152  1 pppoe
ipt_REJECT              1808  2
xt_TCPMSS               1824  1
ipt_LOG                 6048  0
xt_comment               400  0
xt_multiport            1104  0
xt_mac                   528  0
xt_limit                 944  1
iptable_mangle           832  1
iptable_filter           592  1
ip_tables               8864  4 iptable_nat,iptable_raw,iptable_mangle,iptable_f
ilter
xt_tcpudp               1632  4
x_tables                9984 18 ipt_MASQUERADE,iptable_nat,xt_conntrack,xt_CT,xt
_NOTRACK,iptable_raw,xt_state,ipt_REJECT,xt_TCPMSS,ipt_LOG,xt_comment,xt_multipo
rt,xt_mac,xt_limit,iptable_mangle,iptable_filter,ip_tables,xt_tcpudp
ppp_async               5952  0
ppp_generic            18848  3 pppoe,pppox,ppp_async
slhc                    4368  1 ppp_generic
vfat                    7824  0
fat                    41728  1 vfat
ntfs                   87888  0
ath9k                  87904  0
ath9k_common            1152  1 ath9k
ath9k_hw              350976  2 ath9k,ath9k_common
ath                    14576  3 ath9k,ath9k_common,ath9k_hw
mac80211              285888  1 ath9k
crc_ccitt                944  1 ppp_async
cfg80211              167136  3 ath9k,ath,mac80211
compat                  9904  5 ath9k,ath9k_common,ath9k_hw,mac80211,cfg80211
arc4                     768  2
aes_generic            29808  0
ehci_hcd               33616  0
usbcore                99168  2 ehci_hcd
usb_common               480  1 usbcore
nls_base                4640  4 vfat,fat,ntfs,usbcore
crypto_algapi           9200  2 arc4,aes_generic
ledtrig_timer           1072  0
ledtrig_default_on       416  0
leds_gpio               1552  0
gpio_button_hotplug     3200  0
root@OpenWrt:/#



root@OpenWrt:/dev# ls
bus        mtd0ro     mtd4       mtd7ro     mtdblock4  ppp        ttyS0
console    mtd1       mtd4ro     mtd8       mtdblock5  ptmx       urandom
full       mtd1ro     mtd5       mtd8ro     mtdblock6  pts        watchdog
kmsg       mtd2       mtd5ro     mtdblock0  mtdblock7  random     zero
log        mtd2ro     mtd6       mtdblock1  mtdblock8  shm
mem        mtd3       mtd6ro     mtdblock2  null       tty
mtd0       mtd3ro     mtd7       mtdblock3  port       ttyATH0


flashed and restarted several times same problem.

execute:
opkg install mount-utils
and then mount device.

Supported files system are: ext2, ext3, ext4, vfat and ntfs.

In your /dev sda device is not visible. Did you have disk/pendrive connected until listing folder?

root@OpenWrt:~# ls /dev/
bus        mtd0ro     mtd4       mtd7ro     mtdblock4  ppp        tty
console    mtd1       mtd4ro     mtd8       mtdblock5  ptmx       ttyATH0
full       mtd1ro     mtd5       mtd8ro     mtdblock6  pts        ttyS0
kmsg       mtd2       mtd5ro     mtdblock0  mtdblock7  random     urandom
log        mtd2ro     mtd6       mtdblock1  mtdblock8  sda        watchdog
mem        mtd3       mtd6ro     mtdblock2  null       sg0        zero
mtd0       mtd3ro     mtd7       mtdblock3  port       shm

(Last edited by plesiu on 5 Jun 2013, 21:38)

plesiu wrote:

execute:
opkg install mount-utils
and then mount device.

Supported files system are: ext2, ext3, ext4, vfat and ntfs.

In your /dev sda device is not visible. Did you have disk/pendrive connected until listing folder?

root@OpenWrt:~# ls /dev/
bus        mtd0ro     mtd4       mtd7ro     mtdblock4  ppp        tty
console    mtd1       mtd4ro     mtd8       mtdblock5  ptmx       ttyATH0
full       mtd1ro     mtd5       mtd8ro     mtdblock6  pts        ttyS0
kmsg       mtd2       mtd5ro     mtdblock0  mtdblock7  random     urandom
log        mtd2ro     mtd6       mtdblock1  mtdblock8  sda        watchdog
mem        mtd3       mtd6ro     mtdblock2  null       sg0        zero
mtd0       mtd3ro     mtd7       mtdblock3  port       shm

Thank you for reply  , yes I have tried pen drive & harddisk both. I will try opkg install mount-utils  after I return home and post the output.

ami_narod wrote:
plesiu wrote:

execute:
opkg install mount-utils
and then mount device.

Supported files system are: ext2, ext3, ext4, vfat and ntfs.

In your /dev sda device is not visible. Did you have disk/pendrive connected until listing folder?

root@OpenWrt:~# ls /dev/
bus        mtd0ro     mtd4       mtd7ro     mtdblock4  ppp        tty
console    mtd1       mtd4ro     mtd8       mtdblock5  ptmx       ttyATH0
full       mtd1ro     mtd5       mtd8ro     mtdblock6  pts        ttyS0
kmsg       mtd2       mtd5ro     mtdblock0  mtdblock7  random     urandom
log        mtd2ro     mtd6       mtdblock1  mtdblock8  sda        watchdog
mem        mtd3       mtd6ro     mtdblock2  null       sg0        zero
mtd0       mtd3ro     mtd7       mtdblock3  port       shm

Thank you for reply  , yes I have tried pen drive & harddisk both. I will try opkg install mount-utils  after I return home and post the output.


output of : opkg install mount-utils

root@OpenWrt:/# opkg install mount-utils
Installing mount-utils (2.21.2-1) to root...
Downloading http://downloads.openwrt.org/attitude_a … 1xx/generi
c/packages/mount-utils_2.21.2-1_ar71xx.ipk.
Installing libmount (2.21.2-1) to root...
Downloading http://downloads.openwrt.org/attitude_a … 1xx/generi
c/packages/libmount_2.21.2-1_ar71xx.ipk.
Configuring libmount.
Collected errors:
* check_data_file_clashes: Package mount-utils wants to install file /bin/umoun
t
        But that file is already provided by package  * busybox
* check_data_file_clashes: Package mount-utils wants to install file /bin/mount
        But that file is already provided by package  * busybox
* opkg_install_cmd: Cannot install package mount-utils.
root@OpenWrt:/#


although installed it

root@OpenWrt:/# opkg --force-overwrite install mount-utils
Installing mount-utils (2.21.2-1) to root...
Downloading http://downloads.openwrt.org/attitude_a … 1xx/generi
c/packages/mount-utils_2.21.2-1_ar71xx.ipk.
Configuring mount-utils.


still no result .

usb drive is recognized .. see output of dmesg /lsusb  in above posts.

(Last edited by ami_narod on 7 Jun 2013, 01:36)

thanks everybody its solved...

reflashed the firmwire by following this method http://forums.dlink.com/index.php?topic … #msg162511

have to keep holding the reset button for a long time after powering it on and then re-flashing solved all the problem thanks a lot Danz plesiu and others .