Re: backup BIOS settings

2012-02-15 Thread Łukasz Kurek
I tested it. It really works. 

Thank You!
Łukasz Kurek



Dnia 8 lutego 2012 21:13 Andrey Zonov  napisał(a):

> On 10.01.2012 7:01, Łukasz Kurek wrote:
> > Hi,
> > Is it possible to backup BIOS settings (CMOS configuration) to file and 
> > restore this settings on the other machine (the same hardware configuration 
> > and the same BIOS)?
> >
> > I try do it for this way:
> >
> > kldload nvram
> >
> > dd if=/dev/nvram of=nvram.bin   (backup)
> >
> > dd if=nvram.bin of=/dev/nvram   (restore)
> >
> >
> > but this way always load default BIOS settings, not my (probably there is 
> > some kind of error).
> 
> Try sysutils/nvramtool instead.
> 
> 
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"


Re: backup BIOS settings

2012-02-08 Thread Andrey Zonov

On 10.01.2012 7:01, Łukasz Kurek wrote:

Hi,
Is it possible to backup BIOS settings (CMOS configuration) to file and restore 
this settings on the other machine (the same hardware configuration and the 
same BIOS)?

I try do it for this way:

kldload nvram

dd if=/dev/nvram of=nvram.bin   (backup)

dd if=nvram.bin of=/dev/nvram   (restore)


but this way always load default BIOS settings, not my (probably there is some 
kind of error).


Try sysutils/nvramtool instead.

--
Andrey Zonov
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"


Re: backup BIOS settings

2012-01-09 Thread Ian Lepore
On Tue, 2012-01-10 at 04:01 +0100, Łukasz Kurek wrote:
> Hi,
> Is it possible to backup BIOS settings (CMOS configuration) to file and 
> restore this settings on the other machine (the same hardware configuration 
> and the same BIOS)?
> 
> I try do it for this way:
> 
> kldload nvram
> 
> dd if=/dev/nvram of=nvram.bin   (backup)
> 
> dd if=nvram.bin of=/dev/nvram   (restore)
> 
> 
> but this way always load default BIOS settings, not my (probably there is 
> some kind of error).

Oh wait, the patch I posted can't help, because it fixes a problem that
only happens when you read the same location repeatedly, and the nvram
driver never does that.  But it would still be interesting to examine
the nvram.bin file and see if it "looks reasonable".

-- Ian


___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"


Re: backup BIOS settings

2012-01-09 Thread Ian Lepore
On Tue, 2012-01-10 at 04:01 +0100, Łukasz Kurek wrote:
> Hi,
> Is it possible to backup BIOS settings (CMOS configuration) to file and 
> restore this settings on the other machine (the same hardware configuration 
> and the same BIOS)?
> 
> I try do it for this way:
> 
> kldload nvram
> 
> dd if=/dev/nvram of=nvram.bin   (backup)
> 
> dd if=nvram.bin of=/dev/nvram   (restore)
> 
> 
> but this way always load default BIOS settings, not my (probably there is 
> some kind of error).

Examine the contents of the nvram.bin file with hexdump.  If every byte
has the same value, I just posted a patch to this list earlier today
(subject is "trouble with atrtc") that will fix the problem.

Many new RTC chipsets have more than the original 114 bytes of nvram.
The nvram driver doesn't currently provide access to the extra banks.
I'm not sure whether the BIOS would store anything in those other banks,
but if so, failing to save and restore those values might cause the
behavior you see.

Also, it's not directly related to your question, but I notice the
nvram(4) manpage says the driver does nothing about the checksum, but
looking at the driver code, it does recalculate the checksum when it
writes to nvram.

-- Ian


___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"


backup BIOS settings

2012-01-09 Thread Łukasz Kurek
Hi,
Is it possible to backup BIOS settings (CMOS configuration) to file and restore 
this settings on the other machine (the same hardware configuration and the 
same BIOS)?

I try do it for this way:

kldload nvram

dd if=/dev/nvram of=nvram.bin   (backup)

dd if=nvram.bin of=/dev/nvram   (restore)


but this way always load default BIOS settings, not my (probably there is some 
kind of error).
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"