OpenCores
no use no use 1/1 no use no use
About the uclinux running in the or32-uclinux-simulator
by Unknown on Dec 23, 2003
Not available!
Hi: I am a graduate student and recently wrote a mp3-decoding program . Then I added the program to the romfs ramdisk image of uclinux .So when I boot the uclinux in the or32-uclinux-simulater in my pc, you can see the mp3-decoding program "player" in the directory "bin" of uclinux. First I set the "channel" of uart secton of file sim.cfg = "file:/dev/tty10". I want to printf all the decoding data to tty10. But to my disappoint ,after printing several thousand of data,the simulator suddenly stopped and lost control. So I changed the the channel of uart secton to "file:uart0.rx,uart0.tx". But the same result happened. Only part of the whole data can be written to the file uart0.tx. I checked my dedoding program and it seems no errors .By the way ,with little modifications,it can run smoothly in Visual C++ of Microsoft. I don't know how the "printf" works in the simulator and I am a newcomer to linux. I wonder whether there are any limits in the operation of "printf" about the memory capacity. By the way , I set the flash and ram capacity in the file "sim.cfg" to 0xf00000. I think it is enough. Of course my first solution is the file operation. I tried a little example of file operations. But ,unfortunately, the file operations such as readfile ,wirtefile and so on don't have effect on the files in pc. How can I send the data out of the simulating world ? Thanks for your reading . I wish anyone can help me.My project is very urgent . Thanks a lot! Regards: Ben Cool_ABen@sjtu.edu.cn
About the uclinux running in the or32-uclinux-simulator
by Unknown on Dec 23, 2003
Not available!
* Cool_ABen@sjtu.edu.cn (Cool_ABen@sjtu.edu.cn) wrote:
Hi:
I am a graduate student and recently wrote a mp3-decoding
program . Then I added the program to the romfs ramdisk image of
uclinux .So when I boot the uclinux in the or32-uclinux-simulater in my
pc, you can see the mp3-decoding program "player" in the
directory "bin" of uclinux. First I set the "channel" of uart secton of file
sim.cfg = "file:/dev/tty10". I want to printf all the decoding data to
tty10.

But to my disappoint ,after printing several thousand of data,the
simulator suddenly stopped and lost control. So I changed the the
channel of uart secton to "file:uart0.rx,uart0.tx". But the same result
happened. Only part of the whole data can be written to the file
uart0.tx.


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...

i don't know, it could be any number of things...

I checked my dedoding program and it seems no errors .By the
way ,with little modifications,it can run smoothly in Visual C++ of
Microsoft. I don't know how the "printf" works in the simulator and I am
a newcomer to linux. I wonder whether there are any limits in the
operation of "printf" about the memory capacity. By the way , I set the
flash and ram capacity in the file "sim.cfg" to 0xf00000. I think it is
enough.

Of course my first solution is the file operation. I tried a little example
of file operations. But ,unfortunately, the file operations such as
readfile ,wirtefile and so on don't have effect on the files in pc. How
can I send the data out of the simulating world ?


you may create the 'disk' image, format it to ext2 or something (use
loopback on your host pc) and that use this file as an disk image for
simulator. never tried it, though it *could* work ;) ...

lp,
p.

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