Ipkg update: not resolvingdownloads.openwrt.org

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page Previous  1, 2, 3, 4  Next
Author Message
bkmo
DD-WRT User


Joined: 18 Oct 2007
Posts: 385
Location: Grecia, Costa Rica

PostPosted: Tue Apr 22, 2008 14:36    Post subject: Reply with quote
jborn wrote:
bkmo,

Sounds perfect. Just let me know where to pick it up from and I'll let you know how it goes.

Thanks much!

I have it here at my home in Costa Rica. I am connecting to the internet via my cell phone. I will try to upload it via this connection. If it will not go I will upload it tomorrow when I am at a location with broadband.
Sponsor
bkmo
DD-WRT User


Joined: 18 Oct 2007
Posts: 385
Location: Grecia, Costa Rica

PostPosted: Tue Apr 22, 2008 14:58    Post subject: Reply with quote
Here is the shinji257 usb, serial, automount etc. RC7 firmware. It is running great on my wrtsl54gs linksys.
If Optware is checked the first partition (must be ext2/3)on the first disc (disc0) will be mounted as /opt . If automount is enabled then all discs and partitions will be mounted if present at bootup (as usb/disc#/part#). I removed shinji's loop as it was using too much cpu polling while waiting for new drives. You can use both optware and automount at the same time. Printing enabled loads the usb printer drivers, and checking p910nd will load the non spooling print daemon. If you need help with connecting a printer feel free to ask. Usb options are located at the bottom of the services tab. This firmware is based on DD-WRT v24 RC-7 (04/10/0Cool std - build 9338, and all modules, utils, etc. are built from source using the current kernel.

Bkmo

EDIT: I posted a new firmware built with V24Final 9517 here: http://www.dd-wrt.com/phpBB2/viewtopic.php?t=31998
This has no serial, acm support



opttarball3.zip
 Description:
Optware tarball that includes Samba, proftp, swat, thttpd servers. Extract tarball to /opt. Be aware that this is 7zipped if you have problems unzipping.

Download
 Filename:  opttarball3.zip
 Filesize:  4.93 MB
 Downloaded:  1086 Time(s)


shinjiusb_bkmodded.bin
 Description:
Shinji firmware with native usb,serial support.
New version here:http://www.dd-wrt.com/phpBB2/viewtopic.php?t=31998
New version has no serial or acm support.

Download
 Filename:  shinjiusb_bkmodded.bin
 Filesize:  3.63 MB
 Downloaded:  1246 Time(s)



Last edited by bkmo on Tue May 20, 2008 20:45; edited 3 times in total
jborn
DD-WRT Novice


Joined: 14 Apr 2008
Posts: 24

PostPosted: Wed Apr 23, 2008 2:24    Post subject: Reply with quote
bkmo - thanks much for uploading this version. I have it loading, but still have some questions to get this fully up and running.

Before I get into my questions I wanted to answer my original question. Why was I getting the problems with ipkg update and later with ping. Both turned out to be my missing the local DNS settings on the main setup page. Once I added that I was and to ping a site and run ipkg update. Both still work on this modified firmware.

OK. So back to getting a printer attached to this bad boy. I have core USB support, USB 2.0 support enabled, and the Load P910ND selected. I've applied the settings and attached the printer (Epson Stylus CX7800 if it matters)

After doing this the output of dmesg | grep usb are as follows:

root@DD-WRT:~# dmesg | grep usb
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb.c: new USB bus registered, assigned bus number 1
usb.c: registered new driver usblp
printer.c: usblp0: USB Bidirectional printer dev 2 if 1 alt 0 proto 2 vid 0x04B8
pid 0x081F

What do I do next?

Thanks again

_________________
Five Network Appliances
ATT Uverse 3801HGV Residential Gateway
3 Netgear gigabyte switches
ASUS RT-AC68U
jborn
DD-WRT Novice


Joined: 14 Apr 2008
Posts: 24

PostPosted: Thu Apr 24, 2008 1:21    Post subject: Reply with quote
Well I've gotten a small step forward.. I enabled all the USB support:

USB Core
USB 1.1 UHCI (added this one)
USB 1.1 OHCI (added this one)
USB 2.0
Load P910ND

After that I now see the following from dmesg:

Code:
root@DD-WRT:~# dmesg | grep usb
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb-uhci.c: $Revision: 1.275 $ time 13:23:49 Mar 24 2008
usb-uhci.c: High bandwidth mode enabled
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
usb-ohci.c: USB OHCI at membase 0xb8003000, IRQ 6
usb-ohci.c: usb-00:03.0, PCI device 14e4:471a
usb.c: new USB bus registered, assigned bus number 1
usb.c: new USB bus registered, assigned bus number 2
usb.c: registered new driver usblp
printer.c: usblp0: USB Bidirectional printer dev 2 if 1 alt 0 proto 2 vid 0x04B8
 pid 0x081F


Now I'm trying to edit /jffs/etc/config/usb.startup according to this page in the wiki: http://www.dd-wrt.com/wiki/index.php/Printer_Sharing

Not sure if this is the correct path?

Thanks again for all the help.. I'm very close!

_________________
Five Network Appliances
ATT Uverse 3801HGV Residential Gateway
3 Netgear gigabyte switches
ASUS RT-AC68U
Knasher
DD-WRT User


Joined: 07 Nov 2007
Posts: 449

PostPosted: Thu Apr 24, 2008 10:23    Post subject: Reply with quote
The path is correct, just don't forget to make the file executable for it to run on startup.
bkmo
DD-WRT User


Joined: 18 Oct 2007
Posts: 385
Location: Grecia, Costa Rica

PostPosted: Sat Apr 26, 2008 1:25    Post subject: Reply with quote
You should not have to edit anything for the firmware I uploaded to work. Printer drivers and p910nd are loading, and all you need to do is setup the printer as a tcpip raw printer. The ip is the IP of the router, and the port is 9100 . P910nd uses 9100 as the first port, 9102 if you need a second. It is loading in this firmware to use device lp0 on 9100. It looks like your dmesg is ok. Just do a PS to make sure p910nd is loaded.
bkmo
DD-WRT User


Joined: 18 Oct 2007
Posts: 385
Location: Grecia, Costa Rica

PostPosted: Sat Apr 26, 2008 1:28    Post subject: Reply with quote
Knasher wrote:
The path is correct, just don't forget to make the file executable for it to run on startup.

The firmware he is running is all setup from the webui to run all usb and printer support. Do not do anything from the wiki unless you know what you are doing. Do so only if you need to add a second printer.
mbw
DD-WRT Novice


Joined: 04 Nov 2007
Posts: 26

PostPosted: Sat Apr 26, 2008 17:45    Post subject: Sweet firmware - working great on WRT350N + HP LaserJet 6L Reply with quote
Thank you to BKMO and Shinji for this new firmware -it really works great! I have USB printing working thru my WRT350N this morning. Nice work on the web UI, makes everything very easy to set up.

I have a usb hub plugged in to the WRT350N and a USB flash drive and a printer hooked up to the hub. All works. Printing from OS X (leopard and tiger) both works as does windows XP (following wiki setup directions)

Its worth repeating that after a firmware flash, its important to do a power-off reset with long-reset-button hold to clear out the firmware... these linksys devices are finicky and dont do a clean reboot very well sometimes, esp. after a firmware change.

But all is working fine now and my hat is off to you guys.

This firmware is the model for DD-WRT moving forward and the reason I bought my WRT350N 4 months ago. Thanks for realizing the dream! :)

M@
bkmo
DD-WRT User


Joined: 18 Oct 2007
Posts: 385
Location: Grecia, Costa Rica

PostPosted: Sun Apr 27, 2008 3:09    Post subject: Re: Sweet firmware - working great on WRT350N + HP LaserJet Reply with quote
mbw wrote:
Thank you to BKMO and Shinji for this new firmware -it really works great! I have USB printing working thru my WRT350N this morning. Nice work on the web UI, makes everything very easy to set up.

M@

The real work was done by Shinji. All I did was make suggestions as to what was needed in my setup. Then I just added a couple of scripts and rebuilt it to suit my needs, and hoped to support the average USB user. I don't know where Shinji went lately, but he has stopped posting for the moment. There are a couple of webui changes in the works, and also a setting for swapfile in the webui planned. The swapfile will load now if you have one called swapfile in the root of the /opt directory. When all this is tested and working I assume Shinji will try to get his source added to the SVN so it can be built when Brainslayer releases new RC's or releases.
mbw
DD-WRT Novice


Joined: 04 Nov 2007
Posts: 26

PostPosted: Mon Apr 28, 2008 2:37    Post subject: Reply with quote
I have checked the Optware box in this firmware and I have a USB key, but its not mounting on OPT:

root@victoryheights:/#
root@victoryheights:/#
root@victoryheights:/#
root@victoryheights:/# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
ramfs on /tmp type ramfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/mtdblock/4 on /jffs type jffs2 (rw)
/dev/discs/disc0/part1 on /tmp/usb/disc0/part1 type vfat (rw,noatime,nodiratime)
root@victoryheights:/# df -h
Filesystem Size Used Available Use% Mounted on
rootfs 2.8M 2.8M 0 100% /
/dev/root 2.8M 2.8M 0 100% /
/dev/mtdblock/4 4.0M 644.0k 3.4M 16% /jffs
/dev/discs/disc0/part1
124.0M 21.8M 102.3M 18% /tmp/usb/disc0/part1
root@victoryheights:/# nvram show | grep opt
zebra_copt=0
usb_optware=1
ospfd_copt=0
size: 20771 bytes (11997 left)
dnsmasq_options=
snmpd_conf=See http://www.net-snmp.org for expert snmpd.conf options
dhcpd_options=
root@victoryheights:/#

And here is the relevant part of my dmesg:

Enable WRT350 LED fix
eth1: Broadcom BCM4785 10/100/1000 Integrated Controller found at mem 18010000, IRQ 5, node addr 001c10cd5552
eth1: Unknown transceiver found
eth1: Scatter-gather ON, 64-bit DMA ON, Tx Checksum ON, Rx Checksum ON, 802.1Q VLAN ON, NAPI ON
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb-uhci.c: $Revision: 1.275 $ time 13:23:49 Mar 24 2008
usb-uhci.c: High bandwidth mode enabled
PCI: Setting latency timer of device 00:03.0 to 64
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
PCI: Setting latency timer of device 00:02.0 to 64
usb-ohci.c: USB OHCI at membase 0xb8002000, IRQ 3
usb-ohci.c: usb-00:02.0, PCI device 14e4:471a
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
SCSI subsystem driver Revision: 1.00
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
usb.c: registered new driver usblp
printer.c: v0.13: USB Printer Device Class driver
hub.c: new USB device 00:02.0-1, assigned address 2
hub.c: USB hub found
hub.c: 4 ports detected
hub.c: new USB device 00:02.0-1.1, assigned address 3
scsi0 : SCSI emulation for USB Mass Storage devices
Vendor: Flash Model: Drive AL_USB20 Rev: 1.00
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sda: 254208 512-byte hdwr sectors (130 MB)
sda: Write Protect is off
Partition check:
/dev/scsi/host0/bus0/target0/lun0: p1
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 3
hub.c: new USB device 00:02.0-1.2, assigned address 4
printer.c: usblp0: USB Bidirectional printer dev 4 if 0 alt 1 proto 2 vid 0x050D pid 0x0002
eth1: Using PCI INTX interrupt



Also, I have not ever installed any optware yet - should I do that first? I was thinking I need to get /opt mounted from the usb key first.

Does the usb key need to be ext3?

No big deal - but any ideas?


Matt
bkmo
DD-WRT User


Joined: 18 Oct 2007
Posts: 385
Location: Grecia, Costa Rica

PostPosted: Mon Apr 28, 2008 13:52    Post subject: Reply with quote
To mount the first partition as /Opt you need to have the ext2/3 filesystem drivers selected in the webui. Also the first partition has to be ext2/3. I would suggest ext2 as it will not wear out your flash drive.
mbw
DD-WRT Novice


Joined: 04 Nov 2007
Posts: 26

PostPosted: Tue Apr 29, 2008 16:03    Post subject: Reply with quote
bkmo,

I redid my usb key as ext2, and made sure all the right options were checked in the web gui, but it is still not mounting on opt.... it mounts, but elsewhere.

Enable WRT350 LED fix
eth1: Broadcom BCM4785 10/100/1000 Integrated Controller found at mem 18010000, IRQ 5, node addr 001c10cd5552
eth1: Unknown transceiver found
eth1: Scatter-gather ON, 64-bit DMA ON, Tx Checksum ON, Rx Checksum ON, 802.1Q VLAN ON, NAPI ON
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb-uhci.c: $Revision: 1.275 $ time 13:23:49 Mar 24 2008
usb-uhci.c: High bandwidth mode enabled
PCI: Setting latency timer of device 00:03.0 to 64
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
PCI: Setting latency timer of device 00:02.0 to 64
usb-ohci.c: USB OHCI at membase 0xb8002000, IRQ 3
usb-ohci.c: usb-00:02.0, PCI device 14e4:471a
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
SCSI subsystem driver Revision: 1.00
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
usb.c: registered new driver usblp
printer.c: v0.13: USB Printer Device Class driver
hub.c: new USB device 00:02.0-1, assigned address 2
hub.c: USB hub found
hub.c: 4 ports detected
hub.c: new USB device 00:02.0-1.2, assigned address 3
printer.c: usblp0: USB Bidirectional printer dev 3 if 0 alt 1 proto 2 vid 0x050D pid 0x0002
hub.c: new USB device 00:02.0-1.4, assigned address 4
scsi0 : SCSI emulation for USB Mass Storage devices
Vendor: Flash Model: Drive AL_USB20 Rev: 1.00
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sda: 254208 512-byte hdwr sectors (130 MB)
sda: Write Protect is off
Partition check:
/dev/scsi/host0/bus0/target0/lun0: p1
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 4
eth1: Using PCI INTX interrupt
vlan1: add 01:00:5e:00:00:01 mcast address to master interface
vlan1: dev_set_promiscuity(master, 1)
device eth1 entered promiscuous mode
device vlan1 entered promiscuous mode
device eth0 entered promiscuous mode
device wl0.1 entered promiscuous mode
device vlan2 entered promiscuous mode
vlan2: Setting MAC address to 00 1c 10 cd 55 53.
vlan2: dev_set_promiscuity(master, 1)
vlan2: dev_set_allmulti(master, 1)
vlan2: dev_set_promiscuity(master, -1)
device vlan2 left promiscuous mode
vlan2: dev_set_allmulti(master, -1)
vlan2: add 01:00:5e:00:00:01 mcast address to master interface
root@victoryheights:~# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
ramfs on /tmp type ramfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/mtdblock/4 on /jffs type jffs2 (rw)
/dev/discs/disc0/part1 on /tmp/usb/disc0/part1 type ext2 (rw,noatime,nodiratime)
root@victoryheights:~#

Again, I just want to help debug this if you want... I dont really need it. I am willing to help. Just let me know if you want to pursue it & what other info I can provide.

Matt
bkmo
DD-WRT User


Joined: 18 Oct 2007
Posts: 385
Location: Grecia, Costa Rica

PostPosted: Tue Apr 29, 2008 17:21    Post subject: Reply with quote
mbw wrote:
bkmo,
Again, I just want to help debug this if you want... I dont really need it. I am willing to help. Just let me know if you want to pursue it & what other info I can provide.

Matt


Hmmm, it mounts here just fine. The mount you get now is from the automount script. When you select optware it should also mount to /opt. That is how it is working for me, although I am using a bit different mod than what I posted. I will look at what I posted to see what may be wrong. There should be a script called /etc/config/optmount.startup that is looking for the optware nvram setting.
Code:

#!/bin/sh
# Optware first partition mount script
# also sets paths, mounts swapfile, and starts
# optware programs

if [ `nvram get usb_optware` -eq 0 ]; then
exit
fi

if [ -e /opt/optmounted ]; then
exit
fi

#Check and Mount Optware Filesystem on First Partition
if [ -e /dev/discs/disc0/part1 ]; then
mount -o noatime,nodiratime /dev/discs/disc0/part1 /opt
sleep 1
fi

#mount swap file if it exists
if [ -e /opt/.swapfile ]; then /sbin/swapon /opt/.swapfile
  fi

#Set Paths
if [ -e /opt/etc/profile ]; then
       cp /opt/etc/profile /tmp               
       mount -o bind /tmp/profile /etc/profile
 fi

#start optware programs
if [ -d /opt/etc/init.d ]; then
for i in /opt/etc/init.d/S*; do
  $i start 2>&1
done
fi

I modified this file quickly for the version I uploaded. I will look at the source files for the build and see if I screwed it up.

Bkmo

edit: the source file looks ok here. Can you try to mount it manually using this command:

mount -o noatime,nodiratime /dev/discs/disc0/part1 /opt

also see if nvram get usb_optware returns a 1
jdmulloy
DD-WRT Novice


Joined: 27 Apr 2008
Posts: 6

PostPosted: Wed Apr 30, 2008 4:22    Post subject: Reply with quote
Hi, I've been trying to use an ASUS WL-520GU/GC as a print server and when I print to it it will reboot. Sometimes I can get it to work when I start p910nd manually on the command line, same exact parameters as the autostart. This firmware works well except for this issue. Any ideas? I was able to get the log exported to a PC and p910nd does get the job but then the router reboots.
dacman61
DD-WRT User


Joined: 22 Oct 2007
Posts: 99
Location: Buckhannon, West Virginia, U.S.A.

PostPosted: Wed Apr 30, 2008 12:27    Post subject: Reply with quote
Quote:
Where you put in the ip address for the ddwrt router, there is also an option for local dns and gateway. Just fill both of those in with the ip of your internet connected router and it should work.


I tried that and it didn't do anything. 'ipkg update' still doesn't work for me.
Goto page Previous  1, 2, 3, 4  Next Display posts from previous:    Page 2 of 4
Post new topic   Reply to topic    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