[beagleboard] Writing a Bootloader???

vamsi53 wrote:

Hello Guys,
I would like to learn about writing boot loaders.Like how to go about
writing a boot loader for the Beagle board. I tried web but couldn't
find info about the same. I would greatly appreciate your suggestions
and recommended readings.

read the uboot source code, then try to forget it :slight_smile:

Thanks for your reply.

But I was expecting a better answer than that as I am seriously interested in learning the Bootloader code.

Vamsi:

Google is your friend. Try searching for "Booting ARM Linux" or
"bootloader ARM Linux".

Here is a good starting place:
http://www.arm.linux.org.uk/developer/booting.php

As Vladimir says, u-Boot source code is also a good place to start,
but you need some background information to interpret what is going on
in u-Boot and other loaders. The "tip of the spear", so to speak is
in u-Boot code at "../arch/arm/lib/bootm.c". This is where the
"ATAGs" are set up to pass parameters to the kernel and the kernel is
called.

Regards:

Mike Nelson, http://michaeltnelson.com
mobile: 1-650-291-7343
office: 1-650-257-7565

I have written an article after a long struggle with bootloader internals.

Here are the links.

It is written using GNU Assembler and C
http://www.codeproject.com/Articles/664165/Writing-a-boot-loader-in-Assembly-and-C-Part-1
http://www.codeproject.com/Articles/668422/Writing-a-boot-loader-in-Assembly-and-C-Part-2

Cheers :slight_smile:

You must understand how the chip boots have you read the boot rom section of the TRM?

I have written an article after a long struggle with bootloader internals.

Here are the links.

It is written using GNU Assembler and C
http://www.codeproject.com/Articles/664165/Writing-a-boot-loader-in-Assembly-and-C-Part-1
http://www.codeproject.com/Articles/668422/Writing-a-boot-loader-in-Assembly-and-C-Part-2

Cheers :slight_smile: