On Wed, 19 Jan 2011, Elad Yosef writes: > Hi, > One more thing, How can get the file name the Bootp received from the > server ? I want to load that file from the server into RAM.
Hi I assume that you share the file either with TFTP or HTTP server load -m tftp path_to_filename [more load opts] load -m http path_to_filename [more load opts] For reference: http://ecos.sourceware.org/docs-latest/redboot/download-command.html > On Wed, Jan 19, 2011 at 9:22 AM, Elad Yosef wrote: > > I'm trying to setup default script for my RedBoot. > > Simple script: load() and go() > > > > Where do I specify my script file? * FIS (optional) * CDL (see CDL option CYGDAT_REDBOOT_DEFAULT_BOOT_SCRIPT) NOTE: The second requires rebuild of RedBoot. > > Which language is it? RedBoot commands: http://ecos.sourceware.org/docs-latest/redboot/redboot-commands-and-examples.html > > Does it requires CYGSEN_REDBOOT_FLASH_CONFIG ? Optional (see above). > > If I'm not using CYGSEN_REDBOOT_FLASH_CONFIG where does the script > > is saved ? (in which section text/bss/rodata) redboot/<version>/include/redboot.h #ifdef CYGFUN_REDBOOT_BOOT_SCRIPT EXTERN char *script; ... redboot/<version>/src/main.c: #ifdef CYGFUN_REDBOOT_BOOT_SCRIPT # ifdef CYGDAT_REDBOOT_DEFAULT_BOOT_SCRIPT if (!script) { script = CYGDAT_REDBOOT_DEFAULT_BOOT_SCRIPT; } # endif ... Elad, start with any simple script or even with unknown for RedBoot command: cdl_option CYGDAT_REDBOOT_DEFAULT_BOOT_SCRIPT { user_value 1 { "blah\n" } }; Then you will have install/include/pkgconf/redboot.h: ... #define CYGFUN_REDBOOT_BOOT_SCRIPT 1 #define CYGDAT_REDBOOT_DEFAULT_BOOT_SCRIPT "blah\n" Yet another useful CDL option CYGNUM_REDBOOT_BOOT_SCRIPT_DEFAULT_TIMEOUT HTH Sergei -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss