From: <sle...@us...> - 2006-11-21 13:39:23
|
Revision: 679 http://svn.sourceforge.net/hackndev/?rev=679&view=rev Author: sleep_walker Date: 2006-11-21 05:39:18 -0800 (Tue, 21 Nov 2006) Log Message: ----------- l4p: cmdline fix, less debug output Modified Paths: -------------- linux4palm/BFUGarux/BFULinuxHelper.c linux4palm/BFUGarux/BFUSettings-alone.c linux4palm/BFUGarux/README linux4palm/BFUGarux/cmdline linux4palm/BFUGarux/garux-clean.c linux4palm/BFUGarux/icons/icon_256.bmp linux4palm/BFUGarux/icons/icon_256_s.bmp linux4palm/BFUGarux/icons/icon_hr.bmp linux4palm/BFUGarux/icons/icon_hr_s.bmp Modified: linux4palm/BFUGarux/BFULinuxHelper.c =================================================================== --- linux4palm/BFUGarux/BFULinuxHelper.c 2006-11-17 08:45:11 UTC (rev 678) +++ linux4palm/BFUGarux/BFULinuxHelper.c 2006-11-21 13:39:18 UTC (rev 679) @@ -14,6 +14,8 @@ * no warranty, freedom, blah blah blah (you surely know it) */ +#define DEBUG + #ifdef DEBUG #define CMDLINE_FILE "cmdline" #else Modified: linux4palm/BFUGarux/BFUSettings-alone.c =================================================================== --- linux4palm/BFUGarux/BFUSettings-alone.c 2006-11-17 08:45:11 UTC (rev 678) +++ linux4palm/BFUGarux/BFUSettings-alone.c 2006-11-21 13:39:18 UTC (rev 679) @@ -1,4 +1,4 @@ -#define BFU_VERBOSE +//#define BFU_VERBOSE #include "BFUDefaultSettings.h" #include "BFUSettings.Rsrc.h" @@ -184,7 +184,9 @@ // BFUdoDie("Creating address and/or device string",0); StrPrintF(BFUCommandLinePart," BFUSettings=%x",options); StrCat(BFUCommandLinePart,del); +#ifdef BFU_VERBOSE BFUdoDie(BFUCommandLinePart,0); +#endif *netSet='\0'; *globalSet='\0'; // BFUdoDie("Creating network preferences string",0); @@ -216,13 +218,18 @@ StrCat(BFUCommandLinePart,netSet); // BFUdoDie(BFUCommandLinePart,0); StrCat(BFUCommandLinePart,del); +#ifdef BFU_VERBOSE BFUdoDie(BFUCommandLinePart,0); +#endif } //global part + *globalSet='\0'; +#ifdef BFU_VERBOSE if (BFUSettingsValues.address) BFUdoDie(BFUSettingsValues.address,0); if (BFUSettingsValues.device) BFUdoDie(BFUSettingsValues.device,0); +#endif switch(BFUSettingsValues.source) { case 0: @@ -384,6 +391,15 @@ return true; } +static UInt16 BFUSetVolRefNum() +{ + UInt16 volRefNum; + UInt32 volIterator = vfsIteratorStart; + + VFSVolumeEnumerate(&volRefNum, &volIterator); + return volRefNum; +} + /* * * this function tries to find saved preferences on cards @@ -432,9 +448,9 @@ BFUdoDie("BFUSavedPrefs already in RAM",0); case errNone: // that means errNone - nothing else is returned by this function -// BFUdoDie("BFUSavedPrefs found on card",0); + BFUdoDie("BFUSavedPrefs found on card",volRefNum); volIterator = vfsIteratorStop; - BFUPrefsVolRefNum =volRefNum; + BFUPrefsVolRefNum = volRefNum; break; default: //what did I missed??? @@ -573,9 +589,11 @@ return true; } + + static Boolean BFUExportPrefs2Card() { - UInt16 volRefNum = BFUPrefsFoundOnCard ? BFUPrefsVolRefNum : 1; + UInt16 volRefNum = BFUPrefsFoundOnCard ? BFUPrefsVolRefNum : BFUSetVolRefNum(); //FIXME: this line should be remade // UInt32 volIterator=vfsIteratorStart; Err err; // BFUdoDie("Going to delete old preferences...",0); @@ -589,14 +607,16 @@ BFUdoDie("Bad filename (VFSFileDelete)",0); break; case vfsErrDirNotEmpty: - BFUdoDie("Directory is not empty (VFSFileDelete). That means something wrong, I'm not deleting directories...",0); + BFUdoDie("Directory is not empty (VFSFileDelete). That means something is wrong, I'm not deleting directories...",0); return false; break; case vfsErrFileStillOpen: BFUdoDie("Old preferences are still opened - shouldn't happen",0); break; case vfsErrFileNotFound: +#ifdef BFU_VERBOSE BFUdoDie("Old preferences couldn't be found, it's ok...",0); +#endif break; case vfsErrFilePermissionDenied: BFUdoDie("Couldn't delete old preferences - permission denied.",0); @@ -684,13 +704,13 @@ BFUSettingsValues.silentBoot = CtlGetValue(getObjectPtr(pForm,BFUSilentBootBox)); break; case BFUCardReadonlyBox: - BFUSettingsValues.silentBoot = CtlGetValue(getObjectPtr(pForm,BFUCardReadonlyBox)); + BFUSettingsValues.cardRO = CtlGetValue(getObjectPtr(pForm,BFUCardReadonlyBox)); break; case BFUDebugModeBox: - BFUSettingsValues.silentBoot = CtlGetValue(getObjectPtr(pForm,BFUDebugModeBox)); + BFUSettingsValues.debug = CtlGetValue(getObjectPtr(pForm,BFUDebugModeBox)); break; case BFUKeyboardSupportBox: - BFUSettingsValues.silentBoot = CtlGetValue(getObjectPtr(pForm,BFUKeyboardSupportBox)); + BFUSettingsValues.keyboard = CtlGetValue(getObjectPtr(pForm,BFUKeyboardSupportBox)); break; case BFUReflashBox: BFUSettingsValues.reflash = CtlGetValue(getObjectPtr(pForm,BFUReflashBox)); Modified: linux4palm/BFUGarux/README =================================================================== --- linux4palm/BFUGarux/README 2006-11-17 08:45:11 UTC (rev 678) +++ linux4palm/BFUGarux/README 2006-11-21 13:39:18 UTC (rev 679) @@ -8,13 +8,10 @@ 1) Compile a suitable kernel for the Palm and get the zImage. 2) Copy the zImage file in to the boot loader source directory. 3) Type 'make' to see usage - syntax is - make <palm_type> [BFU] <garux-type.prc> + make <palm_type> <BFU> <palm_type> could be palmld, palmte, palmtt, palmtt3, palmtt5, palmtx, palmz72 - [BFU] - type BFU if you want BFUSettings support - <garux-type.prc> could be: - garux.prc - good old one - garux-cleaner.prc - rewrite of garux code to be better modificable + <BFU> could be BFU or noBFU - type BFU if you want BFUSettings support II] Bugs and Limitations Modified: linux4palm/BFUGarux/cmdline =================================================================== --- linux4palm/BFUGarux/cmdline 2006-11-17 08:45:11 UTC (rev 678) +++ linux4palm/BFUGarux/cmdline 2006-11-21 13:39:18 UTC (rev 679) @@ -1 +1 @@ -blah blah blah BFUSettings=0BE0;c0a80101c0a80115ffffffff;/linux2ram;/dev/mmcblk0p1;20%; blah +mem=0x04000000 initrd=0xA0400000,631365 root=/dev/ram0 init=/linuxrc BFUSettings=0B60;C0A8017BC0A80101FFFFFFFF;/linux2ram;/dev/mmcblk0p1;20%; Modified: linux4palm/BFUGarux/garux-clean.c =================================================================== --- linux4palm/BFUGarux/garux-clean.c 2006-11-17 08:45:11 UTC (rev 678) +++ linux4palm/BFUGarux/garux-clean.c 2006-11-21 13:39:18 UTC (rev 679) @@ -1,16 +1,38 @@ /* Garux-clean * - * rewriten garux.c (see its credits), based on OnBoardC skeleton and mainly tested there, by Tomas Cech (Sleep.Walker) + * rewriten garux.c , based on OnBoardC skeleton and mainly tested there, by Tomas Cech (Sleep.Walker) * bugs: fr...@gm... * (hope that there aren't any) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. + * + * runLinuxKernel() is from garux.c + * + * Garux credits + * Linux Loader for the Palm OS. + * + * Copyright (C) 2004 Vinayak R. Borkar + * Author: Vinayak R. Borkar [vin...@us...] + * + * Original version by Romain Goyet [r....@gm...] + * + * 11-Sep-2005, Alex Osborne [bob...@gm...]: + * Updated to work with multiple handhelds. + * + * Device support based on the work of: + * Nikolay Petukhov - Palm Tungsten T2 + * Vladimir Pouzanov - Palm Tungsten T3 + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. */ + #define ForSimulator //#define DEBUG @@ -133,8 +155,8 @@ #ifdef with_BFUSettings if (BFUCommandLinePart[0] != '\0') { - BFUdoDie(parameters,StrLen(parameters)); - BFUdoDie(BFUCommandLinePart,StrLen(parameters)); +// BFUdoDie(parameters,StrLen(parameters)); +// BFUdoDie(BFUCommandLinePart,StrLen(parameters)); StrCat(parameters,BFUCommandLinePart); } #endif @@ -344,7 +366,7 @@ handled = true; break; case frmCloseEvent: - StrNCopy(parameters,FldGetTextPtr(getObjectPtr(pForm,KernelParam)),KernelParamLength); +// StrNCopy(parameters,FldGetTextPtr(getObjectPtr(pForm,KernelParam)),KernelParamLength); mainFormOnClose(pForm); FrmEraseForm(pForm); FrmDeleteForm(pForm); @@ -370,6 +392,7 @@ printf("Serial open, port id: %x\n", portid); SrmSend(portid, "Garux.\n\n", 8, &err); #endif + StrNCopy(parameters,FldGetTextPtr(getObjectPtr(pForm,KernelParam)),KernelParamLength); runLinuxKernel(); break; @@ -469,7 +492,9 @@ if (BFUSettingsInit()) { WinDrawChars("BFUSettings were set up",StrLen("BFUSettings were set up"),9,128); +#ifdef BFU_VERBOSE BFUdoDie(BFUCommandLinePart,0); +#endif } else WinDrawChars("BFUSettings were not set up",StrLen("BFUSettings were not set up"),9,128); Modified: linux4palm/BFUGarux/icons/icon_256.bmp =================================================================== (Binary files differ) Modified: linux4palm/BFUGarux/icons/icon_256_s.bmp =================================================================== (Binary files differ) Modified: linux4palm/BFUGarux/icons/icon_hr.bmp =================================================================== (Binary files differ) Modified: linux4palm/BFUGarux/icons/icon_hr_s.bmp =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <sle...@us...> - 2006-11-23 12:57:36
|
Revision: 681 http://svn.sourceforge.net/hackndev/?rev=681&view=rev Author: sleep_walker Date: 2006-11-23 04:57:32 -0800 (Thu, 23 Nov 2006) Log Message: ----------- l4p: bit array fix Modified Paths: -------------- linux4palm/BFUGarux/BFULinuxHelper.c linux4palm/BFUGarux/BFUSettings-alone.c linux4palm/BFUGarux/garux-generic.rcp Modified: linux4palm/BFUGarux/BFULinuxHelper.c =================================================================== --- linux4palm/BFUGarux/BFULinuxHelper.c 2006-11-22 20:38:15 UTC (rev 680) +++ linux4palm/BFUGarux/BFULinuxHelper.c 2006-11-23 12:57:32 UTC (rev 681) @@ -16,12 +16,6 @@ #define DEBUG -#ifdef DEBUG -#define CMDLINE_FILE "cmdline" -#else -#define CMDLINE_FILE "/proc/cmdline" -#endif - #include <stdio.h> #include <string.h> @@ -81,7 +75,10 @@ unsigned char IP[4],i; long optint; FILE *stream; - stream=fopen(CMDLINE_FILE,"r"); + if (argc) + stream=fopen(*argv,"r"); + else + stream=fopen("/proc/cmdline","r"); if (!stream) { perror("Cannot open /proc/cmdline"); @@ -102,10 +99,7 @@ //check length here first; //now it is used just 16 bits number - that is 4 chars in hex optint = ReadHexa(4,ptr); - if (argc) printf("\nis %ld\n",optint); //options - do all the magic here - printf("BFUReflash=%ld\n",optint &1); - optint >>=2; printf("BFUSource=%d\n",source = (optint & 3)); optint >>= 2; printf("BFUFS=%ld\n",optint & 3); @@ -121,6 +115,9 @@ printf("BFUCardRO=%ld\n",optint & 1); optint >>=1; printf("BFUKeyboard=%ld\n",optint & 1); + optint >>=1; + printf("BFUReflash=%ld\n",optint &1); + //if length of options is bigger than 4 chars in hexa, read another chars here... // optint = ReadHexa(4,options+4); Modified: linux4palm/BFUGarux/BFUSettings-alone.c =================================================================== --- linux4palm/BFUGarux/BFUSettings-alone.c 2006-11-22 20:38:15 UTC (rev 680) +++ linux4palm/BFUGarux/BFUSettings-alone.c 2006-11-23 12:57:32 UTC (rev 681) @@ -142,6 +142,8 @@ del[0] = BFUDelimiter; del[1] = '\0'; + options |= BFUSettingsValues.reflash; + options = options << 1; options |= BFUSettingsValues.keyboard; options = options << 1; options |= BFUSettingsValues.cardRO; @@ -158,8 +160,7 @@ options |= BFUSettingsValues.fs; options = options << 2; options |= BFUSettingsValues.source; - options = options << 1; - options |= BFUSettingsValues.reflash; + // BFUPrintHex(options,optstr); // StrPrintF(optstr,"%x",options); // BFUdoDie(optstr,options); @@ -167,7 +168,7 @@ /*now it should look like this bit content -------------- -0 reflash + 1 source 2 source 3 fs @@ -178,7 +179,8 @@ 8 CPUspeed 9 CPUspeed 10 cardRO -11 keyboard +11 keyboard +12 reflash */ // StrCopy(BFUCommandLinePart,) // BFUdoDie("Creating address and/or device string",0); @@ -448,7 +450,7 @@ BFUdoDie("BFUSavedPrefs already in RAM",0); case errNone: // that means errNone - nothing else is returned by this function - BFUdoDie("BFUSavedPrefs found on card",volRefNum); +// BFUdoDie("BFUSavedPrefs found on card",volRefNum); volIterator = vfsIteratorStop; BFUPrefsVolRefNum = volRefNum; break; Modified: linux4palm/BFUGarux/garux-generic.rcp =================================================================== --- linux4palm/BFUGarux/garux-generic.rcp 2006-11-22 20:38:15 UTC (rev 680) +++ linux4palm/BFUGarux/garux-generic.rcp 2006-11-23 12:57:32 UTC (rev 681) @@ -25,16 +25,16 @@ ICON BEGIN - BITMAP "icons/icon_bw.bmp" BPP 1 TRANSPARENTINDEX 0 DENSITY 1 - BITMAP "icons/icon_256.bmp" BPP 8 TRANSPARENTINDEX 0 DENSITY 1 - BITMAP "icons/icon_hr.bmp" BPP 8 TRANSPARENTINDEX 0 DENSITY 2 + BITMAP "icons/icon_bw.bmp" BPP 1 TRANSPARENTINDEX 0 DENSITY 1 + BITMAP "icons/icon_256.bmp" BPP 8 TRANSPARENT 0 255 0 DENSITY 1 + BITMAP "icons/icon_hr.bmp" BPP 8 TRANSPARENT 0 255 0 DENSITY 2 END SMALLICON BEGIN - BITMAP "icons/icon_bw_s.bmp" BPP 1 TRANSPARENTINDEX 0 DENSITY 1 - BITMAP "icons/icon_256_s.bmp" BPP 8 TRANSPARENTINDEX 0 DENSITY 1 - BITMAP "icons/icon_hr_s.bmp" BPP 8 TRANSPARENTINDEX 0 DENSITY 2 + BITMAP "icons/icon_bw_s.bmp" BPP 1 TRANSPARENTINDEX 0 DENSITY 1 + BITMAP "icons/icon_256_s.bmp" BPP 8 TRANSPARENT 0 255 0 DENSITY 1 + BITMAP "icons/icon_hr_s.bmp" BPP 8 TRANSPARENT 0 255 0 DENSITY 2 END FORM ID MainForm AT (0 0 160 160) //2 2 156 156) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <sle...@us...> - 2006-11-28 11:35:46
|
Revision: 683 http://svn.sourceforge.net/hackndev/?rev=683&view=rev Author: sleep_walker Date: 2006-11-28 03:35:37 -0800 (Tue, 28 Nov 2006) Log Message: ----------- l4p: BFUGarux - new features added, actualised comments, new form, new bugs Modified Paths: -------------- linux4palm/BFUGarux/BFUDefaultSettings.h linux4palm/BFUGarux/BFULinuxHelper.c linux4palm/BFUGarux/BFUSettings-alone.c linux4palm/BFUGarux/BFUSettings.Rsrc linux4palm/BFUGarux/BFUSettings.Rsrc.h linux4palm/BFUGarux/garux-clean.c Modified: linux4palm/BFUGarux/BFUDefaultSettings.h =================================================================== --- linux4palm/BFUGarux/BFUDefaultSettings.h 2006-11-27 15:00:27 UTC (rev 682) +++ linux4palm/BFUGarux/BFUDefaultSettings.h 2006-11-28 11:35:37 UTC (rev 683) @@ -11,7 +11,9 @@ #define BFUDefaultSave2Card 1 #define BFUDefaultFileName "BFUSavedSettings" #define BFUDefaultFileNameOnCard "/BFUSavedSettings.pdb" +#define BFUDefaultFileNameSize 256 + #define BFUDefaultSource 0 #define BFUDefaultAddress "/linux2ram" #define BFUDefaultFS 0 @@ -43,6 +45,8 @@ #define BFUDefaultReflash 0 #define BFUDefaultRAMdiskSize "20%" +#define BFUDefaultFSCK 0 +#define BFUDefaultCopy2RAM 0 #define BFUDelimiter ';' Modified: linux4palm/BFUGarux/BFULinuxHelper.c =================================================================== --- linux4palm/BFUGarux/BFULinuxHelper.c 2006-11-27 15:00:27 UTC (rev 682) +++ linux4palm/BFUGarux/BFULinuxHelper.c 2006-11-28 11:35:37 UTC (rev 683) @@ -120,11 +120,10 @@ //if length of options is bigger than 4 chars in hexa, read another chars here... // optint = ReadHexa(4,options+4); - + ptr = end+1; //IP adresses if (useNet) { - ptr = end+1; for (i = 0; i < 4; ++i) { IP[i] = ReadHexa(2,ptr); Modified: linux4palm/BFUGarux/BFUSettings-alone.c =================================================================== --- linux4palm/BFUGarux/BFUSettings-alone.c 2006-11-27 15:00:27 UTC (rev 682) +++ linux4palm/BFUGarux/BFUSettings-alone.c 2006-11-28 11:35:37 UTC (rev 683) @@ -31,6 +31,8 @@ UInt8 cardRO; UInt8 keyboard; UInt8 reflash; + UInt8 fsck; + UInt8 copy2ram; Char RAMdiskSize[BFURAMdiskMaxLength]; UInt8 save2card; @@ -45,6 +47,7 @@ static void BFUGlobalFormInit (FormPtr pForm); static void BFUNetFormInit (FormPtr pForm); static void BFUModulesFormInit (FormPtr pForm); +static void BFUToolsFormInit (FormPtr pForm); static void BFUAdvancedFormInit (FormPtr pForm); static void BFUOKButtonPressed(); static void BFUSaveButtonPressed(); @@ -53,15 +56,18 @@ static void BFUNetFormSaveFields(FormType *pForm); static void BFUGlobalFormSaveFields(FormType *pForm); static void BFUModulesFormSaveFields(FormType *pForm); +static void BFUToolsFormSaveFields(FormType *pForm); static void BFUAdvancedFormSaveFields(FormType *pForm); static Boolean BFUSettingsInit(); static void BFUInitSettingsFromDef(); static Boolean BFUGlobalFormEventHandler (EventPtr pEvent); static Boolean BFUNetFormEventHandler (EventPtr pEvent); static Boolean BFUModulesFormEventHandler (EventPtr pEvent); +static Boolean BFUToolsFormEventHandler (EventPtr pEvent); static Boolean BFUAdvancedFormEventHandler (EventPtr pEvent); static void BFUSetFieldText(FormType *pForm,UInt32 index,Char *new_text,UInt32 MaxLength); + Char BFUCommandLinePart[BFUCommandLinePartLength]; Boolean BFUPrefsFound; BFUSettingsType BFUSettingsValues; @@ -92,15 +98,19 @@ dest->PalmIP[i] = source->PalmIP[i]; dest->mask[i] = source->mask[i]; } -//advanced settings +//advanced settings & tools dest->debug = source->debug; dest->silentBoot = source->silentBoot; dest->CPUspeed = source->CPUspeed; dest->cardRO = source->cardRO; dest->keyboard = source ->keyboard; + StrNCopy(dest->RAMdiskSize,source->RAMdiskSize,BFURAMdiskMaxLength); + dest->save2card = source->save2card; - dest->reflash = source->reflash; + dest->reflash = source->reflash; + dest->copy2ram = source->copy2ram; + dest->fsck = source->fsck; return true; } @@ -141,7 +151,10 @@ #endif del[0] = BFUDelimiter; del[1] = '\0'; - + options |= BFUSettingsValues.copy2ram; + options <<= 1; + options |= BFUSettingsValues.fsck; + options <<= 1; options |= BFUSettingsValues.reflash; options = options << 1; options |= BFUSettingsValues.keyboard; @@ -181,6 +194,8 @@ 10 cardRO 11 keyboard 12 reflash +13 fsck +14 copy2ram */ // StrCopy(BFUCommandLinePart,) // BFUdoDie("Creating address and/or device string",0); @@ -320,6 +335,8 @@ StrNCopy(BFUSettingsValues.RAMdiskSize,BFUDefaultRAMdiskSize,BFURAMdiskMaxLength); BFUSettingsValues.save2card = BFUDefaultSave2Card; BFUSettingsValues.reflash = BFUDefaultReflash; + BFUSettingsValues.copy2ram = BFUDefaultCopy2RAM; + BFUSettingsValues.fsck = 0; } @@ -702,21 +719,103 @@ case BFUSave2CardBox: BFUSettingsValues.save2card = CtlGetValue(getObjectPtr(pForm,BFUSave2CardBox)); break; - case BFUSilentBootBox: - BFUSettingsValues.silentBoot = CtlGetValue(getObjectPtr(pForm,BFUSilentBootBox)); - break; + + case BFUCardReadonlyBox: BFUSettingsValues.cardRO = CtlGetValue(getObjectPtr(pForm,BFUCardReadonlyBox)); break; case BFUDebugModeBox: BFUSettingsValues.debug = CtlGetValue(getObjectPtr(pForm,BFUDebugModeBox)); break; + case BFUCopy2RAMBox: + BFUSettingsValues.copy2ram = CtlGetValue(getObjectPtr(pForm,BFUCopy2RAMBox)); + break; + + } + break; + case popSelectEvent: + switch(pEvent->data.popSelect.controlID) + { + case BFUPartTrigger: + switch(pEvent->data.popSelect.selection) + { + case 0: + FrmGotoForm(BFUGlobalForm); + break; + case 1: + FrmGotoForm(BFUNetForm); + break; + case 2: + FrmGotoForm(BFUModulesForm); + break; + case 3: + FrmGotoForm(BFUToolsForm); + break; + case 4: + break; + } + handled = true; + break; + case BFUCPUSpeedTrigger: + BFUSettingsValues.CPUspeed = pEvent->data.popSelect.selection; + break; + } +// *** ADD EVENT HANDLING HERE *** // + default: + break; + } + return handled; +} + + +Boolean BFUToolsFormEventHandler(EventPtr pEvent) +{ + Boolean handled = false; + FormPtr pForm = FrmGetActiveForm(); + switch (pEvent->eType) + { + case frmOpenEvent: // Form's 1st event + FrmDrawForm(pForm); + BFUToolsFormInit(pForm); + handled = true; + break; + case frmCloseEvent: + BFUToolsFormSaveFields(pForm); + break; + case ctlSelectEvent: + switch (pEvent->data.ctlSelect.controlID) + { + case BFUOKButton: + BFUToolsFormSaveFields(pForm); + BFUOKButtonPressed(); + handled = true; + break; + case BFUSaveButton: + BFUToolsFormSaveFields(pForm); + BFUSaveButtonPressed(); + handled = true; + break; + case BFUCancelButton: + BFUCancelButtonPressed(); + handled = true; + break; + case BFUSave2CardBox: + BFUSettingsValues.save2card = CtlGetValue(getObjectPtr(pForm,BFUSave2CardBox)); + break; + + + case BFUSilentBootBox: + BFUSettingsValues.silentBoot = CtlGetValue(getObjectPtr(pForm,BFUSilentBootBox)); + break; case BFUKeyboardSupportBox: BFUSettingsValues.keyboard = CtlGetValue(getObjectPtr(pForm,BFUKeyboardSupportBox)); break; case BFUReflashBox: BFUSettingsValues.reflash = CtlGetValue(getObjectPtr(pForm,BFUReflashBox)); break; + case BFURunFSCKBox: + BFUSettingsValues.fsck = CtlGetValue(getObjectPtr(pForm,BFURunFSCKBox)); + break; } break; case popSelectEvent: @@ -736,11 +835,13 @@ break; case 3: break; + case 4: + FrmGotoForm(BFUAdvancedForm); + break; } handled = true; break; - case BFUCPUSpeedTrigger: - BFUSettingsValues.CPUspeed = pEvent->data.popSelect.selection; + default: break; } // *** ADD EVENT HANDLING HERE *** // @@ -802,6 +903,9 @@ case 2: break; case 3: + FrmGotoForm(BFUToolsForm); + break; + case 4: FrmGotoForm(BFUAdvancedForm); break; } @@ -869,6 +973,9 @@ FrmGotoForm(BFUModulesForm); break; case 3: + FrmGotoForm(BFUToolsForm); + break; + case 4: FrmGotoForm(BFUAdvancedForm); break; } @@ -935,6 +1042,9 @@ FrmGotoForm(BFUModulesForm); break; case 3: + FrmGotoForm(BFUToolsForm); + break; + case 4: FrmGotoForm(BFUAdvancedForm); break; } @@ -1024,15 +1134,25 @@ CtlSetValue(getObjectPtr(pForm,BFUSave2CardBox),BFUSettingsValues.save2card); } +static void BFUToolsFormInit (FormPtr pForm) +{ + CtlSetValue(getObjectPtr(pForm,BFUSave2CardBox),BFUSettingsValues.save2card); + + CtlSetValue(getObjectPtr(pForm,BFUSilentBootBox),BFUSettingsValues.silentBoot); + CtlSetValue(getObjectPtr(pForm,BFUKeyboardSupportBox),BFUSettingsValues.keyboard); + CtlSetValue(getObjectPtr(pForm,BFUReflashBox),BFUSettingsValues.reflash); + CtlSetValue(getObjectPtr(pForm,BFURunFSCKBox),BFUSettingsValues.fsck); + +} + + static void BFUAdvancedFormInit (FormPtr pForm) { CtlSetValue(getObjectPtr(pForm,BFUSave2CardBox),BFUSettingsValues.save2card); BFUSetTriggerState(pForm,BFUCPUSpeedTrigger,BFUCPUSpeedList,BFUSettingsValues.CPUspeed); - CtlSetValue(getObjectPtr(pForm,BFUSilentBootBox),BFUSettingsValues.silentBoot); CtlSetValue(getObjectPtr(pForm,BFUCardReadonlyBox),BFUSettingsValues.cardRO); CtlSetValue(getObjectPtr(pForm,BFUDebugModeBox),BFUSettingsValues.debug); - CtlSetValue(getObjectPtr(pForm,BFUKeyboardSupportBox),BFUSettingsValues.keyboard); - CtlSetValue(getObjectPtr(pForm,BFUReflashBox),BFUSettingsValues.reflash); + CtlSetValue(getObjectPtr(pForm,BFUCopy2RAMBox),BFUSettingsValues.copy2ram); BFUSetFieldText(pForm,BFURAMdiskSizeField,BFUSettingsValues.RAMdiskSize,BFURAMdiskMaxLength); } @@ -1100,6 +1220,10 @@ { } +static void BFUToolsFormSaveFields(FormType *pForm) +{ +} + static void BFUAdvancedFormSaveFields(FormType *pForm) { StrNCopy(BFUSettingsValues.RAMdiskSize, Modified: linux4palm/BFUGarux/BFUSettings.Rsrc =================================================================== --- linux4palm/BFUGarux/BFUSettings.Rsrc 2006-11-27 15:00:27 UTC (rev 682) +++ linux4palm/BFUGarux/BFUSettings.Rsrc 2006-11-28 11:35:37 UTC (rev 683) @@ -22,22 +22,22 @@ BUTTON "Save" ID BFUSaveButton AT (41 140 30 15) USABLE RIGHTANCHOR FRAME BUTTON "Cancel" ID BFUCancelButton AT (126 140 30 15) USABLE RIGHTANCHOR FRAME POPUPTRIGGER "Global" ID BFUPartTrigger AT (56 15 41 15) USABLE LEFTANCHOR - LIST "Global" "Network" "Modules" "Advanced" ID BFUPartList AT (56 15 60 44) NONUSABLE DISABLED + LIST "Global" "Network" "Modules" "Tools" "Advanced" ID BFUPartList AT (56 15 60 55) NONUSABLE DISABLED POPUPLIST ID BFUPartTrigger BFUPartList LABEL "Set:" ID 8035 AT (9 16) USABLE FONT 1 CHECKBOX "To card" ID BFUSave2CardBox AT (74 140 47 15) USABLE LEFTANCHOR GROUP 0 END -FORM ID 8100 AT (0 0 160 160) +FORM ID BFUNetForm AT (0 0 160 160) FRAME MODAL NOSAVEBEHIND USABLE - HELPID 8602 DEFAULTBTNID 8540 + HELPID 8602 DEFAULTBTNID BFUOKButton BEGIN TITLE "BFUSettings - Network" BUTTON "OK" ID BFUOKButton AT (5 140 30 15) USABLE RIGHTANCHOR FRAME BUTTON "Save" ID BFUSaveButton AT (41 140 30 15) USABLE RIGHTANCHOR FRAME BUTTON "Cancel" ID BFUCancelButton AT (126 140 30 15) USABLE RIGHTANCHOR FRAME POPUPTRIGGER "Global" ID BFUPartTrigger AT (56 15 51 15) USABLE LEFTANCHOR - LIST "Global" "Network" "Modules" "Advanced" ID BFUPartList AT (56 15 60 44) NONUSABLE DISABLED + LIST "Global" "Network" "Modules" "Tools" "Advanced" ID BFUPartList AT (56 15 60 55) NONUSABLE DISABLED POPUPLIST ID BFUPartTrigger BFUPartList LABEL "Set:" ID 8035 AT (9 16) USABLE FONT 1 CHECKBOX "To card" ID BFUSave2CardBox AT (74 140 47 15) USABLE LEFTANCHOR GROUP 0 @@ -68,46 +68,65 @@ LABEL "." ID 8141 AT (70 116) USABLE FONT 1 END -FORM ID 8200 AT (0 0 160 160) +FORM ID BFUModulesForm AT (0 0 160 160) FRAME MODAL NOSAVEBEHIND USABLE - HELPID 8603 DEFAULTBTNID 8540 + HELPID 8603 DEFAULTBTNID BFUOKButton BEGIN TITLE "BFUSettings - Modules" BUTTON "OK" ID BFUOKButton AT (5 140 30 15) USABLE RIGHTANCHOR FRAME BUTTON "Save" ID BFUSaveButton AT (41 140 30 15) USABLE RIGHTANCHOR FRAME BUTTON "Cancel" ID BFUCancelButton AT (126 140 30 15) USABLE RIGHTANCHOR FRAME POPUPTRIGGER "Modules" ID BFUPartTrigger AT (56 15 50 15) USABLE LEFTANCHOR - LIST "Global" "Network" "Modules" "Advanced" ID BFUPartList AT (56 15 60 44) NONUSABLE DISABLED + LIST "Global" "Network" "Modules" "Tools" "Advanced" ID BFUPartList AT (56 15 60 55) NONUSABLE DISABLED POPUPLIST ID BFUPartTrigger BFUPartList LABEL "Set:" ID 8035 AT (9 16) USABLE FONT 1 CHECKBOX "To card" ID BFUSave2CardBox AT (74 140 47 15) USABLE LEFTANCHOR GROUP 0 TABLE ID BFUModuleTable AT (9 31 141 100) ROWS 8 COLUMNS 2 COLUMNWIDTHS 120 8 END -FORM ID 8300 AT (0 0 160 160) +FORM ID BFUToolsForm AT (0 0 160 160) FRAME MODAL NOSAVEBEHIND USABLE - HELPID 8604 DEFAULTBTNID 8540 + HELPID 8605 DEFAULTBTNID BFUOKButton BEGIN + TITLE "BFUSettings - Tools" + BUTTON "OK" ID BFUOKButton AT (5 140 30 15) USABLE RIGHTANCHOR FRAME + BUTTON "Save" ID BFUSaveButton AT (41 140 30 15) USABLE RIGHTANCHOR FRAME + BUTTON "Cancel" ID BFUCancelButton AT (126 140 30 15) USABLE RIGHTANCHOR FRAME + POPUPTRIGGER "Tools" ID BFUPartTrigger AT (56 15 50 15) USABLE LEFTANCHOR + LIST "Global" "Network" "Modules" "Tools" "Advanced" ID BFUPartList AT (56 15 60 55) NONUSABLE DISABLED + POPUPLIST ID BFUPartTrigger BFUPartList + LABEL "Set:" ID 8035 AT (9 16) USABLE FONT 1 + CHECKBOX "To card" ID BFUSave2CardBox AT (74 140 47 15) USABLE LEFTANCHOR GROUP 0 + CHECKBOX "Silent boot" ID BFUSilentBootBox AT (9 31 60 15) USABLE RIGHTANCHOR GROUP 0 + CHECKBOX "Keyboard support" ID BFUKeyboardSupportBox AT (9 46 91 15) USABLE RIGHTANCHOR GROUP 0 + CHECKBOX "SmallROM reflash (dangerous!)" ID BFUReflashBox AT (9 61 145 15) USABLE RIGHTANCHOR GROUP 0 + CHECKBOX "Run fsck for card" ID BFURunFSCKBox AT (9 76 145 15) USABLE RIGHTANCHOR GROUP 0 + +END + + +FORM ID BFUAdvancedForm AT (0 0 160 160) + FRAME MODAL NOSAVEBEHIND USABLE + HELPID 8605 DEFAULTBTNID BFUOKButton +BEGIN TITLE "BFUSettings - Advanced" BUTTON "OK" ID BFUOKButton AT (5 140 30 15) USABLE RIGHTANCHOR FRAME BUTTON "Save" ID BFUSaveButton AT (41 140 30 15) USABLE RIGHTANCHOR FRAME BUTTON "Cancel" ID BFUCancelButton AT (126 140 30 15) USABLE RIGHTANCHOR FRAME POPUPTRIGGER "Advanced" ID BFUPartTrigger AT (56 15 55 15) USABLE LEFTANCHOR - LIST "Global" "Network" "Modules" "Advanced" ID BFUPartList AT (56 15 60 44) NONUSABLE DISABLED + LIST "Global" "Network" "Modules" "Tools" "Advanced" ID BFUPartList AT (56 15 60 55) NONUSABLE DISABLED POPUPLIST ID BFUPartTrigger BFUPartList LABEL "Set:" ID 8035 AT (9 16) USABLE FONT 1 CHECKBOX "To card" ID BFUSave2CardBox AT (74 140 47 15) USABLE LEFTANCHOR GROUP 0 - CHECKBOX "Silent boot" ID BFUSilentBootBox AT (9 31 60 15) USABLE RIGHTANCHOR GROUP 0 - LABEL "CPU Frequency:" ID 8350 AT (9 50) USABLE FONT 1 - LIST "Auto" "133 MHz" "266 MHz" "400 MHz" ID BFUCPUSpeedList AT (90 48 39 44) NONUSABLE DISABLED - POPUPTRIGGER "Auto" ID BFUCPUSpeedTrigger AT (90 48 55 15) USABLE LEFTANCHOR + LABEL "CPU Frequency:" ID 8350 AT (9 33) USABLE FONT 1 + LIST "Auto" "133 MHz" "266 MHz" "400 MHz" ID BFUCPUSpeedList AT (90 31 39 44) NONUSABLE DISABLED + POPUPTRIGGER "Auto" ID BFUCPUSpeedTrigger AT (90 31 55 15) USABLE LEFTANCHOR POPUPLIST ID BFUCPUSpeedTrigger BFUCPUSpeedList - LABEL "RAMdisk size:" ID 8351 AT (9 67) USABLE FONT 1 - FIELD ID BFURAMdiskSizeField AT (90 67 30 15) USABLE LEFTALIGN EDITABLE UNDERLINED SINGLELINE MAXCHARS 6 - CHECKBOX "SD/MMC read-only" ID BFUCardReadonlyBox AT (9 80 96 15) USABLE LEFTANCHOR GROUP 0 + LABEL "RAMdisk size:" ID 8351 AT (9 48) USABLE FONT 1 + FIELD ID BFURAMdiskSizeField AT (90 48 30 15) USABLE LEFTALIGN EDITABLE UNDERLINED SINGLELINE MAXCHARS 6 + CHECKBOX "SD/MMC read-only" ID BFUCardReadonlyBox AT (9 63 96 15) USABLE LEFTANCHOR GROUP 0 + CHECKBOX "Copy modules to RAM" ID BFUCopy2RAMBox AT (9 78 110 15) USABLE LEFTANCHOR GROUP 0 CHECKBOX "Debug" ID BFUDebugModeBox AT (9 93 42 15) USABLE RIGHTANCHOR GROUP 0 - CHECKBOX "Keyboard support" ID BFUKeyboardSupportBox AT (9 106 91 15) USABLE RIGHTANCHOR GROUP 0 - CHECKBOX "SmallROM reflash (dangerous!)" ID BFUReflashBox AT (9 119 145 15) USABLE RIGHTANCHOR GROUP 0 END // --------------- Resources of type 'tSTR' --------------- @@ -172,13 +191,35 @@ "Cancel\n" \ "Exit and no BFUSettings will be used." -STRING ID 8604 "BFUSettings - Advanced\n" \ +STRING ID 8604 "BFUSettings - Tools\n" \ "(Bootloader for users)\n\n" \ + "This window is dedicated to enable useful things.\n\n\n" \ + "Set:\n\nSwitches to other part of settings - global, network, modules, tools and " \ + "advanced.\n\n\n" \ + "Silent boot\n\n" \ + "This will produce no output during boot.\n\n\n" \ + "Keyboard\n\n" \ + "This enable running external keyboard handling program. Currently Stowaway (PPK) and compatibile supported.\n\n\n" \ + "SmallROM reflash\n\n" \ + "This will reflash your SmallROM for suspend/resume support. Read more before enabling that...\n\n\n" \ + "Run fsck for card\n\n" \ + "This will run dosfsck on first partition of card. Usefull for checking errors after bad unmount...\n\n\n" \ + "OK\n\n" \ + "Prepare settings to be sent and leave BFUSettings\n\n\n" \ + "Save\n\n" \ + "Save preferences for next use.\n\n\n" \ + "To card\n" \ + "If disabled, preferences are saved just to RAM database. If enabled it will " \ + "replace previously found preferences on card or save it on first volume\n\n\n" \ + "Cancel\n" \ + "Exit and no BFUSettings will be used." + + +STRING ID 8605 "BFUSettings - Advanced\n" \ + "(Bootloader for users)\n\n" \ "This window is dedicated to set advanced settings.\n\n\n" \ "Set:\n\nSwitches to other part of settings - global, network, modules and " \ "advanced.\n\n\n" \ - "Silent boot\n\n" \ - "This will produce no output during boot.\n\n\n" \ "CPU Frequency\n\n" \ "You can select CPU speed. Less speed means less battery needs.\n\n\n" \ "RAMdisk size:\n\n" \ @@ -186,6 +227,8 @@ "RAMdisk means less RAM for running applications.\n\n" \ "SD/MMC read-only\n\n" \ "With this option you can mount card as read only (if it is mounted).\n\n\n" \ + "Copy modules to RAM\n\n" \ + "This will mount modules directly from card without copying first to RAM.\n\n\n" \ "Debug\n\n" \ "This option will produce debug informations of BFUSettings script part." \ " Usefull for developers.\n\n" \ Modified: linux4palm/BFUGarux/BFUSettings.Rsrc.h =================================================================== --- linux4palm/BFUGarux/BFUSettings.Rsrc.h 2006-11-27 15:00:27 UTC (rev 682) +++ linux4palm/BFUGarux/BFUSettings.Rsrc.h 2006-11-28 11:35:37 UTC (rev 683) @@ -9,16 +9,20 @@ #define BFUModulesForm 8200 //"BFUSettings - Modules" #define BFUModuleTable 8201 -#define BFUAdvancedForm 8300 //"BFUSettings - Advanced" +#define BFUToolsForm 8300 //"BFUSettings - Tools" #define BFUSilentBootBox 8301 -#define BFUCPUSpeedTrigger 8302 -#define BFUCPUSpeedList 8320 -#define BFURAMdiskSizeField 8303 -#define BFUCardReadonlyBox 8304 -#define BFUDebugModeBox 8305 -#define BFUKeyboardSupportBox 8306 -#define BFUReflashBox 8307 +#define BFUKeyboardSupportBox 8303 +#define BFUReflashBox 8304 +#define BFURunFSCKBox 8305 +#define BFUAdvancedForm 8400 //"BFUSettings - Advanced" +#define BFUCPUSpeedTrigger 8401 +#define BFUCPUSpeedList 8420 +#define BFURAMdiskSizeField 8402 +#define BFUCopy2RAMBox 8403 +#define BFUCardReadonlyBox 8404 +#define BFUDebugModeBox 8405 + #define BFUNetForm 8100 //"BFUSettings - Network" #define BFUUseNetBox 8101 //fields of Palm IP address Modified: linux4palm/BFUGarux/garux-clean.c =================================================================== --- linux4palm/BFUGarux/garux-clean.c 2006-11-27 15:00:27 UTC (rev 682) +++ linux4palm/BFUGarux/garux-clean.c 2006-11-28 11:35:37 UTC (rev 683) @@ -318,6 +318,8 @@ FrmSetEventHandler (pForm, BFUNetFormEventHandler); if (formId == BFUModulesForm) FrmSetEventHandler (pForm, BFUModulesFormEventHandler); + if (formId == BFUToolsForm) + FrmSetEventHandler (pForm, BFUToolsFormEventHandler); if (formId == BFUAdvancedForm) FrmSetEventHandler (pForm, BFUAdvancedFormEventHandler); #endif This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <sle...@us...> - 2006-12-02 00:25:37
|
Revision: 689 http://svn.sourceforge.net/hackndev/?rev=689&view=rev Author: sleep_walker Date: 2006-12-01 16:25:32 -0800 (Fri, 01 Dec 2006) Log Message: ----------- l4p: BFUGarux initial module selection support Modified Paths: -------------- linux4palm/BFUGarux/BFUDefaultSettings.h linux4palm/BFUGarux/BFUSettings-alone.c linux4palm/BFUGarux/BFUSettings.Rsrc linux4palm/BFUGarux/BFUSettings.Rsrc.h linux4palm/BFUGarux/garux-clean.c Modified: linux4palm/BFUGarux/BFUDefaultSettings.h =================================================================== --- linux4palm/BFUGarux/BFUDefaultSettings.h 2006-12-01 23:16:34 UTC (rev 688) +++ linux4palm/BFUGarux/BFUDefaultSettings.h 2006-12-02 00:25:32 UTC (rev 689) @@ -13,6 +13,7 @@ #define BFUDefaultFileNameOnCard "/BFUSavedSettings.pdb" #define BFUDefaultFileNameSize 256 +#define BFURowsInTable 6 #define BFUDefaultSource 0 #define BFUDefaultAddress "/linux2ram" Modified: linux4palm/BFUGarux/BFUSettings-alone.c =================================================================== --- linux4palm/BFUGarux/BFUSettings-alone.c 2006-12-01 23:16:34 UTC (rev 688) +++ linux4palm/BFUGarux/BFUSettings-alone.c 2006-12-02 00:25:32 UTC (rev 689) @@ -1,4 +1,11 @@ //#define BFU_VERBOSE +#define MODULES_DEBUG +#define MODULES_VERBOSE_DEBUG + +// #define BFUContentsTest +#define BFUSaveContentsTest + + #include "BFUDefaultSettings.h" #include "BFUSettings.Rsrc.h" @@ -24,6 +31,7 @@ UInt8 mask[4]; //modules UInt32 modules; + UInt8 modlist; //advanced settings UInt8 debug; UInt8 silentBoot; @@ -34,7 +42,6 @@ UInt8 fsck; UInt8 copy2ram; Char RAMdiskSize[BFURAMdiskMaxLength]; - UInt8 save2card; } BFUSettingsType; @@ -66,6 +73,19 @@ static Boolean BFUToolsFormEventHandler (EventPtr pEvent); static Boolean BFUAdvancedFormEventHandler (EventPtr pEvent); static void BFUSetFieldText(FormType *pForm,UInt32 index,Char *new_text,UInt32 MaxLength); +//from modules.c +static Boolean BFUReadFileNames(UInt16 volRefNum); +static Boolean BFUInitFileLists(); +void BFUdoDie(const Char * ErrStr,Err error); +static Boolean BFUPush2ModList(const Char *name); +static Boolean BFUIsModList(const Char *name); +static Boolean BFUReadModLists(UInt16 volRefNum); +static Boolean BFUInitModList(); +Int16 BFUCompare(void **v1,void **v2,Int32 other); +static Boolean BFUInitTable(); +static void BFUSetTableFromBar(Int16 val); +static Boolean BFUSaveNames(); +static Boolean BFUInitModList(); Char BFUCommandLinePart[BFUCommandLinePartLength]; @@ -78,7 +98,16 @@ UInt16 cardNo; //UInt32 volIterator; UInt16 BFUPrefsVolRefNum; +//from modules.c +MemHandle listHandle, modListHandle,modPtrHandle; +MemHandle ptrHandle,saveHandle; +UInt8 size,msize,modCount; +UInt32 mlength,length; +Boolean UseSclBar,CardIn; + + + static Boolean BFUCopySettingsStruct(BFUSettingsType *source,BFUSettingsType *dest) { UInt8 i; @@ -111,6 +140,8 @@ dest->reflash = source->reflash; dest->copy2ram = source->copy2ram; dest->fsck = source->fsck; + dest->modules = source->modules; + dest->modlist = source->modlist; return true; } @@ -173,7 +204,6 @@ options |= BFUSettingsValues.fs; options = options << 2; options |= BFUSettingsValues.source; - // BFUPrintHex(options,optstr); // StrPrintF(optstr,"%x",options); // BFUdoDie(optstr,options); @@ -291,6 +321,9 @@ StrCat(BFUCommandLinePart,BFUSettingsValues.RAMdiskSize); // BFUdoDie(BFUCommandLinePart,0); StrCat(BFUCommandLinePart,del); +//Modules selection + StrPrintF(netSet,"%x",BFUSettingsValues.modules); + BFUdoDie(netSet,0); #ifdef BFU_VERBOSE BFUdoDie(BFUCommandLinePart,0); #endif @@ -336,7 +369,9 @@ BFUSettingsValues.save2card = BFUDefaultSave2Card; BFUSettingsValues.reflash = BFUDefaultReflash; BFUSettingsValues.copy2ram = BFUDefaultCopy2RAM; - BFUSettingsValues.fsck = 0; + BFUSettingsValues.fsck = BFUDefaultFSCK; + BFUSettingsValues.modules = 0; + BFUSettingsValues.modlist = 0; } @@ -855,7 +890,11 @@ Boolean BFUModulesFormEventHandler(EventPtr pEvent) { Boolean handled = false; + Int16 row,val; + TableType *tab; + ScrollBarType *bar; FormPtr pForm = FrmGetActiveForm(); + switch (pEvent->eType) { case frmOpenEvent: // Form's 1st event @@ -888,6 +927,59 @@ break; } break; + case tblEnterEvent: + tab=getObjectPtr(pForm,BFUModulesTable); + row = pEvent->data.tblEnter.row; + val=TblGetItemInt(tab,row,1); + val = (val+1)%2; + TblSetItemInt(tab,row,1,val); + TblSetSelection(tab,row,0); + TblMarkRowInvalid(tab,row); + TblRedrawTable(tab); + break; + case sclRepeatEvent: +// BFUSaveNames(); + tab=getObjectPtr(pForm,BFUModulesTable); + bar = pEvent->data.sclRepeat.pScrollBar; + val = pEvent->data.sclRepeat.newValue; + if (UseSclBar) + { + BFUSetTableFromBar(val); + SclSetScrollBar(bar,val, 0,(UInt16)(size-BFURowsInTable), 1); + SclDrawScrollBar(bar); + } + break; + case keyDownEvent: + if (UseSclBar) + switch(pEvent->data.keyDown.chr) + { + case 11://up + bar=getObjectPtr(pForm,BFUModScrollBar); + SclGetScrollBar(bar,&val,0,0,0); + if (val) + { + --val; + BFUSetTableFromBar(val); + SclSetScrollBar(bar,val, 0, + (UInt16)(size-BFURowsInTable), 1); + SclDrawScrollBar(bar); + } + break; + case 12://down + bar=getObjectPtr(pForm,BFUModScrollBar); + SclGetScrollBar(bar,&val,0,0,0); + if (val<size-BFURowsInTable) + { + ++val; + BFUSetTableFromBar(val); + SclSetScrollBar(bar,val, 0, + (UInt16)(size-BFURowsInTable), 1); + SclDrawScrollBar(bar); + } + + break; + } + break; case popSelectEvent: switch(pEvent->data.popSelect.controlID) { @@ -1132,6 +1224,11 @@ static void BFUModulesFormInit (FormPtr pForm) { CtlSetValue(getObjectPtr(pForm,BFUSave2CardBox),BFUSettingsValues.save2card); + if ((CardIn = BFUInitFileLists())) + BFUInitTable(); + else + BFUdoDie("No card or error occured.",0); + BFUInitModList(); } static void BFUToolsFormInit (FormPtr pForm) @@ -1167,6 +1264,8 @@ static void BFUOKButtonPressed() { BFUPrefs2String(); + if (saveHandle) + MemHandleFree(saveHandle); // FrmCustomAlert(BFUAlert,"Output string:\n",BFUCommandLinePart,NULL); FrmGotoForm(1000); } @@ -1182,6 +1281,8 @@ static void BFUCancelButtonPressed() { *BFUCommandLinePart = '\0'; + if (saveHandle) + MemHandleFree(saveHandle); FrmGotoForm(1000); } @@ -1217,7 +1318,37 @@ static void BFUModulesFormSaveFields(FormType *pForm) -{ +{ + BFUSaveNames(); + BFUdoDie("Removing listHandle",0); + if (listHandle) + { +#ifdef MODULES_VERBOSE_DEBUG + BFUdoDie("Unlock listHandle",0); +#endif + MemHandleUnlock(listHandle); + MemHandleFree(listHandle); + listHandle = 0; + } + BFUdoDie("Removing ptrHandle",0); + if (ptrHandle) + { + MemHandleFree(ptrHandle); + ptrHandle = 0; + } + BFUdoDie("Removing modListHandle",0); + if (modListHandle) + { + MemHandleFree(modListHandle); + modListHandle = 0; + } + BFUdoDie("Removing modPtrHandle",0); + if (modPtrHandle) + { + MemHandleFree(modPtrHandle); + modPtrHandle = 0; + } + return; } static void BFUToolsFormSaveFields(FormType *pForm) @@ -1229,3 +1360,484 @@ StrNCopy(BFUSettingsValues.RAMdiskSize, FldGetTextPtr(getObjectPtr(pForm,BFURAMdiskSizeField)),BFURAMdiskMaxLength); } + +static Boolean BFUPush2List(const Char *name) +{ + Char *ptr; + Err err; + +#ifdef MODULES_VERBOSE_DEBUG + BFUdoDie("Entering BFUPush2List()",0); +#endif + + if (size) + { + ++size; + err = MemHandleResize(listHandle,size*BFUDefaultFileNameSize); + switch (err) + { + case 0: + //OK + break; + default: + BFUdoDie("Cannot resize modListHandle! That's fatal error for this form",0); + return false; + } + } + else + { + size=1; + listHandle=MemHandleNew(BFUDefaultFileNameSize); + } + ptr = MemHandleLock(listHandle); + StrNCopy(ptr+length,name, BFUDefaultFileNameSize); + length += StrLen(name)+1; + MemHandleUnlock(listHandle); +#ifdef MODULES_VERBOSE_DEBUG + BFUdoDie("Leaving BFUPush2List()",0); +#endif + return true; +} + +static Boolean BFUIsSquashFS(const Char *name) +{ + UInt8 l; + if ((l=StrLen(name))>9) + { + if (!StrCaselessCompare(".squashfs",name+l-9)) + return true; + } + return false; +} + + +static Boolean BFUReadFileNames(UInt16 volRefNum) +{ + FileInfoType info; + FileRef dirRef; + UInt32 dirIterator; + Boolean result = true; + Char *fileName = MemPtrNew(256); + Char *ptr, **pptr; +// FormPtr pForm=FrmGetActiveForm(); + Err err; + + +#ifdef BFUContentsTest + UInt32 i; +#endif + + + size = 0; + msize=1; + listHandle = 0; + ptrHandle = 0; + modPtrHandle = 0; + modListHandle = 0; + + if (!fileName) + { + BFUdoDie("Couldn't allocate memory for fileName buffer",0); + return false; + } + + modListHandle = MemHandleNew(BFUDefaultFileNameSize); + if (!modListHandle) + { + BFUdoDie("Couldn't allocate memory for modListHandle",0); + return false; + } + ptr = MemHandleLock(modListHandle); + StrCopy(ptr,"Custom"); + ptr[6]='\0'; + mlength=7;//"Custom" + MemHandleUnlock(modListHandle); + + +#ifdef MODULES_DEBUG + BFUdoDie("Entering BFUReadFileNames()",0); +#endif + + err = VFSFileOpen(volRefNum,"/"/* "linux2ram"*/,vfsModeRead,&dirRef); + switch(err) + { + case errNone: + info.nameP = fileName; + info.nameBufLen = 256; + dirIterator = vfsIteratorStart; + while (dirIterator != vfsIteratorStop) + { + err = VFSDirEntryEnumerate (dirRef, &dirIterator,&info); + if (err == errNone) + { + if (BFUIsSquashFS(fileName)) + { + BFUPush2List(fileName); + } + else + if (BFUIsModList(fileName)) + { + BFUPush2ModList(fileName); + } + + } + else + { + dirIterator = vfsIteratorStop; + result = false; + } + } + } + if (result) + { +//sort names here + if (size) + { + ptr = MemHandleLock(listHandle); + if (!ptr) + { + BFUdoDie("Couldn't lock listHandle",0); + return false; + } + ptrHandle = SysFormPointerArrayToStrings(ptr,size); + if (!ptrHandle) + { + BFUdoDie("ptrHandle error",0); + return false; + } + pptr = MemHandleLock(ptrHandle); + if (size > 1) + SysQSort(pptr, size, sizeof(Char *),(CmpFuncPtr)&BFUCompare,0); + +#ifdef BFUContentsTest + for (i = 0; i < size ; ++i) + { + BFUdoDie(pptr[i],0); + } +#endif +// MemHandleUnlock(listHandle); + MemHandleUnlock(ptrHandle); + } + + ptr = MemHandleLock(modListHandle); + if (!ptr) + { + BFUdoDie("Couldn't lock modListHandle error",0); + return false; + } + + modPtrHandle = SysFormPointerArrayToStrings(ptr,msize); + if (!modPtrHandle) + { + BFUdoDie("modPtrHandle error",0); + return false; + } + pptr = MemHandleLock(modPtrHandle); + if (!modPtrHandle) + { + BFUdoDie("Couldn't lock modPtrHandle",0); + return false; + } + if (size > 1) + SysQSort(pptr, msize, sizeof(Char *), (CmpFuncPtr)(&BFUCompare),0); + +#ifdef BFUContentsTest + for (i = 0; i < msize ; ++i) + { + BFUdoDie(pptr[i],0); + } +#endif + } + MemPtrFree(fileName); + VFSFileClose(dirRef); + return true; +} + +static Boolean BFUInitFileLists() +{ + UInt16 volRefNum; + UInt32 vfsIterator=vfsIteratorStart; + Err err; + Boolean result=false; + +#ifdef MODULES_DEBUG + BFUdoDie("Entering BFUInitFileList()",0); +#endif + + while(vfsIterator != vfsIteratorStop) + { + err = VFSVolumeEnumerate(&volRefNum,&vfsIterator); + switch (err) + { + case errNone: + if ((result=BFUReadFileNames(volRefNum))) + vfsIterator = vfsIteratorStop; + break; + default: + vfsIterator = vfsIteratorStop; + break; + } + } +#ifdef MODULES_DEBUG + BFUdoDie("Leaving BFUInitFileList()",0); +#endif + return result; +} + +static Boolean BFUInitTable() +{ + int i; + Char **ptr; + TableType *table = getObjectPtr(FrmGetActiveForm(),BFUModulesTable); + Int16 numRow = size; + FormPtr pForm = FrmGetActiveForm(); + +#ifdef MODULES_DEBUG + BFUdoDie("Entering BFUInitTable()",0); +#endif + + if (ptrHandle) + ptr = MemHandleLock(ptrHandle); + else + { + BFUdoDie("ptrHandle not allocated,shouldn't happen",0); + return false; + } + for (i=0; i < numRow; ++i) + { + TblSetItemStyle(table,i,1,checkboxTableItem); + TblSetItemInt(table,i,1,0); + TblSetItemStyle(table,i,0,labelTableItem); + TblSetItemPtr(table,i,0,ptr[i]); + TblSetRowUsable(table,i,true); + TblSetRowSelectable(table,i,true); + TblSetRowStaticHeight(table,i,true); + TblSetRowHeight(table,i,15); + } + TblMarkTableInvalid(table); + TblSetColumnSpacing(table,0,7); + TblSetColumnSpacing(table,1,20); + TblSetColumnUsable(table,0,true); + TblSetColumnUsable(table,1,true); + TblHasScrollBar(table,true); + if ((UseSclBar = size>BFURowsInTable)) + { + SclSetScrollBar(getObjectPtr(pForm, + BFUModScrollBar), 0,0, (UInt16)(size-BFURowsInTable),1); +// FrmShowObject(pForm,BFUModScrollBar); + } +#ifdef MODULES_VERBOSE_DEBUG + BFUdoDie("Going to set",0); +#endif + if (UseSclBar) + BFUSetTableFromBar(0); +#ifdef MODULES_DEBUG + BFUdoDie("leaving BFUInitTable()",0); +#endif + return true; +} + +static void BFUSetTableFromBar(Int16 val) +{ + Int16 i; + TableType *tab=getObjectPtr(FrmGetActiveForm(),BFUModulesTable); + +#ifdef MODULES_DEBUG + BFUdoDie("Entering BFUSetTableFromBar()",0); +#endif + + for (i = 0 ; i < size ; ++i) + { + TblSetRowMasked(tab,i,((i>=val)&&(i<val+BFURowsInTable))); + TblSetRowUsable(tab,i,((i>=val)&&(i<val+BFURowsInTable))); + TblMarkRowInvalid(tab,i); + } + TblMarkTableInvalid(tab); + TblRedrawTable(tab); +#ifdef MODULES_DEBUG + BFUdoDie("leaving BFUSetTableFromBar()",0); +#endif +} + +static Boolean BFUPush2ModList(const Char *name) +{ + Char *ptr; + Err err; + +#ifdef MODULES_VERBOSE_DEBUG + BFUdoDie("Entering BFUPush2ModList()",0); +#endif + + if (msize) + { + ++msize; + err = MemHandleResize(modListHandle,msize*BFUDefaultFileNameSize); + switch (err) + { + case 0: + //OK + break; + default: + BFUdoDie("Cannot resize modListHandle! That's fatal error for this form",0); + return false; + } + } + else + { + msize=1; + modListHandle=MemHandleNew(BFUDefaultFileNameSize); + } + ptr = MemHandleLock(modListHandle); + StrNCopy(ptr+mlength,name, BFUDefaultFileNameSize); + mlength += StrLen(name)+1; + MemHandleUnlock(modListHandle); +#ifdef MODULES_VERBOSE_DEBUG + BFUdoDie("leaving BFUPush2ModList()",0); +#endif + return true; +} + + + +static Boolean BFUIsModList(const Char *name) +{ + Char mod[8];//length of "modlist" + UInt8 l; +#ifdef MODULES_VERBOSE_DEBUG + BFUdoDie("entering BFUIsModList()",0); +#endif + if ((l=StrLen(name))>11) + { + StrNCopy(mod,name,7); //copy "modlist" from beginning + mod[7]='\0'; + if (!StrCaselessCompare(".txt",name+l-4) && !StrCaselessCompare("modlist",mod)) + return true; + } + return false; +#ifdef MODULES_VERBOSE_DEBUG + BFUdoDie("leaving BFUIsModList()",0); +#endif +} + + + +Int16 BFUCompare(void **v1,void **v2,Int32 other) +{ + return StrNCaselessCompare((Char *)*v1,(Char *)*v2,BFUDefaultFileNameSize); +} + +static Boolean BFUSaveNames() +{ + Int16 i; + UInt32 len=0,slen; + UInt32 bitmap=0; + Char **pptr,*sptr; + MemHandle ptrs; + TableType *tab=getObjectPtr(FrmGetActiveForm(),BFUModulesTable); + Err err; +#ifdef MODULES_DEBUG + BFUdoDie("entered BFUSaveNames()",0); +#endif + + if (saveHandle) + { + MemHandleFree(saveHandle); + saveHandle = 0; + } + modCount = 0; + if (size) + { + saveHandle = MemHandleNew(BFUDefaultFileNameSize); + if (!saveHandle) + { + BFUdoDie("Couldn't create new handle. Can't save.",0); + return false; + } + pptr = MemHandleLock(ptrHandle); + if (!pptr) + { + BFUdoDie("Couldn't lock new handle. Can't save.",0); + return false; + } + for (i = 0; i < size ; ++i) + { + if (TblGetItemInt(tab,i,1)) + { + ++modCount; + bitmap |=1; + slen = StrLen(pptr[i]); + err=MemHandleResize(saveHandle,len+slen+1); + if (err) + { + BFUdoDie("Couldn't resize new handle. Can't save.",0); + return false; + } + sptr=MemHandleLock(saveHandle); + if (!sptr) + { + BFUdoDie("Couldn't lock resized handle. Can't save.",0); + return false; + } + BFUdoDie(pptr[i],0); + StrNCopy(sptr+len,pptr[i],slen); + len+=slen+1; + sptr[len-1]='\0'; + MemHandleUnlock(saveHandle); + } + bitmap <<=1; + } + bitmap >>=1; +// BFUdoDie("Bitmap",bitmap); +#ifdef BFUSaveContentsTest + sptr=MemHandleLock(saveHandle); + ptrs = SysFormPointerArrayToStrings(sptr,size); + if (!ptrs) + { + BFUdoDie("ptrs error",0); + return false; + } + pptr = MemHandleLock(ptrs); + if (!pptr) + { + BFUdoDie("Couldn't lock ptrs. Can't save.",0); + return false; + } + for (i = 0; i < modCount ; ++i) + { + BFUdoDie(pptr[i],0); + } +#ifdef MODULES_VERBOSE_DEBUG + BFUdoDie("Unlock saveHandle",0); +#endif + MemHandleUnlock(saveHandle); +#ifdef MODULES_VERBOSE_DEBUG + BFUdoDie("Unlock ptrs",0); +#endif + MemHandleUnlock(ptrs); + MemHandleFree(ptrs); + ptrs = 0; +#endif +#ifdef MODULES_VERBOSE_DEBUG + BFUdoDie("Unlock ptrHandle",0); +#endif + MemHandleUnlock(ptrHandle); +#ifdef MODULES_DEBUG + BFUdoDie("leaving BFUSaveNames()",0); +#endif + } + return true; +} + +static Boolean BFUInitModList() +{ + FormPtr pForm=FrmGetActiveForm(); + Char **pptr = MemHandleLock(modPtrHandle); + + LstNewList ((void **)&pForm, BFUModList, 72, 29,85, 44,stdFont, 4,BFUModListTrigger); + LstSetListChoices(getObjectPtr(pForm,BFUModList),pptr,msize); + MemHandleUnlock(modListHandle); + MemHandleUnlock(modPtrHandle); + MemHandleUnlock(modPtrHandle); + return true; +} + Modified: linux4palm/BFUGarux/BFUSettings.Rsrc =================================================================== --- linux4palm/BFUGarux/BFUSettings.Rsrc 2006-12-01 23:16:34 UTC (rev 688) +++ linux4palm/BFUGarux/BFUSettings.Rsrc 2006-12-02 00:25:32 UTC (rev 689) @@ -81,7 +81,10 @@ POPUPLIST ID BFUPartTrigger BFUPartList LABEL "Set:" ID 8035 AT (9 16) USABLE FONT 1 CHECKBOX "To card" ID BFUSave2CardBox AT (74 140 47 15) USABLE LEFTANCHOR GROUP 0 - TABLE ID BFUModuleTable AT (9 31 141 100) ROWS 8 COLUMNS 2 COLUMNWIDTHS 120 8 + TABLE ID BFUModulesTable AT (2 39 157 97) ROWS 8 COLUMNS 2 COLUMNWIDTHS 120 8 + LABEL "Modules list:" ID 8210 AT (9 31) USABLE FONT 1 + POPUPTRIGGER "Custom" ID BFUModListTrigger AT (72 29 47 15) USABLE LEFTANCHOR + SCROLLBAR ID BFUModScrollBar AT (150 46 7 85) USABLE VALUE 0 MIN 0 MAX 0 PAGESIZE 1 END FORM ID BFUToolsForm AT (0 0 160 160) Modified: linux4palm/BFUGarux/BFUSettings.Rsrc.h =================================================================== --- linux4palm/BFUGarux/BFUSettings.Rsrc.h 2006-12-01 23:16:34 UTC (rev 688) +++ linux4palm/BFUGarux/BFUSettings.Rsrc.h 2006-12-02 00:25:32 UTC (rev 689) @@ -7,8 +7,12 @@ #define BFUSave2CardBox 8543 #define BFUModulesForm 8200 //"BFUSettings - Modules" -#define BFUModuleTable 8201 +#define BFUModulesTable 8201 +#define BFUModListTrigger 8202 +#define BFUModScrollBar 8203 +#define BFUModList 8205 + #define BFUToolsForm 8300 //"BFUSettings - Tools" #define BFUSilentBootBox 8301 #define BFUKeyboardSupportBox 8303 Modified: linux4palm/BFUGarux/garux-clean.c =================================================================== --- linux4palm/BFUGarux/garux-clean.c 2006-12-01 23:16:34 UTC (rev 688) +++ linux4palm/BFUGarux/garux-clean.c 2006-12-02 00:25:32 UTC (rev 689) @@ -82,7 +82,14 @@ StrNCopy(parameters,KernelDefaultParam,KernelParamLength+1); return; } -static void stopApp() {return;} +static void stopApp() +{ +#ifdef with_BFUSettings + if (saveHandle) + MemHandleFree(saveHandle); +#endif + return; +} static void BFUdoDie(const Char * ErrStr,Err error) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <sle...@us...> - 2006-12-02 17:02:49
|
Revision: 690 http://svn.sourceforge.net/hackndev/?rev=690&view=rev Author: sleep_walker Date: 2006-12-02 09:02:45 -0800 (Sat, 02 Dec 2006) Log Message: ----------- l4p: BFUGarux - modules update & very verbose output Modified Paths: -------------- linux4palm/BFUGarux/BFULinuxHelper.c linux4palm/BFUGarux/BFUSettings-alone.c Modified: linux4palm/BFUGarux/BFULinuxHelper.c =================================================================== --- linux4palm/BFUGarux/BFULinuxHelper.c 2006-12-02 00:25:32 UTC (rev 689) +++ linux4palm/BFUGarux/BFULinuxHelper.c 2006-12-02 17:02:45 UTC (rev 690) @@ -73,8 +73,8 @@ char buffer[1025],*end,*ptr; char useNet,source; unsigned char IP[4],i; - long optint; - FILE *stream; + long optint,modint,modlist; + FILE *stream,*modfile; if (argc) stream=fopen(*argv,"r"); else @@ -180,6 +180,18 @@ //RAMdisk size printf("BFURAMDiskSize="); ReadString(&ptr); +//modules; + strchr(ptr,BFUDelimiter); + modint = ReadHexa(4,ptr); + modfile = fopen("/tmp/modfile","w"); + while (modint) + { + fprintf(modfile,"%d\n",modint & 1); + modint >>= 1; + } + ptr += 5; + printf("BFUModList="); + ReadString(&ptr); fclose(stream); return 0; } Modified: linux4palm/BFUGarux/BFUSettings-alone.c =================================================================== --- linux4palm/BFUGarux/BFUSettings-alone.c 2006-12-02 00:25:32 UTC (rev 689) +++ linux4palm/BFUGarux/BFUSettings-alone.c 2006-12-02 17:02:45 UTC (rev 690) @@ -79,7 +79,7 @@ void BFUdoDie(const Char * ErrStr,Err error); static Boolean BFUPush2ModList(const Char *name); static Boolean BFUIsModList(const Char *name); -static Boolean BFUReadModLists(UInt16 volRefNum); +//static Boolean BFUReadModLists(UInt16 volRefNum); static Boolean BFUInitModList(); Int16 BFUCompare(void **v1,void **v2,Int32 other); static Boolean BFUInitTable(); @@ -323,7 +323,12 @@ StrCat(BFUCommandLinePart,del); //Modules selection StrPrintF(netSet,"%x",BFUSettingsValues.modules); - BFUdoDie(netSet,0); + StrCat(BFUCommandLinePart,netSet); + StrCat(BFUCommandLinePart,del); + StrPrintF(netSet,"%d",BFUSettingsValues.modlist); + StrCat(BFUCommandLinePart,netSet); + StrCat(BFUCommandLinePart,del); +// #ifdef BFU_VERBOSE BFUdoDie(BFUCommandLinePart,0); #endif @@ -415,6 +420,7 @@ *BFUCommandLinePart='\0'; return false; } + BFUInitFileLists(); BFUPrefs2String(); return true; } @@ -572,8 +578,8 @@ MemHandle handle; BFUSettingsType *data; // BFUdoDie("going to delete dbase",0); - if (BFUPrefsFound) - { +// if (BFUPrefsFound) +// { err = DmDeleteDatabase(cardNo,BFUPrefs); switch(err) { @@ -589,7 +595,7 @@ return false; break; } - } +// } // BFUdoDie("going to create dbase",0); err = DmCreateDatabase(cardNo,"BFUSavedSettings", 'ARML','BFUS',false); if (err != errNone) @@ -1073,6 +1079,9 @@ } handled = true; break; + case BFUModListTrigger: + BFUSettingsValues.modlist = pEvent->data.popSelect.selection; + break; } // *** ADD EVENT HANDLING HERE *** // default: @@ -1458,7 +1467,7 @@ BFUdoDie("Entering BFUReadFileNames()",0); #endif - err = VFSFileOpen(volRefNum,"/"/* "linux2ram"*/,vfsModeRead,&dirRef); + err = VFSFileOpen(volRefNum,BFUSettingsValues.address /*"/" "linux2ram"*/,vfsModeRead,&dirRef); switch(err) { case errNone: @@ -1759,7 +1768,7 @@ BFUdoDie("Couldn't lock new handle. Can't save.",0); return false; } - for (i = 0; i < size ; ++i) + for (i = size-1; i ; --i) { if (TblGetItemInt(tab,i,1)) { @@ -1821,6 +1830,7 @@ BFUdoDie("Unlock ptrHandle",0); #endif MemHandleUnlock(ptrHandle); + BFUSettingsValues.modules = bitmap; #ifdef MODULES_DEBUG BFUdoDie("leaving BFUSaveNames()",0); #endif This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <sle...@us...> - 2006-12-03 15:18:17
|
Revision: 693 http://svn.sourceforge.net/hackndev/?rev=693&view=rev Author: sleep_walker Date: 2006-12-03 07:02:13 -0800 (Sun, 03 Dec 2006) Log Message: ----------- l4p: BFUGarux-removed modules support for now, too buggy,added kEdAR's releases generation Modified Paths: -------------- linux4palm/BFUGarux/BFUSettings-alone.c linux4palm/BFUGarux/BFUSettings.Rsrc linux4palm/BFUGarux/Makefile Added Paths: ----------- linux4palm/BFUGarux/icons/icon_hrK.bmp Modified: linux4palm/BFUGarux/BFUSettings-alone.c =================================================================== --- linux4palm/BFUGarux/BFUSettings-alone.c 2006-12-03 13:46:39 UTC (rev 692) +++ linux4palm/BFUGarux/BFUSettings-alone.c 2006-12-03 15:02:13 UTC (rev 693) @@ -1,6 +1,6 @@ //#define BFU_VERBOSE -#define MODULES_DEBUG -#define MODULES_VERBOSE_DEBUG +//#define MODULES_DEBUG +//#define MODULES_VERBOSE_DEBUG // #define BFUContentsTest #define BFUSaveContentsTest @@ -106,8 +106,8 @@ Boolean UseSclBar,CardIn; + - static Boolean BFUCopySettingsStruct(BFUSettingsType *source,BFUSettingsType *dest) { UInt8 i; @@ -513,7 +513,7 @@ BFUPrefsVolRefNum = volRefNum; break; default: - //what did I missed??? + //what did I miss??? BFUdoDie("Send please Sleep_Walker this: VFSImportDatabaseFromFile and following number",err); return false; } @@ -587,9 +587,12 @@ break; case dmErrCantFind: break; -/* case 526: - BFUdoDie("Delete result was 526",0); - break;*/ + case 526: + if (BFUPrefsFound) + { + BFUdoDie("Delete result was 526",0); + } + break; default: BFUdoDie("Couldn't delete previously saved preferences.",err); return false; @@ -1234,7 +1237,7 @@ { CtlSetValue(getObjectPtr(pForm,BFUSave2CardBox),BFUSettingsValues.save2card); if ((CardIn = BFUInitFileLists())) - BFUInitTable(); + ;//BFUInitTable(); else BFUdoDie("No card or error occured.",0); BFUInitModList(); @@ -1328,8 +1331,9 @@ static void BFUModulesFormSaveFields(FormType *pForm) { +/* BFUSaveNames(); - BFUdoDie("Removing listHandle",0); + if (listHandle) { #ifdef MODULES_VERBOSE_DEBUG @@ -1339,19 +1343,27 @@ MemHandleFree(listHandle); listHandle = 0; } + +#ifdef MODULES_VERBOSE_DEBUG BFUdoDie("Removing ptrHandle",0); +#endif if (ptrHandle) { MemHandleFree(ptrHandle); ptrHandle = 0; } +*/ +#ifdef MODULES_VERBOSE_DEBUG BFUdoDie("Removing modListHandle",0); +#endif if (modListHandle) { MemHandleFree(modListHandle); modListHandle = 0; } +#ifdef MODULES_VERBOSE_DEBUG BFUdoDie("Removing modPtrHandle",0); +#endif if (modPtrHandle) { MemHandleFree(modPtrHandle); @@ -1438,7 +1450,7 @@ size = 0; - msize=1; + msize = 1; listHandle = 0; ptrHandle = 0; modPtrHandle = 0; @@ -1481,7 +1493,7 @@ { if (BFUIsSquashFS(fileName)) { - BFUPush2List(fileName); + //BFUPush2List(fileName); } else if (BFUIsModList(fileName)) Modified: linux4palm/BFUGarux/BFUSettings.Rsrc =================================================================== --- linux4palm/BFUGarux/BFUSettings.Rsrc 2006-12-03 13:46:39 UTC (rev 692) +++ linux4palm/BFUGarux/BFUSettings.Rsrc 2006-12-03 15:02:13 UTC (rev 693) @@ -81,10 +81,10 @@ POPUPLIST ID BFUPartTrigger BFUPartList LABEL "Set:" ID 8035 AT (9 16) USABLE FONT 1 CHECKBOX "To card" ID BFUSave2CardBox AT (74 140 47 15) USABLE LEFTANCHOR GROUP 0 - TABLE ID BFUModulesTable AT (2 39 157 97) ROWS 8 COLUMNS 2 COLUMNWIDTHS 120 8 + TABLE ID BFUModulesTable AT (4 46 145 85) ROWS 24 COLUMNS 2 COLUMNWIDTHS 120 15 LABEL "Modules list:" ID 8210 AT (9 31) USABLE FONT 1 POPUPTRIGGER "Custom" ID BFUModListTrigger AT (72 29 47 15) USABLE LEFTANCHOR - SCROLLBAR ID BFUModScrollBar AT (150 46 7 85) USABLE VALUE 0 MIN 0 MAX 0 PAGESIZE 1 + SCROLLBAR ID BFUModScrollBar AT (151 46 7 85) USABLE VALUE 0 MIN 0 MAX 0 PAGESIZE 1 END FORM ID BFUToolsForm AT (0 0 160 160) Modified: linux4palm/BFUGarux/Makefile =================================================================== --- linux4palm/BFUGarux/Makefile 2006-12-03 13:46:39 UTC (rev 692) +++ linux4palm/BFUGarux/Makefile 2006-12-03 15:02:13 UTC (rev 693) @@ -1,6 +1,7 @@ # Main Makefile for Garux Bootloader # Copyright 2oo5 Romain Goyet + CC-68K = m68k-palmos-gcc CC-ARM = arm-palmos-gcc CFLAGS = -Wall -O2 -s @@ -27,6 +28,10 @@ @echo "<BFU> has to be:" @echo " BFU - include BFUSettings enhancements (makes Garux 15k bigger)" @echo " NoBFU - do not include BFUSettings" + @echo + @echo "for kEdAR:" + @echo " REVK=NUMBER SVNREV=SVN_REVISION_NUMBER make palmtt3 BFUk" + @echo palmte: cp mach-palmte.h mach.h @@ -61,6 +66,10 @@ garux-clean.prc: garux.h garux-clean asmloader gui image.bin build-prc -n garux-clean -c ARML garux-clean asmloader page????.bin tAIB????.bin tAIN????.bin tFRM????.bin tSTR????.bin MBAR????.bin Talt????.bin +# for kEdAR's releases +garux.$(REVK).prc: garux.h garux-clean asmloader gui image.bin + build-prc -n BFUGarux$(REVK) -c ARML garux-clean asmloader page????.bin tAIB????.bin tAIN????.bin tFRM????.bin tSTR????.bin MBAR????.bin Talt????.bin + asmloader: asmloader.o $(CC-ARM) $(CFLAGS) -nostartfiles -o asmloader asmloader.o @@ -88,6 +97,13 @@ cat garux-generic.rcp BFUSettings.Rsrc | sed 's/#here could be menu/ MENUITEM "BFUSettings" MenuBFU/' > garux.rcp make garux-clean.prc +# for kEdAR's releases +BFUk: image.bin + ./garux.h.sh + echo "#define with_BFUSettings" >> garux.h + cat garux-genericK.rcp BFUSettings.Rsrc | sed -e 's/#here could be menu/ MENUITEM "BFUSettings" MenuBFU/' -e "s/REVISION/$(REVK)/" -e "s/SVN_REV/$(SVNREV)/" > garux.rcp + make garux.$(REVK).prc + NoBFU: image.bin ./garux.h.sh cat garux-generic.rcp | sed 's/#here could be menu//' > garux.rcp Added: linux4palm/BFUGarux/icons/icon_hrK.bmp =================================================================== (Binary files differ) Property changes on: linux4palm/BFUGarux/icons/icon_hrK.bmp ___________________________________________________________________ Name: svn:mime-type + application/octet-stream This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <sle...@us...> - 2006-12-08 20:26:11
|
Revision: 705 http://svn.sourceforge.net/hackndev/?rev=705&view=rev Author: sleep_walker Date: 2006-12-08 12:26:04 -0800 (Fri, 08 Dec 2006) Log Message: ----------- l4p: BFUGarux - I modified something, but forgot what it was... Modified Paths: -------------- linux4palm/BFUGarux/BFUSettings-alone.c linux4palm/BFUGarux/Makefile Modified: linux4palm/BFUGarux/BFUSettings-alone.c =================================================================== --- linux4palm/BFUGarux/BFUSettings-alone.c 2006-12-08 19:14:05 UTC (rev 704) +++ linux4palm/BFUGarux/BFUSettings-alone.c 2006-12-08 20:26:04 UTC (rev 705) @@ -1012,6 +1012,9 @@ } handled = true; break; + case BFUModListTrigger: + BFUSettingsValues.modlist = pEvent->data.popSelect.selection; + break; } // *** ADD EVENT HANDLING HERE *** // default: Modified: linux4palm/BFUGarux/Makefile =================================================================== --- linux4palm/BFUGarux/Makefile 2006-12-08 19:14:05 UTC (rev 704) +++ linux4palm/BFUGarux/Makefile 2006-12-08 20:26:04 UTC (rev 705) @@ -30,7 +30,7 @@ @echo " NoBFU - do not include BFUSettings" @echo @echo "for kEdAR:" - @echo " REVK=NUMBER SVNREV=SVN_REVISION_NUMBER make palmtt3 BFUk" + @echo " REVK=NUMBER VER=k0$REVK SVNREV=SVN_REVISION_NUMBER make palmtt3 BFUk" @echo palmte: @@ -101,7 +101,7 @@ BFUk: image.bin ./garux.h.sh echo "#define with_BFUSettings" >> garux.h - cat garux-genericK.rcp BFUSettings.Rsrc | sed -e 's/#here could be menu/ MENUITEM "BFUSettings" MenuBFU/' -e "s/REVISION/$(REVK)/" -e "s/SVN_REV/$(SVNREV)/" > garux.rcp + cat garux-genericK.rcp BFUSettings.Rsrc | sed -e 's/#here could be menu/ MENUITEM "BFUSettings" MenuBFU/' -e "s/REVISION/$(VER)/" -e "s/SVN_REV/$(SVNREV)/" > garux.rcp make garux.$(REVK).prc NoBFU: image.bin This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <sle...@us...> - 2006-12-08 22:22:36
|
Revision: 708 http://svn.sourceforge.net/hackndev/?rev=708&view=rev Author: sleep_walker Date: 2006-12-08 14:22:33 -0800 (Fri, 08 Dec 2006) Log Message: ----------- l4p: BFUGarux - Modlist selection working, lesser Makefile changes Modified Paths: -------------- linux4palm/BFUGarux/BFUSettings-alone.c linux4palm/BFUGarux/Makefile linux4palm/BFUGarux/garux-genericK.rcp Modified: linux4palm/BFUGarux/BFUSettings-alone.c =================================================================== --- linux4palm/BFUGarux/BFUSettings-alone.c 2006-12-08 20:45:15 UTC (rev 707) +++ linux4palm/BFUGarux/BFUSettings-alone.c 2006-12-08 22:22:33 UTC (rev 708) @@ -1512,8 +1512,8 @@ } } } - if (result) - { +// if (result) +// { //sort names here if (size) { @@ -1562,7 +1562,7 @@ BFUdoDie("Couldn't lock modPtrHandle",0); return false; } - if (size > 1) + if (msize > 1) SysQSort(pptr, msize, sizeof(Char *), (CmpFuncPtr)(&BFUCompare),0); #ifdef BFUContentsTest @@ -1571,7 +1571,7 @@ BFUdoDie(pptr[i],0); } #endif - } +// } MemPtrFree(fileName); VFSFileClose(dirRef); return true; Modified: linux4palm/BFUGarux/Makefile =================================================================== --- linux4palm/BFUGarux/Makefile 2006-12-08 20:45:15 UTC (rev 707) +++ linux4palm/BFUGarux/Makefile 2006-12-08 22:22:33 UTC (rev 708) @@ -68,7 +68,7 @@ # for kEdAR's releases garux.$(REVK).prc: garux.h garux-clean asmloader gui image.bin - build-prc -n BFUGarux$(REVK) -c ARML garux-clean asmloader page????.bin tAIB????.bin tAIN????.bin tFRM????.bin tSTR????.bin MBAR????.bin Talt????.bin + build-prc -n Garux$(REVK) -c ARML garux-clean asmloader page????.bin tAIB????.bin tAIN????.bin tFRM????.bin tSTR????.bin MBAR????.bin Talt????.bin asmloader: asmloader.o $(CC-ARM) $(CFLAGS) -nostartfiles -o asmloader asmloader.o @@ -101,7 +101,7 @@ BFUk: image.bin ./garux.h.sh echo "#define with_BFUSettings" >> garux.h - cat garux-genericK.rcp BFUSettings.Rsrc | sed -e 's/#here could be menu/ MENUITEM "BFUSettings" MenuBFU/' -e "s/REVISION/$(VER)/" -e "s/SVN_REV/$(SVNREV)/" > garux.rcp + cat garux-genericK.rcp BFUSettings.Rsrc | sed -e 's/#here could be menu/ MENUITEM "BFUSettings" MenuBFU/' -e "s/KERNEL_NAME/$(KERNEL_NAME)/" -e "s/REVISION/$(VER)/" -e "s/SVN_REV/$(SVNREV)/" > garux.rcp make garux.$(REVK).prc NoBFU: image.bin @@ -117,3 +117,6 @@ .PHONY: clean clean: -rm -f *.prc *.o $(EXECS) mach.h garux.h garux.rcp *.map *~ *.bin + +install: garux-clean.prc + pilot-xfer -p /dev/ttyUSB1 -i garux-clean.prc \ No newline at end of file Modified: linux4palm/BFUGarux/garux-genericK.rcp =================================================================== --- linux4palm/BFUGarux/garux-genericK.rcp 2006-12-08 20:45:15 UTC (rev 707) +++ linux4palm/BFUGarux/garux-genericK.rcp 2006-12-08 22:22:33 UTC (rev 708) @@ -45,7 +45,7 @@ BEGIN TITLE "BFUGarux Linux Loader" - LABEL "Linux 2.6.17-hnd0 T3" ID 2000 AT (CENTER 20) FONT 2 + LABEL "Linux KERNEL_NAME" ID 2000 AT (CENTER 20) FONT 2 LABEL "REVISION SVN r. SVN_REV" ID 2001 AT (3 40) FONT 0 LABEL "B.A.C.K.U.P. RAM !!! :-)" ID 2002 AT (3 PREVBOTTOM+1) FONT 0 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2007-03-09 20:11:48
|
Revision: 898 http://svn.sourceforge.net/hackndev/?rev=898&view=rev Author: keddar Date: 2007-03-09 12:11:00 -0800 (Fri, 09 Mar 2007) Log Message: ----------- l4p: max_loop defined, some changes in text of BFUGarux Modified Paths: -------------- linux4palm/BFUGarux/BFUSettings.Rsrc linux4palm/BFUGarux/garux.h.sh Modified: linux4palm/BFUGarux/BFUSettings.Rsrc =================================================================== --- linux4palm/BFUGarux/BFUSettings.Rsrc 2007-03-09 18:38:08 UTC (rev 897) +++ linux4palm/BFUGarux/BFUSettings.Rsrc 2007-03-09 20:11:00 UTC (rev 898) @@ -36,7 +36,7 @@ BUTTON "OK" ID BFUOKButton AT (5 140 30 15) USABLE RIGHTANCHOR FRAME BUTTON "Save" ID BFUSaveButton AT (41 140 30 15) USABLE RIGHTANCHOR FRAME BUTTON "Cancel" ID BFUCancelButton AT (126 140 30 15) USABLE RIGHTANCHOR FRAME - POPUPTRIGGER "Global" ID BFUPartTrigger AT (56 15 51 15) USABLE LEFTANCHOR + POPUPTRIGGER "Network" ID BFUPartTrigger AT (56 15 51 15) USABLE LEFTANCHOR LIST "Global" "Network" "Modules" "Tools" "Advanced" ID BFUPartList AT (56 15 60 55) NONUSABLE DISABLED POPUPLIST ID BFUPartTrigger BFUPartList LABEL "Set:" ID 8035 AT (9 16) USABLE FONT 1 @@ -89,7 +89,7 @@ FORM ID BFUToolsForm AT (0 0 160 160) FRAME MODAL NOSAVEBEHIND USABLE - HELPID 8605 DEFAULTBTNID BFUOKButton + HELPID 8604 DEFAULTBTNID BFUOKButton BEGIN TITLE "BFUSettings - Tools" BUTTON "OK" ID BFUOKButton AT (5 140 30 15) USABLE RIGHTANCHOR FRAME @@ -135,114 +135,114 @@ // --------------- Resources of type 'tSTR' --------------- STRING ID 8601 "BFUSettings - Global\n" \ "(Bootloader for users)\n\n" \ - "This window is dedicated to set source of modules.\n\n\n" \ - "Set:\n\n" \ - "Switches to other part of settings - global, network, modules and advanced.\n\n\n" \ - "Source:\n\n" \ + "This window is dedicated to set source of real root or modules.\n\n" \ + "Source:\n" \ "Here you can select method.\n" \ "Possible choices:\n" \ "\x09- Modules on card - mount modules located on card\n" \ "\x09- HTTP - get modules from HTTP server and mount them\n" \ - "\x09- NFS - get modules from NFS server\n" \ - "\x09- Card partition - mount card partition as root\n\n\n" \ - "Address or path:\n\n" \ - "Here you should enter address of NFS server, address of modlist.txt file or path to " \ - "directory on card containing modules.\n\n\n" \ - "Device:\n\n" \ - "Here you should specify device which are modules loaded from.\n\n\n" \ - "OK\n\n" \ - "Prepare settings to be sent and leave BFUSettings\n\n\n" \ - "Save\n\n" \ - "Save preferences for next use.\n\n\n" \ + "\x09- NFS - mount NFS share as root\n" \ + "\x09- Card partition - mount card partition as root\n\n" \ + "Address or path:\n" \ + "Here you should enter address of NFS server, path or address of modlist.txt file or path to " \ + "directory on card containing modules.\n\n" \ + "Device:\n" \ + "Here you should specify device which are modules loaded from.\n\n" \ + "OK\n" \ + "Prepare settings to be sent and leave BFUSettings\n\n" \ + "Save\n" \ + "Save preferences for next use.\n\n" \ "To card\n" \ "If disabled, preferences are saved just to RAM database. If enabled it will " \ - "replace previously found preferences on card or save it on first volume\n\n\n" \ + "replace previously found preferences on card or save it on first volume\n\n" \ "Cancel\n" \ - "Exit and no BFUSettings will be used." + "Exit and no BFUSettings will be used.\n\n" \ + "Set:\n" \ + "Switches to other part of settings - network, modules, tools and advanced.\n\n" STRING ID 8602 "BFUSettings - Network\n" \ "(Bootloader for users)\n\n" \ - "This window is dedicated to set network properties.\n\n\n" \ - "Set:\n\n" \ - "Switches to other part of settings - global, network, modules and advanced.\n\n\n" \ - "Use network\n\n" \ - "Enable or disable network set up during boot. It is required for HTTP or NFS way of boot.\n\n\n" \ - "OK\n\n" \ - "Prepare settings to be sent and leave BFUSettings\n\n\n" \ - "Save\n\n" \ - "Save preferences for next use.\n\n\n" \ + "This window is dedicated to set network properties.\n\n" \ + "Use network:\n" \ + "Enable or disable network set up during boot. It is required for HTTP or NFS way of boot.\n\n" \ + "OK\n" \ + "Prepare settings to be sent and leave BFUSettings\n\n" \ + "Save\n" \ + "Save preferences for next use.\n\n" \ "To card\n" \ "If disabled, preferences are saved just to RAM database. If enabled it will " \ - "replace previously found preferences on card or save it on first volume\n\n\n" \ + "replace previously found preferences on card or save it on first volume\n\n" \ "Cancel\n" \ - "Exit and no BFUSettings will be used." + "Exit and no BFUSettings will be used.\n\n" \ + "Set:\n" \ + "Switches to other part of settings - global, modules, tools and advanced.\n\n" STRING ID 8603 "BFUSettings - Modules\n" \ "(Bootloader for users)\n\n" \ - "This window is dedicated to select modules to be loaded.\n\n\n" \ - "Set:\n\n" \ - "Switches to other part " \ - "of settings - global, network, modules and advanced.\n\n\n" \ - "In this table you can select which \n\n" \ - "OK\n\n" \ - "Prepare settings to be sent and leave BFUSettings\n\n\n" \ - "Save\n\n" \ - "Save preferences for next use.\n\n\n" \ + "This window is dedicated to select modules to be loaded.\n\n" \ + "For now, only possible is select your modlist*.txt.\n\n" \ + "NOTE: used only if start from Card, if start from WWW create modlist.txt and put in same dir on WWW as modules.\n\n" \ + "OK\n" \ + "Prepare settings to be sent and leave BFUSettings\n\n" \ + "Save\n" \ + "Save preferences for next use.\n\n" \ "To card\n" \ "If disabled, preferences are saved just to RAM database. If enabled it will " \ - "replace previously found preferences on card or save it on first volume\n\n\n" \ + "replace previously found preferences on card or save it on first volume\n\n" \ "Cancel\n" \ - "Exit and no BFUSettings will be used." + "Exit and no BFUSettings will be used.\n\n" \ + "Set:\n" \ + "Switches to other part of settings - global, network, tools and advanced.\n\n" STRING ID 8604 "BFUSettings - Tools\n" \ "(Bootloader for users)\n\n" \ - "This window is dedicated to enable useful things.\n\n\n" \ - "Set:\n\nSwitches to other part of settings - global, network, modules, tools and " \ - "advanced.\n\n\n" \ - "Silent boot\n\n" \ - "This will produce no output during boot.\n\n\n" \ - "Keyboard\n\n" \ - "This enable running external keyboard handling program. Currently Stowaway (PPK) and compatibile supported.\n\n\n" \ - "SmallROM reflash\n\n" \ - "This will reflash your SmallROM for suspend/resume support. Read more before enabling that...\n\n\n" \ - "Run fsck for card\n\n" \ - "This will run dosfsck on first partition of card. Usefull for checking errors after bad unmount...\n\n\n" \ - "OK\n\n" \ - "Prepare settings to be sent and leave BFUSettings\n\n\n" \ - "Save\n\n" \ - "Save preferences for next use.\n\n\n" \ + "This window is dedicated to enable useful things.\n\n" \ + "Silent boot:\n" \ + "This will produce no output during boot.\n\n" \ + "Keyboard:\n" \ + "This enable running external keyboard handling program. Currently Stowaway (PPK) and compatible supported.\n\n" \ + "SmallROM reflash:\n" \ + "This will reflash your SmallROM for suspend/resume support. Read more before enabling that...\n\n" \ + "Run fsck for card:\n" \ + "This will run dosfsck on first partition of card. Usefull for checking errors after bad unmount...\n\n" \ + "OK\n" \ + "Prepare settings to be sent and leave BFUSettings\n\n" \ + "Save\n" \ + "Save preferences for next use.\n\n" \ "To card\n" \ "If disabled, preferences are saved just to RAM database. If enabled it will " \ - "replace previously found preferences on card or save it on first volume\n\n\n" \ + "replace previously found preferences on card or save it on first volume\n\n" \ "Cancel\n" \ - "Exit and no BFUSettings will be used." + "Exit and no BFUSettings will be used.\n\n" \ + "Set:\n" \ + "Switches to other part of settings - global, network, modules and advanced.\n\n" STRING ID 8605 "BFUSettings - Advanced\n" \ "(Bootloader for users)\n\n" \ - "This window is dedicated to set advanced settings.\n\n\n" \ - "Set:\n\nSwitches to other part of settings - global, network, modules and " \ - "advanced.\n\n\n" \ - "CPU Frequency\n\n" \ - "You can select CPU speed. Less speed means less battery needs.\n\n\n" \ - "RAMdisk size:\n\n" \ - "You can specify here how much RAM will be used for RAMdisk. Bigger " \ - "RAMdisk means less RAM for running applications.\n\n" \ - "SD/MMC read-only\n\n" \ - "With this option you can mount card as read only (if it is mounted).\n\n\n" \ - "Copy modules to RAM\n\n" \ - "This will mount modules directly from card without copying first to RAM.\n\n\n" \ - "Debug\n\n" \ - "This option will produce debug informations of BFUSettings script part." \ - " Usefull for developers.\n\n" \ - "OK\n\n" \ - "Prepare settings to be sent and leave BFUSettings\n\n\n" \ - "Save\n\n" \ - "Save preferences for next use.\n\n\n" \ + "This window is dedicated to set advanced settings.\n\n" \ + "CPU Frequency:\n" \ + "You can select CPU speed. Less speed means less battery needs.\n\n" \ + "NOTE: some SD card only work with CPU speed 133. Test it if you see many squashfs errors...\n\n" \ + "RAMdisk size:\n" \ + "You can specify MAXIMUM size of RAM will be used for RAMdisk.\n\n" \ + "SD/MMC read-only:\n" \ + "With this option you can mount card as read only (if it is mounted).\n\n" \ + "Copy modules to RAM:\n" \ + "This will copy modules first to RAM, and mount from memory.\n\n" \ + "NOTE: Don't forget set RAMdisk size MINIMAL as total size of all your used modules.\n\n" \ + "Debug:\n" \ + "This option will switch to shell in some important part of initscript.\n" \ + "Usefull for developers.\n" \ + "NOTE: need Stowaway compatible keyboard.\n\n" \ + "OK\n" \ + "Prepare settings to be sent and leave BFUSettings\n\n" \ + "Save\n" \ + "Save preferences for next use.\n\n" \ "To card\n" \ "If disabled, preferences are saved just to RAM database. If enabled it will " \ - "replace previously found preferences on card or save it on first volume\n\n\n" \ + "replace previously found preferences on card or save it on first volume\n\n" \ "Cancel\n" \ - "Exit and no BFUSettings will be used." - - + "Exit and no BFUSettings will be used.\n\n" \ + "Set:\n" \ + "Switches to other part of settings - global, network, modules and tools.\n\n" Modified: linux4palm/BFUGarux/garux.h.sh =================================================================== --- linux4palm/BFUGarux/garux.h.sh 2007-03-09 18:38:08 UTC (rev 897) +++ linux4palm/BFUGarux/garux.h.sh 2007-03-09 20:11:00 UTC (rev 898) @@ -43,7 +43,7 @@ INITRD_BASE_ADDRESS=`echo $RAM_BASE_ADDRESS | cut -f2 -dx` INITRD_BASE_ADDRESS=`echo "obase=16; ibase=16; $INITRD_BASE_ADDRESS + 0400000"|bc` echo -n $INITRD_BASE_ADDRESS >> garux.h #rcp -echo -n ",$NUM_INITRD root=/dev/ram0 init=/linuxrc\"" >> garux.h #rcp +echo -n ",$NUM_INITRD root=/dev/ram0 init=/linuxrc max_loop=255\"" >> garux.h #rcp NUM_IMAGE=`echo $NUM_IMAGE/1024 |bc` echo "Num page " $NUM_PAGES echo "Size image " $NUM_IMAGE This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2007-03-09 20:25:44
|
Revision: 899 http://svn.sourceforge.net/hackndev/?rev=899&view=rev Author: keddar Date: 2007-03-09 12:24:34 -0800 (Fri, 09 Mar 2007) Log Message: ----------- l4p: init script and kernel config (not only) for BFUGarux addition Added Paths: ----------- linux4palm/BFUGarux/init/ linux4palm/BFUGarux/init/linuxrc linux4palm/BFUGarux/init/live-lib Added: linux4palm/BFUGarux/init/linuxrc =================================================================== --- linux4palm/BFUGarux/init/linuxrc (rev 0) +++ linux4palm/BFUGarux/init/linuxrc 2007-03-09 20:24:34 UTC (rev 899) @@ -0,0 +1,44 @@ +#!/bin/sh + +export PATH="/bin:/sbin" + +. $PREFIX/live-lib + +do_banner +#do_insmod_base + +do_initial_mnt + +do_cmdline_check +do_bfu_check +do_cmdline_show + +do_insmod_base + +do_ramdisk +do_kernel_init + +do_stowaway + +do_network_init + +$DEBUGCMD + +do_start_default + +#do_usb_power 0 # MAYBE is req. with Win2k ? TEST: WXP on 2pc = OK +#do_usb_power 1 + +do_plug_mod +do_unionfs +#do_aufs +$DEBUGCMD + +do_load_live_changes +do_unioncopy +do_rootcopy + +do_mmc_move +$DEBUGCMD + +do_chroot Property changes on: linux4palm/BFUGarux/init/linuxrc ___________________________________________________________________ Name: svn:executable + * Added: linux4palm/BFUGarux/init/live-lib =================================================================== --- linux4palm/BFUGarux/init/live-lib (rev 0) +++ linux4palm/BFUGarux/init/live-lib 2007-03-09 20:24:34 UTC (rev 899) @@ -0,0 +1,1159 @@ +#!/bin/sh +# info: this live-lib is based on Farcallers Garux 0.6.1 (based on linux-live.org) +# kEdAR.palmlinux.cz + +######### RELEASE INFO +. $PREFIX/relinfo +KERNEL_VER="2.6.20-hnd0" + +######### MISC PARAMS +## DEFAULT BACKLIGHT (fix for 0 backlight in some cases) +LCDBLDEF="40" + +######### UNIONFS PARAMS +UNION=/union +MEMORY=/memory +MOUNTDIR=mnt +CHANGES=$MEMORY/changes +IMAGES=$MEMORY/images +COPY2RAM=$MEMORY/copy2ram + +######### for MMC PARAMS +MMC_MNT=$MEMORY/mmc +MMC_MNT_ROOT=/mnt/mmc +MMC_MNTNEW="$UNION/mnt/mmc" +LINUX2RAM=/linux2ram ### replaced with BFU if found... (DON'T USE /$LINUX2RAM :) +CMD_MMC="$MMC_MNT$LINUX2RAM/cmdline" +LIVE_CHANGES="$MMC_MNT/live_changes.squashfs" + +######### REFLASH PARAMS +BIN2FLASH="$MMC_MNT_ROOT/bin2flash" +MTD_FREE_MD5="41d2e2c0c0edfccf76fa1c3e38bc1cf2 -" +MTD_PROC_MD5="14208aa9a7579355d19537326f22da8b -" +PREFIX="/mnt/live" # used after pivot_root + +######### LOGGING FUNCTIONS +C_OFF="\033[0;0m" +C_GRE="\033[01;32m" +C_BLU="\033[01;34m" +C_YEL="\033[01;33m" +C_RED="\033[01;41m" +C_REDY="\033[01;33;41m" +C_REDW="\033[01;37;41m" +C_WHIT="\033[01;37m" +INFO=" ${C_YEL}*${C_WHIT}" +WARN=" ${C_GRE}*${C_YEL}" +ERRO=" ${C_REDY}*${C_REDW}" + +## efetchall used for critical part, show info also if SilentBoot is used +efetchall() { + echo -e " ${C_WHIT}>> $1${C_OFF}" +} + +## don't show if SilentBoot is used +efetch() { + if [ "$SILENT" = "" ]; then echo -e " ${C_WHIT}>> $1${C_OFF}"; fi +} + +einfo() { + echo -e "$INFO $1${C_OFF}" +} + +ewarn() { + echo -e "$WARN $1${C_OFF}" +} + +eerr() { + echo -e "$ERRO $1${C_OFF}" +} + +edie() { + eerr "$1" + echo -e "\n" + eerr "System Halted." + while [ 1 -eq 1 ]; do + /bin/sleep 1000000 + done +} + +do_die() { + if [ $? -ne 0 ]; then + edie "Failed" + fi +} + +do_die_msg() { + if [ $? -ne 0 ]; then + edie "$1" + fi +} + +######### COMMON FUNCTIONS +do_banner() { + echo + einfo "Linux4Palm ${C_BLU}http://www.hackndev.com/${C_OFF}" + einfo "Release codename : ${C_RED}${L4P_RELEASE}${C_OFF}" + einfo "Version : $L4P_VERSION" + einfo "Kernel : $KERNEL_VER" + einfo "Bootloader: $BOOTL" + einfo "Unofficial rev.: ${C_GRE}$UNOFF${C_OFF}" + einfo "Unofficial homepage : http://kedar.palmlinux.cz\n\n" +} + +## insert base kernel modules +do_insmod_base() { + ewarn "Loading core modules" + if [ -e /lib/modules/$KERNEL_VER/kernel/fs/aufs/aufs.ko ]; then + efetchall "aufs" ### change efetchall to efetch after test aufs... + modprobe aufs + else + efetch "unionfs" + modprobe unionfs + fi + if [ -e /lib/modules/$KERNEL_VER/kernel/arch/arm/mach-pxa/palmt3/palmt3_battery.ko ]; then + efetch "palmt3_battery" + modprobe palmt3_battery + fi + if [ -e /lib/modules/$KERNEL_VER/kernel/drivers/i2c/chips/tps65010.ko ]; then + efetch "tps65010" + modprobe tps65010 + fi + if [ -e /lib/modules/$KERNEL_VER/kernel/fs/squashfs/squashfs.ko ]; then + efetch "squashfs" + modprobe squashfs + fi + + efetch "gpioed" + modprobe gpioed + do_die_msg "modprobe gpioed failed" +} + +## probe modules from modules-???.squashfs, after unionfs is created +do_insmod_ext() { + ewarn "Probing some modules from real root" + modprobe -s -q tsc2101 + $DEBUGCMD +} + +## mount initial filesystems +do_initial_mnt() { +# /union unionfs +# /memory/ is tmpfs (50% RAM ~32Mb) +# rootfs rootfs (sqashfs dump) +# changes/ changed files in rootfs +# mnt/root/ bound to / + ewarn "Mounting initial filesystems" + mount -t proc none /proc + mount -t sysfs sysfs /sys +} + +## mount ramdisk as tmpfs (used ram in real = used space in ramdisk !) +do_ramdisk() { + ewarn "Mounting Ramdisk..." + RAMSIZE="$BFURAMDiskSize" + if [ "$RAMSIZE" = "" ]; then RAMSIZE="`cmdline_value ramsize`"; fi + if [ "$RAMSIZE" = "" ]; then RAMSIZE="80%"; fi + mount -t tmpfs -o size=$RAMSIZE tmpfs $MEMORY + efetch "mounted with max size $RAMSIZE" +} + +## some settings for kernel +do_kernel_init() { + ewarn "Kernel settings..." + efetch "enabling dynamic tick timer" + echo 1 > /sys/devices/system/timer/timer0/dyn_tick + do_lcdbl_set +} + +## set backlight, read from cmdline(mmc) or use default value 40 +do_lcdbl_set() { + efetch "current backlight: `cat /sys/class/backlight/pxapwm-bl/brightness`" + if [ "$LCDBL" != "" ]; then + efetch "setting backlight from cmdline..." + echo $LCDBL >/sys/class/backlight/pxapwm-bl/brightness + else + efetch "setting backlight to init default: $LCDBLDEF" + echo $LCDBLDEF >/sys/class/backlight/pxapwm-bl/brightness + fi + efetch "backlight after set: `cat /sys/class/backlight/pxapwm-bl/brightness`" +} + +## power on usb port, used for usb network +do_usb_power() { + if [ $1 -eq 1 ]; then + efetch "Powering on USB" + echo "h 85" > /proc/gpioed 2>/dev/null + else + efetch "Powering off USB" + echo "l 53" > /proc/gpioed $SILENT0 + echo "l 85" > /proc/gpioed $SILENT0 + fi +} + +## power on serial port, used for ext.keyboard +do_serial_power() { + if [ $1 -eq 1 ]; then + efetch "Powering on serial" + echo "l 35" > /proc/gpioed $SILENT0 + echo "h 35" > /proc/gpioed $SILENT0 + else + efetch "Powering off serial" + echo "l 35" > /proc/gpioed $SILENT0 + fi +} + +## initialize usb network interface +do_network_init() { + if [ "$usenet" != "0" ]; then + ewarn "Initializing network" + do_usb_power 0 + modprobe -s -q g_ether + do_die_msg "modprobe g_ether failed" + do_usb_power 1 + fi +} + +## network configure in text mode - not used for BFUSettings +do_network_conf() { + ewarn "Configure network:" + einfo "Press 'Center' for network as\n\tHost: 192.168.0.1/24\n\tPalm: 192.161.0.231/24" + einfo "Press 'Address(c)', 'Center' for network as\n\tHost: 10.0.7.1/24\n\tPalm: 10.0.7.231/24" + ewarn "Don't forget to apply network configuration\n\t on your host before continue..." + read netpref + if [ "$netpref" = "c" ]; then + NET_HOST_IP="10.0.7.1" + NET_PALM_IP="10.0.7.231" + NET_NETMASK="255.255.255.0" + else + NET_HOST_IP="192.168.0.1" + NET_PALM_IP="192.168.0.231" + NET_NETMASK="255.255.255.0" + fi + unset netpref + export NET_HOST_IP NET_PALM_IP NET_NETMASK + ewarn "Configuring network" + ifconfig usb0 $NET_PALM_IP netmask $NET_NETMASK up + do_die_msg "ifconfig failed for \"$NET_PALM_IP netmask $NET_NETMASK\"" + route del default gw $NET_HOST_IP 2>/dev/null + route add default gw $NET_HOST_IP + if [ $? -ne 0 ]; then + eerr "failed routing\n\t$NET_HOST_IP\n\trestart configure.." + do_configure + fi + sleep 2 +} + +## configure network +do_network_def() { + if [ "$usenet" != "0" ]; then + ## set default net + NET_HOST_IP="192.168.0.1" + NET_PALM_IP="192.168.0.231" + NET_NETMASK="255.255.255.0" + if [ "$BFUPalmIP" != "" ]; then ## if BFUSettings present, replace previous defaults + NET_HOST_IP="$BFUPCIP" + NET_PALM_IP="$BFUPalmIP" + NET_NETMASK="$BFUNetMask" + fi + export NET_HOST_IP NET_PALM_IP NET_NETMASK + ewarn "Configuring network" + efetch "PalmIP: $NET_PALM_IP" + efetch "HostIP: $NET_HOST_IP" + efetch "Mask: $NET_NETMASK" + if [ "$NET_NETMASK" = "255.255.255.255" ]; then + efetch "pointopoint used" + ifconfig usb0 $NET_PALM_IP pointopoint $NET_HOST_IP netmask $NET_NETMASK up + do_die_msg "ifconfig failed for \"$NET_PALM_IP pointopoint $NET_HOST_IP\"" + else + ifconfig usb0 $NET_PALM_IP netmask $NET_NETMASK up + do_die_msg "ifconfig failed for \"$NET_PALM_IP netmask $NET_NETMASK\"" + fi + route add default gw $NET_HOST_IP + if [ $? -ne 0 ]; then + eerr "failed routing\n\t$NET_HOST_IP\n\t(re)start configure.." + do_configure + fi + fi +} + +## select file with list of modules for boot, if not found create modlist-all.txt from all squashfs files +do_select_modlist() { + if [ "`ls $MMC_MNT$LINUX2RAM/modlist*.txt`" != "" ]; then + modporadi="1" + CWD=`pwd` ### xxx + cd $MMC_MNT$LINUX2RAM ### + for modtxt in `ls -1 modlist*.txt` ; do + if [ "$modporadi" = "$BFUModList" ]; then + MODLIST="$modtxt" + export MODLIST + return 0 + else + modporadi=$(($modporadi+1)) + fi + done + unset modtxt + cd $CWD ### + else + if [ -e "$MMC_MNT$LINUX2RAM" ]; then + efetch "modlist: $MODLIST - NOT FOUND/OR SELECTED" + efetch "make modlist-all.txt in memory..." + efetch "... from $LINUX2RAM/*.squashfs" + CWD=`pwd` + cd $MMC_MNT$LINUX2RAM + ls -1 *.squashfs >"$MEMORY/modlist-all.txt" + cd $CWD + MODLIST="modlist-all.txt" + export MODLIST + else + einfo "Directory $LINUX2RAM NOT FOUND :-(" + fi + fi +} + + +## choice default start: +## - if found config cmdline - run old textmode configure +## - if BFUSource is empty - run default configured => SD-GPE-NET192 +## - in other case - run BFUSettings configure +do_start_default() { + echo + if [ `cmdline_parameter config` ]; then + if [ `cmdline_parameter mmc` ]; then do_mmc_mount; fi + do_configure + else + if [ "$BFUSource" = "" ]; then + ewarn "Start Default: SD/MMC-GPE" + BFUPalmIP="" ## reset -> do_network_def use default + do_network_def + MODLIST="modlist-gpe.txt" + do_mmc_mount + do_get_modules_mmc + else + do_configure_bfu + fi + fi +} + +## old configure on linux side in text mode +do_configure() { + do_network_conf + ewarn "Select start method:" + efetchall "MMC: 'Center'\n\t" + efetchall "WWW: 'Memo(m)','Center'" + efetchall "NFS: 'Address(c)','Center'" + efetchall "MMCpart: 'ToDo(t)','Center'" + read via + if [ "$via" = "" ]; then + efetch "partition ? for p1(vfat):'Center'\n\t\t for p2(ext2):'Memo','Center'" + read wpart + if [ "$wpart" = "" ]; then + export part=p1 + VFSTYPE="vfat" + fi + if [ "$wpart" = "m" ]; then + export part=p2 + VFSTYPE="ext2" + fi + unset wpart + do_mmc_mount + do_select_modlist + do_get_modules_mmc + fi + if [ "$via" = "m" ]; then + do_network_def + do_get_modules_www + fi + if [ "$via" = "c" ]; then + do_mount_nfs + do_chroot_nfs + fi + if [ "$via" = "t" ]; then + do_mmc_mount + do_chroot_oncard + fi + unset via +} + +## configure boot process from BFUSettings parameters +do_configure_bfu() { + #### configure network + if [ $BFUUseNet = "1" ]; then do_network_def; fi + + #### type of partition + if [ "$BFUFS" = "0" ]; then VFSTYPE="vfat"; fi + if [ "$BFUFS" = "1" ]; then VFSTYPE="ext2"; fi + if [ "$BFUFS" = "2" ]; then VFSTYPE="ext3"; fi + + + #### source is modules on card(memory) + if [ "$BFUSource" = "0" ]; then + do_mmc_mount + do_select_modlist + do_get_modules_mmc + fi + + #### source is modules from www + if [ "$BFUSource" = "1" ]; then + ewarn "Don't forget config usb0 on HOST..." + sleep 3 + WWW="$BFUAddress" + if [ "$BFUUseNet" = "0" ]; then usenet="1"; do_network_def; fi ### replace BFUUseNet=0 + do_get_modules_www + fi + + #### source is real rootfs on nfs share + if [ "$BFUSource" = "2" ]; then + ewarn "Don't forget config usb0 on HOST..." + sleep 3 + NFS="$BFUAddress" + if [ $BFUUseNet = "0" ]; then do_network_def; fi ### replace BFUUseNet=0 + do_mount_nfs + do_chroot_nfs + fi + + #### source is real rootfs on nfs share + if [ "$BFUSource" = "3" ]; then + do_mmc_mount + do_mmc_move ### xxxxx + do_chroot_oncard + fi +} + +## get modules from www server, from modlist.txt, or modlist-gpe.txt +do_get_modules_www() { + $DEBUGCMD + ewarn "Getting module list:"; efetch "$WWW/modlist.txt" + cd $MEMORY + wget "$WWW/modlist.txt" -P $MEMORY + if [ -e modlist.txt ]; then + MODLIST="modlist.txt" + else + efetch "try modlist-gpe.txt" + wget "$WWW/modlist-gpe.txt" + MODLIST="modlist-gpe.txt" + fi + export MOD_STR + do_die + MOD_STR="" + mkdir -p $COPY2RAM + for mod in `cat $MEMORY/$MODLIST` ; do + if [ -e $MMC_MNT$LINUX2RAM/$mod ]; then + efetch "$mod" + wget "$WWW/$mod" -P $COPY2RAM + MOD_STR="$mod $MOD_STR" + else + efetch "$mod" + wget "$WWW/$mod" -P $COPY2RAM + MOD_STR="$mod $MOD_STR" + fi + done + export MOD_STR + MODDIR="$COPY2RAM" + start_from_www="1" + $DEBUGCMD +} + +## get modules from mmc card +do_get_modules_mmc() { + $DEBUGCMD + ewarn "Getting modules list..." + cd $MEMORY + MOD_STR="" + ## don't try copy modlist from mmc, if found in memory + if [ ! -e $MEMORY/modlist-all.txt ]; then + efetch "$MMC_MNT$LINUX2RAM/$MODLIST" + cp "$MMC_MNT$LINUX2RAM/$MODLIST" . + do_die + fi + + ## get MOD_STR from MODLIST + if [ "$copy2ram" = "1" ]; then efetch "modules will be copied to ram. wait..."; fi + for mod in `cat $MODLIST` ; do + if [ "$copy2ram" = "1" ]; then + efetch "$mod" + mkdir -p $COPY2RAM + cp $MMC_MNT$LINUX2RAM/$mod $COPY2RAM + MOD_STR="$mod $MOD_STR" + export MOD_STR + MODDIR="$COPY2RAM" + else + MOD_STR="$mod $MOD_STR" + export MOD_STR + MODDIR="$MMC_MNT$LINUX2RAM" + fi + done + export MOD_STR + start_from_mmc="1" + $DEBUGCMD +} + +## mount mmc partition for boot, with or without run fsck +do_mmc_mount() { + do_cpufreq_scale + ewarn "Initializing MMC..." + modprobe -s -q wbsd-palmt3 + sleep 9 + + if [ "$BFUDevice" = "" ]; then + if [ "$part" = "" ]; then part="p1"; fi + MMC_PART="/dev/mmcblk0"$part + else + MMC_PART="$BFUDevice" + fi + export MMC_PART + + if [ "$VFSTYPE" = "vfat" ]; then modprobe vfat; fi + if [ "$VFSTYPE" = "ext2" ]; then modprobe ext2; fi + + if [ ! -e $MMC_MNT ]; then mkdir -p $MMC_MNT; fi + + if [ "$fsckon" = "1" ]; then + echo + ewarn "MANUALLY run 'fsck' on $MMC_PART ?" + if [ "$VFSTYPE" = "vfat" ] ; then + if message_skipped "\t...dosfsck..." 9 "SKIP"; then efetch "autorepair,save unused,verify write"; dosfsck -fyvVw $MMC_PART; fi + else + if message_skipped "\t...e2fsck..." 9 "SKIP"; then e2fsck $MMC_PART; fi + fi + fi + + efetch "mount $MMC_PART to $MMC_MNT" + efetch "(filesystem: $VFSTYPE, readmode: $rmode)" + + ### only for vfat set umask + if [ "$VFSTYPE" = "vfat" ]; then + mount -t $VFSTYPE $MMC_PART $MMC_MNT -o $rmode,noatime,umask=0000 + else + mount -t $VFSTYPE $MMC_PART $MMC_MNT -o $rmode,noatime + fi + + if [ $? -ne 0 ]; then + eerr "Error while mounting: $MMC_PART\n\tNOTE: Try run Garux again, after reinsert card...\n" + showbfu="1"; do_bfu_check; sleep 7 + ewarn "Remove mmc modules, run configure..." + rmmod wbsd-palmt3 + do_configure + fi + + do_cmdline_check_mmc + do_cpufreq_scale_mmc +} + +## try reinitialize mmc, if mmc/sd don't mount [if say PowerDown don't work] +do_mmc_reini() { + einfo "DEInitializing MMC..." + umount -l $MMC_PART $MMC_MNT + rmmod wbsd-palmt3 + einfo "MAYBE: try change, add missed file\n\t or reinsert card ?\n\tafter this try press 'Center'" + read key + do_mmc_mount + unset key +} + +## mount NFS share for boot +do_mount_nfs() { + ewarn "Mounting NFS - $NFS" + ewarn "${C_REDY} WARNING: ${C_OFF}${C_WHIT}boot is ssSlLOoooWww" + mkdir -p $MEMORY/nfs + + ## only for test + ### efetch "run portmap:"; portmap + ### efetch "run inetd: "; inetd + ### efetch "ifconfig" loopback; ifconfig lo 127.0.0.1 netmask 255.0.0.0 up + + modprobe -v nfs + mount -t nfs $NFS $MEMORY/nfs + efetch "list $NFS:"; ls $MEMORY/nfs; efetch "wait for enter......"; read enter ### + $DEBUGCMD + if [ $? -ne 0 ]; then + eerr "Error while mounting:\n\t$NFS" + via="" + do_configure + fi +} + +## create unionfs from modules, with writing support to changes dir in memory +do_unionfs() { + ewarn "Creating unionfs" + mkdir -p $CHANGES + unionarg="dirs=$CHANGES=rw" + for mod in $MOD_STR ; do + unionarg="$unionarg:$IMAGES/$mod=ro" + done + mount -t unionfs -o $unionarg unionfs $UNION + do_die_msg "mount unionfs failed, mount args:\n$unionarg" +} + +## create aufs from modules, with writing support to changes dir in memory +do_aufs() { + ewarn "Creating unionfs (aufs)" + mkdir -p $CHANGES + unionarg="br:$CHANGES=rw" + for mod in $MOD_STR ; do + unionarg="$unionarg:$IMAGES/$mod=ro" + done + mount -t aufs -o $unionarg aufs $UNION + do_die_msg "mount aufs failed, mount args:\n$unionarg" +} + +## insert squashfs modules into unionfs +do_plug_mod() { + ewarn "Mounting modules" + cd $MEMORY + for mod in $MOD_STR ; do + if [ -e $MODDIR/$mod ]; then + efetch "$mod" + mkdir -p $IMAGES/$mod + mount -t squashfs -o ro,loop $MODDIR/$mod "$IMAGES/$mod" + else + ewarn "${C_REDY} WARNING: ${C_OFF}${C_WHIT} $mod not found\n\t ... put it in $LINUX2RAM\n\t ..or remove line from modlist-???.txt" + sleep 9 + fi + + done +} + +## re-rooted to directory with new root +do_chroot() { + cd $UNION + mkdir -p mnt/live + umount /sys + if [ ! -e $UNION/dev/console ]; then mknod $UNION/dev/console c 5 1; fi + if [ ! -e $UNION/dev/initctl ]; then mknod $UNION/dev/initctl p; fi + pivot_root . mnt/live + do_bin2flash_check + do_insmod_ext + ewarn "Running init..." + exec /usr/sbin/chroot . /sbin/init 5 <dev/console >dev/console 2>&1 + do_die +} + +do_chroot_nfs() { + cd $MEMORY/nfs + mkdir -p mnt/live + umount /sys + if [ ! -e $MEMORY/nfs/dev/console ]; then mknod $MEMORY/nfs/dev/console c 5 1; fi + if [ ! -e $MEMORY/nfs/dev/initctl ]; then mknod $MEMORY/nfs/dev/initctl p; fi + pivot_root . mnt/live + do_insmod_ext + ewarn "Running init..." + exec /usr/sbin/chroot . /sbin/init 5 <dev/console >dev/console 2>&1 + do_die +} + +do_chroot_oncard() { + cd $MMC_MNT + mkdir -p mnt/live + umount /sys + if [ ! -e dev/console ]; then mknod dev/console c 5 1; fi + if [ ! -e dev/initctl ]; then mknod dev/initctl p; fi + pivot_root . mnt/live + do_insmod_ext + ewarn "Running init..." + exec /usr/sbin/chroot . /sbin/init 5 <dev/console >dev/console 2>&1 + do_die +} + +######### MISC ######### + +## initialise stowaway/docota keyboard +do_stowaway() { + if [ "$usekbd" != "0" ]; then + ewarn "Initializing Stowaway compatible keyboard" + modprobe stowaway + do_serial_power 1 + inputattach --stowaway /dev/ttyS3 & + fi +} + +## copy files from unioncopy dir (in init) [ for now is used only for inputattach ] +do_unioncopy(){ + if [ -e /unioncopy ]; then +### einfo "Copying some file from init to real root (/)" +### cp -a /unioncopy/* $UNION 2>/dev/null + if [ "$usekbd" != "0" ]; then ### fixme - rewrite for separated copy !? + ewarn "Copying ...resume.d/inputtattach to real root (/)" + cp -a /unioncopy/* $UNION 2>/dev/null + fi + fi + +} + +## if found rootcopy (in source dir for modules), recursive copy all to / +do_rootcopy() { + if [ -e $MMC_MNT$LINUX2RAM/rootcopy ]; then + ewarn "Copying 'rootcopy' to real root (/)" + cp -a $MMC_MNT$LINUX2RAM/rootcopy/* $UNION 2>/dev/null + fi + if [ "$start_from_www" = "1" ]; then + cd $COPY2RAM + einfo "Look for 'rootcopy.zip' on:"; efetch "$WWW" + wget "$WWW/rootcopy.zip" -P $COPY2RAM + if [ -e $COPY2RAM/rootcopy.zip ]; then + efetch "found, unpack to real root (/)..." + unzip -o -q $COPY2RAM/rootcopy.zip -d $UNION + else + efetch "not found...skiping" + fi + fi +} + +## unpack live_changes.squashfs if found (created if reboot, or manualy run Live_Save icon in GPE) +do_load_live_changes() { + if [ "$start_from_mmc" = "1" ]; then + if [ "$liveskip" != "1" ]; then + if [ -e $LIVE_CHANGES ]; then + if message_skipped "$WARN Loading live_changes... " 3 "${C_REDY}SKIP${C_OFF}"; then + efetch "unpacking ..." + unsquashfs -f -dest $CHANGES $LIVE_CHANGES >/dev/null + else + efetchall "skiping ..." + fi + fi + fi + fi +} + +## move mmc mountpoint to /mnt/mmc after finish init +do_mmc_move() { + if [ "$start_from_mmc" = "1" ]; then + ewarn "Move MMC mountpoint to /mnt/mmc" + mkdir -p $MMC_MNTNEW + ### xxx if [ $rmode="rw" ]; then mount $MMC_PART $MMC_MNT -o remount,$rmode; fi + mount --move $MMC_MNT $MMC_MNTNEW + rm -r -f $MMC_MNT + fi + + ## mount also p1, if for boot is used p2 + if [ "$MMC_PART" != "/dev/mmcblk0p1" ]; then + modprobe vfat + efetch "For boot not used p1, mounting p1(FAT) for data" + if [ "$start_from_mmc" = "1" ]; then + mkdir -p $MMC_MNTNEW'1' + mount /dev/mmcblk0p1 $MMC_MNTNEW'1' -o $rmode,noatime,umask=0000 + else + mkdir -p $MMC_MNT/mnt/mmc1 + mount /dev/mmcblk0p1 $MMC_MNT/mnt/mmc1 -o $rmode,noatime,umask=0000 + fi + fi +} + +## set cpufreq to fixed or auto frequency, using cpufreq governors +do_cpufreq_scale() { + ewarn "Setting CPU speed..." + efetch "minimal frequency: "`cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq`" kHz" + efetch "maximal frequency: "`cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq`" kHz" + efetch "speed before is: "`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed`" kHz" + if [ `cmdline_parameter cpufreq` ]; then + CPUFREQ="`cmdline_value cpufreq`" + efetch "read cpufreq from /proc/cmdline: $CPUFREQ'000' kHz" + fi + if [ "$CPUFREQ" = "" ]; then CPUFREQ="133"; efetch "set default value from init..."; fi + if [ "$CPUFREQ" != "auto" ]; then + echo $CPUFREQ'000' >/sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed + efetchall "after set is speed: "`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed`" kHz" + else + GOVERNOR="conservative"; export GOVERNOR ; modprobe -q "cpufreq_$GOVERNOR" + echo "$GOVERNOR" >/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor + efetchall "cpufreq is set to auto ($GOVERNOR)" + fi +} + +## change cpufreq from text file 'cmdline' in source dir for modules/real root (if found file & cpu=) +do_cpufreq_scale_mmc() { + echo + if [ -e $CMD_MMC ]; then + if [ `cmdline_parameter cpufreq $CMD_MMC` ]; then + ewarn "ReSetting CPU speed, from:"; efetch " $CMD_MMC" + efetch "speed before is: "`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed`" kHz" + CPUFREQ="`cmdline_value cpufreq $CMD_MMC`" + if [ "$CPUFREQ" != "auto" ]; then + echo $CPUFREQ'000' >/sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed + efetch "after set is speed: "`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed`" kHz" + else + GOVERNOR="conservative"; export GOVERNOR ; modprobe -q "cpufreq_$GOVERNOR" + echo "$GOVERNOR" >/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor + efetch "cpufreq is set to auto ($GOVERNOR)" + fi + fi + fi + echo +} + +## show kernel cmdline +do_cmdline_show() { + if [ "$SILENT" = "" ]; then + einfo "CMDLine" + echo `cat /proc/cmdline` + fi +} + +## check kernel/garux cmdline parameters +do_cmdline_check() { + if [ -e /proc/cmdline ]; then + if [ `cmdline_parameter nokbd` ]; then usekbd="0"; fi + if [ `cmdline_parameter debug` ]; then DEBUGCMD="debug"; fi + if [ `cmdline_parameter mmcrw` ]; then rmode="rw"; else rmode="ro"; fi + if [ `cmdline_parameter copy2ram` ]; then copy2ram="1"; fi + if [ `cmdline_parameter nfs` ]; then NFS="`cmdline_value nfs`"; else NFS="$NET_HOST_IP:/home/palmlinux/nfs"; fi + if [ `cmdline_parameter www` ]; then WWW="`cmdline_value www`"; else WWW="http://$NET_HOST_IP$LINUX2RAM"; fi + if [ `cmdline_parameter lcdbl` ]; then LCDBL="`cmdline_value lcdbl`"; fi + if [ `cmdline_parameter fsck` ]; then fsckon="1"; fi + if [ `cmdline_parameter ss` ]; then liveskip="1"; fi + fi +} + +## check parameters from text file 'cmdline' in source dir for modules/real root +do_cmdline_check_mmc() { + if [ -e $CMD_MMC ]; then + if [ `cmdline_parameter nokbd $CMD_MMC` ]; then usekbd="0"; fi + if [ `cmdline_parameter debug $CMD_MMC` ]; then DEBUGCMD="debug"; fi + if [ `cmdline_parameter mmcrw $CMD_MMC` ]; then rmode="rw"; fi + if [ `cmdline_parameter copy2ram $CMD_MMC` ]; then copy2ram="1"; fi + if [ `cmdline_parameter lcdbl $CMD_MMC` ]; then LCDBL="`cmdline_value lcdbl $CMD_MMC`"; do_lcdbl_set; fi + if [ `cmdline_parameter skipsaves $CMD_MMC` ]; then liveskip="1"; fi + fi +} + +## import BFUSettings via BFULinuxHelper, and set value from it +do_bfu_check() { + ewarn "Importing BFUSettings..." + ### replace showbfu, if run again + if [ "$showbfu" = "" ]; then if [ "`BFULinuxHelper | grep "BFUSilentBoot=1"`" = "" ]; then showbfu="1"; fi; fi + if [ "$showbfu" = "1" ]; then einfo "Show BFUSettings... "; fi + for bfu in `BFULinuxHelper` ; do + if [ "$showbfu" = "1" ]; then efetchall "$bfu" 5; fi + export $bfu + done + + ## BFUSilentBoot + ## for BFUSilentBoot=1 MUST be set SILENT ! + if [ "$BFUSilentBoot" = "1" ]; then + echo "0" > /proc/sys/kernel/printk + SILENT="1>/dev/null" + SILENT0=">/dev/null" + SILENT2="2>/dev/null" + # <dev/stdout >/dev/null <dev/console >/dev/null + fi + if [ "$BFUAddress" != "" ]; then LINUX2RAM="$BFUAddress"; fi + if [ "$BFUUseNet" = "0" ]; then usenet="0"; fi + if [ "$BFUKeyboard" = "0" ]; then usekbd="0"; fi + if [ "$BFUDebug" = "1" ]; then DEBUGCMD="debug"; fi + if [ "$BFUCardRO" = "0" ]; then rmode="rw"; else rmode="ro"; fi + if [ "$BFUCPUspeed" = "0" ]; then CPUFREQ="auto"; fi + if [ "$BFUCPUspeed" = "1" ]; then CPUFREQ="133"; fi + if [ "$BFUCPUspeed" = "2" ]; then CPUFREQ="266"; fi + if [ "$BFUCPUspeed" = "3" ]; then CPUFREQ="399"; fi + if [ "$BFUCopy2RAM" = "1" ]; then copy2ram="1"; fi + if [ "$BFUFSCK" = "1" ]; then fsckon="1"; fi + if [ "$BFULive" = "0" ]; then liveskip="1"; fi +} + +## run shell for debuging init, test problebs etc.. need stowaway/dicota keyboard +debug() { + ewarn ": Debugging started [CTRL+C for END]" + sh < /dev/console + echo +} + +## workaround for compare md5 +md5_of() { + + echo "`/mnt/live/bin/md5sum < $1`" +} + +## workaround for compare md5 +cat_of() { + + echo "`/mnt/live/bin/cat $1` -" +} + +######## FROM SLAX(LIVE-SCRIPTS) +egrep_o() { +# egrep_o is a replacement for "egrep -o". It prints only the last +# matching text. $1 = regular expression + cat | egrep "$1" | sed -r "s/.*($1).*/\\1/" +} + +cmdline_parameter() { +# look into cmdline and echo $1 back if $1 is set +# $1 = value name, case sensitive, for example livecd_subdir +# $2 = file to use instead /proc/cmdline, optional + CMDLINE=/proc/cmdline + if [ "$2" != "" ]; then CMDLINE="$2"; fi + cat "$CMDLINE" | egrep_o "(^|[[:space:]]+)$1(\$|=|[[:space:]]+)" | egrep_o "$1" +} + +cmdline_value() { +# look into cmdline and echo value of $1 option +# $1 = value name, case sensitive, for example livecd_subdir +# $2 = file to use instead /proc/cmdline, optional + CMDLINE=/proc/cmdline + if [ "$2" != "" ]; then CMDLINE="$2"; fi + cat "$CMDLINE" | egrep_o "(^|[[:space:]]+)$1=([^[:space:]]+)" | egrep_o "=.*" | cut -b 2- | tail -n 1 +} + +message_skipped() { +# use: $1 - text, $2 - timeout, $3 - text for 'center' + + i=$2; echo -ne "$1" "[${C_YEL} center=$3 ${C_WHIT}] ${C_RED}"$i"s${C_OFF}" + while [ $i -gt 0 ]; do + i=$(($i-1)) + read -t 1 -s -n 1 CHAR + if [ $? = 0 -a "$CHAR" = "" ]; then echo; return 1; fi + echo -e -n "${C_RED}"$i"s${C_OFF}" + done + echo + return 0 +} + +######### AUTOFLASH start +do_flash_start() { + mount -t proc none /proc 2>/dev/null + mount -t sysfs sysfs /sys 2>/dev/null + do_mtdutils_check + do_init_mtd + do_setup_mtd1 + do_flash_prepare + do_setup_mtd0 + do_flash_prepare + ewarn "${C_REDY}YOU SURE START WRITE INTO FLASH ???\n\t${C_YEL}('Address(c)', 'Center' for YES)" + read key + if [ "$key" = "c" ]; then + do_setup_mtd1 + do_flash_write + do_setup_mtd0 + do_flash_write + ewarn "Flashing is ended ${C_GRE}OK${C_OFF}" + fi + unset key + do_continue_boot +} + +do_flash_restore() { + efetchall "restore from backup..." + mount -t proc none /proc 2>/dev/null + mount -t sysfs sysfs /sys 2>/dev/null + do_mtdutils_check + do_init_mtd + do_setup_mtd1_restore + do_flash_prepare + do_setup_mtd0_restore + do_flash_prepare + ewarn "${C_REDY}YOU SURE START WRITE INTO FLASH ???\n\t${C_YEL}('Address(c)', 'Center' for YES)${C_OFF}" + read key + if [ "$key" = "c" ]; then + do_setup_mtd1_restore + do_flash_write + do_setup_mtd0_restore + do_flash_write + ewarn "Flashing is ended ${C_GRE}OK${C_OFF}" + fi + unset key + do_continue_boot +} + +do_init_mtd() { + efetchall "probing modules for flash memory" + $PREFIX/sbin/modprobe -s -q palmt3-flash + do_die_msg "modprobe palmt3-flash failed" + $PREFIX/sbin/modprobe -s -q mtdchar + if [ ! -e /dev/mtd0 ]; then mknod /dev/mtd0 c 90 0; fi + if [ ! -e /dev/mtd1 ]; then mknod /dev/mtd1 c 90 2; fi + do_die_msg "modprobe mtdchar failed" + efetchall "check flash partition..." + do_compare "$MTD_PROC_MD5" "`md5_of /proc/mtd`" "MD5: " +} + +do_uninit_mtd() { + efetchall "remove modules for flash memory" + $PREFIX/sbin/modprobe -r -q mtdchar 2>/dev/null + $PREFIX/sbin/modprobe -r -q palmt3-flash 2>/dev/null + $PREFIX/sbin/modprobe -r -q cfi_cmdset_0001 2>/dev/null + $PREFIX/sbin/modprobe -r -q cfi_probe 2>/dev/null +# rm /dev/mtd0 +# rm /dev/mtd1 +} + +do_flash_prepare() { + if [ "$MTD_NEW" != "skip" ]; then + efetchall "prepare for: ${C_YEL}$MTD_NEW${C_OFF} ..." + +## temporary(?) disabled - because MTD_DEV_MD5_AFTER is fixed, and MD5 for 0.1 and 0.2 is present in do_mtdX_setup +# if [ ! -e "$BIN2FLASH/$MTD_NEW.md5" ]; then +# efetch "${C_REDY}NOT FOUND: $MTD_NEW.md5" +# efetch "${C_YEL}create it, ONLY with MD5 number." +# efetch "${C_YEL}because flashing is DANGEROUS..." +# efetch "${C_YEL}without this is ${C_REDW}STOPED${C_OFF}" +# $PREFIX/bin/sleep 10 +# do_mmc_reini +# do_flash_restart +# fi + + ## don't create backup if restore ;) + if [ "$backup" != "NO" ]; then do_flash_backup; fi + + efetchall "copy ${C_YEL}$MTD_NEW${C_OFF} to ${C_YEL}ramdisk${C_OFF}..." + if [ -e $PREFIX/memory/$MTD_NEW ]; then $PREFIX/bin/rm $PREFIX/memory/$MTD_NEW; fi + $PREFIX/bin/cp $BIN2FLASH/$MTD_NEW $PREFIX/memory + do_compare "`md5_of $BIN2FLASH/$MTD_NEW`" "`md5_of /mnt/live/memory/$MTD_NEW`" "MD5: " + fi +} + +do_flash_backup() { + if [ ! -e $BIN2FLASH/$MTD_BAK ]; then + efetchall "backup ${C_YEL}$MTD_DEV${C_OFF} to ${C_YEL}$MTD_BAK${C_OFF}" + dd if=$MTD_DEV of=$BIN2FLASH/$MTD_BAK 2>/dev/nul + do_compare "`md5_of $MTD_DEV`" "`md5_of $BIN2FLASH/$MTD_BAK`" "MD5: " + efetchall "create ${C_YEL}$MTD_BAK.md5${C_OFF}..." + echo "`md5_of $MTD_DEV`" >$BIN2FLASH/$MTD_BAK.md5 + ## FIXME change $PREFIX/bin/cat to cat_of AFTER fix " -" + do_compare "`md5_of $MTD_DEV`" "`$PREFIX/bin/cat $BIN2FLASH/$MTD_BAK.md5`" "MD5: " + else + efetchall "backup of ${C_YEL}$MTD_DEV${C_WHIT} found, check it${C_OFF}" + do_compare "`$PREFIX/bin/cat $BIN2FLASH/$MTD_BAK.md5`" "`md5_of $BIN2FLASH/$MTD_BAK`" "MD5: " ## FIXME change $PREFIX/bin/cat to cat_of AFTER fix " -" + if [ "`md5_of $BIN2FLASH/$MTD_BAK`" = "`md5_of $MTD_DEV`" ]; then + efetchall "... is same as ${C_YEL}$MTD_DEV" + else + efetchall "${C_YEL}... already flashed. Switch to 'restore'..." + if message_skipped "\t..." 9 "NoSwitch"; then do_flash_restore; fi + fi + fi +} + +do_flash_write() { + if [ "$MTD_NEW" != "skip" ]; then + efetchall "prepare ${C_YEL}$MTD_DEV${C_OFF}..." + $PREFIX/sbin/flash_eraseall $MTD_DEV + efetchall "${C_RED}writing${C_OFF} ${C_YEL}$MTD_NEW${C_OFF} ..." + $PREFIX/bin/dd if=/mnt/live/memory/$MTD_NEW of=$MTD_DEV bs=128k conv=sync + if [ "$MTD_DEV_MD5_AFTER" != "" ]; then + efetchall "check ${C_YEL}$MTD_DEV${C_OFF} result:" + do_compare "$MTD_DEV_MD5_AFTER" "`md5_of $MTD_DEV`" "MD5: " + efetchall "${C_YEL}$MTD_NEW ${C_RED}writen fine ${C_OFF}"; echo + else + efetchall "${C_YEL}RESULT NOT BE CHECKED${C_OFF}" + fi + fi +} + +do_mtdutils_check() { + if [ ! -e $PREFIX/sbin/flash_eraseall ]; then + efetchall "${C_RED}flash _eraseall not found${C_OFF}" + echo + do_flash_restart + fi +} + +do_setup_mtd1() { + MTD_NEW="u-boot.bin" + if [ -e $BIN2FLASH/$MTD_NEW ]; then + MTD_DEV="/dev/mtd1" + MTD_BAK="backup_mtd1.bin" + if [ "`md5_of $BIN2FLASH/$MTD_NEW`" = "45155b0514406643a89c2e8a90fbfa65 -" ]; then + efetchall "found ${C_YEL}u-boot for 0x20000${C_OFF}" + MTD_DEV_MD5_AFTER="d7daf9494db0c5703855fbd37cb8dea5 -" + else + efetchall "${C_YEL}unknown ${C_RED}$MTD_NEW${C_WHIT}, continue at YOUR RISK${C_OFF}" + efetchall "${C_RED}AFTER FLASH, RESULT NOT BE CHECKED${C_OFF}" + MTD_DEV_MD5_AFTER="" + fi + else + MTD_NEW="skip" + fi +} + +do_setup_mtd0() { + MTD_NEW="smallrom.bin" + if [ -e $BIN2FLASH/$MTD_NEW ]; then + MTD_DEV="/dev/mtd0" + MTD_BAK="backup_mtd0.bin" + + if [ "`md5_of $BIN2FLASH/$MTD_NEW`" = "13d5b80e6fa7e130afc026e3a298aa2d -" ]; then + efetchall "found ${C_YEL}updated smallrom image (patch 0.1)${C_OFF}" + MTD_DEV_MD5_AFTER="a6a3ddcf1603b1f5227cac525f01f180 -" + else + if [ "`md5_of $BIN2FLASH/$MTD_NEW`" = "536311dacb78c013bdab518fac8f2ee7 -" ]; then + efetchall "found ${C_YEL}updated smallrom image (patch 0.2)${C_OFF}" + MTD_DEV_MD5_AFTER="e3cb68ee435cb8cdd7291f2ad30d97c6 -" + else + efetchall "${C_YEL}unknown ${C_RED}$MTD_NEW${C_WHIT}, continue at YOUR RISK${C_OFF}" + efetchall "${C_RED}AFTER FLASH, RESULT NOT BE CHECKED${C_OFF}" + MTD_DEV_MD5_AFTER="" + fi + fi + + else + MTD_NEW="skip" + fi +} + +do_setup_mtd1_restore() { + backup="NO" + MTD_NEW="backup_mtd1.bin" + MTD_DEV="/dev/mtd1" + MTD_DEV_MD5_AFTER="`$PREFIX/bin/cat $BIN2FLASH/$MTD_NEW.md5`" ## FIXME change $PREFIX/bin/cat to cat_of AFTER fix " -" +} + +do_setup_mtd0_restore() { + backup="NO" + MTD_NEW="backup_mtd0.bin" + MTD_DEV="/dev/mtd0" + MTD_DEV_MD5_AFTER="`$PREFIX/bin/cat $BIN2FLASH/$MTD_NEW.md5`" ## FIXME change $PREFIX/bin/cat to cat_of AFTER fix " -" +} + +do_bin2flash_check() { + + if [ "$BFUReflash" = "1" ]; then + if [ -e "$BIN2FLASH" ]; then + ewarn "Found bin2flash dir, run autoreflash ?" + if message_skipped "\t..." 9 "SKIP"; then + if [ "`ls $BIN2FLASH|grep backup_mtd`" != "" ]; then + efetchall "found ${C_YEL}backup files${C_WHIT}, use it for RESTORE?" + if ! message_skipped "\t..." 9 "restore"; then do_flash_restore; else do_flash_start;fi + fi + else + efetchall "skiped" + fi + else + ewarn "${C_REDY}/bin2flash not found..${C_OFF}" + sleep 5 + fi + fi +} + +do_compare() { +# use: $1 - from, $2 - to, $3 - text before result + if [ "$1" = "$2" ]; then + efetchall "${C_OFF}$3$1 ${C_GRE}OK${C_OFF}" + else + efetchall "${C_OFF}$3$2 ${C_REDY}BAD${C_OFF}" + do_flash_restart + fi +} + +do_flash_restart() { + echo -e "${C_REDY} PROBLEM FOUND ${C_OFF}" + do_uninit_mtd + efetchall "${C_YEL}'Address(c)', 'Center' for restart${C_OFF}" + efetchall "${C_YEL}'Center' for continue normal boot...${C_OFF}" + read key + if [ "$key" = "c" ]; then + do_bin2flash_check + else + do_continue_boot + fi + unset key +} + +do_continue_boot() { + do_uninit_mtd + ewarn "For continue in normal boot press 'Center'${C_OFF}" + read enter + umount /sys + ## end part of do_chroot + ewarn "Running init..." + exec /usr/sbin/chroot . /sbin/init 5 <dev/console >dev/console 2>&1 + do_die +} +######### AUTOFLASH end Property changes on: linux4palm/BFUGarux/init/live-lib ___________________________________________________________________ Name: svn:executable + * This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <sle...@us...> - 2007-03-24 20:02:15
|
Revision: 932 http://svn.sourceforge.net/hackndev/?rev=932&view=rev Author: sleep_walker Date: 2007-03-24 13:02:12 -0700 (Sat, 24 Mar 2007) Log Message: ----------- l4p: add no CPUfreq support to remove SD card speed problem Modified Paths: -------------- linux4palm/BFUGarux/BFULinuxHelper.c linux4palm/BFUGarux/BFUSettings-alone.c linux4palm/BFUGarux/BFUSettings.Rsrc Modified: linux4palm/BFUGarux/BFULinuxHelper.c =================================================================== --- linux4palm/BFUGarux/BFULinuxHelper.c 2007-03-22 17:00:31 UTC (rev 931) +++ linux4palm/BFUGarux/BFULinuxHelper.c 2007-03-24 20:02:12 UTC (rev 932) @@ -110,8 +110,8 @@ optint >>= 1; printf("BFUSilentBoot=%ld\n",optint & 1); optint >>= 1; - printf("BFUCPUspeed=%ld\n",optint & 3); - optint >>= 2; + printf("BFUCPUspeed=%ld\n",optint & 7); + optint >>= 3; printf("BFUCardRO=%ld\n",optint & 1); optint >>=1; printf("BFUKeyboard=%ld\n",optint & 1); Modified: linux4palm/BFUGarux/BFUSettings-alone.c =================================================================== --- linux4palm/BFUGarux/BFUSettings-alone.c 2007-03-22 17:00:31 UTC (rev 931) +++ linux4palm/BFUGarux/BFUSettings-alone.c 2007-03-24 20:02:12 UTC (rev 932) @@ -191,8 +191,8 @@ options |= BFUSettingsValues.keyboard; options = options << 1; options |= BFUSettingsValues.cardRO; - options = options << 2; -//CPUspeed has 4 possibilities + options = options << 3; +//CPUspeed has 5 possibilities options |= BFUSettingsValues.CPUspeed; options = options << 1; options |= BFUSettingsValues.silentBoot; Modified: linux4palm/BFUGarux/BFUSettings.Rsrc =================================================================== --- linux4palm/BFUGarux/BFUSettings.Rsrc 2007-03-22 17:00:31 UTC (rev 931) +++ linux4palm/BFUGarux/BFUSettings.Rsrc 2007-03-24 20:02:12 UTC (rev 932) @@ -122,7 +122,7 @@ LABEL "Set:" ID 8035 AT (9 16) USABLE FONT 1 CHECKBOX "To card" ID BFUSave2CardBox AT (74 140 47 15) USABLE LEFTANCHOR GROUP 0 LABEL "CPU Frequency:" ID 8350 AT (9 33) USABLE FONT 1 - LIST "Auto" "133 MHz" "266 MHz" "400 MHz" ID BFUCPUSpeedList AT (90 31 39 44) NONUSABLE DISABLED + LIST "Auto" "133 MHz" "266 MHz" "400 MHz" "None" ID BFUCPUSpeedList AT (90 31 39 55) NONUSABLE DISABLED POPUPTRIGGER "Auto" ID BFUCPUSpeedTrigger AT (90 31 55 15) USABLE LEFTANCHOR POPUPLIST ID BFUCPUSpeedTrigger BFUCPUSpeedList LABEL "RAMdisk size:" ID 8351 AT (9 48) USABLE FONT 1 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <sle...@us...> - 2007-03-25 00:14:55
|
Revision: 933 http://svn.sourceforge.net/hackndev/?rev=933&view=rev Author: sleep_walker Date: 2007-03-24 17:14:46 -0700 (Sat, 24 Mar 2007) Log Message: ----------- l4p: BFUGarux modlist behaviour change Modified Paths: -------------- linux4palm/BFUGarux/BFUSettings-alone.c linux4palm/BFUGarux/BFUSettings.Rsrc Modified: linux4palm/BFUGarux/BFUSettings-alone.c =================================================================== --- linux4palm/BFUGarux/BFUSettings-alone.c 2007-03-24 20:02:12 UTC (rev 932) +++ linux4palm/BFUGarux/BFUSettings-alone.c 2007-03-25 00:14:46 UTC (rev 933) @@ -1684,11 +1684,12 @@ #endif } -static Boolean BFUPush2ModList(const Char *name) +static Boolean BFUPush2ModList(const Char *whole_name) { - Char *ptr; + Char *ptr, name[BFUDefaultFileNameSize]; Err err; - + int i = StrLen(whole_name)-StrLen("modlist-")-StrLen(".txt"); + #ifdef MODULES_VERBOSE_DEBUG BFUdoDie("Entering BFUPush2ModList()",0); #endif @@ -1712,6 +1713,8 @@ msize=1; modListHandle=MemHandleNew(BFUDefaultFileNameSize); } + StrNCopy(name,whole_name+StrLen("modlist-"),i); + name[i]='\0'; ptr = MemHandleLock(modListHandle); StrNCopy(ptr+mlength,name, BFUDefaultFileNameSize); mlength += StrLen(name)+1; @@ -1726,16 +1729,16 @@ static Boolean BFUIsModList(const Char *name) { - Char mod[8];//length of "modlist" + Char mod[9];//length of "modlist-" UInt8 l; #ifdef MODULES_VERBOSE_DEBUG BFUdoDie("entering BFUIsModList()",0); #endif - if ((l=StrLen(name))>11) + if ((l=StrLen(name))>13) { - StrNCopy(mod,name,7); //copy "modlist" from beginning - mod[7]='\0'; - if (!StrCaselessCompare(".txt",name+l-4) && !StrCaselessCompare("modlist",mod)) + StrNCopy(mod,name,8); //copy "modlist-" from beginning + mod[8]='\0'; + if (!StrCaselessCompare(".txt",name+l-4) && !StrCaselessCompare("modlist-",mod)) return true; } return false; @@ -1859,7 +1862,7 @@ FormPtr pForm=FrmGetActiveForm(); Char **pptr = MemHandleLock(modPtrHandle); - LstNewList ((void **)&pForm, BFUModList, 72, 29,85, 44,stdFont, 4,BFUModListTrigger); + LstNewList ((void **)&pForm, BFUModList, 52, 29,105, 121,stdFont, 11,BFUModListTrigger); LstSetListChoices(getObjectPtr(pForm,BFUModList),pptr,msize); MemHandleUnlock(modListHandle); MemHandleUnlock(modPtrHandle); Modified: linux4palm/BFUGarux/BFUSettings.Rsrc =================================================================== --- linux4palm/BFUGarux/BFUSettings.Rsrc 2007-03-24 20:02:12 UTC (rev 932) +++ linux4palm/BFUGarux/BFUSettings.Rsrc 2007-03-25 00:14:46 UTC (rev 933) @@ -82,8 +82,8 @@ LABEL "Set:" ID 8035 AT (9 16) USABLE FONT 1 CHECKBOX "To card" ID BFUSave2CardBox AT (74 140 47 15) USABLE LEFTANCHOR GROUP 0 TABLE ID BFUModulesTable AT (4 46 145 85) ROWS 24 COLUMNS 2 COLUMNWIDTHS 120 15 - LABEL "Modules list:" ID 8210 AT (9 31) USABLE FONT 1 - POPUPTRIGGER "Custom" ID BFUModListTrigger AT (72 29 47 15) USABLE LEFTANCHOR + LABEL "modlist:" ID 8210 AT (9 31) USABLE FONT 1 + POPUPTRIGGER "Custom" ID BFUModListTrigger AT (52 29 67 15) USABLE LEFTANCHOR SCROLLBAR ID BFUModScrollBar AT (151 46 7 85) USABLE VALUE 0 MIN 0 MAX 0 PAGESIZE 1 END This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <sle...@us...> - 2007-03-25 00:37:48
|
Revision: 934 http://svn.sourceforge.net/hackndev/?rev=934&view=rev Author: sleep_walker Date: 2007-03-24 17:37:41 -0700 (Sat, 24 Mar 2007) Log Message: ----------- l4p: added live_changes support into BFUGarux Modified Paths: -------------- linux4palm/BFUGarux/BFULinuxHelper.c linux4palm/BFUGarux/BFUSettings-alone.c linux4palm/BFUGarux/BFUSettings.Rsrc linux4palm/BFUGarux/BFUSettings.Rsrc.h Modified: linux4palm/BFUGarux/BFULinuxHelper.c =================================================================== --- linux4palm/BFUGarux/BFULinuxHelper.c 2007-03-25 00:14:46 UTC (rev 933) +++ linux4palm/BFUGarux/BFULinuxHelper.c 2007-03-25 00:37:41 UTC (rev 934) @@ -106,6 +106,8 @@ optint >>= 2; printf("BFUUseNet=%d\n",useNet = (optint & 1)); optint >>= 1; + printf("BFULiveChanges=%d\n",optint & 1); + optint >>= 1; printf("BFUDebug=%ld\n",optint & 1); optint >>= 1; printf("BFUSilentBoot=%ld\n",optint & 1); Modified: linux4palm/BFUGarux/BFUSettings-alone.c =================================================================== --- linux4palm/BFUGarux/BFUSettings-alone.c 2007-03-25 00:14:46 UTC (rev 933) +++ linux4palm/BFUGarux/BFUSettings-alone.c 2007-03-25 00:37:41 UTC (rev 934) @@ -43,6 +43,7 @@ UInt8 copy2ram; Char RAMdiskSize[BFURAMdiskMaxLength]; UInt8 save2card; + UInt8 live_changes; } BFUSettingsType; static Boolean BFUCopySettingsStruct(BFUSettingsType *source,BFUSettingsType *dest); @@ -142,6 +143,7 @@ dest->fsck = source->fsck; dest->modules = source->modules; dest->modlist = source->modlist; + dest->live_changes = source->live_changes; return true; } @@ -199,6 +201,8 @@ options = options << 1; options |= BFUSettingsValues.debug; options = options << 1; + options |= BFUSettingsValues.live_changes; + options = options << 1; options |= BFUSettingsValues.net; options = options << 2; options |= BFUSettingsValues.fs; Modified: linux4palm/BFUGarux/BFUSettings.Rsrc =================================================================== --- linux4palm/BFUGarux/BFUSettings.Rsrc 2007-03-25 00:14:46 UTC (rev 933) +++ linux4palm/BFUGarux/BFUSettings.Rsrc 2007-03-25 00:37:41 UTC (rev 934) @@ -1,248 +1,249 @@ -#include "BFUSettings.Rsrc.h" -// --------------- Resources of type 'NFNT' --------------- -// --------------- Resources of type 'Talt' --------------- -// --------------- Resources of type 'tFRM' --------------- -FORM ID BFUGlobalForm AT (0 0 160 160) - FRAME MODAL NOSAVEBEHIND USABLE - HELPID 8601 DEFAULTBTNID BFUOKButton -BEGIN - TITLE "BFUSettings - Global" - LIST "Modules on card" "HTTP" "NFS" "Card partition" ID BFUSourceList AT (6 50 70 44) NONUSABLE DISABLED - POPUPTRIGGER "Source" ID BFUSourceTrigger AT (6 50 82 15) USABLE LEFTANCHOR - POPUPLIST ID BFUSourceTrigger BFUSourceList - LABEL "Source:" ID 8030 AT (9 35) USABLE FONT 1 - LABEL "Address or path:" ID 8031 AT (9 69) USABLE FONT 1 - FIELD ID BFUAddressField AT (9 88 140 16) USABLE LEFTALIGN EDITABLE UNDERLINED SINGLELINE MAXCHARS 64 - POPUPTRIGGER "Filesystem" ID BFUFileSystemPopup AT (90 50 60 15) USABLE LEFTANCHOR - LIST "vfat" "ext2" "ext3" ID BFUFileSystemList AT (90 50 60 33) NONUSABLE DISABLED - POPUPLIST ID BFUFileSystemPopup BFUFileSystemList - LABEL "Device:" ID 8032 AT (9 110) USABLE FONT 1 - FIELD ID BFUDeviceField AT (54 110 77 15) USABLE LEFTALIGN EDITABLE UNDERLINED SINGLELINE MAXCHARS 16 - BUTTON "OK" ID BFUOKButton AT (5 140 30 15) USABLE RIGHTANCHOR FRAME - BUTTON "Save" ID BFUSaveButton AT (41 140 30 15) USABLE RIGHTANCHOR FRAME - BUTTON "Cancel" ID BFUCancelButton AT (126 140 30 15) USABLE RIGHTANCHOR FRAME - POPUPTRIGGER "Global" ID BFUPartTrigger AT (56 15 41 15) USABLE LEFTANCHOR - LIST "Global" "Network" "Modules" "Tools" "Advanced" ID BFUPartList AT (56 15 60 55) NONUSABLE DISABLED - POPUPLIST ID BFUPartTrigger BFUPartList - LABEL "Set:" ID 8035 AT (9 16) USABLE FONT 1 - CHECKBOX "To card" ID BFUSave2CardBox AT (74 140 47 15) USABLE LEFTANCHOR GROUP 0 -END - -FORM ID BFUNetForm AT (0 0 160 160) - FRAME MODAL NOSAVEBEHIND USABLE - HELPID 8602 DEFAULTBTNID BFUOKButton -BEGIN - TITLE "BFUSettings - Network" - BUTTON "OK" ID BFUOKButton AT (5 140 30 15) USABLE RIGHTANCHOR FRAME - BUTTON "Save" ID BFUSaveButton AT (41 140 30 15) USABLE RIGHTANCHOR FRAME - BUTTON "Cancel" ID BFUCancelButton AT (126 140 30 15) USABLE RIGHTANCHOR FRAME - POPUPTRIGGER "Network" ID BFUPartTrigger AT (56 15 51 15) USABLE LEFTANCHOR - LIST "Global" "Network" "Modules" "Tools" "Advanced" ID BFUPartList AT (56 15 60 55) NONUSABLE DISABLED - POPUPLIST ID BFUPartTrigger BFUPartList - LABEL "Set:" ID 8035 AT (9 16) USABLE FONT 1 - CHECKBOX "To card" ID BFUSave2CardBox AT (74 140 47 15) USABLE LEFTANCHOR GROUP 0 - LABEL "IP address of Palm:" ID 8130 AT (9 50) USABLE FONT 1 - CHECKBOX "Use network" ID BFUUseNetBox AT (9 31 67 15) USABLE RIGHTANCHOR GROUP 0 - FIELD ID BFUPalmIPField0 AT (9 61 15 15) USABLE EDITABLE UNDERLINED MULTIPLELINES NUMERIC MAXCHARS 3 - LABEL "." ID 8131 AT (26 62) USABLE FONT 1 - FIELD ID BFUPalmIPField1 AT (30 61 15 15) USABLE EDITABLE UNDERLINED MULTIPLELINES NUMERIC MAXCHARS 3 - LABEL "." ID 8132 AT (47 62) USABLE FONT 1 - FIELD ID BFUPalmIPField2 AT (52 61 15 15) USABLE EDITABLE UNDERLINED MULTIPLELINES NUMERIC MAXCHARS 3 - LABEL "." ID 8133 AT (70 62) USABLE FONT 1 - FIELD ID BFUPalmIPField3 AT (75 61 15 15) USABLE EDITABLE UNDERLINED MULTIPLELINES NUMERIC MAXCHARS 3 - LABEL "IP of PC:" ID 8137 AT (9 76) USABLE FONT 1 - FIELD ID BFUPCIPField0 AT (9 89 15 15) USABLE EDITABLE UNDERLINED MULTIPLELINES NUMERIC MAXCHARS 3 - FIELD ID BFUPCIPField1 AT (30 89 15 15) USABLE EDITABLE UNDERLINED MULTIPLELINES NUMERIC MAXCHARS 3 - FIELD ID BFUPCIPField2 AT (52 89 15 15) USABLE EDITABLE UNDERLINED MULTIPLELINES NUMERIC MAXCHARS 3 - FIELD ID BFUPCIPField3 AT (75 89 15 15) USABLE EDITABLE UNDERLINED MULTIPLELINES NUMERIC MAXCHARS 3 - LABEL "." ID 8134 AT (26 90) USABLE FONT 1 - LABEL "." ID 8135 AT (47 90) USABLE FONT 1 - LABEL "." ID 8136 AT (70 90) USABLE FONT 1 - LABEL "Mask:" ID 8138 AT (9 103) USABLE FONT 1 - FIELD ID BFUMaskField0 AT (9 115 15 15) USABLE EDITABLE UNDERLINED MULTIPLELINES NUMERIC MAXCHARS 3 - FIELD ID BFUMaskField1 AT (30 115 15 15) USABLE EDITABLE UNDERLINED MULTIPLELINES NUMERIC MAXCHARS 3 - FIELD ID BFUMaskField2 AT (52 115 15 15) USABLE EDITABLE UNDERLINED MULTIPLELINES NUMERIC MAXCHARS 3 - FIELD ID BFUMaskField3 AT (75 115 15 15) USABLE EDITABLE UNDERLINED MULTIPLELINES NUMERIC MAXCHARS 3 - LABEL "." ID 8139 AT (26 116) USABLE FONT 1 - LABEL "." ID 8140 AT (47 116) USABLE FONT 1 - LABEL "." ID 8141 AT (70 116) USABLE FONT 1 -END - -FORM ID BFUModulesForm AT (0 0 160 160) - FRAME MODAL NOSAVEBEHIND USABLE - HELPID 8603 DEFAULTBTNID BFUOKButton -BEGIN - TITLE "BFUSettings - Modules" - BUTTON "OK" ID BFUOKButton AT (5 140 30 15) USABLE RIGHTANCHOR FRAME - BUTTON "Save" ID BFUSaveButton AT (41 140 30 15) USABLE RIGHTANCHOR FRAME - BUTTON "Cancel" ID BFUCancelButton AT (126 140 30 15) USABLE RIGHTANCHOR FRAME - POPUPTRIGGER "Modules" ID BFUPartTrigger AT (56 15 50 15) USABLE LEFTANCHOR - LIST "Global" "Network" "Modules" "Tools" "Advanced" ID BFUPartList AT (56 15 60 55) NONUSABLE DISABLED - POPUPLIST ID BFUPartTrigger BFUPartList - LABEL "Set:" ID 8035 AT (9 16) USABLE FONT 1 - CHECKBOX "To card" ID BFUSave2CardBox AT (74 140 47 15) USABLE LEFTANCHOR GROUP 0 - TABLE ID BFUModulesTable AT (4 46 145 85) ROWS 24 COLUMNS 2 COLUMNWIDTHS 120 15 - LABEL "modlist:" ID 8210 AT (9 31) USABLE FONT 1 - POPUPTRIGGER "Custom" ID BFUModListTrigger AT (52 29 67 15) USABLE LEFTANCHOR - SCROLLBAR ID BFUModScrollBar AT (151 46 7 85) USABLE VALUE 0 MIN 0 MAX 0 PAGESIZE 1 -END - -FORM ID BFUToolsForm AT (0 0 160 160) - FRAME MODAL NOSAVEBEHIND USABLE - HELPID 8604 DEFAULTBTNID BFUOKButton -BEGIN - TITLE "BFUSettings - Tools" - BUTTON "OK" ID BFUOKButton AT (5 140 30 15) USABLE RIGHTANCHOR FRAME - BUTTON "Save" ID BFUSaveButton AT (41 140 30 15) USABLE RIGHTANCHOR FRAME - BUTTON "Cancel" ID BFUCancelButton AT (126 140 30 15) USABLE RIGHTANCHOR FRAME - POPUPTRIGGER "Tools" ID BFUPartTrigger AT (56 15 50 15) USABLE LEFTANCHOR - LIST "Global" "Network" "Modules" "Tools" "Advanced" ID BFUPartList AT (56 15 60 55) NONUSABLE DISABLED - POPUPLIST ID BFUPartTrigger BFUPartList - LABEL "Set:" ID 8035 AT (9 16) USABLE FONT 1 - CHECKBOX "To card" ID BFUSave2CardBox AT (74 140 47 15) USABLE LEFTANCHOR GROUP 0 - CHECKBOX "Silent boot" ID BFUSilentBootBox AT (9 31 60 15) USABLE RIGHTANCHOR GROUP 0 - CHECKBOX "Keyboard support" ID BFUKeyboardSupportBox AT (9 46 91 15) USABLE RIGHTANCHOR GROUP 0 - CHECKBOX "SmallROM reflash (dangerous!)" ID BFUReflashBox AT (9 61 145 15) USABLE RIGHTANCHOR GROUP 0 - CHECKBOX "Run fsck for card" ID BFURunFSCKBox AT (9 76 145 15) USABLE RIGHTANCHOR GROUP 0 - -END - - -FORM ID BFUAdvancedForm AT (0 0 160 160) - FRAME MODAL NOSAVEBEHIND USABLE - HELPID 8605 DEFAULTBTNID BFUOKButton -BEGIN - TITLE "BFUSettings - Advanced" - BUTTON "OK" ID BFUOKButton AT (5 140 30 15) USABLE RIGHTANCHOR FRAME - BUTTON "Save" ID BFUSaveButton AT (41 140 30 15) USABLE RIGHTANCHOR FRAME - BUTTON "Cancel" ID BFUCancelButton AT (126 140 30 15) USABLE RIGHTANCHOR FRAME - POPUPTRIGGER "Advanced" ID BFUPartTrigger AT (56 15 55 15) USABLE LEFTANCHOR - LIST "Global" "Network" "Modules" "Tools" "Advanced" ID BFUPartList AT (56 15 60 55) NONUSABLE DISABLED - POPUPLIST ID BFUPartTrigger BFUPartList - LABEL "Set:" ID 8035 AT (9 16) USABLE FONT 1 - CHECKBOX "To card" ID BFUSave2CardBox AT (74 140 47 15) USABLE LEFTANCHOR GROUP 0 - LABEL "CPU Frequency:" ID 8350 AT (9 33) USABLE FONT 1 - LIST "Auto" "133 MHz" "266 MHz" "400 MHz" "None" ID BFUCPUSpeedList AT (90 31 39 55) NONUSABLE DISABLED - POPUPTRIGGER "Auto" ID BFUCPUSpeedTrigger AT (90 31 55 15) USABLE LEFTANCHOR - POPUPLIST ID BFUCPUSpeedTrigger BFUCPUSpeedList - LABEL "RAMdisk size:" ID 8351 AT (9 48) USABLE FONT 1 - FIELD ID BFURAMdiskSizeField AT (90 48 30 15) USABLE LEFTALIGN EDITABLE UNDERLINED SINGLELINE MAXCHARS 6 - CHECKBOX "SD/MMC read-only" ID BFUCardReadonlyBox AT (9 63 96 15) USABLE LEFTANCHOR GROUP 0 - CHECKBOX "Copy modules to RAM" ID BFUCopy2RAMBox AT (9 78 110 15) USABLE LEFTANCHOR GROUP 0 - CHECKBOX "Debug" ID BFUDebugModeBox AT (9 93 42 15) USABLE RIGHTANCHOR GROUP 0 -END - -// --------------- Resources of type 'tSTR' --------------- -STRING ID 8601 "BFUSettings - Global\n" \ - "(Bootloader for users)\n\n" \ - "This window is dedicated to set source of real root or modules.\n\n" \ - "Source:\n" \ - "Here you can select method.\n" \ - "Possible choices:\n" \ - "\x09- Modules on card - mount modules located on card\n" \ - "\x09- HTTP - get modules from HTTP server and mount them\n" \ - "\x09- NFS - mount NFS share as root\n" \ - "\x09- Card partition - mount card partition as root\n\n" \ - "Address or path:\n" \ - "Here you should enter address of NFS server, path or address of modlist.txt file or path to " \ - "directory on card containing modules.\n\n" \ - "Device:\n" \ - "Here you should specify device which are modules loaded from.\n\n" \ - "OK\n" \ - "Prepare settings to be sent and leave BFUSettings\n\n" \ - "Save\n" \ - "Save preferences for next use.\n\n" \ - "To card\n" \ - "If disabled, preferences are saved just to RAM database. If enabled it will " \ - "replace previously found preferences on card or save it on first volume\n\n" \ - "Cancel\n" \ - "Exit and no BFUSettings will be used.\n\n" \ - "Set:\n" \ - "Switches to other part of settings - network, modules, tools and advanced.\n\n" - -STRING ID 8602 "BFUSettings - Network\n" \ - "(Bootloader for users)\n\n" \ - "This window is dedicated to set network properties.\n\n" \ - "Use network:\n" \ - "Enable or disable network set up during boot. It is required for HTTP or NFS way of boot.\n\n" \ - "OK\n" \ - "Prepare settings to be sent and leave BFUSettings\n\n" \ - "Save\n" \ - "Save preferences for next use.\n\n" \ - "To card\n" \ - "If disabled, preferences are saved just to RAM database. If enabled it will " \ - "replace previously found preferences on card or save it on first volume\n\n" \ - "Cancel\n" \ - "Exit and no BFUSettings will be used.\n\n" \ - "Set:\n" \ - "Switches to other part of settings - global, modules, tools and advanced.\n\n" - -STRING ID 8603 "BFUSettings - Modules\n" \ - "(Bootloader for users)\n\n" \ - "This window is dedicated to select modules to be loaded.\n\n" \ - "For now, only possible is select your modlist*.txt.\n\n" \ - "NOTE: used only if start from Card, if start from WWW create modlist.txt and put in same dir on WWW as modules.\n\n" \ - "OK\n" \ - "Prepare settings to be sent and leave BFUSettings\n\n" \ - "Save\n" \ - "Save preferences for next use.\n\n" \ - "To card\n" \ - "If disabled, preferences are saved just to RAM database. If enabled it will " \ - "replace previously found preferences on card or save it on first volume\n\n" \ - "Cancel\n" \ - "Exit and no BFUSettings will be used.\n\n" \ - "Set:\n" \ - "Switches to other part of settings - global, network, tools and advanced.\n\n" - -STRING ID 8604 "BFUSettings - Tools\n" \ - "(Bootloader for users)\n\n" \ - "This window is dedicated to enable useful things.\n\n" \ - "Silent boot:\n" \ - "This will produce no output during boot.\n\n" \ - "Keyboard:\n" \ - "This enable running external keyboard handling program. Currently Stowaway (PPK) and compatible supported.\n\n" \ - "SmallROM reflash:\n" \ - "This will reflash your SmallROM for suspend/resume support. Read more before enabling that...\n\n" \ - "Run fsck for card:\n" \ - "This will run dosfsck on first partition of card. Usefull for checking errors after bad unmount...\n\n" \ - "OK\n" \ - "Prepare settings to be sent and leave BFUSettings\n\n" \ - "Save\n" \ - "Save preferences for next use.\n\n" \ - "To card\n" \ - "If disabled, preferences are saved just to RAM database. If enabled it will " \ - "replace previously found preferences on card or save it on first volume\n\n" \ - "Cancel\n" \ - "Exit and no BFUSettings will be used.\n\n" \ - "Set:\n" \ - "Switches to other part of settings - global, network, modules and advanced.\n\n" - - -STRING ID 8605 "BFUSettings - Advanced\n" \ - "(Bootloader for users)\n\n" \ - "This window is dedicated to set advanced settings.\n\n" \ - "CPU Frequency:\n" \ - "You can select CPU speed. Less speed means less battery needs.\n\n" \ - "NOTE: some SD card only work with CPU speed 133. Test it if you see many squashfs errors...\n\n" \ - "RAMdisk size:\n" \ - "You can specify MAXIMUM size of RAM will be used for RAMdisk.\n\n" \ - "SD/MMC read-only:\n" \ - "With this option you can mount card as read only (if it is mounted).\n\n" \ - "Copy modules to RAM:\n" \ - "This will copy modules first to RAM, and mount from memory.\n\n" \ - "NOTE: Don't forget set RAMdisk size MINIMAL as total size of all your used modules.\n\n" \ - "Debug:\n" \ - "This option will switch to shell in some important part of initscript.\n" \ - "Usefull for developers.\n" \ - "NOTE: need Stowaway compatible keyboard.\n\n" \ - "OK\n" \ - "Prepare settings to be sent and leave BFUSettings\n\n" \ - "Save\n" \ - "Save preferences for next use.\n\n" \ - "To card\n" \ - "If disabled, preferences are saved just to RAM database. If enabled it will " \ - "replace previously found preferences on card or save it on first volume\n\n" \ - "Cancel\n" \ - "Exit and no BFUSettings will be used.\n\n" \ - "Set:\n" \ - "Switches to other part of settings - global, network, modules and tools.\n\n" +#include "BFUSettings.Rsrc.h" +// --------------- Resources of type 'NFNT' --------------- +// --------------- Resources of type 'Talt' --------------- +// --------------- Resources of type 'tFRM' --------------- +FORM ID BFUGlobalForm AT (0 0 160 160) + FRAME MODAL NOSAVEBEHIND USABLE + HELPID 8601 DEFAULTBTNID BFUOKButton +BEGIN + TITLE "BFUSettings - Global" + LIST "Modules on card" "HTTP" "NFS" "Card partition" ID BFUSourceList AT (6 50 70 44) NONUSABLE DISABLED + POPUPTRIGGER "Source" ID BFUSourceTrigger AT (6 50 82 15) USABLE LEFTANCHOR + POPUPLIST ID BFUSourceTrigger BFUSourceList + LABEL "Source:" ID 8030 AT (9 35) USABLE FONT 1 + LABEL "Address or path:" ID 8031 AT (9 69) USABLE FONT 1 + FIELD ID BFUAddressField AT (9 88 140 16) USABLE LEFTALIGN EDITABLE UNDERLINED SINGLELINE MAXCHARS 64 + POPUPTRIGGER "Filesystem" ID BFUFileSystemPopup AT (90 50 60 15) USABLE LEFTANCHOR + LIST "vfat" "ext2" "ext3" ID BFUFileSystemList AT (90 50 60 33) NONUSABLE DISABLED + POPUPLIST ID BFUFileSystemPopup BFUFileSystemList + LABEL "Device:" ID 8032 AT (9 110) USABLE FONT 1 + FIELD ID BFUDeviceField AT (54 110 77 15) USABLE LEFTALIGN EDITABLE UNDERLINED SINGLELINE MAXCHARS 16 + BUTTON "OK" ID BFUOKButton AT (5 140 30 15) USABLE RIGHTANCHOR FRAME + BUTTON "Save" ID BFUSaveButton AT (41 140 30 15) USABLE RIGHTANCHOR FRAME + BUTTON "Cancel" ID BFUCancelButton AT (126 140 30 15) USABLE RIGHTANCHOR FRAME + POPUPTRIGGER "Global" ID BFUPartTrigger AT (56 15 41 15) USABLE LEFTANCHOR + LIST "Global" "Network" "Modules" "Tools" "Advanced" ID BFUPartList AT (56 15 60 55) NONUSABLE DISABLED + POPUPLIST ID BFUPartTrigger BFUPartList + LABEL "Set:" ID 8035 AT (9 16) USABLE FONT 1 + CHECKBOX "To card" ID BFUSave2CardBox AT (74 140 47 15) USABLE LEFTANCHOR GROUP 0 +END + +FORM ID BFUNetForm AT (0 0 160 160) + FRAME MODAL NOSAVEBEHIND USABLE + HELPID 8602 DEFAULTBTNID BFUOKButton +BEGIN + TITLE "BFUSettings - Network" + BUTTON "OK" ID BFUOKButton AT (5 140 30 15) USABLE RIGHTANCHOR FRAME + BUTTON "Save" ID BFUSaveButton AT (41 140 30 15) USABLE RIGHTANCHOR FRAME + BUTTON "Cancel" ID BFUCancelButton AT (126 140 30 15) USABLE RIGHTANCHOR FRAME + POPUPTRIGGER "Network" ID BFUPartTrigger AT (56 15 51 15) USABLE LEFTANCHOR + LIST "Global" "Network" "Modules" "Tools" "Advanced" ID BFUPartList AT (56 15 60 55) NONUSABLE DISABLED + POPUPLIST ID BFUPartTrigger BFUPartList + LABEL "Set:" ID 8035 AT (9 16) USABLE FONT 1 + CHECKBOX "To card" ID BFUSave2CardBox AT (74 140 47 15) USABLE LEFTANCHOR GROUP 0 + LABEL "IP address of Palm:" ID 8130 AT (9 50) USABLE FONT 1 + CHECKBOX "Use network" ID BFUUseNetBox AT (9 31 67 15) USABLE RIGHTANCHOR GROUP 0 + FIELD ID BFUPalmIPField0 AT (9 61 15 15) USABLE EDITABLE UNDERLINED MULTIPLELINES NUMERIC MAXCHARS 3 + LABEL "." ID 8131 AT (26 62) USABLE FONT 1 + FIELD ID BFUPalmIPField1 AT (30 61 15 15) USABLE EDITABLE UNDERLINED MULTIPLELINES NUMERIC MAXCHARS 3 + LABEL "." ID 8132 AT (47 62) USABLE FONT 1 + FIELD ID BFUPalmIPField2 AT (52 61 15 15) USABLE EDITABLE UNDERLINED MULTIPLELINES NUMERIC MAXCHARS 3 + LABEL "." ID 8133 AT (70 62) USABLE FONT 1 + FIELD ID BFUPalmIPField3 AT (75 61 15 15) USABLE EDITABLE UNDERLINED MULTIPLELINES NUMERIC MAXCHARS 3 + LABEL "IP of PC:" ID 8137 AT (9 76) USABLE FONT 1 + FIELD ID BFUPCIPField0 AT (9 89 15 15) USABLE EDITABLE UNDERLINED MULTIPLELINES NUMERIC MAXCHARS 3 + FIELD ID BFUPCIPField1 AT (30 89 15 15) USABLE EDITABLE UNDERLINED MULTIPLELINES NUMERIC MAXCHARS 3 + FIELD ID BFUPCIPField2 AT (52 89 15 15) USABLE EDITABLE UNDERLINED MULTIPLELINES NUMERIC MAXCHARS 3 + FIELD ID BFUPCIPField3 AT (75 89 15 15) USABLE EDITABLE UNDERLINED MULTIPLELINES NUMERIC MAXCHARS 3 + LABEL "." ID 8134 AT (26 90) USABLE FONT 1 + LABEL "." ID 8135 AT (47 90) USABLE FONT 1 + LABEL "." ID 8136 AT (70 90) USABLE FONT 1 + LABEL "Mask:" ID 8138 AT (9 103) USABLE FONT 1 + FIELD ID BFUMaskField0 AT (9 115 15 15) USABLE EDITABLE UNDERLINED MULTIPLELINES NUMERIC MAXCHARS 3 + FIELD ID BFUMaskField1 AT (30 115 15 15) USABLE EDITABLE UNDERLINED MULTIPLELINES NUMERIC MAXCHARS 3 + FIELD ID BFUMaskField2 AT (52 115 15 15) USABLE EDITABLE UNDERLINED MULTIPLELINES NUMERIC MAXCHARS 3 + FIELD ID BFUMaskField3 AT (75 115 15 15) USABLE EDITABLE UNDERLINED MULTIPLELINES NUMERIC MAXCHARS 3 + LABEL "." ID 8139 AT (26 116) USABLE FONT 1 + LABEL "." ID 8140 AT (47 116) USABLE FONT 1 + LABEL "." ID 8141 AT (70 116) USABLE FONT 1 +END + +FORM ID BFUModulesForm AT (0 0 160 160) + FRAME MODAL NOSAVEBEHIND USABLE + HELPID 8603 DEFAULTBTNID BFUOKButton +BEGIN + TITLE "BFUSettings - Modules" + BUTTON "OK" ID BFUOKButton AT (5 140 30 15) USABLE RIGHTANCHOR FRAME + BUTTON "Save" ID BFUSaveButton AT (41 140 30 15) USABLE RIGHTANCHOR FRAME + BUTTON "Cancel" ID BFUCancelButton AT (126 140 30 15) USABLE RIGHTANCHOR FRAME + POPUPTRIGGER "Modules" ID BFUPartTrigger AT (56 15 50 15) USABLE LEFTANCHOR + LIST "Global" "Network" "Modules" "Tools" "Advanced" ID BFUPartList AT (56 15 60 55) NONUSABLE DISABLED + POPUPLIST ID BFUPartTrigger BFUPartList + LABEL "Set:" ID 8035 AT (9 16) USABLE FONT 1 + CHECKBOX "To card" ID BFUSave2CardBox AT (74 140 47 15) USABLE LEFTANCHOR GROUP 0 + TABLE ID BFUModulesTable AT (4 46 145 85) ROWS 24 COLUMNS 2 COLUMNWIDTHS 120 15 + LABEL "modlist:" ID 8210 AT (9 31) USABLE FONT 1 + POPUPTRIGGER "Custom" ID BFUModListTrigger AT (52 29 67 15) USABLE LEFTANCHOR + SCROLLBAR ID BFUModScrollBar AT (151 46 7 85) USABLE VALUE 0 MIN 0 MAX 0 PAGESIZE 1 +END + +FORM ID BFUToolsForm AT (0 0 160 160) + FRAME MODAL NOSAVEBEHIND USABLE + HELPID 8604 DEFAULTBTNID BFUOKButton +BEGIN + TITLE "BFUSettings - Tools" + BUTTON "OK" ID BFUOKButton AT (5 140 30 15) USABLE RIGHTANCHOR FRAME + BUTTON "Save" ID BFUSaveButton AT (41 140 30 15) USABLE RIGHTANCHOR FRAME + BUTTON "Cancel" ID BFUCancelButton AT (126 140 30 15) USABLE RIGHTANCHOR FRAME + POPUPTRIGGER "Tools" ID BFUPartTrigger AT (56 15 50 15) USABLE LEFTANCHOR + LIST "Global" "Network" "Modules" "Tools" "Advanced" ID BFUPartList AT (56 15 60 55) NONUSABLE DISABLED + POPUPLIST ID BFUPartTrigger BFUPartList + LABEL "Set:" ID 8035 AT (9 16) USABLE FONT 1 + CHECKBOX "To card" ID BFUSave2CardBox AT (74 140 47 15) USABLE LEFTANCHOR GROUP 0 + CHECKBOX "Silent boot" ID BFUSilentBootBox AT (9 31 60 15) USABLE RIGHTANCHOR GROUP 0 + CHECKBOX "Keyboard support" ID BFUKeyboardSupportBox AT (9 46 91 15) USABLE RIGHTANCHOR GROUP 0 + CHECKBOX "SmallROM reflash (dangerous!)" ID BFUReflashBox AT (9 61 145 15) USABLE RIGHTANCHOR GROUP 0 + CHECKBOX "Run fsck for card" ID BFURunFSCKBox AT (9 76 145 15) USABLE RIGHTANCHOR GROUP 0 + +END + + +FORM ID BFUAdvancedForm AT (0 0 160 160) + FRAME MODAL NOSAVEBEHIND USABLE + HELPID 8605 DEFAULTBTNID BFUOKButton +BEGIN + TITLE "BFUSettings - Advanced" + BUTTON "OK" ID BFUOKButton AT (5 140 30 15) USABLE RIGHTANCHOR FRAME + BUTTON "Save" ID BFUSaveButton AT (41 140 30 15) USABLE RIGHTANCHOR FRAME + BUTTON "Cancel" ID BFUCancelButton AT (126 140 30 15) USABLE RIGHTANCHOR FRAME + POPUPTRIGGER "Advanced" ID BFUPartTrigger AT (56 15 55 15) USABLE LEFTANCHOR + LIST "Global" "Network" "Modules" "Tools" "Advanced" ID BFUPartList AT (56 15 60 55) NONUSABLE DISABLED + POPUPLIST ID BFUPartTrigger BFUPartList + LABEL "Set:" ID 8035 AT (9 16) USABLE FONT 1 + CHECKBOX "To card" ID BFUSave2CardBox AT (74 140 47 15) USABLE LEFTANCHOR GROUP 0 + LABEL "CPU Frequency:" ID 8350 AT (9 33) USABLE FONT 1 + LIST "Auto" "133 MHz" "266 MHz" "400 MHz" "None" ID BFUCPUSpeedList AT (90 31 39 55) NONUSABLE DISABLED + POPUPTRIGGER "Auto" ID BFUCPUSpeedTrigger AT (90 31 55 15) USABLE LEFTANCHOR + POPUPLIST ID BFUCPUSpeedTrigger BFUCPUSpeedList + LABEL "RAMdisk size:" ID 8351 AT (9 48) USABLE FONT 1 + FIELD ID BFURAMdiskSizeField AT (90 48 30 15) USABLE LEFTALIGN EDITABLE UNDERLINED SINGLELINE MAXCHARS 6 + CHECKBOX "SD/MMC read-only" ID BFUCardReadonlyBox AT (9 63 96 15) USABLE LEFTANCHOR GROUP 0 + CHECKBOX "Copy modules to RAM" ID BFUCopy2RAMBox AT (9 78 110 15) USABLE LEFTANCHOR GROUP 0 + CHECKBOX "Debug" ID BFUDebugModeBox AT (9 93 42 15) USABLE RIGHTANCHOR GROUP 0 + CHECKBOX "Merge live_changes" ID BFULiveChangesBox AT (9 108 110 15) USABLE RIGHTANCHOR GROUP 0 +END + +// --------------- Resources of type 'tSTR' --------------- +STRING ID 8601 "BFUSettings - Global\n" \ + "(Bootloader for users)\n\n" \ + "This window is dedicated to set source of real root or modules.\n\n" \ + "Source:\n" \ + "Here you can select method.\n" \ + "Possible choices:\n" \ + "\x09- Modules on card - mount modules located on card\n" \ + "\x09- HTTP - get modules from HTTP server and mount them\n" \ + "\x09- NFS - mount NFS share as root\n" \ + "\x09- Card partition - mount card partition as root\n\n" \ + "Address or path:\n" \ + "Here you should enter address of NFS server, path or address of modlist.txt file or path to " \ + "directory on card containing modules.\n\n" \ + "Device:\n" \ + "Here you should specify device which are modules loaded from.\n\n" \ + "OK\n" \ + "Prepare settings to be sent and leave BFUSettings\n\n" \ + "Save\n" \ + "Save preferences for next use.\n\n" \ + "To card\n" \ + "If disabled, preferences are saved just to RAM database. If enabled it will " \ + "replace previously found preferences on card or save it on first volume\n\n" \ + "Cancel\n" \ + "Exit and no BFUSettings will be used.\n\n" \ + "Set:\n" \ + "Switches to other part of settings - network, modules, tools and advanced.\n\n" + +STRING ID 8602 "BFUSettings - Network\n" \ + "(Bootloader for users)\n\n" \ + "This window is dedicated to set network properties.\n\n" \ + "Use network:\n" \ + "Enable or disable network set up during boot. It is required for HTTP or NFS way of boot.\n\n" \ + "OK\n" \ + "Prepare settings to be sent and leave BFUSettings\n\n" \ + "Save\n" \ + "Save preferences for next use.\n\n" \ + "To card\n" \ + "If disabled, preferences are saved just to RAM database. If enabled it will " \ + "replace previously found preferences on card or save it on first volume\n\n" \ + "Cancel\n" \ + "Exit and no BFUSettings will be used.\n\n" \ + "Set:\n" \ + "Switches to other part of settings - global, modules, tools and advanced.\n\n" + +STRING ID 8603 "BFUSettings - Modules\n" \ + "(Bootloader for users)\n\n" \ + "This window is dedicated to select modules to be loaded.\n\n" \ + "For now, only possible is select your modlist*.txt.\n\n" \ + "NOTE: used only if start from Card, if start from WWW create modlist.txt and put in same dir on WWW as modules.\n\n" \ + "OK\n" \ + "Prepare settings to be sent and leave BFUSettings\n\n" \ + "Save\n" \ + "Save preferences for next use.\n\n" \ + "To card\n" \ + "If disabled, preferences are saved just to RAM database. If enabled it will " \ + "replace previously found preferences on card or save it on first volume\n\n" \ + "Cancel\n" \ + "Exit and no BFUSettings will be used.\n\n" \ + "Set:\n" \ + "Switches to other part of settings - global, network, tools and advanced.\n\n" + +STRING ID 8604 "BFUSettings - Tools\n" \ + "(Bootloader for users)\n\n" \ + "This window is dedicated to enable useful things.\n\n" \ + "Silent boot:\n" \ + "This will produce no output during boot.\n\n" \ + "Keyboard:\n" \ + "This enable running external keyboard handling program. Currently Stowaway (PPK) and compatible supported.\n\n" \ + "SmallROM reflash:\n" \ + "This will reflash your SmallROM for suspend/resume support. Read more before enabling that...\n\n" \ + "Run fsck for card:\n" \ + "This will run dosfsck on first partition of card. Usefull for checking errors after bad unmount...\n\n" \ + "OK\n" \ + "Prepare settings to be sent and leave BFUSettings\n\n" \ + "Save\n" \ + "Save preferences for next use.\n\n" \ + "To card\n" \ + "If disabled, preferences are saved just to RAM database. If enabled it will " \ + "replace previously found preferences on card or save it on first volume\n\n" \ + "Cancel\n" \ + "Exit and no BFUSettings will be used.\n\n" \ + "Set:\n" \ + "Switches to other part of settings - global, network, modules and advanced.\n\n" + + +STRING ID 8605 "BFUSettings - Advanced\n" \ + "(Bootloader for users)\n\n" \ + "This window is dedicated to set advanced settings.\n\n" \ + "CPU Frequency:\n" \ + "You can select CPU speed. Less speed means less battery needs.\n\n" \ + "NOTE: some SD card only work with CPU speed 133. Test it if you see many squashfs errors...\n\n" \ + "RAMdisk size:\n" \ + "You can specify MAXIMUM size of RAM will be used for RAMdisk.\n\n" \ + "SD/MMC read-only:\n" \ + "With this option you can mount card as read only (if it is mounted).\n\n" \ + "Copy modules to RAM:\n" \ + "This will copy modules first to RAM, and mount from memory.\n\n" \ + "NOTE: Don't forget set RAMdisk size MINIMAL as total size of all your used modules.\n\n" \ + "Debug:\n" \ + "This option will switch to shell in some important part of initscript.\n" \ + "Usefull for developers.\n" \ + "NOTE: need Stowaway compatible keyboard.\n\n" \ + "OK\n" \ + "Prepare settings to be sent and leave BFUSettings\n\n" \ + "Save\n" \ + "Save preferences for next use.\n\n" \ + "To card\n" \ + "If disabled, preferences are saved just to RAM database. If enabled it will " \ + "replace previously found preferences on card or save it on first volume\n\n" \ + "Cancel\n" \ + "Exit and no BFUSettings will be used.\n\n" \ + "Set:\n" \ + "Switches to other part of settings - global, network, modules and tools.\n\n" Modified: linux4palm/BFUGarux/BFUSettings.Rsrc.h =================================================================== --- linux4palm/BFUGarux/BFUSettings.Rsrc.h 2007-03-25 00:14:46 UTC (rev 933) +++ linux4palm/BFUGarux/BFUSettings.Rsrc.h 2007-03-25 00:37:41 UTC (rev 934) @@ -26,6 +26,7 @@ #define BFUCopy2RAMBox 8403 #define BFUCardReadonlyBox 8404 #define BFUDebugModeBox 8405 +#define BFULiveChangesBox 8406 #define BFUNetForm 8100 //"BFUSettings - Network" #define BFUUseNetBox 8101 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <sle...@us...> - 2007-03-25 01:00:07
|
Revision: 935 http://svn.sourceforge.net/hackndev/?rev=935&view=rev Author: sleep_walker Date: 2007-03-24 18:00:02 -0700 (Sat, 24 Mar 2007) Log Message: ----------- l4p: BFUGarux - Silent boot option move and Live_changes feature fix Modified Paths: -------------- linux4palm/BFUGarux/BFUSettings-alone.c linux4palm/BFUGarux/BFUSettings.Rsrc linux4palm/BFUGarux/BFUSettings.Rsrc.h Modified: linux4palm/BFUGarux/BFUSettings-alone.c =================================================================== --- linux4palm/BFUGarux/BFUSettings-alone.c 2007-03-25 00:37:41 UTC (rev 934) +++ linux4palm/BFUGarux/BFUSettings-alone.c 2007-03-25 01:00:02 UTC (rev 935) @@ -767,8 +767,9 @@ case BFUSave2CardBox: BFUSettingsValues.save2card = CtlGetValue(getObjectPtr(pForm,BFUSave2CardBox)); break; - - + case BFUSilentBootBox: + BFUSettingsValues.silentBoot = CtlGetValue(getObjectPtr(pForm,BFUSilentBootBox)); + break; case BFUCardReadonlyBox: BFUSettingsValues.cardRO = CtlGetValue(getObjectPtr(pForm,BFUCardReadonlyBox)); break; @@ -777,7 +778,11 @@ break; case BFUCopy2RAMBox: BFUSettingsValues.copy2ram = CtlGetValue(getObjectPtr(pForm,BFUCopy2RAMBox)); + break; + case BFULiveChangesBox: + BFUSettingsValues.live_changes = CtlGetValue(getObjectPtr(pForm,BFULiveChangesBox)); break; + } break; @@ -850,11 +855,6 @@ case BFUSave2CardBox: BFUSettingsValues.save2card = CtlGetValue(getObjectPtr(pForm,BFUSave2CardBox)); break; - - - case BFUSilentBootBox: - BFUSettingsValues.silentBoot = CtlGetValue(getObjectPtr(pForm,BFUSilentBootBox)); - break; case BFUKeyboardSupportBox: BFUSettingsValues.keyboard = CtlGetValue(getObjectPtr(pForm,BFUKeyboardSupportBox)); break; @@ -1254,8 +1254,6 @@ static void BFUToolsFormInit (FormPtr pForm) { CtlSetValue(getObjectPtr(pForm,BFUSave2CardBox),BFUSettingsValues.save2card); - - CtlSetValue(getObjectPtr(pForm,BFUSilentBootBox),BFUSettingsValues.silentBoot); CtlSetValue(getObjectPtr(pForm,BFUKeyboardSupportBox),BFUSettingsValues.keyboard); CtlSetValue(getObjectPtr(pForm,BFUReflashBox),BFUSettingsValues.reflash); CtlSetValue(getObjectPtr(pForm,BFURunFSCKBox),BFUSettingsValues.fsck); @@ -1265,11 +1263,13 @@ static void BFUAdvancedFormInit (FormPtr pForm) { + CtlSetValue(getObjectPtr(pForm,BFUSilentBootBox),BFUSettingsValues.silentBoot); CtlSetValue(getObjectPtr(pForm,BFUSave2CardBox),BFUSettingsValues.save2card); BFUSetTriggerState(pForm,BFUCPUSpeedTrigger,BFUCPUSpeedList,BFUSettingsValues.CPUspeed); CtlSetValue(getObjectPtr(pForm,BFUCardReadonlyBox),BFUSettingsValues.cardRO); CtlSetValue(getObjectPtr(pForm,BFUDebugModeBox),BFUSettingsValues.debug); CtlSetValue(getObjectPtr(pForm,BFUCopy2RAMBox),BFUSettingsValues.copy2ram); + CtlSetValue(getObjectPtr(pForm,BFULiveChangesBox),BFUSettingsValues.live_changes); BFUSetFieldText(pForm,BFURAMdiskSizeField,BFUSettingsValues.RAMdiskSize,BFURAMdiskMaxLength); } Modified: linux4palm/BFUGarux/BFUSettings.Rsrc =================================================================== --- linux4palm/BFUGarux/BFUSettings.Rsrc 2007-03-25 00:37:41 UTC (rev 934) +++ linux4palm/BFUGarux/BFUSettings.Rsrc 2007-03-25 01:00:02 UTC (rev 935) @@ -100,10 +100,9 @@ POPUPLIST ID BFUPartTrigger BFUPartList LABEL "Set:" ID 8035 AT (9 16) USABLE FONT 1 CHECKBOX "To card" ID BFUSave2CardBox AT (74 140 47 15) USABLE LEFTANCHOR GROUP 0 - CHECKBOX "Silent boot" ID BFUSilentBootBox AT (9 31 60 15) USABLE RIGHTANCHOR GROUP 0 - CHECKBOX "Keyboard support" ID BFUKeyboardSupportBox AT (9 46 91 15) USABLE RIGHTANCHOR GROUP 0 - CHECKBOX "SmallROM reflash (dangerous!)" ID BFUReflashBox AT (9 61 145 15) USABLE RIGHTANCHOR GROUP 0 - CHECKBOX "Run fsck for card" ID BFURunFSCKBox AT (9 76 145 15) USABLE RIGHTANCHOR GROUP 0 + CHECKBOX "Keyboard support" ID BFUKeyboardSupportBox AT (9 31 91 15) USABLE RIGHTANCHOR GROUP 0 + CHECKBOX "SmallROM reflash (dangerous!)" ID BFUReflashBox AT (9 46 145 15) USABLE RIGHTANCHOR GROUP 0 + CHECKBOX "Run fsck for card" ID BFURunFSCKBox AT (9 61 145 15) USABLE RIGHTANCHOR GROUP 0 END @@ -127,10 +126,11 @@ POPUPLIST ID BFUCPUSpeedTrigger BFUCPUSpeedList LABEL "RAMdisk size:" ID 8351 AT (9 48) USABLE FONT 1 FIELD ID BFURAMdiskSizeField AT (90 48 30 15) USABLE LEFTALIGN EDITABLE UNDERLINED SINGLELINE MAXCHARS 6 - CHECKBOX "SD/MMC read-only" ID BFUCardReadonlyBox AT (9 63 96 15) USABLE LEFTANCHOR GROUP 0 - CHECKBOX "Copy modules to RAM" ID BFUCopy2RAMBox AT (9 78 110 15) USABLE LEFTANCHOR GROUP 0 - CHECKBOX "Debug" ID BFUDebugModeBox AT (9 93 42 15) USABLE RIGHTANCHOR GROUP 0 - CHECKBOX "Merge live_changes" ID BFULiveChangesBox AT (9 108 110 15) USABLE RIGHTANCHOR GROUP 0 + CHECKBOX "Silent boot" ID BFUSilentBootBox AT (9 63 60 15) USABLE RIGHTANCHOR GROUP 0 + CHECKBOX "SD/MMC read-only" ID BFUCardReadonlyBox AT (9 78 96 15) USABLE LEFTANCHOR GROUP 0 + CHECKBOX "Copy modules to RAM" ID BFUCopy2RAMBox AT (9 93 110 15) USABLE LEFTANCHOR GROUP 0 + CHECKBOX "Debug" ID BFUDebugModeBox AT (9 108 42 15) USABLE RIGHTANCHOR GROUP 0 + CHECKBOX "Merge live_changes" ID BFULiveChangesBox AT (9 123 110 15) USABLE RIGHTANCHOR GROUP 0 END // --------------- Resources of type 'tSTR' --------------- Modified: linux4palm/BFUGarux/BFUSettings.Rsrc.h =================================================================== --- linux4palm/BFUGarux/BFUSettings.Rsrc.h 2007-03-25 00:37:41 UTC (rev 934) +++ linux4palm/BFUGarux/BFUSettings.Rsrc.h 2007-03-25 01:00:02 UTC (rev 935) @@ -14,7 +14,7 @@ #define BFUToolsForm 8300 //"BFUSettings - Tools" -#define BFUSilentBootBox 8301 + #define BFUKeyboardSupportBox 8303 #define BFUReflashBox 8304 #define BFURunFSCKBox 8305 @@ -27,6 +27,7 @@ #define BFUCardReadonlyBox 8404 #define BFUDebugModeBox 8405 #define BFULiveChangesBox 8406 +#define BFUSilentBootBox 8407 #define BFUNetForm 8100 //"BFUSettings - Network" #define BFUUseNetBox 8101 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <sle...@us...> - 2007-04-04 22:59:11
|
Revision: 950 http://svn.sourceforge.net/hackndev/?rev=950&view=rev Author: sleep_walker Date: 2007-04-04 15:59:08 -0700 (Wed, 04 Apr 2007) Log Message: ----------- l4p: kEdAR's changes - added ext2 image source support, fixed typos, updated help Modified Paths: -------------- linux4palm/BFUGarux/BFUDefaultSettings.h linux4palm/BFUGarux/BFULinuxHelper.c linux4palm/BFUGarux/BFUSettings-alone.c linux4palm/BFUGarux/BFUSettings.Rsrc Modified: linux4palm/BFUGarux/BFUDefaultSettings.h =================================================================== --- linux4palm/BFUGarux/BFUDefaultSettings.h 2007-04-03 21:57:39 UTC (rev 949) +++ linux4palm/BFUGarux/BFUDefaultSettings.h 2007-04-04 22:59:08 UTC (rev 950) @@ -36,18 +36,17 @@ #define BFUDefaultMask2 255 #define BFUDefaultMask3 255 -#define BFUDefaultSlientBoot 0 -#define BFUDefaultDebug 1 -#define BFUDefaultCPUspeed 3 -//4 possibilities 2 bits -#define BFUCPUspeedBits 2 -#define BFUDefaultCardRO 0 #define BFUDefaultKeyboard 1 #define BFUDefaultReflash 0 -#define BFUDefaultRAMdiskSize "20%" - #define BFUDefaultFSCK 0 + +#define BFUDefaultCPUspeed 4 +#define BFUDefaultRAMdiskSize "75%" +#define BFUDefaultSilentBoot 1 +#define BFUDefaultCardRO 0 #define BFUDefaultCopy2RAM 0 +#define BFUDefaultDebug 0 +#define BFUDefaultLiveChanges 0 #define BFUDelimiter ';' Modified: linux4palm/BFUGarux/BFULinuxHelper.c =================================================================== --- linux4palm/BFUGarux/BFULinuxHelper.c 2007-04-03 21:57:39 UTC (rev 949) +++ linux4palm/BFUGarux/BFULinuxHelper.c 2007-04-04 22:59:08 UTC (rev 950) @@ -100,8 +100,8 @@ //now it is used just 16 bits number - that is 4 chars in hex optint = ReadHexa(4,ptr); //options - do all the magic here - printf("BFUSource=%d\n",source = (optint & 3)); - optint >>= 2; + printf("BFUSource=%d\n",source = (optint & 7)); + optint >>= 3; printf("BFUFS=%ld\n",optint & 3); optint >>= 2; printf("BFUUseNet=%d\n",useNet = (optint & 1)); @@ -178,6 +178,13 @@ printf("BFUDevice="); ReadString(&ptr); //partition, to be mounted break; + case 4: + //Ext2 image on card partition + printf("BFUAddress="); + ReadString(&ptr); //Ext2 image, to be mounted + printf("BFUDevice="); + ReadString(&ptr); //partition, to be mounted + break; } //RAMdisk size printf("BFURAMDiskSize="); Modified: linux4palm/BFUGarux/BFUSettings-alone.c =================================================================== --- linux4palm/BFUGarux/BFUSettings-alone.c 2007-04-03 21:57:39 UTC (rev 949) +++ linux4palm/BFUGarux/BFUSettings-alone.c 2007-04-04 22:59:08 UTC (rev 950) @@ -206,7 +206,8 @@ options |= BFUSettingsValues.net; options = options << 2; options |= BFUSettingsValues.fs; - options = options << 2; + options = options << 3; +//CPUsource has 5 possibilities options |= BFUSettingsValues.source; // BFUPrintHex(options,optstr); // StrPrintF(optstr,"%x",options); @@ -317,6 +318,13 @@ StrCat(globalSet,BFUSettingsValues.device); StrCat(globalSet,del); break; + case 4: + //Ext2 image on card partition + StrCat(globalSet,BFUSettingsValues.address); + StrCat(globalSet,del); + StrCat(globalSet,BFUSettingsValues.device); + StrCat(globalSet,del); + break; } StrCat(BFUCommandLinePart,globalSet); @@ -369,8 +377,9 @@ BFUSettingsValues.mask[2] = BFUDefaultMask2; BFUSettingsValues.mask[3] = BFUDefaultMask3; - BFUSettingsValues.silentBoot = BFUDefaultSlientBoot; + BFUSettingsValues.silentBoot = BFUDefaultSilentBoot; BFUSettingsValues.debug = BFUDefaultDebug; + BFUSettingsValues.live_changes = BFUDefaultLiveChanges; BFUSettingsValues.CPUspeed = BFUDefaultCPUspeed; BFUSettingsValues.cardRO = BFUDefaultCardRO; BFUSettingsValues.keyboard = BFUDefaultKeyboard; @@ -1182,6 +1191,10 @@ CtlShowControl(getObjectPtr(pForm,BFUFileSystemTrigger)); FldDrawField(getObjectPtr(pForm,BFUDeviceField)); break; + case 4: + CtlShowControl(getObjectPtr(pForm,BFUFileSystemTrigger)); + FldDrawField(getObjectPtr(pForm,BFUDeviceField)); + break; } BFUSettingsValues.source = pEvent->data.popSelect.selection; // handled = true; Modified: linux4palm/BFUGarux/BFUSettings.Rsrc =================================================================== --- linux4palm/BFUGarux/BFUSettings.Rsrc 2007-04-03 21:57:39 UTC (rev 949) +++ linux4palm/BFUGarux/BFUSettings.Rsrc 2007-04-04 22:59:08 UTC (rev 950) @@ -3,11 +3,11 @@ // --------------- Resources of type 'Talt' --------------- // --------------- Resources of type 'tFRM' --------------- FORM ID BFUGlobalForm AT (0 0 160 160) - FRAME MODAL NOSAVEBEHIND USABLE - HELPID 8601 DEFAULTBTNID BFUOKButton + FRAME MODAL NOSAVEBEHIND USABLE + HELPID 8601 DEFAULTBTNID BFUOKButton BEGIN TITLE "BFUSettings - Global" - LIST "Modules on card" "HTTP" "NFS" "Card partition" ID BFUSourceList AT (6 50 70 44) NONUSABLE DISABLED + LIST "Modules on card" "HTTP" "NFS" "Card partition" "Ext2 image" ID BFUSourceList AT (6 50 70 55) NONUSABLE DISABLED POPUPTRIGGER "Source" ID BFUSourceTrigger AT (6 50 82 15) USABLE LEFTANCHOR POPUPLIST ID BFUSourceTrigger BFUSourceList LABEL "Source:" ID 8030 AT (9 35) USABLE FONT 1 @@ -29,8 +29,8 @@ END FORM ID BFUNetForm AT (0 0 160 160) - FRAME MODAL NOSAVEBEHIND USABLE - HELPID 8602 DEFAULTBTNID BFUOKButton + FRAME MODAL NOSAVEBEHIND USABLE + HELPID 8602 DEFAULTBTNID BFUOKButton BEGIN TITLE "BFUSettings - Network" BUTTON "OK" ID BFUOKButton AT (5 140 30 15) USABLE RIGHTANCHOR FRAME @@ -69,7 +69,7 @@ END FORM ID BFUModulesForm AT (0 0 160 160) - FRAME MODAL NOSAVEBEHIND USABLE + FRAME MODAL NOSAVEBEHIND USABLE HELPID 8603 DEFAULTBTNID BFUOKButton BEGIN TITLE "BFUSettings - Modules" @@ -81,14 +81,14 @@ POPUPLIST ID BFUPartTrigger BFUPartList LABEL "Set:" ID 8035 AT (9 16) USABLE FONT 1 CHECKBOX "To card" ID BFUSave2CardBox AT (74 140 47 15) USABLE LEFTANCHOR GROUP 0 - TABLE ID BFUModulesTable AT (4 46 145 85) ROWS 24 COLUMNS 2 COLUMNWIDTHS 120 15 + TABLE ID BFUModulesTable AT (4 46 145 85) ROWS 24 COLUMNS 2 COLUMNWIDTHS 120 15 LABEL "modlist:" ID 8210 AT (9 31) USABLE FONT 1 POPUPTRIGGER "Custom" ID BFUModListTrigger AT (52 29 67 15) USABLE LEFTANCHOR SCROLLBAR ID BFUModScrollBar AT (151 46 7 85) USABLE VALUE 0 MIN 0 MAX 0 PAGESIZE 1 END FORM ID BFUToolsForm AT (0 0 160 160) - FRAME MODAL NOSAVEBEHIND USABLE + FRAME MODAL NOSAVEBEHIND USABLE HELPID 8604 DEFAULTBTNID BFUOKButton BEGIN TITLE "BFUSettings - Tools" @@ -108,7 +108,7 @@ FORM ID BFUAdvancedForm AT (0 0 160 160) - FRAME MODAL NOSAVEBEHIND USABLE + FRAME MODAL NOSAVEBEHIND USABLE HELPID 8605 DEFAULTBTNID BFUOKButton BEGIN TITLE "BFUSettings - Advanced" @@ -143,10 +143,11 @@ "\x09- Modules on card - mount modules located on card\n" \ "\x09- HTTP - get modules from HTTP server and mount them\n" \ "\x09- NFS - mount NFS share as root\n" \ - "\x09- Card partition - mount card partition as root\n\n" \ + "\x09- Card partition - mount card partition as root\n" \ + "\x09- Ext2 image - mount Ext2 image from partition\n\n" \ "Address or path:\n" \ - "Here you should enter address of NFS server, path or address of modlist.txt file or path to " \ - "directory on card containing modules.\n\n" \ + "Here you should enter address of NFS server, path or address of modlist.txt file, " \ + "path with name of ext2 image or path to directory on card containing modules.\n\n" \ "Device:\n" \ "Here you should specify device which are modules loaded from.\n\n" \ "OK\n" \ @@ -224,7 +225,7 @@ "This window is dedicated to set advanced settings.\n\n" \ "CPU Frequency:\n" \ "You can select CPU speed. Less speed means less battery needs.\n\n" \ - "NOTE: some SD card only work with CPU speed 133. Test it if you see many squashfs errors...\n\n" \ + "NOTE: some SD card only work with CPU speed '133Mhz' or 'none' (cpufreq disabled).\n\n" \ "RAMdisk size:\n" \ "You can specify MAXIMUM size of RAM will be used for RAMdisk.\n\n" \ "SD/MMC read-only:\n" \ @@ -236,6 +237,9 @@ "This option will switch to shell in some important part of initscript.\n" \ "Usefull for developers.\n" \ "NOTE: need Stowaway compatible keyboard.\n\n" \ + "Merge live_changes:\n" \ + "This option will merge live_changes.squashfs with your rootfs.\n" \ + "NOTE: file is saved from booted linux :)\n\n" \ "OK\n" \ "Prepare settings to be sent and leave BFUSettings\n\n" \ "Save\n" \ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2007-04-12 00:11:25
|
Revision: 955 http://svn.sourceforge.net/hackndev/?rev=955&view=rev Author: keddar Date: 2007-04-11 17:11:22 -0700 (Wed, 11 Apr 2007) Log Message: ----------- l4p: 'Custom' changed to 'All found modules' Modified Paths: -------------- linux4palm/BFUGarux/BFUSettings-alone.c linux4palm/BFUGarux/BFUSettings.Rsrc Modified: linux4palm/BFUGarux/BFUSettings-alone.c =================================================================== --- linux4palm/BFUGarux/BFUSettings-alone.c 2007-04-09 11:49:13 UTC (rev 954) +++ linux4palm/BFUGarux/BFUSettings-alone.c 2007-04-12 00:11:22 UTC (rev 955) @@ -107,8 +107,8 @@ Boolean UseSclBar,CardIn; - + static Boolean BFUCopySettingsStruct(BFUSettingsType *source,BFUSettingsType *dest) { UInt8 i; @@ -211,7 +211,7 @@ options |= BFUSettingsValues.source; // BFUPrintHex(options,optstr); // StrPrintF(optstr,"%x",options); -// BFUdoDie(optstr,options); +// BFUdoDie(optstr,options); // StrPrintF(BFUCommandLinePart,"%x",(UInt16)options); /*now it should look like this bit content @@ -340,7 +340,7 @@ StrPrintF(netSet,"%d",BFUSettingsValues.modlist); StrCat(BFUCommandLinePart,netSet); StrCat(BFUCommandLinePart,del); -// +// #ifdef BFU_VERBOSE BFUdoDie(BFUCommandLinePart,0); #endif @@ -438,7 +438,7 @@ return true; } return false; - + } /* @@ -514,7 +514,7 @@ #endif //file doesn't exists, try another card return false; - break; + break; case dmErrAlreadyExists: //- not possible - RAM is tested first BFUPrefsVolRefNum=volRefNum; @@ -636,7 +636,7 @@ { err = DmGetLastErr(); BFUdoDie("Couldn't create new record.",err); - DmCloseDatabase(db); + DmCloseDatabase(db); return false; } // BFUdoDie("going to lock new handle",0); @@ -646,7 +646,7 @@ err = DmGetLastErr(); BFUdoDie("Couldn't create new record.",err); DmReleaseRecord(db, index, false); - DmCloseDatabase(db); + DmCloseDatabase(db); return false; } // BFUdoDie("going copy settings",0); @@ -658,7 +658,7 @@ // BFUdoDie("going to close dbase",0); DmCloseDatabase(db); // if (BFUPrefsFoundOnCard) -// return +// return if (BFUSettingsValues.save2card) return BFUExportPrefs2Card(); else @@ -685,7 +685,7 @@ case vfsErrDirNotEmpty: BFUdoDie("Directory is not empty (VFSFileDelete). That means something is wrong, I'm not deleting directories...",0); return false; - break; + break; case vfsErrFileStillOpen: BFUdoDie("Old preferences are still opened - shouldn't happen",0); break; @@ -787,12 +787,12 @@ break; case BFUCopy2RAMBox: BFUSettingsValues.copy2ram = CtlGetValue(getObjectPtr(pForm,BFUCopy2RAMBox)); - break; + break; case BFULiveChangesBox: BFUSettingsValues.live_changes = CtlGetValue(getObjectPtr(pForm,BFULiveChangesBox)); break; - + } break; case popSelectEvent: @@ -1233,7 +1233,7 @@ BFUSetFieldText(pForm,BFUPalmIPField2,c,4); StrPrintF(c,"%d",BFUSettingsValues.PalmIP[3]); BFUSetFieldText(pForm,BFUPalmIPField3,c,4); - + StrPrintF(c,"%d",BFUSettingsValues.PCIP[0]); BFUSetFieldText(pForm,BFUPCIPField0,c,4); StrPrintF(c,"%d",BFUSettingsValues.PCIP[1]); @@ -1324,7 +1324,7 @@ { ControlType *pTrigger = getObjectPtr(pForm,idxT); ListType *pList = getObjectPtr(pForm,idxL); -// CtlSetValue(pTrigger, selection); +// CtlSetValue(pTrigger, selection); CtlSetLabel(pTrigger,LstGetSelectionText(pList,selection)); // CtlShowControl(pTrigger); } @@ -1340,7 +1340,7 @@ static void BFUNetFormSaveFields(FormType *pForm) { UInt8 i; - + for (i =0 ; i <4 ; ++i) { BFUSettingsValues.PalmIP[i] = StrAToI(FldGetTextPtr(getObjectPtr(pForm,BFUPalmIPField0+i))); @@ -1394,7 +1394,7 @@ } static void BFUToolsFormSaveFields(FormType *pForm) -{ +{ } static void BFUAdvancedFormSaveFields(FormType *pForm) @@ -1474,7 +1474,7 @@ msize = 1; listHandle = 0; ptrHandle = 0; - modPtrHandle = 0; + modPtrHandle = 0; modListHandle = 0; if (!fileName) @@ -1490,9 +1490,9 @@ return false; } ptr = MemHandleLock(modListHandle); - StrCopy(ptr,"Custom"); - ptr[6]='\0'; - mlength=7;//"Custom" + StrCopy(ptr," All found modules"); + ptr[18]='\0'; + mlength=19;//" All found modules" MemHandleUnlock(modListHandle); @@ -1560,7 +1560,7 @@ // MemHandleUnlock(listHandle); MemHandleUnlock(ptrHandle); } - + ptr = MemHandleLock(modListHandle); if (!ptr) { @@ -1706,7 +1706,7 @@ Char *ptr, name[BFUDefaultFileNameSize]; Err err; int i = StrLen(whole_name)-StrLen("modlist-")-StrLen(".txt"); - + #ifdef MODULES_VERBOSE_DEBUG BFUdoDie("Entering BFUPush2ModList()",0); #endif Modified: linux4palm/BFUGarux/BFUSettings.Rsrc =================================================================== --- linux4palm/BFUGarux/BFUSettings.Rsrc 2007-04-09 11:49:13 UTC (rev 954) +++ linux4palm/BFUGarux/BFUSettings.Rsrc 2007-04-12 00:11:22 UTC (rev 955) @@ -83,7 +83,7 @@ CHECKBOX "To card" ID BFUSave2CardBox AT (74 140 47 15) USABLE LEFTANCHOR GROUP 0 TABLE ID BFUModulesTable AT (4 46 145 85) ROWS 24 COLUMNS 2 COLUMNWIDTHS 120 15 LABEL "modlist:" ID 8210 AT (9 31) USABLE FONT 1 - POPUPTRIGGER "Custom" ID BFUModListTrigger AT (52 29 67 15) USABLE LEFTANCHOR + POPUPTRIGGER " All found modules" ID BFUModListTrigger AT (52 29 67 15) USABLE LEFTANCHOR SCROLLBAR ID BFUModScrollBar AT (151 46 7 85) USABLE VALUE 0 MIN 0 MAX 0 PAGESIZE 1 END This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <sle...@us...> - 2007-07-07 15:12:05
|
Revision: 1115 http://svn.sourceforge.net/hackndev/?rev=1115&view=rev Author: sleep_walker Date: 2007-07-07 08:12:01 -0700 (Sat, 07 Jul 2007) Log Message: ----------- BFUGarux: setting default button, let your stylus rest, cowboy... Modified Paths: -------------- linux4palm/BFUGarux/garux-generic.rcp linux4palm/BFUGarux/garux-genericK.rcp Modified: linux4palm/BFUGarux/garux-generic.rcp =================================================================== --- linux4palm/BFUGarux/garux-generic.rcp 2007-07-07 10:14:52 UTC (rev 1114) +++ linux4palm/BFUGarux/garux-generic.rcp 2007-07-07 15:12:01 UTC (rev 1115) @@ -42,6 +42,7 @@ USABLE MENUID MainMenu HELPID GnuGpl +DEFAULTBTNID LinuxButton BEGIN TITLE "BFUGarux Linux Loader" Modified: linux4palm/BFUGarux/garux-genericK.rcp =================================================================== --- linux4palm/BFUGarux/garux-genericK.rcp 2007-07-07 10:14:52 UTC (rev 1114) +++ linux4palm/BFUGarux/garux-genericK.rcp 2007-07-07 15:12:01 UTC (rev 1115) @@ -42,6 +42,7 @@ USABLE MENUID MainMenu HELPID GnuGpl +DEFAULTBTNID LinuxButton BEGIN TITLE "BFUGarux Linux Loader" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |