FON Boards Forum Index FON Boards
The Fonero meeting point
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Gpl heartbeat script for non official firmware
Goto page Previous  1, 2, 3 ... 11, 12, 13
 
Post new topic   Reply to topic    FON Boards Forum Index -> Help / Installation of FON Software
View previous topic :: View next topic  
Author Message
furk
Fonero B


Joined: 09 Aug 2006
Posts: 54

PostPosted: Fri Sep 29, 2006 13:55    Post subject: Reply with quote

i'm trying gulp's custom firmware. A question. I see commands are define all togheter in one executable busybox but for example if i try ping i get nothing. If i execute just ping then nothing happens. If i write ping www.google.com then nothing happens too. What's wrong?

More over i've no trace of thinclient running in logs. I'm watching them with wallwatcher but nothing is passing. May be that if router isn't connected properly to internet for some issue than thinclient won't run at all?
Back to top
View user's profile Send private message
Mashiach
Fonero


Joined: 29 Sep 2006
Posts: 7
Location: Milan Italy

PostPosted: Fri Sep 29, 2006 15:29    Post subject: upgraded to gulp firmware cannot ping 192.168.10.1 Reply with quote

Hi i just upgraded to gulp firmware cannot ping 192.168.10.1

here is the message i got when upgrading:
Firmware Upgrade

kill: Could not kill pid '776': No such process
Unlocking linux ...
Erasing linux ...
Writing from /tmp/firmware.bin to linux ...
done.

what should i do know?

is there a diffrent ip i should try?

the leds on the router are working it means anything?
_________________
Lets make the world better! Togheter!
www.WorldPerfect.org
Back to top
View user's profile Send private message Visit poster's website
gulp
Fonero


Joined: 23 Sep 2006
Posts: 8
Location: Italy

PostPosted: Fri Sep 29, 2006 15:37    Post subject: Reply with quote

Sorry man...
i've done a bad upload, the firmware was without fon heartbeat.... my mistake.

I've now uploaded the right firmware with heartbeat enabled.
Try to redownload and see if all is ok now.

Custom_Firmware_v24.rar
Back to top
View user's profile Send private message Visit poster's website
Mashiach
Fonero


Joined: 29 Sep 2006
Posts: 7
Location: Milan Italy

PostPosted: Fri Sep 29, 2006 15:39    Post subject: how can i reflash if cannot ping? Reply with quote

if you could give basic explanation as i know nothing about telent and ssh so with no web interface what do i do?
ps router wrt54gl
thanks a lot
_________________
Lets make the world better! Togheter!
www.WorldPerfect.org
Back to top
View user's profile Send private message Visit poster's website
gulp
Fonero


Joined: 23 Sep 2006
Posts: 8
Location: Italy

PostPosted: Fri Sep 29, 2006 15:54    Post subject: Re: how can i reflash if cannot ping? Reply with quote

Mashiach wrote:
if you could give basic explanation as i know nothing about telent and ssh so with no web interface what do i do?
ps router wrt54gl
thanks a lot


The default Ip after a firmware upgrade is 192.168.1.1

put your pc on the same range
es:
pc ip 192.168.1.2
subnet 255.255.255.0
then enter in the web interface (http://192.168.1.1)
username(default)= root
password(default)= admin
and setup your router.

If you want to access via shh, download a client... "putty" for example and then connect to router's ip (if you changed username&password, to access via ssh use: username = root and password = yourpassword)
Back to top
View user's profile Send private message Visit poster's website
furk
Fonero B


Joined: 09 Aug 2006
Posts: 54

PostPosted: Fri Sep 29, 2006 16:39    Post subject: Reply with quote

mmmmm Embarassed still no trace of thinclient...is the right file? lol... Very Happy

/tmp # thinclient check
Something is wrong, /tmp/.thinclient.sh does not exist!

empty cron too.

And this is the ps

1 root 388 S /sbin/init noinitrd
2 root SW [keventd]
3 root RWN [ksoftirqd_CPU0]
4 root SW [kswapd]
5 root SW [bdflush]
6 root SW [kupdated]
11 root SW [mtdblockd]
62 root 300 S resetbutton
93 root 892 S httpd
98 root 368 S nas -P /tmp/nas.wl0lan.pid -H 34954 -l br0 -i eth1 -A
102 root 300 S /sbin/wland
154 root 464 S dropbear -b /tmp/loginprompt -r /tmp/root/.ssh/ssh_hos
167 root 252 S udhcpd /tmp/udhcpd.conf
187 root 352 S process_monitor
230 root 276 S /usr/sbin/cron
330 root 432 S /sbin/syslogd -R 192.168.10.150
332 root 404 S /sbin/klogd
396 root 728 R dropbear -b /tmp/loginprompt -r /tmp/root/.ssh/ssh_hos
409 root 584 S -sh
805 root 404 R ps

Something i've evere wondered why is...how is dropbear is running 2 times? May be because i'm logged once with web interface and once with ssh?
Back to top
View user's profile Send private message
dozzer
Fonero Pub A


Joined: 27 Jun 2006
Posts: 152

PostPosted: Fri Sep 29, 2006 17:09    Post subject: Reply with quote

I found that I had to do the following (courtesy of Freddy *thanks*)

Code:
FON Heartbeat script for custom firmwares

Make sure that JFFS2 and Cron is enabled
Download "fonkey" and "thinclient" to /jffs/
Change chmod of "thinclient" to 755
Add this line to your startup script and reboot the router: /jffs/thinclient start 2>&1 | logger


Run this on the router... from the JFFS folder..
Code:
/jffs # wget http://fon.freddy.eu.org/heartbeat/fonkey
/jffs # wget http://fon.freddy.eu.org/heartbeat/thinclient


Using syslog I can see the thinclient working.. dunno if it's working correctly - but it's working...

Here is some of the log:


Code:
09-29-2006   17:06:48   User.Notice   192.168.1.1   root: Something is different in /tmp/.thinclient.sh:
09-29-2006   17:06:50   Syslog.Info   192.168.1.1   syslogd started: BusyBox v1.2.1
09-29-2006   17:06:49   User.Info   192.168.1.1   : /etc/init.d/rcS: /etc/init.d/rcS: 4: /etc/init.d/S*: not found
09-29-2006   17:06:49   User.Notice   192.168.1.1   root: exit
09-29-2006   17:06:49   User.Notice   192.168.1.1   root: rm -f /tmp/.thinclient.sh
09-29-2006   17:06:49   User.Notice   192.168.1.1   root: # end # set bandwidth
09-29-2006   17:06:49   User.Notice   192.168.1.1   root: fi
09-29-2006   17:06:49   User.Notice   192.168.1.1   root: ^Irm /etc/config/qos.new
09-29-2006   17:06:49   User.Notice   192.168.1.1   root: else
09-29-2006   17:06:49   User.Notice   192.168.1.1   root: ^Iqos-start
09-29-2006   17:06:49   User.Notice   192.168.1.1   root: ^Iqos-stop
09-29-2006   17:06:49   User.Notice   192.168.1.1   root: ^Imv /etc/config/qos.new /etc/config/qos
09-29-2006   17:06:49   User.Notice   192.168.1.1   root: if [ $? -eq 0 ]; then
09-29-2006   17:06:49   User.Notice   192.168.1.1   root: EOF
09-29-2006   17:06:49   User.Notice   192.168.1.1   root: }
09-29-2006   17:06:49   User.Notice   192.168.1.1   root: ^Iprint update_config(cfg, updatestr)
09-29-2006   17:06:49   User.Notice   192.168.1.1   root: ^Icfg = read_file(cfgfile)
09-29-2006   17:06:49   User.Notice   192.168.1.1   root: BEGIN {
09-29-2006   17:06:49   User.Notice   192.168.1.1   root: awk -v cfgfile="/etc/config/qos" -v updatestr="hotspot.enabled=1;hotspot.upload=1024;hotspot.download=256" -f /usr/lib/webif/uci-update.awk -f - > /etc/config/qos.new <<EOF
09-29-2006   17:06:49   User.Notice   192.168.1.1   root: # begin # set bandwidth


That was me setting the bandwidth to 1meg on the FON admin page.. so I guess it works.

Thanks again Freddy for the V24 firmware... job well done!

Is this the final word on DD-WRT and running with FON ?
_________________
-----------
FON Sux!!!
-----------
Back to top
View user's profile Send private message Visit poster's website
gulp
Fonero


Joined: 23 Sep 2006
Posts: 8
Location: Italy

PostPosted: Fri Sep 29, 2006 17:15    Post subject: Reply with quote

furk wrote:

/tmp # thinclient check
Something is wrong, /tmp/.thinclient.sh does not exist!


thinclient is under /usr/sbin/thinclient (/tmp/thinclient.sh is removed after each run...i don't know why)

and this is my messages under /tmp/var/log/

for "thinclient"
and for "fon"
Code:

/ # cat /tmp/var/log/messages | grep thinclient
Sep 29 18:06:18 DD-WRT user.notice root: /tmp/.thinclient.sh is the default one, deleted
/ # cat /tmp/var/log/messages | grep fon
Sep 29 18:06:18 DD-WRT user.notice root: sent: mode='start' wlmac='xx:xx:xx:xx:xx:xx' mac='xx:xx:xx:xx:xx:xx' fonrev='3' firmware='0.6.6' chillver='1.0-1' thclver='1.0'
Back to top
View user's profile Send private message Visit poster's website
dozzer
Fonero Pub A


Joined: 27 Jun 2006
Posts: 152

PostPosted: Fri Sep 29, 2006 20:36    Post subject: Reply with quote

More or less exactly what I get... although I can never set the SSID using the fon website.
Have to do it manually. Even though I see the root commands in the thinclient responses.
_________________
-----------
FON Sux!!!
-----------
Back to top
View user's profile Send private message Visit poster's website
Mashiach
Fonero


Joined: 29 Sep 2006
Posts: 7
Location: Milan Italy

PostPosted: Sat Sep 30, 2006 20:16    Post subject: Re: how can i reflash if cannot ping? Reply with quote

Thanks a lot gulp!
Now it works like a charm!



gulp wrote:
Mashiach wrote:
if you could give basic explanation as i know nothing about telent and ssh so with no web interface what do i do?
ps router wrt54gl
thanks a lot


The default Ip after a firmware upgrade is 192.168.1.1

put your pc on the same range
es:
pc ip 192.168.1.2
subnet 255.255.255.0
then enter in the web interface (http://192.168.1.1)
username(default)= root
password(default)= admin
and setup your router.

If you want to access via shh, download a client... "putty" for example and then connect to router's ip (if you changed username&password, to access via ssh use: username = root and password = yourpassword)

_________________
Lets make the world better! Togheter!
www.WorldPerfect.org
Back to top
View user's profile Send private message Visit poster's website
Valmar
Fonero


Joined: 18 Jul 2006
Posts: 15
Location: Germany

PostPosted: Sun Oct 15, 2006 05:13    Post subject: Reply with quote

gulp wrote:
furk wrote:

/tmp # thinclient check
Something is wrong, /tmp/.thinclient.sh does not exist!


thinclient is under /usr/sbin/thinclient (/tmp/thinclient.sh is removed after each run...i don't know why)

and this is my messages under /tmp/var/log/

for "thinclient"
and for "fon"
Code:

/ # cat /tmp/var/log/messages | grep thinclient
Sep 29 18:06:18 DD-WRT user.notice root: /tmp/.thinclient.sh is the default one, deleted
/ # cat /tmp/var/log/messages | grep fon
Sep 29 18:06:18 DD-WRT user.notice root: sent: mode='start' wlmac='xx:xx:xx:xx:xx:xx' mac='xx:xx:xx:xx:xx:xx' fonrev='3' firmware='0.6.6' chillver='1.0-1' thclver='1.0'


How can I get access to tmp directory via ssh? It always says, that I dont have the permission. I am still messing around with the firmware :/
Back to top
View user's profile Send private message
Freddy
Fonero Pub A


Joined: 26 Jul 2006
Posts: 230
Location: Germany

PostPosted: Sun Oct 15, 2006 09:02    Post subject: Reply with quote

Valmar wrote:
How can I get access to tmp directory via ssh? It always says, that I dont have the permission. I am still messing around with the firmware :/


root should have access to everything, including /tmp
_________________
status: Linus
setup: Debian Router » Linksys WRT54G + La Fonera
firmware: custom (based on dd-wrt) overclocked to 216 mhz and a modified Fonera firmware
link: 3Mbit down 512 kbit/s up

My Fonera Stuff
How to add a third signal to your Fonera
Back to top
View user's profile Send private message Visit poster's website
Valmar
Fonero


Joined: 18 Jul 2006
Posts: 15
Location: Germany

PostPosted: Sun Oct 15, 2006 16:27    Post subject: Reply with quote

Well thats what I have thought too but I dont have access as root Sad
Back to top
View user's profile Send private message
Freddy
Fonero Pub A


Joined: 26 Jul 2006
Posts: 230
Location: Germany

PostPosted: Sun Oct 15, 2006 16:46    Post subject: Reply with quote

Valmar wrote:
Well thats what I have thought too but I dont have access as root Sad


ehh, what did you do?
There should be only one user, root Wink
_________________
status: Linus
setup: Debian Router » Linksys WRT54G + La Fonera
firmware: custom (based on dd-wrt) overclocked to 216 mhz and a modified Fonera firmware
link: 3Mbit down 512 kbit/s up

My Fonera Stuff
How to add a third signal to your Fonera
Back to top
View user's profile Send private message Visit poster's website
Valmar
Fonero


Joined: 18 Jul 2006
Posts: 15
Location: Germany

PostPosted: Sun Oct 15, 2006 17:17    Post subject: Reply with quote

Now its working...strange.

/tmp # thinclient check
Something is wrong, /tmp/.thinclient.sh is empty

Is there any way how I can delete the gulp firmware or is eversything overwritten if I try to flash it again because thats not the only problem I have?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    FON Boards Forum Index -> Help / Installation of FON Software All times are GMT + 1 Hour
Goto page Previous  1, 2, 3 ... 11, 12, 13
Page 13 of 13

 
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


© FON | Please observe Nettiquette | RSS XML RSS feed of the last messages posted | Powered by phpBB © 2001, 2005 phpBB Group