Larry
Larry

Reputation: 1765

overwrite U-boot code?

On AMVv7, I use U-boot as my bootloader.

Question

Once it has initialized my board, and put itself in the ram, can my code overwrite it? (I will provide my vector table, my TLB logic and so on).

I read that a cpu reset won't need the full initialization u-Boot does.

The plan is to use U-boot and to ditch it completely once it has done its work (saving me to do it in the first place) and take full control of the board, without sacrificing any bit of ram.

What is the problem with that approach (if there is one)?

Upvotes: 0

Views: 619

Answers (2)

ntshetty
ntshetty

Reputation: 1305

If your application capable of handling your board functionality,then no need of worrying about u-boot, because once it execute load and execute, this RAM location is usable memory.

If you run your standalone program under u-boot program space, it cannot be overwrite by your program. if you try to overwrite, the board will reboot.

Upvotes: 1

Tom Rini
Tom Rini

Reputation: 2173

What you want to do is fine. This is for example how the Linux kernel operates as (generally speaking) nothing of U-Boot is around after U-Boot starts execution of whatever it has been told to load and execute.

Upvotes: 1

Related Questions