LOGIN   :::   RECOVER PASS   :::   GET ACCOUNT    
Browse
  • Projects
  • Code (CVS)
  • Forums
  • News
  • Articles
  • Polls
  •  
    OpenCores
  • FAQ
  • CVS HowTo
  • Mission
  • Media
  • Tools
  • Advertise
  • Mirrors
  • Logos
  • Contact us
  • Find Resources
  • Job Opportunity
  •  
    Tools
  • Search
      
  • Download Cores (CVSGet)
  •  
    More
  • Wishbone
  • Perlilog
  • EDA tools
  • OpenTech CD
  •  
    Navigation: All forums > Openrisc > Message List > Message Post

    Message

    Reply | Reply all
    Date Prev | Date Next | Thread Prev | Thread Next Date Index | Thread Index

    From: Matjaz Breskvar<phoenix@o...>
    Date: Tue Dec 23 22:34:17 CET 2003
    Subject: [openrisc] About the uclinux running in the or32-uclinux-simulator
    Top
    * Cool_ABen@s... (Cool_ABen@s...) 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.

    ReferenceAuthor
    [openrisc] About the uclinux running in the or32-uclinux-simulatorCool_ABen

     
    Copyright (c) 1999 OPENCORES.ORG. All rights reserved.