Boot router from usb flash drive

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 ... 14, 15, 16, 17  Next
Author Message
sebtx
DD-WRT User


Joined: 04 May 2009
Posts: 53

PostPosted: Tue Jan 12, 2010 14:42    Post subject: Reply with quote
Hello :)

I have tested dd-wrt mega booting on usb key on my print server Edimax PS-1208MFg. This device works out of the box.


http://www.edimax.com/en/produce_detail.php?pd_id=306&pl1_id=7&pl2_id=33

SoC: Broadcom BCM5354 kfbg rev3 (BCM947xx based)
Flash: MX29LV160CBTC (2MB)
Ram: 32MB RAM
USB 2.0 Host port.

Now I have to put debian mips rootfs on this usb key like real laptop, and vpn server.
Sponsor
SiliconWarrior
DD-WRT User


Joined: 19 Nov 2009
Posts: 63

PostPosted: Thu Jan 14, 2010 14:39    Post subject: Reply with quote
autobot wrote:
Are you installing using fraters optware scripts or are you just installing packages, either way I would think you would be getting output.

I do all the mounting manually, I just stream movies with ushare so I really don't need any automated stuff. But you can save a startup script from the webif (use a "sleep 10" at the start of the script), not sure about a shutdown script.


Well, I finally got Optware installed (with Frater's script). I had to disable Twonky because it's just too much for this router to handle (it gradually uses more and more CPU while causing a lot of disk thrashing until the router just stops responding).

I ended up using an old laptop hard drive in an external enclosure and found a powered hub that works with this setup (required because enclosure is the type that takes power from two USB ports rather than having its own power supply). I also "downgraded" the version I'm booting to on the drive to be the mini-usb-ftp build.

Samba is working, but the throughput is very low (about 400KB/s) which isn't enough to work as a video file share as I wanted. It may work better with smaller files. The router is supposed to support USB 2.0, but I'm wondering whether it's the USB interface or the processor that's the bottleneck. The USB port was designed to be used for a printer, not NAS so it might not support higher speed transfers.
sebtx
DD-WRT User


Joined: 04 May 2009
Posts: 53

PostPosted: Fri Jan 15, 2010 8:07    Post subject: Reply with quote
Hello,

After configuring the dd-wrt mega on my usb flashdrive, I have used debootstrap on my laptop to get debian mips rootfs. After uploading to the usb key, I tried to chroot...

Code:
==========================================================

 ____  ___    __        ______ _____         ____  _  _
 | _ \| _ \   \ \      / /  _ \_   _| __   _|___ \| || |
 || | || ||____\ \ /\ / /| |_) || |   \ \ / / __) | || |_
 ||_| ||_||_____\ V  V / |  _ < | |    \ V / / __/|__   _|
 |___/|___/      \_/\_/  |_| \_\|_|     \_/ |_____|  |_|

                       DD-WRT v24-sp2
                   http://www.dd-wrt.com

==========================================================


BusyBox v1.13.1 (2008-12-17 10:12:57 CET) built-in shell (ash)
Enter 'help' for a list of built-in commands.

root@DD-WRT:~# cd /perso
root@DD-WRT:/perso# ls
bin            etc            proc           selinux        var
boot           home           root           sys
debootstrap    lib            rootfs.tar.gz  tmp
dev            mnt            sbin           usr
root@DD-WRT:/perso# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                 1.1M      1.1M         0 100% /mnt
/dev/scsi/host0/bus0/target0/lun0/part1
                          3.7G    228.9M      3.3G   6% /
root@DD-WRT:/perso# chroot .
FATAL: kernel too old
root@DD-WRT:/perso#


I will try to flash and boot custom 2.6 kernel and to boot directly on my usb key...
zerx
DD-WRT Novice


Joined: 13 Nov 2009
Posts: 32

PostPosted: Wed Jan 20, 2010 10:03    Post subject: Reply with quote
http://www.right.com.cn/forum/viewthread.php?tid=32048&extra=page%3D2


As recommend by this article: 10kR and 0.01uf should be placed on r73 and c134 for usb2.0 to function properly.
autobot
DD-WRT Guru


Joined: 07 May 2009
Posts: 1596

PostPosted: Wed Jan 20, 2010 19:06    Post subject: Reply with quote
zerx wrote:
http://www.right.com.cn/forum/viewthread.php?tid=32048&extra=page%3D2


As recommend by this article: 10kR and 0.01uf should be placed on r73 and c134 for usb2.0 to function properly.


Do you have some pictures, I can't get a handle on that thread you posted. All Chinese to English web translation sucks and I can't get a full accurate text.

_________________
Eko Builds

BrainSlayer Builds

DD-WRT Changelog RSS Feed
zerx
DD-WRT Novice


Joined: 13 Nov 2009
Posts: 32

PostPosted: Thu Jan 21, 2010 0:31    Post subject: Reply with quote
well, basically this resistor is the Rref required for usb2.0

and, according to the author of this article: he has used a heat blower to remove BCM5354 and discover the trace of Rref on the 520gc/520gu broad

I know it is very odd that ASUS did not put this resistor on the broad, but many people clam that usb2.0 is not working on 520gc/520gu

this person had follow the mod and got 2.2Mbytes/s of flash drive writing speed(beyond the usb1.1 rate)
http://www.right.com.cn/forum/viewthread.php?tid=32544&extra=page%3D5



DSC04202.JPG
 Description:
 Filesize:  45.4 KB
 Viewed:  28292 Time(s)

DSC04202.JPG


autobot
DD-WRT Guru


Joined: 07 May 2009
Posts: 1596

PostPosted: Thu Jan 21, 2010 2:05    Post subject: Reply with quote
@zerx

Thanks for the information, I don't have an Asus but for those that do this is good stuff.

I wonder if this is why my USR5461 can't achieve USB 2.0 speeds or even allow the ehci-hcd module to load. I'm stuck with ohci.

_________________
Eko Builds

BrainSlayer Builds

DD-WRT Changelog RSS Feed
ScApi
DD-WRT Novice


Joined: 03 Dec 2009
Posts: 4

PostPosted: Sun Jan 24, 2010 9:19    Post subject: Reply with quote
Anyone know if there is JTAG interface on some of the test points on PCB ?

I would like to replace 29LV 2Mb flash chip to 4Mb but without serial low voltage flash programmer it will be a little tricky to flash CFE in to it.
swj123
DD-WRT Novice


Joined: 27 Jan 2010
Posts: 9

PostPosted: Wed Jan 27, 2010 17:17    Post subject: Reply with quote
Hello all, this is my first post here. I bought a Asus WL-520GC and did the USB mod. I loaded dd-wrt located here hxxp://www.3iii.dk/linux/ddwrt-micro-usb.htm
I have a 500gb drive plugged into the usb port I added the files (mega rootfs) in ext2 to boot and going to use it as a NAS. And added a fat32 partition for the nas. It boots up fine on the usb.
My question..... What settings do I use for the USB menu in the router???
SiliconWarrior
DD-WRT User


Joined: 19 Nov 2009
Posts: 63

PostPosted: Wed Jan 27, 2010 18:08    Post subject: Reply with quote
I just left the USB disabled in the web UI and I use a startup script to mount the drive.

Some of the earlier posts in this thread indicated that trying to enable USB in the web UI when booting from a USB drive causes problems.
autobot
DD-WRT Guru


Joined: 07 May 2009
Posts: 1596

PostPosted: Wed Jan 27, 2010 18:09    Post subject: Reply with quote
ScApi wrote:
Anyone know if there is JTAG interface on some of the test points on PCB ?

I would like to replace 29LV 2Mb flash chip to 4Mb but without serial low voltage flash programmer it will be a little tricky to flash CFE in to it.


Which router? If it's a USR5461 then it only has serial...no jtag.

_________________
Eko Builds

BrainSlayer Builds

DD-WRT Changelog RSS Feed
autobot
DD-WRT Guru


Joined: 07 May 2009
Posts: 1596

PostPosted: Wed Jan 27, 2010 18:11    Post subject: Reply with quote
SiliconWarrior wrote:
I just left the USB disabled in the web UI and I use a startup script to mount the drive.

Some of the earlier posts in this thread indicated that trying to enable USB in the web UI when booting from a USB drive causes problems.


This is the best way.

_________________
Eko Builds

BrainSlayer Builds

DD-WRT Changelog RSS Feed
swj123
DD-WRT Novice


Joined: 27 Jan 2010
Posts: 9

PostPosted: Wed Jan 27, 2010 19:26    Post subject: Reply with quote
The router is a WL-520 GC.
So under NAS should I keep ProFTPD disabled?

And in USB enable Core USB support??
SiliconWarrior
DD-WRT User


Joined: 19 Nov 2009
Posts: 63

PostPosted: Wed Jan 27, 2010 20:11    Post subject: Reply with quote
swj123 wrote:
The router is a WL-520 GC.
So under NAS should I keep ProFTPD disabled?

And in USB enable Core USB support??


If you're using the method from the beginning of this thread to boot from a USB drive, then the init script enables USB support, so keep Core USB support disabled in the web UI.

I don't know if ProFTPD will work with this or not since I've never used it.
swj123
DD-WRT Novice


Joined: 27 Jan 2010
Posts: 9

PostPosted: Wed Jan 27, 2010 20:35    Post subject: Reply with quote
Yes I am using the usb drive to boot. Kind of new at the nas thing. Not sure how to access my fat32 drive from the network. I have a 500gb drive with ext2 to boot and fat32 for storage. Thanks
Goto page Previous  1, 2, 3 ... 14, 15, 16, 17  Next Display posts from previous:    Page 15 of 17
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