Re: [ptxdist] AT91SAM9263-ek

2012-07-13 Thread Juergen Beisert
Hi Sven,

Stutz Sven wrote:
> I am now back and have a few questions again.
> As I said before I try to understand the complete build process. And so
> I am playing with this nice evalboard AT91SAM9263-ek (Rev. B).
>
> I was really successful building all parts (at91Bootstrap, Barebox,
> Linuximage) and when I upload all files via SAM-BA and I restart the
> device I get the prompt of barebox.
>
> But nothing more :-(
> Everything is fine I can also switch on and off the on board leds but I
> cannot load/ start the kernel.
>
> The addresses I use are:
>  0x  - 0x1  at91Bootstrap
>  0x  2  -  0x5  Barebox
>  0x  6  -  0x7  Bareboxenv
>  0x  8  -  47  kernel
>  0x48  -7c7  rootfs
>  and rest is data ...
> [...]

I fear here is the wrong audience for such kind of question.
You should ask this question on the Barebox mailing list instead.

Regards,
Juergen

-- 
Pengutronix e.K.  | Juergen Beisert |
Linux Solutions for Science and Industry  | http://www.pengutronix.de/  |

-- 
ptxdist mailing list
ptxdist@pengutronix.de


[ptxdist] AT91SAM9263-ek

2012-07-13 Thread Stutz Sven

Hello everybody,

I am now back and have a few questions again.
As I said before I try to understand the complete build process. And so 
I am playing with this nice evalboard AT91SAM9263-ek (Rev. B).


I was really successful building all parts (at91Bootstrap, Barebox, 
Linuximage) and when I upload all files via SAM-BA and I restart the 
device I get the prompt of barebox.


But nothing more :-(
Everything is fine I can also switch on and off the on board leds but I 
cannot load/ start the kernel.


The addresses I use are:
0x  - 0x1  at91Bootstrap
0x  2  -  0x5  Barebox
0x  6  -  0x7  Bareboxenv
0x  8  -  47  kernel
0x48  -7c7  rootfs
and rest is data ...

I have change the specific init.c file and boot file in the specific 
environment folder.
First I though the missing *.bb partitions can fix this problem. Then I 
modified the env/init file for that.  Apparently this placeholder "*" in 
this boot script (nand -a dev/nand0.* ) is not working correctly.

addpart /dev/nand0 $nand_parts
nand -a /dev/nand0.*

nand -a dev/nand0.at91bootstrap
nand -a dev/nand0.barebox
nand -a dev/nand0.bareboxenv
nand -a dev/nand0.kernel
nand -a dev/nand0.rootfs

The second try was to change also this partition table in the specific 
init.c so that both match.
devfs_add_partition("nand0", 0x0, SZ_128K, 
DEVFS_PARTITION_FIXED, "at91bootstrap_raw");

dev_add_bb_dev("at91bootstrap_raw", "at91bootstrap");
devfs_add_partition("nand0", SZ_128K, SZ_256K, 
DEVFS_PARTITION_FIXED, "self_raw");

dev_add_bb_dev("self_raw", "self0");
devfs_add_partition("nand0", SZ_256K + SZ_128K, SZ_128K, 
DEVFS_PARTITION_FIXED, "env_raw");

dev_add_bb_dev("env_raw", "env0");

But everything without success. It's a little bit strange because when I 
execute the command

bootm -v /dev/nand0.kernel.bb
First I get the following output
Barebox:/ bootm -v /dev/nand0.kernel.bb
Image Name: Linux-3.4.0
OS:  Linux
Architecture: ARM
Type:   Kernel Image
Compression:uncompressed
Data Size:   2034784 Bytes = 1.9 MB
Load Address:20008000
Entry Point:20008000
err -74
loading os image failed with Out of memory

and if I try again the same command
Barebox:/ bootm -v /dev/nand0.kernel.bb
err -74
Unknown OS filetype (try -f)

also if I try to memcpy or uimage I always get this err 74.

What is this Error 74 (-- Reset level 3)?
Why Out of memory?


Kind regards

Sven


--
ptxdist mailing list
ptxdist@pengutronix.de