This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: is cyg_start required for redboot.img..?


Hi Satish,


board..i m just concern about the instruction "bl   cyg_start"
called in the vector.S file..
        my program is in a infinte loop when it enters the cyg_start
function. i believe this function calles the application program if
present, but currently i don`t have any application program running.

   i m just interested in building redboot.img..can i comment this line..
will my redboot image be fine with out calling cyg_start routine.


vector.S initializes the platform by calling the HAL functions & after that it sets up the vector table, stack & ultimately it would call cyg_start() of ?/packages/redboot/current/src/main.c?. This function is the main event loop for Redboot. Which would display the Redboot sign on screen on the console, Redboot?s prompt & wait for Redboot or GDB commands. If you take out this, then all you have is the startup code that will sit there without doing anything useful.


Make sure your vector.S calls the cyg_start of main.c in Redboot folder.

Hope this help!
-Mike.

_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail



-- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]