Re: Qemu U-boot Standalone Application Crash

2021-04-29 Thread Bin Meng
Hi,

On Fri, Apr 30, 2021 at 1:20 AM prashant basva  wrote:
>
> Hi,
> i am trying to execute standalone application from qemu u-boot, but when i
> trued to execute using go or bootm , its getting crashed saying trap
> Below is command used to launch qemu ppc u-boot
> $ sudo qemu-system-ppc -m 1024 -M mpc8544ds -cpu MPC8548 -no-reboot
> -nographic  -net nic,model=e1000 -net

If there is no special reason of using machine "mpc8544ds", you can
try machine "ppce500" instead.

See https://u-boot.readthedocs.io/en/latest/board/emulation/qemu-ppce500.html
for instructions.

> tap,ifname=vnet0,script=no,downscript=no u-boot.bin
>
> --
>
> WARNING: Image format was not specified for 'u-boot.bin' and probing
> guessed raw.
>  Automatically detecting the format is dangerous for raw images,
> write operations on block 0 will be restricted.
>  Specify the 'raw' format explicitly to remove the restrictions.
>
>

[snip]

Regards,
Bin


[U-Boot] standalone application on odroid xu4

2019-11-07 Thread Michael Neises
Hi,

I'm working with the Odroid XU4 board. I want to execute a standalone
application, like the hello_world function that is included with u-boot
source. My steps to compile are:
1. clone the u-boot repo
2. `export ARCH=armv7a`
3. `export CROSS_COMPILE=arm-linux-gnueabi-`
4. `make`
5. Use sd_fusing.sh to write the sd card

After boot, I use `setenv loads_echo 1,` and then I am able to use the
"loads" command to transfer the file "hello_world.srec," but I am notified:

CACHE: Misaligned operation at range [0c10, 0c10027a]

and when I try to execute the application via `go 0c10 hello world,` it
hangs and becomes unresponsive. I've tried the other included srec file,
but it also fails in the same way. I've tried defining
CONFIG_SYS_DCACHE_OFF and the same with ICACHE, as per a blog post, but
that was not effective. I've tried abbreviating the file to include only
the app_startup() function and a return, but that also doesn't work.

Do you have any advice to help me with this?

Ultimately, I would like to write an application that runs automatically
before a kernel image is loaded, in order to take advantage of some system
hardware that gets locked when the OS boots. Is this possible?

Best,
Michael Neises
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] Standalone application support in SPL

2019-08-06 Thread William Zhang
Hi All,



Has anyone come across to the need to run the standalone application in
SPL?   Due to the onchip SRAM size limitation in our chip, we will need run
the small foot print SPL to initialization DDR before we load the u-boot
proper to the main DDR memory.  We will have to run our DDR initialization
in standalone application binary mode due to some restriction of library. I
posted a separate thread here
https://lists.denx.de/pipermail/u-boot/2019-August/379585.html.  Understand
SPL does not have a shell to load the application interactively but one can
load the binary from flash and jump to its entry point when it is needed
during the boot of SPL.



I looked through u-boot code and it is fairly straightforward to enable
standalone application in SPL.  All it takes are adding configure option in
spl/Kconfig, makefile changes to include export.c and examples folder and
jumptable init in the spl init time.



I do need to ifdef the do_reset as dummy for SPL in the _export.h due to
the fact that do_reset function is not available in SPL without enabling a
lot of supporting code.   It looks to me add ifdef is the simplest way to
go and does not break any other build.

#if !defined(CONFIG_SPL_STANDALONE)

   EXPORT_FUNC(do_reset, int, do_reset, cmd_tbl_t *,

  int , int , char * const [])

#else

   EXPORT_FUNC(dummy, void, do_reset, void)

#endif



Any feedback and comments are appreciated! I can post a patch for review
and contribute to u-boot if this sounds a good add-on for SPL.



Thanks,

William
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] u-boot standalone application license question

2019-08-02 Thread William Zhang
Hi,

We are looking at the standalone application support in u-boot and we feel
it will be a good fit for our DDR initialization code that includes a
library that we have no right to distribute in source.   But we have some
questions in regards to the GPL license exception here:

https://gitlab.denx.de/u-boot/u-boot/blob/master/Licenses/Exceptions

GPL License Exception:

Even though U-Boot in general is covered by the GPL-2.0/GPL-2.0+,
this does *not* cover the so-called "standalone" applications that
use U-Boot services by means of the jump table provided by U-Boot
exactly for this purpose - this is merely considered normal use of
U-Boot, and does *not* fall under the heading of "derived work".

  The header files "include/image.h" and "arch/*/include/asm/u-boot.h"
define interfaces to U-Boot.  Including these (unmodified) header
files in another file is considered normal use of U-Boot, and does
*not* fall under the heading of "derived work".
-- Wolfgang Denk

Looking at the standalone examples/hello_world.c,  it now includes
common.h(gpl license header) and exports.h(no license header).  Same to
the stub.c(with compiler.h in addition) which is required to build
standalone app.   Would that still consider OK and be exempted from GPL
license if we follow this example and include both common.h, exports.h and
stub.c in our standalone code?

Thanks in advance for any feedbacks and comments!

Regards,
William
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] standalone application

2017-06-08 Thread Tom Rini
On Wed, Jun 07, 2017 at 08:07:11AM +0300, Ran Shalit wrote:

> Hello,
> 
> I am trying to load standalone application.
> It works fine with the hello_world example ( bin format).
> Then I move to build and run another application (uc/os) in eclipse.
> The problem is that the bin format is very large.
> Is there a way to load other a standalone application in another format ?

Generally speaking ELF binaries will be able to be run.

-- 
Tom


signature.asc
Description: Digital signature
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] standalone application

2017-06-06 Thread Ran Shalit
Hello,

I am trying to load standalone application.
It works fine with the hello_world example ( bin format).
Then I move to build and run another application (uc/os) in eclipse.
The problem is that the bin format is very large.
Is there a way to load other a standalone application in another format ?

Regards,
Ran
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] Standalone Application

2016-09-13 Thread Matthew Larkin
I have found very little online about getting a standalone application up and 
running.
I don't have much experience in general let alone firmware level code.
What are the steps to creating my own standalone application?
I got the hello_world.bin running, but the makefiles are so complex that I 
don't understand why that is the only standalone app compiled when compiling 
U-boot as a whole.
Do I need to modify one of the makefiles?
I have read the readme.standalone, but it doesn't help much for a beginner.
Essentially I want to make my own standalone, example.bin, and have it compiled 
and ran.
Thanks for any insight!
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] Standalone application - expanding export functions

2014-06-13 Thread swami91
Hi,


  I was going through the document in doc/README.standalone. It says I can
add addition functions to export/_export.h:

   To export some additional function foobar(), the following steps
 
   should be undertaken:
 
   - Append the following line at the end of the include/_exports.h 
 file:  
   
EXPORT_FUNC(foobar) 

But the discussion in the following thread by Wolfgang says the standalone
function will have to be GPLed if expanded. 

 
http://u-boot.10912.n7.nabble.com/Using-U-Boot-in-a-mixed-licensed-environment-td142874.html

I am confused. Can you please clarify if we can expand the export functions
with both with u-boot code functions and the functions I add to u-boot and
still not to GPL the standalone application if it uses those functions?

Thanks,
-Sudhakar




--
View this message in context: 
http://u-boot.10912.n7.nabble.com/Standalone-application-expanding-export-functions-tp182313.html
Sent from the U-Boot mailing list archive at Nabble.com.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Standalone application - expanding export functions

2014-06-13 Thread Wolfgang Denk
Dear swami91,

In message 1402687688522-182313.p...@n7.nabble.com you wrote:
 
 I am confused. Can you please clarify if we can expand the export functions
 with both with u-boot code functions and the functions I add to u-boot and
 still not to GPL the standalone application if it uses those functions?

The license exception for standalone applications applies to the
existing export list.  You can extend the interface, but then the
resulting code (including the SA application) would be covered by the
GPL.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de
God is real, unless declared integer.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Standalone application - expanding export functions

2014-06-13 Thread swami91
Wolfgang, Thanks for the quick response.

Suppose, say I add more functions to export/_export.h files and call it from
standalone application. But if I release only the u-boot binary and don't
release the binary of the standalone application should the standalone
application source need to be released under GPL?

Thanks,
-Sudhakar



--
View this message in context: 
http://u-boot.10912.n7.nabble.com/Standalone-application-expanding-export-functions-tp182313p182331.html
Sent from the U-Boot mailing list archive at Nabble.com.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Standalone application - expanding export functions

2014-06-13 Thread Wolfgang Denk
Dear Sudhakar,

In message 1402711264164-182331.p...@n7.nabble.com you wrote:
 
 Suppose, say I add more functions to export/_export.h files and call it from
 standalone application. But if I release only the u-boot binary and don't
 release the binary of the standalone application should the standalone
 application source need to be released under GPL?

If you do not distribute copies of the code, you do not have to
release the source code for it.  The requirements of the GPL for
providing the source code are only for the situation when distri- bute
the code.

Note however that you would have to be extremely careful - you would
have to make very prominet notice in the documentation and the source
code that the license exception for Standalone appliations does NOT
apply for your modified version of the U-Boot source code.  The big
problem is that someone could use your extended jump table as base
for his own legacy SA applications, while this would be incorrect.


May I ask what exactly you are trying to do that triggers these
questions?  What is the intellectual property in your AS app that
appears to be so critical that you cannot release the code under GPL?

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de
To get something done, a committee should consist  of  no  more  than
three men, two of them absent.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Standalone application on secondary cores

2014-06-02 Thread James Chargin

Dear Francesco Teodoro.

On 05/30/2014 01:35 PM, Francesco Teodoro wrote:

I'm using a SABRE SD board (from Freescale) based on i.MX6 and the u-boot 
version is the 2014.04 one. What I've been trying to do is to activate the 
secondary cores so that I would be able to use them. First of all I've imported 
the commands cpu status/release/reset, then I checked if they were working in 
this way:
U-boot  cpu 1 status (which gives as result: core1 disabled ...)
U-boot  cpu 1 release 0x1200 0
U-boot  cpu 1 status (which gives as result: core1 enabled ...)

Next step was to run a standalone application on secondary cores. First I 
checked the hello_world application, but it seems that the serial debug for 
secondary cores is not set (but I'm not sure). So I wrote an application to 
check if I could get changes in memory. This is the simple application (I just 
modified the hello_world one):



Please refer to 
http://www.denx.de/wiki/view/DULG/UBootStandalone#Section_5.12.4.


One of the first things done by the example stand alone application is 
to attempt to call back into U-Boot. This will not work correctly for 
cores other than 0.


Regards,
Jim Chargin
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] Standalone application on secondary cores

2014-05-31 Thread Francesco Teodoro
I'm using a SABRE SD board (from Freescale) based on i.MX6 and the u-boot 
version is the 2014.04 one. What I've been trying to do is to activate the 
secondary cores so that I would be able to use them. First of all I've imported 
the commands cpu status/release/reset, then I checked if they were working in 
this way:
U-boot  cpu 1 status (which gives as result: core1 disabled ...)
U-boot  cpu 1 release 0x1200 0
U-boot  cpu 1 status (which gives as result: core1 enabled ...)

Next step was to run a standalone application on secondary cores. First I 
checked the hello_world application, but it seems that the serial debug for 
secondary cores is not set (but I'm not sure). So I wrote an application to 
check if I could get changes in memory. This is the simple application (I just 
modified the hello_world one):

//standalone app
#include common.h
#include exports.h
volatile int test[5]={1,2,3,4,5};
int hello_world ()
{
   int i;
   for (i=0; i5; i++) {
  test[i] = -test[i];
   }
   return (0);
}

First I used it on the boot core (core0) with the go command and with the 
md command I checked that the results were correct. Then I used the following 
command to run it on other cores (the application is at address 0x1200):
U-boot  cpu X release 0x1200 0
But when I check with the md command, I can see that there are no changes in 
memory. 
What should I do to make it work? Am I missing something to set before running 
the application on other cores? I'm new to this subject so every suggestion 
would be appreciated.
Thank you in advance. ___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Standalone application issue.

2014-05-27 Thread Rommel G Custodio
Dear Mazen

mazen.e mazen.ezzeddine at gmail.com writes:

 
 Thanks Wolfgang,
 
 I will do and post the result.
 
 Many thanks.

I've never got bootm to run any of the standalone applications in the 
example directory but through trial and error (maybe luck) bootelf works 
for me. I've tested that this works with old 2010.XX and latest 2014.XX 
releases. Note I use PowerPC, but worth I try in your case I guess.


This is how I build the hello_world binary:

tools/mkimage -A powerpc -T standalone -C none -a 0x20 -e 0x20 -n 
hello_world -d examples/standalone/hello_world hello_world.img

And these are these serries of commands that loads and executes the binary:

usb start
fatload usb 0 8 hello_world.img
bootelf 80040


-
test # usb start
(Re)start USB...
USB:   Register  NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 3 USB Device(s) found
   scanning bus for storage devices... 1 Storage Device(s) found
test # fatload usb 0 8 hello_world.img
reading hello_world.img

69441 bytes read
test # bootelf 80040
## Starting application at 0x0004 ...
Example expects ABI version 6
Actual U-Boot ABI version 6
Hello World
argc = 1
argv[0] = 80040
argv[1] = NULL
Hit any key to exit ...

## Application terminated, rc = 0x0
test #
-

Good luck!

All the best,
Rommel


___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Standalone application issue.

2014-05-27 Thread Wolfgang Denk
Dear Rommel,

In message loom.20140528t012622...@post.gmane.org you wrote:
 
 I've never got bootm to run any of the standalone applications in the 

Actually go is the native command that is supposed tobe used to
start SA apps.

 example directory but through trial and error (maybe luck) bootelf works 
 for me. I've tested that this works with old 2010.XX and latest 2014.XX 
 releases. Note I use PowerPC, but worth I try in your case I guess.
 
 
 This is how I build the hello_world binary:
 
 tools/mkimage -A powerpc -T standalone -C none -a 0x20 -e 0x20 -n 
 hello_world -d examples/standalone/hello_world hello_world.img
 
 And these are these serries of commands that loads and executes the binary:
 
 usb start
 fatload usb 0 8 hello_world.img
 bootelf 80040

Frankly, this is crap.  You don;t make use of the image header here,
so you could as well save all the efforts.  Just store hello_world
(the ELF file) in your file system, then load that dierectly, and
start it.  There is no sense in using mkimage as done above.

 test # bootelf 80040
 ## Starting application at 0x0004 ...
 Example expects ABI version 6
 Actual U-Boot ABI version 6
 Hello World
 argc = 1
 argv[0] = 80040
 argv[1] = NULL
 Hit any key to exit ...

And how would you pass additional arguments to the SA app?

Use go, this was made for the purpose at hand!

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de
Everybody is talking about the  weather  but  nobody  does  anything
about it.   - Mark Twain
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Standalone application issue.

2014-05-27 Thread Rommel G Custodio
Dear Wolfgang,

Wolfgang Denk wd at denx.de writes:

 
 Dear Rommel,
 
 In message loom.20140528T012622-10 at post.gmane.org you wrote:
  

snipped

 
 Use go, this was made for the purpose at hand!

Thanks for the comments! I will give it a go next time :-)

 
 Best regards,
 
 Wolfgang Denk
 

All the best,
Rommel


___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Standalone application issue.

2014-05-26 Thread mazen.e
Dear Wolfgang,

Thank you very much.


As per your request, 

I executed the following  mkimage command:

mkimage -A arm -O u-boot -T standalone -C none -a 0x0c10 -e 0x0c10
-n  Hello World -d hello_world.bin Hello.img


Than, I transferred to the board using uboot loadb (followed by the kermit
send command) and then launched the bootm 



ARNDALE5250 # bootm 0x43E0
## Booting kernel from Legacy Image at 43e0 ...
   Image Name:   Hello World
   Image Type:   ARM U-Boot Standalone Program (uncompressed)
   Data Size:594 Bytes = 594 Bytes
   Load Address: 0c10
   Entry Point:  0c10
   Verifying Checksum ... OK
   Loading Standalone Program ... OK
OK

Still, the program hangs at the above giving no sign of life.

Please note I am using the arndale 5250 board, am I missing something?

Can I try to write the hello world standalone into the microSD?  what are dd
parameters shall I use (e.g. seek)?

Many thanks and best regards.




--
View this message in context: 
http://u-boot.10912.n7.nabble.com/Standalone-application-issue-tp180515p180701.html
Sent from the U-Boot mailing list archive at Nabble.com.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Standalone application issue.

2014-05-26 Thread Wolfgang Denk
Dear mazen.e,

In message 1401086047300-180701.p...@n7.nabble.com you wrote:
 
 mkimage -A arm -O u-boot -T standalone -C none -a 0x0c10 -e 0x0c10
 -n  Hello World -d hello_world.bin Hello.img
...
 ARNDALE5250 # bootm 0x43E0
 ## Booting kernel from Legacy Image at 43e0 ...
Image Name:   Hello World
Image Type:   ARM U-Boot Standalone Program (uncompressed)
Data Size:594 Bytes = 594 Bytes
Load Address: 0c10
Entry Point:  0c10
Verifying Checksum ... OK
Loading Standalone Program ... OK
 OK

This looks OK to me.

 Still, the program hangs at the above giving no sign of life.

Well, then I guess you should attach a JTAG debugger and have a closer
look where it is hanging, and why.

 Can I try to write the hello world standalone into the microSD?  what are dd
 parameters shall I use (e.g. seek)?

That would not change anything, I think.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de
A complex system that works is invariably found to have evolved from
a simple system that worked. - John Gall, _Systemantics_
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Standalone application issue.

2014-05-26 Thread mazen.e
Thanks Wolfgang,

I will do and post the result.

Many thanks.



--
View this message in context: 
http://u-boot.10912.n7.nabble.com/Standalone-application-issue-tp180515p180707.html
Sent from the U-Boot mailing list archive at Nabble.com.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Standalone application issue.

2014-05-26 Thread Jeroen Hofstee
Hello,

On zo, 2014-05-25 at 23:34 -0700, mazen.e wrote:

 
 ARNDALE5250 # bootm 0x43E0
 ## Booting kernel from Legacy Image at 43e0 ...
Image Name:   Hello World
Image Type:   ARM U-Boot Standalone Program (uncompressed)
Data Size:594 Bytes = 594 Bytes
Load Address: 0c10
Entry Point:  0c10
Verifying Checksum ... OK
Loading Standalone Program ... OK
 OK
 

which version of u-boot are you using and where did you compile the
hello_world example from?

Regards,
Jeroen

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Standalone application issue.

2014-05-26 Thread mazen.e
Hi,

I am using the  u-boot-arndale from
https://github.com/virtualopensystems/u-boot-arndale and I am using the
arm-linux-gnueabi- Linaro toolchain for compilation? I also tried
u-boot-linaro-2013.03.01 but the issue persist? any suggestion please?


Many thanks.



--
View this message in context: 
http://u-boot.10912.n7.nabble.com/Standalone-application-issue-tp180515p180720.html
Sent from the U-Boot mailing list archive at Nabble.com.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Standalone application issue.

2014-05-25 Thread mazen.e
Dear Wolfang,


Dear Wolfang,

Thank you very much for the time your are investing replying to my messages.

Here is the command I am using to make the image :

mkimage -A arm -O u-boot -T standalone -C none -a c100 -e 0c10 -n
Hello World -d hello_world.bin HelloWorld.img


Please note that I checked using nm command that the entry point is actually
0c10.

Please be advised that in order to transfer the image to the arndale 5250
board, I am launching loadb command (at the default load address 0x43e)
and then returning to the kermit window (ctrl \ + c) and finally I am using
the kermit send command for the actual  file transfer. Launching the command
md shows that the file has actually been transferred. To load and execute
the image I am using the command bootm.

Please note that I am using the arndale 5250 KVM uboot version which shall
loads the kernel in hyp mode, with the same configuration

Many thanks and best regards.




--
View this message in context: 
http://u-boot.10912.n7.nabble.com/Standalone-application-issue-tp180515p180660.html
Sent from the U-Boot mailing list archive at Nabble.com.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Standalone application issue.

2014-05-25 Thread Wolfgang Denk
Dear mazen.e,

In message 1401002648328-180660.p...@n7.nabble.com you wrote:
 
 Here is the command I am using to make the image :
 
 mkimage -A arm -O u-boot -T standalone -C none -a c100 -e 0c10 -n
 Hello World -d hello_world.bin HelloWorld.img
 
 
 Please note that I checked using nm command that the entry point is actually
 0c10.

You did not really read my message...


I wrote:

|Load Address: c100
|---
|Entry Point:  0c10
|---
|Verifying Checksum ... OK
|Loading Standalone Program ... OK
|
|0xc100 != 0x0c10
|
|1) Please re-check load address and entry point address - I feel they
|   should be identical, but they are not.  Actually your entry point
|   address seems bogus (missing one 0).


Checkl your command again, you are passing two DIFFERENT addresses.
The address for -a has 6 zeros (correct), while the address for
-e has only 5 (wrong).

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de
The number  of  Unix  installations  has  grown  to  10,  with  more
expected.- The Unix Programmer's Manual, 2nd Edition, June, 1972
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Standalone application issue.

2014-05-25 Thread mazen.e
Dear wolfagang,

Again thank you very much.


Please note :



I used  the following command : 

mkimage -A arm -O u-boot -T standalone -C none -a c100 -e c100 -n 
Hello World -d hello_world.bin Hello.img

I  transfred the image file to (using loadb 0x43e0), the md command
shows the following:

43e0: 56190527 7b49d5f0 62568253 5202'..V..I{S.Vb...R
43e00010: 00c1 00c1 ef3a4c3c 00010211L:.
43e00020: 6c6c6548 6f57206f 00646c72 Hello World.
43e00030:    
43e00040: e92d40f8 e1a05000 e1a1 e1a06001.@-..P...`..
43e00050: eb62 e3a01006 e59f007c e3a04000b...|@..
43e00060: eb2f e59f7074 eb23 e1a01000/...tp..#...
43e00070: e59f006c eb2a e59f0068 eb28l...*...h...(...
43e00080: e59f0064 e1a01005 eb25 ea06d...%...
43e00090: e7962104 e1a01004 e59f0050 e2844001.!..P@..
43e000a0: e352 01a02007 eb1d e1540005..R.. T.
43e000b0: daf6 e59f0038 eb19 eb128...
43e000c0: e350 0afc eb0d e59f0024..P.$...
43e000d0: eb13 e3a0 e8bd80f8 0c1001cf
43e000e0: 0c1001c8 0c1001ef 0c10020d 0c10021a
43e000f0: 0c100225 0c100236 0c10024f e598c054%...6...O...T.



Bootm  0x43e0 raises an undefined instruction exception. 


 Booting kernel from Legacy Image at 43e0 ...
   Image Name:   Hello World
   Image Type:   ARM U-Boot Standalone Program (uncompressed)
   Data Size:594 Bytes = 594 Bytes
   Load Address: c100
   Entry Point:  c100
   Verifying Checksum ... OK
   Loading Standalone Program ... OK
OK
undefined instruction
pc : [lt;025e]   lr : [bff7b45c]
sp : bfe6fdd8  ip :  fp : bffae680
r10: bffae104  r9 :  r8 : bfe6ff30
r7 :   r6 : 0002 r5 : 0001  r4 : 
r3 : 0100  r2 :  r1 : 0001  r0 : 0001
Flags: nzcv  IRQs off  FIQs off  Mode SVC_32
Resetting CPU ...




On the other hand, the command arm-linux-gnueabi-nm hello_world | grep
hello_world

0c10 T hello_world

so, the entry point of the image 0c10

Hence, I also used the command:

mkimage -A arm -O u-boot -T standalone -C none -a c100 -e 0c10 -n 
Hello World -d hello_world.bin Hello.img

the command bootm 0x43e0 returns the following :


AUB ARNDALE 5250 # bootm 0x43E0
## Booting kernel from Legacy Image at 43e0 ...
   Image Name:   Hello World
   Image Type:   ARM U-Boot Standalone Program (uncompressed)
   Data Size:594 Bytes = 594 Bytes
   Load Address: c100
   Entry Point:  0c10
   Verifying Checksum ... OK
   Loading Standalone Program ... OK
OK


and the program hangs on at this stage giving no sign of life.


Please help what I am missing.

Many thanks and best regards, 




--
View this message in context: 
http://u-boot.10912.n7.nabble.com/Standalone-application-issue-tp180515p180667.html
Sent from the U-Boot mailing list archive at Nabble.com.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Standalone application issue.

2014-05-25 Thread Wolfgang Denk
Dear mazen.e,

In message 1401009344794-180667.p...@n7.nabble.com you wrote:
 
 On the other hand, the command arm-linux-gnueabi-nm hello_world | grep
 hello_world
 
 0c10 T hello_world
 
 so, the entry point of the image 0c10

OK, so it's at 0c10.

 mkimage -A arm -O u-boot -T standalone -C none -a c100 -e 0c10 -n 

 Hello World -d hello_world.bin Hello.img

 the command bootm 0x43e0 returns the following :
 
 
 AUB ARNDALE 5250 # bootm 0x43E0
 ## Booting kernel from Legacy Image at 43e0 ...
Image Name:   Hello World
Image Type:   ARM U-Boot Standalone Program (uncompressed)
Data Size:594 Bytes = 594 Bytes
Load Address: c100
---^

You fixed the entry point address, but you still use the incorrect
load address.  The program cannot run if you load it into some
unrelated memory region and then jump to some totally different
address.  You must use the SAME address (0c10.) for both the -a
and -e options.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de
Command, n.:
Statement presented by a human and accepted by a computer
in such a manner as to make the human feel as if he is in control.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Standalone application issue.

2014-05-24 Thread mazen.e
Dear Wolfgang, 

Thank you very much for pointing out the issue of address conflict. 

I tried loading the standalone app considering your remarks, however, the
app hangs at the following after a bootm command :
-
## Booting kernel from Legacy Image at 43e0 ...
   Image Name:   Hello World
   Image Type:   ARM U-Boot Standalone Program (uncompressed)
   Data Size:594 Bytes = 594 Bytes
   Load Address: c100
   Entry Point:  0c10
   Verifying Checksum ... OK
   Loading Standalone Program ... OK
OK
-

imi command returns the following:


Checking Image at 43e0 ...
   Legacy image found
   Image Name:   Hello World
   Image Type:   ARM U-Boot Standalone Program (uncompressed)
   Data Size:594 Bytes = 594 Bytes
   Load Address: c100
   Entry Point:  0c10
   Verifying Checksum ... OK


md 43e0 command returns:


43e0: 56190527 92e3281e e3fe8053 5202'..V.(..S..R
43e00010: 00c1 100c ef3a4c3c 00010211L:.
43e00020: 6c6c6548 6f57206f 00646c72 Hello World.
43e00030:    
43e00040: e92d40f8 e1a05000 e1a1 e1a06001.@-..P...`..
43e00050: eb62 e3a01006 e59f007c e3a04000b...|@..
43e00060: eb2f e59f7074 eb23 e1a01000/...tp..#...
43e00070: e59f006c eb2a e59f0068 eb28l...*...h...(...
43e00080: e59f0064 e1a01005 eb25 ea06d...%...
43e00090: e7962104 e1a01004 e59f0050 e2844001.!..P@..
43e000a0: e352 01a02007 eb1d e1540005..R.. T.
43e000b0: daf6 e59f0038 eb19 eb128...
43e000c0: e350 0afc eb0d e59f0024..P.$...
43e000d0: eb13 e3a0 e8bd80f8 0c1001cf
43e000e0: 0c1001c8 0c1001ef 0c10020d 0c10021a
43e000f0: 0c100225 0c100236 0c10024f e598c054%...6...O...T..


 Please be advised that i used loadb command and kermit console (send
command) to download the image serially  into the target. 



Thank you very much for your time.





--
View this message in context: 
http://u-boot.10912.n7.nabble.com/Standalone-application-issue-tp180515p180612.html
Sent from the U-Boot mailing list archive at Nabble.com.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Standalone application issue.

2014-05-24 Thread Wolfgang Denk
Dear mazen.e,

In message 1400920322709-180612.p...@n7.nabble.com you wrote:
 
 I tried loading the standalone app considering your remarks, however, the
 app hangs at the following after a bootm command :
 -
 ## Booting kernel from Legacy Image at 43e0 ...
Image Name:   Hello World
Image Type:   ARM U-Boot Standalone Program (uncompressed)
Data Size:594 Bytes = 594 Bytes
Load Address: c100
---
Entry Point:  0c10
---
Verifying Checksum ... OK
Loading Standalone Program ... OK

0xc100 != 0x0c10

1) Please re-check load address and entry point address - I feel they
   should be identical, but they are not.  Actually your entry point
   address seems bogus (missing one 0).

2) Did you verify (using the nm command or by checking the link map)
   that c100 is indeed the entry point address?

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de
The use of COBOL cripples the mind; its teaching  should,  therefore,
be regarded as a criminal offence.
  -- Edsger W. Dijkstra, SIGPLAN Notices, Volume 17, Number 5
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] Standalone application issue.

2014-05-23 Thread mazen.e

Hi,

I am trying to load and execute the hello world standalone app on the
arndale exynos 5250. I created an image using the mkimage tool and then used
the bootm to load and execute the image. However, the applications does not
print anything on the terminal and all what I can see is the following:


Image Type:   ARM U-Boot Standalone Program (uncompressed)
   Data Size:594 Bytes = 594 Bytes
   Load Address: 7020
   Entry Point:  7020
   Verifying Checksum ... OK
   XIP Standalone Program ... OK
   XIP Standalone Program ... OK
OK
ARNDALE5250 #

Could you please help me with that issue.

Mnay thanks.





--
View this message in context: 
http://u-boot.10912.n7.nabble.com/Standalone-application-issue-tp180515.html
Sent from the U-Boot mailing list archive at Nabble.com.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Standalone application issue.

2014-05-23 Thread Wolfgang Denk
Dear mazen.e,

In message 1400831110428-180515.p...@n7.nabble.com you wrote:
 
 I am trying to load and execute the hello world standalone app on the
 arndale exynos 5250. I created an image using the mkimage tool and then used
 the bootm to load and execute the image. However, the applications does not
 print anything on the terminal and all what I can see is the following:
 
 
 Image Type:   ARM U-Boot Standalone Program (uncompressed)
Data Size:594 Bytes = 594 Bytes
Load Address: 7020
Entry Point:  7020

Where are these load and entry point addresses coming from?

As far as I can see, the linker command for the hello_world progrtam
looks like this:

arm-linux-gnueabi-ld.bfd   -g -Ttext 0xc10 -o
examples/standalone/hello_world -e hello_world ...

And I also see

- nm hello_world | grep hello_world
0c10 T hello_world

So I would expect to see 0xC10 instead of 0x7020 ??

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de
Der Irrtum wiederholt sich immerfort in der Tat.  Deshalb muß man das
Wahre unermüdlich in Worten wiederholen. - Goethe
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] standalone application export eth_receive: undefined index

2011-08-26 Thread Robin Theunis
Okay, I have put in my commands file #include net.h
So it could give me access to the eth_receive function. The strange
thing is that when I use the eth_send function it doens't give any
error.

/Software/u-boot-1.3.3/board/ssysdatalogger/cmd_setup.c:25: undefined
reference to `eth_receive'
make: *** [u-boot] Fout 1

I know it is just some small switch somewhere but I don't see where I
can find it.

Thanks  a lot

Robin Theunis


2011/8/26 Wolfgang Denk w...@denx.de:
 Dear Robin Theunis,

 please keep the ML on Cc:

 In message 
 CAMeaXtwEad=qubqyj_nyx+_ukryqmpnr8pv3uu0vxys2ebx...@mail.gmail.com you 
 wrote:

 It will we a tool to update the environment variables over http/ a
 json request. It isn't a problem to opensource it.

 But how do I link my standalone application to u-boot?

 Don't make it a standalone application, but link it with the rest of
 the U-Boot code.

 Best regards,

 Wolfgang Denk

 --
 DENX Software Engineering GmbH,     MD: Wolfgang Denk  Detlev Zundel
 HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
 Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de
 Misquotation is, in fact, the pride and privilege of the  learned.  A
 widely-read  man  never  quotes  accurately,  for  the rather obvious
 reason that he has read too widely.
                - Hesketh Pearson _Common Misquotations_ introduction

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] standalone application export eth_receive: undefined index

2011-08-25 Thread Robin Theunis
Hi all

I have a little problem. I need to access the eth_receive function in
my standalone application. The U-boot version is 1.3.3 (I know it is
old but it is a requirement).
Also I have seen that I need to enable #define CONFIG_API but building
with this option fails. Current platfom is a AT91RM9200, 16MB sdram,
16MB flash.
If I comment out the switches in the net/eth.c net/net.c and
include/net.h. It could work. I exported also eth_send. This function
doesn't give me any problems when compiling the application.

Is this a dummy problem? Or something else?

Thanks

Robin Theunis
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] standalone application export eth_receive: undefined index

2011-08-25 Thread Wolfgang Denk
Dear Robin Theunis,

In message cameaxtydvu2yd3bxr7ny0v+ulmkp0dzhapxzdt7t1fy7pkk...@mail.gmail.com 
you wrote:
 
 I have a little problem. I need to access the eth_receive function in
 my standalone application. The U-boot version is 1.3.3 (I know it is
 old but it is a requirement).

eth_receive is (intentionally) not an exported interface for
standalone applications.

 Is this a dummy problem? Or something else?

It's policy.  Keep in mind that standalone applications allow youto
create proprietary code.  We accept that this is sometimes needed or
evenuseful, so we provide a mechanism for it, on the other hand we
strongly discourage closed source software, so we intentionally
provide not too much of the U-Boot features to such code.

If you write Free Software, then just link it with the U-Boot image
(and distribut eit under GPL).  If you write proprietary software, then
please implement your own, proprietary network drivers and network
stack as well.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de
Time is a drug. Too much of it kills you.
  - Terry Pratchett, _Small Gods_
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] Standalone application using saveenv

2010-08-27 Thread Hans Tornquist
Hi,

I will write a standalone application and I want to use saveenv from it. 
But saveenv is not included in exports.h. Are there any intentions to 
add saveenv function to exports.h in later U-boot releases?
I don't want the standalone application to be a GPL program. What I 
understand when I have read some mailing list threads it is not allowed 
by myself to add new functions to be exported through the jump table 
without the standalone application must be a GPL program. What I mean 
with new functions are functions which already exists in U-boot but not 
already included in exports.h file, for example saveenv.

Best regards
/Hans Törnquist
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] Standalone application compilation

2010-02-08 Thread Salvatore Campagna
Hi everyone. I'm writing because I have a problem. I'm running u-boot on an
mpc8641 ad I'd like to compile a custom application to make it running on
top of u-boot and I'm unable to compile it. Suppose I want to compile a
simple hello_world application just like this:

int main(int argc, char *arghv[]) {
printf(Hello world!);
return 0;
}

I'd like to write a Makefile to compile and run the application but I always
get a lot of warning and error messages.

So I tried to modify the hello_world application contained into the examples
directory. I don't want to compile it making it together with u-boot. I want
the compilation processes of u-boot and the application to be separated.
Using gcc unfortunately I run into a lot of warnings and error messages.

Someone could help me?
Thanks.

Salvatore
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Standalone application compilation

2010-02-08 Thread Detlev Zundel
Hi Salvatore,

 Hi everyone. I'm writing because I have a problem. I'm running u-boot on an
 mpc8641 ad I'd like to compile a custom application to make it running on
 top of u-boot and I'm unable to compile it. Suppose I want to compile a
 simple hello_world application just like this:

 int main(int argc, char *arghv[]) {
 printf(Hello world!);
 return 0;
 }

 I'd like to write a Makefile to compile and run the application but I always
 get a lot of warning and error messages.

 So I tried to modify the hello_world application contained into the examples
 directory. I don't want to compile it making it together with u-boot. I want
 the compilation processes of u-boot and the application to be separated.
 Using gcc unfortunately I run into a lot of warnings and error messages.

 Someone could help me?

Why don't you help yourself?  Configure and compile U-Boot for your
platform, then do a touch examples/standalone/hello_world.c, do a
make again and study what commands are being generated.  This is what
you will need to rebuild in your own makefile.

If you do this however, you may notice that it is not very trivial to
separate your application from U-Boot, as you will need the libstubs.a
and the header files.  Maybe you would be better off to use what is
available and simply add another target to the makefile in the
standalone directory.

Cheers
  Detlev

-- 
Once the  implementation is  up and running,  it is still a trick to keep it
running.  In a normal,  closed implementation,  this is not a problem;  in a
system with metaobject protocols [..] there is the potential for spectacular
failure modes if certain situations are not properly anticipated.
   -- The Art of the Metaobject Protocol
--
DENX Software Engineering GmbH,  MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: d...@denx.de
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] standalone application for ppc internal registers access

2009-04-21 Thread Detlev Zundel
Hi eija_flight,

 I am using GCC inline assembly in standalone applications to access my cpu
 (ppc) internal registers. And it seems some of the registers were needed by
 U-boot to run, because when I am accessing some of these registers via
 standalone applications, the board will go reset or hangs.

 Is there any method to avoid this reset/hangs matter and peacefully back to
 U-boot after exiting the standalone applications? because I need to use each
 of registers, respectively. 

There once was the extraordinary idea of saving registers before usage
and restoring them on exit.

Cheers
  Detlev

-- 
Oh, didn't you know, the Lord did the original programming of the universe in
COBOL. - That's why the world is the evil work of Satan. A true divine being
would have used Scheme.  -  And, if so, Jesus would have been crucified on a
big lambda symbol.  -- K. Chafin, K. Schilling  D. Hanley, on comp.lang.lisp
--
DENX Software Engineering GmbH,  MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: d...@denx.de
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] standalone application for ppc internal registers access

2009-04-20 Thread eija_flight

Hello,

I am using GCC inline assembly in standalone applications to access my cpu
(ppc) internal registers. And it seems some of the registers were needed by
U-boot to run, because when I am accessing some of these registers via
standalone applications, the board will go reset or hangs.

Is there any method to avoid this reset/hangs matter and peacefully back to
U-boot after exiting the standalone applications? because I need to use each
of registers, respectively. 

Best regards,
-- 
View this message in context: 
http://www.nabble.com/-U-Boot--standalone-application-for-ppc-internal-registers-access-tp23148835p23148835.html
Sent from the Uboot - Users mailing list archive at Nabble.com.

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Standalone application after powerup

2008-10-10 Thread Wolfgang Denk
Dear Nagesh.ML,

In message [EMAIL PROTECTED] you wrote:
 
 What could be the possible solution to include the standalone application in
 my board powerup sequence?

This depends on where you want to include it. I think it  is  obvious
that   SA   applications  require  a  substantial  amount  of  U-Boot
infrastructure to be running. By design,  they  are  intended  to  be
called  only  when any other interactive command can be exectuted. If
you know exactly what you are  doing,  you  may  run  them  a  little
earlier, but probbaly not much.

Me recommendation is: if you want to run SA applications  early,  you
can do this from the preboot hook. Any earlier point may or may not
work,  and  especially there is no guarantee that this will not break
in any future versions of U-Boot.

Keep in mind what SA applications are used for - especailly, they are
NOT intended to sneak in propriatary  initialization  code  in  early
boot  stages,  and this is about the only reason I can imagine to use
them in that early.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [EMAIL PROTECTED]
HR Manager to job candidate I see you've had no  computer  training.
Although  that  qualifies  you  for upper management, it means you're
under-qualified for our entry level positions.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] Standalone application after powerup

2008-10-10 Thread Nagesh.ML

Hi,

I am trying to run the hello_world standalone application on my powerpc
board(ppc 82xx). I get it worked right, when the u-boot prompt comes up by
copying the hello_world.bin from flash to the RAM space(0x4) and then
using the go 0x40004 command. Everyting works fine in this case.

The next case I tried was using the run_command() function and passing the
cp and go  command with appropriate flash and RAM addresses with that as
the arguments, After powerup and executing some of the cpu and memory
controller initializations..I call the run_command() functions. My board
resets giving program check exception.

What could be the possible solution to include the standalone application in
my board powerup sequence?

--Nagesh
-- 
View this message in context: 
http://www.nabble.com/Standalone-application-after-powerup-tp19914708p19914708.html
Sent from the Uboot - Users mailing list archive at Nabble.com.

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] Standalone Application Images support (bootm)

2008-09-30 Thread Rodrigo Vilar
Hi All,
Are Standalone Applications supported in the current u-boot (GIT repo)?

I have tried to bootm a Standalone Application image stored in flash and I
get the messages (u-boot then crashes):
Wrong Image Type for bootm command
ERROR: can't get kernel image!

In u-boot 1.2.0  file common/cmd_bootm.c there is code to support it:
case IH_TYPE_STANDALONE:
name = Standalone Application;.

In the current one (GIT repo) there is no reference to IH_TYPE_STANDALONE in
file common/cmd_bootm.c. Should I look somewhere else?

Thanks,

Rodrigo
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Standalone Application Images support (bootm)

2008-09-30 Thread Wolfgang Denk
Dear Rodrigo Vilar,

In message [EMAIL PROTECTED] you wrote:
 
 Are Standalone Applications supported in the current u-boot (GIT repo)?

Yes, of course.

 I have tried to bootm a Standalone Application image stored in flash and I
 get the messages (u-boot then crashes):
 Wrong Image Type for bootm command
 ERROR: can't get kernel image!

I recommend you start reading the documentation, especally the section
about Standalone Applications.

 In the current one (GIT repo) there is no reference to IH_TYPE_STANDALONE in
 file common/cmd_bootm.c. Should I look somewhere else?

Yes. Start looking in the manual.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [EMAIL PROTECTED]
Wenn Du ein' weise Antwort verlangst, Mußt Du vernünftig fragen.
-- Goethe, Invektiven
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Standalone Application Images support (bootm)

2008-09-30 Thread Rodrigo Vilar
Dear Wolfgang Denk,


 
  Are Standalone Applications supported in the current u-boot (GIT repo)?

 Yes, of course.


 I am very happy to hear that. However the manual states The bootm command
is used to start operating system images. and Standalone Applications were
supported on u-boot 1.2.0.


  I have tried to bootm a Standalone Application image stored in flash and
 I
  get the messages (u-boot then crashes):
  Wrong Image Type for bootm command
  ERROR: can't get kernel image!

 I recommend you start reading the documentation, especally the section
 about Standalone Applications.


If you refer to chapter 5.12 I had already done so. It has been very useful
to download an run standalone applications however there is no reference on
how to do it with image files and bootm.



  In the current one (GIT repo) there is no reference to IH_TYPE_STANDALONE
 in
  file common/cmd_bootm.c. Should I look somewhere else?

 Yes. Start looking in the manual.


Thanks for your recommendation I started reading it last july. I have
successfully run it now with MPC8248 on two different cards one is COTs and
the other house made with three MPC8248 processors. I have also successfully
boot linux using the bootm command on both boards. Believe me I really
appreciate the work you are doing with u-boot, however I also think you have
overlooked my questions.

Best Regards,

Rodrigo Vilar
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Standalone Application Images support (bootm)

2008-09-30 Thread Wolfgang Denk
Dear Rodrigo,

In message [EMAIL PROTECTED] you wrote:
 
 Standalone Applications are no operating systems,m so bootm is the
  wrong command.
 
 This is the answer I was expecting, bootm does not support Standalone
 Application Images. My question was not complete, I thought it was not
 necessary to repeat the mail subject. It should have been: Are Standalone
 Application Images supported by bootm in the current u-boot  (GIT repo)?

Ummm... no matter how often you ask, the answer will not change:

The command to start SA applications is go. bootm is used for OS
images. This is something different. bootm does not support SA
applications.


Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [EMAIL PROTECTED]
When it is incorrect, it is, at least *authoritatively* incorrect.
- Hitchiker's Guide To The Galaxy
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot