[U-Boot-Users] Porting u-boot to new hardware

Wolfgang Denk wd at denx.de
Tue Feb 18 20:35:31 CET 2003


Hello,

in message <200302181439.31331.ahoerandl at gmx.at> you wrote:
> 
> what i have got:
>  - u-boot up and running ;-)

Congrats!

> problems so far:
> 1)   lib_arm/board.c
>     dram_init  (line 176)  is called as
>    	if ((*init_fnc_ptr)() != 0) {
> 			hang ();
> 
>  i copied this from board/lubbock/lubbock.c - this function returns the
>  size of the memory, which is always != 0. same in board/cradle/cradle.c .
>  am i the first one to get so far?

Probably, at least on this family of devices.

All init_*() functions should return 0 in case of no  problems  found
and !=0 in case of errors.

> 2) starting the example program hello_world
> 2a) for the loads command i had to comment out the check around line 380 in 
>    common/boot_cmd.c
> 
> 		  if (syscall_tbl[SYSCALL_GETC] != serial_getc) {
> 		    if (ctrlc()) {
> 		      return (-1);
> 		    }
> 
> 2b) starting the hello_world program
> 
> => go 04300000
> ## Starting application at 0x04300000 ...
> ## Application terminated, rc = 0x0
> => 
> 
> but no output; i changed the counter i to "static" and looked at this memory
> with md: the value changes according to the number of arguments
> 
> conclusion: the hello_world program is running, but the output functions
> don't work

syscalls have not been implemented (yet)  for  anything  but  PowerPC
processors.


Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
See us @ Embedded World, Nuremberg, Feb 18-20, Hall 12.0 Booth 12-442




More information about the U-Boot mailing list