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: Jeremy Bennett<jeremy.bennett@e...>
    Date: Thu Aug 14 19:14:49 CEST 2008
    Subject: [openrisc] linux-2.6.22
    Top
    On Mon, 2008-08-11 at 01:06 +0200, rich_daddio@y... wrote:
    > Hi All,
    > Patch linux_2.6.22_or32_unified_simtested.bz2 for or32 & linux-2.6.22
    > is available:
    > This patch CONTAINS a usable ramdisk and .config file included. sim
    > tested only as usual with the gcc-4.2.2, binutils.2.18.50,
    > uClibc-0.9.29 toolchain available using the build script at:
    > http://www.opencores.com/projects.cgi/web/or1k/gnu_toolchain_port
    >
    > It contains changes, fixes, and ideas by:
    > Rich D'Addio (noted by RGD in the code USUALLY)
    >
    > Note: This release required tweaks to the architecture specific kernel
    > module due to some changes in the kernel task structure and the way
    > thread_info is used.
    >
    > There are a lot of commented-out turds hanging around in this patch, I
    > am hoping to scrub most of this in the 2.6.23 patch, 2.6.22 will
    > contain the commented stuff --return to 2.6.22 if you think I have
    > broken anything badly...

    Hi Rich,

    Great work. This built and ran out of the box on Fedora 9 using GCC
    4.3.0. I was using the Or1ksim 0.2.0 patched for GDB 6.8.

    I did get some odd messages and echoing using the telnet UART interface:

    starting pid 17, tty '': '/bin/sh'


    BusyBox v1.7.5 (2008-04-26 13:18:58 EDT) built-in shell (ash)
    Enter 'help' for a list of built-in commands.

    /bin/sh: can't access tty; job control turned off
    # #


    # # stty -echo
    stty -echo

    # # ls
    bin etc linuxrc root tmp var
    dev home proc sbin usr
    # #

    I'm not sure what the message about job control means, nor why I get a
    double prompt. The double prompt seems to be a telnet thing - I don't
    get it with an xterm console.

    It also booted remotely on Or1ksim under control of GDB 6.8. Execution
    is MUCH slower, I think because the simulator is polling the TCP/IP
    connection on each cycle to see if a debug command has arrived. That
    needs to be event driven, but I can add that when I move things to the
    GDB Remote Serial Protocol.

    Minor pickiness 1. The start address in the executable is the start of
    the ROM image (0xc0000000), not the OpenRISC 1000 reset vector (0x100).
    This means you cannot just load the image in GDB and run, you must first
    set the program counter using set $pc=0x100. It would be nice if there
    was a way to make the start address 0x100.

    Minor pickiness 2. The telnet port chosen in 10084, which is in the
    registered port range. Although that port has not yet been registered,
    it might be an idea to set the default in the private range
    (49152-65535). The same applies even more to the commented out debug
    server_port - it uses 9999, which IS registered.

    You might like to consider editing out some of the fields in the sim.cfg
    file, which drive features not in Or1ksim 0.2.0. Here are the messages.
    Mostly due to the bus parameter for each component, which wasn't there
    in 0.2.0, but a couple due to the tick timer and PIC, which also had not
    been implemented.

    WARNING: config.memory: Invalid parameter: bus; ignoring.

    WARNING: config.memory: Invalid parameter: bus; ignoring.

    WARNING: config.memory: Invalid parameter: bus; ignoring.

    WARNING: config.immu: Invalid parameter: bus; ignoring.

    WARNING: config.dmmu: Invalid parameter: bus; ignoring.

    WARNING: config.ic: Invalid parameter: bus; ignoring.

    WARNING: config.dc: Invalid parameter: bus; ignoring.

    WARNING: config.cpu: Invalid parameter: bus; ignoring.

    WARNING: config.cpu: Invalid parameter: dbus; ignoring.

    WARNING: config.pm: Invalid parameter: bus; ignoring.

    WARNING: config.debug: Invalid parameter: bus; ignoring.

    WARNING: config.mc: Invalid parameter: bus; ignoring.

    WARNING: config.uart: Invalid parameter: bus; ignoring.

    WARNING: config.dma: Invalid parameter: bus; ignoring. WARNING: config.ethernet: Invalid parameter: bus; ignoring. WARNING: config.gpio: Invalid parameter: bus; ignoring. WARNING: config.vga: Invalid parameter: bus; ignoring. WARNING: config: Unknown section: tick; ignoring. WARNING: config: Unknown section: pic; ignoring. WARNING: config.fb: Invalid parameter: bus; ignoring. WARNING: config.kbd: Invalid parameter: bus; ignoring. WARNING: config.ata: Invalid parameter: bus; ignoring. ATB, Jeremy -- Tel: +44 (1202) 416955 Cell: +44 (7970) 676050 SkypeID: jeremybennett Email: jeremy.bennett@e... Web: www.embecosm.com

    ReferenceAuthor
    [openrisc] linux-2.6.22Rich_daddio

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