9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Sergey Reva <rs_rlab@mail.ru>
To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu>
Subject: [9fans] nvram
Date: Sun,  3 Apr 2005 15:50:00 +0300	[thread overview]
Message-ID: <1381791421.20050403155000@mail.ru> (raw)

Hello Fans

At least in this weekend I got time to finish nvram emulation for x86.
It's 32k i2c EEPROM which concected to LPT port, of course others ic's supported too.
For now it powered from pc power supply, but i believe it can work
from LPT power too... checking now...

For testing device I read plan9.ini manual and set nvr=/dev/i2c
at this moment i can't find any way to access device driver instead of write
     char nvr[]="#2";
     bind(nvr,dev,MAFTER);
to port/initcode.c
in this case I fail with
.... can't write key to nvram: i/o error...

Then I try greping sources with 'write key to nvram', and find
/sys/src/libauthsrv/readnvram.c
after I walk though it i find many interesting, like this
nvram, nvroff, nvrlen. Then I put settings to plan9.ini
       nvram=/dev/i2c
       nvroff=0        #as i understand this is offset in file? right?
       nvrlen=512
after that all work fine

but, also I try
  cat '#2!/i2c'
and it's work, but when i write this to nvram i fail with
...file does not exist '''#2!/i2c'''....

Now I ask how use this device without changing initcode.c?
-- 
http://rs-rlab.narod.ru                          mailto:rs_rlab@mail.ru



             reply	other threads:[~2005-04-03 12:50 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-03 12:50 Sergey Reva [this message]
2005-04-03 13:39 ` Russ Cox
2005-04-03 14:44   ` Sergey Reva
2005-04-03 15:07     ` Russ Cox
2005-04-04 10:03       ` C H Forsyth
2005-04-03 16:47     ` Sergey Reva
  -- strict thread matches above, loose matches on Subject: below --
2009-07-28 17:58 Lyndon Nerenberg
2009-07-28 18:08 ` erik quanstrom
2009-07-28 18:37   ` erik quanstrom
2009-07-29 13:43     ` Dan Cross
2009-07-29 13:48       ` erik quanstrom
2009-07-30 16:05         ` sqweek
2009-07-30 16:08           ` erik quanstrom
2009-07-30 16:22             ` sqweek
2009-07-30 17:58               ` erik quanstrom
2009-07-30 18:12           ` Steve Simon
2009-07-30 18:45             ` erik quanstrom
2009-07-28 21:59   ` Adriano Verardo
2009-07-28 18:09 ` ron minnich
2009-07-28 19:24   ` erik quanstrom
2009-07-28 22:38     ` ron minnich
2005-05-12 14:48 Sergey Reva
2005-05-12 15:10 ` Ronald G. Minnich
2005-05-12 16:47   ` Skip Tavakkolian
2005-05-12 23:52     ` Dan Cross
2003-08-26 21:17 [9fans] NVRAM Kenji Arisawa
2003-08-26 22:22 ` zfolkerts
2003-08-26 22:37   ` Kenji Arisawa
2003-08-26 22:49 ` ron minnich
2003-08-26 23:06   ` Kenji Arisawa
2000-09-06 23:21 [9fans] nvram Russ Cox
2000-09-06 23:33 ` Boyd Roberts
2000-09-06 23:00 jmk
2000-09-06 23:05 ` Boyd Roberts
2000-09-06 13:24 [9fans] Re: Kernighan interview (w/ Plan 9 mention) forsyth
2000-09-06 22:47 ` [9fans] nvram Boyd Roberts
2000-09-06 22:52   ` Boyd Roberts

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1381791421.20050403155000@mail.ru \
    --to=rs_rlab@mail.ru \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).