Topic: Openwrt Backfire on Router with brcm47xx and 2MB ROM/8MB RAM (USR5461)

Hello, i own an U.S.Robotics USR5461 router running with dd-wrt micro on it for longer time. The router have USB-Port so i thought it would be nice to get the device working as a UMTS-Router.

I would like to know if it were possible to get that working with Backfire. I can add external strorage over usb-port (usb-hub together with 3g umts usb device) that can maybe also be used als swap. I never used Openwrt till now.

It is funny, that there is a firmware with over 2MB already: http://downloads.openwrt.org/backfire/10.03/brcm47xx/openwrt-usr5461-squashfs.bin 

When i build a smal firmware, how do i know what i must put inside and what not?

thanks

2 (edited by No0ne 2010-06-25 10:17:06)

Re: Openwrt Backfire on Router with brcm47xx and 2MB ROM/8MB RAM (USR5461)

Hi ...

i once made an internet radio out of an usr5461 using a usb soundcard and a atmel atmega8 with software RC5 decoding and serial connection to switch channels via standard ir remote control. all resources of the router (flash, ram, cpu) are pretty much used up, but it works really great smile

now i got another usr5461 and i also own a huawei e122 usb utms modem. first i fokused on getting a umts connection and used a 512mb micro sd within the umts modem for additional disk space. so i dont need a usb hub and extra usb flash memory ... i got a working ppp connection and wifi hotspot but i messed around with iptables while compiling backfire and the kernel wasnt able to do correct NAT ... maybe i will try again this weekend ...

the biggest problem on this board is the small amount of ram ... booting is very slow because its constantly reading and writing swapspace on the micro sd .... therefor i'm searching for a compatible ram module and a ram upgrade howto ... it would be nice if i dont have to desolder the existing ram and only add another chip to the additional free pads on the board ...

what umts modem do you have?

Best regards smile
NoOne

3

Re: Openwrt Backfire on Router with brcm47xx and 2MB ROM/8MB RAM (USR5461)

Minimum for OpenWrt Backfire is 4MB flash and 16MB RAM....

Re: Openwrt Backfire on Router with brcm47xx and 2MB ROM/8MB RAM (USR5461)

Was there not a possibility to make a minimal version that can be installed and then the packages you install get into the ram?
No0ne, how did you made that? I will use an Huawei E1762 (7,2 down, 5,76 up). That also have an internal micro sd card slot and i have an 8gb there inside.
Did you use the AT^U2DIAG=256 modus? For my E1762 it enable only the modem interface and the sd card. AT^U2DIAG=0 enables on all huawei devices just the modem interface to be able to use the device as a basic modem without any live images and so on.
I would maybe put an 30mb read/write usb stick. Is the USB port USB1.1 or 2.0?

Thanks so far No0ne

Re: Openwrt Backfire on Router with brcm47xx and 2MB ROM/8MB RAM (USR5461)

to get a small image i compiled openwrt on my own and left out stuff i didn't need
the usb port is 1.1 but i think this is fast enough ...

modem usb mode switch command

usb_modeswitch -v 12d1 -p 1446 -M 55534243000000000000000000000011060000000000000000000000000000

usbserial kernel module

insmod usbserial vendor=0x12d1 product=0×1001

/etc/ppp/peers/umts

/dev/usb/tts/0
460800
lock
crtscts
modem
noauth
replacedefaultroute
defaultroute
connect “/usr/sbin/chat -V -f /etc/ppp/chat“
noipdefault 
usepeerdns 
persist

/etc/ppp/chat

ABORT BUSY
ABORT 'NO CARRIER'
ABORT ERROR
REPORT CONNECT
TIMEOUT 30

““ „AT“
„OK“ „ATE1“
„OK“ „AT+CPIN?“
“+CPIN: READY“
„AT+CGREG?“
““ „ATD*99***1#“

CONNECT \c

that gave me a working ppp connection

Re: Openwrt Backfire on Router with brcm47xx and 2MB ROM/8MB RAM (USR5461)

I now have a working USR5461 as 3G Wifi Router ...
It takes about 2 min. from powering until a working internet connection.
Anybody interessted in image and config files ??

Re: Openwrt Backfire on Router with brcm47xx and 2MB ROM/8MB RAM (USR5461)

No0ne wrote:

I now have a working USR5461 as 3G Wifi Router ...
It takes about 2 min. from powering until a working internet connection.
Anybody interessted in image and config files ??

Yes I am interested.

Thanks

Re: Openwrt Backfire on Router with brcm47xx and 2MB ROM/8MB RAM (USR5461)

Dogge wrote:

Minimum for OpenWrt Backfire is 4MB flash and 16MB RAM....

If this were a one of those software products made in Redmond Washington,then that might be a show stopper. ;-)

Re: Openwrt Backfire on Router with brcm47xx and 2MB ROM/8MB RAM (USR5461)

No0ne wrote:

Anybody interessted in image and config files ??

I definitely am interested in the .config (for OpenWRT) and defaul-config (for Linux kernel source) files. These two files are big and not wise to post them here unless they can be attached to a post. I would recommend if you can ZIP them into a file and upload it somewhere for anyone to download. If not, I will be more than happy if you can email them to me to USR5461_OpenWRT_configs@slickdeals.endjunk.com (yes and this is a working and disposable e-mail address). Thanks.

Mazi

Re: Openwrt Backfire on Router with brcm47xx and 2MB ROM/8MB RAM (USR5461)

sorry for the delay .. i'm posting all files as soon as i'm at home again ....

11 (edited by No0ne 2010-09-13 19:42:46)

Re: Openwrt Backfire on Router with brcm47xx and 2MB ROM/8MB RAM (USR5461)

So ... here are my files

http://noone.at/usr5461/config
the config i used to compile the internal flash image
i selected jffs2 to be able to modify it afterwards

http://noone.at/usr5461/openwrt-brcm-2.4-jffs2-64k.trx
the unmodified internal flash image

http://noone.at/usr5461/usr5461/usr5461-modified-rootfs.tar
a copy made with cp of the modified flash filesystem
two main modifications are in /etc/init.d/boot and a copy of
the binary usb_modeswitch to turn of cdrom mode of the huawei e122

http://noone.at/usr5461/usr5461/usr5461/usr5461-modified-rootfs-mtddumps.zip
same as above ... made with cp from /dev/mtd/...

http://noone.at/usr5461/sd.fdisk
partition table of the 512mb sd card used in the e122
the sdcard contains another modified rootfs (ext3) which is getting overlayed after sucessfully mounted

http://noone.at/usr5461/openwrt-brcm-2.4-rootfs.tar.gz
the unmodified rootfs on the sd card

http://noone.at/usr5461/sd.tar.gz
the modified (current) rootfs on the sd card


there is also some work left to improve all scripts .. sometimes it fails to load the wifi kernel module
and linux panics because its out of memory

i did not yet produce a flashable version for the internal flash combined with the modifications
so you have to copy them manually ... RS232 connection is mandatory for this and for debugging

Have fun
NoOne

Re: Openwrt Backfire on Router with brcm47xx and 2MB ROM/8MB RAM (USR5461)

Hm, i did not have RS232 connection to the device and would not like to make one. It would take to much time. Is it not possible to get this working without rs232? Just make an 2mb image and when some other packages are needed, then they could be put on the sd-card/usb-stick?