├── .circleci └── config.yml ├── .gitignore ├── Makefile ├── README.md ├── applications ├── Makefile ├── patchs │ ├── Jooleem_opentom.patch │ ├── Martian-Memory_opentom.patch │ ├── OpenDUNE-0.8_opentom.patch │ ├── caanoo-12swap-v1.0_1402241302.patch │ ├── cr3.0.56-7_opentom_fltk.patch │ ├── dillo-3.0.3_opentom.patch │ ├── dosbox-0.74_config.h │ ├── dosbox-0.74_opentom_savesfilestate_sdl.patch │ ├── eggchess_oppentom.patch │ ├── fl_term_1402201933.patch │ ├── freecell_opentom.patch │ ├── gnuboy-1.0.3_opentom_sdl.patch │ ├── linapple-src_2a_1402241834.patch │ ├── nanox_tuxchess_opentom.patch │ ├── navit_opentom.patch │ ├── net-bubble-0.9.1-ezx80-0_opentom.patch │ ├── ntetris_1402241834.patch │ ├── pipepanic-0.1.3-source_opentom.patch │ ├── pixil_keyboard_1402201934.patch │ ├── scummvm-1.6.0_opentom.patch │ ├── spreadsheet1.2.2_1402241834.patch │ ├── yacheckers-1.4.0_1402241834.patch │ └── yareversi-1.0.2_opentom.patch └── src │ ├── flxplorer │ ├── Makefile │ ├── flxplorer.cxx │ └── flxplorer.mime │ ├── imgv │ ├── .dep.inc │ ├── Makefile │ ├── SDL_rotozoom.c │ ├── SDL_rotozoom.h │ ├── main.cpp │ └── sdl-imageviewer.c │ ├── nanobrick │ ├── Makefile │ ├── Premier Jeu-1.blocks │ ├── Premier Jeu.blocks │ ├── nanobrick.c │ ├── nanobrick.h │ ├── nanobrick.sh │ ├── nanobrick_editor.c │ ├── nanobrick_editor.sh │ ├── nanobrick_images.bmp │ ├── nanobrick_images.gif │ ├── nanobrick_images.png │ ├── nanobrick_images256.gif │ └── samplex2.gif │ ├── nxmenu │ ├── Makefile │ ├── icon.bmp │ ├── nxmenu.c │ └── nxmenu.cfg │ ├── nxpad_gnuboy │ ├── Makefile │ ├── gamepad.cc │ ├── installation.txt │ ├── nxpad2-pressed.gif │ ├── nxpad2-skin.txt │ ├── nxpad2.gif │ ├── nxpad2_320-pressed.gif │ ├── nxpad2_320-skin.txt │ ├── nxpad2_320.gif │ └── rescal.c │ ├── nxterminal │ ├── Makefile │ ├── actions.cpp │ ├── gterm.cpp │ ├── gterm.hpp │ ├── nxterminal.cxx │ ├── states.cpp │ ├── utils.cpp │ └── vt52_states.cpp │ ├── nxtetravex │ ├── Makefile │ └── nxtetravex.c │ ├── pixil_keyboard │ ├── Makefile │ ├── Makefile.pixil │ ├── bmptools.c │ ├── bmptools.h │ ├── buildmap.c │ ├── cli.c │ ├── cli.h │ ├── filetools.c │ ├── filetools.h │ ├── header.h │ ├── keymap.c │ ├── keymap.h │ ├── keymaps │ │ ├── bigcaps.bmp │ │ ├── bigcaps.map │ │ ├── bigctrl.bmp │ │ ├── bigctrl.map │ │ ├── bigintlc.bmp │ │ ├── bigintlc.map │ │ ├── bigintln.bmp │ │ ├── bigintln.map │ │ ├── bigintls.bmp │ │ ├── bigintls.map │ │ ├── bignorm.bmp │ │ ├── bignorm.map │ │ ├── bigshft.bmp │ │ ├── bigshft.map │ │ ├── bnum.bmp │ │ ├── bnum.map │ │ ├── comcaps.bmp │ │ ├── comcaps.map │ │ ├── comctrl.bmp │ │ ├── comctrl.map │ │ ├── comintlc.bmp │ │ ├── comintlc.map │ │ ├── comintln.bmp │ │ ├── comintln.map │ │ ├── comintls.bmp │ │ ├── comintls.map │ │ ├── comnorm.bmp │ │ ├── comnorm.map │ │ ├── comnum.bmp │ │ ├── comnum.map │ │ ├── comshft.bmp │ │ ├── comshft.map │ │ ├── midcaps.bmp │ │ ├── midcaps.map │ │ ├── midctrl.bmp │ │ ├── midctrl.map │ │ ├── midintlc.bmp │ │ ├── midintlc.map │ │ ├── midintln.bmp │ │ ├── midintln.map │ │ ├── midintls.bmp │ │ ├── midintls.map │ │ ├── midnorm.bmp │ │ ├── midnorm.map │ │ ├── midshft.bmp │ │ ├── midshft.map │ │ ├── mnum.bmp │ │ ├── mnum.map │ │ ├── smlctrl.bmp │ │ ├── smlctrl.map │ │ ├── smlnorm.bmp │ │ ├── smlnorm.map │ │ ├── smlnum.bmp │ │ ├── smlnum.map │ │ ├── smlshft.bmp │ │ ├── smlshft.map │ │ ├── snum.bmp │ │ └── snum.map │ ├── nxkeyboard.c │ ├── nxlib.h │ └── srvconn.c │ └── tools │ ├── Makefile │ ├── dogfeed.c │ ├── editor.cxx │ ├── espeakdsp.c │ ├── flchoose.cxx │ ├── flkill.cxx │ ├── flmessage.cxx │ ├── fonts.cxx │ ├── nx_bat_monitor.c │ ├── nx_bat_monitor_console.c │ ├── nxclock.c │ ├── nxlight.c │ ├── nxloadmon.c │ └── power_button.c ├── configs ├── busybox_config.arm-linux ├── busybox_config.pivot_root ├── etc_rc_file ├── etc_rc_file.minix ├── etc_rc_file.pivot_root_minix ├── etc_rc_file.switch_root.minix ├── etc_rc_file_noswap ├── glib2_config.cache_arm-linux ├── initramfs_prepend ├── install_links.txt ├── kernel_config.console_ext ├── kernel_config.console_minix ├── kernel_config.minix ├── kernel_config.no_console ├── sources.txt ├── x11.pc └── xext.pc ├── docs ├── HOWTO_enable_kyria_engine_in_ScummVM.txt ├── HOWTO_install_tomplayer.txt └── README_ext2_and_swap_config.txt ├── get_cross_env.sh ├── opentom-licence.txt ├── patchs ├── SDL-1.2.1_opentom.patch ├── SDL_image_opentom.patch ├── csrinit_lowTX.patch ├── espeak-1.48.01-source_opentom.patch ├── fltk-1.3.2_opentom_nxlib.patch ├── glib-1.2.10_pretty_function.patch ├── glib-1.2.10_ready2make_arm.patch ├── kernel_tt1114405_opentom.patch ├── microwin_git_opentom.patch ├── nxlib_git_opentom.patch └── ppp-2.4.7_opentom.patch └── src ├── initramfs_skel └── etc │ ├── busybox.conf │ ├── fstab │ ├── group │ ├── host.conf │ ├── hosts │ ├── ld.so.conf │ ├── localtime │ ├── modules │ ├── nsswitch.conf │ ├── passwd │ ├── resolv.conf │ ├── shells │ └── udhcpd.conf ├── opentom_skel ├── bin │ ├── bt_gps │ ├── bt_listen │ ├── bt_ppp_dn │ ├── bt_ppp_up │ ├── bt_serial │ ├── cr3.sh │ ├── dillo.sh │ ├── dosbox.sh │ ├── dune2.sh │ ├── force_reboot │ ├── gllog.sh │ ├── gnuboy.sh │ ├── i │ ├── l │ ├── linapple.sh │ ├── nanobrick.sh │ ├── nanobrick_new_game.sh │ ├── navit.sh │ ├── r │ ├── rc.bluetooth │ ├── rc.restartgps │ ├── rc.suspend │ ├── reboot │ ├── s │ ├── scummvm.sh │ ├── set_cpu_governor │ ├── show_cmd │ ├── start_bt │ ├── start_bt_connect2tomtom │ ├── start_bt_gps_listenner │ ├── start_bt_ppp_listenner │ ├── start_bt_sh_listenner │ ├── start_bt_shell │ ├── start_ssh │ ├── start_ttconsole │ ├── start_ttnavigator │ ├── start_usb0 │ ├── start_usb0_down │ ├── start_usb0_up │ ├── start_usb_dm │ ├── start_usbhost_mode │ ├── start_usbnet │ ├── start_usbstick │ ├── stop_bt │ ├── stop_usb │ ├── stop_usb0 │ ├── strace │ ├── suspend │ ├── tomplayer.sh │ ├── ts_calibrate.sh │ ├── usb-devices │ └── wesnoth.sh ├── etc │ ├── .shinit │ ├── dhclient-script │ ├── flxplorer.mime │ ├── gnuboy.rc │ ├── hcid.conf.template │ ├── init.d │ │ ├── S10network │ │ ├── S20dhcpd │ │ ├── S30_none │ │ ├── S40_telnetd │ │ ├── S60gps │ │ ├── S99messages │ │ ├── rcK │ │ └── rcS │ ├── init_bluetooth │ ├── network.conf │ ├── nsswitch.conf │ ├── nxmenu.cfg │ ├── profile │ ├── rc.bluetooth │ └── ts.conf ├── fonts │ ├── fonts.alias │ └── fonts.dir ├── getenv.sh ├── share │ ├── dosbox │ │ └── dotc_dosbox.conf │ ├── flreversi │ │ └── classic1.png │ ├── gnuboy │ │ └── classic.rc │ ├── linapple │ │ └── linapple.conf │ ├── navit │ │ └── maps │ │ │ └── osm_bbox_sample.xml.README │ └── tuxchess │ │ └── images │ │ └── board.gif └── start.sh ├── splash_screen ├── opentom_image.xcf ├── opentom_splash.bmp ├── opentom_splash_empty.bmp ├── opentom_splash_xl.bmp ├── opentom_splash_xl_empty.bmp └── text.xcf └── tools ├── Makefile ├── get_source.sh ├── install_shared_libs.sh ├── is_use_lib.sh └── ttimage_tools ├── Makefile ├── README.txt ├── blowfish.c ├── blowfish.h ├── md5.c ├── md5.h ├── mkttimage.c ├── ttimageextract.sh └── ttimgextract.c /.circleci/config.yml: -------------------------------------------------------------------------------- 1 | version: 2 2 | jobs: 3 | build: 4 | docker: 5 | - image: ubuntu:18.04 6 | steps: 7 | - run: 8 | command: | 9 | apt update 10 | apt install -y git build-essential libglib2.0-dev unzip gawk wget libtool fluid imagemagick pkg-config librsvg2-bin xsltproc lib32z1 chrpath cmake kmod autoconf 11 | name: Setup System 12 | - checkout 13 | - restore_cache: 14 | keys: 15 | - dl-{{ checksum "configs/sources.txt" }} 16 | - run: 17 | name: Build 18 | command: | 19 | mkdir -p target/opentom target/opentom-extra 20 | export ROOT=`pwd` 21 | source get_cross_env.sh 22 | make base 23 | cp build/ttsystem target/opentom 24 | cp -r opentom_dist target/opentom/opentom 25 | make extra 26 | cp build/ttsystem target/opentom-extra 27 | cp -r opentom_dist target/opentom-extra/opentom 28 | tar -C target -cvzf target/opentom.tar.gz opentom 29 | tar -C target -cvzf target/opentom-extra.tar.gz opentom-extra 30 | - save_cache: 31 | key: dl-{{ checksum "configs/sources.txt" }} 32 | paths: 33 | - Downloads 34 | - store_artifacts: 35 | path: logs 36 | - store_artifacts: 37 | path: applications/logs 38 | - store_artifacts: 39 | path: target/opentom.tar.gz 40 | - store_artifacts: 41 | path: target/opentom-extra.tar.gz 42 | 43 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | arm-sysroot/ 2 | build/ 3 | Downloads/ 4 | initramfs/ 5 | logs/ 6 | opentom_dist/ 7 | src/linux-s3c24xx/ 8 | -------------------------------------------------------------------------------- /applications/patchs/Martian-Memory_opentom.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navit-gps/NavitTom/dce9f8ea5c7a387c2eab46d545018c6f21bf0c6a/applications/patchs/Martian-Memory_opentom.patch -------------------------------------------------------------------------------- /applications/patchs/caanoo-12swap-v1.0_1402241302.patch: -------------------------------------------------------------------------------- 1 | diff -rupN caanoo-12swap-v1.0.original/Makefile caanoo-12swap-v1.0/Makefile 2 | --- caanoo-12swap-v1.0.original/Makefile 1970-01-01 01:00:00.000000000 +0100 3 | +++ caanoo-12swap-v1.0/Makefile 2014-02-24 12:48:24.000000000 +0100 4 | @@ -0,0 +1,15 @@ 5 | +install: ../../Downloads/caanoo-12swap-v1.0-bin.zip src/12swap 6 | + mkdir -p $(TOMDIST)/bin/12swap 7 | + cp -R game/12swap/graphics game/12swap/sounds $(TOMDIST)/bin/12swap 8 | + cp src/12swap $(TOMDIST)/bin/12swap 9 | + 10 | + 11 | + 12 | + 13 | +src/12swap: 14 | + cd src && $(CXX) $(CPPFLAGS) -o 12swap -DCAANOO *.cpp -lSDL -lSDL_ttf 15 | + 16 | +clean: 17 | + rm -f src/*.o src/12swap 18 | + 19 | + 20 | diff -rupN caanoo-12swap-v1.0.original/src/object_swap_game.cpp caanoo-12swap-v1.0/src/object_swap_game.cpp 21 | --- caanoo-12swap-v1.0.original/src/object_swap_game.cpp 2011-07-01 22:35:40.000000000 +0200 22 | +++ caanoo-12swap-v1.0/src/object_swap_game.cpp 2014-02-24 13:01:58.000000000 +0100 23 | @@ -255,15 +255,15 @@ void Swap_Game::run_game() 24 | 25 | int Swap_Game::init_sdl() 26 | { 27 | - if(SDL_Init(SDL_INIT_VIDEO|SDL_INIT_AUDIO|SDL_INIT_JOYSTICK) <0) 28 | + if(SDL_Init(SDL_INIT_VIDEO|SDL_INIT_AUDIO/* CLM|SDL_INIT_JOYSTICK*/) <0) 29 | { 30 | printf("error: could not load sdl\n"); 31 | return 0; 32 | } 33 | 34 | # ifdef CAANOO 35 | - SDL_JoystickEventState(SDL_ENABLE); 36 | - SDL_JoystickOpen(0); 37 | + /* CLM SDL_JoystickEventState(SDL_ENABLE); 38 | + SDL_JoystickOpen(0); */ 39 | 40 | this->real_screen = SDL_SetVideoMode(320,240, 16, SDL_SWSURFACE); 41 | this->main_screen = SDL_CreateRGBSurface(SDL_SWSURFACE, 42 | @@ -438,11 +438,11 @@ void Swap_Game::handle_events() 43 | switch( event.type ) 44 | { 45 | # ifdef CAANOO 46 | - case SDL_JOYBUTTONDOWN : 47 | + /* CLM case SDL_JOYBUTTONDOWN : 48 | { 49 | int button = event.jbutton.button; 50 | if (button == CAANOO_HOME) exitkey = 1; 51 | - } 52 | + } */ 53 | break; 54 | # endif 55 | case SDL_QUIT: 56 | -------------------------------------------------------------------------------- /applications/patchs/eggchess_oppentom.patch: -------------------------------------------------------------------------------- 1 | diff -rupN eggchess/eggchess.cpp eggchess_oppentom/eggchess.cpp 2 | --- eggchess/eggchess.cpp 2007-04-21 20:52:20.000000000 +0200 3 | +++ eggchess_oppentom/eggchess.cpp 2014-03-07 04:46:52.000000000 +0100 4 | @@ -34,7 +34,7 @@ 5 | #include 6 | #include 7 | 8 | -const Sint32 side=70; 9 | +const Sint32 side=50; 10 | const Sint32 xcoords[]={0,side,2*side,3*side+5}; 11 | const Sint32 ycoords[]={0,side,2*side}; 12 | 13 | @@ -63,6 +63,7 @@ void byebye(int exit_status); 14 | void change_player(void); 15 | void show_info(void); 16 | 17 | +#if 0 18 | FILE* fe; 19 | 20 | void catch_int(int sig_num) 21 | @@ -74,6 +75,7 @@ void catch_int(int sig_num) 22 | fflush(stdout); 23 | fclose(fe); 24 | } 25 | +#endif 26 | 27 | 28 | //================================================================================== 29 | @@ -84,18 +86,19 @@ int main(int argc, char *argv[]) 30 | 31 | /* Init SDL */ 32 | 33 | - if ( SDL_Init(SDL_INIT_VIDEO)) { 34 | + if ( SDL_Init(SDL_INIT_TIMER|SDL_INIT_VIDEO)) { 35 | fprintf(stderr, "Couldn't load SDL: %s\n", SDL_GetError()); 36 | fflush(stderr); 37 | return 1; 38 | } 39 | /* Clean up on exit */ 40 | atexit(SDL_Quit); 41 | - /* Set window title */ 42 | - SDL_WM_SetCaption("Egg Chess", "EggChess"); 43 | 44 | /* Initialize the display */ 45 | - screen = SDL_SetVideoMode(320, 240, 16, SDL_SWSURFACE | SDL_FULLSCREEN); 46 | + screen = SDL_SetVideoMode(210, 180, 16, SDL_SWSURFACE ); // | SDL_FULLSCREEN); 47 | + 48 | + /* Set window title */ 49 | + SDL_WM_SetCaption("Egg Chess", NULL); 50 | 51 | if ( screen == NULL ) { 52 | fprintf(stderr, "Couldn't set video mode: %s\n", SDL_GetError()); 53 | @@ -120,17 +123,17 @@ int main(int argc, char *argv[]) 54 | 55 | SDL_UpdateRect(screen, 0,0,0,0); 56 | 57 | - msg("Start the game, Player 1! Press [Camera] for info."); 58 | + msg("Start the game, Player 1!"); // Press [Camera] for info."); 59 | 60 | //Wait for an event 61 | SDL_Event event; 62 | do{ 63 | SDL_WaitEvent(&event); 64 | - if(event.type==SDL_KEYDOWN && event.key.keysym.sym==SDLK_F4) break; 65 | + if(event.type==SDL_KEYDOWN && event.key.keysym.sym==SDLK_ESCAPE) break; 66 | if(event.type==SDL_QUIT) break; 67 | if(event.type==SDL_MOUSEBUTTONDOWN) 68 | check_click(event.button.x,event.button.y); 69 | - if(event.type==SDL_KEYDOWN && event.key.keysym.sym==SDLK_F2) 70 | + if(event.type==SDL_KEYDOWN && event.key.keysym.sym==SDLK_SPACE) 71 | show_info(); 72 | }while(true); 73 | 74 | @@ -245,7 +248,7 @@ void draw_lines(void) 75 | sge_VLine(screen, xcoords[i], ycoords[0]+5, ycoords[2]+side-5, 60,60,80); 76 | } 77 | sge_VLine(screen, xcoords[3], ycoords[0]+5, ycoords[2]+side-5, 220,220,240); 78 | - sge_VLine(screen, xcoords[3] + xcoords[1], ycoords[0]+5, ycoords[2]+side-5, 220,220,240); 79 | +// sge_VLine(screen, xcoords[3] + xcoords[1], ycoords[0]+5, ycoords[2]+side-5, 220,220,240); 80 | sge_HLine(screen, xcoords[0]+5, xcoords[3]+side-5,ycoords[2]+side, 220,220,240); 81 | 82 | } 83 | @@ -366,11 +369,11 @@ void check_click(Sint32 x,Sint32 y) 84 | msg("Player 2 Wins!"); 85 | else 86 | msg("Player 1 Wins!"); 87 | - SDL_Delay(2000); 88 | + SDL_Delay(10000); 89 | sge_Update_OFF(); 90 | draw_board(); 91 | selected=-1; 92 | - msg("Start the game, Player 1! Press [Camera] for info."); 93 | + msg("Start the game, Player 1!"); // Press [Camera] for info."); 94 | player=player1; 95 | sge_Update_ON(); 96 | SDL_UpdateRect(screen, 0,0,0,0); 97 | diff -rupN eggchess/sge/Makefile.conf eggchess_oppentom/sge/Makefile.conf 98 | --- eggchess/sge/Makefile.conf 2001-09-10 10:46:49.000000000 +0200 99 | +++ eggchess_oppentom/sge/Makefile.conf 2014-03-07 04:28:56.000000000 +0100 100 | @@ -9,8 +9,8 @@ NO_CLASSES = y 101 | 102 | 103 | # Compilers (C and C++) 104 | -CC=gcc 105 | -CXX=g++ 106 | +#CC=gcc 107 | +#CXX=g++ 108 | 109 | 110 | # Where should SGE be installed? 111 | -------------------------------------------------------------------------------- /applications/patchs/fl_term_1402201933.patch: -------------------------------------------------------------------------------- 1 | diff -rupN build/fl_term.original/Makefile.i386 build/fl_term/Makefile.i386 2 | --- build/fl_term.original/Makefile.i386 1970-01-01 01:00:00.000000000 +0100 3 | +++ build/fl_term/Makefile.i386 2014-02-20 17:56:19.000000000 +0100 4 | @@ -0,0 +1,34 @@ 5 | +MYLIB = . 6 | +CFLAGS = -g -I. -Wall -Os 7 | +CXXFLAGS = -g -Wall -Os -I. 8 | + 9 | +LIB = -lNX11 -lfltk 10 | +LINKFLTK = -L/usr/local/lib -lfltk 11 | + 12 | +OBJS = term_sh.o Fl_Term.o gterm.o actions.o utils.o states.o vt52_states.o flkeys.o pseudo.o 13 | + 14 | +# flkeys.o 15 | + 16 | +all: fl_term 17 | + 18 | + 19 | +text_box: text_box.cxx 20 | + $(CXX) $(CXXFLAGS) $(LINKFLTK) $< 21 | + 22 | +fl_term: $(OBJS) 23 | + $(CXX) $(CXXFLAGS) $(OBJS) $(LINKFLTK) -o $@ 24 | + #fltk-config --post $@ 25 | + 26 | +install: fl_term 27 | + cp fl_term $(TOMDIST)/bin 28 | + 29 | +clean: 30 | + rm -f *.o fl_term text_box 31 | + 32 | +%.o: %.cpp Makefile *.hpp 33 | + $(CC) $(CFLAGS) -c $< -o $@ 34 | + 35 | +%.o: %.cxx Makefile *.h 36 | + $(CC) $(CXXFLAGS) -c $< -o $@ 37 | + 38 | +## end ## 39 | -------------------------------------------------------------------------------- /applications/patchs/freecell_opentom.patch: -------------------------------------------------------------------------------- 1 | diff -rupN src.original/CardSprite.cpp src/CardSprite.cpp 2 | --- src.original/CardSprite.cpp 2008-04-26 15:31:10.000000000 +0200 3 | +++ src/CardSprite.cpp 2014-03-02 04:34:06.000000000 +0100 4 | @@ -9,7 +9,7 @@ 5 | 6 | /** Constructor */ 7 | CCardSprite::CCardSprite() 8 | - : CGameSprite("/mnt/sdcard/catapps/freecell/cards5x7.bmp", 5, 7) 9 | + : CGameSprite("/mnt/sdcard/opentom/share/freecell/cards5x7.bmp", 5, 7) 10 | { 11 | } 12 | 13 | diff -rupN src.original/FreeCellCanvas.cpp src/FreeCellCanvas.cpp 14 | --- src.original/FreeCellCanvas.cpp 2008-04-26 15:33:10.000000000 +0200 15 | +++ src/FreeCellCanvas.cpp 2014-03-02 04:34:06.000000000 +0100 16 | @@ -15,7 +15,7 @@ CFreeCellCanvas::CFreeCellCanvas() 17 | void CFreeCellCanvas::Init() 18 | { 19 | SetTitle("FreeCell"); 20 | - m_pFontSprite = new CGameFont("/mnt/sdcard/catapps/freecell/font3x5.bmp",3,5,"0123456789:.-ABCDEFGHIJKLMNOPQRSTUVWXYZ"); 21 | + m_pFontSprite = new CGameFont("/mnt/sdcard/opentom/share/freecell/font3x5.bmp",3,5,"0123456789:.-ABCDEFGHIJKLMNOPQRSTUVWXYZ"); 22 | m_pBoard = new CFreeCellBoard(this); 23 | m_pBoard->GenerateNewGame(); 24 | } 25 | -------------------------------------------------------------------------------- /applications/patchs/gnuboy-1.0.3_opentom_sdl.patch: -------------------------------------------------------------------------------- 1 | diff -rupN gnuboy-1.0.3/sys/sdl/sdl.c gnuboy-1.0.3_opentom/sys/sdl/sdl.c 2 | --- gnuboy-1.0.3/sys/sdl/sdl.c 2008-09-09 13:53:00.000000000 +0200 3 | +++ gnuboy-1.0.3_opentom/sys/sdl/sdl.c 2014-03-06 12:19:31.000000000 +0100 4 | @@ -81,7 +81,7 @@ static void joy_init() 5 | if (SDL_InitSubSystem(SDL_INIT_JOYSTICK)) 6 | return; 7 | 8 | - joy_count = SDL_NumJoysticks(); 9 | + joy_count = 0; /* SDL_NumJoysticks(); */ 10 | 11 | if (!joy_count) 12 | return; 13 | @@ -89,7 +89,7 @@ static void joy_init() 14 | /* now try and open one. If, for some reason it fails, move on to the next one */ 15 | for (i = 0; i < joy_count; i++) 16 | { 17 | - sdl_joy = SDL_JoystickOpen(i); 18 | + sdl_joy = 0; /* SDL_JoystickOpen(i); */ 19 | if (sdl_joy) 20 | { 21 | sdl_joy_num = i; 22 | @@ -98,7 +98,7 @@ static void joy_init() 23 | } 24 | 25 | /* make sure that Joystick event polling is a go */ 26 | - SDL_JoystickEventState(SDL_ENABLE); 27 | + /* SDL_JoystickEventState(SDL_ENABLE); */ 28 | } 29 | 30 | static void overlay_init() 31 | -------------------------------------------------------------------------------- /applications/patchs/navit_opentom.patch: -------------------------------------------------------------------------------- 1 | diff --git a/navit/CMakeLists.txt b/navit/CMakeLists.txt 2 | index ca19ce41..13276770 100644 3 | --- a/navit/CMakeLists.txt 4 | +++ b/navit/CMakeLists.txt 5 | @@ -107,7 +107,7 @@ if(NOT MSVC) 6 | SET(NAVIT_LIBS ${NAVIT_LIBS} m) 7 | endif(NOT MSVC) 8 | target_link_libraries(${NAVIT_LIBNAME} ${MODULES_NAME} ${NAVIT_SUPPORT_LIBS} fib ${NAVIT_LIBS} ) 9 | -set_target_properties(${NAVIT_LIBNAME} PROPERTIES COMPILE_DEFINITIONS "MODULE=navit;LIBDIR=\"${CMAKE_INSTALL_PREFIX}/${LIB_DIR}\";PREFIX=\"${CMAKE_INSTALL_PREFIX}\"") 10 | +set_target_properties(${NAVIT_LIBNAME} PROPERTIES COMPILE_DEFINITIONS "MODULE=navit;LIBDIR=\"/mnt/sdcard/opentom/lib\";PREFIX=\"/mnt/sdcard/opentom\"") 11 | if (DEFINED NAVIT_COMPILE_FLAGS) 12 | set_target_properties(${NAVIT_LIBNAME} PROPERTIES COMPILE_FLAGS "${NAVIT_COMPILE_FLAGS}") 13 | endif() 14 | 15 | --- ./navit/xslt/tomtom.xslt.orig 2020-08-21 23:09:21.646678108 +0000 16 | +++ ./navit/xslt/tomtom.xslt 2020-08-21 23:14:14.994671983 +0000 17 | @@ -11,11 +11,12 @@ 18 | 19 | 20 | 21 | - 22 | + 23 | 24 | 25 | 26 | 27 | + 28 | 29 | 30 | 31 | @@ -27,11 +28,11 @@ 32 | -1 33 | 1 34 | 25 35 | - 36 | - 37 | + 38 | + 39 | 40 | 41 | - 42 | + 43 | 44 | 45 | 46 | @@ -46,20 +47,24 @@ 47 | 48 | 49 | Use espeak. 50 | - 51 | + 52 | 53 | 54 | 55 | 56 | 57 | + 58 | 59 | 60 | 61 | 62 | 63 | - 64 | + 65 | 66 | - 67 | + 68 | + 1 69 | + 35 70 | + 71 | 72 | 73 | 74 | -------------------------------------------------------------------------------- /applications/patchs/ntetris_1402241834.patch: -------------------------------------------------------------------------------- 1 | diff -rupN ntetris.original/Makefile ntetris/Makefile 2 | --- ntetris.original/Makefile 2014-02-19 18:43:11.000000000 +0100 3 | +++ ntetris/Makefile 2014-02-24 15:02:17.000000000 +0100 4 | @@ -3,7 +3,7 @@ APP=ntetris 5 | $(APP): $(APP).c 6 | $(CC) -o $@ $(APP).c -I$(ARM_SYSROOT)/usr/include/microwin -L$(ARM_SYSROOT)/usr/lib -lnano-X 7 | 8 | -install: 9 | +install: $(APP) 10 | cp $(APP) $(TOMDIST)/bin 11 | 12 | clean: 13 | -------------------------------------------------------------------------------- /applications/patchs/pipepanic-0.1.3-source_opentom.patch: -------------------------------------------------------------------------------- 1 | diff -rupN pipepanic-0.1.3-source.original/main.c pipepanic-0.1.3-source/main.c 2 | --- pipepanic-0.1.3-source.original/main.c 2006-05-16 22:11:29.000000000 +0200 3 | +++ pipepanic-0.1.3-source/main.c 2014-02-27 09:37:31.000000000 +0100 4 | @@ -172,8 +172,6 @@ int main(int argc, char *argv[]) { 5 | return 1; 6 | } 7 | 8 | - atexit(SDL_Quit); 9 | - 10 | #ifdef DEBUG 11 | printf("Setting video mode %ix%i\n", xres, yres); 12 | #endif 13 | @@ -184,6 +182,10 @@ int main(int argc, char *argv[]) { 14 | printf("%s: Cannot initialise screen: %s\n", __func__, SDL_GetError()); 15 | exit(1); 16 | } 17 | + 18 | + SDL_Delay(1000); 19 | + SDL_Flip( screen); 20 | + atexit(SDL_Quit); 21 | 22 | #ifdef DEBUG 23 | printf ("Loading bitmaps\n"); 24 | @@ -707,7 +709,8 @@ void draw_game(void) { 25 | } 26 | } 27 | 28 | - if (redraw != REDRAWNONE) SDL_Flip(screen); 29 | +// if (redraw != REDRAWNONE) 30 | + SDL_Flip(screen); 31 | 32 | if (fpstest) { 33 | frames++; 34 | @@ -1086,6 +1089,7 @@ void manage_user_input(void) { 35 | I've purposely made the hit area big. */ 36 | if (game_mode == GAMESHOWHELP) { 37 | if (((xres == 320 || xres == 640) && (mx >= xres - 1 * tilew) && (mx < xres) && (my >= (BOARDH - 1) * tileh) && (my < BOARDH * tileh)) || ((xres == 240 || xres == 480) && (mx >= xres - 1 * tilew) && (mx < xres) && (my >= (BOARDH - 1) * tileh + 2 * tileh) && (my < BOARDH * tileh + 2 * tileh))) { 38 | + quit = 1; // CLM 39 | manage_help_input(SDLK_RIGHT); 40 | } 41 | } 42 | diff -rupN pipepanic-0.1.3-source.original/Makefile pipepanic-0.1.3-source/Makefile 43 | --- pipepanic-0.1.3-source.original/Makefile 2006-05-16 22:11:29.000000000 +0200 44 | +++ pipepanic-0.1.3-source/Makefile 2014-02-27 09:37:56.000000000 +0100 45 | @@ -3,9 +3,9 @@ OBJECTS=main.o 46 | TARGET=pipepanic 47 | 48 | # Settings for x86. 49 | -CC=gcc 50 | +#CC=gcc 51 | CFLAGS=-O2 -Wall -pedantic `sdl-config --cflags` 52 | -LINK=gcc 53 | +LINK=$(CC) 54 | LDFLAGS= 55 | LIBS=`sdl-config --libs` 56 | 57 | -------------------------------------------------------------------------------- /applications/patchs/pixil_keyboard_1402201934.patch: -------------------------------------------------------------------------------- 1 | diff -rupN build/pixil_keyboard.original/nxkeyboard.c build/pixil_keyboard/nxkeyboard.c 2 | --- build/pixil_keyboard.original/nxkeyboard.c 2014-02-16 14:22:40.000000000 +0100 3 | +++ build/pixil_keyboard/nxkeyboard.c 2014-02-20 19:32:33.000000000 +0100 4 | @@ -136,6 +136,8 @@ invertArea(int ulx, int uly, int lrx, in 5 | 6 | // invert the pixels 7 | size = width * height; 8 | + do pixels[size--] ^= 0xffffff; while ( size >= 0); 9 | + /* 10 | count = 0; 11 | do { 12 | if (pixels[count] == 0) 13 | @@ -143,7 +145,7 @@ invertArea(int ulx, int uly, int lrx, in 14 | else 15 | pixels[count] = 0x000000; 16 | } while (++count < size); 17 | - 18 | + */ 19 | // write out the affected area 20 | GrArea(w, gc, ulx, uly, width, height, pixels, 0); 21 | 22 | -------------------------------------------------------------------------------- /applications/patchs/scummvm-1.6.0_opentom.patch: -------------------------------------------------------------------------------- 1 | diff -rupN scummvm-1.6.0.original/backends/events/sdl/sdl-events.cpp scummvm-1.6.0/backends/events/sdl/sdl-events.cpp 2 | --- scummvm-1.6.0.original/backends/events/sdl/sdl-events.cpp 2013-05-26 22:21:47.000000000 +0200 3 | +++ scummvm-1.6.0/backends/events/sdl/sdl-events.cpp 2013-11-16 08:03:43.000000000 +0100 4 | @@ -54,7 +54,7 @@ SdlEventSource::SdlEventSource() 5 | // Reset mouse state 6 | memset(&_km, 0, sizeof(_km)); 7 | 8 | - int joystick_num = ConfMan.getInt("joystick_num"); 9 | + int joystick_num = -1; /* CLM ConfMan.getInt("joystick_num"); 10 | if (joystick_num > -1) { 11 | // Initialize SDL joystick subsystem 12 | if (SDL_InitSubSystem(SDL_INIT_JOYSTICK) == -1) { 13 | @@ -67,11 +67,12 @@ SdlEventSource::SdlEventSource() 14 | _joystick = SDL_JoystickOpen(joystick_num); 15 | } 16 | } 17 | + */ 18 | } 19 | 20 | SdlEventSource::~SdlEventSource() { 21 | if (_joystick) 22 | - SDL_JoystickClose(_joystick); 23 | + ; // SDL_JoystickClose(_joystick); 24 | } 25 | 26 | int SdlEventSource::mapKey(SDLKey key, SDLMod mod, Uint16 unicode) { 27 | diff -rupN scummvm-1.6.0.original/Makefile scummvm-1.6.0/Makefile 28 | --- scummvm-1.6.0.original/Makefile 2013-05-26 22:21:47.000000000 +0200 29 | +++ scummvm-1.6.0/Makefile 2013-12-07 01:31:45.000000000 +0100 30 | @@ -60,7 +60,7 @@ endif 31 | CAT ?= cat 32 | CP ?= cp 33 | ECHO ?= printf 34 | -INSTALL ?= install 35 | +INSTALL ?= install --strip-program=arm-linux-strip 36 | MKDIR ?= mkdir -p 37 | RM ?= rm -f 38 | RM_REC ?= $(RM) -r 39 | diff -rupN scummvm-1.6.0.original/Makefile.common scummvm-1.6.0/Makefile.common 40 | --- scummvm-1.6.0.original/Makefile.common 2013-05-26 22:21:47.000000000 +0200 41 | +++ scummvm-1.6.0/Makefile.common 2013-12-07 11:44:24.000000000 +0100 42 | @@ -6,6 +6,10 @@ 43 | # The default build target: just build the scummvm executable 44 | ###################################################################### 45 | 46 | +AR=arm-linux-ar -q 47 | +AS=arm-linux-as -mfpu=softvfp 48 | +RANLIB=arm-linux-ranlib 49 | + 50 | all: $(EXECUTABLE) plugins 51 | 52 | 53 | diff -rupN scummvm-1.6.0.original/tmp_find_type_with_size.cpp scummvm-1.6.0/tmp_find_type_with_size.cpp 54 | --- scummvm-1.6.0.original/tmp_find_type_with_size.cpp 1970-01-01 01:00:00.000000000 +0100 55 | +++ scummvm-1.6.0/tmp_find_type_with_size.cpp 2013-12-19 13:13:44.000000000 +0100 56 | @@ -0,0 +1,6 @@ 57 | +typedef short ac__type_sizeof_; 58 | +int main() { 59 | + static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) == 2)]; 60 | + test_array [0] = 0; 61 | + return 0; 62 | +} 63 | -------------------------------------------------------------------------------- /applications/patchs/spreadsheet1.2.2_1402241834.patch: -------------------------------------------------------------------------------- 1 | diff -rupN spreadsheet1.2.2.original/Makefile.LINUX spreadsheet1.2.2/Makefile.LINUX 2 | --- spreadsheet1.2.2.original/Makefile.LINUX 2009-02-04 03:18:01.000000000 +0100 3 | +++ spreadsheet1.2.2/Makefile.LINUX 2014-03-04 11:03:19.000000000 +0100 4 | @@ -7,10 +7,10 @@ 5 | # UNCOMMENT FOR UTF8 BUILDS 6 | #USEUTF8=-DUSEUTF8=1 7 | 8 | -CC=g++ -g -Wall -I. -DLINUX=1 $(USEUTF8) 9 | +CC=$(CXX) -g -Wall -I. -DLINUX=1 $(USEUTF8) 10 | 11 | # DEBUGGING 12 | -CC=g++ -g -Wall -I. -DLINUX=1 $(USEUTF8) 13 | +CC=$(CXX) -g -Wall -I. -DLINUX=1 $(USEUTF8) 14 | 15 | ifdef USEUTF8 16 | UTF8LIB=-lXutf8 17 | @@ -25,8 +25,7 @@ endif 18 | # ANTIALIASED FONTS AND UTF8 (Redhat 9.0 and up) 19 | # FLTKLIBS=-L/usr/X11R6/lib -L$(FLTKDIR)/lib -lfltk -lXtst -lXft -lX11 \ 20 | # -lXext $(UTF8LIB) -lm 21 | -FLTKLIBS=-L$(FLTKDIR)/lib -lfltk \ 22 | - -L/usr/X11R6/lib -lXtst -lXft -lX11 -lXext $(UTF8LIB) -lm 23 | +FLTKLIBS=-L$(FLTKDIR)/lib -lfltk -lX11 $(UTF8LIB) -lm 24 | 25 | REZCOMMAND=@echo 26 | 27 | diff -rupN spreadsheet1.2.2.original/sprsht-4b-pipenetwork.cxx spreadsheet1.2.2/sprsht-4b-pipenetwork.cxx 28 | --- spreadsheet1.2.2.original/sprsht-4b-pipenetwork.cxx 2009-02-04 03:17:56.000000000 +0100 29 | +++ spreadsheet1.2.2/sprsht-4b-pipenetwork.cxx 2014-03-04 11:05:59.000000000 +0100 30 | @@ -1123,7 +1123,7 @@ int checkrun() { 31 | pdiffmax = 0.; 32 | ss->cell(ray0+s,Spracc,""); 33 | r = sstart = ss->icell(ray0+s,Sstart); 34 | - stype = fabs(ss->icell(ray0+s,Stype)); 35 | + stype = fabs((double)ss->icell(ray0+s,Stype)); 36 | sfrom = ss->icell(ray0+s,Sfrom); 37 | if (stype < 21) { 38 | if (stype != 4) pd = ss->fcell(ss->icell(ray0+s,Sfrom),pupc); 39 | -------------------------------------------------------------------------------- /applications/src/flxplorer/Makefile: -------------------------------------------------------------------------------- 1 | NAME=flxplorer 2 | EXT_FLAGS=-I$(ROOT)/kernel/include -I$(ARM_SYSROOT)/usr/include/microwin 3 | 4 | install: $(NAME) 5 | cp $(NAME) $(TOMDIST)/bin 6 | 7 | $(NAME): $(NAME).cxx 8 | $(CXX) -o $@ $(EXT_FLAGS) $(NAME).cxx -L$(ARM_SYSROOT)/usr/lib -lfltk 9 | $(STRIP) $@ 10 | 11 | clean: 12 | rm -f $(NAME) *.o 13 | -------------------------------------------------------------------------------- /applications/src/flxplorer/flxplorer.mime: -------------------------------------------------------------------------------- 1 | .pdf mupdf 2 | .epub cr3 3 | .mp3 madplay -a -15 4 | .cxx /usr/bin/gedit 5 | * editor 6 | -------------------------------------------------------------------------------- /applications/src/imgv/.dep.inc: -------------------------------------------------------------------------------- 1 | # This code depends on make tool being used 2 | DEPFILES=$(wildcard $(addsuffix .d, ${OBJECTFILES})) 3 | ifneq (${DEPFILES},) 4 | include ${DEPFILES} 5 | endif 6 | -------------------------------------------------------------------------------- /applications/src/imgv/Makefile: -------------------------------------------------------------------------------- 1 | NAME=imgv 2 | 3 | install: $(TOMDIST)/bin/$(NAME) 4 | 5 | $(TOMDIST)/bin/$(NAME): $(NAME) 6 | cp $(NAME) $(TOMDIST)/bin 7 | 8 | $(NAME): sdl-imageviewer.c SDL_rotozoom.c 9 | $(CC) -o $@ $(EXT_FLAGS) *.c -lSDL -lSDL_image -lSDL_ttf 10 | 11 | clean: 12 | rm -f $(NAME) *.o 13 | -------------------------------------------------------------------------------- /applications/src/imgv/SDL_rotozoom.h: -------------------------------------------------------------------------------- 1 | #ifndef _SDL_rotozoom_h 2 | #define _SDL_rotozoom_h 3 | 4 | /* Set up for C function definitions, even when using C++ */ 5 | #ifdef __cplusplus 6 | extern "C" 7 | { 8 | #endif 9 | 10 | #include 11 | #ifndef M_PI 12 | #define M_PI 3.141592654 13 | #endif 14 | #include "SDL/SDL.h" 15 | 16 | 17 | /* ---- Defines */ 18 | 19 | #define SMOOTHING_OFF 0 20 | #define SMOOTHING_ON 1 21 | 22 | /* ---- Structures */ 23 | 24 | typedef struct tColorRGBA 25 | { 26 | Uint8 r; 27 | Uint8 g; 28 | Uint8 b; 29 | Uint8 a; 30 | } 31 | tColorRGBA; 32 | 33 | typedef struct tColorY 34 | { 35 | Uint8 y; 36 | } 37 | tColorY; 38 | 39 | 40 | /* ---- Prototypes */ 41 | 42 | /* 43 | 44 | rotozoomSurface() 45 | 46 | Rotates and zoomes a 32bit or 8bit 'src' surface to newly created 'dst' surface. 47 | 'angle' is the rotation in degrees. 'zoom' a scaling factor. If 'smooth' is 1 48 | then the destination 32bit surface is anti-aliased. If the surface is not 8bit 49 | or 32bit RGBA/ABGR it will be converted into a 32bit RGBA format on the fly. 50 | 51 | */ 52 | 53 | SDL_Surface *rotozoomSurface (SDL_Surface * src, double angle, double zoom, 54 | int smooth); 55 | 56 | 57 | /* 58 | 59 | zoomSurface() 60 | 61 | Zoomes a 32bit or 8bit 'src' surface to newly created 'dst' surface. 62 | 'zoomx' and 'zoomy' are scaling factors for width and height. If 'smooth' is 1 63 | then the destination 32bit surface is anti-aliased. If the surface is not 8bit 64 | or 32bit RGBA/ABGR it will be converted into a 32bit RGBA format on the fly. 65 | 66 | */ 67 | 68 | SDL_Surface *zoomSurface (SDL_Surface * src, double zoomx, double zoomy, 69 | int smooth); 70 | 71 | 72 | /* Ends C function definitions when using C++ */ 73 | #ifdef __cplusplus 74 | }; 75 | #endif 76 | 77 | #endif /* _SDL_rotozoom_h */ 78 | -------------------------------------------------------------------------------- /applications/src/imgv/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | SDL_Surface *screen; 6 | 7 | int display_image( char *image_name) { 8 | 9 | SDL_Surface *screen, *image=IMG_Load(image_name); 10 | SDL_Rect rect; 11 | 12 | if (image==NULL) 13 | { 14 | fprintf(stderr,"Couldn't load image\n"); 15 | return 0; 16 | } 17 | 18 | if(SDL_SetColorKey(image,SDL_RLEACCEL,SDL_MapRGB(image->format,0,0,0)) != 0) 19 | { 20 | fprintf(stderr,"Couldn't ser color key: %s\n",SDL_GetError()); 21 | return 0; 22 | } 23 | 24 | image=SDL_DisplayFormat(image); 25 | rect.x=100;rect.y=100;rect.w=image->w;rect.h=image->h; 26 | SDL_BlitSurface(image,0,screen,&rect); 27 | SDL_UpdateRects(screen,1,&rect); 28 | 29 | } 30 | 31 | int main(int argc, char** argv) { 32 | 33 | SDL_Rect **r; 34 | if ( SDL_Init( SDL_INIT_VIDEO) == -1 ) { 35 | fprintf(stderr, "Error: Couldn't initialise SDL: %s\n", SDL_GetError()); 36 | return 1; 37 | } 38 | 39 | r= SDL_ListModes(NULL, SDL_FULLSCREEN); 40 | screen = SDL_SetVideoMode( (*r)[0].w, (*r)[0].h, 0, SDL_SWSURFACE | SDL_FULLSCREEN); 41 | if(screen==NULL) { 42 | fprintf(stderr,"Couldn't set video mode: %s\n", SDL_GetError()); 43 | return 1; 44 | } 45 | SDL_SetClipRect(screen, NULL); 46 | display_image( "splash.bmp"); 47 | 48 | SDL_Event event; 49 | int exited = 0; 50 | while(exited==0) 51 | { 52 | if(SDL_PollEvent(&event)==1) 53 | { 54 | if((event.type==SDL_MOUSEBUTTONUP)) exited=1; 55 | if((event.type==SDL_KEYDOWN && event.key.keysym.sym==SDLK_ESCAPE) || (event.type==SDL_QUIT)) 56 | exited=1; 57 | } 58 | } 59 | return 0; 60 | } 61 | 62 | -------------------------------------------------------------------------------- /applications/src/nanobrick/Makefile: -------------------------------------------------------------------------------- 1 | install: nanobrick nanobrick_editor 2 | mkdir -p $(TOMDIST)/share/nanobrick_levels 3 | cp nanobrick nanobrick_editor $(TOMDIST)/bin 4 | 5 | nanobrick: nanobrick_images.c nanobrick.c 6 | $(CC) -o nanobrick nanobrick.c -I$(ARM_APPROOT)/include/microwin -lnano-X 7 | 8 | nanobrick_editor: nanobrick_images.c nanobrick_editor.c 9 | $(CC) -o nanobrick_editor nanobrick_editor.c -I$(ARM_APPROOT)/include/microwin -lnano-X 10 | 11 | nanobrick_images.c: nanobrick_images.bmp 12 | convbmp nanobrick_images.bmp 13 | 14 | clean: 15 | rm -f nanobrick_images.c nanobrick nanobrick_editor *.o 16 | 17 | -------------------------------------------------------------------------------- /applications/src/nanobrick/Premier Jeu-1.blocks: -------------------------------------------------------------------------------- 1 | #name Premier Jeu-1.blocks 2 | #bonus 100 3 | #next Premier Jeu-2.blocks 4 | #dim_brick 20 10 5 | #dim_tab 8 6 6 | #bricks 7 | 0 0 0 0 0 0 0 0 8 | 0 1 1 0 0 0 1 0 9 | 0 1 0 0 0 1 1 0 10 | 1 1 0 0 0 1 0 0 11 | 0 0 0 0 1 1 0 0 12 | 0 0 0 0 1 0 0 0 13 | 14 | -------------------------------------------------------------------------------- /applications/src/nanobrick/Premier Jeu.blocks: -------------------------------------------------------------------------------- 1 | #name Premier Jeu.blocks 2 | #bonus 100 3 | #next Premier Jeu-1.blocks 4 | #dim_brick 20 10 5 | #dim_tab 8 6 6 | #bricks 7 | 0 0 0 0 0 0 0 0 8 | 0 0 1 1 0 0 0 0 9 | 0 0 0 1 1 1 1 0 10 | 0 0 0 0 0 0 0 0 11 | 0 0 0 0 0 0 0 0 12 | 0 0 0 0 0 0 0 0 13 | 14 | -------------------------------------------------------------------------------- /applications/src/nanobrick/nanobrick.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | echo ${0%/*} 4 | cd ${0%/*} 5 | exec ./nanobrick -s `pwd`/nanobrick_images.gif -l Premier\ Jeu 6 | -------------------------------------------------------------------------------- /applications/src/nanobrick/nanobrick_editor.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | cd ${0%/*} 4 | exec ./nanobrick_editor -s `pwd`/nanobrick_images.gif -l Premier\ Jeu 5 | -------------------------------------------------------------------------------- /applications/src/nanobrick/nanobrick_images.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navit-gps/NavitTom/dce9f8ea5c7a387c2eab46d545018c6f21bf0c6a/applications/src/nanobrick/nanobrick_images.bmp -------------------------------------------------------------------------------- /applications/src/nanobrick/nanobrick_images.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navit-gps/NavitTom/dce9f8ea5c7a387c2eab46d545018c6f21bf0c6a/applications/src/nanobrick/nanobrick_images.gif -------------------------------------------------------------------------------- /applications/src/nanobrick/nanobrick_images.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navit-gps/NavitTom/dce9f8ea5c7a387c2eab46d545018c6f21bf0c6a/applications/src/nanobrick/nanobrick_images.png -------------------------------------------------------------------------------- /applications/src/nanobrick/nanobrick_images256.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navit-gps/NavitTom/dce9f8ea5c7a387c2eab46d545018c6f21bf0c6a/applications/src/nanobrick/nanobrick_images256.gif -------------------------------------------------------------------------------- /applications/src/nanobrick/samplex2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navit-gps/NavitTom/dce9f8ea5c7a387c2eab46d545018c6f21bf0c6a/applications/src/nanobrick/samplex2.gif -------------------------------------------------------------------------------- /applications/src/nxmenu/Makefile: -------------------------------------------------------------------------------- 1 | install: nxmenu 2 | cp nxmenu $(TOMDIST)/bin 3 | 4 | nxmenu: icon.c nxmenu.c 5 | $(CC) -g -o $@ -I. -I$(ARM_APPROOT)/include/microwin nxmenu.c -L$(ARM_SYSROOT)/usr/lib -lnano-X 6 | 7 | icon.c: icon.bmp 8 | convbmp -o $@ $< 9 | 10 | clean: 11 | rm -f icon.c nxmenu 12 | -------------------------------------------------------------------------------- /applications/src/nxmenu/icon.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navit-gps/NavitTom/dce9f8ea5c7a387c2eab46d545018c6f21bf0c6a/applications/src/nxmenu/icon.bmp -------------------------------------------------------------------------------- /applications/src/nxmenu/nxmenu.cfg: -------------------------------------------------------------------------------- 1 | # MicroWindow nanomenu file configuration 2 | # 3 | # Syntax: 4 | # 5 | # AppName|cmd arg1 arg2 ... 6 | # 7 | once Keyboard|bin/nxkbd 8 | run Clock|bin/nxclock 9 | onoff Eyes|bin/nxeyes 10 | onoff Bugs|bin/nxroach 11 | once Puissance4|bin/p4 12 | once World Clocks|bin/wclock 13 | run Brick|../nanobrick/nanobrick.sh 14 | once Brick Editor|../nanobrick/nanobrick_editor.sh 15 | once [ -!!- Quit -!!- ]|/bin/killall -QUIT nanomenu 16 | once Tetravex|../nxtetravex/nxtetravex 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /applications/src/nxpad_gnuboy/Makefile: -------------------------------------------------------------------------------- 1 | NAME=nxpad_gnuboy 2 | 3 | $(NAME): gamepad.cc 4 | $(CXX) $(CPPFLAGS) -o $@ gamepad.cc -L$(ARM_APPSYSROOT)/lib -lnano-X 5 | 6 | install: $(NAME) 7 | cp $(NAME) $(TOMDIST)/bin 8 | mkdir -p $(TOMDIST)/share/$(NAME) 9 | cp $(NAME) nxpad2* $(TOMDIST)/share/$(NAME)/ 10 | echo '#! /bin/sh§§cd $$DIST/share/$(NAME)§exec ./$(NAME) nxpad2$$*-skin.txt§' | tr '§' '\n' >$(TOMDIST)/bin/$(NAME).sh; \ 11 | 12 | clean: 13 | rm -f $(NAME) 14 | -------------------------------------------------------------------------------- /applications/src/nxpad_gnuboy/installation.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navit-gps/NavitTom/dce9f8ea5c7a387c2eab46d545018c6f21bf0c6a/applications/src/nxpad_gnuboy/installation.txt -------------------------------------------------------------------------------- /applications/src/nxpad_gnuboy/nxpad2-pressed.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navit-gps/NavitTom/dce9f8ea5c7a387c2eab46d545018c6f21bf0c6a/applications/src/nxpad_gnuboy/nxpad2-pressed.gif -------------------------------------------------------------------------------- /applications/src/nxpad_gnuboy/nxpad2-skin.txt: -------------------------------------------------------------------------------- 1 | # 2 | # Set windows properties (such as caption...) 3 | # set {caption|...} {0|1} 4 | # 5 | set caption 0 6 | 7 | # 8 | # Set skin background color (change to black for iTomTools :-) 9 | # bg 10 | # 11 | 12 | bg 255 255 255 # white 13 | 14 | # 15 | # Set skin bitmap 16 | # bitmap {0|1} 17 | # 18 | 19 | bitmap 0 nxpad2.gif 20 | bitmap 1 nxpad2-pressed.gif 21 | 22 | # 23 | # Key mappings 24 | # map 25 | # 26 | 27 | map 32 165 214 40 41 # select 28 | map 13 221 214 40 41 # start 29 | 30 | map 'a' 278 181 73 75 # A 31 | map 'b' 362 183 73 75 # B 32 | 33 | map 't' 110 28 76 76 # up 34 | map 'f' 20 74 76 76 # left 35 | map 'h' 155 118 76 76 # right 36 | map 'v' 67 163 76 76 # down 37 | 38 | # 39 | # Command mappings 40 | # command {lock|quit|...} 41 | # 42 | 43 | cmd lock 201 62 41 44 44 | cmd quit 0 0 32 32 45 | -------------------------------------------------------------------------------- /applications/src/nxpad_gnuboy/nxpad2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navit-gps/NavitTom/dce9f8ea5c7a387c2eab46d545018c6f21bf0c6a/applications/src/nxpad_gnuboy/nxpad2.gif -------------------------------------------------------------------------------- /applications/src/nxpad_gnuboy/nxpad2_320-pressed.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navit-gps/NavitTom/dce9f8ea5c7a387c2eab46d545018c6f21bf0c6a/applications/src/nxpad_gnuboy/nxpad2_320-pressed.gif -------------------------------------------------------------------------------- /applications/src/nxpad_gnuboy/nxpad2_320-skin.txt: -------------------------------------------------------------------------------- 1 | # 2 | # Set windows properties (such as caption...) 3 | # set {caption|...} {0|1} 4 | # 5 | set caption 0 6 | 7 | # 8 | # Set skin background color (change to black for iTomTools :-) 9 | # bg 10 | # 11 | 12 | bg 255 255 255 # white 13 | 14 | # 15 | # Set skin bitmap 16 | # bitmap {0|1} 17 | # 18 | 19 | bitmap 0 nxpad2_320.gif 20 | bitmap 1 nxpad2_320-pressed.gif 21 | 22 | # 23 | # Key mappings 24 | # map 25 | # 26 | 27 | map 32 119 199 29 38 # select 28 | map 13 160 199 29 38 # start 29 | 30 | map 'a' 201 168 52 69 # A 31 | map 'b' 262 170 52 69 # B 32 | 33 | map 't' 79 26 55 70 # up 34 | map 'f' 14 68 55 70 # left 35 | map 'h' 112 109 55 70 # right 36 | map 'v' 48 151 55 70 # down 37 | 38 | # 39 | # Command mappings 40 | # command {lock|quit|...} 41 | # 42 | 43 | cmd lock 145 57 29 40 # (null) 44 | cmd quit 0 0 23 29 # (null) 45 | -------------------------------------------------------------------------------- /applications/src/nxpad_gnuboy/nxpad2_320.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navit-gps/NavitTom/dce9f8ea5c7a387c2eab46d545018c6f21bf0c6a/applications/src/nxpad_gnuboy/nxpad2_320.gif -------------------------------------------------------------------------------- /applications/src/nxpad_gnuboy/rescal.c: -------------------------------------------------------------------------------- 1 | #define _GNU_SOURCE 2 | #include 3 | #include 4 | #include 5 | 6 | /* 7 | x / 1,378125 8 | y / 1,075 9 | 10 | 11 | */ 12 | 13 | #define TAILLE_BUFF 2048 14 | 15 | int main() { 16 | 17 | char *buff; 18 | int x, y, w, h; 19 | size_t size = TAILLE_BUFF; 20 | char word[100], key[100], rem[500]; 21 | 22 | buff = (char *)malloc(TAILLE_BUFF); 23 | FILE *in, *out; 24 | in = fopen("nxpad2-skin.txt", "r"); 25 | out = fopen("nxpad2-skin_rescalled.txt", "w+"); 26 | while ( getline(&buff, &size, in) > 0) { 27 | if ( (strncmp(buff, "map", 3) == 0) || 28 | (strncmp(buff, "cmd", 3) == 0)) { 29 | if (sscanf(buff, "%s %s %d %d %d %d %s", word, key, &x, &y, &w, &h, rem) >= 6) { 30 | printf("[%s][%s][%d][%d][%d][%d][%s]\n", word, key, x, y, w, h, rem); 31 | } 32 | strtok(buff, "#"); 33 | fprintf( out, "%s %s %d %d %d %d # %s\n", word, key, (int)(((double)x)/1.378125), 34 | (int)(((double)y)/1.075), (int)(((double)w)/1.378125), 35 | (int)(((double)h)/1.075), strtok( NULL, "\n")); 36 | } 37 | else fprintf( out, "%s", buff); 38 | } 39 | fclose(in); 40 | fclose(out); 41 | free(buff); 42 | 43 | return 0; 44 | } 45 | -------------------------------------------------------------------------------- /applications/src/nxterminal/Makefile: -------------------------------------------------------------------------------- 1 | install: nxterminal 2 | cp nxterminal $(TOMDIST)/bin 3 | 4 | nxterminal: actions.cpp gterm.cpp nxterminal.cxx states.cpp utils.cpp vt52_states.cpp 5 | $(CXX) -g -o nxterminal *.c* -lnano-X 6 | 7 | clean: 8 | rm -f nxterminal *.o 9 | -------------------------------------------------------------------------------- /applications/src/nxterminal/gterm.cpp: -------------------------------------------------------------------------------- 1 | // Copyright Timothy Miller, 1999 2 | 3 | #include "gterm.hpp" 4 | 5 | void GTerm::Update() 6 | { 7 | update_changes(); 8 | } 9 | 10 | void GTerm::ProcessInput(int len, unsigned char *data) 11 | { 12 | int i; 13 | StateOption *last_state; 14 | 15 | data_len = len; 16 | input_data = data; 17 | 18 | while (data_len) 19 | { 20 | i = 0; 21 | while (current_state[i].byte != -1 && 22 | current_state[i].byte != *input_data) i++; 23 | 24 | // action must be allowed to redirect state change 25 | last_state = current_state+i; 26 | current_state = last_state->next_state; 27 | if (last_state->action) 28 | (this->*(last_state->action))(); 29 | input_data++; 30 | data_len--; 31 | } 32 | 33 | if (!(mode_flags & DEFERUPDATE) || (pending_scroll > scroll_bot-scroll_top)) 34 | update_changes(); 35 | } 36 | 37 | void GTerm::Reset() 38 | { 39 | reset(); 40 | } 41 | 42 | void GTerm::ExposeArea(int x, int y, int w, int h) 43 | { 44 | int i; 45 | for (i=0; i= height) scroll_top = 0; 58 | cx = min(width-1, cursor_x); 59 | cy = min(height-1, cursor_y); 60 | move_cursor(cx, cy); 61 | } 62 | 63 | GTerm::GTerm(int w, int h) : width(w), height(h) 64 | { 65 | int i; 66 | 67 | doing_update = 0; 68 | 69 | // could make this dynamic 70 | text = new unsigned char[GT_MAXWIDTH*GT_MAXHEIGHT]; 71 | memset(text, 0, sizeof(text)); 72 | color = new unsigned short[GT_MAXWIDTH*GT_MAXHEIGHT]; 73 | memset(color, 0, sizeof(color)); 74 | 75 | for (i=0; i >erm::cr 3 | */ 4 | 5 | // Copyright Timothy Miller, 1999 6 | 7 | #include "gterm.hpp" 8 | 9 | // I'm certain that this set is incomplete, but I got these from reverse- 10 | // engineering a VT100 verification test program. 11 | 12 | 13 | // state machine transition tables 14 | StateOption GTerm::vt52_normal_state[] = { 15 | { 13, >erm::cr, vt52_normal_state }, 16 | { 10, >erm::lf, vt52_normal_state }, 17 | { 12, >erm::ff, vt52_normal_state }, 18 | { 9, >erm::tab, vt52_normal_state }, 19 | { 8, >erm::bs, vt52_normal_state }, 20 | { 7, >erm::bell, vt52_normal_state }, 21 | { 27, >erm::clear_param, vt52_esc_state }, 22 | { -1, >erm::normal_input, vt52_normal_state } }; 23 | 24 | StateOption GTerm::vt52_esc_state[] = { 25 | { 'D', >erm::cursor_left, vt52_normal_state }, 26 | { 'B', >erm::cursor_down, vt52_normal_state }, 27 | { 'C', >erm::cursor_right, vt52_normal_state }, 28 | { 'A', >erm::cursor_up, vt52_normal_state }, 29 | { 'Y', 0, vt52_cursory_state }, 30 | { 'J', >erm::erase_display, vt52_normal_state }, 31 | { 'K', >erm::erase_line, vt52_normal_state }, 32 | { 'H', >erm::cursor_position, vt52_normal_state }, 33 | { 'I', >erm::index_up, vt52_normal_state }, 34 | { 'F', 0, vt52_normal_state }, // graphics mode 35 | { 'G', 0, vt52_normal_state }, // ASCII mode 36 | { 'Z', >erm::vt52_ident, vt52_normal_state }, // identify 37 | { '<', 0, normal_state }, 38 | { -1, 0, vt52_normal_state }}; 39 | 40 | StateOption GTerm::vt52_cursory_state[] = { 41 | { -1, >erm::vt52_cursory, vt52_cursorx_state } }; 42 | 43 | StateOption GTerm::vt52_cursorx_state[] = { 44 | { -1, >erm::vt52_cursorx, vt52_normal_state } }; 45 | 46 | -------------------------------------------------------------------------------- /applications/src/nxtetravex/Makefile: -------------------------------------------------------------------------------- 1 | APP=nxtetravex 2 | 3 | $(APP): $(APP).c 4 | $(CC) -o $@ $(APP).c -I$(ARM_SYSROOT)/usr/include/microwin -L$(ARM_SYSROOT)/usr/lib -lnano-X 5 | 6 | install: $(APP) 7 | cp $(APP) $(TOMDIST)/bin 8 | 9 | clean: 10 | rm -f *.o $(APP) 11 | -------------------------------------------------------------------------------- /applications/src/pixil_keyboard/Makefile: -------------------------------------------------------------------------------- 1 | DEBUG=-g 2 | 3 | all: buildmap nxkeyboard 4 | 5 | buildmap: buildmap.c bmptools.c 6 | gcc $(DEBUG) -o buildmap buildmap.c bmptools.c 7 | 8 | nxkeyboard: cli.c keymap.c nxkeyboard.c srvconn.c 9 | $(CC) $(DEBUG) -o nxkeyboard cli.c keymap.c nxkeyboard.c srvconn.c -lnano-X 10 | 11 | install: nxkeyboard 12 | cp nxkeyboard $(TOMDIST)/bin 13 | cp -R keymaps $(TOMDIST)/share/ 14 | 15 | clean: 16 | rm -f *.o nxkeyboard buildmap 17 | -------------------------------------------------------------------------------- /applications/src/pixil_keyboard/Makefile.pixil: -------------------------------------------------------------------------------- 1 | #nanox/keyboard/Makefile 2 | 3 | # Note: We only install for one keyboard to cut down 4 | # on space usage. It is unfortunately that we have to 5 | # use .bmp files, but thats the way the cookie crumbles 6 | 7 | KEYMAP_PREFIX=com 8 | 9 | TARGET=nxkeyboard 10 | 11 | OBJS=cli.o filetools.o keymap.o nxkeyboard.o srvconn.o 12 | INSTALL_EXTRAS=inst-keymaps 13 | 14 | LIBS+=-lwm -lnano-X 15 | 16 | ifeq ($(CONFIG_COLOSSEUM),y) 17 | LIBS+=-lipc 18 | endif 19 | 20 | include $(BASE_DIR)/Rules.make 21 | 22 | inst-keymaps: 23 | mkdir -p $(INSTALL_DIR)/share/keymaps 24 | cp -af keymaps/$(KEYMAP_PREFIX)* $(INSTALL_DIR)/share/keymaps 25 | -------------------------------------------------------------------------------- /applications/src/pixil_keyboard/cli.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003 Century Software, Inc. All Rights Reserved. 3 | * 4 | * This file is part of the PIXIL Operating Environment 5 | * 6 | * The use, copying and distribution of this file is governed by one 7 | * of two licenses, the PIXIL Commercial License, or the GNU General 8 | * Public License, version 2. 9 | * 10 | * Licensees holding a valid PIXIL Commercial License may use this file 11 | * in accordance with the PIXIL Commercial License Agreement provided 12 | * with the Software. Others are governed under the terms of the GNU 13 | * General Public License version 2. 14 | * 15 | * This file may be distributed and/or modified under the terms of the 16 | * GNU General Public License version 2 as published by the Free 17 | * Software Foundation and appearing in the file LICENSE.GPL included 18 | * in the packaging of this file. 19 | * 20 | * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING 21 | * THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A 22 | * PARTICULAR PURPOSE. 23 | * 24 | * RESTRICTED RIGHTS LEGEND 25 | * 26 | * Use, duplication, or disclosure by the government is subject to 27 | * restriction as set forth in paragraph (b)(3)(b) of the Rights in 28 | * Technical Data and Computer Software clause in DAR 7-104.9(a). 29 | * 30 | * See http://www.pixil.org/gpl/ for GPL licensing 31 | * information. 32 | * 33 | * See http://www.pixil.org/license.html or 34 | * email cetsales@centurysoftware.com for information about the PIXIL 35 | * Commercial License Agreement, or if any conditions of this licensing 36 | * are not clear to you. 37 | */ 38 | 39 | 40 | #ifndef CLI_H 41 | #define CLI_H 42 | 43 | 44 | /* 45 | ** 46 | ** Imported "Include" Files 47 | ** 48 | */ 49 | 50 | 51 | 52 | /* 53 | ** 54 | ** Global Constant Definitions 55 | ** 56 | */ 57 | 58 | 59 | 60 | /* 61 | ** 62 | ** Global Enumeration Definitions 63 | ** 64 | */ 65 | 66 | 67 | 68 | /* 69 | ** 70 | ** Global Structure Definitions 71 | ** 72 | */ 73 | 74 | 75 | 76 | /* 77 | ** 78 | ** Global Variable Declarations 79 | ** 80 | */ 81 | extern char gMapID[]; 82 | extern char gMapDir[]; 83 | 84 | 85 | 86 | /* 87 | ** 88 | ** NAME: parseCommandLine() 89 | ** 90 | ** USAGE: int parseCommandLine(int argc, char **argv) 91 | ** 92 | ** DESCR: This function will parse the list of command line arguments 93 | ** and recover their associated information. 94 | ** 95 | ** PARMS: The "argc" parameter specifies the number of arguments found in 96 | ** the argv list. The "argv" parameter is a pointer to the array 97 | ** of command line arguments. 98 | ** 99 | ** RETRN: If successful, the number of command line arguments parsed is 100 | ** is returned. If an error occurs during function , a negative 101 | ** value is returned. 102 | ** 103 | */ 104 | int parseCommandLine(int, char **); 105 | 106 | #endif /* CLI_H */ 107 | -------------------------------------------------------------------------------- /applications/src/pixil_keyboard/filetools.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003 Century Software, Inc. All Rights Reserved. 3 | * 4 | * This file is part of the PIXIL Operating Environment 5 | * 6 | * The use, copying and distribution of this file is governed by one 7 | * of two licenses, the PIXIL Commercial License, or the GNU General 8 | * Public License, version 2. 9 | * 10 | * Licensees holding a valid PIXIL Commercial License may use this file 11 | * in accordance with the PIXIL Commercial License Agreement provided 12 | * with the Software. Others are governed under the terms of the GNU 13 | * General Public License version 2. 14 | * 15 | * This file may be distributed and/or modified under the terms of the 16 | * GNU General Public License version 2 as published by the Free 17 | * Software Foundation and appearing in the file LICENSE.GPL included 18 | * in the packaging of this file. 19 | * 20 | * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING 21 | * THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A 22 | * PARTICULAR PURPOSE. 23 | * 24 | * RESTRICTED RIGHTS LEGEND 25 | * 26 | * Use, duplication, or disclosure by the government is subject to 27 | * restriction as set forth in paragraph (b)(3)(b) of the Rights in 28 | * Technical Data and Computer Software clause in DAR 7-104.9(a). 29 | * 30 | * See http://www.pixil.org/gpl/ for GPL licensing 31 | * information. 32 | * 33 | * See http://www.pixil.org/license.html or 34 | * email cetsales@centurysoftware.com for information about the PIXIL 35 | * Commercial License Agreement, or if any conditions of this licensing 36 | * are not clear to you. 37 | */ 38 | 39 | 40 | #ifndef FILETOOLS_H 41 | #define FILETOOLS_H 42 | 43 | 44 | /* 45 | ** 46 | ** Imported "Include" Files 47 | ** 48 | */ 49 | 50 | 51 | 52 | /* 53 | ** 54 | ** Global Constant Definitions 55 | ** 56 | */ 57 | 58 | 59 | 60 | /* 61 | ** 62 | ** Global Enumeration Definitions 63 | ** 64 | */ 65 | 66 | 67 | 68 | /* 69 | ** 70 | ** Global Structure Definitions 71 | ** 72 | */ 73 | 74 | 75 | 76 | /* 77 | ** 78 | ** Global Variable Declarations 79 | ** 80 | */ 81 | 82 | 83 | 84 | /* 85 | ** 86 | ** NAME: splitPath() 87 | ** 88 | ** USAGE: int splitPath(char *path, char *dir, char *file, char *ext); 89 | ** 90 | ** DESCR: This function will split the specified path into its directory, 91 | ** filename, and extension components. 92 | ** 93 | ** PARMS: The "path" paramter is a pointer to a buffer that contains the 94 | ** path to be split. The "dir" parameter is a pointer to a buffer 95 | ** that will hold the directory result. The "file" parameter is 96 | ** a pointer to a buffer that will hold the filename result. The 97 | ** "ext" parameter is a pointer to a buffer that will hold the 98 | ** file extension result. 99 | ** 100 | ** RETRN: If successful, '0' is returned. If an error occurs during function 101 | ** execution, a non-zero value is returned that describes the error. 102 | ** 103 | */ 104 | int splitPath(char *, char *, char *, char *); 105 | 106 | #endif /* FILETOOLS_H */ 107 | -------------------------------------------------------------------------------- /applications/src/pixil_keyboard/keymaps/bigcaps.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navit-gps/NavitTom/dce9f8ea5c7a387c2eab46d545018c6f21bf0c6a/applications/src/pixil_keyboard/keymaps/bigcaps.bmp -------------------------------------------------------------------------------- /applications/src/pixil_keyboard/keymaps/bigctrl.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navit-gps/NavitTom/dce9f8ea5c7a387c2eab46d545018c6f21bf0c6a/applications/src/pixil_keyboard/keymaps/bigctrl.bmp -------------------------------------------------------------------------------- /applications/src/pixil_keyboard/keymaps/bigintlc.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navit-gps/NavitTom/dce9f8ea5c7a387c2eab46d545018c6f21bf0c6a/applications/src/pixil_keyboard/keymaps/bigintlc.bmp -------------------------------------------------------------------------------- /applications/src/pixil_keyboard/keymaps/bigintln.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navit-gps/NavitTom/dce9f8ea5c7a387c2eab46d545018c6f21bf0c6a/applications/src/pixil_keyboard/keymaps/bigintln.bmp -------------------------------------------------------------------------------- /applications/src/pixil_keyboard/keymaps/bigintls.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navit-gps/NavitTom/dce9f8ea5c7a387c2eab46d545018c6f21bf0c6a/applications/src/pixil_keyboard/keymaps/bigintls.bmp -------------------------------------------------------------------------------- /applications/src/pixil_keyboard/keymaps/bignorm.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navit-gps/NavitTom/dce9f8ea5c7a387c2eab46d545018c6f21bf0c6a/applications/src/pixil_keyboard/keymaps/bignorm.bmp -------------------------------------------------------------------------------- /applications/src/pixil_keyboard/keymaps/bigshft.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navit-gps/NavitTom/dce9f8ea5c7a387c2eab46d545018c6f21bf0c6a/applications/src/pixil_keyboard/keymaps/bigshft.bmp -------------------------------------------------------------------------------- /applications/src/pixil_keyboard/keymaps/bnum.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navit-gps/NavitTom/dce9f8ea5c7a387c2eab46d545018c6f21bf0c6a/applications/src/pixil_keyboard/keymaps/bnum.bmp -------------------------------------------------------------------------------- /applications/src/pixil_keyboard/keymaps/bnum.map: -------------------------------------------------------------------------------- 1 | ************************************************************************ 2 | * nxkeyboard map file automatically generated by 'buildmap' * 3 | * Image File: bnum.bmp * 4 | * Date: Fri Dec 15 08:38:58 2000 * 5 | ************************************************************************ 6 | 7 | ****************** 8 | * Map Parameters * 9 | ****************** 10 | parms: -10,-1,-1,-1,-1,129,166 |ID,high1,high2,high3,high4,width,height 11 | 12 | ****************** 13 | * Row 1 Keymaps * 14 | ****************** 15 | keymap: 61,1,1,31,32 |Row1Key1 = 16 | keymap: 47,33,1,63,32 |Row1Key2 / 17 | keymap: 42,65,1,95,32 |Row1Key3 * 18 | keymap: 45,97,1,127,32 |Row1Key4 - 19 | 20 | ****************** 21 | * Row 2 Keymaps * 22 | ****************** 23 | keymap: 55,1,34,31,65 |Row2Key1 7 24 | keymap: 56,33,34,63,65 |Row2Key2 8 25 | keymap: 57,65,34,95,65 |Row2Key3 9 26 | keymap: 43,97,34,127,98 |Row2Key4 + 27 | 28 | ****************** 29 | * Row 3 Keymaps * 30 | ****************** 31 | keymap: 52,1,67,31,98 |Row3Key1 4 32 | keymap: 53,33,67,63,98 |Row3Key2 5 33 | keymap: 54,65,67,95,98 |Row3Key3 6 34 | 35 | ****************** 36 | * Row 4 Keymaps * 37 | ****************** 38 | keymap: 49,1,100,31,131 |Row4Key1 1 39 | keymap: 50,33,100,63,131 |Row4Key2 2 40 | keymap: 51,65,100,95,131 |Row4Key3 3 41 | keymap: 13,97,100,127,164 |Row4Key4 return 42 | 43 | ****************** 44 | * Row 4 Keymaps * 45 | ****************** 46 | keymap: 48,1,133,63,164 |Row5Key1 0 47 | keymap: 46,65,133,95,164 |Row5Key2 . 48 | 49 | *********************** 50 | * Multikey Extensions * 51 | *********************** 52 | -------------------------------------------------------------------------------- /applications/src/pixil_keyboard/keymaps/comcaps.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navit-gps/NavitTom/dce9f8ea5c7a387c2eab46d545018c6f21bf0c6a/applications/src/pixil_keyboard/keymaps/comcaps.bmp -------------------------------------------------------------------------------- /applications/src/pixil_keyboard/keymaps/comcaps.map: -------------------------------------------------------------------------------- 1 | ************************************************************************ 2 | * nxkeyboard map file automatically generated by 'buildmap' * 3 | * Image File: comcaps.bmp * 4 | * Date: Mon Dec 18 15:07:58 2000 * 5 | ************************************************************************ 6 | 7 | ****************** 8 | * Map Parameters * 9 | ****************** 10 | parms: -11,28,-1,-1,-1,240,86 |ID,high1,high2,high3,high4,width,height 11 | 12 | ****************** 13 | * Row 1 Keymaps * 14 | ****************** 15 | keymap: 27,1,1,23,16 |Row1Key1 escape 16 | keymap: 33,25,1,39,16 |Row1Key2 ! 17 | keymap: 64,41,1,55,16 |Row1Key3 @ 18 | keymap: 35,57,1,71,16 |Row1Key4 # 19 | keymap: 36,73,1,87,16 |Row1Key5 $ 20 | keymap: 37,89,1,103,16 |Row1Key6 % 21 | keymap: 94,105,1,119,16 |Row1Key7 ^ 22 | keymap: 38,121,1,135,16 |Row1Key8 & 23 | keymap: 42,137,1,151,16 |Row1Key9 * 24 | keymap: 40,153,1,167,16 |Row1Key10 ( 25 | keymap: 41,169,1,183,16 |Row1Key11 ) 26 | keymap: 95,185,1,199,16 |Row1Key12 _ 27 | keymap: 43,201,1,215,16 |Row1Key13 + 28 | keymap: 8,217,1,238,16 |Row1Key14 backspace 29 | 30 | ****************** 31 | * Row 2 Keymaps * 32 | ****************** 33 | keymap: 9,1,18,23,33 |Row2Key1 tab 34 | keymap: 81,25,18,39,33 |Row2Key2 Q 35 | keymap: 87,41,18,55,33 |Row2Key3 W 36 | keymap: 69,57,18,71,33 |Row2Key4 E 37 | keymap: 82,73,18,87,33 |Row2Key5 R 38 | keymap: 84,89,18,103,33 |Row2Key6 T 39 | keymap: 89,105,18,119,33 |Row2Key7 Y 40 | keymap: 85,121,18,135,33 |Row2Key8 U 41 | keymap: 73,137,18,151,33 |Row2Key9 I 42 | keymap: 79,153,18,167,33 |Row2Key10 O 43 | keymap: 80,169,18,183,33 |Row2Key11 P 44 | keymap: 123,185,18,199,33 |Row2Key12 { 45 | keymap: 125,201,18,215,33 |Row2Key13 } 46 | keymap: 124,217,18,238,33 |Row2Key14 | 47 | 48 | ****************** 49 | * Row 3 Keymaps * 50 | ****************** 51 | keymap: -10,1,35,27,50 |Row3Key1 caps 52 | keymap: 65,29,35,43,50 |Row3Key2 A 53 | keymap: 83,45,35,59,50 |Row3Key3 S 54 | keymap: 68,61,35,75,50 |Row3Key4 D 55 | keymap: 70,77,35,91,50 |Row3Key5 F 56 | keymap: 71,93,35,107,50 |Row3Key6 G 57 | keymap: 72,109,35,123,50 |Row3Key7 H 58 | keymap: 74,125,35,139,50 |Row3Key8 J 59 | keymap: 75,141,35,155,50 |Row3Key9 K 60 | keymap: 76,157,35,171,50 |Row3Key10 L 61 | keymap: 58,173,35,187,50 |Row3Key11 : 62 | keymap: 34,189,35,203,50 |Row3Key12 " 63 | keymap: 13,205,35,238,50 |Row3Key13 return 64 | 65 | ****************** 66 | * Row 4 Keymaps * 67 | ****************** 68 | keymap: -2,1,52,35,67 |Row4Key1 shift 69 | keymap: 90,37,52,51,67 |Row4Key2 Z 70 | keymap: 88,53,52,67,67 |Row4Key3 X 71 | keymap: 67,69,52,83,67 |Row4Key4 C 72 | keymap: 86,85,52,99,67 |Row4Key5 V 73 | keymap: 66,101,52,115,67 |Row4Key6 B 74 | keymap: 78,117,52,131,67 |Row4Key7 N 75 | keymap: 77,133,52,147,67 |Row4Key8 M 76 | keymap: 60,149,52,163,67 |Row4Key9 < 77 | keymap: 62,165,52,179,67 |Row4Key10 > 78 | keymap: 63,181,52,195,67 |Row4Key11 ? 79 | keymap: -2,197,52,238,67 |Row4Key12 shift 80 | 81 | ****************** 82 | * Row 5 Keymaps * 83 | ****************** 84 | keymap: -3,1,69,23,84 |Row5Key1 control 85 | keymap: -13,25,69,55,84 |Row5Key2 international 86 | keymap: 32,57,69,183,84 |Row5Key space 87 | keymap: -1,185,69,215,84 |Row5Key4 88 | keymap: -1,217,69,238,84 |Row5Key5 89 | 90 | *********************** 91 | * Multikey Extensions * 92 | *********************** 93 | -------------------------------------------------------------------------------- /applications/src/pixil_keyboard/keymaps/comctrl.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navit-gps/NavitTom/dce9f8ea5c7a387c2eab46d545018c6f21bf0c6a/applications/src/pixil_keyboard/keymaps/comctrl.bmp -------------------------------------------------------------------------------- /applications/src/pixil_keyboard/keymaps/comctrl.map: -------------------------------------------------------------------------------- 1 | ************************************************************************ 2 | * nxkeyboard map file automatically generated by 'buildmap' * 3 | * Image File: comctrl.bmp * 4 | * Date: Mon Dec 18 15:08:06 2000 * 5 | ************************************************************************ 6 | 7 | ****************** 8 | * Map Parameters * 9 | ****************** 10 | parms: -3,53,-1,-1,-1,240,86 |ID,high1,high2,high3,high4,width,height 11 | 12 | ****************** 13 | * Row 1 Keymaps * 14 | ****************** 15 | keymap: -1,1,1,15,16 |Row1Key1 16 | keymap: -1,17,1,31,16 |Row1Key2 17 | keymap: 0,33,1,47,16 |Row1Key3 ctrl@ 18 | keymap: -1,49,1,63,16 |Row1Key4 19 | keymap: -1,65,1,79,16 |Row1Key5 20 | keymap: -1,81,1,95,16 |Row1Key6 21 | keymap: 30,97,1,111,16 |Row1Key7 ctrl^ 22 | keymap: -1,113,1,127,16 |Row1Key8 23 | keymap: -1,129,1,143,16 |Row1Key9 24 | keymap: -1,145,1,159,16 |Row1Key10 25 | keymap: -1,161,1,175,16 |Row1Key11 26 | keymap: 31,177,1,191,16 |Row1Key12 ctrl_ 27 | keymap: -1,193,1,207,16 |Row1Key13 28 | keymap: 8,209,1,238,16 |Row1Key14 backspace 29 | 30 | ****************** 31 | * Row 2 Keymaps * 32 | ****************** 33 | keymap: 9,1,18,23,33 |Row2Key1 tab 34 | keymap: 17,25,18,39,33 |Row2Key2 ctrlQ 35 | keymap: 23,41,18,55,33 |Row2Key3 ctrlW 36 | keymap: 5,57,18,71,33 |Row2Key4 ctrlE 37 | keymap: 18,73,18,87,33 |Row2Key5 ctrlR 38 | keymap: 20,89,18,103,33 |Row2Key6 ctrlT 39 | keymap: 25,105,18,119,33 |Row2Key7 ctrlY 40 | keymap: 21,121,18,135,33 |Row2Key8 ctrlU 41 | keymap: 9,137,18,151,33 |Row2Key9 ctrlI 42 | keymap: 15,153,18,167,33 |Row2Key10 ctrlO 43 | keymap: 16,169,18,183,33 |Row2Key11 ctrlP 44 | keymap: 27,185,18,199,33 |Row2Key12 ctrl[ 45 | keymap: 29,201,18,215,33 |Row2Key13 ctrl] 46 | keymap: 28,217,18,238,33 |Row2Key14 ctrl\ 47 | 48 | ****************** 49 | * Row 3 Keymaps * 50 | ****************** 51 | keymap: -11,1,35,27,50 |Row3Key1 caps 52 | keymap: 1,29,35,43,50 |Row3Key2 ctrlA 53 | keymap: 19,45,35,59,50 |Row3Key3 ctrlS 54 | keymap: 4,61,35,75,50 |Row3Key4 ctrlD 55 | keymap: 6,77,35,91,50 |Row3Key5 ctrlF 56 | keymap: 7,93,35,107,50 |Row3Key6 ctrlG 57 | keymap: 8,109,35,123,50 |Row3Key7 ctrlH 58 | keymap: 10,125,35,139,50 |Row3Key8 ctrlJ 59 | keymap: 11,141,35,155,50 |Row3Key9 ctrlK 60 | keymap: 12,157,35,171,50 |Row3Key10 ctrlL 61 | keymap: -1,173,35,187,50 |Row3Key11 62 | keymap: -1,189,35,203,50 |Row3Key12 63 | keymap: 13,205,35,238,50 |Row3Key13 return 64 | 65 | ****************** 66 | * Row 4 Keymaps * 67 | ****************** 68 | keymap: -2,1,52,35,67 |Row4Key1 shift 69 | keymap: 26,37,52,51,67 |Row4Key2 ctrlZ 70 | keymap: 24,53,52,67,67 |Row4Key3 ctrlX 71 | keymap: 3,69,52,83,67 |Row4Key4 ctrlC 72 | keymap: 22,85,52,99,67 |Row4Key5 ctrlV 73 | keymap: 2,101,52,115,67 |Row4Key6 ctrlB 74 | keymap: 14,117,52,131,67 |Row4Key7 ctrlN 75 | keymap: 13,133,52,147,67 |Row4Key8 ctrlM 76 | keymap: -1,149,52,163,67 |Row4Key9 77 | keymap: -1,165,52,179,67 |Row4Key10 78 | keymap: -1,181,52,195,67 |Row4Key11 79 | keymap: -2,197,52,238,67 |Row4Key12 shift 80 | 81 | ****************** 82 | * Row 5 Keymaps * 83 | ****************** 84 | keymap: -10,1,69,23,84 |Row5Key1 control 85 | keymap: -12,25,69,55,84 |Row5Key2 international 86 | keymap: 32,57,69,183,84 |Row5Key3 space 87 | keymap: -21,185,69,215,84 |Row5Key4 numeric 88 | keymap: -1,217,69,238,84 |Row5Key5 89 | 90 | *********************** 91 | * Multikey Extensions * 92 | *********************** 93 | -------------------------------------------------------------------------------- /applications/src/pixil_keyboard/keymaps/comintlc.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navit-gps/NavitTom/dce9f8ea5c7a387c2eab46d545018c6f21bf0c6a/applications/src/pixil_keyboard/keymaps/comintlc.bmp -------------------------------------------------------------------------------- /applications/src/pixil_keyboard/keymaps/comintlc.map: -------------------------------------------------------------------------------- 1 | ************************************************************************ 2 | * nxkeyboard map file automatically generated by 'buildmap' * 3 | * Image File: comintls.bmp * 4 | * Date: Mon Dec 18 15:08:18 2000 * 5 | ************************************************************************ 6 | 7 | ****************** 8 | * Map Parameters * 9 | ****************** 10 | parms: -13,28,54,-1,-1,240,86 |ID,high1,high2,high3,high4,width,height 11 | 12 | ****************** 13 | * Row 1 Keymaps * 14 | ****************** 15 | keymap: 27,1,1,23,16 |Row1Key1 escape 16 | keymap: 161,25,1,39,16 |Row1Key2 inverted exclamation mark 17 | keymap: 162,41,1,55,16 |Row1Key3 cent 18 | keymap: 163,57,1,71,16 |Row1Key4 british pound 19 | keymap: 166,73,1,87,16 |Row1Key5 vertical broken bar 20 | keymap: 167,89,1,103,16 |Row1Key6 section 21 | keymap: 169,105,1,119,16 |Row1Key7 copyright 22 | keymap: 171,121,1,135,16 |Row1Key8 left pointing guillemet 23 | keymap: 176,137,1,151,16 |Row1Key9 degree 24 | keymap: 181,153,1,167,16 |Row1Key10 micro 25 | keymap: 185,169,1,183,16 |Row1Key11 superscript digit 1 26 | keymap: 190,185,1,199,16 |Row1Key12 fraction three quarter 27 | keymap: 247,201,1,215,16 |Row1Key13 divide 28 | keymap: 8,217,1,238,16 |Row1Key14 backspace 29 | 30 | ****************** 31 | * Row 2 Keymaps * 32 | ****************** 33 | keymap: 9,1,18,23,33 |Row2Key1 tab 34 | keymap: 192,25,18,39,33 |Row2Key2 A grave 35 | keymap: 193,41,18,55,33 |Row2Key3 A acute 36 | keymap: 194,57,18,71,33 |Row2Key4 A circumflex 37 | keymap: 195,73,18,87,33 |Row2Key5 A tilde 38 | keymap: 196,89,18,103,33 |Row2Key6 A diaeresis 39 | keymap: 197,105,18,119,33 |Row2Key7 A ring 40 | keymap: 198,121,18,135,33 |Row2Key8 AE ligature 41 | keymap: 199,137,18,151,33 |Row2Key9 C cedilla 42 | keymap: 200,153,18,167,33 |Row2Key10 E grave 43 | keymap: 201,169,18,183,33 |Row2Key11 E acute 44 | keymap: 202,185,18,199,33 |Row2Key12 E circumflex 45 | keymap: 203,201,18,215,33 |Row2Key13 E diaeresis 46 | keymap: -1,217,18,238,33 |Row2Key14 47 | 48 | ****************** 49 | * Row 3 Keymaps * 50 | ****************** 51 | keymap: -12,1,35,27,50 |Row3Key1 caps 52 | keymap: 204,29,35,43,50 |Row3Key2 I grave 53 | keymap: 205,45,35,59,50 |Row3Key3 I acute 54 | keymap: 206,61,35,75,50 |Row3Key4 I circumflex 55 | keymap: 207,77,35,91,50 |Row3Key5 I diaeresis 56 | keymap: 208,93,35,107,50 |Row3Key6 ETH 57 | keymap: 209,109,35,123,50 |Row3Key7 N tilde 58 | keymap: 210,125,35,139,50 |Row3Key8 O grave 59 | keymap: 211,141,35,155,50 |Row3Key9 O acute 60 | keymap: 212,157,35,171,50 |Row3Key10 O circumflex 61 | keymap: 213,173,35,187,50 |Row3Key11 O tilde 62 | keymap: 214,189,35,203,50 |Row3Key12 O diaeresis 63 | keymap: 13,205,35,238,50 |Row3Key13 return 64 | 65 | ****************** 66 | * Row 4 Keymaps * 67 | ****************** 68 | keymap: -4,1,52,35,67 |Row4Key1 shift 69 | keymap: 216,37,52,51,67 |Row4Key2 O slash 70 | keymap: 217,53,52,67,67 |Row4Key3 U grave 71 | keymap: 218,69,52,83,67 |Row4Key4 U acute 72 | keymap: 219,85,52,99,67 |Row4Key5 U circumflex 73 | keymap: 220,101,52,115,67 |Row4Key6 U diaeresis 74 | keymap: 221,117,52,131,67 |Row4Key7 Y acute 75 | keymap: 222,133,52,147,67 |Row4Key8 THORN 76 | keymap: 60,149,52,163,67 |Row4Key9 < 77 | keymap: 62,165,52,179,67 |Row4Key10 > 78 | keymap: 191,181,52,195,67 |Row4Key11 inverted question mark 79 | keymap: -4,197,52,238,67 |Row4Key12 shift 80 | 81 | ****************** 82 | * Row 5 Keymaps * 83 | ****************** 84 | keymap: -3,1,69,23,84 |Row5Key1 control 85 | keymap: -11,25,69,55,84 |Row5Key2 international 86 | keymap: 32,57,69,183,84 |Row5Key3 space 87 | keymap: -23,185,69,215,84 |Row5Key4 numeric 88 | keymap: -1,217,69,238,84 |Row5Key5 89 | 90 | *********************** 91 | * Multikey Extensions * 92 | *********************** 93 | -------------------------------------------------------------------------------- /applications/src/pixil_keyboard/keymaps/comintln.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navit-gps/NavitTom/dce9f8ea5c7a387c2eab46d545018c6f21bf0c6a/applications/src/pixil_keyboard/keymaps/comintln.bmp -------------------------------------------------------------------------------- /applications/src/pixil_keyboard/keymaps/comintln.map: -------------------------------------------------------------------------------- 1 | ************************************************************************ 2 | * nxkeyboard map file automatically generated by 'buildmap' * 3 | * Image File: comintln.bmp * 4 | * Date: Mon Dec 18 15:08:14 2000 * 5 | ************************************************************************ 6 | 7 | ****************** 8 | * Map Parameters * 9 | ****************** 10 | parms: -12,54,-1,-1,-1,240,86 |ID,high1,high2,high3,high4,width,height 11 | 12 | ****************** 13 | * Row 1 Keymaps * 14 | ****************** 15 | keymap: 27,1,1,23,16 |Row1Key1 escape 16 | keymap: 161,25,1,39,16 |Row1Key2 inverted exclamation mark 17 | keymap: 164,41,1,55,16 |Row1Key3 currency 18 | keymap: 165,57,1,71,16 |Row1Key4 yen 19 | keymap: 178,73,1,87,16 |Row1Key5 squared 20 | keymap: 182,89,1,103,16 |Row1Key6 paragraph 21 | keymap: 174,105,1,119,16 |Row1Key7 registered trademark 22 | keymap: 187,121,1,135,16 |Row1Key8 right pointing guillemet 23 | keymap: 172,137,1,151,16 |Row1Key9 not sign 24 | keymap: 179,153,1,167,16 |Row1Key10 cubed 25 | keymap: 188,169,1,183,16 |Row1Key11 fraction one quarter 26 | keymap: 189,185,1,199,16 |Row1Key12 fraction one half 27 | keymap: 215,201,1,215,16 |Row1Key13 multiply 28 | keymap: 8,217,1,238,16 |Row1Key14 backspace 29 | 30 | ****************** 31 | * Row 2 Keymaps * 32 | ****************** 33 | keymap: 9,1,18,23,33 |Row2Key1 tab 34 | keymap: 224,25,18,39,33 |Row2Key2 a grave 35 | keymap: 225,41,18,55,33 |Row2Key3 a acute 36 | keymap: 226,57,18,71,33 |Row2Key4 a circumflex 37 | keymap: 227,73,18,87,33 |Row2Key5 a tilde 38 | keymap: 228,89,18,103,33 |Row2Key6 a diaeresis 39 | keymap: 229,105,18,119,33 |Row2Key7 a ring 40 | keymap: 230,121,18,135,33 |Row2Key8 ae ligature 41 | keymap: 231,137,18,151,33 |Row2Key9 c cedilla 42 | keymap: 232,153,18,167,33 |Row2Key10 e grave 43 | keymap: 233,169,18,183,33 |Row2Key11 e acute 44 | keymap: 234,185,18,199,33 |Row2Key12 e circumflex 45 | keymap: 235,201,18,215,33 |Row2Key13 e diaeresis 46 | keymap: 255,217,18,238,33 |Row2Key14 y diaeresis 47 | 48 | ****************** 49 | * Row 3 Keymaps * 50 | ****************** 51 | keymap: -13,1,35,27,50 |Row3Key1 caps 52 | keymap: 236,29,35,43,50 |Row3Key2 i grave 53 | keymap: 237,45,35,59,50 |Row3Key3 i acute 54 | keymap: 238,61,35,75,50 |Row3Key4 i circumflex 55 | keymap: 239,77,35,91,50 |Row3Key5 i diaeresis 56 | keymap: 240,93,35,107,50 |Row3Key6 small eth 57 | keymap: 241,109,35,123,50 |Row3Key7 n tilde 58 | keymap: 242,125,35,139,50 |Row3Key8 o grave 59 | keymap: 243,141,35,155,50 |Row3Key9 o acute 60 | keymap: 244,157,35,171,50 |Row3Key10 o circumflex 61 | keymap: 245,173,35,187,50 |Row3Key11 o tilde 62 | keymap: 246,189,35,203,50 |Row3Key12 o diaeresis 63 | keymap: 13,205,35,238,50 |Row3Key13 return 64 | 65 | ****************** 66 | * Row 4 Keymaps * 67 | ****************** 68 | keymap: -4,1,52,35,67 |Row4Key1 shift 69 | keymap: 248,37,52,51,67 |Row4Key2 o slash 70 | keymap: 249,53,52,67,67 |Row4Key3 u grave 71 | keymap: 250,69,52,83,67 |Row4Key4 u acute 72 | keymap: 251,85,52,99,67 |Row4Key5 u circumflex 73 | keymap: 252,101,52,115,67 |Row4Key6 u diaeresis 74 | keymap: 253,117,52,131,67 |Row4Key7 y acute 75 | keymap: 254,133,52,147,67 |Row4Key8 small thorn 76 | keymap: 44,149,52,163,67 |Row4Key9 , 77 | keymap: 46,165,52,179,67 |Row4Key10 . 78 | keymap: 191,181,52,195,67 |Row4Key11 inverted question mark 79 | keymap: -4,197,52,238,67 |Row4Key12 shift 80 | 81 | ****************** 82 | * Row 5 Keymaps * 83 | ****************** 84 | keymap: -3,1,69,23,84 |Row5Key1 control 85 | keymap: -10,25,69,55,84 |Row5Key2 international 86 | keymap: 32,57,69,183,84 |Row5Key3 space 87 | keymap: -21,185,69,215,84 |Row5Key4 numeric 88 | keymap: -1,217,69,238,84 |Row5Key5 89 | 90 | *********************** 91 | * Multikey Extensions * 92 | *********************** 93 | -------------------------------------------------------------------------------- /applications/src/pixil_keyboard/keymaps/comintls.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navit-gps/NavitTom/dce9f8ea5c7a387c2eab46d545018c6f21bf0c6a/applications/src/pixil_keyboard/keymaps/comintls.bmp -------------------------------------------------------------------------------- /applications/src/pixil_keyboard/keymaps/comintls.map: -------------------------------------------------------------------------------- 1 | ************************************************************************ 2 | * nxkeyboard map file automatically generated by 'buildmap' * 3 | * Image File: comintls.bmp * 4 | * Date: Mon Dec 18 15:08:18 2000 * 5 | ************************************************************************ 6 | 7 | ****************** 8 | * Map Parameters * 9 | ****************** 10 | parms: -4,41,52,54,-1,240,86 |ID,high1,high2,high3,high4,width,height 11 | 12 | ****************** 13 | * Row 1 Keymaps * 14 | ****************** 15 | keymap: 27,1,1,23,16 |Row1Key1 escape 16 | keymap: 161,25,1,39,16 |Row1Key2 inverted exclamation mark 17 | keymap: 162,41,1,55,16 |Row1Key3 cent 18 | keymap: 163,57,1,71,16 |Row1Key4 british pound 19 | keymap: 166,73,1,87,16 |Row1Key5 vertical broken bar 20 | keymap: 167,89,1,103,16 |Row1Key6 section 21 | keymap: 169,105,1,119,16 |Row1Key7 copyright 22 | keymap: 171,121,1,135,16 |Row1Key8 left pointing guillemet 23 | keymap: 176,137,1,151,16 |Row1Key9 degree 24 | keymap: 181,153,1,167,16 |Row1Key10 micro 25 | keymap: 185,169,1,183,16 |Row1Key11 superscript digit 1 26 | keymap: 190,185,1,199,16 |Row1Key12 fraction three quarter 27 | keymap: 247,201,1,215,16 |Row1Key13 divide 28 | keymap: 8,217,1,238,16 |Row1Key14 backspace 29 | 30 | ****************** 31 | * Row 2 Keymaps * 32 | ****************** 33 | keymap: 9,1,18,23,33 |Row2Key1 tab 34 | keymap: 192,25,18,39,33 |Row2Key2 A grave 35 | keymap: 193,41,18,55,33 |Row2Key3 A acute 36 | keymap: 194,57,18,71,33 |Row2Key4 A circumflex 37 | keymap: 195,73,18,87,33 |Row2Key5 A tilde 38 | keymap: 196,89,18,103,33 |Row2Key6 A diaeresis 39 | keymap: 197,105,18,119,33 |Row2Key7 A ring 40 | keymap: 198,121,18,135,33 |Row2Key8 AE ligature 41 | keymap: 199,137,18,151,33 |Row2Key9 C cedilla 42 | keymap: 200,153,18,167,33 |Row2Key10 E grave 43 | keymap: 201,169,18,183,33 |Row2Key11 E acute 44 | keymap: 202,185,18,199,33 |Row2Key12 E circumflex 45 | keymap: 203,201,18,215,33 |Row2Key13 E diaeresis 46 | keymap: -1,217,18,238,33 |Row2Key14 47 | 48 | ****************** 49 | * Row 3 Keymaps * 50 | ****************** 51 | keymap: -13,1,35,27,50 |Row3Key1 caps 52 | keymap: 204,29,35,43,50 |Row3Key2 I grave 53 | keymap: 205,45,35,59,50 |Row3Key3 I acute 54 | keymap: 206,61,35,75,50 |Row3Key4 I circumflex 55 | keymap: 207,77,35,91,50 |Row3Key5 I diaeresis 56 | keymap: 208,93,35,107,50 |Row3Key6 ETH 57 | keymap: 209,109,35,123,50 |Row3Key7 N tilde 58 | keymap: 210,125,35,139,50 |Row3Key8 O grave 59 | keymap: 211,141,35,155,50 |Row3Key9 O acute 60 | keymap: 212,157,35,171,50 |Row3Key10 O circumflex 61 | keymap: 213,173,35,187,50 |Row3Key11 O tilde 62 | keymap: 214,189,35,203,50 |Row3Key12 O diaeresis 63 | keymap: 13,205,35,238,50 |Row3Key13 return 64 | 65 | ****************** 66 | * Row 4 Keymaps * 67 | ****************** 68 | keymap: -12,1,52,35,67 |Row4Key1 shift 69 | keymap: 216,37,52,51,67 |Row4Key2 O slash 70 | keymap: 217,53,52,67,67 |Row4Key3 U grave 71 | keymap: 218,69,52,83,67 |Row4Key4 U acute 72 | keymap: 219,85,52,99,67 |Row4Key5 U circumflex 73 | keymap: 220,101,52,115,67 |Row4Key6 U diaeresis 74 | keymap: 221,117,52,131,67 |Row4Key7 Y acute 75 | keymap: 222,133,52,147,67 |Row4Key8 THORN 76 | keymap: 60,149,52,163,67 |Row4Key9 < 77 | keymap: 62,165,52,179,67 |Row4Key10 > 78 | keymap: 191,181,52,195,67 |Row4Key11 inverted question mark 79 | keymap: -12,197,52,238,67 |Row4Key12 shift 80 | 81 | ****************** 82 | * Row 5 Keymaps * 83 | ****************** 84 | keymap: -3,1,69,23,84 |Row5Key1 control 85 | keymap: -2,25,69,55,84 |Row5Key2 international 86 | keymap: 32,57,69,183,84 |Row5Key3 space 87 | keymap: -21,185,69,215,84 |Row5Key4 numeric 88 | keymap: -1,217,69,238,84 |Row5Key5 89 | 90 | *********************** 91 | * Multikey Extensions * 92 | *********************** 93 | -------------------------------------------------------------------------------- /applications/src/pixil_keyboard/keymaps/comnorm.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navit-gps/NavitTom/dce9f8ea5c7a387c2eab46d545018c6f21bf0c6a/applications/src/pixil_keyboard/keymaps/comnorm.bmp -------------------------------------------------------------------------------- /applications/src/pixil_keyboard/keymaps/comnorm.map: -------------------------------------------------------------------------------- 1 | ************************************************************************ 2 | * nxkeyboard map file automatically generated by 'buildmap' * 3 | * Image File: comnorm.bmp * 4 | * Date: Mon Dec 18 15:07:53 2000 * 5 | ************************************************************************ 6 | 7 | ****************** 8 | * Map Parameters * 9 | ****************** 10 | parms: -10,-1,-1,-1,-1,240,86 |ID,high1,high2,high3,high4,width,height 11 | 12 | ****************** 13 | * Row 1 Keymaps * 14 | ****************** 15 | keymap: 27,1,1,23,16 |Row1Key1 escape 16 | keymap: 49,25,1,39,16 |Row1Key2 1 17 | keymap: 50,41,1,55,16 |Row1Key3 2 18 | keymap: 51,57,1,71,16 |Row1Key4 3 19 | keymap: 52,73,1,87,16 |Row1Key5 4 20 | keymap: 53,89,1,103,16 |Row1Key6 5 21 | keymap: 54,105,1,119,16 |Row1Key7 6 22 | keymap: 55,121,1,135,16 |Row1Key8 7 23 | keymap: 56,137,1,151,16 |Row1Key9 8 24 | keymap: 57,153,1,167,16 |Row1Key10 9 25 | keymap: 48,169,1,183,16 |Row1Key11 0 26 | keymap: 45,185,1,199,16 |Row1Key12 - 27 | keymap: 61,201,1,215,16 |Row1Key13 = 28 | keymap: 8,217,1,238,16 |Row1Key14 backspace 29 | 30 | ****************** 31 | * Row 2 Keymaps * 32 | ****************** 33 | keymap: 9,1,18,23,33 |Row2Key1 tab 34 | keymap: 113,25,18,39,33 |Row2Key2 q 35 | keymap: 119,41,18,55,33 |Row2Key3 w 36 | keymap: 101,57,18,71,33 |Row2Key4 e 37 | keymap: 114,73,18,87,33 |Row2Key5r 38 | keymap: 116,89,18,103,33 |Row2Key6 t 39 | keymap: 121,105,18,119,33 |Row2Key7 y 40 | keymap: 117,121,18,135,33 |Row2Key8u 41 | keymap: 105,137,18,151,33 |Row2Key9 i 42 | keymap: 111,153,18,167,33 |Row2Key10 o 43 | keymap: 112,169,18,183,33 |Row2Key11 p 44 | keymap: 91,185,18,199,33 |Row2Key12 [ 45 | keymap: 93,201,18,215,33 |Row2Key13 ] 46 | keymap: 92,217,18,238,33 |Row2Key14 \ 47 | 48 | ****************** 49 | * Row 3 Keymaps * 50 | ****************** 51 | keymap: -11,1,35,27,50 |Row3Key1 caps 52 | keymap: 97,29,35,43,50 |Row3Key2 a 53 | keymap: 115,45,35,59,50 |Row3Key3 s 54 | keymap: 100,61,35,75,50 |Row3Key4 d 55 | keymap: 102,77,35,91,50 |Row3Key5 f 56 | keymap: 103,93,35,107,50 |Row3Key6 g 57 | keymap: 104,109,35,123,50 |Row3Key7h 58 | keymap: 106,125,35,139,50 |Row3Key8 j 59 | keymap: 107,141,35,155,50 |Row3Key9 k 60 | keymap: 108,157,35,171,50 |Row3Key10 l 61 | keymap: 59,173,35,187,50 |Row3Key11 ; 62 | keymap: 39,189,35,203,50 |Row3Key12 ' 63 | keymap: 13,205,35,238,50 |Row3Key13 return 64 | 65 | ****************** 66 | * Row 4 Keymaps * 67 | ****************** 68 | keymap: -2,1,52,35,67 |Row4Key1 shift 69 | keymap: 122,37,52,51,67 |Row4Key2 z 70 | keymap: 120,53,52,67,67 |Row4Key3 x 71 | keymap: 99,69,52,83,67 |Row4Key4 c 72 | keymap: 118,85,52,99,67 |Row4Key5 v 73 | keymap: 98,101,52,115,67 |Row4Key6 b 74 | keymap: 110,117,52,131,67 |Row4Key7 n 75 | keymap: 109,133,52,147,67 |Row4Key8 m 76 | keymap: 44,149,52,163,67 |Row4Key9 , 77 | keymap: 46,165,52,179,67 |Row4Key10 . 78 | keymap: 47,181,52,195,67 |Row4Key11 / 79 | keymap: -2,197,52,238,67 |Row4Key12 80 | 81 | ****************** 82 | * Row 5 Keymaps * 83 | ****************** 84 | keymap: -3,1,69,23,84 |Row5Key1 control 85 | keymap: -12,25,69,55,84 |Row5Key2 international 86 | keymap: 32,57,69,183,84 |Row5Key3 space 87 | keymap: -21,185,69,215,84 |Row5Key4 numeric 88 | keymap: -1,217,69,238,84 |Row5Key5 89 | 90 | *********************** 91 | * Multikey Extensions * 92 | *********************** 93 | -------------------------------------------------------------------------------- /applications/src/pixil_keyboard/keymaps/comnum.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navit-gps/NavitTom/dce9f8ea5c7a387c2eab46d545018c6f21bf0c6a/applications/src/pixil_keyboard/keymaps/comnum.bmp -------------------------------------------------------------------------------- /applications/src/pixil_keyboard/keymaps/comnum.map: -------------------------------------------------------------------------------- 1 | ************************************************************************ 2 | * nxkeyboard map file automatically generated by 'buildmap' * 3 | * Image File: comctrl.bmp * 4 | * Date: Mon Dec 18 15:08:06 2000 * 5 | ************************************************************************ 6 | 7 | ****************** 8 | * Map Parameters * 9 | ****************** 10 | parms: -21,56,-1,-1,-1,240,86 |ID,high1,high2,high3,high4,width,height 11 | 12 | ****************** 13 | * Row 1 Keymaps * 14 | ****************** 15 | keymap: 27,1,1,15,16 |Row1Key1 ESC 16 | keymap: 63515,17,1,31,16 |Row1Key2 F1 17 | keymap: 63516,33,1,47,16 |Row1Key3 F2 18 | keymap: 63517,49,1,63,16 |Row1Key4 F3 19 | keymap: 63518,65,1,79,16 |Row1Key5 F4 20 | keymap: 63519,81,1,95,16 |Row1Key6 F5 21 | keymap: 63520,97,1,111,16 |Row1Key7 F6 22 | keymap: 63521,113,1,127,16 |Row1Key8 F7 23 | keymap: 63522,129,1,143,16 |Row1Key9 F8 24 | keymap: 63523,145,1,159,16 |Row1Key10 F9 25 | keymap: 63524,161,1,175,16 |Row1Key11 F10 26 | keymap: 63525,177,1,191,16 |Row1Key12 F11 27 | keymap: 63526,193,1,207,16 |Row1Key13 F12 28 | keymap: 8,209,1,238,16 |Row1Key14 backspace 29 | 30 | ****************** 31 | * Row 2 Keymaps * 32 | ****************** 33 | keymap: 9,1,18,23,33 |Row2Key1 tab 34 | keymap: -1,25,18,39,33 |Row2Key2 35 | keymap: -1,41,18,55,33 |Row2Key3 36 | keymap: 63495,57,18,71,33 |Row2Key4 End 37 | keymap: -1,73,18,87,33 |Row2Key5 38 | keymap: 63490,89,18,103,33 |Row2Key6 UP 39 | keymap: -1,105,18,119,33 |Row2Key7 40 | keymap: -1,121,18,135,33 |Row2Key8 41 | keymap: 63496,137,18,151,33 |Row2Key9 PageUp 42 | keymap: -1,153,18,167,33 |Row2Key10 43 | keymap: -1,169,18,183,33 |Row2Key11 44 | keymap: -1,185,18,199,33 |Row2Key12 45 | keymap: -1,201,18,215,33 |Row2Key13 46 | keymap: -1,217,18,238,33 |Row2Key14 47 | 48 | ****************** 49 | * Row 3 Keymaps * 50 | ****************** 51 | keymap: -11,1,35,27,50 |Row3Key1 caps 52 | keymap: -1,29,35,43,50 |Row3Key2 53 | keymap: -1,45,35,59,50 |Row3Key3 54 | keymap: -1,61,35,75,50 |Row3Key4 55 | keymap: 63488,77,35,91,50 |Row3Key5 Left 56 | keymap: -1,93,35,107,50 |Row3Key6 57 | keymap: 63489,109,35,123,50 |Row3Key7 Right 58 | keymap: -1,125,35,139,50 |Row3Key8 59 | keymap: -1,141,35,155,50 |Row3Key9 60 | keymap: -1,157,35,171,50 |Row3Key10 61 | keymap: -1,173,35,187,50 |Row3Key11 62 | keymap: -1,189,35,203,50 |Row3Key12 63 | keymap: 13,205,35,238,50 |Row3Key13 return 64 | 65 | ****************** 66 | * Row 4 Keymaps * 67 | ****************** 68 | keymap: -2,1,52,35,67 |Row4Key1 shift 69 | keymap: -1,37,52,51,67 |Row4Key2 70 | keymap: 63494,53,52,67,67 |Row4Key3 Home 71 | keymap: -1,69,52,83,67 |Row4Key4 72 | keymap: 63491,85,52,99,67 |Row4Key5 Down 73 | keymap: -1,101,52,115,67 |Row4Key6 74 | keymap: -1,117,52,131,67 |Row4Key7 75 | keymap: 63497,133,52,147,67 |Row4Key8 Page Down 76 | keymap: -1,149,52,163,67 |Row4Key9 77 | keymap: -1,165,52,179,67 |Row4Key10 78 | keymap: -1,181,52,195,67 |Row4Key11 79 | keymap: -2,197,52,238,67 |Row4Key12 shift 80 | 81 | ****************** 82 | * Row 5 Keymaps * 83 | ****************** 84 | keymap: -3,1,69,23,84 |Row5Key1 control 85 | keymap: -12,25,69,55,84 |Row5Key2 international 86 | keymap: 32,57,69,183,84 |Row5Key3 space 87 | keymap: -10,185,69,215,84 |Row5Key4 numeric 88 | keymap: -1,217,69,238,84 |Row5Key5 89 | 90 | *********************** 91 | * Multikey Extensions * 92 | *********************** 93 | -------------------------------------------------------------------------------- /applications/src/pixil_keyboard/keymaps/comshft.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navit-gps/NavitTom/dce9f8ea5c7a387c2eab46d545018c6f21bf0c6a/applications/src/pixil_keyboard/keymaps/comshft.bmp -------------------------------------------------------------------------------- /applications/src/pixil_keyboard/keymaps/comshft.map: -------------------------------------------------------------------------------- 1 | ************************************************************************ 2 | * nxkeyboard map file automatically generated by 'buildmap' * 3 | * Image File: comcaps.bmp * 4 | * Date: Mon Dec 18 15:07:58 2000 * 5 | ************************************************************************ 6 | 7 | ****************** 8 | * Map Parameters * 9 | ****************** 10 | parms: -2,41,52,-1,-1,240,86 |ID,high1,high2,high3,high4,width,height 11 | 12 | ****************** 13 | * Row 1 Keymaps * 14 | ****************** 15 | keymap: 27,1,1,23,16 |Row1Key1 escape 16 | keymap: 33,25,1,39,16 |Row1Key2 ! 17 | keymap: 64,41,1,55,16 |Row1Key3 @ 18 | keymap: 35,57,1,71,16 |Row1Key4 # 19 | keymap: 36,73,1,87,16 |Row1Key5 $ 20 | keymap: 37,89,1,103,16 |Row1Key6 % 21 | keymap: 94,105,1,119,16 |Row1Key7 ^ 22 | keymap: 38,121,1,135,16 |Row1Key8 & 23 | keymap: 42,137,1,151,16 |Row1Key9 * 24 | keymap: 40,153,1,167,16 |Row1Key10 ( 25 | keymap: 41,169,1,183,16 |Row1Key11 ) 26 | keymap: 95,185,1,199,16 |Row1Key12 _ 27 | keymap: 43,201,1,215,16 |Row1Key13 + 28 | keymap: 8,217,1,238,16 |Row1Key14 backspace 29 | 30 | ****************** 31 | * Row 2 Keymaps * 32 | ****************** 33 | keymap: 9,1,18,23,33 |Row2Key1 tab 34 | keymap: 81,25,18,39,33 |Row2Key2 Q 35 | keymap: 87,41,18,55,33 |Row2Key3 W 36 | keymap: 69,57,18,71,33 |Row2Key4 E 37 | keymap: 82,73,18,87,33 |Row2Key5 R 38 | keymap: 84,89,18,103,33 |Row2Key6 T 39 | keymap: 89,105,18,119,33 |Row2Key7 Y 40 | keymap: 85,121,18,135,33 |Row2Key8 U 41 | keymap: 73,137,18,151,33 |Row2Key9 I 42 | keymap: 79,153,18,167,33 |Row2Key10 O 43 | keymap: 80,169,18,183,33 |Row2Key11 P 44 | keymap: 123,185,18,199,33 |Row2Key12 { 45 | keymap: 125,201,18,215,33 |Row2Key13 } 46 | keymap: 124,217,18,238,33 |Row2Key14 | 47 | 48 | ****************** 49 | * Row 3 Keymaps * 50 | ****************** 51 | keymap: -11,1,35,27,50 |Row3Key1 caps 52 | keymap: 65,29,35,43,50 |Row3Key2 A 53 | keymap: 83,45,35,59,50 |Row3Key3 S 54 | keymap: 68,61,35,75,50 |Row3Key4 D 55 | keymap: 70,77,35,91,50 |Row3Key5 F 56 | keymap: 71,93,35,107,50 |Row3Key6 G 57 | keymap: 72,109,35,123,50 |Row3Key7 H 58 | keymap: 74,125,35,139,50 |Row3Key8 J 59 | keymap: 75,141,35,155,50 |Row3Key9 K 60 | keymap: 76,157,35,171,50 |Row3Key10 L 61 | keymap: 58,173,35,187,50 |Row3Key11 : 62 | keymap: 34,189,35,203,50 |Row3Key12 " 63 | keymap: 13,205,35,238,50 |Row3Key13 return 64 | 65 | ****************** 66 | * Row 4 Keymaps * 67 | ****************** 68 | keymap: -10,1,52,35,67 |Row4Key1 shift 69 | keymap: 90,37,52,51,67 |Row4Key2 Z 70 | keymap: 88,53,52,67,67 |Row4Key3 X 71 | keymap: 67,69,52,83,67 |Row4Key4 C 72 | keymap: 86,85,52,99,67 |Row4Key5 V 73 | keymap: 66,101,52,115,67 |Row4Key6 B 74 | keymap: 78,117,52,131,67 |Row4Key7 N 75 | keymap: 77,133,52,147,67 |Row4Key8 M 76 | keymap: 60,149,52,163,67 |Row4Key9 < 77 | keymap: 62,165,52,179,67 |Row4Key10 > 78 | keymap: 63,181,52,195,67 |Row4Key11 ? 79 | keymap: -10,197,52,238,67 |Row4Key12 shift 80 | 81 | ****************** 82 | * Row 5 Keymaps * 83 | ****************** 84 | keymap: -3,1,69,23,84 |Row5Key1 control 85 | keymap: -4,25,69,55,84 |Row5Key2 international 86 | keymap: 32,57,69,183,84 |Row5Key space 87 | keymap: -21,185,69,215,84 |Row5Key4 numeric 88 | keymap: -1,217,69,238,84 |Row5Key5 89 | 90 | *********************** 91 | * Multikey Extensions * 92 | *********************** 93 | -------------------------------------------------------------------------------- /applications/src/pixil_keyboard/keymaps/midcaps.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navit-gps/NavitTom/dce9f8ea5c7a387c2eab46d545018c6f21bf0c6a/applications/src/pixil_keyboard/keymaps/midcaps.bmp -------------------------------------------------------------------------------- /applications/src/pixil_keyboard/keymaps/midctrl.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navit-gps/NavitTom/dce9f8ea5c7a387c2eab46d545018c6f21bf0c6a/applications/src/pixil_keyboard/keymaps/midctrl.bmp -------------------------------------------------------------------------------- /applications/src/pixil_keyboard/keymaps/midintlc.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navit-gps/NavitTom/dce9f8ea5c7a387c2eab46d545018c6f21bf0c6a/applications/src/pixil_keyboard/keymaps/midintlc.bmp -------------------------------------------------------------------------------- /applications/src/pixil_keyboard/keymaps/midintln.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navit-gps/NavitTom/dce9f8ea5c7a387c2eab46d545018c6f21bf0c6a/applications/src/pixil_keyboard/keymaps/midintln.bmp -------------------------------------------------------------------------------- /applications/src/pixil_keyboard/keymaps/midintls.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navit-gps/NavitTom/dce9f8ea5c7a387c2eab46d545018c6f21bf0c6a/applications/src/pixil_keyboard/keymaps/midintls.bmp -------------------------------------------------------------------------------- /applications/src/pixil_keyboard/keymaps/midnorm.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navit-gps/NavitTom/dce9f8ea5c7a387c2eab46d545018c6f21bf0c6a/applications/src/pixil_keyboard/keymaps/midnorm.bmp -------------------------------------------------------------------------------- /applications/src/pixil_keyboard/keymaps/midshft.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navit-gps/NavitTom/dce9f8ea5c7a387c2eab46d545018c6f21bf0c6a/applications/src/pixil_keyboard/keymaps/midshft.bmp -------------------------------------------------------------------------------- /applications/src/pixil_keyboard/keymaps/mnum.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navit-gps/NavitTom/dce9f8ea5c7a387c2eab46d545018c6f21bf0c6a/applications/src/pixil_keyboard/keymaps/mnum.bmp -------------------------------------------------------------------------------- /applications/src/pixil_keyboard/keymaps/mnum.map: -------------------------------------------------------------------------------- 1 | ************************************************************************ 2 | * nxkeyboard map file automatically generated by 'buildmap' * 3 | * Image File: mnum.bmp * 4 | * Date: Fri Dec 15 08:38:55 2000 * 5 | ************************************************************************ 6 | 7 | ****************** 8 | * Map Parameters * 9 | ****************** 10 | parms: -10,-1,-1,-1,-1,65,86 |ID,high1,high2,high3,high4,width,height 11 | 12 | ****************** 13 | * Row 1 Keymaps * 14 | ****************** 15 | keymap: 61,1,1,15,16 |Row1Key1 = 16 | keymap: 47,17,1,31,16 |Row1Key2 / 17 | keymap: 42,33,1,47,16 |Row1Key3 * 18 | keymap: 45,49,1,63,16 |Row1Key4 - 19 | 20 | ****************** 21 | * Row 2 Keymaps * 22 | ****************** 23 | keymap: 55,1,18,15,33 |Row2Key1 7 24 | keymap: 56,17,18,31,33 |Row2Key2 8 25 | keymap: 57,33,18,47,33 |Row2Key3 9 26 | keymap: 43,49,18,63,50 |Row2Key4 + 27 | 28 | ****************** 29 | * Row 3 Keymaps * 30 | ****************** 31 | keymap: 52,1,35,15,50 |Row3Key4 4 32 | keymap: 53,17,35,31,50 |Row3Key4 5 33 | keymap: 54,33,35,47,50 |Row3Key4 6 34 | 35 | ****************** 36 | * Row 4 Keymaps * 37 | ****************** 38 | keymap: 49,1,52,15,67 |Row4Key1 1 39 | keymap: 50,17,52,31,67 |Row4Key2 2 40 | keymap: 51,33,52,47,67 |Row4Key3 3 41 | keymap: 13,49,52,63,84 |Row4Key4 return 42 | 43 | ****************** 44 | * Row 5 Keymaps * 45 | ****************** 46 | keymap: 48,1,69,31,84 |Row5Key1 1 0 47 | keymap: 46,33,69,47,84 |Row5Key2 2 . 48 | 49 | *********************** 50 | * Multikey Extensions * 51 | *********************** 52 | -------------------------------------------------------------------------------- /applications/src/pixil_keyboard/keymaps/smlctrl.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navit-gps/NavitTom/dce9f8ea5c7a387c2eab46d545018c6f21bf0c6a/applications/src/pixil_keyboard/keymaps/smlctrl.bmp -------------------------------------------------------------------------------- /applications/src/pixil_keyboard/keymaps/smlctrl.map: -------------------------------------------------------------------------------- 1 | ************************************************************************ 2 | * nxkeyboard map file automatically generated by 'buildmap' * 3 | * Image File: smlctrl.bmp * 4 | * Date: Tue Dec 12 11:01:04 2000 * 5 | ************************************************************************ 6 | 7 | ****************** 8 | * Map Parameters * 9 | ****************** 10 | parms: -5,22,-1,-1,-1,160,61 |ID,high1,high2,high3,high4,width,height 11 | 12 | ****************** 13 | * Row 1 Keymaps * 14 | ****************** 15 | keymap: 17,1,1,13,14 |Row1Key1 ctrlQ 16 | keymap: 23,15,1,27,14 |Row1Key2 ctrlW 17 | keymap: 5,29,1,41,14 |Row1Key3 ctrlE 18 | keymap: 18,43,1,55,14 |Row1Key4 ctrlR 19 | keymap: 20,57,1,69,14 |Row1Key5 ctrlT 20 | keymap: 25,71,1,83,14 |Row1Key6 ctrlY 21 | keymap: 21,85,1,97,14 |Row1Key7 ctrlU 22 | keymap: 9,99,1,111,14 |Row1Key8 ctrlI 23 | keymap: 15,113,1,125,14 |Row1Key9 ctrlO 24 | keymap: 16,127,1,139,14 |Row1Key10 ctrlP 25 | keymap: 27,141,1,158,14 |Row1Key11 escape 26 | 27 | ****************** 28 | * Row 2 Keymaps * 29 | ****************** 30 | keymap: 1,1,16,13,29 |Row2Key1 ctrlA 31 | keymap: 19,15,16,27,29 |Row2Key2 ctrlS 32 | keymap: 4,29,16,41,29 |Row2Key3 ctrlD 33 | keymap: 6,43,16,55,29 |Row2Key4 ctrlF 34 | keymap: 7,57,16,69,29 |Row2Key5 ctrlG 35 | keymap: 8,71,16,83,29 |Row2Key6 ctrlH 36 | keymap: 10,85,16,97,29 |Row2Key7 ctrlJ 37 | keymap: 11,99,16,111,29 |Row2Key8 ctrlK 38 | keymap: 12,113,16,125,29 |Row2Key9 ctrlL 39 | keymap: 31,127,16,139,29 |Row2Key10 ctrl_ 40 | keymap: 13,141,16,158,29 |Row2Key11 return 41 | 42 | ****************** 43 | * Row 3 Keymaps * 44 | ****************** 45 | keymap: -20,1,31,18,44 |Row3Key1 control 46 | keymap: 26,20,31,32,44 |Row3Key2 ctrlZ 47 | keymap: 24,34,31,46,44 |Row3Key3 ctrlX 48 | keymap: 3,48,31,60,44 |Row3Key4 ctrlC 49 | keymap: 22,62,31,74,44 |Row3Key5 ctrlV 50 | keymap: 2,76,31,88,44 |Row3Key6 ctrlB 51 | keymap: 14,90,31,102,44 |Row3Key7 ctrlN 52 | keymap: 13,104,31,116,44 |Row3Key8 ctrlM 53 | keymap: 28,118,31,130,44 |Row3Key9 ctrl\ 54 | keymap: 29,132,31,144,44 |Row3Key10 ctrl] 55 | keymap: 30,146,31,158,44 |Row3Key11 ctrl^ 56 | 57 | ****************** 58 | * Row 4 Keymaps * 59 | ****************** 60 | keymap: -22,1,46,20,59 |Row4Key1 shift 61 | keymap: -1,22,46,35,59 |Row4Key2 international 62 | keymap: 32,37,46,84,59 |Row4Key3 space 63 | keymap: -21,86,46,102,59 |Row4Key4 numeric 64 | keymap: -10,104,46,116,59 |Row4Key5 65 | keymap: -1,118,46,130,59 |Row4Key6 66 | keymap: -1,132,46,144,59 |Row4Key7 67 | keymap: 31,146,46,158,59 |Row4Key8 ctrlDEL 68 | 69 | *********************** 70 | * Multikey Extensions * 71 | *********************** 72 | -------------------------------------------------------------------------------- /applications/src/pixil_keyboard/keymaps/smlnorm.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navit-gps/NavitTom/dce9f8ea5c7a387c2eab46d545018c6f21bf0c6a/applications/src/pixil_keyboard/keymaps/smlnorm.bmp -------------------------------------------------------------------------------- /applications/src/pixil_keyboard/keymaps/smlnorm.map: -------------------------------------------------------------------------------- 1 | ************************************************************************ 2 | * nxkeyboard map file automatically generated by 'buildmap' * 3 | * Image File: smlnorm.bmp * 4 | * Date: Tue Dec 12 11:01:15 2000 * 5 | ************************************************************************ 6 | 7 | ****************** 8 | * Map Parameters * 9 | ****************** 10 | parms: -20,-1,-1,-1,-1,160,61 |ID,high1,high2,high3,high4,width,height 11 | 12 | ****************** 13 | * Row 1 Keymaps * 14 | ****************** 15 | keymap: 113,1,1,13,14 |Row1Key1 q 16 | keymap: 119,15,1,27,14 |Row1Key2 w 17 | keymap: 101,29,1,41,14 |Row1Key3 e 18 | keymap: 114,43,1,55,14 |Row1Key4 r 19 | keymap: 116,57,1,69,14 |Row1Key5 t 20 | keymap: 121,71,1,83,14 |Row1Key6 y 21 | keymap: 117,85,1,97,14 |Row1Key7 u 22 | keymap: 105,99,1,111,14 |Row1Key8 i 23 | keymap: 111,113,1,125,14 |Row1Key9 o 24 | keymap: 112,127,1,139,14 |Row1Key10 p 25 | keymap: 8,141,1,158,14 |Row1Key11 backspace 26 | 27 | ****************** 28 | * Row 2 Keymaps * 29 | ****************** 30 | keymap: 91,1,16,13,29 |Row2Key1 a 31 | keymap: 115,15,16,27,29 |Row2Key2 s 32 | keymap: 100,29,16,41,29 |Row2Key3 d 33 | keymap: 102,43,16,55,29 |Row2Key4 f 34 | keymap: 103,57,16,69,29 |Row2Key5 g 35 | keymap: 104,71,16,83,29 |Row2Key6 h 36 | keymap: 106,85,16,97,29 |Row2Key7 j 37 | keymap: 107,99,16,111,29 |Row2Key8 k 38 | keymap: 108,113,16,125,29 |Row2Key9 l 39 | keymap: 45,127,16,139,29 |Row2Key10 - 40 | keymap: 13,141,16,158,29 |Row2Key11 return 41 | 42 | ****************** 43 | * Row 3 Keymaps * 44 | ****************** 45 | keymap: -5,1,31,18,44 |Row3Key1 control 46 | keymap: 122,20,31,32,44 |Row3Key2 z 47 | keymap: 120,34,31,46,44 |Row3Key3 x 48 | keymap: 99,48,31,60,44 |Row3Key4 c 49 | keymap: 118,62,31,74,44 |Row3Key5 v 50 | keymap: 98,76,31,88,44 |Row3Key6 b 51 | keymap: 110,90,31,102,44 |Row3Key7 n 52 | keymap: 109,104,31,116,44 |Row3Key8 m 53 | keymap: 44,118,31,130,44 |Row3Key9 , 54 | keymap: 46,132,31,144,44 |Row3Key10 . 55 | keymap: 59,146,31,158,44 |Row3Key11 ; 56 | 57 | ****************** 58 | * Row 4 Keymaps * 59 | ****************** 60 | keymap: -22,1,46,20,59 |Row4Key1 shift 61 | keymap: -1,22,46,35,59 |Row4Key2 international 62 | keymap: 32,37,46,84,59 |Row4Key3 space 63 | keymap: -21,86,46,102,59 |Row4Key4 numeric 64 | keymap: 39,104,46,116,59 |Row4Key5 ' 65 | keymap: 61,118,46,130,59 |Row4Key6 = 66 | keymap: 92,132,46,144,59 |Row4Key7 \ 67 | keymap: 47,146,46,158,59 |Row4Key8 / 68 | 69 | *********************** 70 | * Multikey Extensions * 71 | *********************** 72 | -------------------------------------------------------------------------------- /applications/src/pixil_keyboard/keymaps/smlnum.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navit-gps/NavitTom/dce9f8ea5c7a387c2eab46d545018c6f21bf0c6a/applications/src/pixil_keyboard/keymaps/smlnum.bmp -------------------------------------------------------------------------------- /applications/src/pixil_keyboard/keymaps/smlnum.map: -------------------------------------------------------------------------------- 1 | ************************************************************************ 2 | * nxkeyboard map file automatically generated by 'buildmap' * 3 | * Image File: smlnum.bmp * 4 | * Date: Tue Dec 12 11:01:20 2000 * 5 | ************************************************************************ 6 | 7 | ****************** 8 | * Map Parameters * 9 | ****************** 10 | parms: -21,36,-1,-1,-1,160,61 |ID,high1,high2,high3,high4,width,height 11 | 12 | ****************** 13 | * Row 1 Keymaps * 14 | ****************** 15 | keymap: 49,1,1,13,14 |Row1Key1 1 16 | keymap: 50,15,1,27,14 |Row1Key2 2 17 | keymap: 51,29,1,41,14 |Row1Key3 3 18 | keymap: 52,43,1,55,14 |Row1Key4 4 19 | keymap: 53,57,1,69,14 |Row1Key5 5 20 | keymap: 54,71,1,83,14 |Row1Key6 6 21 | keymap: 55,85,1,97,14 |Row1Key7 7 22 | keymap: 56,99,1,111,14 |Row1Key8 8 23 | keymap: 57,113,1,125,14 |Row1Key9 9 24 | keymap: 48,127,1,139,14 |Row1Key10 0 25 | keymap: 8,141,1,158,14 |Row1Key11 backspace 26 | 27 | ****************** 28 | * Row 2 Keymaps * 29 | ****************** 30 | keymap: 33,1,16,13,29 |Row2Key1 ! 31 | keymap: 64,15,16,27,29 |Row2Key2 @ 32 | keymap: 35,29,16,41,29 |Row2Key3 # 33 | keymap: 36,43,16,55,29 |Row2Key4 $ 34 | keymap: 37,57,16,69,29 |Row2Key5 % 35 | keymap: 94,71,16,83,29 |Row2Key6 ^ 36 | keymap: 38,85,16,97,29 |Row2Key7 & 37 | keymap: 42,99,16,111,29 |Row2Key8 * 38 | keymap: 40,113,16,125,29 |Row2Key9 ( 39 | keymap: 41,127,16,139,29 |Row2Key10 ) 40 | keymap: 13,141,16,158,29 |Row2Key11 return 41 | 42 | ****************** 43 | * Row 3 Keymaps * 44 | ****************** 45 | keymap: -5,1,31,18,44 |Row3Key1 control 46 | keymap: 1024,20,31,32,44 |Row3Key2 F1 47 | keymap: 1025,34,31,46,44 |Row3Key3 F2 48 | keymap: 1026,48,31,60,44 |Row3Key4 F3 49 | keymap: 1027,62,31,74,44 |Row3Key5 F4 50 | keymap: 1028,76,31,88,44 |Row3Key6 F5 51 | keymap: 1029,90,31,102,44 |Row3Key7 F6 52 | keymap: 1030,104,31,116,44 |Row3Key8 F7 53 | keymap: 1031,118,31,130,44 |Row3Key9 F8 54 | keymap: 96,132,31,144,44 |Row3Key10 ` 55 | keymap: 126,146,31,158,44 |Row3Key11 ~ 56 | 57 | ****************** 58 | * Row 4 Keymaps * 59 | ****************** 60 | keymap: -22,1,46,20,59 |Row4Key1 shift 61 | keymap: -1,22,46,35,59 |Row4Key2 international 62 | keymap: 32,37,46,84,59 |Row4Key3 space 63 | keymap: -20,86,46,102,59 |Row4Key4 numeric 64 | keymap: 91,104,46,116,59 |Row4Key5 [ 65 | keymap: 93,118,46,130,59 |Row4Key6 ] 66 | keymap: 123,132,46,144,59 |Row4Key7 { 67 | keymap: 125,146,46,158,59 |Row4Key8 } 68 | 69 | *********************** 70 | * Multikey Extensions * 71 | *********************** 72 | 73 | * function key extensions (F1 thru F8) 74 | multi:1024,\[OP 75 | multi:1025,\[OQ 76 | multi:1026,\[OR 77 | multi:1027,\[OS 78 | multi:1028,\[[15~ 79 | multi:1029,\[[17~ 80 | multi:1030,\[[18~ 81 | multi:1031,\[[19~ 82 | -------------------------------------------------------------------------------- /applications/src/pixil_keyboard/keymaps/smlshft.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navit-gps/NavitTom/dce9f8ea5c7a387c2eab46d545018c6f21bf0c6a/applications/src/pixil_keyboard/keymaps/smlshft.bmp -------------------------------------------------------------------------------- /applications/src/pixil_keyboard/keymaps/smlshft.map: -------------------------------------------------------------------------------- 1 | ************************************************************************ 2 | * nxkeyboard map file automatically generated by 'buildmap' * 3 | * Image File: smlshft.bmp * 4 | * Date: Tue Dec 12 11:01:25 2000 * 5 | ************************************************************************ 6 | 7 | ****************** 8 | * Map Parameters * 9 | ****************** 10 | parms: -22,33,-1,-1,-1,160,61 |ID,high1,high2,high3,high4,width,height 11 | 12 | ****************** 13 | * Row 1 Keymaps * 14 | ****************** 15 | keymap: 81,1,1,13,14 |Row1Key1 Q 16 | keymap: 87,15,1,27,14 |Row1Key2 W 17 | keymap: 69,29,1,41,14 |Row1Key3 E 18 | keymap: 82,43,1,55,14 |Row1Key4 R 19 | keymap: 84,57,1,69,14 |Row1Key5 T 20 | keymap: 89,71,1,83,14 |Row1Key6 Y 21 | keymap: 85,85,1,97,14 |Row1Key7 U 22 | keymap: 73,99,1,111,14 |Row1Key8 I 23 | keymap: 79,113,1,125,14 |Row1Key9 O 24 | keymap: 80,127,1,139,14 |Row1Key10 P 25 | keymap: 8,141,1,158,14 |Row1Key11 backspace 26 | 27 | ****************** 28 | * Row 2 Keymaps * 29 | ****************** 30 | keymap: 65,1,16,13,29 |Row2Key1 A 31 | keymap: 83,15,16,27,29 |Row2Key2 S 32 | keymap: 68,29,16,41,29 |Row2Key3 D 33 | keymap: 70,43,16,55,29 |Row2Key4 F 34 | keymap: 71,57,16,69,29 |Row2Key5 G 35 | keymap: 72,71,16,83,29 |Row2Key6 H 36 | keymap: 74,85,16,97,29 |Row2Key7 J 37 | keymap: 75,99,16,111,29 |Row2Key8 K 38 | keymap: 76,113,16,125,29 |Row2Key9 L 39 | keymap: 95,127,16,139,29 |Row2Key10 _ 40 | keymap: 13,141,16,158,29 |Row2Key11 return 41 | 42 | ****************** 43 | * Row 3 Keymaps * 44 | ****************** 45 | keymap: -5,1,31,18,44 |Row3Key1 control 46 | keymap: 90,20,31,32,44 |Row3Key2 Z 47 | keymap: 88,34,31,46,44 |Row3Key3 X 48 | keymap: 67,48,31,60,44 |Row3Key4 C 49 | keymap: 86,62,31,74,44 |Row3Key5 V 50 | keymap: 66,76,31,88,44 |Row3Key6 B 51 | keymap: 78,90,31,102,44 |Row3Key7 N 52 | keymap: 77,104,31,116,44 |Row3Key8 M 53 | keymap: 60,118,31,130,44 |Row3Key9 < 54 | keymap: 62,132,31,144,44 |Row3Key10 > 55 | keymap: 58,146,31,158,44 |Row3Key11 : 56 | 57 | ****************** 58 | * Row 4 Keymaps * 59 | ****************** 60 | keymap: -20,1,46,20,59 |Row4Key1 shift 61 | keymap: -1,22,46,35,59 |Row4Key2 international 62 | keymap: 32,37,46,84,59 |Row4Key3 space 63 | keymap: -21,86,46,102,59 |Row4Key4 numeric 64 | keymap: 34,104,46,116,59 |Row4Key5 " 65 | keymap: 43,118,46,130,59 |Row4Key6 + 66 | keymap: 124,132,46,144,59 |Row4Key7 | 67 | keymap: 63,146,46,158,59 |Row4Key8 ? 68 | 69 | *********************** 70 | * Multikey Extensions * 71 | *********************** 72 | -------------------------------------------------------------------------------- /applications/src/pixil_keyboard/keymaps/snum.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navit-gps/NavitTom/dce9f8ea5c7a387c2eab46d545018c6f21bf0c6a/applications/src/pixil_keyboard/keymaps/snum.bmp -------------------------------------------------------------------------------- /applications/src/pixil_keyboard/keymaps/snum.map: -------------------------------------------------------------------------------- 1 | ************************************************************************ 2 | * nxkeyboard map file automatically generated by 'buildmap' * 3 | * Image File: snum.bmp * 4 | * Date: Fri Dec 15 08:38:49 2000 * 5 | ************************************************************************ 6 | 7 | ****************** 8 | * Map Parameters * 9 | ****************** 10 | parms: -10,-1,-1,-1,-1,57,76 |ID,high1,high2,high3,high4,width,height 11 | 12 | ****************** 13 | * Row 1 Keymaps * 14 | ****************** 15 | keymap: 61,1,1,13,14 |Row1Key1 = 16 | keymap: 47,15,1,27,14 |Row1Key2 / 17 | keymap: 42,29,1,41,14 |Row1Key3 * 18 | keymap: 45,43,1,55,14 |Row1Key4 - 19 | 20 | ****************** 21 | * Row 2 Keymaps * 22 | ****************** 23 | keymap: 55,1,16,13,29 |Row2Key1 7 24 | keymap: 56,15,16,27,29 |Row2Key2 8 25 | keymap: 57,29,16,41,29 |Row2Key3 9 26 | keymap: 43,43,16,55,44 |Row2Key4 + 27 | 28 | ****************** 29 | * Row 3 Keymaps * 30 | ****************** 31 | keymap: 52,1,31,13,44 |Row3Key1 4 32 | keymap: 53,15,31,27,44 |Row3Key2 5 33 | keymap: 54,29,31,41,44 |Row3Key3 6 34 | 35 | ****************** 36 | * Row 4 Keymaps * 37 | ****************** 38 | keymap: 49,1,46,13,59 |Row4Key1 1 39 | keymap: 50,15,46,27,59 |Row4Key2 2 40 | keymap: 51,29,46,41,59 |Row4Key3 3 41 | keymap: 13,43,46,55,74 |Row4Key4 return 42 | 43 | ****************** 44 | * Row 5 Keymaps * 45 | ****************** 46 | keymap: 48,1,61,27,74 |Row5Key1 0 47 | keymap: 46,29,6141,74 |Row5Key2 . 48 | 49 | *********************** 50 | * Multikey Extensions * 51 | *********************** 52 | -------------------------------------------------------------------------------- /applications/src/pixil_keyboard/srvconn.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003 Century Software, Inc. All Rights Reserved. 3 | * 4 | * This file is part of the PIXIL Operating Environment 5 | * 6 | * The use, copying and distribution of this file is governed by one 7 | * of two licenses, the PIXIL Commercial License, or the GNU General 8 | * Public License, version 2. 9 | * 10 | * Licensees holding a valid PIXIL Commercial License may use this file 11 | * in accordance with the PIXIL Commercial License Agreement provided 12 | * with the Software. Others are governed under the terms of the GNU 13 | * General Public License version 2. 14 | * 15 | * This file may be distributed and/or modified under the terms of the 16 | * GNU General Public License version 2 as published by the Free 17 | * Software Foundation and appearing in the file LICENSE.GPL included 18 | * in the packaging of this file. 19 | * 20 | * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING 21 | * THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A 22 | * PARTICULAR PURPOSE. 23 | * 24 | * RESTRICTED RIGHTS LEGEND 25 | * 26 | * Use, duplication, or disclosure by the government is subject to 27 | * restriction as set forth in paragraph (b)(3)(b) of the Rights in 28 | * Technical Data and Computer Software clause in DAR 7-104.9(a). 29 | * 30 | * See http://www.pixil.org/gpl/ for GPL licensing 31 | * information. 32 | * 33 | * See http://www.pixil.org/license.html or 34 | * email cetsales@centurysoftware.com for information about the PIXIL 35 | * Commercial License Agreement, or if any conditions of this licensing 36 | * are not clear to you. 37 | */ 38 | 39 | 40 | 41 | /* Copyright (C) 2000 by VTech Informations LTD. 42 | * Vladimir Cotfas Aug 31, 2000 43 | */ 44 | 45 | #include 46 | #include 47 | #include 48 | #include 49 | 50 | #define KBDPIPE 0 /* =1 to use named pipe for soft kbd */ 51 | 52 | #if KBDPIPE 53 | static char KBD_NAMED_PIPE[] = "/tmp/.nano-X-softkbd"; 54 | static int kbd_fd = -1; 55 | 56 | int 57 | KbdOpen(void) 58 | { 59 | if (kbd_fd != -1) 60 | close(kbd_fd); 61 | 62 | if ((kbd_fd = open(KBD_NAMED_PIPE, O_WRONLY)) < 0) 63 | return -1; 64 | 65 | return kbd_fd; 66 | } 67 | 68 | void 69 | KbdClose(void) 70 | { 71 | if (kbd_fd >= 0) { 72 | close(kbd_fd); 73 | kbd_fd = -1; 74 | } 75 | } 76 | 77 | int 78 | KbdWrite(int c) 79 | { 80 | char cc = c & 0xff; 81 | 82 | return write(kbd_fd, &cc, 1); 83 | } 84 | 85 | #else /* !KBDPIPE */ 86 | 87 | int 88 | KbdOpen(void) 89 | { 90 | return 0; 91 | } 92 | 93 | void 94 | KbdClose(void) 95 | { 96 | } 97 | 98 | int 99 | KbdWrite(int c, int pushed) 100 | { 101 | GR_WINDOW_ID win = GrGetFocus(); 102 | 103 | /* FIXME: modifiers are incorrect */ 104 | // fprintf(stderr, "nxkeyboard.KbdWrite(%d == '%c', %d)\n", c, c, pushed); 105 | GrInjectKeyboardEvent(win, c, 0, c, pushed); 106 | //GrInjectKeyboardEvent(win, c, 0, 0, 0); 107 | return 1; 108 | } 109 | #endif /* KBDPIPE */ 110 | -------------------------------------------------------------------------------- /applications/src/tools/Makefile: -------------------------------------------------------------------------------- 1 | TOOLS= espeakdsp dogfeed nxloadmon flkill flmessage nxlight \ 2 | nx_bat_monitor_console nx_bat_monitor \ 3 | power_button editor fonts flchoose 4 | 5 | all: $(TOOLS) 6 | 7 | install: $(TOOLS) 8 | cp $(TOOLS) $(TOMDIST)/bin 9 | 10 | clean: 11 | rm -f $(TOOLS) 12 | 13 | %: %.c 14 | $(CC) -o $@ -I$(ROOT)/kernel/include $@.c -lnano-X 15 | 16 | %: %.cxx 17 | $(CXX) -o $@ $@.cxx -lfltk -lfltk_images 18 | -------------------------------------------------------------------------------- /applications/src/tools/dogfeed.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | 6 | int main(int argc, char* argv[]) 7 | { 8 | int fd; 9 | 10 | if((fd = open("/dev/watchdog", O_RDWR | O_NOCTTY)) < 0) { 11 | fprintf(stderr, "could not open watchdog: %s", strerror(errno)); 12 | return 1; 13 | } 14 | 15 | while(1) { 16 | write(fd, "\0", 1); 17 | sleep(15); // Perhaps 13 would be safer... 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /applications/src/tools/editor.cxx: -------------------------------------------------------------------------------- 1 | ../../../build/fltk-1.3.2/test/editor.cxx -------------------------------------------------------------------------------- /applications/src/tools/espeakdsp.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include 10 | 11 | #define ESPEAKPATH "/mnt/sdcard/opentom/bin/espeak" 12 | #define IBUFFERLEN 1024 13 | #define MAXARGC 30 14 | 15 | 16 | int main(int argc, char *argv[],char *envp[]) 17 | { 18 | int pipefd[2]; 19 | pid_t cpid; 20 | char buf; 21 | int co,wp,l,fh; 22 | short bufi[IBUFFERLEN],bufo[IBUFFERLEN*2]; 23 | int rate=22050; 24 | 25 | char *newargv[MAXARGC+2]; 26 | 27 | for(co=0;co=MAXARGC)break; 30 | newargv[co]=argv[co]; 31 | } 32 | newargv[co++]="--stdout"; 33 | newargv[co++]=NULL; 34 | 35 | if (pipe(pipefd) == -1) 36 | { 37 | perror("pipe"); 38 | exit(EXIT_FAILURE); 39 | } 40 | 41 | if(setpriority(PRIO_PROCESS,0,-10)) 42 | perror ("setpriority"); 43 | 44 | cpid = fork(); 45 | if (cpid == -1) 46 | { 47 | perror("fork"); 48 | exit(EXIT_FAILURE); 49 | } 50 | 51 | if (cpid == 0) 52 | { /* Child writes to pipe */ 53 | 54 | close(pipefd[0]); /* Close unused read end */ 55 | dup2(pipefd[1],1); 56 | execve(ESPEAKPATH,newargv,envp); 57 | perror(ESPEAKPATH); 58 | close(pipefd[1]); /* Reader will see EOF */ 59 | wait(NULL); /* Wait for child */ 60 | exit(EXIT_SUCCESS); 61 | 62 | } else { /* Parent read from pipe */ 63 | 64 | close(pipefd[1]); /* Close unused write end */ 65 | 66 | l=read(pipefd[0],bufi,64); 67 | if(memcmp(bufi,"RIFF",4)) 68 | { 69 | while(l>0) 70 | { 71 | write(1,bufi,l); 72 | l=read(pipefd[0],bufi,IBUFFERLEN); 73 | } 74 | exit(EXIT_SUCCESS); 75 | } 76 | l=read(pipefd[0],bufi,IBUFFERLEN); 77 | 78 | fh=open("/dev/dsp",O_WRONLY); 79 | if(fh<0) 80 | { 81 | perror("open /dev/dsp"); 82 | exit(EXIT_FAILURE); 83 | } 84 | ioctl(fh, SNDCTL_DSP_SPEED , &rate); 85 | ioctl(fh, SNDCTL_DSP_SYNC, 0); 86 | while(l) 87 | { 88 | for(co=0,wp=0;(costereo */ 91 | bufo[wp++]=bufi[co]; 92 | } 93 | write (fh,bufo,wp); 94 | l=read(pipefd[0],bufi,IBUFFERLEN); 95 | } 96 | ioctl(fh, SNDCTL_DSP_SYNC, 0); 97 | close(pipefd[0]); 98 | exit(EXIT_SUCCESS); 99 | } 100 | } 101 | 102 | -------------------------------------------------------------------------------- /applications/src/tools/flchoose.cxx: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | #include 6 | #include 7 | 8 | int main(int argc, char **argv) { 9 | int opt; 10 | Fl_Native_File_Chooser fnfc; 11 | fnfc.type(Fl_Native_File_Chooser::BROWSE_FILE); 12 | fnfc.title("Open file"); 13 | 14 | while ((opt = getopt(argc, argv, "hdmt:e:")) != -1) { 15 | switch (opt) { 16 | case 't': fnfc.title(optarg); break; 17 | case 'e': fnfc.filter(optarg); break; 18 | case 'd': fnfc.type(Fl_Native_File_Chooser::BROWSE_DIRECTORY); break; 19 | case 'm': fnfc.type(Fl_Native_File_Chooser::BROWSE_MULTI_FILE); break; 20 | case 'h': 21 | default: 22 | fprintf(stderr, "Usage: fl_choosefile [ -h ] [-d|m] [ -e 'suffix' ] [ -t 'window title' ]\n"); 23 | return 1; 24 | } 25 | } 26 | 27 | if ( fnfc.show() ) return 1; 28 | printf("%s", fnfc.filename()); 29 | return 0; 30 | } 31 | -------------------------------------------------------------------------------- /applications/src/tools/flmessage.cxx: -------------------------------------------------------------------------------- 1 | /* 2 | * OpenTom flmessage 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Library General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA 17 | */ 18 | 19 | #include 20 | #include 21 | #include 22 | #include 23 | #include 24 | 25 | #define CHUNK 1024 26 | #define ARG_STDIN 1 27 | #define ARG_YESNO 2 28 | #define ARG_TITLE 4 29 | #define ARG_INPUT 8 30 | 31 | void usage() 32 | { 33 | fprintf(stderr, "Usage: xmessage [ -s ] [ -y ] [ -i ] [ -d \"default value\" ] [ -t \"title\" ] \"msg\"\n"); 34 | exit( 1); 35 | } 36 | 37 | int main(int argc, char **argv) 38 | { 39 | int opt, flags = 0; 40 | char *msg = 0, *def_val = 0, *title; 41 | const char *res; 42 | size_t len, readed = 0; 43 | 44 | if ( argc == 1 ) { 45 | usage(); 46 | } 47 | while ((opt = getopt(argc, argv, "hsyt:id:")) != -1) { 48 | switch (opt) { 49 | case 's': flags |= ARG_STDIN; break; 50 | case 'y': flags |= ARG_YESNO; break; 51 | case 't': fl_message_title(optarg); break; 52 | case 'i': flags |= ARG_INPUT; break; 53 | case 'd': def_val = optarg; break; 54 | case 'h': usage(); 55 | } 56 | } 57 | 58 | if ( flags & ARG_STDIN) { 59 | msg = (char *)malloc( CHUNK); 60 | while ( (len = read(0, &msg[readed], CHUNK)) == CHUNK) { 61 | readed += len; 62 | msg = (char *)realloc( msg, readed + CHUNK); 63 | } 64 | } else if( optind == argc ) usage(); else msg = argv[optind]; 65 | 66 | if (flags & ARG_INPUT) { 67 | res = fl_input( msg, def_val, NULL); 68 | if ( res) printf("%s", res); 69 | return ! (res && *res); 70 | } 71 | 72 | if ( flags & ARG_YESNO ) return ! fl_ask( msg); 73 | else fl_message( msg); 74 | 75 | return 0; 76 | } 77 | -------------------------------------------------------------------------------- /applications/src/tools/fonts.cxx: -------------------------------------------------------------------------------- 1 | ../../../build/fltk-1.3.2/test/fonts.cxx -------------------------------------------------------------------------------- /applications/src/tools/nx_bat_monitor.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | #include 6 | #include 7 | 8 | #define MWINCLUDECOLORS 9 | #include 10 | 11 | #include 12 | char *bat_status[] = { "NO_POWER", "COMPLET", "CHARGING" }; 13 | 14 | void enable_charge(int fd) 15 | { 16 | if (ioctl(fd, IO_ENABLE_CHARGING) == -1) 17 | { 18 | perror("IO_ENABLE_CHARGING"); 19 | } 20 | } 21 | 22 | void disable_charging(int fd) 23 | { 24 | if (ioctl(fd, IO_DISABLE_CHARGING) == -1) 25 | { 26 | perror("IO_DISABLE_CHARGING"); 27 | } 28 | } 29 | 30 | int main(int argc, char *argv[]) 31 | { 32 | if (GrOpen() < 0) { 33 | fprintf(stderr, "Cannot open graphics\n"); 34 | return 1; 35 | } 36 | 37 | int fd = open("/dev/battery", O_RDWR); 38 | if (fd == -1) 39 | { 40 | perror("/dev/battery"); 41 | return 1; 42 | } 43 | BATTERY_STATUS s; 44 | ioctl(fd, IOR_BATTERY_STATUS, &s); 45 | 46 | GR_WINDOW_ID wid; /* window id */ 47 | GR_GC_ID gc; /* graphics context id */ 48 | GR_EVENT event; /* current event */ 49 | GR_WINDOW_INFO info; 50 | 51 | char buff[1024]; 52 | int i, notquit = 1; 53 | 54 | wid = GrNewWindow(GR_ROOT_WINDOW_ID, 50, 50, 165, 55, 1, BLACK, WHITE); 55 | GR_WM_PROPERTIES props; 56 | props.title = "Nx Battery"; 57 | props.flags = GR_WM_FLAGS_TITLE; 58 | GrSetWMProperties( wid, &props); 59 | GrSelectEvents(wid, GR_EVENT_MASK_CLOSE_REQ | GR_EVENT_MASK_EXPOSURE); 60 | GrMapWindow(wid); 61 | gc = GrNewGC(); 62 | 63 | while (notquit) { 64 | GrGetNextEventTimeout(&event, 5000); 65 | switch (event.type) { 66 | case GR_EVENT_TYPE_CLOSE_REQ: 67 | notquit = 0; 68 | break; 69 | case GR_EVENT_TYPE_TIMEOUT: 70 | ioctl(fd, IOR_BATTERY_STATUS, &s); 71 | case GR_EVENT_TYPE_EXPOSURE: 72 | GrGetWindowInfo(wid, &info); 73 | GrSetGCBackground(gc, WHITE); 74 | GrSetGCForeground(gc, WHITE); 75 | GrFillRect(wid, gc, 0, 0, info.width, info.height); 76 | GrSetGCForeground(gc, BLACK); 77 | 78 | if (ioctl(fd, IOR_BATTERY_STATUS, &s) == -1) { 79 | sprintf(buff,"IOR_BATTERY_STATUS"); 80 | 81 | } else 82 | for ( i = 0; i < 3; i++) { 83 | switch (i) { 84 | case 0: sprintf(buff, "Battery Voltage = %d mV", s.u16BatteryVoltage); 85 | break; 86 | case 1: sprintf(buff, "Charge Current = %d mA", s.u16ChargeCurrent); 87 | break; 88 | case 2: sprintf(buff, "ChargeStatus = (%d) %s", s.u8ChargeStatus, bat_status[s.u8ChargeStatus]); 89 | } 90 | GrText(wid, gc, 5, 15+i*15, buff, strlen(buff), MWTF_ASCII); 91 | } 92 | } 93 | } 94 | close(fd); 95 | return 0; 96 | } 97 | -------------------------------------------------------------------------------- /applications/src/tools/nx_bat_monitor_console.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | #include 6 | #include 7 | 8 | #include 9 | 10 | // voir la doc applications/doc/ I/Oo control in Linux.html 11 | 12 | void get_vars(int fd) 13 | { 14 | BATTERY_STATUS s; 15 | 16 | if (ioctl(fd, IOR_BATTERY_STATUS, &s) == -1) 17 | { 18 | perror("IOR_BATTERY_STATUS"); 19 | } 20 | else 21 | { 22 | printf("Battery Voltage = %d\nCharge Current = %d\nChargeStatus = %d\n", s.u16BatteryVoltage, s.u16ChargeCurrent, s.u8ChargeStatus); 23 | } 24 | } 25 | 26 | void enable_charge(int fd) 27 | { 28 | if (ioctl(fd, IO_ENABLE_CHARGING) == -1) 29 | { 30 | perror("IO_ENABLE_CHARGING"); 31 | } 32 | } 33 | 34 | void disable_charging(int fd) 35 | { 36 | if (ioctl(fd, IO_DISABLE_CHARGING) == -1) 37 | { 38 | perror("IO_DISABLE_CHARGING"); 39 | } 40 | } 41 | 42 | int main(int argc, char *argv[]) 43 | { 44 | char *file_name = "/dev/battery"; 45 | int fd; 46 | enum 47 | { 48 | e_get, 49 | e_clr, 50 | e_set 51 | } option; 52 | 53 | if (argc == 1) 54 | { 55 | option = e_get; 56 | } 57 | else if (argc == 2) 58 | { 59 | if (strcmp(argv[1], "-g") == 0) 60 | { 61 | option = e_get; 62 | } 63 | else if (strcmp(argv[1], "-c") == 0) 64 | { 65 | option = e_clr; 66 | } 67 | else if (strcmp(argv[1], "-s") == 0) 68 | { 69 | option = e_set; 70 | } 71 | else 72 | { 73 | fprintf(stderr, "Usage: %s [-g | -c | -s]\n", argv[0]); 74 | return 1; 75 | } 76 | } 77 | else 78 | { 79 | fprintf(stderr, "Usage: %s [-g | -c | -s]\n", argv[0]); 80 | return 1; 81 | } 82 | fd = open(file_name, O_RDWR); 83 | if (fd == -1) 84 | { 85 | perror("query_apps open"); 86 | return 2; 87 | } 88 | 89 | switch (option) 90 | { 91 | case e_get: 92 | get_vars(fd); 93 | break; 94 | case e_clr: 95 | disable_charging(fd); 96 | break; 97 | case e_set: 98 | enable_charge(fd); 99 | break; 100 | default: 101 | break; 102 | } 103 | 104 | close (fd); 105 | 106 | return 0; 107 | } 108 | -------------------------------------------------------------------------------- /applications/src/tools/nxlight.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | #include 6 | #include 7 | #include 8 | #define MWINCLUDECOLORS 9 | #include 10 | 11 | #define HEIGHT 40 12 | 13 | char *bri_name = "/sys/class/backlight/s3c/brightness"; 14 | 15 | int read_val(char *filename) { 16 | char buff[10]; 17 | int len; 18 | 19 | int fd = open(filename, O_RDONLY); 20 | if ( (len=read(fd, &buff, 9)) <= 0) { 21 | perror(filename); 22 | return -1; 23 | } else { 24 | buff[len]=0; 25 | printf("read_val = '%s'\n", buff); 26 | return atoi(buff); 27 | } 28 | } 29 | 30 | 31 | int main() 32 | { 33 | int fd = open(bri_name, O_WRONLY); 34 | if ( fd < 0) { 35 | perror(bri_name); 36 | return 1; 37 | } 38 | 39 | char buff[10]; 40 | int notquit = 1, val= read_val(bri_name), max = read_val("/sys/class/backlight/s3c/max_brightness"); 41 | 42 | if ( max <= 0) return 1; 43 | 44 | GR_WINDOW_ID wid; /* window id */ 45 | GR_GC_ID gc; /* graphics context id */ 46 | GR_EVENT event; /* current event */ 47 | GR_SCREEN_INFO si; /* screen information */ 48 | 49 | if (GrOpen() < 0) { 50 | fprintf(stderr, "Cannot open graphics\n"); 51 | return 1; 52 | } 53 | 54 | GrGetScreenInfo(&si); 55 | printf("R=%d C=%d\n", si.rows, si.cols); 56 | 57 | wid = GrNewWindow(GR_ROOT_WINDOW_ID, 50, 50, max, HEIGHT, 1, BLACK, WHITE); 58 | 59 | GR_WM_PROPERTIES props; 60 | props.title = "Nx Light"; 61 | props.flags = GR_WM_FLAGS_TITLE; 62 | GrSetWMProperties( wid, &props); 63 | 64 | GrSelectEvents(wid, GR_EVENT_MASK_CLOSE_REQ | 65 | GR_EVENT_MASK_EXPOSURE | GR_EVENT_MASK_MOUSE_MOTION | 66 | GR_EVENT_MASK_BUTTON_UP | GR_EVENT_MASK_BUTTON_DOWN ); 67 | GrMapWindow(wid); 68 | gc = GrNewGC(); 69 | 70 | while (notquit) { 71 | GrGetNextEvent(&event); 72 | switch (event.type) { 73 | case GR_EVENT_TYPE_MOUSE_MOTION: 74 | if ( !((GR_EVENT_MOUSE *)&event)->buttons ) break; 75 | if ( (event.mouse.x > 0) && (event.mouse.x < max)) { 76 | snprintf(buff, 9, "%d\n", val = event.mouse.x); 77 | write( fd, buff, strlen(buff)); 78 | } 79 | GrSetGCForeground(gc, WHITE); 80 | GrFillRect(wid, gc, 0, 0, val, HEIGHT); 81 | GrSetGCForeground(gc, BLACK); 82 | GrFillRect(wid, gc, val, 0, max+1, HEIGHT); 83 | 84 | break; 85 | case GR_EVENT_TYPE_EXPOSURE: 86 | if (event.exposure.wid == wid) 87 | GrSetGCForeground(gc, WHITE); 88 | GrFillRect(wid, gc, 0, 0, val, HEIGHT); 89 | GrSetGCForeground(gc, BLACK); 90 | GrFillRect(wid, gc, val, 0, max+1, HEIGHT); 91 | break; 92 | case GR_EVENT_TYPE_CLOSE_REQ: 93 | notquit = 0; 94 | } 95 | } 96 | close(fd); 97 | return 0; 98 | } 99 | -------------------------------------------------------------------------------- /applications/src/tools/power_button.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include 10 | 11 | #define ID_BUTTON 1 12 | #define ID_LOWBATT 8192 13 | 14 | int pollStatus(int devHWStatus) 15 | { 16 | HARDWARE_STATUS hwstatus; 17 | 18 | if (ioctl(devHWStatus, IOR_HWSTATUS, &hwstatus) < 0) { 19 | fprintf(stderr, "Could not read hardware status: %s", strerror(errno)); 20 | return -1; 21 | } 22 | 23 | return hwstatus.u8InputStatus; 24 | } 25 | 26 | int resetStatus(int devHWStatus) 27 | { 28 | UINT32 status = 0; 29 | 30 | if (ioctl(devHWStatus, IOW_RESET_ONOFF_STATE, &status) < 0) { 31 | fprintf(stderr, "Could not read hardware status: %s", strerror(errno)); 32 | return -1; 33 | } 34 | 35 | return 0; 36 | } 37 | 38 | int waitButton(int devHWStatus, char *envp[], char *bjob, char *ljob) 39 | { 40 | int result, cpid; 41 | char *job; 42 | 43 | while (1) { 44 | resetStatus(devHWStatus); 45 | sleep(1); 46 | while (((result = pollStatus(devHWStatus)) & (ID_LOWBATT | ID_BUTTON)) == 0) { 47 | sleep(1); 48 | } 49 | job = ljob; 50 | if (result & ID_BUTTON) { 51 | job = bjob; 52 | } 53 | 54 | if (job == NULL) { 55 | if ((result & ID_BUTTON) == 0) { 56 | continue; 57 | } 58 | return result; 59 | } 60 | cpid = fork(); 61 | if (cpid == -1) { 62 | perror("fork"); 63 | return -1; 64 | } 65 | if (cpid == 0) { 66 | execve(job, NULL, envp); 67 | perror(job); 68 | return -1; 69 | } 70 | wait(NULL); 71 | } 72 | return 0; 73 | } 74 | 75 | int main(int argc, char **argv, char *envp[]) 76 | { 77 | UINT32 status = 0; 78 | 79 | int fd = open("/dev/hwstatus", O_RDONLY); 80 | if (fd == -1) { 81 | perror("/dev/hwstatus"); 82 | return 2; 83 | } 84 | 85 | if (argc > 1) { 86 | if (strncmp(argv[1], "-r", 2) == 0) { 87 | if (resetStatus(fd)) { 88 | return -1; 89 | } 90 | printf("Resetting ON/OFF state: OK\n"); 91 | } else if (strncmp(argv[1], "-b", 2) == 0) { 92 | return waitButton(fd, envp, (argc > 2 ? argv[2] : NULL), (argc > 3 ? argv[3] : NULL)); 93 | } else { 94 | printf("Usage: %s [-r]\n", argv[0]); 95 | printf("Usage: %s -b [button_command [low_batt_command]]\n", argv[0]); 96 | return -1; 97 | } 98 | } else { 99 | printf("Input status: %d\n", pollStatus(fd)); 100 | } 101 | 102 | return 0; 103 | } 104 | -------------------------------------------------------------------------------- /configs/etc_rc_file: -------------------------------------------------------------------------------- 1 | etc_rc_file.switch_root.minix -------------------------------------------------------------------------------- /configs/etc_rc_file.pivot_root_minix: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | echo Runnning \(ttsystem\) etc/rc ... 4 | 5 | ext2p=mmcblk0p3 6 | 7 | mount -n -t proc none /proc 8 | while ! cat /proc/partitions | grep $ext2p; do echo Waiting for SD; sleep 1; done 9 | umount /proc 10 | 11 | mount -o ro -t minix /dev/$ext2p /tmp 12 | cd /tmp 13 | /tmp/sbin/pivot_root . tmp 14 | exec usr/sbin/chroot . /etc/rc < dev/console > dev/console 2>&1 15 | 16 | -------------------------------------------------------------------------------- /configs/install_links.txt: -------------------------------------------------------------------------------- 1 | /bin/cat 2 | /bin/chgrp 3 | /bin/chmod 4 | /bin/cp 5 | /bin/date 6 | /bin/echo 7 | /bin/fgrep 8 | /bin/grep 9 | /bin/ln 10 | /bin/ls 11 | /bin/mkdir 12 | /bin/more 13 | /bin/mv 14 | /bin/rm 15 | /bin/sed 16 | /bin/uname 17 | /usr/bin/basename 18 | /usr/bin/cmp 19 | /usr/bin/cut 20 | /usr/bin/dirname 21 | /usr/bin/expr 22 | /usr/bin/find 23 | /usr/bin/git 24 | /usr/bin/head 25 | /usr/bin/make 26 | /usr/bin/nice 27 | /usr/bin/strings 28 | /usr/bin/sudo 29 | /usr/bin/test 30 | /usr/bin/tr 31 | /usr/bin/vi 32 | /usr/bin/wc 33 | -------------------------------------------------------------------------------- /configs/x11.pc: -------------------------------------------------------------------------------- 1 | prefix=ARM_APPROOT 2 | exec_prefix=${prefix} 3 | libdir=${exec_prefix}/lib 4 | includedir=${prefix}/include 5 | 6 | xthreadlib=-lpthread 7 | 8 | Name: X11 9 | Description: X Library 10 | Version: 1.3.2 11 | Requires: 12 | Requires.private: 13 | Cflags: -I${includedir} 14 | Libs: -lX11 15 | Libs.private: -lpthread 16 | -------------------------------------------------------------------------------- /configs/xext.pc: -------------------------------------------------------------------------------- 1 | prefix=ARM_APPROOT 2 | exec_prefix=${prefix} 3 | libdir=${exec_prefix}/lib 4 | includedir=${prefix}/include 5 | 6 | Name: Xext 7 | Description: Misc X Extension Library 8 | Version: 1.1.1 9 | Requires: 10 | Requires.private: x11 11 | Cflags: -I${includedir} 12 | Libs: 13 | -------------------------------------------------------------------------------- /docs/HOWTO_enable_kyria_engine_in_ScummVM.txt: -------------------------------------------------------------------------------- 1 | In the $ROOT/application/Makefile : 2 | remove the --disable-engine=kyra configure option for scummvm 3 | 4 | type: make extra 5 | the ScummVM build fails (gcc internal error) 6 | 7 | then, cd build/scummvm-1.6.0 8 | and type : 9 | 10 | arm-linux-g++ -MMD -MF "engines/kyra/.deps/screen.d" -MQ "engines/kyra/screen.o" -MP -Wall -march=armv5te -mtune=arm9tdmi -ansi -W -Wno-unused-parameter -Wconversion -pedantic -Wuninitialized -Wno-long-long -Wno-multichar -Wno-unknown-pragmas -Wno-reorder -Wpointer-arith -Wcast-qual -Wshadow -Wnon-virtual-dtor -Wwrite-strings -fno-rtti -fno-exceptions -fcheck-new -DHAVE_CONFIG_H -DARM_TARGET -DSDL_BACKEND -DPOSIX -DDATA_PATH=\"/backup/TomTom/OpenTomSDK/arm-sysroot/usr/share/scummvm\" -DPLUGIN_DIRECTORY=\"/backup/TomTom/OpenTomSDK/arm-sysroot/usr/lib/scummvm\" -DENABLE_SCUMM=STATIC_PLUGIN -DENABLE_SCUMM_7_8 -DENABLE_HE -DENABLE_AGI=STATIC_PLUGIN -DENABLE_AGOS=STATIC_PLUGIN -DENABLE_AGOS2 -DENABLE_CGE=STATIC_PLUGIN -DENABLE_CINE=STATIC_PLUGIN -DENABLE_COMPOSER=STATIC_PLUGIN -DENABLE_CRUISE=STATIC_PLUGIN -DENABLE_DRACI=STATIC_PLUGIN -DENABLE_DRASCULA=STATIC_PLUGIN -DENABLE_DREAMWEB=STATIC_PLUGIN -DENABLE_GOB=STATIC_PLUGIN -DENABLE_GROOVIE=STATIC_PLUGIN -DENABLE_HOPKINS=STATIC_PLUGIN -DENABLE_HUGO=STATIC_PLUGIN -DENABLE_KYRA=STATIC_PLUGIN -DENABLE_LOL -DENABLE_EOB -DENABLE_LURE=STATIC_PLUGIN -DENABLE_MADE=STATIC_PLUGIN -DENABLE_MOHAWK=STATIC_PLUGIN -DENABLE_PARALLACTION=STATIC_PLUGIN -DENABLE_PEGASUS=STATIC_PLUGIN -DENABLE_QUEEN=STATIC_PLUGIN -DENABLE_SAGA=STATIC_PLUGIN -DENABLE_IHNM -DENABLE_SCI=STATIC_PLUGIN -DENABLE_SKY=STATIC_PLUGIN -DENABLE_SWORD1=STATIC_PLUGIN -DENABLE_SWORD2=STATIC_PLUGIN -DENABLE_TEENAGENT=STATIC_PLUGIN -DENABLE_TINSEL=STATIC_PLUGIN -DENABLE_TOLTECS=STATIC_PLUGIN -DENABLE_TONY=STATIC_PLUGIN -DENABLE_TOON=STATIC_PLUGIN -DENABLE_TOUCHE=STATIC_PLUGIN -DENABLE_TSAGE=STATIC_PLUGIN -DENABLE_TUCKER=STATIC_PLUGIN -I. -I. -I./engines -I/backup/TomTom/OpenTomSDK/arm-sysroot/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/backup/TomTom/OpenTomSDK/arm-sysroot/usr/include/freetype2 -I/backup/TomTom/OpenTomSDK/arm-sysroot/usr/include -c engines/kyra/screen.cpp -o engines/kyra/screen.o 11 | 12 | In fact, just remove the -O2 option, to compile the source file ... 13 | 14 | re-type: make to finish scumm compilation 15 | 16 | finaly, strip and copy scummvm binary on your TomTom. 17 | 18 | You need kyra.dat to use this module, I've found one in archive : 19 | ftp://ftp.halifax.rwth-aachen.de/fedora/linux/development/20/source/SRPMS/s/scummvm-1.6.0-2.fc20.src.rpm 20 | in dists/engine-data/ 21 | 22 | -------------------------------------------------------------------------------- /docs/HOWTO_install_tomplayer.txt: -------------------------------------------------------------------------------- 1 | get latest TomPlayer on https://sourceforge.net/projects/tomplayer/files/tomplayer/ 2 | 3 | extract dist/tomplayer directory from archive into /mnt/sdcard/ 4 | 5 | run it from nxmenu. 6 | -------------------------------------------------------------------------------- /docs/README_ext2_and_swap_config.txt: -------------------------------------------------------------------------------- 1 | How doing your OpenTom ext2/swap enabled SD (for Navit) 2 | 3 | Make sure you use the good SDcard partition, you can erase all your Linux system if not !!! 4 | (plug it in your computer and use 'mount' command to see which is on /media/) 5 | 6 | 1)========= Make your partition 7 | 8 | You need 3 partitions, the first with maximum size, 2nd and thrd only ~32Mo. 9 | 10 | With fdisk: 11 | sudo fdisk /dev/ # without final number 12 | 13 | Then type: 14 | 'c' # to disable MSDOS compatibility 15 | 'd' # where is each existing partitions to be deleted 16 | 'n' '1' [ENTER] +31M # to create a ~32M partition 17 | 'p' # to print the result (like sample bellow) 18 | 19 | >Commande (m pour l'aide): p 20 | > 21 | >Disque /dev/sdd: 4006 Mo, 4006608896 octets 22 | >53 têtes, 52 secteurs/piste, 2839 cylindres 23 | >Unités = cylindres de 2756 * 512 = 1411072 octets 24 | >Sector size (logical/physical): 512 bytes / 512 bytes 25 | >I/O size (minimum/optimal): 512 bytes / 512 bytes 26 | >Identifiant de disque : 0x7fc556bf 27 | > 28 | >Périphérique Amorce Début Fin Blocs Id Système 29 | >/dev/sdd1 1 23 30669+ 83 Linux 30 | 31 | 32 | You know now that you need 23 block to make a ~32Mo partition size. Then : 33 | 34 | 'd' '1' # to remove the test size partition 35 | 'n' 'p' '1' [ENTER] # to start the creation of the new partition 36 | # where is the max proposed minus 2xthe size of 32M (=46) 37 | 38 | 'n' 'p' '2' [ENTER] +23 # to create swap partition 39 | 't' '2' 'b' # change the partition 2 to type swap 40 | 41 | 'n' 'p' '3' 2 x [ENTER] # to create linux ext2 boot partition 42 | 43 | * The result does look like: 44 | 45 | > Disk /dev/sdd: 4006 MB, 4006608896 bytes 46 | > 53 heads, 52 sectors/track, 2839 cylinders 47 | > Units = cylinders of 2756 * 512 = 1411072 bytes 48 | > Sector size (logical/physical): 512 bytes / 512 bytes 49 | > I/O size (minimum/optimal): 512 bytes / 512 bytes 50 | > Disk identifier: 0x00000000 51 | 52 | > Device Boot Start End Blocks Id System 53 | > /dev/sdd1 1 2791 3844974 b W95 FAT32 54 | > /dev/sdd2 2792 2815 33072 82 Linux swap / Solaris 55 | > /dev/sdd3 2816 2839 33072 83 Linux 56 | 57 | 58 | 2)========= Format the partitions 59 | 60 | sudo mkfs.vfat -F32 -nOPENTOM /dev/1 61 | sudo mkswap -Lswap /dev/2 62 | sudo mkfs.ext2 -Lext2_boot /dev/3 63 | 64 | sync 65 | sync 66 | (unplug/replug your SD card) 67 | 68 | 69 | 3)========= Install all you need in new partitions 70 | 71 | in OpenTomSDK directory : 72 | 73 | cp configs/busybox_config.pivot_root build/busybox-1.22.1/.config 74 | cp configs/kernel_config.ext2 kernel/.config 75 | make ttsystem 76 | 77 | sudo cp -R initramfs/* /media/ext2_boot/ 78 | sudo cp configs/etc_rc_file.ext2 /media/ext2_boot/etc/rc 79 | cd /media/ext2_boot/var && sudo rm -Rf log run tmp 80 | sudo ln -s /tmp log 81 | sudo ln -s /tmp run 82 | sudo ln -s /tmp tmp 83 | cd - 84 | 85 | sudo cp configs/etc_rc_file.pivot_root_ext2 initramfs/etc/rc 86 | make ttsystem 87 | cp build/ttsystem /media/OPENTOM/ 88 | 89 | 90 | 4)======== If it goes wrong 91 | 92 | If it doesn't boot, use config/kernel_config.console_ext2 to debug the boot. 93 | 94 | If ext2 part make i/o errors with your TomTom, link (in ext2 part /log/* to -> /tmp) and don't mount r/w the ext2 part in /media/ext2_boot/etc/rc file. 95 | 96 | Some times at boot, the ethernet gadget kernel module block when the USB cable is connected to the computer, then just unplug/replug it to continue the boot process ... 97 | 98 | 99 | 100 | 101 | 102 | -------------------------------------------------------------------------------- /get_cross_env.sh: -------------------------------------------------------------------------------- 1 | # Source this file to use OpenTomSDK 2 | 3 | export SOURCE="$ROOT/src" 4 | export INITRAMFS_ROOT="$ROOT/initramfs" 5 | export ARM_ROOT=arm-sysroot 6 | export ARM_SYSROOT="$ROOT/$ARM_ROOT" 7 | export ARM_APPROOT="$ARM_SYSROOT/usr" 8 | export TOMDIST="$ROOT/opentom_dist" 9 | export DOWNLOADS="$ROOT/Downloads" 10 | export CONFIGS="$ROOT/configs" 11 | export PKG_CONFIG_LIBDIR=$ARM_APPROOT/lib 12 | export PKG_CONFIG_PATH=$ARM_APPROOT/lib/pkgconfig 13 | export DOWNLOADS=Downloads 14 | 15 | # Choix du Cross GCC 16 | #if [ "old" == "$1" ]; then 17 | 18 | export TOOLCHAIN=old 19 | echo Utilisation de gcc-3.3.4_glibc-2.3.2 20 | export CROSS="$ROOT/gcc-3.3.4_glibc-2.3.2" 21 | # obligatoire pour ce GCC (je pense qu'il utilise des sys-root/../../../lib_du_compilo) 22 | export PREFIX="$CROSS/arm-linux/sys-root" 23 | export T_ARCH=arm-linux 24 | unset MARCH 25 | # export CFLAGS="-mlittle-endian -march=armv4 -mtune=arm9tdmi -mshort-load-bytes -fno-omit-frame-pointer -fno-optimize-sibling-calls -mno-thumb-interwork -O2 -I$PREFIX/include -I$PREFIX/usr/include" 26 | # export CPPFLAGS="-I$PREFIX/include -I$PREFIX/usr/include" 27 | # export LDFLAGS="-L$PREFIX/lib -L$PREFIX/usr/lib" 28 | export CFLAGS="-march=armv5te -mtune=arm9tdmi" 29 | export CPPFLAGS="-march=armv5te -mtune=arm9tdmi" 30 | unset LDFLAGS 31 | unset CONFIG_SYSROOT 32 | #else 33 | # export TOOLCHAIN=new 34 | # echo Utilisation de Sourcery_G++_Lite 35 | # export PREFIX="$ROOT/arm-root" 36 | # export CROSS="$ROOT/Sourcery_G++_Lite" 37 | # #export CROSS="$ROOT/arm-2009q1" 38 | # export T_ARCH=arm-none-linux-gnueabi 39 | # MARCH="-march=armv4 -mtune=arm9tdmi -mlittle-endian" 40 | # export CFLAGS="$MARCH --sysroot=$PREFIX -Wl,--sysroot=$PREFIX -O2 -I$PREFIX/include -I$PREFIX/usr/include" 41 | # export CPPFLAGS="$MARCH -I$PREFIX/include -I$PREFIX/usr/include" 42 | # export LDFLAGS="--sysroot=$PREFIX -L$PREFIX/lib -L$PREFIX/usr/lib" 43 | # export CONFIG_SYSROOT=$PREFIX 44 | #fi 45 | 46 | export PATH=$ARM_APPROOT/bin:/usr/bin:/bin:$ROOT/tools:$CROSS/bin 47 | 48 | export CC="${T_ARCH}-gcc" 49 | export CXX="${T_ARCH}-g++" 50 | export LD="${T_ARCH}-ld" 51 | export NM="${T_ARCH}-nm -B" 52 | export AR="${T_ARCH}-ar" 53 | export RANLIB="${T_ARCH}-ranlib" 54 | export STRIP="${T_ARCH}-strip" 55 | export OBJCOPY="${T_ARCH}-objcopy" 56 | export LN_S="/bin/ln -s" 57 | export AS="${T_ARCH}-as" 58 | 59 | export CROSS_COMPILE="${T_ARCH}-" 60 | export ARCH=arm 61 | export INSTALL_MOD_PATH=${INITRAMFS_ROOT}/usr 62 | 63 | # Pour les progs utilisant libtool et son problème de sysroot, créer un script dans /usr/local/bin/${T_ARCH}-gcc 64 | # qui contient 65 | # #! /bin/bash 66 | # exec ${CROSS}/bin/${T_ARCH}-gcc --arm-root=$PREFIX $* 67 | # 68 | # Changer PATH=/usr/local/bin:${CROSS}/bin:/usr/bin:/bin 69 | -------------------------------------------------------------------------------- /opentom-licence.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navit-gps/NavitTom/dce9f8ea5c7a387c2eab46d545018c6f21bf0c6a/opentom-licence.txt -------------------------------------------------------------------------------- /patchs/SDL-1.2.1_opentom.patch: -------------------------------------------------------------------------------- 1 | --- SDL-1.2.15/src/video/nanox/SDL_nxmodes.c 2012-01-19 07:30:06.000000000 +0100 2 | +++ SDL-1.2.15_opentom/src/video/nanox/SDL_nxmodes.c 2014-03-12 19:06:03.000000000 +0100 3 | @@ -58,9 +58,10 @@ int NX_EnterFullScreen (_THIS) 4 | if (! currently_fullscreen) { 5 | GR_SCREEN_INFO si ; 6 | 7 | + GrUnmapWindow (SDL_Window) ; 8 | + GrFlush(); 9 | GrGetScreenInfo (& si) ; 10 | GrResizeWindow (FSwindow, si.cols, si.rows) ; 11 | - GrUnmapWindow (SDL_Window) ; 12 | GrMapWindow (FSwindow) ; 13 | GrRaiseWindow (FSwindow) ; 14 | GrSetFocus (FSwindow) ; 15 | diff -rupN SDL-1.2.15/src/video/nanox/SDL_nxvideo.c SDL-1.2.15_opentom/src/video/nanox/SDL_nxvideo.c 16 | --- SDL-1.2.15/src/video/nanox/SDL_nxvideo.c 2012-01-19 07:30:06.000000000 +0100 17 | +++ SDL-1.2.15_opentom/src/video/nanox/SDL_nxvideo.c 2014-03-13 19:22:07.000000000 +0100 18 | @@ -341,11 +341,11 @@ static int NX_CreateWindow (_THIS, SDL_S 19 | 20 | // Map them both and go fullscreen, if requested 21 | if (! SDL_windowid) { 22 | - GrMapWindow (SDL_Window) ; 23 | if (flags & SDL_FULLSCREEN) { 24 | screen -> flags |= SDL_FULLSCREEN ; 25 | NX_EnterFullScreen (this) ; 26 | } else { 27 | + GrMapWindow (SDL_Window) ; 28 | screen -> flags &= ~ SDL_FULLSCREEN ; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /patchs/SDL_image_opentom.patch: -------------------------------------------------------------------------------- 1 | diff -rupN SDL_image-1.2.12/configure SDL_image-1.2.12_opentom/configure 2 | --- SDL_image-1.2.12/configure 2012-01-21 02:51:33.000000000 +0100 3 | +++ SDL_image-1.2.12_opentom/configure 2014-03-07 17:06:08.000000000 +0100 4 | @@ -14156,7 +14156,10 @@ _ACEOF 5 | png_lib=`find_lib "libpng*.dll"` 6 | ;; 7 | *) 8 | - png_lib=`find_lib "libpng.so.[0-9]"` 9 | + png_lib=`find_lib "libpng12.so.[0-9]"` 10 | + if test x$png_lib = x; then 11 | + png_lib=`find_lib "libpng.so.[0-9]"` 12 | + fi 13 | if test x$png_lib = x; then 14 | png_lib=`find_lib "libpng.so.[0-9]*"` 15 | fi 16 | -------------------------------------------------------------------------------- /patchs/csrinit_lowTX.patch: -------------------------------------------------------------------------------- 1 | diff -rupN csrinit/main.c csrinit.opentom/main.c 2 | --- csrinit/main.c 2012-07-11 16:20:31.000000000 +0200 3 | +++ csrinit.opentom/main.c 2014-02-27 14:48:22.000000000 +0100 4 | @@ -1141,7 +1141,7 @@ void send_next_packet(struct ubcsp_packe 5 | case 24: 6 | /* set default transmit power in dBm */ 7 | memset(data, 0x00, sizeof(data)); 8 | - data[0] = 20; /* 20 dBm */ 9 | + data[0] = 0; // CLM data[0] = 20; /* 20 dBm */ 10 | csr_setps(send_packet, CSR_PS_LC_DEFAULT_TX_POWER, 11 | 1, data); 12 | #ifdef SUPPORT_USB 13 | -------------------------------------------------------------------------------- /patchs/espeak-1.48.01-source_opentom.patch: -------------------------------------------------------------------------------- 1 | --- espeak-1.48.01-source.orig/src/Makefile 2014-02-02 11:58:11.000000000 +0100 2 | +++ espeak-1.48.01-source/src/Makefile 2015-07-15 10:23:28.160059925 +0200 3 | @@ -1,8 +1,9 @@ 4 | # remove -fno-exceptions if it causes problems with stdio library on some platforms (ARM) 5 | 6 | -DATADIR=/usr/share/espeak-data 7 | +DATADIR=/mnt/sdcard/opentom/share/espeak-data 8 | +DESTDATADIR=$(TOMDIST)/share/espeak-data 9 | 10 | -PREFIX=/usr 11 | +PREFIX=$(ARM_APPROOT) 12 | BINDIR=$(PREFIX)/bin 13 | INCDIR=$(PREFIX)/include/espeak 14 | LIBDIR=$(PREFIX)/lib 15 | @@ -110,7 +111,7 @@ $(BIN2_NAME): $(OBJS3) $(LIB_NAME) 16 | 17 | 18 | x_%.o: %.cpp 19 | - $(CXX) $(CXXFLAGS) $(USE_AUDIO) -D PATH_ESPEAK_DATA=\"$(DATADIR)\" -Wall -fpic -fvisibility=hidden -pedantic \ 20 | + $(CXX) $(CXXFLAGS) $(USE_AUDIO) -D PATH_ESPEAK_DATA=\"$(DATADIR)\" -Wall -fpic -pedantic \ 21 | -I. -D LIBRARY -c -fno-exceptions $< -o x_$*.o 22 | 23 | $(LIB_NAME): $(OBJS2) 24 | @@ -133,11 +134,11 @@ distclean: clean 25 | 26 | install: all 27 | # Create directories 28 | - rm -rf $(DESTDIR)$(DATADIR) 29 | + rm -rf $(DESTDATADIR) 30 | $(MKDIR) $(DESTDIR)$(BINDIR) 31 | $(MKDIR) $(DESTDIR)$(LIBDIR) 32 | $(MKDIR) $(DESTDIR)$(INCDIR) 33 | - $(MKDIR) $(DESTDIR)$(DATADIR) 34 | + $(MKDIR) $(DESTDATADIR) 35 | # Install espeak executable 36 | $(INSTALL) -m 755 $(BIN2_NAME) $(DESTDIR)$(BINDIR) 37 | # Install shared library 38 | @@ -149,5 +150,5 @@ install: all 39 | # Install development headers 40 | $(INSTALL) -pm 644 speak_lib.h $(DESTDIR)$(INCDIR) 41 | # Install data files 42 | - cp -prf ../espeak-data/* $(DESTDIR)$(DATADIR) 43 | + cp -prf ../espeak-data/* $(DESTDATADIR) 44 | 45 | -------------------------------------------------------------------------------- /patchs/glib-1.2.10_pretty_function.patch: -------------------------------------------------------------------------------- 1 | diff -rupN glib-1.2.10.orig/gstrfuncs.c glib-1.2.10/gstrfuncs.c 2 | --- glib-1.2.10.orig/gstrfuncs.c 2001-02-27 07:00:22.000000000 +0100 3 | +++ glib-1.2.10/gstrfuncs.c 2015-07-14 19:40:54.315260288 +0200 4 | @@ -867,8 +867,7 @@ g_printf_string_upper_bound (const gchar 5 | /* beware of positional parameters 6 | */ 7 | case '$': 8 | - g_warning (G_GNUC_PRETTY_FUNCTION 9 | - "(): unable to handle positional parameters (%%n$)"); 10 | + g_warning ("%s(): unable to handle positional parameters (%%n$)", G_GNUC_PRETTY_FUNCTION); 11 | len += 1024; /* try adding some safety padding */ 12 | break; 13 | 14 | @@ -1034,8 +1033,7 @@ g_printf_string_upper_bound (const gchar 15 | /* n . dddddddddddddddddddddddd E +- eeee */ 16 | conv_len += 1 + 1 + MAX (24, spec.precision) + 1 + 1 + 4; 17 | if (spec.mod_extra_long) 18 | - g_warning (G_GNUC_PRETTY_FUNCTION 19 | - "(): unable to handle long double, collecting double only"); 20 | + g_warning ("%s(): unable to handle long double, collecting double only", G_GNUC_PRETTY_FUNCTION); 21 | #ifdef HAVE_LONG_DOUBLE 22 | #error need to implement special handling for long double 23 | #endif 24 | @@ -1077,8 +1075,7 @@ g_printf_string_upper_bound (const gchar 25 | conv_done = TRUE; 26 | if (spec.mod_long) 27 | { 28 | - g_warning (G_GNUC_PRETTY_FUNCTION 29 | - "(): unable to handle wide char strings"); 30 | + g_warning ("%s(): unable to handle wide char strings", G_GNUC_PRETTY_FUNCTION); 31 | len += 1024; /* try adding some safety padding */ 32 | } 33 | break; 34 | @@ -1108,9 +1105,7 @@ g_printf_string_upper_bound (const gchar 35 | conv_len += format - spec_start; 36 | break; 37 | default: 38 | - g_warning (G_GNUC_PRETTY_FUNCTION 39 | - "(): unable to handle `%c' while parsing format", 40 | - c); 41 | + g_warning ("%s(): unable to handle `%c' while parsing format", G_GNUC_PRETTY_FUNCTION, c); 42 | break; 43 | } 44 | conv_done |= conv_len > 0; 45 | -------------------------------------------------------------------------------- /patchs/ppp-2.4.7_opentom.patch: -------------------------------------------------------------------------------- 1 | --- ppp-2.4.7.original/pppd/Makefile.linux 2014-08-09 14:31:39.000000000 +0200 2 | +++ ppp-2.4.7/pppd/Makefile.linux 2016-11-26 01:24:02.193396298 +0100 3 | @@ -48,7 +48,7 @@ MPPE=y 4 | # Uncomment the next line to include support for PPP packet filtering. 5 | # This requires that the libpcap library and headers be installed 6 | # and that the kernel driver support PPP packet filtering. 7 | -FILTER=y 8 | +#FILTER=y 9 | 10 | # Uncomment the next line to enable multilink PPP (enabled by default) 11 | # Linux distributions: Please leave multilink ENABLED in your builds 12 | @@ -201,7 +201,7 @@ ifdef MAXOCTETS 13 | CFLAGS += -DMAXOCTETS 14 | endif 15 | 16 | -INSTALL= install 17 | +INSTALL= install --strip-program=$(STRIP) 18 | 19 | all: $(TARGETS) 20 | 21 | -------------------------------------------------------------------------------- /src/initramfs_skel/etc/busybox.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navit-gps/NavitTom/dce9f8ea5c7a387c2eab46d545018c6f21bf0c6a/src/initramfs_skel/etc/busybox.conf -------------------------------------------------------------------------------- /src/initramfs_skel/etc/fstab: -------------------------------------------------------------------------------- 1 | /dev/ram0 / ext2 defaults,noatime 0 0 2 | none /proc proc defaults 0 0 3 | none /sys sysfs defaults 0 0 4 | none /proc/bus/usb usbfs defaults 0 0 5 | none /dev/shm tmpfs defaults 0 0 6 | none /tmp tmpfs defaults 0 0 7 | none /var/run tmpfs defaults 0 0 8 | none /dev/pts devpts gid=5,mode=620 0 0 9 | mtd0 /mnt/flash ngffs defaults 0 0 10 | /dev/sdcard /mnt/sdcard vfat rw,exec,noatime,noauto,nodev,nosuid 0 0 11 | -------------------------------------------------------------------------------- /src/initramfs_skel/etc/group: -------------------------------------------------------------------------------- 1 | root::0:root 2 | -------------------------------------------------------------------------------- /src/initramfs_skel/etc/host.conf: -------------------------------------------------------------------------------- 1 | order hosts,bind 2 | multi on 3 | -------------------------------------------------------------------------------- /src/initramfs_skel/etc/hosts: -------------------------------------------------------------------------------- 1 | 127.0.0.1 localhost 2 | -------------------------------------------------------------------------------- /src/initramfs_skel/etc/ld.so.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navit-gps/NavitTom/dce9f8ea5c7a387c2eab46d545018c6f21bf0c6a/src/initramfs_skel/etc/ld.so.conf -------------------------------------------------------------------------------- /src/initramfs_skel/etc/localtime: -------------------------------------------------------------------------------- 1 | UTC -------------------------------------------------------------------------------- /src/initramfs_skel/etc/modules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navit-gps/NavitTom/dce9f8ea5c7a387c2eab46d545018c6f21bf0c6a/src/initramfs_skel/etc/modules -------------------------------------------------------------------------------- /src/initramfs_skel/etc/nsswitch.conf: -------------------------------------------------------------------------------- 1 | passwd: files 2 | group: files 3 | hosts: files dns 4 | -------------------------------------------------------------------------------- /src/initramfs_skel/etc/passwd: -------------------------------------------------------------------------------- 1 | root::0:0:root:/:/bin/sh 2 | -------------------------------------------------------------------------------- /src/initramfs_skel/etc/resolv.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navit-gps/NavitTom/dce9f8ea5c7a387c2eab46d545018c6f21bf0c6a/src/initramfs_skel/etc/resolv.conf -------------------------------------------------------------------------------- /src/initramfs_skel/etc/shells: -------------------------------------------------------------------------------- 1 | /bin/sh 2 | -------------------------------------------------------------------------------- /src/initramfs_skel/etc/udhcpd.conf: -------------------------------------------------------------------------------- 1 | interface usb0 2 | start 192.168.1.100 3 | end 192.168.1.102 4 | option subnet 255.255.255.0 5 | max_leases 3 6 | pidfile /var/run/udhcpd.pid 7 | lease_file /var/run/udhcpd.leases 8 | 9 | -------------------------------------------------------------------------------- /src/opentom_skel/bin/bt_gps: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | CHANNEL=1 4 | RFCOMM=1 5 | SPEED=115200 6 | SVC=SP 7 | SVCNAME='Serial Port' 8 | MSG="on your computer:\nsudo rfcomm connect $CHANNEL\nwill connect your PC\'s /dev/rfcomm directly to the GPS receiver;\n you will be able to dump NMEA data with any communication program" 9 | 10 | action() { 11 | stty "-F/dev/rfcomm$RFCOMM" "$SPEED" 12 | cat "/dev/$hw_gpsdev" >"/dev/rfcomm$RFCOMM" 13 | } 14 | 15 | [ "$hw_gpsdev" ] || exit 16 | . "$DIST/bin/bt_listen" 17 | -------------------------------------------------------------------------------- /src/opentom_skel/bin/bt_listen: -------------------------------------------------------------------------------- 1 | # Framework to be sourced by bt_* scripts. 2 | 3 | btdev=/dev/bt 4 | RFCOMMPID="/var/run/rfcomm#$RFCOMM#$CHANNEL.pid" 5 | 6 | # Service handle(s) for current rfcomm device and channel 7 | gethandle() { 8 | H= 9 | for h in $(sdptool browse local | sed -Ene "/Service Name: $SVCNAME/,/^Service RecHandle:/s~^.* ([x0-9]+).*$~\1~p"); do 10 | sdptool get "$h" | grep -qe "Channel: $CHANNEL" && H="$H $h" 11 | done 12 | [ "$H" ] 13 | } 14 | 15 | start_bt 16 | # Advertise service 17 | [ "$SVC" ] && ! gethandle || exit && sdptool add --channel="$CHANNEL" "$SVC" && ! gethandle && exit 18 | [ -t 0 ] && stty "-F$(tty)" -hup 19 | while [ -e "$btdev" ]; do 20 | # Check bad pid file 21 | [ -e "$RFCOMMPID" ] && ! kill -0 "$(cat "$RFCOMMPID")" && break 22 | [ ! -e "$RFCOMMPID" ] && { 23 | # Ask whether to listen 24 | echo "$MSG" | flmessage -y -s >/dev/null 2>&1 && { rfcomm listen "$RFCOMM" "$CHANNEL" & } || break 25 | echo "$!" >"$RFCOMMPID" 26 | } || 27 | # Incoming connection? Action blocks until disconnected 28 | ! rfcomm show "$RFCOMM" 2>/dev/null |grep -qe "^.\+channel \+$CHANNEL \+connected" || { action; rm -f "$RFCOMMPID"; } 29 | sleep 2 30 | done 31 | # Cleanup 32 | for h in $H; do sdptool del "$h"; done 33 | kill "$(cat "$RFCOMMPID")" 34 | rm -f "$RFCOMMPID" 35 | -------------------------------------------------------------------------------- /src/opentom_skel/bin/bt_ppp_dn: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Force PPP disconnect 4 | 5 | CHANNEL=3 6 | RFCOMM=3 7 | RFCOMMPID="/var/run/rfcomm#$RFCOMM#$CHANNEL.pid" 8 | 9 | for p in /var/run/ppp*.pid; do kill "$(cat "$p")"; rm -f "$p"; done 10 | kill "$(cat "$RFCOMMPID")"; rm -f "$RFCOMMPID" 11 | 12 | modprobe -r ppp-async 13 | -------------------------------------------------------------------------------- /src/opentom_skel/bin/bt_ppp_up: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Handle incoming PPP connection over BT 4 | 5 | IP_LOC='192.168.145.1' 6 | IP_REM='192.168.145.2' 7 | CHANNEL=3 8 | RFCOMM=3 9 | SVC=SP 10 | SVCNAME='Serial Port' 11 | SPEED=115200 12 | MSG="use on your computer:\nsudo rfcomm bind $CHANNEL\nsudo pppd noauth debug nodetach $SPEED /dev/rfcomm" 13 | 14 | action() { 15 | stty -F/dev/rfcomm"$RFCOMM" -echo 16 | stty -F/dev/rfcomm"$RFCOMM" -echok 17 | pppd rfcomm"$RFCOMM" "$SPEED" "$IP_LOC":"$IP_REM" user opentom noauth nodetach debug 18 | } 19 | 20 | modprobe ppp-async 21 | . "$DIST/bin/bt_listen" 22 | modprobe -r ppp-async 23 | -------------------------------------------------------------------------------- /src/opentom_skel/bin/bt_serial: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Handle incoming serial login over BT 4 | 5 | CHANNEL=2 6 | RFCOMM=2 7 | SPEED=115200 8 | SVC=SP 9 | SVCNAME='Serial Port' 10 | MSG="use on your computer:\nsudo rfcomm bind $CHANNEL\nsudo picocom -b$SPEED /dev/rfcomm\n" 11 | 12 | action() { getty "$SPEED" /dev/rfcomm"$RFCOMM" linux; } 13 | 14 | . "$DIST/bin/bt_listen" 15 | -------------------------------------------------------------------------------- /src/opentom_skel/bin/cr3.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # make CR Engine root link 4 | test -d /root || { \ 5 | mount -oremount,rw /; \ 6 | ln -s $DIST/share/cr3/root /root; \ 7 | mount -oremount,ro /; \ 8 | } 9 | 10 | f=`flchoose -e '*.epub' -t 'Please choose a file to open with CoolReader (...and wait)'` 11 | if [ ! -z "$f" ]; then 12 | exec cr3 "$f" >$DIST/logs/cr3.log 2>&1 13 | fi 14 | 15 | -------------------------------------------------------------------------------- /src/opentom_skel/bin/dillo.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | HOME=$DIST 4 | ifconfig lo 127.0.0.1 up 5 | 6 | dpid & 7 | sleep 2 8 | dillo $* 9 | killall dpid 10 | -------------------------------------------------------------------------------- /src/opentom_skel/bin/dosbox.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | cd $DIST/share/dosbox 4 | exec nice -n 19 $DIST/bin/dosbox -conf $1_dosbox.conf 5 | -------------------------------------------------------------------------------- /src/opentom_skel/bin/dune2.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | cd $DIST/share/dune2 4 | exec opendune 5 | -------------------------------------------------------------------------------- /src/opentom_skel/bin/force_reboot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navit-gps/NavitTom/dce9f8ea5c7a387c2eab46d545018c6f21bf0c6a/src/opentom_skel/bin/force_reboot -------------------------------------------------------------------------------- /src/opentom_skel/bin/gllog.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # This scripts logs the events from GL realted scripts 3 | # the log is enabled only if the GL logging directory is 4 | # present on SD card. 5 | 6 | log_dir="/mnt/sdcard/gl/log" 7 | 8 | if test -d ${log_dir} ; then 9 | date >> ${log_dir}/glecho.txt 10 | cat - >> ${log_dir}/glecho.txt 11 | fi 12 | 13 | date 14 | cat - 15 | 16 | -------------------------------------------------------------------------------- /src/opentom_skel/bin/gnuboy.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | RC_FILE=$DIST/share/gnuboy/classic.rc 4 | DISPLAY=:0 exec gnuboy --source $RC_FILE $* 5 | -------------------------------------------------------------------------------- /src/opentom_skel/bin/i: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | insmod /lib/modules/2.6.13/kernel/drivers/*/*$1* $2 || \ 4 | insmod /lib/modules/2.6.13/kernel/drivers/*/*/*$1* $2 || \ 5 | insmod /lib/modules/2.6.13/kernel/drivers/*/*/*/*$1* $2 6 | 7 | -------------------------------------------------------------------------------- /src/opentom_skel/bin/l: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | ls /lib/modules/2.6.13/kernel/drivers/usb/*/*$1* 4 | -------------------------------------------------------------------------------- /src/opentom_skel/bin/linapple.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | cd $DIST/share/linapple 4 | exec nice -n 19 $DIST/bin/linapple 5 | -------------------------------------------------------------------------------- /src/opentom_skel/bin/nanobrick.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | 4 | if [ -z "$1" ] 5 | then 6 | cd $DIST/share/nanobrick_levels 7 | flxplorer 8 | else 9 | cd ${1%/*} 10 | level=${1##*/} 11 | nanobrick -l ${level%.blocks} 12 | fi 13 | -------------------------------------------------------------------------------- /src/opentom_skel/bin/nanobrick_new_game.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | level=`flmessage -y -i -t "NanoBrick - New Level ?" "Choose a name :"` 4 | 5 | if [ ! -z "$level" ] 6 | then 7 | cd $DIST/share/nanobrick_levels 8 | echo "gogo=$level=" >/tmp/toto 9 | nanobrick_editor -l "$level" 10 | fi 11 | -------------------------------------------------------------------------------- /src/opentom_skel/bin/navit.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | export LANG=en_US.utf8 4 | export NAVIT_SHAREDIR="$DIST/share/navit" 5 | export TZ="CEDT-01:00:00CEST-02:00:00,M3.4.0,M10.4.0" 6 | export LANG=en_US 7 | export ESPEAK_DATA_PATH="$DIST/mnt/sdcard/navit/share/navit" 8 | 9 | # Navit can use SiRFstar III GPS (device id 3; used in TT7xx) without gltt 10 | # For GPS chips without NMEA output gltt is used 11 | [ "$hw_gpstype" == 3 ] && ln -sf "/dev/$hw_gpsdev" /var/run/gpspipe || { 12 | [ ! -x "$DIST/bin/gltt" ] && echo "You need TomTom(tm) gltt\nPlease read documentation." | flmessage -s -t "Can't start Navit" && exit 13 | } || ! rc.gltt start || echo EnableRawGPSOutput >/dev/gps 14 | 15 | NAVIT_CONFIG="$DIST/share/navit/navit.xml" 16 | 17 | navit -c "$NAVIT_CONFIG" "$@" >"$DIST/logs/navit.log" 2>&1 18 | 19 | [ "$(pidof gltt)" ] && rc.gltt stop 20 | -------------------------------------------------------------------------------- /src/opentom_skel/bin/r: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | echo removing all modules 4 | for i in `lsmod | cut -f1 -d" "`; do rmmod $i; done 5 | -------------------------------------------------------------------------------- /src/opentom_skel/bin/rc.bluetooth: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | #_rc.bluetooth: Loads Bluetooth modules and starts associated programs. 3 | 4 | die() { 5 | echo "ERROR: $1" 6 | exit 1 7 | } 8 | 9 | # Defaults 10 | csrinit="y" 11 | btdev="/dev/bt" 12 | btif="hci0" 13 | btmulaw="0" 14 | 15 | if test "${hw_bluetooth}" = "0"; then 16 | echo "* NOT starting Bluetooth " 17 | exit 0 18 | fi 19 | 20 | if test "$1" = "resume"; then 21 | echo "* Resuming Bluetooth"; 22 | elif test "$1" = "suspend"; then 23 | echo "* Suspending Bluetooth" 24 | if test "${hw_btusb}" = "0"; then 25 | hciconfig ${btif} down 26 | if pid=$(pidof hciattach); then 27 | kill ${pid} 28 | wait ${pid} 29 | fi 30 | fi 31 | exit 0; 32 | else 33 | echo "* Starting Bluetooth" 34 | 35 | if ! sed "s/@DEVNAME@/${hw_btname}/;s/@DEVCLASS@/${hw_btclass}/" /etc/bluetooth/hcid.conf.template > /etc/bluetooth/hcid.conf; then 36 | die "unable to setup hcid config file" 37 | fi 38 | 39 | if ! hcid; then 40 | die "hcid failed" 41 | fi 42 | 43 | if ! sdpd; then 44 | die "sdpd failed" 45 | fi 46 | fi 47 | 48 | if test "${hw_btusb}" != "0"; then 49 | if ! insmod ohci-hcd.ko; then 50 | die "insmod ohci-hcd failed" 51 | fi 52 | # let usb stabilise ? 53 | sleep 1 54 | fi 55 | 56 | if test "${csrinit}" = "y"; then 57 | if test "${hw_btusb}" = "0"; then 58 | if ! csrinit bcsp ${btdev} ${hw_btspeed} ${hw_btclock}; then 59 | die "csrinit failed" 60 | fi 61 | elif ! csrinit usb ${btdev} ${hw_btspeed} ${hw_btclock}; then 62 | echo "csrinit usb failed, trying bcsp" 63 | if ! csrinit bcsp ${btdev} ${hw_btspeed} ${hw_btclock}; then 64 | die "csrinit bcsp failed too" 65 | fi 66 | fi 67 | fi 68 | 69 | if test "${hw_btusb}" = "0" && ! hciattach /dev/bt bcsp ${hw_btspeed}; then 70 | die "hciattach failed" 71 | fi 72 | 73 | if ! hciconfig ${btif} up; then 74 | die "hciconfig failed" 75 | fi 76 | 77 | # todo: check voice over USB 78 | if test "${btmulaw}" != "0" && ! hciconfig ${btif} voice 0x014c; then 79 | die "hciconfig voice failed" 80 | fi 81 | 82 | if test "$1" != "resume"; then 83 | if test "${hw_handsfree}" != "0" && ! sdptool add hf; then 84 | echo "warning: failed to call sdptool add hf" 85 | fi 86 | 87 | if test "${hw_headsetgw}" != "0" && ! sdptool add hsagw; then 88 | echo "warning: failed to call sdptool add hsagw" 89 | fi 90 | 91 | if test "${hw_a2dp}" != "0" && ! sdptool add a2src; then 92 | echo "warning: failed to call sdptool add a2src" 93 | fi 94 | 95 | blueserver.a /var/run/bluesock & 96 | 97 | btserver & 98 | fi 99 | 100 | # EOF 101 | -------------------------------------------------------------------------------- /src/opentom_skel/bin/rc.restartgps: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Setup variables to be inherited by called shell scripts 4 | for i in /proc/barcelona/*; do 5 | export hw_${i##*/}="$(cat $i)" 6 | done 7 | 8 | ln -sf "${hw_gpsdev}" /dev/gpsdata 9 | ln -s $DIST/share/meminfo.boot /var/log/meminfo.boot 10 | 11 | resume_clm() { 12 | echo "* Sending SIGUSR2 to clmapp" 13 | if ! killall -SIGUSR2 clmapp; then 14 | echo "* restarting clmapp" 15 | clmapp & 16 | fi 17 | } 18 | 19 | suspend_clm() { 20 | echo "* Sending SIGUSR1 to clmapp" 21 | killall -SIGUSR1 clmapp 22 | 23 | echo "* Waiting for clmapp to respond" 24 | for i in 1 2 3 4 5; do 25 | if test -f /tmp/clmquit; then 26 | echo "* Got response from clmapp" 27 | rm -f /tmp/clmquit 28 | return 29 | fi 30 | sleep 1 31 | done 32 | echo "* No response from clmapp, giving up" 33 | } 34 | 35 | echo "* Restarting GPS" 36 | 37 | if test "${hw_gldetected}" = "1"; then 38 | echo "GPS not working. Stop gltt " | gllog.sh 39 | ps | gllog.sh 40 | rc.gltt stop 41 | echo "Copy GL log files " | gllog.sh 42 | mv /var/log/gl/* /mnt/sdcard/gl/log 43 | sync 44 | ls -l /var/log/gl | gllog.sh 45 | 46 | echo "GPS not working. Start gltt" | gllog.sh 47 | rc.gltt start 115200 48 | ps | gllog.sh 49 | ls -l /var/log/gl | gllog.sh 50 | else 51 | if test "${hw_gpsephemeris}" = "1"; then 52 | echo "* suspend clmapp" 53 | suspend_clm 54 | echo "* restart SiRF receiver" 55 | /bin/sirfreset snap noack outsirf verbose 56 | sleep 1 57 | echo "* resume clmapp" 58 | resume_clm 59 | else 60 | echo "* not supporting ephemeris. Just sleep 1 second" 61 | sleep 1 62 | fi 63 | fi 64 | 65 | echo "* Restarting GPS done" 66 | 67 | # EOF 68 | -------------------------------------------------------------------------------- /src/opentom_skel/bin/rc.suspend: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | suspend_gl() { 3 | echo "* Stop gltt" 4 | rc.gltt stop 5 | mv /var/log/gl/* /mnt/sdcard/gl/log 6 | sync 7 | } 8 | 9 | suspend_clm() { 10 | echo "* Sending SIGUSR1 to clmapp" 11 | killall -SIGUSR1 clmapp 12 | 13 | echo "* Waiting for clmapp to respond" 14 | for i in 1 2 3 4 5; do 15 | if test -f /tmp/clmquit; then 16 | echo "* Got response from clmapp" 17 | rm -f /tmp/clmquit 18 | return 19 | fi 20 | sleep 1 21 | done 22 | echo "* No response from clmapp, giving up" 23 | } 24 | 25 | suspend_gps() { 26 | if test "${hw_gldetected}" = "1"; then 27 | suspend_gl 28 | else 29 | if test "${hw_gpsephemeris}" = "1"; then 30 | # check the clmdata file 31 | if test -f /var/run/clmdata; then 32 | cp /var/run/clmdata /mnt/sdcard/ 33 | sync 34 | fi 35 | suspend_clm 36 | fi 37 | fi 38 | } 39 | 40 | echo "* Running suspend tasks" 41 | suspend_gps 42 | rc.bluetooth suspend 43 | 44 | echo "* Suspend tasks done" 45 | 46 | # EOF 47 | -------------------------------------------------------------------------------- /src/opentom_skel/bin/reboot: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # in case of ext2 root SDpart 4 | mount -oremount,ro / 5 | sync 6 | sync 7 | force_reboot # or echo miaou >/dev/watchdog 8 | -------------------------------------------------------------------------------- /src/opentom_skel/bin/s: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | stty sane 4 | -------------------------------------------------------------------------------- /src/opentom_skel/bin/scummvm.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | cd share/scumm_games/ 4 | exec scummvm 5 | -------------------------------------------------------------------------------- /src/opentom_skel/bin/set_cpu_governor: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | echo $1 >/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor 4 | -------------------------------------------------------------------------------- /src/opentom_skel/bin/show_cmd: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | eval "$*" | flmessage -s 4 | -------------------------------------------------------------------------------- /src/opentom_skel/bin/start_bt: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Start bluetooth device, files and services 4 | 5 | btdev=/dev/bt 6 | btif=hci0 7 | 8 | die() { echo "$*" 1>&2 ; exit 1; } 9 | 10 | do_csrinit() { cmd="$1"; shift; csrinit "$cmd" "$btdev" "$hw_btspeed" "$hw_btclock" $@ 2>&1; } 11 | 12 | ls -l "$btdev" 2>/dev/null && die 'Bluetooth system already initialized' 13 | 14 | [ "$hw_btdev" ] && ln -sf "$hw_btdev" "$btdev" 15 | 16 | [ -f "$DIST/etc/bluetooth/pin" ] && ! cp -f "$DIST/etc/bluetooth/pin" /etc/bluetooth/ && die 'unable to copy pin file'; } 17 | 18 | sed "s/@DEVNAME@/$hw_btname/;s/@DEVCLASS@/$(printf "0x%06x" "$hw_btclass")/" "$DIST/etc/hcid.conf.template" >/etc/bluetooth/hcid.conf 2>/dev/null || 19 | die 'unable to setup hcid config file' 20 | 21 | [ "$hw_btusb" = "1" ] && { do_csrinit usb || ! echo 'csrinit usb failed, trying bcsp'; } || do_csrinit bcsp || die 'csrinit bcsp failed' 22 | 23 | hcid || die 'hcid failed' 24 | 25 | hciattach "$btdev" bcsp "$hw_btspeed" || die 'hciattach failed' 26 | 27 | sdpd || die 'sdpd failed' 28 | 29 | hciconfig "$btif" up 30 | -------------------------------------------------------------------------------- /src/opentom_skel/bin/start_bt_connect2tomtom: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | if [ -z $1 ]; then 4 | echo "Usage: $0 " 5 | exit 6 | fi 7 | 8 | other=`hcitool scan | grep TomTom | sed 's/[ \t]//' | cut -f1` 9 | 10 | if [ -z $other ]; then 11 | echo Can\'t find other TomTom 12 | else 13 | case $1 in 14 | gps) 15 | rfcomm connect /dev/rfcomm1 $other 1 & 16 | ;; 17 | serial) 18 | rfcomm connect /dev/rfcomm2 $other 2 & 19 | ;; 20 | ppp) 21 | rfcomm connect /dev/rfcomm3 $other 3 & 22 | sleep 4 23 | pppd nodetach 115200 /dev/rfcomm3 & 24 | ;; 25 | *) 26 | echo Error: Unknow option $1 27 | ;; 28 | esac 29 | fi 30 | 31 | -------------------------------------------------------------------------------- /src/opentom_skel/bin/start_bt_gps_listenner: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Thank's to Roberto Piola (http://www.ilpiola.it/roberto/tomtom) 3 | 4 | start_bt 5 | 6 | stty -hup < `tty` 7 | while [ true ] ; do 8 | if ps w | grep rfcomm | grep listen | grep -v grep | grep -c rfcomm1 9 | then 10 | /mnt/sdcard/wildtom/rfcomm listen /dev/rfcomm1 1 & 11 | if ! echo "on your computer:\nsudo rfcomm connect /dev/rfcomm1 XX:XX:XX:XX:XX:XX 1\n will connect your PC's /dev/rfcomm1 directly to the GPS receiver;\n you will be able to dump NMEA data with any communication program" | flmessage -y -s 12 | then 13 | exit 14 | fi 15 | fi 16 | /mnt/sdcard/wildtom/rfcomm show | grep rfcomm1 | grep connected 17 | if [ $? -eq 0 ] ; then 18 | # set the speed 19 | stty speed 115200 < /dev/rfcomm1 20 | cat /dev/gpsdata >/dev/rfcomm1 21 | fi 22 | sleep 2 23 | done 24 | 25 | -------------------------------------------------------------------------------- /src/opentom_skel/bin/start_bt_ppp_listenner: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # Thank's to Roberto Piola (http://www.ilpiola.it/roberto/tomtom) 3 | 4 | start_bt 5 | modprobe ppp-async 6 | 7 | stty -hup < `tty` 8 | if [ ! -d /var/lock ]; then 9 | mkdir /var/lock 10 | fi 11 | while [ true ] ; do 12 | if ! ps w | grep rfcomm | grep listen | grep -v grep | grep -c rfcomm3 13 | then 14 | rfcomm listen /dev/rfcomm3 3 & 15 | if ! echo "use on your computer:\nrfcomm connect /dev/rfcomm3 XX:XX:XX:XX:XX:XX 3\npppd debug nodetach 115200 /dev/rfcomm3" | flmessage -y -s 16 | then 17 | exit 18 | fi 19 | fi 20 | if rfcomm show | grep rfcomm3 | grep connected 21 | then 22 | # set the speed and turn off echo on the device 23 | stty -echo < /dev/rfcomm3 24 | stty -echok < /dev/rfcomm3 25 | pppd /dev/rfcomm3 921600 192.168.145.1:192.168.145.2 nodetach 26 | fi 27 | sleep 2 28 | done 29 | -------------------------------------------------------------------------------- /src/opentom_skel/bin/start_bt_sh_listenner: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # Thank's to Roberto Piola (http://www.ilpiola.it/roberto/tomtom) 3 | 4 | start_bt 5 | 6 | stty -hup < `tty` 7 | while [ true ] ; do 8 | if ! ps w | grep rfcomm | grep listen | grep -v grep | grep -c rfcomm2 9 | then 10 | rfcomm listen /dev/rfcomm2 2 & 11 | if ! echo "use on your computer:\nsudo rfcomm connect /dev/rfcomm2 2\npicocom /dev/rfcomm2\n" | flmessage -y -s 12 | then 13 | exit 14 | fi 15 | fi 16 | if rfcomm show | grep rfcomm2 | grep connected 17 | then 18 | # set the speed and turn off echo on the device 19 | stty speed 115200 < /dev/rfcomm2 20 | # stty -echo < /dev/rfcomm2 21 | # stty -echok < /dev/rfcomm2 22 | login < /dev/rfcomm2 > /dev/rfcomm2 2>&1 23 | fi 24 | sleep 2 25 | done 26 | 27 | -------------------------------------------------------------------------------- /src/opentom_skel/bin/start_bt_shell: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | start_bt 4 | 5 | -------------------------------------------------------------------------------- /src/opentom_skel/bin/start_ssh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | if [ ! -e /usr/bin/dbclient ]; then 4 | ln -s $DIST/bin/ssh /usr/bin/dbclient 5 | fi 6 | if [ ! -e /usr/bin/scp ]; then 7 | ln -s $DIST/bin/scp /usr/bin/scp 8 | fi 9 | 10 | P=$HOME 11 | export HOME=/ 12 | if [ ! -d /.ssh ]; then 13 | mkdir -p /.ssh 14 | ln -s $P/etc/id_dsa.pub /.ssh/authorized_keys 15 | fi 16 | if [ ! -e $P/etc/dropbear_rsa_host_key ]; then 17 | dropbearkey -t rsa -f $P/etc/dropbear_rsa_host_key 18 | fi 19 | echo HOME=$HOME 20 | exec dropbear -sgB -r $P/etc/dropbear_rsa_host_key 21 | -------------------------------------------------------------------------------- /src/opentom_skel/bin/start_ttconsole: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | killall nano-X 4 | ttcalib 5 | $HOME/TTconsole/bin/TTconsole 6 | fb_reset 7 | -------------------------------------------------------------------------------- /src/opentom_skel/bin/start_ttnavigator: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Setup variables to be inherited by called shell scripts 4 | for i in /proc/barcelona/*; do 5 | export hw_${i##*/}="$(cat $i)" 6 | done 7 | 8 | ln -sf "${hw_gpsdev}" /dev/gpsdata 9 | ln -s $DIST/etc/meminfo.boot_for_ttn /var/log/meminfo.boot 10 | 11 | mkdir -p /var/log/gl 12 | 13 | killall -TERM nano-X 14 | fb_reset 15 | ttcalib 16 | rc.restartgps 17 | if ! pidof ttpnpd; then ttpnpd &; fi 18 | 19 | cd /mnt/sdcard/ 20 | #ttn >$DIST/logs/ttn.log 2>&1 21 | ttn >/dev/null 2>&1 22 | 23 | fb_reset 24 | 25 | -------------------------------------------------------------------------------- /src/opentom_skel/bin/start_usb0: -------------------------------------------------------------------------------- 1 | #! /bin/sh -x 2 | 3 | # removing all kernel modules 4 | for i in `lsmod | cut -f1 -d" "`; do rmmod $i; done 5 | 6 | killall dhclient 7 | 8 | modprobe s3c24xx_udc 9 | modprobe g_ether 10 | 11 | flmessage "Plug you TomTom on your computer, please" 12 | 13 | ifconfig usb0 192.168.1.10 up 14 | 15 | # DHCPD Server 16 | udhcpd -f /etc/udhcpd.conf & 17 | 18 | echo Starting telnet daemon ... 19 | /usr/sbin/telnetd -F & 20 | 21 | -------------------------------------------------------------------------------- /src/opentom_skel/bin/start_usb0_down: -------------------------------------------------------------------------------- 1 | #! /bin/sh -x 2 | 3 | ifconfig usb0 down 4 | rmmod g_ether 5 | rmmod s3c24xx_udc 6 | 7 | sleep 10 8 | modprobe s3c24xx_udc 9 | modprobe g_ether 10 | ifconfig usb0 192.168.1.10 up 11 | -------------------------------------------------------------------------------- /src/opentom_skel/bin/start_usb0_up: -------------------------------------------------------------------------------- 1 | #! /bin/sh -x 2 | 3 | for i in `lsmod | cut -f1 -d" "`; do rmmod $i; done 4 | modprobe s3c24xx_udc 5 | modprobe g_ether 6 | ifconfig usb0 192.168.1.10 up 7 | 8 | # DHCPD Server 9 | udhcpd -f /etc/udhcpd.conf & 10 | 11 | echo Starting telnet daemon ... 12 | /usr/sbin/telnetd -F & 13 | 14 | -------------------------------------------------------------------------------- /src/opentom_skel/bin/start_usb_dm: -------------------------------------------------------------------------------- 1 | #! /bin/sh -x 2 | 3 | # removing all kernel modules 4 | for i in `lsmod | cut -f1 -d" "`; do rmmod $i; done 5 | 6 | killall dhclient 7 | 8 | modprobe s3c24xx_udc 9 | insmod $DIST/../dm9601.ko $1 10 | sleep 3 11 | 12 | ifconfig eth0 hw ether 12:23:45:66:77:88 up 13 | 14 | sleep 1 15 | dhclient -sf $DIST/etc/dhclient_script eth0 16 | 17 | -------------------------------------------------------------------------------- /src/opentom_skel/bin/start_usbhost_mode: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | echo host >/sys/devices/platform/tomtomgo-usbmode/mode 4 | -------------------------------------------------------------------------------- /src/opentom_skel/bin/start_usbnet: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | . $DIST/etc/network.conf 4 | 5 | echo "Removing all modules..." 6 | for i in `lsmod | cut -f1 -d" "`; do rmmod $i; done 7 | 8 | killall dhclient 9 | 10 | sleep 1 11 | i ohci 12 | i usbnet 13 | sleep 3 14 | flmessage -y "Plug your USB network adapter into your TomTom." 15 | 16 | while ! ifconfig -a | grep eth0; do 17 | test=X$test 18 | if [ $test == "XXXXXXXXXXXXX" ]; then 19 | if flmessage -y "Plug your USB network adapter into your TomTom." 20 | then 21 | unset test 22 | else 23 | flmessage "Failed to start usbnet." 24 | exit 1 25 | fi 26 | fi 27 | sleep 1 28 | done 29 | 30 | if [ "$TYPE" == "static" ]; then 31 | ifconfig eth0 $IP $MASK up 32 | route add default gw $GW eth0 33 | echo "nameserver $DNS" >/etc/resolv.conf 34 | else 35 | dhclient -sf $DIST/etc/dhclient-script eth0 36 | fi 37 | 38 | ifconfig eth0 | flmessage -s -t "Interface eth0" 39 | 40 | -------------------------------------------------------------------------------- /src/opentom_skel/bin/start_usbstick: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | echo removing all modules 4 | for i in `lsmod | cut -f1 -d" "`; do rmmod $i; done 5 | 6 | sleep 1 7 | i ohci 8 | i scsi_mod 9 | i sd_mod 10 | i usb-storage 11 | sleep 3 12 | flmessage -y "Plug your USB device please." 13 | 14 | while ! grep sd /proc/partitions; do 15 | test=X$test 16 | if [ $test == "XXXXXXXXXXXXX" ]; then 17 | if flmessage -y "Plug USB device please." 18 | then 19 | unset test 20 | else 21 | exit 1 22 | fi 23 | fi 24 | sleep 1 25 | done 26 | 27 | grep sd /proc/partitions | while read x x x part; do 28 | mkdir /mnt/$part 29 | mount /dev/$part /mnt/$part 30 | done 31 | 32 | -------------------------------------------------------------------------------- /src/opentom_skel/bin/stop_bt: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Stop bluetooth device and services 4 | 5 | btdev=/dev/bt 6 | 7 | do_csrinit() { cmd="$1"; shift; csrinit "$cmd" "/dev/$hw_btdev" "$hw_btspeed" "$hw_btclock" $@ 2>&1; } 8 | 9 | rm -f "$btdev" 10 | hciconfig hci0 down 11 | for p in /var/run/ppp*.pid /var/run/rfcomm#*.pid; do kill "$(cat "$p")"; rm -f "$p"; done 12 | modprobe -r ppp-async 13 | killall hcid sdpd hciattach >/dev/null 2>&1 14 | p=-cdisable_tx 15 | [ "$hw_btusb" = "1" ] && do_csrinit usb $p || do_csrinit bcsp $p 16 | 17 | [ "$1" != "-s" ] && echo "Bluetooth id down\nTX is off\n" | flmessage -s >/dev/null 2>&1 18 | -------------------------------------------------------------------------------- /src/opentom_skel/bin/stop_usb: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | ls /mnt/* | while read mount; do 4 | umount $mount 5 | rmdir $mount 6 | done 7 | 8 | echo removing all modules 9 | for i in `lsmod | cut -f1 -d" "`; do rmmod $i; done 10 | 11 | -------------------------------------------------------------------------------- /src/opentom_skel/bin/stop_usb0: -------------------------------------------------------------------------------- 1 | #! /bin/sh -x 2 | 3 | ifconfig usb0 down 4 | rmmod g_ether 5 | rmmod s3c24xx_udc 6 | killall udhcpd 7 | 8 | flmessage "USB Gadget connection is down" 9 | -------------------------------------------------------------------------------- /src/opentom_skel/bin/strace: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navit-gps/NavitTom/dce9f8ea5c7a387c2eab46d545018c6f21bf0c6a/src/opentom_skel/bin/strace -------------------------------------------------------------------------------- /src/opentom_skel/bin/suspend: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Save display brightness 4 | BRI="$(cat /sys/class/backlight/s3c/brightness)" 5 | 6 | echo suspending 7 | # If gltt is running, restart it after resume 8 | GLTTPID="$(pidof gltt)" 9 | 10 | echo 0 >/sys/class/backlight/s3c/brightness 11 | set_cpu_governor powersave 12 | [ "$GLTTPID" ] && rc.gltt stop 13 | stop_bt -s 14 | sync 15 | echo mem >/sys/power/state 16 | 17 | # Resuming 18 | set_cpu_governor performance 19 | 20 | # Restore brightness 21 | echo "$BRI" >/sys/class/backlight/s3c/brightness 22 | 23 | # Restart gltt if it ran before suspend 24 | [ "$GLTTPID" ] && rc.gltt start 25 | -------------------------------------------------------------------------------- /src/opentom_skel/bin/tomplayer.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | killall -9 nano-X 4 | ln -s /mnt/sdcard/tomplayer/deps/usr/local/ /usr/ 5 | cd /mnt/sdcard/tomplayer 6 | /mnt/sdcard/tomplayer/tomplayergui.sh 7 | 8 | -------------------------------------------------------------------------------- /src/opentom_skel/bin/ts_calibrate.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | killall -STOP nxmenu 4 | killall -QUIT nano-X 5 | ts_calibrate 6 | killall -CONT nxmenu 7 | -------------------------------------------------------------------------------- /src/opentom_skel/bin/wesnoth.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | exec wesnoth -w -t --nosound -d 4 | -------------------------------------------------------------------------------- /src/opentom_skel/etc/.shinit: -------------------------------------------------------------------------------- 1 | export HOME="$DIST" 2 | 3 | export FRAMEBUFFER=/dev/fb 4 | 5 | export TSLIB_CONSOLEDEVICE=none 6 | export TSLIB_FBDEVICE=/dev/fb 7 | export TSLIB_TSDEVICE=/dev/input/event0 8 | export TSLIB_CONFFILE="$DIST/etc/ts.conf" 9 | export TSLIB_PLUGINDIR="$DIST/lib/ts" 10 | export TSLIB_CALIBFILE="$DIST/etc/pointercal" 11 | 12 | export PATH="/usr/sbin:/sbin:$PATH:$DIST/sbin:$DIST/usr/sbin:$DIST/bin:$DIST/usr/bin" 13 | export LD_LIBRARY_PATH="$DIST/lib" 14 | 15 | export NANOX_YRES="$(fbset -s | sed -Ene '/geometry/s~^.+geometry +[0-9]+ +([0-9]+) +.*$~\1~p')" 16 | -------------------------------------------------------------------------------- /src/opentom_skel/etc/flxplorer.mime: -------------------------------------------------------------------------------- 1 | .pdf mupdf-x11 2 | .epub cr3 3 | .fb2 cr3 4 | .mp3 madplay -a -20 5 | .html dillo 6 | .blocks nanobrick.sh 7 | .bmp imgv 8 | .gif imgv 9 | .png imgv 10 | .jpeg imgv 11 | .xpm imgv 12 | .gbc gnuboy.sh 13 | * editor 14 | -------------------------------------------------------------------------------- /src/opentom_skel/etc/gnuboy.rc: -------------------------------------------------------------------------------- 1 | # 2 | # classic.rc - change keybindings, palette, etc 3 | # to match the old pre-1.0 settings. 4 | # 5 | 6 | unbindall 7 | 8 | bind esc quit 9 | bind t +up 10 | bind v +down 11 | bind f +left 12 | bind h +right 13 | bind a +a 14 | bind b +b 15 | bind enter +start 16 | bind space +select 17 | bind 1 "set saveslot 1" 18 | bind 2 "set saveslot 2" 19 | bind 3 "set saveslot 3" 20 | bind 4 "set saveslot 4" 21 | bind 5 "set saveslot 5" 22 | bind 6 "set saveslot 6" 23 | bind 7 "set saveslot 7" 24 | bind 8 "set saveslot 8" 25 | bind 9 "set saveslot 9" 26 | bind 0 "set saveslot 0" 27 | bind s savestate 28 | bind l loadstate 29 | 30 | set dmg_bgp 0x78f0f0 0x58b8b8 0x487878 0x184848 31 | set dmg_wndp 0x78f0f0 0x58b8b8 0x487878 0x184848 32 | set dmg_obp0 0x78f0f0 0x58b8b8 0x487878 0x184848 33 | set dmg_obp1 0x78f0f0 0x58b8b8 0x487878 0x184848 34 | -------------------------------------------------------------------------------- /src/opentom_skel/etc/hcid.conf.template: -------------------------------------------------------------------------------- 1 | # 2 | # HCI daemon configuration file. 3 | # 4 | # $Id: hcid.conf,v 1.7 2004/12/13 14:16:03 holtmann Exp $ 5 | # 6 | 7 | # HCId options 8 | options { 9 | # Automatically initialize new devices 10 | autoinit yes; 11 | 12 | # Security Manager mode 13 | # none - Security manager disabled 14 | # auto - Use local PIN for incoming connections 15 | # user - Always ask user for a PIN 16 | # 17 | security auto; 18 | 19 | # Pairing mode 20 | # none - Pairing disabled 21 | # multi - Allow pairing with already paired devices 22 | # once - Pair once and deny successive attempts 23 | pairing multi; 24 | 25 | # PIN helper 26 | pin_helper /usr/bin/bluepin; 27 | 28 | # D-Bus PIN helper 29 | #dbus_pin_helper; 30 | } 31 | 32 | # Default settings for HCI devices 33 | device { 34 | # Local device name 35 | # %d - device id 36 | # %h - host name 37 | name "@DEVNAME@"; 38 | 39 | # Local device class 40 | class @DEVCLASS@; 41 | 42 | # Default packet type 43 | #pkt_type DH1,DM1,HV1; 44 | 45 | # Inquiry and Page scan 46 | iscan enable; pscan enable; 47 | 48 | # Default link mode 49 | # none - no specific policy 50 | # accept - always accept incoming connections 51 | # master - become master on incoming connections, 52 | # deny role switch on outgoing connections 53 | lm accept; 54 | 55 | # Default link policy 56 | # none - no specific policy 57 | # rswitch - allow role switch 58 | # hold - allow hold mode 59 | # sniff - allow sniff mode 60 | # park - allow park mode 61 | lp rswitch,hold,sniff,park; 62 | 63 | # Authentication and Encryption (Security Mode 3) 64 | #auth enable; 65 | #encrypt enable; 66 | } 67 | -------------------------------------------------------------------------------- /src/opentom_skel/etc/init.d/S10network: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Starting USB Ether Gadget ... 4 | KVER=$(uname -r) 5 | 6 | insmod /lib/modules/$KVER/kernel/drivers/usb/gadget/s3c24xx_udc.ko 7 | insmod /lib/modules/$KVER/kernel/drivers/usb/gadget/g_ether.ko 8 | modprobe ext3 9 | ifconfig usb0 192.168.1.10 10 | 11 | -------------------------------------------------------------------------------- /src/opentom_skel/etc/init.d/S20dhcpd: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | mkdir -p /var/run 4 | touch /var/run/udhcpd.leases 5 | touch /var/run/udhcpd.pid 6 | 7 | echo Starting DHCPD Server 8 | 9 | 10 | # DHCPD Server 11 | udhcpd -f /etc/udhcpd.conf & 12 | -------------------------------------------------------------------------------- /src/opentom_skel/etc/init.d/S30_none: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | echo S30_none 4 | -------------------------------------------------------------------------------- /src/opentom_skel/etc/init.d/S40_telnetd: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | mount -t devpts none /dev/pts 3 | 4 | 5 | echo Starting telnet daemon ... 6 | /usr/sbin/telnetd -F & 7 | -------------------------------------------------------------------------------- /src/opentom_skel/etc/init.d/S60gps: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | sdcard=/mnt/sdcard 4 | flash_gl=/mnt/flash/extra_settings 5 | ramdisk_gl=/var/run/gl 6 | def_baudrate="115200" 7 | gl_baudrate=${def_baudrate} 8 | stop_timeout_in_sec=10 9 | stop_counter="" 10 | def_fix_start="normal" 11 | par_fix_start=${def_fix_start} 12 | 13 | sanity(){ 14 | if ! which gltt; then 15 | echo "\033[0;31mGltt not found\033[0m\n" 16 | exit 1 17 | } 18 | 19 | stop_count() { 20 | echo ${stop_counter} | wc -c 21 | } 22 | 23 | stop_inc() { 24 | stop_counter=${stop_counter}"1" 25 | } 26 | 27 | start() { 28 | echo "* Starting gltt ${par_fix_start}" 29 | 30 | # Create the GL folder 31 | mkdir -p ${ramdisk_gl} 32 | 33 | # Create communication pipe for the application 34 | [ -e /var/run/gpspipe ] || mknod /var/run/gpspipe p 35 | 36 | # Link actual GPS device 37 | [ -e /dev/gpsdata ] || ln -s /dev/$(cat /proc/barcelona/gpsdev) /dev/gpsdata 38 | 39 | # Create log folder 40 | mkdir -p ${sdcard}/gl/log 41 | 42 | # get the gps receiver type (can we use ${hw_gpstype} here?) 43 | gpstype=`cat /proc/barcelona/gpstype` 44 | if [ ${gpstype} = 128 ] 45 | then 46 | rftype_param='-rftype HH_4L' 47 | elif [ ${gpstype} = 129 ] 48 | then 49 | rftype_param='-rftype HH_4L_INT_ON' 50 | else 51 | rftype_param='' 52 | echo "error determining rftype for gpstype $gpstype" 53 | fi 54 | 55 | # Start gltt 56 | gltt -baud ${gl_baudrate} -periodic 500 -fix_start ${par_fix_start} ${rftype_param} & 57 | } 58 | 59 | stop() { 60 | echo "Stopping gltt" 61 | # killall -KILL gltt 62 | killall gltt 63 | while [ `stop_count` -le ${stop_timeout_in_sec} ]; do 64 | pids=`pidof gltt` 65 | if [ -z "${pids}" ]; then 66 | echo "Stopping break" 67 | break; 68 | fi 69 | echo Stopping $stop_counter `stop_count` 70 | stop_inc 71 | sleep 1 72 | done 73 | } 74 | 75 | case "${1}" in 76 | start) 77 | if [ "${2}" = "" ] ; then 78 | gl_baudrate=${def_baudrate} 79 | else 80 | gl_baudrate=${2} 81 | fi 82 | if [ "${3}" = "" ] ; then 83 | par_fix_start=${def_fix_start} 84 | else 85 | par_fix_start=${3} 86 | fi 87 | sanity 88 | start 89 | ;; 90 | 91 | stop) 92 | stop 93 | ;; 94 | 95 | *) 96 | echo "Usage: ${0} {start|stop}" 97 | exit 1 98 | ;; 99 | 100 | esac 101 | 102 | exit 0 103 | -------------------------------------------------------------------------------- /src/opentom_skel/etc/init.d/S99messages: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | red(){ 4 | echo "\033[0;31m${*}\033[0m" 5 | } 6 | 7 | 8 | 9 | red ' _ _ _ _ _____ ' 10 | red '| \ | | __ ___ _(_) ||_ _|__ _ __ ___ ' 11 | red "| \| |/ _' \ \ / / | __|| |/ _ \| '_ ' _ \ " 12 | red '| |\ | (_| |\ V /| | |_ | | (_) | | | | | |' 13 | red '|_| \_|\__,_| \_/ |_|\__||_|\___/|_| |_| |_|' 14 | 15 | 16 | # Starting USB Ether Gadget ... 17 | KVER=$(uname -r) 18 | 19 | insmod /lib/modules/$KVER/kernel/drivers/usb/gadget/s3c24xx_udc.ko 20 | insmod /lib/modules/$KVER/kernel/drivers/usb/gadget/g_ether.ko 21 | modprobe ext3 22 | ifconfig usb0 192.168.1.10 23 | 24 | -------------------------------------------------------------------------------- /src/opentom_skel/etc/init.d/rcK: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | 4 | # Stop all init scripts in /etc/init.d 5 | # executing them in reversed numerical order. 6 | # 7 | for i in $(ls -r /etc/init.d/S??*) ;do 8 | 9 | # Ignore dangling symlinks (if any). 10 | [ ! -f "$i" ] && continue 11 | 12 | # Ignore files chich are not executable 13 | [ ! -x "$i" ] && echo Ignoring $i because its not executable 14 | 15 | case "$i" in 16 | *.sh) 17 | # Source shell script for speed. 18 | ( 19 | trap - INT QUIT TSTP 20 | set stop 21 | . $i 22 | ) 23 | ;; 24 | *) 25 | # No sh extension, so fork subprocess. 26 | $i stop 27 | ;; 28 | esac 29 | done 30 | 31 | -------------------------------------------------------------------------------- /src/opentom_skel/etc/init.d/rcS: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | 4 | # Start all init scripts in /etc/init.d 5 | # executing them in numerical order. 6 | # 7 | for i in /etc/init.d/S??* ;do 8 | 9 | # Ignore dangling symlinks (if any). 10 | [ ! -f "$i" ] && continue 11 | 12 | # Ignore files chich are not executable 13 | [ ! -x "$i" ] && echo Ignoring $i because its not executable && continue 14 | 15 | case "$i" in 16 | *.sh) 17 | # Source shell script for speed. 18 | ( 19 | trap - INT QUIT TSTP 20 | set start 21 | . $i 22 | ) 23 | ;; 24 | *) 25 | # No sh extension, so fork subprocess. 26 | $i start 27 | ;; 28 | esac 29 | done 30 | 31 | -------------------------------------------------------------------------------- /src/opentom_skel/etc/init_bluetooth: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Defaults 4 | csrinit="y" 5 | btdev="/dev/bt" 6 | btif="hci0" 7 | btmulaw="0" 8 | 9 | mkdir -p /etc/bluetooth/ 10 | 11 | # Setup variables to be inherited by called shell scripts 12 | for i in /proc/barcelona/*; do 13 | export hw_${i##*/}="$(cat $i)" 14 | done 15 | 16 | if ! sed "s/@DEVNAME@/${hw_btname}/;s/@DEVCLASS@/${hw_btclass}/" \ 17 | /usr/local/etc/hcid.conf.template > /etc/bluetooth/hcid.conf; then 18 | die "unable to setup hcid config file" 19 | fi 20 | 21 | if test "${csrinit}" = "y"; then 22 | if test "${hw_btusb}" = "0"; then 23 | if ! csrinit bcsp ${btdev} ${hw_btspeed} ${hw_btclock}; then 24 | die "csrinit failed" 25 | fi 26 | elif ! csrinit usb ${btdev} ${hw_btspeed} ${hw_btclock}; then 27 | echo "csrinit usb failed, trying bcsp" 28 | if ! csrinit bcsp ${btdev} ${hw_btspeed} ${hw_btclock}; then 29 | die "csrinit bcsp failed too" 30 | fi 31 | fi 32 | fi 33 | 34 | 35 | if test "${hw_btusb}" = "0" && ! hciattach /dev/bt bcsp ${hw_btspeed}; then 36 | die "hciattach failed" 37 | fi 38 | 39 | if ! hciconfig ${btif} up; then 40 | die "hciconfig failed" 41 | fi 42 | -------------------------------------------------------------------------------- /src/opentom_skel/etc/network.conf: -------------------------------------------------------------------------------- 1 | # Network config for opentom/bin/start_usbnet 2 | 3 | TYPE=dhcp 4 | IP=192.168.0.200 5 | MASK=255.255.255.0 6 | GW=192.168.0.1 7 | DNS=212.27.40.241 8 | 9 | -------------------------------------------------------------------------------- /src/opentom_skel/etc/nsswitch.conf: -------------------------------------------------------------------------------- 1 | passwd: files 2 | group: files 3 | -------------------------------------------------------------------------------- /src/opentom_skel/etc/nxmenu.cfg: -------------------------------------------------------------------------------- 1 | # MicroWindow nanomenu file configuration 2 | # 3 | # Syntax: 4 | # 5 | # AppName|cmd arg1 arg2 ... 6 | # 7 | sub Applications 8 | once CoolReader 3|cr3.sh 9 | run TomPlayer|tomplayer.sh 10 | separator 11 | run File Explorer|flxplorer 12 | once Web Browser|dillo.sh 13 | separator 14 | run Editor|editor 15 | once Spreadsheet|sprsht -S 1 -r 100 -c 100 -W 320 -H 240 16 | separator 17 | run Navit|navit.sh 18 | run TomTom Navigator|start_ttnavigator 19 | end 20 | sub Games 21 | once 12 Swaps|12swap.sh 22 | run Checkers|flchekers 23 | sub DosBox 24 | run Defender of the Crown|dosbox.sh dotc 25 | end 26 | onoff Dune 2|dune2.sh 27 | once Egg Chess|eggchess.sh 28 | run FreeCell|freecell 29 | sub GNUBoy 30 | once pad 320x240|nxpad_gnuboy.sh _320 31 | once pad XL|nxpad_gnuboy.sh 32 | separator 33 | run Zelda|gnuboy --source etc/gnuboy.rc share/gnuboy/zelda.gbc 34 | end 35 | run Jooleem|jooleem.sh 36 | run LinApple ][|linapple.sh 37 | once Martians|martian.sh 38 | once Mine|mine 39 | sub Misc 40 | onoff Eyes|nxeyes 41 | onoff Roach|nxroach 42 | onoff NXMag|nxmag 43 | end 44 | sub Nano Brick 45 | run Random Level|nanobrick 46 | run Choose Game|nanobrick.sh 47 | separator 48 | run Create Game|nanobrick_new_game.sh 49 | run Edit Game|nanobrick_editor.sh 50 | end 51 | run NetBubble|net-bubble.sh 52 | onoff Pipe|bin/pipepanic/pipe.sh 53 | run Reversi|yareversi 54 | once Tetris|ntetris 55 | once Sudoku|sudoku 56 | once ScummVM|scummvm.sh 57 | once TuxChess|tuxchess 58 | once Tetravex|nxtetravex 59 | end 60 | sub Tools 61 | sub System 62 | once Load Monitor|nxloadmon 63 | sub CPU speed 64 | once Minimal (125 MHz)|set_cpu_governor powersave 65 | once Performance (250 MHz)|set_cpu_governor performance 66 | end 67 | onoff Battery Monitor|nx_bat_monitor 68 | once LCD Bightness|nxlight 69 | sub LCD Orientation 70 | once None|setportrait none 71 | once Left|setportrait left 72 | once Right|setportrait right 73 | once Down|setportrait down 74 | end 75 | separator 76 | once Process Killer|flkill 77 | separator 78 | run TTConsole|start_ttconsole 79 | end 80 | onoff Keyboard|nxkeyboard -d share/keymaps -m com 81 | once Clock|nxclock 82 | run Fonts|fonts 83 | run Terminal|nxterminal 84 | onoff Xmag|nxmag 85 | separator 86 | sub Logs 87 | run navit.log|editor /mnt/sdcard/opentom/logs/navit.log 88 | run nxmenu.log|editor /mnt/sdcard/opentom/logs/nxmenu.log 89 | run start.log|editor /mnt/sdcard/opentom/logs/start.log 90 | run syslog|editor /mnt/sdcard/opentom/logs/messages 91 | end 92 | end 93 | separator 94 | sub Network 95 | sub Information 96 | run ifconfig|show_cmd ifconfig -a 97 | end 98 | separator 99 | sub Bluetooth 100 | onoff Initialize Bluetooth|start_bt 101 | onoff Connect to other TomTom|start_bt_connect2tomtom 102 | separator 103 | onoff Listen for serial over BT|bt_serial 104 | onoff Listen for PPP over BT|bt_ppp_up 105 | onoff Stop PPP over BT|bt_ppp_dn 106 | onoff GPS data server|bt_gps 107 | separator 108 | onoff Stop Bluetooth|stop_bt 109 | end 110 | separator 111 | onoff Telnet Server|/usr/sbin/telnetd -F 112 | onoff SSH Server|start_ssh 113 | onoff FTP Server|/usr/bin/tcpsvd -vE 0.0.0.0 21 /usr/sbin/ftpd -wv /mnt/sdcard 114 | end 115 | separator 116 | sub USB 117 | sub Mode Host 118 | once USB Networking (usbnet)|start_usbnet 119 | end 120 | sub Mode Device 121 | once Ethernet Gadget|start_usb0_up 122 | once Serial Gadget|start_usb0_serial 123 | end 124 | separator 125 | once Mount USB Stick|start_usbstick 126 | once Clean USB|stop_usb 127 | end 128 | separator 129 | once Restart X|killall -9 nano-X 130 | once Suspend|suspend 131 | once Reboot|bin/reboot 132 | -------------------------------------------------------------------------------- /src/opentom_skel/etc/profile: -------------------------------------------------------------------------------- 1 | export DIST=/mnt/sdcard/opentom 2 | . /etc/.shinit 3 | for i in /proc/barcelona/*; do export "hw_${i##*/}"="$(cat "$i")"; done 4 | cd() { chdir "$@" && PS1="root:$PWD\$ "; } 5 | cd . 6 | lswinscp() { ls -ailn "$@" |sed -Ene 's~^[^0-9]*([0-9]+) +([-a-z]+) +[0-9]+ +[0-9] +[0-9] *([0-9].*)$~\2 \1 root root \3~p'; } 7 | -------------------------------------------------------------------------------- /src/opentom_skel/etc/rc.bluetooth: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | #_rc.bluetooth: Loads Bluetooth modules and starts associated programs. 3 | 4 | for i in /proc/barcelona/*; do 5 | export hw_${i##*/}="$(cat $i)" 6 | done 7 | mkdir -p /etc/bluetooth 8 | 9 | die() { 10 | echo "ERROR: $1" 11 | exit 1 12 | } 13 | 14 | # Defaults 15 | csrinit="y" 16 | btdev="/dev/bt" 17 | btif="hci0" 18 | btmulaw="0" 19 | 20 | if test "${hw_bluetooth}" = "0"; then 21 | echo "* NOT starting Bluetooth " 22 | exit 0 23 | fi 24 | 25 | if test "$1" = "resume"; then 26 | echo "* Resuming Bluetooth"; 27 | elif test "$1" = "suspend"; then 28 | echo "* Suspending Bluetooth" 29 | if test "${hw_btusb}" = "0"; then 30 | hciconfig ${btif} down 31 | if pid=$(pidof hciattach); then 32 | kill ${pid} 33 | wait ${pid} 34 | fi 35 | fi 36 | exit 0; 37 | else 38 | echo "* Starting Bluetooth" 39 | 40 | if ! sed "s/@DEVNAME@/${hw_btname}/;s/@DEVCLASS@/${hw_btclass}/" $HOME/etc/hcid.conf.template > /etc/bluetooth/hcid.conf; then 41 | die "unable to setup hcid config file" 42 | fi 43 | 44 | # if ! hcid; then 45 | # die "hcid failed" 46 | # fi 47 | 48 | # if ! sdpd; then 49 | # die "sdpd failed" 50 | # fi 51 | fi 52 | 53 | if test "${hw_btusb}" != "0"; then 54 | if ! insmod ohci-hcd.ko; then 55 | die "insmod ohci-hcd failed" 56 | fi 57 | # let usb stabilise ? 58 | sleep 1 59 | fi 60 | 61 | if test "${csrinit}" = "y"; then 62 | if test "${hw_btusb}" = "0"; then 63 | if ! csrinit bcsp ${btdev} ${hw_btspeed} ${hw_btclock}; then 64 | die "csrinit failed" 65 | fi 66 | elif ! csrinit usb ${btdev} ${hw_btspeed} ${hw_btclock}; then 67 | echo "csrinit usb failed, trying bcsp" 68 | if ! csrinit bcsp ${btdev} ${hw_btspeed} ${hw_btclock}; then 69 | die "csrinit bcsp failed too" 70 | fi 71 | fi 72 | fi 73 | 74 | if test "${hw_btusb}" = "0" && ! hciattach /dev/bt bcsp ${hw_btspeed}; then 75 | die "hciattach failed" 76 | fi 77 | 78 | if ! hciconfig ${btif} up; then 79 | die "hciconfig failed" 80 | fi 81 | 82 | # todo: check voice over USB 83 | if test "${btmulaw}" != "0" && ! hciconfig ${btif} voice 0x014c; then 84 | die "hciconfig voice failed" 85 | fi 86 | 87 | if test "$1" != "resume"; then 88 | if test "${hw_handsfree}" != "0" && ! sdptool add hf; then 89 | echo "warning: failed to call sdptool add hf" 90 | fi 91 | 92 | if test "${hw_headsetgw}" != "0" && ! sdptool add hsagw; then 93 | echo "warning: failed to call sdptool add hsagw" 94 | fi 95 | 96 | if test "${hw_a2dp}" != "0" && ! sdptool add a2src; then 97 | echo "warning: failed to call sdptool add a2src" 98 | fi 99 | 100 | blueserver.a /var/run/bluesock & 101 | 102 | btserver & 103 | fi 104 | 105 | -------------------------------------------------------------------------------- /src/opentom_skel/etc/ts.conf: -------------------------------------------------------------------------------- 1 | # Uncomment if you wish to use the linux input layer event interface 2 | # The new TomTom versions (ONE, XL) require a different driver. 3 | # For these devices, uncomment "module_raw input" instead. 4 | module_raw input 5 | 6 | # Uncomment if you're using a Sharp Zaurus SL-5500/SL-5000d 7 | # module_raw collie 8 | 9 | # Uncomment if you're using a Sharp Zaurus SL-C700/C750/C760/C860 10 | # module_raw corgi 11 | 12 | # Uncomment if you're using a device with a UCB1200/1300/1400 TS interface 13 | # module_raw ucb1x00 14 | 15 | # Uncomment if you're using an HP iPaq h3600 or similar 16 | # module_raw h3600 17 | 18 | # Uncomment if you're using a Hitachi Webpad 19 | # module_raw mk712 20 | 21 | # Uncomment if you're using an IBM Arctic II 22 | # module_raw arctic2 23 | 24 | module pthres pmin=1 25 | 26 | #deleted to allow double click and other gestures to work 27 | #module variance delta=30 28 | 29 | module dejitter delta=100 30 | module linear 31 | -------------------------------------------------------------------------------- /src/opentom_skel/fonts/fonts.alias: -------------------------------------------------------------------------------- 1 | ! fonts.alias file 2 | -*-*zapf dingbats-* miniFont 3 | cursor cursor.pcf.gz 4 | -------------------------------------------------------------------------------- /src/opentom_skel/fonts/fonts.dir: -------------------------------------------------------------------------------- 1 | 14 2 | 04b_03__.ttf -adobe-zapf dingbats-medium-r-normal--8-0-0-0-m-0-iso8859-1 3 | cour.ttf -adobe-courier-medium-r-normal--0-0-0-0-m-0-iso8859-1 4 | courb.ttf -adobe-courier-bold-r-normal--0-0-0-0-m-0-iso8859-1 5 | couri.ttf -adobe-courier-medium-o-normal--0-0-0-0-m-0-iso8859-1 6 | courz.ttf -adobe-courier-bold-o-normal--0-0-0-0-m-0-iso8859-1 7 | arial.ttf -adobe-helvetica-medium-r-normal--0-0-0-0-p-0-iso8859-1 8 | arialb.ttf -adobe-helvetica-bold-r-normal--0-0-0-0-p-0-iso8859-1 9 | ariali.ttf -adobe-helvetica-medium-o-normal--0-0-0-0-p-0-iso8859-1 10 | arialz.ttf -adobe-helvetica-bold-o-normal--0-0-0-0-p-0-iso8859-1 11 | times.ttf -adobe-times-medium-r-normal--0-0-0-0-p-0-iso8859-1 12 | timesb.ttf -adobe-times-bold-r-normal--0-0-0-0-p-0-iso8859-1 13 | timesi.ttf -adobe-times-medium-i-normal--0-0-0-0-p-0-iso8859-1 14 | timesz.ttf -adobe-times-bold-i-normal--0-0-0-0-p-0-iso8859-1 15 | cursor.pcf.gz cursor 16 | 17 | -------------------------------------------------------------------------------- /src/opentom_skel/getenv.sh: -------------------------------------------------------------------------------- 1 | export DIST=/mnt/sdcard/opentom 2 | export HOME=$DIST 3 | 4 | export NANOX_YRES=272 5 | 6 | export FRAMEBUFFER=/dev/fb 7 | export TSLIB_CONSOLEDEVICE=none 8 | export TSLIB_FBDEVICE=/dev/fb 9 | export TSLIB_TSDEVICE=/dev/input/event0 10 | export TSLIB_CONFFILE=$DIST/etc/ts.conf 11 | export TSLIB_PLUGINDIR=$DIST/lib/ts 12 | export TSLIB_CALIBFILE=$DIST/etc/pointercal 13 | 14 | export PATH=/sbin:/usr/sbin:/bin:/usr/bin:$DIST/bin 15 | export LD_LIBRARY_PATH=$DIST/lib 16 | 17 | -------------------------------------------------------------------------------- /src/opentom_skel/share/dosbox/dotc_dosbox.conf: -------------------------------------------------------------------------------- 1 | [sdl] 2 | fullscreen=false 3 | fulldouble=false 4 | fullresolution=320x200 5 | windowresolution=320x200 6 | output=surface 7 | autolock=true 8 | sensitivity=100 9 | waitonerror=false 10 | priority=higher,normal 11 | mapperfile=mapper-0.74.map 12 | usescancodes=false 13 | [dosbox] 14 | language= 15 | machine=cga 16 | captures=capture 17 | memsize=1 18 | 19 | [render] 20 | frameskip=5 21 | aspect=true 22 | scaler=none 23 | 24 | [cpu] 25 | core=simple 26 | cputype=386 27 | cycles=auto 28 | cycleup=10 29 | cycledown=20 30 | 31 | [mixed] 32 | nosound=true 33 | rate=44100 34 | blocksize=1024 35 | prebuffer=20 36 | 37 | [midi] 38 | mpu401=none 39 | mididevice=none 40 | midiconfig= 41 | 42 | [sblaster] 43 | sbtype=none 44 | 45 | [gus] 46 | gus=false 47 | 48 | [speaker] 49 | pcspeaker=false 50 | 51 | [serial] 52 | serial1=disabled 53 | serial2=disabled 54 | serial3=disabled 55 | serial4=disabled 56 | 57 | [dos] 58 | xms=false 59 | ems=false 60 | umb=false 61 | keyboardlayout=auto 62 | 63 | [autoexec] 64 | mount a DefenderOfTheCrown 65 | a: 66 | doc.exe 67 | 68 | -------------------------------------------------------------------------------- /src/opentom_skel/share/flreversi/classic1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navit-gps/NavitTom/dce9f8ea5c7a387c2eab46d545018c6f21bf0c6a/src/opentom_skel/share/flreversi/classic1.png -------------------------------------------------------------------------------- /src/opentom_skel/share/gnuboy/classic.rc: -------------------------------------------------------------------------------- 1 | # 2 | # classic.rc - nxpad - change keybindings, palette, etc 3 | # to match the old pre-1.0 settings. 4 | # 5 | 6 | unbindall 7 | 8 | bind esc quit 9 | bind t +up 10 | bind v +down 11 | bind f +left 12 | bind h +right 13 | bind a +a 14 | bind b +b 15 | bind enter +start 16 | bind space +select 17 | bind 1 "set saveslot 1" 18 | bind 2 "set saveslot 2" 19 | bind 3 "set saveslot 3" 20 | bind 4 "set saveslot 4" 21 | bind 5 "set saveslot 5" 22 | bind 6 "set saveslot 6" 23 | bind 7 "set saveslot 7" 24 | bind 8 "set saveslot 8" 25 | bind 9 "set saveslot 9" 26 | bind 0 "set saveslot 0" 27 | bind s savestate 28 | bind l loadstate 29 | 30 | set dmg_bgp 0x78f0f0 0x58b8b8 0x487878 0x184848 31 | set dmg_wndp 0x78f0f0 0x58b8b8 0x487878 0x184848 32 | set dmg_obp0 0x78f0f0 0x58b8b8 0x487878 0x184848 33 | set dmg_obp1 0x78f0f0 0x58b8b8 0x487878 0x184848 34 | 35 | set fullscreen 0 36 | set samplerate 16000 37 | set stereo 0 38 | 39 | 40 | -------------------------------------------------------------------------------- /src/opentom_skel/share/navit/maps/osm_bbox_sample.xml.README: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /src/opentom_skel/share/tuxchess/images/board.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navit-gps/NavitTom/dce9f8ea5c7a387c2eab46d545018c6f21bf0c6a/src/opentom_skel/share/tuxchess/images/board.gif -------------------------------------------------------------------------------- /src/opentom_skel/start.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | export HOME="$DIST" 4 | 5 | # Login files 6 | [ -f "$DIST/etc/.shinit" ] && cp -f "$DIST/etc/.shinit" /etc/ 7 | [ -f "$DIST/etc/profile" ] && cp -f "$DIST/etc/profile" /etc/ 8 | . /etc/.shinit 9 | 10 | DB=/etc/dropbear 11 | RSA_KEYFILE="$DB/dropbear_rsa_host_key" 12 | 13 | echo 'Disabling BT' 14 | stop_bt -s 15 | 16 | #echo 'syslogd' 17 | #rm -f "$DIST/logs/messages"; syslogd "-O$DIST/logs/messages" -l8 18 | 19 | echo 'opentom * opentom' >/etc/ppp/pap-secrets 20 | chmod 0600 /etc/ppp/pap-secrets 21 | 22 | ifconfig lo 127.0.0.1 up 23 | 24 | echo 'telnetd' 25 | telnetd 26 | 27 | echo 'ssh private key' 28 | [ -d "$DIST$DB" ] && { 29 | [ -e "$DIST$RSA_KEYFILE" ] || dropbearkey -t rsa -f "$DIST$RSA_KEYFILE" && 30 | cp -f "$DIST$RSA_KEYFILE" "$RSA_KEYFILE" && 31 | chmod 0600 "$RSA_KEYFILE" 32 | } 33 | 34 | echo 'ssh server' 35 | [ -f "$RSA_KEYFILE" ] && [ -f "$DIST$DB/authorized_keys" ] && 36 | cp -f "$DIST$DB/authorized_keys" /.ssh/authorized_keys && chmod 0600 /.ssh/authorized_keys 37 | env HOME=/ dropbear -sgB 38 | 39 | # Verify TS is calibrated 40 | [ -f "$TSLIB_CALIBFILE" ] || ts_calibrate 41 | 42 | # Suspend when the power button is pressed or the battery is low 43 | power_button -b "$DIST/bin/suspend" "$DIST/bin/suspend" & 44 | 45 | while true 46 | do 47 | pidof nano-X >/dev/null 2>&1 || { nice -n -10 nano-X & } 48 | pidof nanowm >/dev/null 2>&1 || { nanowm & } 49 | pidof nano-X >/dev/null 2>&1 && pidof nanowm >/dev/null 2>&1 || ! sleep 1 || continue 50 | nxmenu "$DIST/etc/nxmenu.cfg" >"$DIST/logs/nxmenu.log" 2>&1 51 | done 52 | -------------------------------------------------------------------------------- /src/splash_screen/opentom_image.xcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navit-gps/NavitTom/dce9f8ea5c7a387c2eab46d545018c6f21bf0c6a/src/splash_screen/opentom_image.xcf -------------------------------------------------------------------------------- /src/splash_screen/opentom_splash.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navit-gps/NavitTom/dce9f8ea5c7a387c2eab46d545018c6f21bf0c6a/src/splash_screen/opentom_splash.bmp -------------------------------------------------------------------------------- /src/splash_screen/opentom_splash_empty.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navit-gps/NavitTom/dce9f8ea5c7a387c2eab46d545018c6f21bf0c6a/src/splash_screen/opentom_splash_empty.bmp -------------------------------------------------------------------------------- /src/splash_screen/opentom_splash_xl.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navit-gps/NavitTom/dce9f8ea5c7a387c2eab46d545018c6f21bf0c6a/src/splash_screen/opentom_splash_xl.bmp -------------------------------------------------------------------------------- /src/splash_screen/opentom_splash_xl_empty.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navit-gps/NavitTom/dce9f8ea5c7a387c2eab46d545018c6f21bf0c6a/src/splash_screen/opentom_splash_xl_empty.bmp -------------------------------------------------------------------------------- /src/splash_screen/text.xcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navit-gps/NavitTom/dce9f8ea5c7a387c2eab46d545018c6f21bf0c6a/src/splash_screen/text.xcf -------------------------------------------------------------------------------- /src/tools/Makefile: -------------------------------------------------------------------------------- 1 | install: 2 | # Environment sanity checks 3 | @if [ -z $(ROOT) ]; then echo "Please, do first : source get_build_env.sh"; false; fi 4 | @if [ "$(ROOT)" != "$(PWD)" ]; then echo "The ROOT environment variable $(ROOT) != $(PWD) doesn't match the current directory"; fi 5 | install -d $(ROOT)/tools 6 | install -t $(ROOT)/tools get_source.sh install_shared_libs.sh is_use_lib.sh 7 | make -C ttimage_tools install 8 | 9 | clean: 10 | make -C ttimage_tools clean 11 | -------------------------------------------------------------------------------- /src/tools/get_source.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | exist=`ls ${DOWNLOADS}/*$1* 2>/dev/null` 4 | if [ ! -z "$exist" ]; then 5 | # ln -s "$exist" ${DOWNLOADS}/$1 2>/dev/null 6 | exit 0; 7 | fi 8 | 9 | echo Searching how to get $1 ... 10 | 11 | source=`grep "$1" $CONFIGS/sources.txt | grep -v ^\#` 12 | 13 | if [ -z "$source" ]; then 14 | echo URL to get "$1" not found in $CONFIGS/sources.txt 15 | exit 1; 16 | else 17 | cd ${DOWNLOADS} 18 | echo Running : \"$source\" ... 19 | eval "$source" 20 | fi 21 | -------------------------------------------------------------------------------- /src/tools/install_shared_libs.sh: -------------------------------------------------------------------------------- 1 | #! /bin/bash 2 | 3 | if [ -z "$1" ]; then 4 | echo Usage: $0 \"lib_path1 lib_path2 ...\" 5 | exit 6 | fi 7 | 8 | initramfs_dir=$1 9 | shift 10 | paths=$* 11 | 12 | typeset -i found 13 | 14 | find $initramfs_dir -type f -exec ${T_ARCH}-readelf -d {} 2>/dev/null \; | grep NEEDED | cut -f2 -d[ | cut -f1 -d] | sort | uniq | while read lib 15 | do 16 | 17 | if [ -f $initramfs_dir/lib/$lib ]; then 18 | echo $lib is allready installed. 19 | continue 20 | fi 21 | 22 | found=0 23 | for p in $paths 24 | do 25 | if [ -f $p/$lib ]; 26 | then 27 | found=1 28 | echo found $p/$lib 29 | cp -u $p/$lib $initramfs_dir/lib/ 30 | ${CROSS}/bin/${STRIP} $initramfs_dir/lib/$lib 31 | break 32 | fi 33 | done 34 | 35 | if [[ $found -eq 0 ]]; then 36 | echo WARNING: Can\'t find : $lib for this files : 37 | find $initramfs_dir -type f -exec is_use_lib.sh {} $lib \; -print 38 | fi 39 | 40 | done 41 | 42 | -------------------------------------------------------------------------------- /src/tools/is_use_lib.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | if ${T_ARCH}-readelf -d $1 2>/dev/null | grep NEEDED | cut -f2 -d[ | cut -f1 -d] | grep $2 >/dev/null 4 | then 5 | exit 0 6 | else 7 | exit 1 8 | fi 9 | -------------------------------------------------------------------------------- /src/tools/ttimage_tools/Makefile: -------------------------------------------------------------------------------- 1 | CC=gcc 2 | CFLAGS= 3 | 4 | all: mkttimage ttimgextract 5 | 6 | .PHONY: install 7 | install: mkttimage ttimgextract 8 | install -D mkttimage $(ROOT)/tools/mkttimage 9 | install -D ttimgextract $(ROOT)/tools/ttimgextract 10 | 11 | mkttimage: mkttimage.o md5.o blowfish.o 12 | $(CC) -o mkttimage mkttimage.o md5.o blowfish.o 13 | 14 | ttimgextract: ttimgextract.o 15 | $(CC) -o ttimgextract ttimgextract.o 16 | 17 | %.o: %.c 18 | $(CC) -c $< 19 | 20 | .PHONY: clean 21 | clean: 22 | rm -f ttimgextract mkttimage *.o 23 | -------------------------------------------------------------------------------- /src/tools/ttimage_tools/README.txt: -------------------------------------------------------------------------------- 1 | 2 | ./mkttimage ttsystem.cpio.z vmlinuz > ttsystem 3 | 4 | ET 5 | 6 | ./ttimgextract ttsystem 7 | gunzip < ttsystem.0 > ttsystem.cpio 8 | 9 | Affichage de l'archive: 10 | 11 | cpio -t -v < ./ttsystem.cpio 12 | 13 | -------------------------------------------------------------------------------- /src/tools/ttimage_tools/blowfish.h: -------------------------------------------------------------------------------- 1 | /* 2 | blowfish.h: Header file for blowfish.c 3 | 4 | Copyright (C) 1997 by Paul Kocher 5 | 6 | This library is free software; you can redistribute it and/or 7 | modify it under the terms of the GNU Lesser General Public 8 | License as published by the Free Software Foundation; either 9 | version 2.1 of the License, or (at your option) any later version. 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with this library; if not, write to the Free Software 16 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 | 18 | 19 | See blowfish.c for more information about this file. 20 | */ 21 | 22 | #include 23 | 24 | 25 | typedef struct { 26 | uint32_t P[16 + 2]; 27 | uint32_t S[4][256]; 28 | } BLOWFISH_CTX; 29 | 30 | void Blowfish_Init(BLOWFISH_CTX *ctx, unsigned char *key, int keyLen); 31 | void Blowfish_Encrypt(BLOWFISH_CTX *ctx, uint32_t *xl, uint32_t *xr); 32 | void Blowfish_Decrypt(BLOWFISH_CTX *ctx, uint32_t *xl, uint32_t *xr); 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /src/tools/ttimage_tools/md5.h: -------------------------------------------------------------------------------- 1 | #ifndef _MD5_H_ 2 | #define _MD5_H_ 3 | 4 | struct MD5Context { 5 | unsigned int buf[4]; 6 | unsigned int bits[2]; 7 | unsigned char in[64]; 8 | }; 9 | 10 | typedef struct MD5Context MD5_CTX; 11 | 12 | /* initialize a MD5 context */ 13 | void MD5Init(MD5_CTX *context); 14 | 15 | /* add data to the hash */ 16 | void MD5Update(MD5_CTX *context, unsigned char const *buf, unsigned len); 17 | 18 | /* finalize hash */ 19 | void MD5Final(unsigned char *digest, MD5_CTX *context); 20 | 21 | #endif // _MD5_H_ 22 | -------------------------------------------------------------------------------- /src/tools/ttimage_tools/ttimageextract.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | CWD=$(pwd) 3 | ORGTTIMAGE=${1:-"${CWD}/ttsystem"} 4 | OUTPUT_DIR=${2:-"${CWD}/ttsystem_root"} 5 | NAME=$(basename $0) 6 | 7 | usage () 8 | { [ "$*" != "" ] && echo $* 9 | cat << EOF 10 | 11 | Usage: 12 | $NAME [ttsystem image path] [extract directory] 13 | 14 | If [ttsystem image path] is not specified ./ttsystem_root will be used. 15 | If [extract directory] is not specified ./ttsystem_root will be used. 16 | 17 | [extract directory] must not exist before running this script. 18 | EOF 19 | exit 1 20 | } 21 | 22 | [ "$1" = "-h" ] && usage 23 | [ ! -r $ORGTTIMAGE ] && usage "Error: No ttsystem found" 24 | if [ -d $OUTPUT_DIR ] 25 | then 26 | cat << EOF 27 | Directory $OUTPUT_DIR already exists ... 28 | Please remove it before running this or change destination directory. 29 | EOF 30 | exit 1 31 | else 32 | mkdir -p $OUTPUT_DIR 33 | fi 34 | 35 | IMAGE_SIZE=$(od -l -j4 -N4 $ORGTTIMAGE |head -1 |awk '{print $NF}') 36 | cd $OUTPUT_DIR 37 | dd if=$ORGTTIMAGE bs=1 skip=12 count=$IMAGE_SIZE |gunzip -c | cpio -id 38 | 39 | -------------------------------------------------------------------------------- /src/tools/ttimage_tools/ttimgextract.c: -------------------------------------------------------------------------------- 1 | /* ttimgextract - TomTom GO image extractor 2 | * 3 | * (C) 2004 by Harald Welte 4 | * 5 | */ 6 | 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | #include 14 | #include 15 | 16 | 17 | struct ttimg_magic { 18 | char magic[4]; 19 | }; 20 | 21 | struct ttimg_sect_hdr { 22 | u_int32_t sect_size; 23 | u_int32_t sect_addr; 24 | }; 25 | 26 | struct ttimg_sect_sig { 27 | char signature[16]; 28 | }; 29 | 30 | static int dump_to_file(const char *pathprefix, void *start, int len) 31 | { 32 | static unsigned int counter = 0; 33 | char fname[PATH_MAX]; 34 | int outfd; 35 | 36 | sprintf(fname, "%s.%u", pathprefix, counter); 37 | 38 | counter++; 39 | 40 | outfd = open(fname, O_WRONLY|O_CREAT, S_IRUSR|S_IWUSR); 41 | if (!outfd) 42 | return -1; 43 | 44 | if (write(outfd, start, len) != len) { 45 | close(outfd); 46 | return -1; 47 | } 48 | 49 | close(outfd); 50 | 51 | return 1; 52 | } 53 | 54 | static int extract(const char *pathname, int dump) 55 | { 56 | int fd, ret; 57 | struct stat st; 58 | void *mem; 59 | 60 | struct ttimg_magic *tt_magic; 61 | struct ttimg_sect_hdr * tt_secthdr; 62 | 63 | fd = open(pathname, O_RDONLY); 64 | if (fd < 0) 65 | goto err_out; 66 | 67 | if (fstat(fd, &st) < 0) 68 | goto err_close; 69 | 70 | 71 | mem = mmap(NULL, st.st_size, PROT_READ, MAP_SHARED, fd, 0); 72 | if (!mem) 73 | goto err_close; 74 | 75 | tt_magic = mem; 76 | 77 | if (strncmp((char *)&tt_magic->magic, "TTBL", 4)) 78 | goto err_unmap; 79 | 80 | for (tt_secthdr = mem + sizeof(*tt_magic); 81 | (void *) tt_secthdr + sizeof(*tt_secthdr) < mem + st.st_size; 82 | tt_secthdr = (void *)tt_secthdr + sizeof(*tt_secthdr) 83 | + tt_secthdr->sect_size 84 | + sizeof(struct ttimg_sect_sig)) { 85 | void *payload_start = (void *)tt_secthdr + sizeof(*tt_secthdr); 86 | struct ttimg_sect_sig *sig = payload_start + tt_secthdr->sect_size; 87 | unsigned int size = tt_secthdr->sect_size; 88 | unsigned int addr = tt_secthdr->sect_addr; 89 | 90 | if (size == 0) 91 | break; 92 | 93 | printf("sect_size = 0x%x, sect_addr = 0x%x\n", size, addr); 94 | 95 | if (dump) 96 | dump_to_file(pathname, payload_start, tt_secthdr->sect_size); 97 | } 98 | 99 | err_unmap: 100 | munmap(mem, st.st_size); 101 | err_close: 102 | close(fd); 103 | err_out: 104 | return ret; 105 | } 106 | 107 | /* */ 108 | int main(int argc, char **argv) 109 | { 110 | if (argc != 2) { 111 | fprintf(stderr, "Usage: %s \n", argv[0]); 112 | exit(2); 113 | } 114 | 115 | if (extract(argv[1], 1) < 0) 116 | exit(1); 117 | 118 | exit(0); 119 | } 120 | --------------------------------------------------------------------------------