Results 1 to 6 of 6

Thread: Suggestions / Wishlist for next version?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2004
    Location
    Wellington, NZ
    Posts
    477

    Question Suggestions / Wishlist for next version?

    Thought I would start with a possible safe way of handling palmod configuration changes and upgrades. The following is a mechanism which uses a type of "watchdog" to see if palmod has caused a crash... and if so, it will revert back to a known good configuration.

    Firstly you should backup your existing configuration, as one assumes that this is a working one:
    Code:
    # rw
    # cp /etc/palmod.conf      /etc/palmod-good.conf
    # cp /lib/modules/palmod.o /lib/modules/palmod-good.o
    # ro
    Then the following code should replace the "insmod -f /lib/modules/palmod.o `cat /etc/palmod.conf`" line in /etc/rc.d/rc.arch (somewhere near line #88):
    Code:
        if [ -f /var/log/palmod.watchdog ]; then
          echo "Watchdog file found, using last good configuration"
          /bin/rm /var/log/palmod.watchdog
          sync;sync;sync
          insmod -f /lib/modules/palmod-good.o `cat /etc/palmod-good.conf`
        else
          /bin/date >> /var/log/palmod.watchdog
          sync;sync;sync
          # Run palmod_config to set palmod options
          insmod -f /lib/modules/palmod.o `cat /etc/palmod.conf`
        fi
    The watchdog flag file should be removed once we are sure everything is alright. This can be either through cron, or more simply at the end of the /etc/rc.d/rc.sysinit.author script:
    Code:
    # Remove palmod watchdog flag
    if [ -f /var/log/palmod.watchdog ]; then
      echo "Removing watchdog file"
      /bin/rm /var/log/palmod.watchdog
    fi
    To check which configuration you are running you can either check /var/log/kernel or have a look at the output of "lsmod".

    Note: if anyone does get stuck in a boot-loop due to a bad palmod.o, the easiest way of resolving it is to use a serial cable to boot into the monitor and alter the boot parameters to change TV_STD from PAL to NTSC - This will skip the palmod phase of the bootstrap. Once it has come up you will be able to telnet in and fix the problem
    Last edited by thomson; 30-01-2005 at 08:41 PM.

Similar Threads

  1. Wishlist
    By johnhedge in forum Question and Answer Forum
    Replies: 1
    Last Post: 23-09-2013, 05:38 AM
  2. wishlist for SD only
    By JustinD in forum Australian TiVoHD
    Replies: 2
    Last Post: 02-03-2010, 08:55 AM
  3. Wishlist question regarding duplicates
    By ominous2003 in forum Question and Answer Forum
    Replies: 2
    Last Post: 01-12-2006, 02:45 PM
  4. Wishlist functionality not seemingly working
    By JustinD in forum Question and Answer Forum
    Replies: 8
    Last Post: 21-11-2006, 08:55 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •