OpenCores
no use no use 1/1 no use no use
simulation freezes when running uclinux with or1ksim
by Unknown on Sep 12, 2004
Not available!
I built tool chain, uclinux, or1ksim according to the guide in README file. Everything goes well. I saw the unlinux shell, and I can excute shell command like ls, cd, mkdir. But the shell stops responding after 40 seconds. I found a message written by Matjaz Breskvar in the forum, it says "...i'd need more info (outputs) from simulator. it could be that you reached the approx. 7500000000th instruction around which simulator just freezes... you can also try to dump (exec log) a few instructions around the problem area and look for clue in there..." Is the "75000000000th instructions" the cause of simulation freeze? Or I didn't set sim.cfg properly. I want to write a C program doing something DSP on the platform. I need get the C program, input files into the simulation platform, and then get the result out of the simulation domain. Being a hardware engineer, I have diffculties with things like setup uclinux device, ramdisk, romfs, initrd. Any guideline or sample commands will be appreciated. Finally, I got the following warning when running uclinux with uclinux-2.0.x/sim.cfg. Are these obsolete features no longer support? # ../../or1ksim/sim -f sim.cfg linux Reading script file from 'sim.cfg'... WARNING: config.cpu: Invalid parameter: slp; ignoring. WARNING: config.cpu: Invalid parameter: btic; ignoring. WARNING: config.cpu: Invalid parameter: bpb; ignoring. WARNING: config.uart: Invalid parameter: enabled; ignoring. WARNING: config.dma: Invalid parameter: enabled; ignoring. WARNING: config.base: Unknown section: tick; ignoring. WARNING: config.base: Invalid parameter: =; ignoring. WARNING: config.base: Invalid parameter: irq; ignoring. Building automata... done, num uncovered: 0/212. Parsing operands data... done. loadcode: filename linux startaddr=0 virtphy_transl=0 Not COFF file format ELF type: 0x0002 ELF machine: 0x8472 ELF version: 0x00000001 ELF sec = 22 Section: .romvec, vaddr: 0xf0000000, paddr: 0xf0000000, offset: 0x00002000, size: 0x00000c14 Section: .text, vaddr: 0xf0002000, paddr: 0xf0002000, offset: 0x00004000, size: 0x00061730 Section: .rodata, vaddr: 0xf0063730, paddr: 0xf0063730, offset: 0x00065730, size: 0x00005a3f Section: .initrd, vaddr: 0xf0069170, paddr: 0xf0069170, offset: 0x0006b170, size: 0x00400000 Section: .data, vaddr: 0x00002000, paddr: 0xf0469170, offset: 0x0046c000, size: 0x000071e0 Section: .ramvec, vaddr: 0x00000000, paddr: 0xf0470350, offset: 0x00474000, size: 0x00000c14....................................... __________________________________ Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! http://promotions.yahoo.com/new_mail
simulation freezes when running uclinux with or1ksim
by Unknown on Sep 14, 2004
Not available!
* changhsu@yahoo.com (changhsu@yahoo.com) wrote:
I built tool chain, uclinux, or1ksim according to the
guide in README file. Everything goes well. I saw the
unlinux shell, and I can excute shell command like ls,
cd, mkdir. But the shell stops responding after 40
seconds. I found a message written by Matjaz Breskvar
in the forum, it says
"...i'd need more info (outputs) from simulator. it
could be that you reached the approx. 7500000000th
instruction around which simulator just freezes... you
can also try to dump (exec log) a few instructions
around the problem area and look for clue in there..."

Is the "75000000000th instructions" the cause of
simulation freeze? Or I didn't set sim.cfg properly.


it's some counter somewhere in the simulator that gets overflown. (after
some time simulator just compleatly freezes - ie CONTROL+C doesn't
give you simulator command prompt)

what's the problem in your case is hard to say. first try to
interrupt uclinux after it freezes. ctrl+c should give you simulator
prompt. if you get it the freeze may be a bug in uclinux. try to see a few
instructions (press t, enter) and observe. (you may also send it to me).
even better is to make an 'execution' log (can be configured in sim.cfg).

I want to write a C program doing something DSP on the
platform. I need get the C program, input files into
the simulation platform, and then get the result out
of the simulation domain. Being a hardware engineer, I
have diffculties with things like setup uclinux
device, ramdisk, romfs, initrd. Any guideline or
sample commands will be appreciated.


are you familiar with linux. perhaps you'd want to try to use linux. let me
give you a few pointers about uclinux:

- the initial ram disk (what you see as a file system) is in
arch/or32/board/initrd
- you can mount it with
mount -t ext2 arch/or32/board/initrd /or32-root
- now you can access the filesystem uclinux will see
in the directory /or32-root
- feel free to change anything there as you would on your system
- when you are done just do
umount /or32-root
- if the there is not enoungh space you can make a new initrd>
dd if=/dev/zero of=new-initrd bs=1K count=1000
mke2fs -f new-initrd (make a filesystem on it)
then just copy everything from an old to a new initrd.

this should get you started. there are much better and detailed
instructions about setting initial ram disk and alike avaliable on web.


Finally, I got the following warning when running
uclinux with uclinux-2.0.x/sim.cfg. Are these obsolete
features no longer support?

# ../../or1ksim/sim -f sim.cfg linux
Reading script file from 'sim.cfg'...
WARNING: config.cpu: Invalid parameter: slp; ignoring.


yes, these are obsolete configuration parameters in sim.cfg. you can
remove those lines from it...

best regards,
p.

no use no use 1/1 no use no use
© copyright 1999-2026 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.