This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

start_armboot call for armv7 in u-boot

I am going through the arch/arm/cpu/armv7/start.S in u-boot code base and was expecting a call to start_armboot in start.s after these below calls

bl cpu_init_cp15
bl cpu_init_crit

But I couldn't find any such call(start_armboot) there.I am interested in knowing part of code in start.s where C environment has been set and call to .c file is made(in case of omap board,call to /arch/arm/cpu/armv7omap4 /board.c has been made from start.s but which instruction do this in start.s).

My platform is keystone 2 based.

Can any one help in going through the start.S.

Thanks

Amit


  • Hi, Amit,

    Is the _main in arch/arm/lib/crt0.S what you are looking for?

    Rex

  • Thanks Rex.

    I guess l was looking for the same file you pointed out

    I was expecting this file in arch/arm/cpu/armv7/keystone folder same as it was for arch/arm/cpu/armv7/omap3 folder for omap3

    I just wanted to know how did you trace it out to arc/arm/lib folder

    bL  _main call has been made from arch/arm/cpu/armv7/start.s.

    Also I wanted to see the file while memsetup is done for KEYSTONE2 devices.

    For OMAP3 memsetup is done in board.c file.