RE: test app

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thank you Baruch ! Good starting point for my test app.

> -----Original Message-----
> From: Baruch Siach [mailto:baruch@xxxxxxxxxx]
> Sent: dinsdag 8 maart 2011 6:40
> To: Vanalme Filip
> Cc: barebox@xxxxxxxxxxxxxxxxxxx
> Subject: Re: test app
> 
> Hi Vanalme,
> 
> On Mon, Mar 07, 2011 at 02:05:32PM +0100, Vanalme Filip wrote:
> > We would like to have a kind of small test application, that can be
> > started from the barebox prompt, to do some basic tests on some hardware
> components.
> > What's the best way to do that ? E.g. can I add that test application
> > to the environment and would this be good practice ? Or do I better
> > extend the barebox commands with my own command to start the tests ?
> > Maybe there's an example on how to do it ?
> 
> I'm using the attached program to do a simple RAM read/write test on i.MX25.
> This program runs on bare hardware from the internal chip SRAM, and doesn't rely
> on the Barebox run-time code.  I only use Barebox to start this program.
> 
> The program is built with the following Makefile rules:
> 
> all: ramtest.bin
> 
> %.bin: %.elf
>     ${OBJCOPY} -O binary $^ $@
> 
> ramtest.elf: ramtest.c
>     ${CC} -Wall -Os -nostdlib $^ -o $@ -Wl,-Ttext=0x78000000
> 
> Running this program from the Barebox prompt:
> 
> cp ramtest.bin /dev/sram0
> go /dev/sram0
> 
> I hope this helps.
> 
> baruch
> 
> --
>                                                      ~. .~   Tk Open Systems
> =}------------------------------------------------ooO--U--Ooo------------{=
>    - baruch@xxxxxxxxxx - tel: +972.2.679.5364, http://www.tkos.co.il -

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox


[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux