1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Dismiss Notice

Release RISC OS Keypad Driver (pndkbd)

Discussion in 'Software Releases' started by devzero, Apr 2, 2012.

  1. devzero

    devzero Still Fresh

    Joined:
    Dec 9, 2011
    Messages:
    12
    There is a port available of RISC OS 5 for the Open Pandora. RISC OS was the first operating system for ARM. The RISC OS port doesn't support the keypad and the nubs. I developed a driver for the keypad.


    My entry for the Pandora Rebirth Competition has several files which are specific for RISC OS or Linux:


    pndkbd,3fb - ArcFS archive


    pndkbdsec,ffc - RISC OS self extracting image


    pndkbd.tgz - Source code


    The source code also includes the binary module pndkbd,ffa. RISC OS uses file types which are not supported on any other operating system. Someone invented the special file name scheme. The file type is added to the file name after a comma. If you copy a file to your RISC OS, you need to set the file type using the menu. For the ArcFS archive, you type 3fb in the filer menu. The ArcFS archive can be opened by !ArcFS or !SparkFS. If you don't have a system which boots you need to enter the command "desktop" or "!Boot" at the star prompt and use the self extracting image.


    Why isn't this packed into ZIP or RAR? I used file formats which are common on RISC OS, because it needs to be compatible with RISC OS.


    Recommendeted installation procedure:


    1. Install RISC OS: http://pandorawiki.o...OS_Installation. You will need an USB keyboard and a USB 2.0 or 3.0 hub until the pndkbd driver is installed.


    2. Copy the file pndkbdsec,ffc to a storage device which is readable by RISC OS (e.g. FAT). Rename it to a shorter file name.


    3. Set type of file pndkbdsec to ffc in filer menu (middle mouse button to open menu).


    4. Run the file pndkbdsec by double click


    5. Copy the Directory pndkbdroot.!Boot over your !Boot application ("." is the divider for directories under RISC OS, like "/" under Linux or "\" under Windows).


    6. Reboot (or double click on the pndkbd module).


    The Pandora keypad is now working. You can change the mapping of the keys with *configure pndkey until reboot (see http://www.riscosope...20Key%20Numbers). The Pandora Key is mapped to the Break-key.


    The L button (Shift) + Pandora Key kills programs which hangs or reboots. The mapping is RISC OS style, so you get the colon by pressing shift + FN + ",".


    Remember: You still need a mouse and a USB hub until the nubs are working stable.


    The installed files include a configuration for the LCD. Before this is active you need to click blindly on the disc symbol with the left mouse button. This symbol is in the lower left corner. Therefore it is easier to install RISC OS from a computer which already runs RISC OS and has USB or ZIP disk support (parallel, SCSI or USB). The RISC OS on the Pandora supports ZIP drives connected over USB.


    The source code is written for cross-compiling it under Linux. I don't have an armv7 compatible Norcroft Compiler (alignment). Therefore I am not able to build a complete RISC OS image.


    I've a preliminary version where the nubs are working as mouse, but it doesn't run stable. After a short time the software in the nubs seem to hang and I need to reset them. I think it is caused by polling the nubs (instead of using interrupts). I don't have the documentation for the nubs. So I released the current stable version.
     
  2. gruso

    gruso thunderbox

    Joined:
    Feb 28, 2008
    Messages:
    7,462
    Location:
    Sydney, Australia
    I guess this is going to have very few users and very little feedback! But I applaud you for the release. It makes me want to try RISC OS, after my PTOD issue is resolved.
     
  3. notaz

    notaz Certified Guru

    Joined:
    Aug 23, 2005
    Messages:
    4,645
    Location:
    Lithuania
    I did not realize there is pandora specific image of RISC OS on the main site, that's pretty cool.
     
  4. devzero

    devzero Still Fresh

    Joined:
    Dec 9, 2011
    Messages:
    12
    I didn't expected that it will win, but maybe it will help RISC OS to get a little bit more attention.
     
  5. bagmouse7

    bagmouse7 Member

    Joined:
    Oct 25, 2004
    Messages:
    293
    Thanks for your work on this. These old OSes are fascinating!
     
  6. hideki

    hideki Still Fresh

    Joined:
    Apr 7, 2011
    Messages:
    79
    Ahh, very pleased to see this, will we get to see a ROM image with it built in?


    I don't yet have the commercial compiler (or indeed an A7000 or RISC PC to run it on (although I did do a quick port of rpcemu in the hope the compilers could be run with that)) so haven't been able to do any work on this myself as yet -.-
     
  7. devzero

    devzero Still Fresh

    Joined:
    Dec 9, 2011
    Messages:
    12
    Someone needs to build a ROM image. The code is written for GCC and is not compatible with the Norcroft compiler, but it is not much code and can be changed. A newer Norcroft compiler will also run on the Pandora. I think this is suggested, because it is faster.
     
  8. trevj

    trevj Still Fresh

    Joined:
    Nov 22, 2010
    Messages:
    49
    Great! I'll be trying this out when my Pandora arrives :)
     
  9. quartercast

    quartercast Well-Known Member

    Joined:
    Feb 13, 2007
    Messages:
    1,548
    Nice, I didn't notice this before.


    Any developments devzero? Have you tried running ArcEm? I want to play ArcElite - apparently the best version of Elite ever.


    http://arcem.sourceforge.net/
     
  10. quartercast

    quartercast Well-Known Member

    Joined:
    Feb 13, 2007
    Messages:
    1,548
    Noticed that this thread doesn't actually contain a link to the kb driver or Rebirth entry.

    http://boards.openpandora.org/index.php?/topic/7766-rebirth-competition-release-thread/
     
    Last edited by a moderator: Feb 6, 2016 at 1:02 PM

Share This Page