I-Appliance BBS
The Official Source for Internet Appliance Upgrades and Mods
Amazon Honor System Click Here to Pay Learn More
BBS Main List | Sign In | Sign Up | Search | Help | Linux-Hacker.netReply to Thread | Printer |

Home / MISC Areas / Routers/Gateways
uClinux on CompUSA 4 Port Router

New MessageuClinux on CompUSA 4 Port Router (modified 0 times) greghol
Profile
Here is a post I sent to the HRI-DEVEL list. enjoy. Greg
------------------

Hello All,


I have had success in the past with using uClinux-dist-20030522 along with
some patch from various sources, uClinux mailing list, Mac Wong etc to boot
the CompUSA router with a single compressed image. (I need to document
this.) While this worked, it had issues because there is no boot loader
and the file was big. I have a ethernet based JTAG box but I had to move the
flash to another platform to burn it via JTAG. (I need to port the flash
code over) A modified (for 16 bit 29LV160 parts) jtag-0.5.1 over the
parallel port worked but it was way to slow for files of this size.

So I tried the modified bios-lt-74 from http://ucrouter.ru that Dmitriy had
modified from the original source ( http://sourceforge.net/projects/bios-lt )
many months ago with out much luck. It would error out on detecting/loading
the jffs2 file system. I tried again with newer version a few days ago with success!!
I used his uClinux-dist-20030909 patch for uClinux on Dmitriy's site. See
the output below. It takes seconds to tftp the kernel and/or the jffs2 file
system to the flash. Now its more practical to run uClinux on the 4 port
router. The only catch is you have to use a flash that is supported by
bios-lt and uClinux and be able to get bios-lt into the flash. I use an AMD
29LV160DB parts in 16 bit mode which is supported by both. I have already
modified jtag-0.5.1 for the Samsung to work with the AMD part in 16 bit
mode on the router for people that don't have a nice JTAG box. jtag-0.5.1 can
use many interfaces such as wiggler clones, byteblaster, etc. It takes about 5
min to program bios-lt and just a few minutes to tftp uClinux into it.

I hope to get this info up on my web page this weekend. Really if you
follow my instructions for the hardware and get the uClinux-dist-20030909/bios-lt
from http://ucrouter.ru and the modified jtag-0.5.1 code from my site you
have what you need.

http://pages.sbcglobal.net/greghol/routers/compusa_router.html

Greg
---------------------

Compex BIOS for SAMSUNG S3C4510B v1.20-lt74

Press Enter for Menu, Esc for Safe Mode

Initializing system .... Done
Found AM29LV160BB/DB at 0x00000000


Main Menu

1 - BIOS Setup
2 - Run Fdisk
3 - Load Image
4 - Update Image
5 - Reboot

Please Select 3

Loading Image From Disk ............... Gunzip Ok.
Done
Linux version 2.4.22-uc0 (gregh@ar...) (gcc version 2.95.3 20010315
(releas4
Processor: Samsung S3C4510B revision 6
Architecture: SNDS100
On node 0 totalpages: 4096
zone(0): 0 pages.
zone(1): 4096 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/mtdblock3
Calibrating delay loop... 49.76 BogoMIPS
Memory: 16MB = 16MB total
Memory: 15076KB available (875K code, 168K data, 40K init)
Dentry cache hash table entries: 2048 (order: 2, 16384 bytes)
Inode cache hash table entries: 1024 (order: 1, 8192 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 4096 (order: 2, 16384 bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis Communications
AB.
Samsung S3C4510 Serial driver version 0.9 (2001-12-27) with no serial
options ed
ttyS00 at 0x3ffd000 (irq = 5) is a S3C4510B
ttyS01 at 0x3ffe000 (irq = 7) is a S3C4510B
RAMDISK driver initialized: 16 RAM disks of 1024K size 1024 blocksize
Samsung S3C4510 Ethernet driver version 0.1 (2002-02-20)
<mac@os.nctu.edu.tw>
eth0: 00:40:95:36:35:34
EVM50100 flash device: 200000 at 5000000
EVM50100 flash address remaped: at 5000000
Search for id:(02 00) interleave(1) type(1)
Search for id:(02 00) interleave(1) type(1)
Search for id:(02 00) interleave(1) type(1)
Search for id:(02 00) interleave(1) type(2)
Search for id:(02 00) interleave(1) type(2)
Search for id:(02 00) interleave(1) type(2)
JEDEC: Found no EVM50100 flash device at location zero
mtd: Giving out device 0 to EVM50100 flash
EVM50100 using static partition definition
Creating 3 MTD partitions on "EVM50100 flash":
0x00000000-0x00020000 : "EVM50100 loader"
mtd: Giving out device 1 to EVM50100 loader
0x00020000-0x000c0000 : "EVM50100 kernel"
mtd: Giving out device 2 to EVM50100 kernel
0x000c0000-0x00200000 : "EVM50100 JFFS"
mtd: Giving out device 3 to EVM50100 JFFS
init_mtdchar: allocated major number 90.
init_mtdblock: allocated major number 31.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 1024 bind 1024)
mtdblock_open
ok
mtdblock: read on "EVM50100 JFFS" at 0x400, size 0x400
mtdblock_release
ok
mtdblock_open
ok
jffs2_scan_empty(): Empty block at 0x0000fffc ends at 0x00010000 (with
0xe00219y
jffs2_scan_empty(): Empty block at 0x0002fffc ends at 0x00030000 (with
0xe00219y
jffs2_scan_empty(): Empty block at 0x0004fffc ends at 0x00050000 (with
0xe00219y
jffs2_scan_empty(): Empty block at 0x0006fffc ends at 0x00070000 (with
0xe00219y
jffs2_scan_empty(): Empty block at 0x0008fffc ends at 0x00090000 (with
0xe00219y
jffs2_scan_empty(): Empty block at 0x000afffc ends at 0x000b0000 (with
0xe00219y
VFS: Mounted root (jffs2 filesystem) readonly.
Freeing init memory: 40K
Shell invoked to run /etc/rc
Command: hostname Samsung
Command: /bin/expand /etc/ramfs.img /dev/ram0
Command: mount -t proc proc /proc
Command: mount -t ext2 /dev/ram0 /var
Command: mount -n -o remount,rw /
mount: Mounting /dev/mtdblock3 on / failed: Unknown error 13
pid 13: failed 256
Command: mkdir /var/config
Command: mkdir /var/tmp
Command: mkdir /var/log
Command: mkdir /var/run
Command: mkdir /var/lock
Command: mkdir /var/empty
Command: cat /etc/motd
Welcome to
____ _ _
/ __| ||_|
_ _| | | | _ ____ _ _ _ _
| | | | | | || | _ \| | | |\ \/ /
| |_| | |__| || | | | | |_| |/ \
| ___\____|_||_|_| |_|\____|\_/\_/
| |
|_|

For further information check:
http://www.uclinux.org/

Command: ifconfig lo 127.0.0.1
Command: route add -net 127.0.0.0 netmask 255.255.255.0 lo
Command: ifconfig eth0 192.168.0.200 up
Command: route add -net 192.0.0.0 netmask 255.0.0.0 eth0
Execution Finished, Exiting

Sash command shell (version 1.1.1)
/>
/>
/> more /proc/cpuinfo
<< /proc/cpuinfo >>
Processor : Samsung S3C4510B rev 6 (v3l)
BogoMIPS : 49.76
Hardware : SNDS100
Revision : 0000
Serial : 0000000000000000
/>
/> ifconfig
eth0 Link encap:Ethernet HWaddr 00:40:95:36:35:34
inet addr:192.168.0.200 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
Interrupt:17


lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0

/> ping 192.168.0.6
PING 192.168.0.6 (192.168.0.6): 56 data bytes
64 bytes from 192.168.0.6: icmp_seq=0 ttl=64 time=10.0 ms
64 bytes from 192.168.0.6: icmp_seq=1 ttl=64 time=0.0 ms
64 bytes from 192.168.0.6: icmp_seq=2 ttl=64 time=0.0 ms

--- 192.168.0.6 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 0.0/3.3/10.0 ms
/>
/> ps
PID PORT STAT SIZE SHARED %CPU COMMAND
1 S 37K 0K 1.1 init
2 S 0K 0K 0.0 keventd
3 S 0K 0K 0.0 ksoftirqd_CPU0
4 S 0K 0K 0.0 kswapd
5 S 0K 0K 0.0 bdflush
6 S 0K 0K 0.0 kupdated
7 S 0K 0K 0.0 mtdblockd
18 S0 R 72K 0K 0.0 /bin/sh
19 S 38K 0K 0.0 /bin/inetd
/>

03-24-2004 23:14:45

New MessageRE:uClinux on CompUSA 4 Port Router (modified 0 times) Linuxguru
Profile | Email
Thanks for the tip! Is this unit a Compex? Which model exactly and how much does it cost?
03-26-2004 09:57:14

New MessageRE:uClinux on CompUSA 4 Port Router (modified 0 times) greghol
Profile
They used to sell them in CompUSA stores. At least the ones I check didnt have them anymore, YMMV. They are still orderable on the CompUSA web site for $29.95. http://www.compusa.com/products/product_info.asp?product_code=290331&pfp=SEARCH
They show the manufacture as FMI and the part number EE400-R. They still have CompUSA branded 11b router in the stores and on the web page. These are Conexant 82400 based which uClinux has been ported to. I have one that I will try to get going.

See my web page: http://pages.sbcglobal.net/greghol/routers/compusa_router.html
I hope to update and add more info to my web page this weekend.

Greg

03-28-2004 00:53:11

Reply to Thread | Printer |
All times are PSTPowered by UltraBoard v1.62



Copyright © 2000, Netmake Inc. All Rights Reserved.
See Terms and Conditions for more information.




i-opener opener laptop notebook computer help drivers dll free windows dos repair fix linux mac macintosh 2000 95 98 nt pc configure hardware software sound video netscape explorer network networking lan wan software cmos fat bios printer card mouse modem ide scsi cd rom controllers scanner tape hard drive cgi scripts source code mp3