On Thu, 13 Oct 2016 22:08:15 +0200
Paolo De Luca Bosso <paolo.delucabo...@gmail.com> wrote:

> However I have used makefile in the linux-tools.
> 
> It has produced ELF file. How can i boot Cubietruck with it?
> Thanks
> 
> 2016-10-13 21:21 GMT+02:00 Paolo De Luca Bosso <paolo.delucabo...@gmail.com>
> :
> 
> > Following previous mail:
> > how can i try that example on my cubietruck if it is compatible with A20??
> >
> > Thanks
> >
> > 2016-10-13 21:18 GMT+02:00 Paolo De Luca Bosso <  
> > paolo.delucabo...@gmail.com>:  
> >  
> >> Hello!!
> >> First of all, thanks for the answer!!!!
> >>
> >> About the example you said, is it usable for Cubietruck?? I should try a
> >> simple example bare-metal on it.
> >>
> >> Can you help me?
> >>
> >> Thanks
> >>
> >> 2016-10-13 20:52 GMT+02:00 Siarhei Siamashka <siarhei.siamas...@gmail.com  
> >> >:  
> >>  
> >>> On Wed, 12 Oct 2016 14:45:01 -0700 (PDT)
> >>> dlbp <paolo.delucabo...@gmail.com> wrote:
> >>>  
> >>> > Hello!
> >>> > I'm using a cubietruck and because i Need to port an operating system
> >>> > from x86 to ARM architecture, i need an example of bare metal
> >>> > software for a Cubietruck (with Cortex A-7). It's good also a simple
> >>> > hello world bare metal.
> >>> >
> >>> > It is very important!
> >>> >
> >>> > Thanks in advance  
> >>>
> >>> Hello,
> >>>
> >>> You can check the uart0-helloworld-sdboot.c code from sunxi-tools:
> >>>     https://github.com/linux-sunxi/sunxi-tools
> >>>
> >>> I believe that it does exactly what you need. It uses the GPL
> >>> license though. So if your operating system is proprietary, then
> >>> you can't copy/paste this code directly.
> >>>
> >>> If your operating system is open source, then I'm quite curious
> >>> to have a look at it.
> >>>
> >>> --
> >>> Best regards,
> >>> Siarhei Siamashka
> >>>  

Please be sure to keep the linux-sunxi mailing list in CC (I have
added it back). I generally don't provide private personalized
support, unless it's a paid job.

If you have the mksunxiboot tool (which is one of the command
line tools from U-Boot), then the makefile should produce the
uart0-helloworld-sdboot.sunxi file. See more details at
    https://linux-sunxi.org/BROM

Then you can write this uart0-helloworld-sdboot.sunxi file to the SD
card in the same way as you write the U-Boot bootloader. For example
the following commands will download and write a precompiled binary:

    wget 
https://github.com/linux-sunxi/sunxi-tools/raw/master/bin/uart0-helloworld-sdboot.sunxi
    dd if=uart0-helloworld-sdboot.sunxi of=/dev/sdX bs=1024 seek=8

Alternatively, you can load and execute this file to the device over
Mini- or Micro- USB cable (after switching the device into FEL mode):

    sunxi-fel spl uart0-helloworld-sdboot.sunxi

Using FEL boot method is typically much more convenient for development
and debugging. Because you don't need to repeatedly insert/remove the
SD card between your device and your card reader.

I hope that this information can help you to get your secret operating
system up and running on your Cubietruck :-)

-- 
Best regards,
Siarhei Siamashka

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to