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: rich_daddio at yahoo.com<rich_daddio@y...>
    Date: Tue Jul 15 16:01:03 CEST 2008
    Subject: [openrisc] How to run uClinux on or1ksim
    Top
    Hi Kobe,
    www.kernel.org for linux. Download the source and then patch the source:

    There are patches about for a number of different kernels you can pick
    up: linux-2.6.19 patches here:
    http://www.meansoffreedom.com/opencores_build6.html
    or
    http://www.embecosm.com/

    Or you can log into Opencores and pick up our script(this builds the
    toolchain too):
    http://www.opencores.org/projects.cgi/web/or1k/gnu_toolchain_port

    If you pick up the current patches from MOF for example we include a
    ramdisk(initrd) with the package. The ramdisk provides an initial
    "filesystem" in ram since there is no actual harddisk as there would
    be in your typical desktop system. If you were running on a board you
    may have a "harddisk" on some kind of non-volatile store but most
    system (even on the desktop) use some kind of ramdisk to boot up.

    Part of the kernel build with our patches links the ramdisk into the
    kernel image. Busybox resides on the ramdisk, Busybox is the "package"
    of applications(userland) we use e.g. the shell and all user utilities
    are part of it: http://www.busybox.net/

    To get started with a linux image in the sim you should not have to
    worry about the ramdisk right away since with most of the patches I
    know of it is included.

    You might want to download the script we now have at:
    http://www.opencores.org/projects.cgi/web/or1k/gnu_toolchain_port
    and take a look within the script(if you run as sudo or root) we
    actually build Busybox, mount the ramdisk, and install the Busybox
    code onto the disk.

    At MOF you can check out for vanilla examples if you want to "roll
    your own":
    http://www.meansoffreedom.com/Ramdisk_Howto.html
    http://www.meansoffreedom.com/SimpleBusyBox.html

    And finally this is pretty good for a howto book:
    http://oreilly.com/catalog/9780596002220/

    HTH,

    Rich d


    ----- Original Message -----
    From: kobegpfan at yahoo.com<kobegpfan@y...>
    To:
    Date: Tue Jul 15 09:12:19 CEST 2008
    Subject: [openrisc] How to run uClinux on or1ksim

    > Hi,
    >
    > Maybe you saw my posts these days. As you know I have just finished
    > toolchain porting and, the next step, I hope to port a uclinux (or
    > any
    > other OS you recommend) and run it on the or1ksim. I just wonder
    > how
    > can I do it. I summarized several questions. Hope to get help from
    > anybody who experienced in it.
    > - Where to get the OS source which should be compatible with gcc
    > 3.4.4, uClibc 0.9.28.3 and binutils2.16.1.
    > - how to make it runnable with or1ksim
    > - I found some articles about "ramdisk" "ROM file
    > system" "busybox",
    > would you please explain me what those are? And are they related to
    > make a runnable OS image for or1ksim?
    > Best regards,
    > Kobe
    >
    >

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