<html style="direction: ltr;">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi all,<br>
<br>
I recently built and flashed a coreboot image to my thinkpad x200s,
with an IFD generated by libreboot's ich9gen. After flashing,
everything seems okay, but if I let the Debian GNU/Linux installed
on that machine finish its booting, all the reasonable value inside
NVRAM will be reset to default during next boot (detected via
nvrancui), whether I shut it down properly or cut its power
violently. <br>
<br>
I have done several tests, whose result is listed below:<br>
<br>
<table cellpadding="2" cellspacing="2" border="1" width="100%">
<tbody>
<tr>
<td valign="top">Boot mode<br>
</td>
<td valign="top">NVRAM reset?<br>
</td>
</tr>
<tr>
<td valign="top">payload (reboot immediately)</td>
<td valign="top">no<br>
</td>
</tr>
<tr>
<td valign="top">parted magic<br>
</td>
<td valign="top">no<br>
</td>
</tr>
<tr>
<td valign="top">trisquel live<br>
</td>
<td valign="top">no<br>
</td>
</tr>
<tr>
<td valign="top">kali live<br>
</td>
<td valign="top">no<br>
</td>
</tr>
<tr>
<td valign="top">Debian recovery mode (reboot immediately)<br>
</td>
<td valign="top">no<br>
</td>
</tr>
<tr>
<td valign="top">Debian installer<br>
</td>
<td valign="top">no<br>
</td>
</tr>
<tr>
<td valign="top">Debian normal boot (with or without display
manager)<br>
</td>
<td valign="top">yes<br>
</td>
</tr>
<tr>
<td valign="top">Debian recovery mode (finish recovery and
continue booting)<br>
</td>
<td valign="top">yes<br>
</td>
</tr>
<tr>
<td valign="top">Debian normal boot with kernel of Debian
installer</td>
<td valign="top">yes<br>
</td>
</tr>
</tbody>
</table>
<br>
If I modify those value with nvramtool and reboot, they will be
reset to default. If I zero the nvram region in a normal booted
Debian by running "# nvramtool -B /dev/zero" and reboot, the content
of NVRAM will keep all zero, and will reset during next reboot.<br>
<br>
Now in order to keep using my preferred value, I may have to write
those value to cmos.default, enable STATIC_OPTION_TABLE, and then
build them into the image.<br>
<br>
The problem should be inside the Debian user land. Do you guys have
any clue how to locate it?<br>
<br>
Best regards,<br>
<br>
Persmule<br>
<p><br>
</p>
</body>
</html>