Dietmar
Posts: 361
Joined: Sun Sep 04, 2011 5:43 pm
Contact: Website

Re: Skyeye

Sun Oct 23, 2011 5:37 pm

Hi all,
I downloaded from Atmel homepage the Image for CE5 for the ARM926 processor.
The reason for this is, that I do not get start any ARM926 or ARM1176 images build with Win CE5 to start?!
In Qemu, the switch -start-addr disappeared in newer versions.
So I think, that Qemu can not start now from any given advices, where it has to start from which place in memory.
But I think Skyeye can.
The content of that zip file from Atmel is:
EBOOT.nb0 (bootloader)
FIRSTBOOT_CS1.nb0 (bootloader in first time)
NK.nb0 (the flat, unpacked nk.bin, just all the CE5 files)

And text file with content:

* How to install the Bootloader :
- Open SAM-BA and connect it to the platform
- On the NandFlash section :
- Select the script "NandFlash init" and execute it
- Select the script "NandFlash Erase all" and execute it
- On the Dataflash section :
- Select the script "Enable Dataflash on CS1" and execute it
- Select the Script "Erase the Dataflash" and execute it
- Select the script "Send boot file", select the file FIRSBOOT_CS1.nbo and execute the script
- On the textbox "Adress" write 0x4000
- Select Eboot.nb0 in the "Send File Name"
- Click on Send File

Now the Bootloader is installed.

* How to install the nk.nb0 file :
- On the NandFlash section :
- Select the Script "NandFlash init" and execute it
- On the textbox "Address" write 0x20000
- Select the file NK.nb0 in the "Send File Name"
- click on Send File

* Start the Board :
- On the bootloader menu select the "Image Flash Menu"
- Select "Enter Manually the Parameter"
- For the Physical Adress Start enter : 0x80067000
- For the Starting IP enter : 0x80068000
- For the total rom size enter: 0xdbae3c
- Select Quit...
- Select "Save configuration now"
- Restart the board

My question is now, how to make a config file for Skyeye from this.
I do not think, that Qemu can start it. Strange, because that you can not give hardcoded adresses in Qemu now,
nice to hear from you
Dietmar

Dietmar
Posts: 361
Joined: Sun Sep 04, 2011 5:43 pm
Contact: Website

Re: Skyeye

Sun Oct 23, 2011 10:10 pm

Hi,
I think the skyeye.conf for raspi should be something like

arch: arm
cpu: arm920t
mach: at91rm92
mem_bank:map=M, type=RW,addr=0x20100000,size=0x00F00000, file=./something,boot=yes :-))
mem_bank: map=M, type=RW, addr=0x00200000, size=0x0004000

But from where I can get the real hex-numbers???
I looked a lot and I think with viewbin.exe nk.bin
you can in some way set this hex-numbers one by one :-).
Has somebody tried this here,
thanks Dietmar

Dietmar
Posts: 361
Joined: Sun Sep 04, 2011 5:43 pm
Contact: Website

Re: Skyeye

Sun Oct 23, 2011 11:11 pm

Hi,
Skyeye supports ARM plain binary format, exact as it is in nk.nb0 ,
raw format, pure machine code.
Skyeye can load this binary code and execute it.
For example, if you want to run the u-boot in this kind of raw binary
format, you can add the following line into skyeye.conf:
mem_bank: map=M, type=RW, addr=0x21f00000, size=0x00100000,
file=./u-boot.bin, boot=yes
That means u-boot.bin will be loaded to 0x21f0_0000, and run from this
address when the simulated board is powered on.

http://infocenter.arm.com/help.....04s03.html

Dietmar
Posts: 361
Joined: Sun Sep 04, 2011 5:43 pm
Contact: Website

Re: Skyeye

Mon Oct 24, 2011 12:13 am

Yeeaah,
this is really cool.

http://groups.google.com/group.....5b6a54f144

Such a lot of stuff for interested pupils, people :-)

Dietmar

Dietmar
Posts: 361
Joined: Sun Sep 04, 2011 5:43 pm
Contact: Website

Re: Skyeye

Mon Oct 24, 2011 3:01 pm

Now I think, the skyeye.conf file has to look like

cpu: arm920t
mach: s3c2410x
mem_bank: map=M, type=RW, addr=0x00000000, size=0x10000000, file=./nk.nb0
mem_bank: map=M, type=RW, addr=0x30000000, size=0x01000000, file=./eboot.nb0, boot=yes
mem_bank: map=I, type=RW, addr=0x48000000, size=0x20000000

But until now it does not start. But this must be NEARLY ok,
Dietmar

Dietmar
Posts: 361
Joined: Sun Sep 04, 2011 5:43 pm
Contact: Website

Re: Skyeye

Mon Oct 24, 2011 8:43 pm

Hi, now my skyeye.conf file is

cpu: arm920t
mach: s3c2410x

mem_bank: map=M, type=RW, addr=0x80001000, size=0x00D8AEA8, file=nk.nb0
mem_bank: map=M, type=RW, addr=0xB2000000, size=0x000343B8, file=eboot.nb0

The board s3c2410x is supported by Skyeye.
When I start, all seems ok:
The file eboot.nb0 is copied to adress 0x30038000
and started exact as described for real motherboard Samsung 2410.
The file nk.nb0 is copied to 0x30200000 and started, also exact as for real Samsung board.
And the length is set always correct to 0x01000000
by the simulator, also correct, I compared with Linux-Arm behavior from Skyeye.
WHY does it not start???


Dietmar
Posts: 361
Joined: Sun Sep 04, 2011 5:43 pm
Contact: Website

Re: Skyeye

Mon Oct 24, 2011 9:14 pm

Bus read error, can not find corresponding bank for addr
0x30010000,pc=0x30039394
and a lot more, but all bigger than the 0x30010000 adress. What does this message mean, no memory for 0x30010000 and bigger???
I wonder, because I did not get any answer here. Has anybody from the forum get Skyeye to work?
Dietmar

Dietmar
Posts: 361
Joined: Sun Sep 04, 2011 5:43 pm
Contact: Website

Re: Skyeye

Mon Oct 24, 2011 11:55 pm

Hm, the same result in Linux.
Because I found a tutorial, where exact the same nk.nb0 and eboot.nb0 build from the WinCE 5 environment where put with "hand" via USB at exact the same places on a real motherboard from Samsung, it is a BIG BUG in skyeye. On the webside from skyeye is told, that they support this Samsung motherboard s3c2410x.
On real motherboard this procedure works and I tested my nk.bin for s3c2410x, it works.
I think I stay with Qemu,
Dietmar

bluepin
Posts: 4
Joined: Mon Aug 08, 2011 6:22 pm

Re: Skyeye

Tue Oct 25, 2011 8:29 pm

I wast about to post a question about the Raspberry PI and an emulator/simulator framework for it. Found your post instead.
I am thinking about porting RTEMS (real time OS) on it, once I find the time.
Maybe there you have an easy answer for me : I just want to get a sense on what chances do I have to find a close-enough simulator to start with.
So sorry if I missed other discussions on this, other than starting with Qemu for ARM, is there any other progress towards a model for simulating the whole Rasberry PI as a BSP (Board Support Platform) ( with network, video and what have you ... )

Eugen

Dietmar
Posts: 361
Joined: Sun Sep 04, 2011 5:43 pm
Contact: Website

Re: Skyeye

Tue Oct 25, 2011 8:44 pm

Hi Eugen,
I think with Skyeye you have very good chances to make this.
But the problem from Skyeye is their documentation. Until now, I see a lot,
how people try to communicate with each other. The authors from Skyeye are blind (sorry) for making other to understand, what they are doing.
Example: Download last version from Skyeye and try to make them just run on Linux.
skyeye-1.3.3_rel.tar.gz

You do not get in this version an executable skyeye like before. The file
skyeye_main.py should do the same like skyeye (executable) before, but it is just not true:-).
Now I understand, why there are very small people, who use skyeye.
Is here one in the forum one, who succeeds to start the new version of Skyeye^^???
But I do not give up so quick: I see, that the new version can also build code from ARM to x86, for Arm1176 and a lot more. The percent should reach 70 % (!!!) of the original machine. In this case, real XP is at once on raspberry. But until now, I even do not get to start the new version. Older versions gives a lot of errors, its just crazy this program,
but also crazy good
Dietmar

bluepin
Posts: 4
Joined: Mon Aug 08, 2011 6:22 pm

Re: Skyeye

Tue Oct 25, 2011 8:52 pm

So is Qemu a better option at this point ?

My experience with simulators is mixed, just a little with qemu as a simple user, more with Simics ( a complex and good simulator but not free/OS unfortunately). I have not even tried Skyeye ... I will put it on my todo list.
I am sure that once I sink some time into it , I will get a more clear picture.

Eugen

Dietmar
Posts: 361
Joined: Sun Sep 04, 2011 5:43 pm
Contact: Website

Re: Skyeye

Tue Oct 25, 2011 10:48 pm

Small step, but all is beginning like this^^,

may be we see here future in a lot of things..


Dietmar
Posts: 361
Joined: Sun Sep 04, 2011 5:43 pm
Contact: Website

Re: Skyeye

Wed Oct 26, 2011 4:20 pm

Hi, I tried a lot,
little bit more output but no success until now:

The content of my usede skyeye.conf

cpu: arm920t
mach: s3c2410x

mem_bank: map=M, type=RW, addr=0xB2000000, size=0x00040000, file=./eboot.nb0, boot=yes
mem_bank: map=M, type=RW, addr=0x80001000, size=0x02000000, file=./nk.nb0

This is answer from Skyeye to this:

(skyeye) load-conf skyeye.conf
cpu info: armv4, arm920t, 41009200, ff00fff0, 2
In do_mach_option, mach info: name s3c2410x, mach_init addr 0x816980

(skyeye) start
cpu info: armv4, arm920t, 41009200, ff00fff0, 2
In do_mach_option, mach info: name s3c2410x, mach_init addr 0x816980

Loaded RAM ./eboot.nb0
Loaded RAM ./nk.nb0
Loaded RAM ./eboot.nb0
Loaded RAM ./nk.nb0
1 core is initialized.
SKYEYE: use arm920t mmu ops
SKYEYE: use arm920t mmu ops
Can not get correct kernel filename!Maybe your skyeye.conf have something wrong!
In SIM_start, Set PC to the address 0xb2000000

(skyeye) run

Bus read error, can not find corresponding bank for addr 0x30010000,pc=0x14

Dietmar
Posts: 361
Joined: Sun Sep 04, 2011 5:43 pm
Contact: Website

Re: Skyeye

Wed Oct 26, 2011 11:41 pm

I found the right adress for the image nk.nb0 where it has to been loaded in Ram, it is

0x30200000

and I think it could start direkt from there without any bootloader.
I do not know, what more is now needed.

skyeye.conf is

cpu: arm920t
mach: s3c2410x

mem_bank: map=M, type=RW, addr=0x30200000, size=0x02000000, file=./nk.nb0, boot=yes

And answer from Skyeye 1.3.3 is running...:-)

(skyeye) load-conf skyeye.conf
cpu info: armv4, arm920t, 41009200, ff00fff0, 2
In do_mach_option, mach info: name s3c2410x, mach_init addr 0x4d7980

(skyeye) start
cpu info: armv4, arm920t, 41009200, ff00fff0, 2
In do_mach_option, mach info: name s3c2410x, mach_init addr 0x4d7980

Loaded RAM ./nk.nb0
Loaded RAM ./nk.nb0
1 core is initialized.
SKYEYE: use arm920t mmu ops
SKYEYE: use arm920t mmu ops
Can not get correct kernel filename!Maybe your skyeye.conf have something wrong!
In SIM_start, Set PC to the address 0x30200000

(skyeye) run
In start_all_thread, the thread 1 is set to running
(running)

and running...
All is ok, but it just do not start :-)
Dietmar

Dietmar
Posts: 361
Joined: Sun Sep 04, 2011 5:43 pm
Contact: Website

Re: Skyeye

Thu Oct 27, 2011 10:40 pm

Now I understand,
why there is no Video with Skyeye and booting Linux on ARM on Youtube:
NONE of the examples in skyeye-1.3.3_testsuite_rel.tar.gz with Skyeye 1.3.3 on Linux
works of two of my computers. Only the hello world program works.
Really funny, I get Windows CE5 nk.nb0 load more far with skyeye than any Linuxdistribution of that testsuite. I am now good in building skyeye.conf files.
So I see a lot of mistakes in those files on the testsuite, missing files and and and.
I am really interested, if anybody get any machine in simulation to work with Skyeye. Even not x86 on x86 works for me.
I always look in first at me.
But now I think, this is not a real working thing, please tell me other :-)
Dietmar

Return to “Off topic discussion”