Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 04-18-2012, 10:53 PM   #1
geekmaster
Всё гениальное просто.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 5,070
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
Arrow geekmaster's simple guide to tcc (tinycc)

UPDATE: New v1.6 adds fixes for libpthread library problems on v3.3 and v5.1.0 kindle firmware. As we discover new problems with kindle firmware (more broken loadable libraries), we will add fixes for them to new tcc package versions downloadable in this first post. [v1.6a removes include.tar.gz file that did not belong in v1.6].

I successfully built and ran a modified version of dithermatron.c (demo.c included in the install package) on my DX, K3, and K5(touch), like this:
1) download and extract kindle-tcc-1.3.tar.gz (below) to /mnt/us (USB drive)
2) install: "/mnt/us/tcc/install"
3) compile: "tccmake demo"
4) run: "./demo"
5) Watch the kindle draw square and round tubes on its eink screen.


For original dithermatron.c and other fun little kindle C programs, go here:


For the simple "monolithic" programs I usually write, this download package provides all I need. For programs that use extended library functions, you might need to link to some libraries too.

For details and other good tips about using tcc, read this (the download link on that page is dead, so that download is attached below):


History and tech notes:
Spoiler:
UPDATE: New v1.5 same as v1.3 but also includes all MISSING header files for codesourcery arm-linux-gcc cross-compiler, and all linux header files for kindle 5.0.0 gpl source code (including the eink header files used in my C demo programs). The install program also adds a symlink for the math library if it is missing (at least in firmware v3.3). The v1.4 package had problems because it replaced v1.3 header files with "broken" headers from the amazon gpl source code. This v1.5 restores the "good" headers that were in v1.3.

UPDATE: Okay... I downgraded the headers to 5.0.0 and they are "broken" too. Comparing to 5.1.0, there were only about a dozen headers that changed. In the tcc 1.3 package I only added MISSING headers from 5.0.0, keeping the codesourcery and tinycc versions. I will copy the headers from v1.3 on top of the v1.4 package and release that as v1.5. Why does amazon have to make using their gpl source code so difficult?

UPDATE: New v1.4 contains broken v5.1.0 headers (this comes as no surprise due to other v5.1.0 screwups). I will downgrade the headers to 5.0.x. Meanwhile I re-uploaded v1.3, and I included the tutorial downloads that now have a download dead link in the referenced offsite tcc tutorial page.

UPDATE: New v1.4 same as v1.3 but also includes all header files for codesourcery arm-linux-gcc cross-compiler, and all linux header files for kindle 5.1.0 gpl source code (including the eink header files used in my C demo programs). The install program also adds a symlink for the math library if it is missing (at least in firmware v3.3).

Version 1.3 update that works on the K4(mini) and K5(touch). It "bind mounts" a tcc-compatible replacement libc.so loader script while compiling with the tccmake script.

The kindle-tcc-1.6a.tar.gz file attached below contains lrizzo's tcc build downloaded from his website (after fixing his bad download URL), and the tcc include folder downloaded from the tinycc arm source repository, and the include folder from amazon gpl source code version 5.0.0. I also added install and uninstall scripts, and a "bind mount" replacement libc.so loader script that allows tcc to work on the k4 and k5. To use the replacement libc.so, just compile with the tccmake script, or copy the "bind mount" command from that script file for you own use. To make this fun and easy to test, this package also includes the demo.c program mentioned above.

NOTE: Earlier kindle models might need DIFFERENT header files (such as for framebuffer support) from an earlier version of the firmware source code. I do NOT use these in my code. I prefer to COPY individual definitions from kindle version-specific include files to my source program. Also, for incompatible version-specific libraries, I like to add "-static" to my build, so that the library code I need is included inside my compiled program executable file, making it work on all the kindle models (at the expense of a larger executable file).

Be aware that although this compiler is convenient, and great for small utility programs, more complex programs such as my dithermatron and cosmegg demos run several times faster when cross-compiled with arm-linux-gcc (from CodeSourcery) than they do with this compiler, so I like to do a final cross-build for a fast executable to include with my demo programs. But for fast development and testing directly on the kindle, this tcc compiler is GREAT! You can always recompile with cross-tools later. And even when compiled with tcc, my C demo programs are much faster than my /bin/sh demo programs.

Enjoy and learn!
Attached Files
File Type: gz tcctut1.0.tar.gz (22.8 KB, 210 views)
File Type: gz kindle-tcc-1.5.tar.gz (4.50 MB, 200 views)
File Type: gz kindle-tcc-1.6a.tar.gz (4.49 MB, 297 views)

Last edited by geekmaster; 09-30-2012 at 12:34 PM. Reason: more awesomized :D
geekmaster is offline   Reply With Quote
Old 04-18-2012, 11:10 PM   #2
jmseight
Zealot
jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'
 
Posts: 130
Karma: 10000
Join Date: Mar 2012
Device: Kindle 3G, Kindle Touch 3G, iRiver Story HD, Sony Reader
Thanks.

Would you please also provide the link to get amazon gpl 5.0.0 include folder.

Is it on the Kindle?

Thanks,
James
jmseight is offline   Reply With Quote
Old 04-18-2012, 11:25 PM   #3
geekmaster
Всё гениальное просто.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 5,070
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
Quote:
Originally Posted by jmseight View Post
Thanks.

Would you please also provide the link to get amazon gpl 5.0.0 include folder.

Is it on the Kindle?

Thanks,
James
Done. I updated the above instructions to include header files from the latest 5.0.0 gpl source code.


Last edited by geekmaster; 04-19-2012 at 12:51 PM.
geekmaster is offline   Reply With Quote
Old 04-19-2012, 12:17 AM   #4
jmseight
Zealot
jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'
 
Posts: 130
Karma: 10000
Join Date: Mar 2012
Device: Kindle 3G, Kindle Touch 3G, iRiver Story HD, Sony Reader
Thanks for the attachment.

This works great!

Now to build the VNC client...

Best Regards,
James

Last edited by jmseight; 04-19-2012 at 12:45 AM.
jmseight is offline   Reply With Quote
Old 04-19-2012, 12:33 AM   #5
geekmaster
Всё гениальное просто.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 5,070
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
Quote:
Originally Posted by jmseight View Post
Thaks for the link.

There are many files and I tried to extract the include from linux2.6.31 but the directory structure is all wrong. Would you be able to zip the headers you have and post it.

Thanks,
James
Done. I included the parent tcc folder too, and I wrote "install" and "tccmake" scripts, so it is complete. Just unzip it to your USB drive and run the install script.


Last edited by geekmaster; 04-19-2012 at 01:31 AM.
geekmaster is offline   Reply With Quote
Old 04-19-2012, 09:46 PM   #6
geekmaster
Всё гениальное просто.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 5,070
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
Version 1.1 of tcc works great on the K3, but on the K5(touch) it has a problem parsing one of the new load library scripts.
Code:
# cat /usr/lib/libc.so
/* GNU ld script
   Use the shared library, but some functions are only in
   the static library, so try that secondarily.  */
OUTPUT_FORMAT(elf32-littlearm)
GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a  AS_NEEDED ( /lib/ld-linux.so.3 ) )
Part of the problem is that although the /usr/lib/libc.so loader script included in newer kindles says to load libc_nonshared.a, that file does not actually exist on the kindle, so when you comiple with tcc on a newer kindle, it fails with this error message:
tcc: file '/usr/lib/libc_nonshared.a' not found

So, I just solved this problem by bind-mounting a stripped-down libc.so script file that tcc knows how to parse. I added the script to the /mnt/us/tcc directory, and I added the mount and umount statements to the tccmake script. It works great.

I packaged that up into a v1.3 download package, available at the first post in this thread. This new version should work on all the kindles.


Last edited by geekmaster; 04-20-2012 at 02:10 AM.
geekmaster is offline   Reply With Quote
Old 04-21-2012, 06:01 AM   #7
drauger
Enthusiast
drauger has every book they ever wanted in electronic form on their reader.drauger has every book they ever wanted in electronic form on their reader.drauger has every book they ever wanted in electronic form on their reader.drauger has every book they ever wanted in electronic form on their reader.drauger has every book they ever wanted in electronic form on their reader.drauger has every book they ever wanted in electronic form on their reader.drauger has every book they ever wanted in electronic form on their reader.drauger has every book they ever wanted in electronic form on their reader.drauger has every book they ever wanted in electronic form on their reader.drauger has every book they ever wanted in electronic form on their reader.drauger has every book they ever wanted in electronic form on their reader.
 
drauger's Avatar
 
Posts: 31
Karma: 46558
Join Date: Feb 2012
Device: Kindle4NT
Code:
# tccmake ./demo
tcc: undefined symbol '__libc_csu_fini'
tcc: undefined symbol '__libc_csu_init'
What have I missed?
drauger is offline   Reply With Quote
Old 04-21-2012, 08:54 AM   #8
geekmaster
Всё гениальное просто.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 5,070
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
Quote:
Originally Posted by drauger View Post
Code:
# tccmake ./demo
tcc: undefined symbol '__libc_csu_fini'
tcc: undefined symbol '__libc_csu_init'
What have I missed?
I tested this on my DX(2.58), K3(3.3), and K5(5.0.1). It worked on all of them. I did not try booting from diags, which may require additional support. I did not try it on my K4s (they both need "debricking" -- I guess it is time to take time to fix them, in case you did this on a K4).

To fix this, I need to reproduce your problem so that I can investigate it. I need more information about how your kindle is different from mine.

Q1) What version of firmware is installed on your kindle?

Q2) What hacks are installed on your kindle?

Q3) Does it fail when you boot from main?

Q4) Does it fail when you boot from diags?

UPDATE: According to this page:[http://www.linuxquestions.org/questi...u_fini-849247/
this is the same problem with the libc.so TEXT file that was fixed with the "bind mount" in the "tccmake" script. It is possible that the bind mount failed. Perhaps another hack already did a similar hack that is preventing tcc from working.

Here is "tccmake":
PHP Code:
#!/bin/sh
[[ -/usr/lib/libc.so ]]&& mount -o bind /mnt/us/tcc/tcc.libc.so /usr/lib/libc.so
tcc 
-I/mnt/us/tcc/include -$$$$$$$$$$1.c
[[ -/usr/lib/libc.so ]]&& umount /usr/lib/libc.so 
To see if the "bind mount" that tccmake needs is working, please send me the output from these commands:
PHP Code:
ls -al /usr/lib/libc.so
cat 
/usr/lib/libc.so
mount 
-o bind /mnt/us/tcc/tcc.libc.so /usr/lib/libc.so
mount
ls 
-al /usr/lib/libc.so
cat 
/usr/lib/libc.so
umount 
/usr/lib/libc.so 

Last edited by geekmaster; 04-21-2012 at 12:37 PM.
geekmaster is offline   Reply With Quote
Old 04-21-2012, 10:16 AM   #9
xueyou2
Connoisseur
xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.
 
Posts: 58
Karma: 9096
Join Date: Apr 2012
Device: none
Thanks for work!

Thanks for work!
Now i have a good environment to study linux on kindle everywhere and it is less
harmful to my eyes.
Linux is so great.I love it now.
xueyou2 is offline   Reply With Quote
Old 04-21-2012, 12:22 PM   #10
drauger
Enthusiast
drauger has every book they ever wanted in electronic form on their reader.drauger has every book they ever wanted in electronic form on their reader.drauger has every book they ever wanted in electronic form on their reader.drauger has every book they ever wanted in electronic form on their reader.drauger has every book they ever wanted in electronic form on their reader.drauger has every book they ever wanted in electronic form on their reader.drauger has every book they ever wanted in electronic form on their reader.drauger has every book they ever wanted in electronic form on their reader.drauger has every book they ever wanted in electronic form on their reader.drauger has every book they ever wanted in electronic form on their reader.drauger has every book they ever wanted in electronic form on their reader.
 
drauger's Avatar
 
Posts: 31
Karma: 46558
Join Date: Feb 2012
Device: Kindle4NT
Quote:
Originally Posted by geekmaster View Post
PHP Code:
ls -al /usr/lib/libc.so
cat 
/usr/lib 
I think you meant
Code:
cat /usr/lib/libc.so
ls -al /usr/lib
Anyway:
Code:
# cat /usr/lib/libc.so
GROUP ( /lib/libc.so.6 )
# mount
fsp on /usr/lib/libc.so type fuse.fsp (rw,nosuid,nodev,noatime,user_id=0,group_id=0)
drauger is offline   Reply With Quote
Old 04-21-2012, 12:35 PM   #11
geekmaster
Всё гениальное просто.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 5,070
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
Quote:
Originally Posted by drauger View Post
I think you meant
Code:
cat /usr/lib/libc.so
ls -al /usr/lib
Anyway:
Code:
# cat /usr/lib/libc.so
GROUP ( /lib/libc.so.6 )
# mount
fsp on /usr/lib/libc.so type fuse.fsp (rw,nosuid,nodev,noatime,user_id=0,group_id=0)
It looks like it mounted okay. The displayed contents are actually the mounted file in the /mnt/us/tcc directory, not the original, which you would see after you unmount it.

It would help a LOT if I could duplicate your problem on one of my kindles.

It would help if you answered my 4 questions in the earlier post. Please answer them so that I can help you.
geekmaster is offline   Reply With Quote
Old 04-21-2012, 01:21 PM   #12
drauger
Enthusiast
drauger has every book they ever wanted in electronic form on their reader.drauger has every book they ever wanted in electronic form on their reader.drauger has every book they ever wanted in electronic form on their reader.drauger has every book they ever wanted in electronic form on their reader.drauger has every book they ever wanted in electronic form on their reader.drauger has every book they ever wanted in electronic form on their reader.drauger has every book they ever wanted in electronic form on their reader.drauger has every book they ever wanted in electronic form on their reader.drauger has every book they ever wanted in electronic form on their reader.drauger has every book they ever wanted in electronic form on their reader.drauger has every book they ever wanted in electronic form on their reader.
 
drauger's Avatar
 
Posts: 31
Karma: 46558
Join Date: Feb 2012
Device: Kindle4NT
Quote:
Originally Posted by geekmaster View Post
Q1) What version of firmware is installed on your kindle?
Q2) What hacks are installed on your kindle?
Q3) Does it fail when you boot from main?
Q4) Does it fail when you boot from diags?
1) 4.0.1 (1331440003)
2) Jailbreak, Russian keyboard, Kite, Optware in loop-mounted filesystem
3) Yes, it normal boot, I launched tccmake via ssh (wifi)
4) Did not try
drauger is offline   Reply With Quote
Old 04-21-2012, 05:38 PM   #13
geekmaster
Всё гениальное просто.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 5,070
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
Quote:
Originally Posted by drauger View Post
1) 4.0.1 (1331440003)
2) Jailbreak, Russian keyboard, Kite, Optware in loop-mounted filesystem
3) Yes, it normal boot, I launched tccmake via ssh (wifi)
4) Did not try
Ahh... I did not test this on the K4 yet. Both of my K4s are bricked until I take time to deal with them. Perhaps the K4 has its libc library script in a different location, and my bind mount script will have to look there too... I will do that soon. Sorry I was not able to test the K4 and compensate for whatever it does different from the DX,DXG,K3,and K5 that I tested it on. I thought the K5 fix should work for the K4 too, but alas, no such luck.

When I fix a K4, I will figure this out and fix it.


Last edited by geekmaster; 04-21-2012 at 07:03 PM.
geekmaster is offline   Reply With Quote
Old 04-21-2012, 07:02 PM   #14
geekmaster
Всё гениальное просто.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 5,070
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
Okay, I got one K4 running. I just needed to charge the battery awhile and boot to main with MfgTool, then it saw ENABLE_DIAGS and booted back to diags, but not at the all-black diags screen they were both stuck at. Perhaps they both had dead batteries that could not completely boot to diags, but WOULD NOT CHARGE in that mode. I had to change modes with MfgTool just so they could charge.

I opened a diags SSH session on a K4 running 4.0.1 firmware. I installed tcc according to above instructions, compiled the demo, and it is drawing square and round tubes on the eink screen as I type this.

I will try again in main to see if I can duplicate your problem there. I need to install usbnet on it first...

So, my K4 4.0.1 runs tccmake just fine (in diags mode). I will test main boot mode (soon).

UPDATE: Okay, both K4s are working now. Apparently, they drain the battery completely empty then act bricked if you unplug them from USB while they are left in diags mode, and then plugging in the USB does not seem to charge them in that mode. Need MfgTool boot to main to get them where you can charge them with a wall charger... Or something like that. The key is, do not leave them in diags with USB disconnected, for any length of time -- always exit diags for power down.


Last edited by geekmaster; 04-21-2012 at 07:10 PM.
geekmaster is offline   Reply With Quote
Old 04-21-2012, 07:35 PM   #15
geekmaster
Всё гениальное просто.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 5,070
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
I am accessing my K4 from wifi now, and I was able to install tcc and compile and run demo.c -- it must be one of your installed hacks somehow interfering or something.

You have optware installed, but are you running tcc in it? Try running with optware NOT running. In optware, you can just use gcc instead of tcc.

The benefit of tcc is that you do not NEED any hacks installed. You can use it from diags SSH, or from wifi SSH on main.

If optware is not running, it should not interfere with tcc. The jailbreak is just a key file, so it should not interfere. Unless the russian keyboard messes with glibc, I do not see why it should interfere.

Regarding kite, I did not know that works on the K4 -- I thought it was for the K3. I will have to check into it. If any of your hacks could be causing tcc to fail, that is the only one that is suspicious (I need to check into it).

You have optware, so why not just use gcc there -- that is what I did early on in K4 development.
geekmaster is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Native geekmaster simple touchscreen script support hack geekmaster Kindle Developer's Corner 11 07-02-2012 11:58 AM
Very simple guide to reading newspapers on the kindle, please? :) Pismire Amazon Kindle 7 06-02-2012 12:26 AM
Free (Kindle/Nook/ChristianBook) The Invitation: A Simple Guide to the Bible arcadata Deals, Freebies, and Resources (No Self-Promotion) 4 08-22-2011 02:05 PM
Simple guide to choosing a Creative Commons license for your work Bob Russell News 0 12-26-2006 12:10 PM


All times are GMT -4. The time now is 08:21 AM.


MobileRead.com is a privately owned, operated and funded community.