Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Nvram-wake up with kernel 2.4.22



Hi,
 
I am trying to get nvram-wakeup working on an P3B-F board with kernel 2.4.22. Nvram-wakeup displays "RTC_DATE is beyond end of nvram-wakeup". I know the nvram.c has to be patched but the workaround isn't applicable to 2.4.22. The code is different and I get a lot compile errors after applying the patch. Does anybody know how to patch nvram.c from 2.4.22 ? Below you will find a bit of the code.
 
Regards
 
 
"define NVRAM_VERSION "1.2"
 
#include <linux/module.h>
#include <linux/config.h>
#include <linux/sched.h>
#include <linux/smp_lock.h>
#include <linux/nvram.h>
 
#define PC  1
#define ATARI  2
#define COBALT  3
 
/* select machine configuration */
#if defined(CONFIG_ATARI)
#  define MACH ATARI
#elif defined(__i386__) || defined(__x86_64__) || defined(__arm__)  /* and others?? */
#define MACH PC
#  if defined(CONFIG_COBALT)
#    include <linux/cobalt-nvram.h>
#    define MACH COBALT
#  else
#    define MACH PC
#  endif
#else
#  error Cannot build nvram driver for this machine configuration.
#endif
 
#if MACH == PC
 
/* RTC in a PC */
#define CHECK_DRIVER_INIT() 1
 
/* On PCs, the checksum is built only over bytes 2..31 */
#define PC_CKS_RANGE_START 2
#define PC_CKS_RANGE_END 31
#define PC_CKS_LOC  32
#define NVRAM_BYTES  (128-NVRAM_FIRST_BYTE)
 
#define mach_check_checksum pc_check_checksum
#define mach_set_checksum pc_set_checksum
#define mach_proc_infos  pc_proc_infos
 
#endif"

Home | Main Index | Thread Index