Quote:
Originally Posted by donB006
Looking at the file listing I see the Kindle1 only has the usbserial.ko kernel module. I wonder if that is only for the wan. I sure wouldn't want to work on a hardwired serial console for free. ... New idea just now: I did see the Amazon update file version 30? has the full rootfs.img available. You could edit that file when loop mounted and then reflash the entire OS all at once. No more hope at this time. Sorry.
|
I can already run scripts. Reflashing would only be useful if I could add some working binaries, but then of course, I can do that with my install script.
The only partial solution I have is to export USB mass storage and then ALSO remount the filesystem for my install script, then do a "shared file terminal" (which I have already developed and tested using a windows host and linux VM with shared files). The basic idea is for the K1 to tail follow INFILE (appended to by the PC) and to append shell output to OUTFILE (tail followed by the PC). To bypass I/O buffering problems (no apps on the K1 to defeat piped STDIO buffering), I pipe tailed INFILE to "
while read line, do $line; done >> OUTFILE" (typed from memory, so beware); I also echo the input command and a prompt inside that loop. It works fine for non-interactive terminal stuff, but I am hopelessly addicted to 'nano" in my kindles, and that does not work so while still line-buffering I/O... And I am a bit afraid that sharing a raw device on both sides of the USB will cause file system corruption, with script STDOUT appending. If I could compile apps, I could write to fixed size preallocated mapped files, so file system corruption should not be a possibility. But for that, I need to be able to compile code I can run in the K1... So compiling is still my bottleneck of infinite resistance (i.e. a brick wall with impenetrable pores).
I want to AT LEAST get a working tcc compiler that will run in my K1, but first a working "hello" would make me ecstatic at this juncture.
EDIT: I just did a "history" command, and copied my accurate command line that I tested (similar to what I posted above):tail -f in|while read line;do echo "$line";$line 2>&1;echo; echo -n "#> ";done>out
I had two CYGWIN windows open on the host side. In the small window (two lines tall) I typed commands (executed on the target when I pressed ENTER):cat >> in
In the other larger window, which displayed output from the target:tail -f out
It worked fine for simple non-interactive stuff, but a serial port connection would be much better (and eventually usbnet).