10-27-2010 07:41 PM
wig_out,
Thanks. As I said, this is not my fortay, but I was aware that squashfs wasn't writable & there was no way to access the startup. I mainly was just trying to make anyone, such as yourself, who was better at this then myself, aware that there was a writable directory if it wasn't already know.
I appreciate the link to the playonhd site, I gave it a glance & try to look at it more when I have the time. As for optware, the only reason that I did it was just to see if it could be done, once again this is something that I don't know a lot about, I'm really just trying to learn as I go, without breaking something, but I do appreciate that your explaination.
11-02-2010 03:03 AM
Thank you daemontsai for "accidentally" allowing non password login. You're my hero
.
Tinwable, that can be done. I can't pack a working firmware image for version 2.2 but since telnet login is possible, I can write a script that grab all the required components for a working optware system and hopefully bring all the features I added to 1.45 to 2.2.
Better get working now!
11-02-2010 03:43 AM
playdude,
Glad to see you back. I hope that it's possible to get those features back, that would be great. If you get something put together let me know and I'll try to get it up and running on my FAT+.
Don't you just love those little "accidents"! ![]()
11-02-2010 10:05 AM
playdude wrote:Thank you daemontsai for "accidentally" allowing non password login. You're my hero
.
Tinwable, that can be done. I can't pack a working firmware image for version 2.2 but since telnet login is possible, I can write a script that grab all the required components for a working optware system and hopefully bring all the features I added to 1.45 to 2.2.
Better get working now!
Good to see you back, playdude! and yes, a big thanks to that person too ![]()
11-03-2010 09:47 AM
intersting reference material if anyone wants to compare devices
11-11-2010 02:14 PM
I am in the process of writing and testing a telnet session with an expect script.. I'll post details soon.
11-11-2010 04:32 PM - edited 11-11-2010 04:37 PM
Run this from any *nix machine by saving the following into a file (we'll call it fatty in this post):
11-11-2010 05:37 PM
I was thinking of doing somting like that but with windows scripting.
Ie, make a small program that just has a list of common commands and let people send them at certain timeslike if it reboots..etc.
I found this script as a sample and use it for dmesg when it boots for testing.
this was from another device actually but still works
echo off
echo Set objShell = WScript.CreateObject("WScript.Shell") > asusrescue.vbs
echo Set objExecObject = objShell.Exec("cmd /c ping -t -w 1 192.168.1.33") >> asusrescue.vbs
echo Wscript.Echo "Now, start your O!Play..." >> asusrescue.vbs
echo Do While Not objExecObject.StdOut.AtEndOfStream >> asusrescue.vbs
echo strText = objExecObject.StdOut.ReadLine() >> asusrescue.vbs
echo Wscript.Echo strText >> asusrescue.vbs
echo If Instr(strText, "Reply") > 0 Then >> asusrescue.vbs
echo Exit Do >> asusrescue.vbs
echo End If >> asusrescue.vbs
echo Loop >> asusrescue.vbs
echo objShell.Run("telnet 192.168.1.33") >> asusrescue.vbs
echo Do Until Success = True >> asusrescue.vbs
echo Success = objShell.AppActivate("telnet") >> asusrescue.vbs
echo Loop >> asusrescue.vbs
echo Wscript.Sleep 300 >> asusrescue.vbs
echo Success = objShell.AppActivate("telnet") >> asusrescue.vbs
echo objShell.SendKeys "root" >> asusrescue.vbs
echo objShell.SendKeys "{ENTER}" >> asusrescue.vbs
echo objShell.SendKeys "dmesg" >> asusrescue.vbs
echo objShell.SendKeys "{ENTER}" >> asusrescue.vbs
echo Wscript.Echo "Done... You can close this window." >> asusrescue.vbs
rem echo Wscript.Quit >> asusrescue.vbs
CALL CScript asusrescue.vbs
del asusrescue.vbs
Perhaps it would be good to start collecting command lists for various functions or cool things that people can do ![]()
11-11-2010 11:28 PM
That vbscript seems interesting... I could definitely use its idea for listening to a ping packet to monitor if the device has been restarted--and then remount the custom root directory structure when triggered.
11-12-2010 04:28 AM - edited 11-12-2010 07:15 AM
I've been busy with work lately and got some time yesterday/today to mess around. Glad to see that someone is messing around with Expect/TCL, since it allows for accurate telnet scripting. Ping would be useful but unnecessary in this case because you can just throw a CR or include another expect command to check for a hot connection.
Actually, the easiest solution for writing your own custom firmware might be to write an expect script that kills all proccesses, put a custom image onto a USB drive, erase the squashfs partition, then write the custom image back to flash. It could probably work similar to this process for OpenWRT: http://www.cs.cmu.edu/~ecc/dockstar-howto.html
©2012 Seagate Technology LLC