U-boot for my specific hardware

Discussion about U-Boot and the kernel.

U-boot for my specific hardware

Postby morcillo » Fri Sep 14, 2012 9:05 pm

Hello.

I have a project in mind. I am finishing an schematic, with and ARM processor, and I want to use U-boot in my board.

I think it's possible, but I know I'll have to change many things regarding peripherals used, etc.

I have just downloaded the U-boot source code, and it's huge. I have already started analysing the code, but I know it will take me some time, since I'm going in blind, reading code as it comes along. I would like to know if there's any place I can find this information I'm searching for (porting U-boot to my own hardware), or if anyone can point me to the correct files so that I can learn the correct way (having a place to start, a place to go next, instead of reading things as they come along).

Maybe there are som hardware restrictions that I'm not aware of. Anyway, if there's anyone out there who can help me I'd be very grateful.
morcillo
 
Posts: 3
Joined: Fri Sep 14, 2012 8:58 pm

Re: U-boot for my specific hardware

Postby WarheadsSE » Fri Sep 14, 2012 9:14 pm

Best places to start: similar hardware.

Same CPU/SoC but different layout? Change a couple things around in the board configs, and you're probably done.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: U-boot for my specific hardware

Postby morcillo » Sat Sep 15, 2012 12:14 am

That is something I thought I should do, but the amount of files and code is huge and it will take a long time to find it all and remap everything. If by any chance some of the onfigs are in one or two files please let me know, because all I'm doing right now is picking the first file I see and start studying it.

The method I'm using is extremely slow and inefficiente, but as I don't know anything about how the source code is distributed, it is the only thing I can do.


PS: English isn't my first language, so I apologize for any grammar or syntax mistakes
morcillo
 
Posts: 3
Joined: Fri Sep 14, 2012 8:58 pm

Re: U-boot for my specific hardware

Postby xenoxaos » Sat Sep 15, 2012 2:27 am

Typically the manufacturer of your SoC will have a BSP for your chip. This should have your bootloader in it, albeit it may be old. I would check on the code that our SoC maker provides first before going through all the code in u-boot proper.
Arch Linux ARM exists and continues to grow through community support, please donate today!
xenoxaos
Developer
 
Posts: 323
Joined: Thu Jan 06, 2011 1:45 am

Re: U-boot for my specific hardware

Postby morcillo » Sat Sep 15, 2012 11:55 am

Thank you, that's a very good place to start.

But BSP (board support package) is for already functioning boards, and I want to port it to a board that I've made (it isn't actuly fnished yet, but it should be soon).

Are you suggesting that I read BSP of a board that can lready run U-boot, so I can understand it first? I'll start doing that. Maybe I'll learn something that will enli8gten y path.
morcillo
 
Posts: 3
Joined: Fri Sep 14, 2012 8:58 pm

Re: U-boot for my specific hardware

Postby WarheadsSE » Sun Sep 16, 2012 7:11 pm

We're saying examine how uboot works on that board. It's going to be very very similar for yours
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm


Return to U-Boot/Kernel

Who is online

Users browsing this forum: No registered users and 6 guests