DD-WRT support for verizon 7501 bulit by westell

Post new topic   This topic is locked: you cannot edit posts or make replies.    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page Previous  1, 2, 3 ... 31, 32, 33 ... 53, 54, 55  Next
Author Message
Rhandy
DD-WRT Novice


Joined: 04 Aug 2010
Posts: 19

PostPosted: Mon Aug 09, 2010 20:21    Post subject: Reply with quote
What happened with the problem that baba2s and I are having? Got a solution?

Im using the following commands:

Code:
wl ap 0
wl wsec 1
wl wet 1
wl channel 1
wl scan
wl scanresults
brctl delif br0 wl0
ifconfig br2 down
killall udhcpc
cd /var/net_mgr/exec
./FirewallInit
./FirewallNone
wl join SSID key PASSWORD
ifconfig wl0 192.168.1.5
route add default gw 192.168.1.1 wl0
echo "nameserver 4.2.2.1" > /var/etc/resolv.conf
echo "nameserver 4.2.2.2" >> /var/etc/resolv.conf
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables --table nat -A POSTROUTING -o wl0 -j MASQUERADE


Help me here BBBexodus or anyone.
Thanks!
Sponsor
lijianch
DD-WRT User


Joined: 14 Jul 2007
Posts: 146

PostPosted: Tue Aug 10, 2010 15:07    Post subject: Reply with quote
I wonder if we can put the busybox into built in flash rather than the usb thumb drive.

I do not have the writing access but read only over the serial console.
davy_gravy
DD-WRT User


Joined: 05 Jun 2010
Posts: 159

PostPosted: Tue Aug 10, 2010 17:34    Post subject: Reply with quote
lijianch wrote:
I wonder if we can put the busybox into built in flash rather than the usb thumb drive.


So, did you revive your router?

About busybox and putting it (or other binaries) into flash rather than on the usb thumb drive ... I don't think that is possible. The rootfs is read-only, by design. I'm pretty sure that there is no way to alter the rootfs's dirs, except for /var. You can change /var and its contents, of course, but the changes are nonpersistent.

=======

...thinking about this a bit more... if there were a nice way to decompress, alter, and then recompress the image, it might work, but it would required flashing the ROM chips ... which as you know, is risky...

In fact, I'd seen something like this done with the LinkStation NAS devices ... a friend of mine had made firmimg.bin that had a revised kernel, some extra utilities (fs stuff, wget, ftp, etc) - he'd forgotten to tweak one thing with permissions that made ftp a bit funky - and someone else came along and found a tool (firmimg-tool, IIRC) that would unpacked & repack it - and thats how he fixed the funky permissions problem.

I'm not sure any such tool exists for the way that Westell's toolchain handles the image creation, though. I'm pretty sure that they use LZMA to compress it... I do see mksquashfs in their tools dir, but not unsquashfs. Not sure if their mksquashfs is vanilla, or a customized version.
idk12
DD-WRT Novice


Joined: 09 Oct 2009
Posts: 15

PostPosted: Tue Aug 10, 2010 23:09    Post subject: Reply with quote
Hello, thanks for your work. Very easy to follow. But only one of my three usb devices work. My kingson usb works. My cruzer usb doesn't deteced nor is my printer. where is the log file located?
davy_gravy
DD-WRT User


Joined: 05 Jun 2010
Posts: 159

PostPosted: Tue Aug 10, 2010 23:22    Post subject: Reply with quote
At present, it the package I put up only supports 2 USB devices, a drive and a printer. If you haven't upgraded, you should consider doing so. There is an Upgrade guide in the HowTo section.

You can see the log with
Code:
logread


But, TBH, I've only tried it w/ 2 USB devices (not counting the hub as a device), just a USB drive (either hdd or flash) and a USB printer.

If you are using the latest version that I have posted, with the latest script, there is a test in the script that attempt to make sure that sda1 does exist, and that it is mounted to the expected /var/usb_mount .

I can tell you that I had to experiment a bit w/ my USB hub to get stuff to act just right... including looking at /var/sys/bus/scsi/devices/ to see what device was landing where... Confused I came away from the experience convinced that _usually_ the drive would recongize & get mapped to /var/sys/bus/scsi/devices/ first, and then the printer after that.

It may also have something to do with which physical port on your USB _hub_ has a lower physical unit number (like 1, 2 ,3, 4). I found that there was a port that was1 another that was 2, etc. I always put the flash drive in a lower #'ed port, with the printer in a higher #ed port. I looked in /var/sys/bus/usb to get an idea of what was going on here...

My hub always shows up at /var/sys/bus/usb/devices/2-1

Anything plugged into it seems to show up in subdirs:
2-1.1/
2-1.2/

etc...

===========

hey, idk can you cat the files in
/var/sys/bus/usb/devices/
for me, and post output here, and tell which device gives which output?

I may be able to figure out a way to test whether it is a pritner or a disk.

my printer:

Code:
# cd 2-1.4
# ls
2-1.4:1.0            bDeviceProtocol      bmAttributes         maxchild
2-1.4:1.1            bDeviceSubClass      detach_state         product
2-1.4:1.2            bMaxPower            devnum               serial
2-1.4:1.3            bNumConfigurations   idProduct            speed
bConfigurationValue  bNumInterfaces       idVendor             version
bDeviceClass         bcdDevice            manufacturer
# cat *
cat: Read Error: Is a directory
cat: Read Error: Is a directory
cat: Read Error: Is a directory
cat: Read Error: Is a directory
1
00
00
00
  2mA
1
 4
0100
c0
0
5
6c11
03f0
HP
0
Photosmart C4400 series
CN84ODG2090557
12
 2.00


my usb disk:

Code:
2-1.1                bDeviceSubClass      detach_state         product
2-1.2                bMaxPower            devnum               speed
2-1:1.0              bNumConfigurations   idProduct            version
bConfigurationValue  bNumInterfaces       idVendor
bDeviceClass         bcdDevice            manufacturer
bDeviceProtocol      bmAttributes         maxchild
# cd 2-1
2-1.1/    2-1.2/    2-1:1.0/
# cd 2-1.2/
# cat *
cat: Read Error: Is a directory
1
00
00
00
500mA
1
 1
0100
80
0
3
ffff
ffff
0
USB Flash Drive
123456789ABCDEF
12
 2.00
idk12
DD-WRT Novice


Joined: 09 Oct 2009
Posts: 15

PostPosted: Wed Aug 11, 2010 0:18    Post subject: Reply with quote
i got permission denied at /var/sys/bus/usb/devices/. how do i login as root. Usually i type root then password but idk here.

Okay, i see the exploit on your site. let see if it works

Edit: not working.
--- Trace Route Test Results ---
unable to perform Trace Route test
davy_gravy
DD-WRT User


Joined: 05 Jun 2010
Posts: 159

PostPosted: Wed Aug 11, 2010 1:14    Post subject: Reply with quote
if you can log in via telnet, then you are in as root...

try:
Code:

cat  /var/sys/bus/usb/devices/2*/*

idk12
DD-WRT Novice


Joined: 09 Oct 2009
Posts: 15

PostPosted: Wed Aug 11, 2010 1:23    Post subject: Reply with quote


I plug my printer directly into the router's usb. No usb light.

edit 2: reading error: is a directory and nothing else. Look like it didn't dectect my devices at all except the kingson usb.
davy_gravy
DD-WRT User


Joined: 05 Jun 2010
Posts: 159

PostPosted: Wed Aug 11, 2010 1:46    Post subject: Reply with quote
idk12 wrote:


A. I plug my printer directly into the router's usb. No usb light.

edit 2: reading error: is a directory and nothing else. Look like it didn't dectect my
B. devices at all except the kingson usb.


A. well, that is normal. It will only light the USB LED if it succesfully runs automount on a usb storage device. It can't mount a printer.


B. Hmmm... can you post the output of
Code:
logread
davy_gravy
DD-WRT User


Joined: 05 Jun 2010
Posts: 159

PostPosted: Wed Aug 11, 2010 2:06    Post subject: Reply with quote
An afterthought here...

first, get your router to boot with the latest lemonade version, with your USB disk in the attached hub. Make sure you can read the output on the lemonade webif (not the verizon webif, the new one)

Once that is working and booting reliabley, then plug in your usb printer to your hub.

Wait 15 seconds and see what the webif says...
idk12
DD-WRT Novice


Joined: 09 Oct 2009
Posts: 15

PostPosted: Wed Aug 11, 2010 2:23    Post subject: Reply with quote
Aug 10 19:29:39 (none) user.debug kernel: dsmark_get(sch 809e4c80,[qdisc 809e4d0 0],classid 20070)
Aug 10 19:29:39 (none) user.debug kernel: dsmark_get(sch 809e4c80,[qdisc 809e4d0 0],classid 20060)
Aug 10 19:29:39 (none) user.debug kernel: NO GRED Queues setup!
Aug 10 19:29:39 (none) user.debug kernel: dsmark_get(sch 809e4c80,[qdisc 809e4d0 0],classid 20052)
Aug 10 19:29:39 (none) user.debug kernel: dsmark_get(sch 809e4c80,[qdisc 809e4d0 0],classid 20051)
Aug 10 19:29:39 (none) user.debug kernel: dsmark_get(sch 809e4c80,[qdisc 809e4d0 0],classid 20050)
Aug 10 19:29:39 (none) user.debug kernel: NO GRED Queues setup!
Aug 10 19:29:40 (none) user.debug kernel: dsmark_get(sch 809e4c80,[qdisc 809e4d0 0],classid 20042)
Aug 10 19:29:40 (none) user.debug kernel: dsmark_get(sch 809e4c80,[qdisc 809e4d0 0],classid 20041)
Aug 10 19:29:40 (none) user.debug kernel: dsmark_get(sch 809e4c80,[qdisc 809e4d0 0],classid 20040)
Aug 10 19:29:40 (none) user.debug kernel: NO GRED Queues setup!
Aug 10 19:29:40 (none) user.debug kernel: dsmark_get(sch 809e4c80,[qdisc 809e4d0 0],classid 20032)
Aug 10 19:29:40 (none) user.debug kernel: dsmark_get(sch 809e4c80,[qdisc 809e4d0 0],classid 20031)
Aug 10 19:29:40 (none) user.debug kernel: dsmark_get(sch 809e4c80,[qdisc 809e4d0 0],classid 20030)
Aug 10 19:29:40 (none) user.debug kernel: NO GRED Queues setup!
Aug 10 19:29:40 (none) user.debug kernel: dsmark_get(sch 809e4c80,[qdisc 809e4d0 0],classid 20022)
Aug 10 19:29:40 (none) user.debug kernel: dsmark_get(sch 809e4c80,[qdisc 809e4d0 0],classid 20021)
Aug 10 19:29:41 (none) user.debug kernel: dsmark_get(sch 809e4c80,[qdisc 809e4d0 0],classid 20020)
Aug 10 19:29:41 (none) user.debug kernel: dsmark_get(sch 809e4c80,[qdisc 809e4d0 0],classid 20010)
Aug 10 19:29:41 (none) daemon.notice net_mgr[643]: SIPALGConfig: disabled
Aug 10 19:32:46 (none) daemon.err cwmpd[595]: WSTLIB_HTTP: SSL handshake failed
Aug 10 19:32:46 (none) daemon.err cwmpd[595]: CWMP: Inform Cannot be Sent
Aug 10 19:32:46 (none) daemon.err cwmpd[595]: cwmpDoInform: Unable to decode Inf ormResponse
Aug 10 19:32:46 (none) daemon.info cwmpd[595]: CWMP: SSL Status = SSL Connection Succeeded, TCP Status = TCP Connected, Authentication Type = None
Aug 10 19:32:46 (none) daemon.info cwmpd[595]: CWMP: Inform (0). The following events are true: 0 BOOTSTRAP, 1 BOOT, 4 VALUE CHANGE
Aug 10 19:32:46 (none) daemon.info cwmpd[595]: CWMP: Final Http Return Code = 0
Aug 10 19:33:33 (none) daemon.info diag[593]: --- Trace Route Test Results --- unable to perform Trace Route test
Aug 10 19:33:38 (none) daemon.info diag[593]: --- Trace Route Test Results --- unable to perform Trace Route test
Aug 10 19:33:56 (none) daemon.info diag[593]: --- Trace Route Test Results --- unable to perform Trace Route test
Aug 10 19:34:15 (none) daemon.info diag[593]: --- Trace Route Test Results --- unable to perform Trace Route test
Aug 10 19:34:33 (none) daemon.info diag[593]: --- Trace Route Test Results --- unable to perform Trace Route test
Aug 10 19:48:33 (none) daemon.err cwmpd[595]: WSTLIB_HTTP: SSL handshake failed
Aug 10 19:48:33 (none) daemon.err cwmpd[595]: CWMP: Inform Cannot be Sent
Aug 10 19:48:33 (none) daemon.err cwmpd[595]: cwmpDoInform: Unable to decode Inf ormResponse
Aug 10 19:48:33 (none) daemon.info cwmpd[595]: CWMP: SSL Status = SSL Connection Succeeded, TCP Status = TCP Connected, Authentication Type = None
Aug 10 19:48:33 (none) daemon.info cwmpd[595]: CWMP: Inform (0). The following events are true: 0 BOOTSTRAP, 1 BOOT, 4 VALUE CHANGE
Aug 10 19:48:33 (none) daemon.info cwmpd[595]: CWMP: Final Http Return Code = 0
Aug 10 19:58:47 (none) local0.debug udhcpc[1242]: Sending renew...
Aug 10 19:58:47 (none) local0.info udhcpc[1242]: Lease of 192.168.15.5 obtained, lease time 3600
Aug 10 20:09:28 (none) daemon.err cwmpd[595]: WSTLIB_HTTP: SSL handshake failed
Aug 10 20:09:28 (none) daemon.err cwmpd[595]: CWMP: Inform Cannot be Sent
Aug 10 20:09:28 (none) daemon.err cwmpd[595]: cwmpDoInform: Unable to decode Inf ormResponse
Aug 10 20:09:28 (none) daemon.info cwmpd[595]: CWMP: SSL Status = SSL Connection Succeeded, TCP Status = TCP Connected, Authentication Type = None
Aug 10 20:09:28 (none) daemon.info cwmpd[595]: CWMP: Inform (0). The following events are true: 0 BOOTSTRAP, 1 BOOT, 4 VALUE CHANGE
Aug 10 20:09:28 (none) daemon.info cwmpd[595]: CWMP: Final Http Return Code = 0
Aug 10 20:10:54 (none) daemon.info dnsmasq[576]: reading /var/etc/resolv.conf
Aug 10 20:10:54 (none) daemon.info dnsmasq[576]: using nameserver 192.168.15.1#5 3
Aug 10 20:18:16 (none) user.info kernel: usb 1-1: new high speed USB device usin g address 2
Aug 10 20:18:16 (none) user.notice root: mountUsb_script: fatal error: failed to detect any disk drives.
Aug 10 20:18:16 (none) user.notice root: mountUsb_script: fatal error: failed to detect any disk drives.
Aug 10 20:18:20 (none) user.notice root: mountUsb_script: unmounted drive from / var/usb_mount
Aug 10 20:18:20 (none) user.info kernel: usb 1-1: USB disconnect, address 2
Aug 10 20:18:22 (none) user.info kernel: usb 1-1: new high speed USB device usin g address 3
Aug 10 20:18:22 (none) user.notice root: mountUsb_script: fatal error: failed to detect any disk drives.
Aug 10 20:18:22 (none) user.notice root: mountUsb_script: fatal error: failed to detect any disk drives.
Aug 10 20:25:24 (none) user.notice root: mountUsb_script: unmounted drive from / var/usb_mount
Aug 10 20:25:24 (none) user.info kernel: usb 1-1: USB disconnect, address 3
Aug 10 20:25:31 (none) user.info kernel: usb 1-1: new high speed USB device usin g address 4
Aug 10 20:25:31 (none) user.notice root: mountUsb_script: fatal error: failed to detect any disk drives.
Aug 10 20:25:31 (none) user.notice root: mountUsb_script: fatal error: failed to detect any disk drives.
Aug 10 20:25:31 (none) user.notice root: mountUsb_script: fatal error: failed to detect any disk drives.
Aug 10 20:25:31 (none) user.info kernel: scsi0 : SCSI emulation for USB Mass Sto rage devices
Aug 10 20:25:31 (none) user.notice root: mountUsb_script: fatal error: failed to detect any disk drives.
Aug 10 20:25:31 (none) user.notice kernel: Cruzer Rev: 8.02
Aug 10 20:25:31 (none) user.notice kernel: Type: Direct-Access ANSI SCSI revision: 02
Aug 10 20:25:31 (none) user.notice root: mountUsb_script: fatal error: no partit ions to mount.
Aug 10 20:25:31 (none) user.notice kernel: Attached scsi removable disk sda at s csi0, channel 0, id 0, lun 0
Aug 10 20:25:32 (none) user.notice root: mountUsb_script: fatal error: no partit ions to mount.
Aug 10 20:25:32 (none) user.debug kernel: USB Mass Storage device found at 4
Aug 10 20:27:42 (none) user.info kernel: usb 1-1: USB disconnect, address 4
Aug 10 20:27:42 (none) user.notice root: mountUsb_script: unmounted drive from / var/usb_mount
Aug 10 20:27:48 (none) user.info kernel: usb 1-1: new high speed USB device usin g address 5
Aug 10 20:27:48 (none) user.notice root: mountUsb_script: fatal error: failed to detect any disk drives.
Aug 10 20:28:47 (none) local0.debug udhcpc[1242]: Sending renew...
Aug 10 20:28:47 (none) local0.info udhcpc[1242]: Lease of 192.168.15.5 obtained, lease time 3600
Aug 10 20:30:21 (none) user.notice root: mountUsb_script: unmounted drive from / var/usb_mount
Aug 10 20:30:22 (none) user.info kernel: usb 1-1: USB disconnect, address 5
Aug 10 20:30:28 (none) user.info kernel: usb 1-1: new high speed USB device usin g address 6
Aug 10 20:30:28 (none) user.info kernel: hub 1-1:1.0: USB hub found
Aug 10 20:30:28 (none) user.notice root: mountUsb_script: fatal error: failed to detect any disk drives.
Aug 10 20:30:28 (none) user.info kernel: hub 1-1:1.0: 4 ports detected
Aug 10 20:30:39 (none) user.info kernel: usb 1-1.3: new high speed USB device us ing address 7
Aug 10 20:30:39 (none) user.notice root: mountUsb_script: fatal error: failed to detect any disk drives.
Aug 10 20:30:39 (none) user.notice root: mountUsb_script: fatal error: failed to detect any disk drives.
Aug 10 20:30:39 (none) user.notice root: mountUsb_script: fatal error: failed to detect any disk drives.
Aug 10 20:30:53 (none) user.info kernel: usb 1-1.4: new high speed USB device us ing address 8
Aug 10 20:30:53 (none) user.notice root: mountUsb_script: fatal error: failed to detect any disk drives.
Aug 10 20:30:53 (none) user.notice root: mountUsb_script: fatal error: failed to detect any disk drives.
Aug 10 20:30:53 (none) user.info kernel: scsi1 : SCSI emulation for USB Mass Sto rage devices
Aug 10 20:30:53 (none) user.notice root: mountUsb_script: fatal error: failed to detect any disk drives.
Aug 10 20:30:53 (none) user.notice kernel: Vendor: Kingston Model: DataTravel er 2.0 Rev: PMAP
Aug 10 20:30:53 (none) user.notice kernel: Type: Direct-Access ANSI SCSI revision: 02
Aug 10 20:30:53 (none) user.notice root: mountUsb_script: fatal error: no partit ions to mount.
Aug 10 20:30:53 (none) user.notice kernel: SCSI device sda: 3903488 512-byte hdw r sectors (1999 MB)
Aug 10 20:30:53 (none) user.notice kernel: sda: assuming Write Enabled
Aug 10 20:30:53 (none) user.err kernel: sda: assuming drive cache: write through
Aug 10 20:30:54 (none) user.info kernel: sda1
Aug 10 20:30:54 (none) user.notice kernel: Attached scsi removable disk sda at s csi1, channel 0, id 0, lun 0
Aug 10 20:30:54 (none) user.debug kernel: USB Mass Storage device found at 8
Aug 10 20:30:54 (none) user.notice root: mountUsb_script: Successfully mounted d rive to /var/usb_mount
Aug 10 20:33:21 (none) daemon.info dnsmasq[576]: reading /var/etc/resolv.conf
Aug 10 20:33:21 (none) daemon.info dnsmasq[576]: using nameserver 192.168.15.1#5 3
Aug 10 20:38:47 (none) user.info kernel: usb 1-1: USB disconnect, address 6
Aug 10 20:38:47 (none) user.info kernel: usb 1-1.3: USB disconnect, address 7
Aug 10 20:38:47 (none) user.info kernel: usb 1-1.4: USB disconnect, address 8
Aug 10 20:38:47 (none) user.notice root: mountUsb_script: unmounted drive from / var/usb_mount
Aug 10 20:38:47 (none) user.err kernel: scsi1 (0:0): rejecting I/O to dead devic e
Aug 10 20:38:47 (none) user.err kernel: FAT bread failed in fat_clusters_flush
Aug 10 20:38:47 (none) user.notice root: mountUsb_script: unmounted drive from / var/usb_mount
Aug 10 20:39:03 (none) user.info kernel: usb 1-1: new high speed USB device usin g address 9
Aug 10 20:39:03 (none) user.notice root: mountUsb_script: fatal error: failed to detect any disk drives.
Aug 10 20:39:04 (none) user.notice root: mountUsb_script: fatal error: failed to detect any disk drives.
Aug 10 20:39:04 (none) user.info kernel: scsi2 : SCSI emulation for USB Mass Sto rage devices
Aug 10 20:39:04 (none) user.notice root: mountUsb_script: fatal error: failed to detect any disk drives.
Aug 10 20:39:04 (none) user.notice kernel: Vendor: Kingston Model: DataTravel er 2.0 Rev: PMAP
Aug 10 20:39:04 (none) user.notice kernel:
Aug 10 20:39:04 (none) user.notice root: mountUsb_script: fatal error: failed to detect any disk drives.
Aug 10 20:39:04 (none) user.notice kernel: SCSI device sda: 3903488 512-byte hdw r sectors (1999 MB)
Aug 10 20:39:04 (none) user.notice kernel: sda: assuming Write Enabled
Aug 10 20:39:04 (none) user.err kernel: sda: assuming drive cache: write through
Aug 10 20:39:04 (none) user.notice root: mountUsb_script: fatal error: no partit ions to mount.
Aug 10 20:39:04 (none) user.info kernel: sda1
Aug 10 20:39:05 (none) user.notice kernel: Attached scsi removable disk sda at s csi2, channel 0, id 0, lun 0
Aug 10 20:39:05 (none) user.debug kernel: USB Mass Storage device found at 9
Aug 10 20:39:05 (none) user.notice root: mountUsb_script: Successfully mounted d rive to /var/usb_mount
Aug 10 20:40:50 (none) user.info kernel: usb 1-1: USB disconnect, address 9
Aug 10 20:40:50 (none) user.err kernel: scsi2 (0:0): rejecting I/O to dead devic e
Aug 10 20:40:50 (none) user.notice root: mountUsb_script: unmounted drive from / var/usb_mount
Aug 10 20:40:50 (none) user.err kernel: FAT bread failed in fat_clusters_flush
Aug 10 20:58:47 (none) local0.debug udhcpc[1242]: Sending renew...
Aug 10 20:58:47 (none) local0.info udhcpc[1242]: Lease of 192.168.20.2 obtained, lease time 3600
Aug 10 20:59:35 (none) daemon.info dnsmasq[576]: reading /var/etc/resolv.conf
Aug 10 20:59:35 (none) daemon.info dnsmasq[576]: using nameserver 192.168.20.4#5 3
#
idk12
DD-WRT Novice


Joined: 09 Oct 2009
Posts: 15

PostPosted: Wed Aug 11, 2010 2:37    Post subject: Reply with quote
still no luck. only the usb is detected not the printer on the new webif
davy_gravy
DD-WRT User


Joined: 05 Jun 2010
Posts: 159

PostPosted: Wed Aug 11, 2010 4:04    Post subject: Reply with quote
In your dmesg/logread there is no mention of a USB printer. If it was connected during the run the uptime before you ran dmesg, then I'd suspect that it isn't recognized by the kernel or hardware.

Code:
Aug 10 20:25:31 (none) user.notice kernel: Cruzer Rev: 8.02
Aug 10 20:25:31 (none) user.notice kernel: Type: Direct-Access ANSI SCSI revision: 02
Aug 10 20:25:31 (none) user.notice root: mountUsb_script: fatal error: no partit ions to mount.
...the kernel doesn't see any (valid) partitions. it may be formatted in some filesystem that the kernel doesnt' recognize, or it may be corrupted



BTW, it only works if you have the unit powered down, insert the devices in hub ports, and then power it up .

If it boots lemonade, but doesn't recognize the printer, then try powering down, and using a different physical port from the hub for the printer. I had to repeat (trial and error for a few minutes to get mine).

Beyond that, there really isn't anything else I can advise.
lijianch
DD-WRT User


Joined: 14 Jul 2007
Posts: 146

PostPosted: Wed Aug 11, 2010 12:58    Post subject: Reply with quote
I found the kernel mtd file does not match the boot log.

I can confirm the bootloader is working but I can not flash rootfs etc.

davy_gravy wrote:
lijianch, I posted what I was able to ... go to my site's Download - rom bins section... all my mtdblockN.bin images are in there... I haven't checked them for integrity... but I may try to use one of them to get my old bricked unit up again.


Code:
dd if=/var/dev/mtdblockN    of=/var/usb_mount/share/wholeflash.bin 



Code:
# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/mtdblock2            4.5M      4.5M         0 100% /
tmpfs                   512.0k    292.0k    220.0k  57% /var
/var/dev/sda1           981.3M     74.4M    906.9M   8% /var/usb_mount

 ls -lna mtd*
brwxrwxrwx    1 0        0         31,   0 May 22  2008 mtdblock0
brwxrwxrwx    1 0        0         31,   1 May 22  2008 mtdblock1
brwxrwxrwx    1 0        0         31,   2 May 22  2008 mtdblock2
brwxrwxrwx    1 0        0         31,   3 May 22  2008 mtdblock3
brwxrwxrwx    1 0        0         31,   4 May 22  2008 mtdblock4
brwxrwxrwx    1 0        0         31,   5 May 22  2008 mtdblock5
brwxrwxrwx    1 0        0         31,   6 May 22  2008 mtdblock6
brwxrwxrwx    1 0        0         31,   7 May 22  2008 mtdblock7





EDIT : lijianch - I dd'd them out (default dd, no special block size...) there are five of them in a tarball called mtdblocks.tar in the Downloads - "rom bins" section of my site.

I'm guessing if you look at an old bootlog you should be able to figure out where to flash them in, in terms of address in flash.
JustTrying
DD-WRT Novice


Joined: 11 Aug 2010
Posts: 2

PostPosted: Wed Aug 11, 2010 16:45    Post subject: Remote Printer for My Network Reply with quote
Here's my setup:
- Airport Extreme WIFI
- Mac and Windows laptops
- V7501
- USB Printer

The printer is pretty far away from the Airport and I'd like to connect the V7501 as a remote client to the Airport to be able to use the print server on my network.

What I could do:
- connect the V7501 to the Airport
- establish two way routing

So in a nutshell, I can ping any computer on my WIFI from the V7501 telnet and the other way round. I can access the FTP server on the V7501 from all computers as well. I can ping internet servers from the V7501 telnet.

But I just can't connect to the print server. Bonjour also doesn't seem to be available anymore. Don't know what the problem is and since I am doing most of the stuff here without really understanding what I do, I find it hard to trace the issue.

If I start the V7501 with the lemonade patches and connect my Mac to it, remote printing and all the Bonjour stuff works easily. It appears as so my Mac can recognize the print server even now (via the Airport to the V7501), but printing doesn't work. It keeps telling me 'Network host 10.0.1.18 is busy' - that's the IP of the V7501. I can ping it and connect to the lemonade web page without problems, though.

Any ideas on how to narrow down the issue? Is this the firewall still blocking some of the traffic?

Here are my modifications to the firewall script (inserted at the end). I reserved 10.0.1.18 for the V7501 in my Airport console and that seems to work fine.

wl ap 0
wl wsec 1
wl wet 1
wl channel 1
wl scan
sleep 1
wl scanresults
brctl delif br0 wl0
ifconfig br2 down
killall udhcpc
cd /var/net_mgr/exec
./FirewallInit
./FirewallNone
nas -P /var/nas.lan.pid -H 34954 -i wl0 -S -m 4 -k <MYPASSWORD> -s <MYSSID> -w 2 -g 3600 &
sleep 2
udhcpc -i wl0 -r 10.0.1.18
ifconfig wl0 10.0.1.18
route add default gw 10.0.1.1 wl0
echo "nameserver 4.2.2.1" > /var/etc/resolv.conf
echo "nameserver 4.2.2.2" >> /var/etc/resolv.conf
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables --table nat -A POSTROUTING -o wl0 -j MASQUERADE

How can I find out what's wrong? It appears that I can telnet from my Mac to port 9100 on the V7501.
Goto page Previous  1, 2, 3 ... 31, 32, 33 ... 53, 54, 55  Next Display posts from previous:    Page 32 of 55
Post new topic   This topic is locked: you cannot edit posts or make replies.    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum