Talk:X11-Basic
From OpenTom
Contents |
Bugs
Tip
If anything (such as xbasic) ever crashes try for example:
xbasic 2> error.txt
This will create a text file containing the error messages which is a damn site easier than copying the text by hand
I also had this problem of missing files, but used my common sense and installed the files from the Pico.zip I was going to say something but I thought it would have been too obvious
It makes me wonder why people who have no-clue about gnu/linux (or io redirects speciffically) Or people are unable to solve simple problems by READING error messages, why they would want to run shell apps in the first place.
--Giles Bathgate 11:37, 31 January 2008 (CET)
Thanks for the tip I see this isn't the place for trying to learn. Sorry for getting involved. I hope the other guys with XLs can be helpful. Take care.
Over & Out.
--Compy 07:18, 2 February 2008 (CET)
Nagh just having a rant. I think I was having an off day ;)
--Giles Bathgate 21:37, 2 February 2008 (CET)
Boot
Sorry if this is a noob question, but I see every time I load basic it goes into the sun & moon program. Is there a way to make it go to command line or exit the sun & moon?
Thanks
--Compy 23:18, 30 January 2008 (CET)
Nevermind, I have solved this by editing the xbasic-demo file:
#!/bin/sh # Wrapper script for X11-Basic (c) Markus Hoffmann 2008 # Change these values if you like #first do some settings like the PWD, HOME and PATH cd /mnt/sdcard export PATH=$PATH:/mnt/sdcard/bin export HOME=/mnt/sdcard/ # now start the console application ./TTconsole/TTconsole --login /mnt/sdcard/bin/xbasic /mnt/sdcard/X11-Basic/PROGRAM PATH HERE
However, still wondering best way to load from console.
--Compy 23:48, 30 January 2008 (CET)
Nevermind again, I see I can load xbasic and do it from there.
--Compy 00:10, 31 January 2008 (CET)
When I load XBasic it checks to see if those files exist. Two of the five have errors.
/etc/terminfo/terminfo: Operation not permitted
/usr/share/terminfo/terminfo: Operation not permitted --Compy 00:49, 31 January 2008 (CET)
Floating point exceptions
The compiler options should be -msoft-load. The problem is that you need the library for math emulation and have to compile all other libraries (including libgcc.a) with this options. (look at http://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html#ARM-Options)
A more appropriate solution would be to compile math emulation in the kernel (for OpenTom).
-- Richard77 11:00, 12 January 2008 (CET)
Yes, this is the problem. What a pitty. Is it possible to use both versions of libgcc.a in parallel? Can one get this file from somewhere, so that one do not need to recompile it? --Bello 12:11, 12 January 2008 (CET)
Setting up a cross compiling enviroment is not a trivial task. Gentoo Linux have some semiautomated facility to do this. I'm afraid that you'll need two copies of all system libraries in TomTom if you want to run both kind of programs (compiled w/ and w/o -msoft-load), and a way to tell each program which dll to load. I think best way is to use static compiled programs (with -msoft-load) for programs meant to be run on original Tomtom kernel, and to use kernels with math emulation enabled on Opentom. Is it possible to substitute the kernel on the original tomtom software (while using the original navigation program)? Is math emulation enabled on Opentom?
--Richard77 09:42, 14 January 2008 (CET)
Well, but what if one wants to develop software for the standard TomTom kernel? Not everybody using a TomTom (as a navigation system) likes to replace the kernel. (just to enable some more or less useful little tools). --Bello 10:38, 14 January 2008 (CET)
Compile executables as static. You'll need a proper cross developing enviroment.--Richard77 13:09, 14 January 2008 (CET)
I think that I'll will try without TomTom arm-linux-3.3.3 development environment, and follow this guide (I'm already on Gentoo Linux) http://www.gentoo.org/proj/en/base/embedded/handbook/index.xml
--Richard77 18:50, 14 January 2008 (CET)
Update. Following the Gentoo guide I was able (with minor modification to Makefile) to compile hello world and more important TTConsole 1.07 without using Tomtom build system, but one based on gcc 4.1.2 with softfloat enabled. I copied it in my Tomtom ONE (4N00.004.2) and it runs. Not done extensive testing (any suggestion?). Next step xbasic (which sources?) Any other package that needs fp?
--Richard77 22:04, 16 January 2008 (CET)
X11-Basic needs floats, but you have to compile it with the NOGRAPHICS option. I am currently working on a modification with framebuffer-graphics. Many other packages need float-support. e.g. the mplayer, ogg123, bsdgames, etc. With X11-Basic, by the way, on could open the programming possibility also to non-unix experts, and many people, which are users so far, can program little tools. Thats why I like to have it. --Bello 12:25, 17 January 2008 (CET)
I've some problems with configure/Makefile in compiling x11-basic (I know too little about those tools) :( I've successfully compiled bc (command line calculator) which I hope/suppose uses floating point math. I've tried mpg321 and mplayer, but they fails because of not portable assembly code (not for arm). --Richard77 09:52, 24 January 2008 (CET)

