Serial port to acces the shell?

Post new topic   Reply to topic    DD-WRT Forum Index -> Hardware DIY / Hardware Mods
Author Message
tijeff
DD-WRT Novice


Joined: 21 Sep 2009
Posts: 7

PostPosted: Tue Jan 03, 2012 18:03    Post subject: Serial port to acces the shell? Reply with quote
I've add a serial port to my Linksys WRT54Gv8 router
DD-WRT v24-sp2 (10/10/09) micro - build 13064

Pinout :
VCC 1 o
TX 2 o
RX 3 o
N/C 4 o
GND 5 o
http://infodepot.wikia.com/wiki/Linksys_WRT54G_v8.0


I sucessfuly connected to it at 115200 N81 via voltage converter and hyperterminal.

I can see it boot:
Quote:

CFE version 1.0.37 for BCM947XX (32bit,SP,LE)
Build Date: Fri Nov 23 11:34:59 EST 2007 (tornado@dd-wrt.com)
Copyright (C) 2000,2001,2002,2003 Broadcom Corporation.

Initializing Arena
Initializing Devices.
Boot partition size = 262144(0x40000)
et0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 4.150.10.5
CPU type 0x29029: 240MHz
Total memory: 8192 KBytes

Total memory used by CFE: 0x80700000 - 0x807977D0 (620496)
Initialized Data: 0x8072E860 - 0x80730FB0 (10064)
BSS Area: 0x80730FB0 - 0x807317D0 (2080)
Local Heap: 0x807317D0 - 0x807957D0 (409600)
Stack Area: 0x807957D0 - 0x807977D0 (8192)
Text (code) segment: 0x80700000 - 0x8072E860 (190560)
Boot area (physical): 0x006BF000 - 0x006FF000
Relocation Factor: I:00000000 - D:00000000

Device eth0: hwaddr 00-1C-10-BC-32-A8, ipaddr 192.168.1.1, mask 255.255.255.0
gateway not set, nameserver not set
Loader:raw Filesys:tftp Dev:eth0 File:: Options:(null)
Loading: Failed.
Could not load :: Timeout occured
Loader:raw Filesys:raw Dev:flash0.os File: Options:(null)
Loading: .. 3856 bytes read
Entry at 0x80001000
Closing network.
Starting program at 0x80001000


But now, I seen many people control stuff with there router, but can we do the opposite?

Can I use this port to issue shell command to my router ? The same way I would in telnet?

I've shearch a bit on this and didn't found anything.

Is this even possible?
Sponsor
gobbledigook
DD-WRT Guru


Joined: 06 Apr 2009
Posts: 727

PostPosted: Tue Jan 10, 2012 15:09    Post subject: Reply with quote
ctrl+c

to break the output and give you a prompt, you can send commands same as in busybox but i dunno about using the serial as an 'out'

_________________
Please search the forum and dd-wrt wiki before posting, you may be surprised Wink
useful links:
Optware the right way
list of optware packages
broadcom announcements, peacock and recommended builds
barryware
DD-WRT Guru


Joined: 26 Jan 2008
Posts: 13049
Location: Behind The Reset Button

PostPosted: Wed Jan 11, 2012 13:54    Post subject: Reply with quote
ctrl+c will put you at the cfe prompt.. just hit the enter key a couple of times after it boots and you will be at the busybox prompt.

hit the tab key a couple of times and a list of available commands appears.

_________________
[Moderator Deleted] Shocked
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Hardware DIY / Hardware Mods 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 cannot attach files in this forum
You cannot download files in this forum