Skip to contentSkip to conversation

guruplug/dreamplug porting

DISCUSSION Carlo Caione 2 participants 4 messages May 30, 2011 – Jun 6, 2011

lore
Share & tools
lore
#0 lore raw

Hi,
I was wondering how feasible it is to port barebox on guruplug/dreamplug marvell-based boards.
The most noticeable problem for me is the initialization part in asm (I'm not an asm junkie). Is it possible to reuse the arm code (asm) in the current version of barebox or at least to take it from u-boot sources (according to uboot conf files, uboot uses the arm926ejs as CPU for the guruplug)?

Regards,

--
Carlo Caione

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

#1 lore raw
Quoted 5 lines · Carlo Caione

Hi,
I was wondering how feasible it is to port barebox on guruplug/dreamplug marvell-based boards.
The most noticeable problem for me is the initialization part in asm (I'm not an asm junkie).

so write it in c

a lots of us do so, Sascha or I mostly write the lowlevel init in C now as example the generic lowlevel arm init is done in C now

I did it recently on at91rm9200
and will update the at91sam9 to c also

Quoted 1 line

Is it possible to reuse the arm code (asm)

mostly you can copy it but you will have to put it in the right section

Quoted 3 lines

in the current version of barebox or at least to take it from u-boot sources (according to uboot conf files, uboot uses the arm926ejs as CPU for the guruplug)?

First do more simple, use barebox as a second stage start by u-boot and then write the lowloevel init

in barebox we do not have one lowlevel init per armvx but one generic one so normally the only assembly you could have to write is the board_lowlevel_init which can be written in C anynway

Best Regards,
J.

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

#2 lore raw
Quoted 6 lines · Jean-Christophe PLAGNIOL-VILLARD

so write it in c

a lots of us do so, Sascha or I mostly write the lowlevel init in C now as example the generic lowlevel arm init is done in C now

I did it recently on at91rm9200

Is it available in git repository?

Quoted 1 line

and will update the at91sam9 to c also

[cut]

Quoted 6 lines

First do more simple, use barebox as a second stage start by u-boot and then write the lowloevel init

in barebox we do not have one lowlevel init per armvx but one generic one so normally the only assembly you could have to write is the board_lowlevel_init which can be written in C anynway

Great. Thank you.

Regards,

--
Carlo Caione

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

#3 lore raw
Quoted 9 lines · Carlo Caione
Quoted 6 lines · Jean-Christophe PLAGNIOL-VILLARD

so write it in c

a lots of us do so, Sascha or I mostly write the lowlevel init in C now as example the generic lowlevel arm init is done in C now

I did it recently on at91rm9200

Is it available in git repository?

in the next branch

Best Regards,
J.

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox