jadedsecurity Posted November 13, 2011 Share Posted November 13, 2011 Spent this weekend trying to get jasager installed on the om1p and up this moment am still running into watchdog issues. Thanks to leg3nd in the #backtrack-linux forums for all his help The firmware posted by digininja just doesn't take either manually or using any of the flash utilities.. I have been able to install openwrt by: Downloading http://dev.cloudtrax.com/downloads/testing/firmware/open-mesh-flash http://dev.cloudtrax.com/downloads/testing/firmware/openwrt-atheros-root.squashfs http://dev.cloudtrax.com/downloads/testing/firmware/openwrt-atheros-vmlinux.lzma http://opensimpad.org/images/b/b9/RedbootSL_01.tar.bz22 1. Setting eth0 to 192.168.0.2 netmask 255.255.255.0 2. Connecting the two into their own switch 2. open-mesh-flash 1 redbootRom.bin 3. Power on om1p and wait for the flash to complete. Once completed rinse and repeat with the openwrt firmware open-mesh-flash 1 openwrt-atheros-root.squashfs openwrt-atheros-vmlinux.lzma Once it comes back the openwrt firmware loses the 192.168.0.1 address and starts looking for DHCP on the wired interface.... So I kicked off dhcp3 eth0 on the main host ssh root@172.16.1.x lucid installed neither is gpio so the script I found for disabling watchdog http://www.dd-wrt.com/wiki/index.php/OM1P_config doesn't work obviously root@openmesh: opkg update oot@openmesh: opkg install lucid-core oot@openmesh: opkg install gpioctl Set this up as outlined on http://wiki-robin.meshroot.com/Howto/Open-Mesh_OM1P/Disable_Watchdog created /tmp/sucks.sh #!/bin/sh /usr/bin/gpioctl dirout 3 /usr/bin/gpioctl clear 3 sleep 1 /usr/bin/gpioctl set 3 crontab -l 0,4,8,12,16,20,24,28,32,36,40,44,48,52,56 * * * * /tmp/sucks.sh /etc/init.d/cron restart still reboots every 5 minutes.. also zero out passwd in /etc/httpd.conf because I couldn't find the default robin password in any documentation Quote Link to comment Share on other sites More sharing options...
leg3nd Posted November 14, 2011 Share Posted November 14, 2011 Would really appreciate any help with this, even if it is experimental or just a portion of progress. Thanks all. Quote Link to comment Share on other sites More sharing options...
Darren Kitchen Posted November 14, 2011 Share Posted November 14, 2011 What happens when you run, say, while true; do sucks.sh; done (i think that's the syntax) Might be that cron isn't working. Also might want to switch it to */3 * * * * Had similar issues with the new mark iii hardware. Will check back when I get to a real computer. Quote Link to comment Share on other sites More sharing options...
Mr-Protocol Posted November 14, 2011 Share Posted November 14, 2011 Try this: crontab -e 1-59/1 * * * * /sbin/heartbeat.sh esc then :x crontab -l ----------Heartbeat.sh----------- gpioctl dirout 3 gpioctl clear 3 sleep 0 gpioctl set 3 ----------Heartbeat.sh ----------- Quote Link to comment Share on other sites More sharing options...
Ghostshell Posted November 14, 2011 Share Posted November 14, 2011 So the code i gave you protocol worked then! Quote Link to comment Share on other sites More sharing options...
Ghostshell Posted November 14, 2011 Share Posted November 14, 2011 i spent 3 days on this and came up with the code Protocol posted, it worked for me and has worked since, use that code and it will work, but it will reboot one last time before it stays up Quote Link to comment Share on other sites More sharing options...
Mr-Protocol Posted November 14, 2011 Share Posted November 14, 2011 What happens when you run, say, while true; do sucks.sh; done (i think that's the syntax) Might be that cron isn't working. Also might want to switch it to */3 * * * * Had similar issues with the new mark iii hardware. Will check back when I get to a real computer. What is the Mark III hardware? And is the firmware available for people who want to DIY? Quote Link to comment Share on other sites More sharing options...
Ghostshell Posted November 14, 2011 Share Posted November 14, 2011 One major thing that Protocol helped me with is that after creating the heartbeat.sh and the correct crontab i didnt give heartbeat the proper chmod +x, make sure its excutable, after he helped with that minor speed bump it worked from that point on. I create the file using touch, edited with VI, then issued chmod +x (thanks to Protocol) then used crontab -e, then verified the new crontab using crontab -l Quote Link to comment Share on other sites More sharing options...
Ghostshell Posted November 14, 2011 Share Posted November 14, 2011 i messed arount with 4 scripts before i created the working 3 line heartbeat.sh and also messed with about 7 crontabs before i came up with the 1-59/1 * * * * i put the script in /sbin but i would think you could place it anywhere you would like Quote Link to comment Share on other sites More sharing options...
jadedsecurity Posted November 15, 2011 Author Share Posted November 15, 2011 Thanks all.. The script worked great... The Robin firmware is kinda shitty.. Can't get Jaseger (or Karma) working, and LuCi won't install cleanly.. Working on building my own image... Thanks for all your help.. Quote Link to comment Share on other sites More sharing options...
Ghostshell Posted November 15, 2011 Share Posted November 15, 2011 (edited) thats because it will only run on 8.09, the first version of Kamakazie and no other. Also LuCI is auto installed with OpenWRT unless you build it yourself, the package that was installed over LUCI in the Pineapple build guide was Haserl & WebIF which is more robust. Edited November 15, 2011 by Ghostshell Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.