<feed xmlns='http://www.w3.org/2005/Atom'>
<title>svn-archive/archive/package/utils/nvram/src, branch master</title>
<subtitle>OpenWrt SVN history</subtitle>
<id>https://git.openwrt.org/openwrt/svn-archive/archive/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/openwrt/svn-archive/archive/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/svn-archive/archive/'/>
<updated>2015-07-08T06:05:43Z</updated>
<entry>
<title>nvram: get rid of NVRAM_SPACE</title>
<updated>2015-07-08T06:05:43Z</updated>
<author>
<name>Rafał Miłecki</name>
</author>
<published>2015-07-08T06:05:43Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/svn-archive/archive/commit/?id=97d4ec662f17c4e68a2ed06369a2c11289e255bd'/>
<id>urn:sha1:97d4ec662f17c4e68a2ed06369a2c11289e255bd</id>
<content type='text'>
Now we support NVRAM whatever its size is.

Signed-off-by: Rafał Miłecki &lt;zajec5@gmail.com&gt;

SVN-Revision: 46262
</content>
</entry>
<entry>
<title>nvram: fix displayed info about NVRAM size</title>
<updated>2015-07-08T05:42:30Z</updated>
<author>
<name>Rafał Miłecki</name>
</author>
<published>2015-07-08T05:42:30Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/svn-archive/archive/commit/?id=1f45f5896d15417390fc34cc920856005dcefda1'/>
<id>urn:sha1:1f45f5896d15417390fc34cc920856005dcefda1</id>
<content type='text'>
Use actual partition size and content offset to calculate it.

Signed-off-by: Rafał Miłecki &lt;zajec5@gmail.com&gt;

SVN-Revision: 46260
</content>
</entry>
<entry>
<title>Revert "Revert "nvram: increase NVRAM size to 64 KiB""</title>
<updated>2015-07-07T22:06:04Z</updated>
<author>
<name>Rafał Miłecki</name>
</author>
<published>2015-07-07T22:06:04Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/svn-archive/archive/commit/?id=2d329b2836479930175706f864dc10998a1a18de'/>
<id>urn:sha1:2d329b2836479930175706f864dc10998a1a18de</id>
<content type='text'>
This reverts commit r45579.

With the latest change r46251 ("nvram: fix "Segmentation fault" caused
by setting memory out of buffer") nvram utility shouldn't crash anymore.

It was tested on 3 brcm47xx devices:
1) Unknown with 0x10000 NVRAM size (0x8000 offset)
2) Linksys E1000 V2.1 with 0x10000 (0x8000 offset)
3) Linksys WRT300N V1 with 0x10000 (0x8000 offset)

And 3 bcm53xx devices:
1) Buffalo WZR-600DHP2 with 0x160000 NVRAM size
2) Buffalo WZR-1750DHP with 0x10000 NVRAM size
3) Netgear R6250 V1 with 0x180000 NVRAM size
(all using 0 offset)

This is an important change as it allows reading whole NVRAM. This may
critical when reading some basic configuration (e.g. switch ports).

Signed-off-by: Rafał Miłecki &lt;zajec5@gmail.com&gt;

SVN-Revision: 46253
</content>
</entry>
<entry>
<title>nvram: fix "Segmentation fault" caused by setting memory out of buffer</title>
<updated>2015-07-07T21:21:49Z</updated>
<author>
<name>Rafał Miłecki</name>
</author>
<published>2015-07-07T21:21:49Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/svn-archive/archive/commit/?id=2971fed621c3801917040f3557d86620f0a8e4ae'/>
<id>urn:sha1:2971fed621c3801917040f3557d86620f0a8e4ae</id>
<content type='text'>
Some MTD partitions with NVRAM have content starting in the middle. In
such case offset is set and nvram_header returns pointer to the middle.
It means we have to respect offset when calculating remaining space.

By the way use real MTD partition size (nvram_part_size variable) as we
may want to bump NVRAM_SPACE in the (very near) future.

Signed-off-by: Rafał Miłecki &lt;zajec5@gmail.com&gt;

SVN-Revision: 46251
</content>
</entry>
<entry>
<title>Revert "nvram: increase NVRAM size to 64 KiB"</title>
<updated>2015-04-24T15:38:38Z</updated>
<author>
<name>Rafał Miłecki</name>
</author>
<published>2015-04-24T15:38:38Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/svn-archive/archive/commit/?id=0c2c719de1e83b86b29b5ece3382fd81fc46b7b5'/>
<id>urn:sha1:0c2c719de1e83b86b29b5ece3382fd81fc46b7b5</id>
<content type='text'>
This reverts commit ff84c27a281bc19df19bc62ee8688cca5586f6e3.
This tool has really broken size handling (many values hardcoded), it
crashes right now in case of NVRAM not filling whole MTD partition.

Conflicts:
	package/utils/nvram/src/nvram.h

Signed-off-by: Rafał Miłecki &lt;zajec5@gmail.com&gt;

SVN-Revision: 45579
</content>
</entry>
<entry>
<title>nvram: fix regression in finding NVRAM beginning</title>
<updated>2015-04-24T14:28:57Z</updated>
<author>
<name>Rafał Miłecki</name>
</author>
<published>2015-04-24T14:28:57Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/svn-archive/archive/commit/?id=fb1f981eeb905771a0ed65bbd13d94e49656a167'/>
<id>urn:sha1:fb1f981eeb905771a0ed65bbd13d94e49656a167</id>
<content type='text'>
The loop was giving up too early as it never expected NVRAM smaller
than 0x10000.

Signed-off-by: Rafał Miłecki &lt;zajec5@gmail.com&gt;

SVN-Revision: 45578
</content>
</entry>
<entry>
<title>nvram: increase NVRAM size to 64 KiB</title>
<updated>2015-04-22T19:07:24Z</updated>
<author>
<name>Rafał Miłecki</name>
</author>
<published>2015-04-22T19:07:24Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/svn-archive/archive/commit/?id=cccf69baf3311927c43d35c5890fb79e67cf3873'/>
<id>urn:sha1:cccf69baf3311927c43d35c5890fb79e67cf3873</id>
<content type='text'>
For years Broadcom devices use 64 KiB NVRAM partition size and some of
them indeed have it filled in more than 50%. This change allows handling
whole NVRAM e.g. on Netgear WNDR4500 and Netgear R8000.

The same fix was applied to kernel in upstream commit 6ab7c29.

Reported-by: Hante Meuleman &lt;meuleman@broadcom.com&gt;
Signed-off-by: Rafał Miłecki &lt;zajec5@gmail.com&gt;

SVN-Revision: 45566
</content>
</entry>
<entry>
<title>nvram: refuse to open NVRAM for writing if it's too big to be handled</title>
<updated>2015-04-22T19:07:19Z</updated>
<author>
<name>Rafał Miłecki</name>
</author>
<published>2015-04-22T19:07:19Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/svn-archive/archive/commit/?id=d3a3361c74f933bdb55105651539f4856ade5a65'/>
<id>urn:sha1:d3a3361c74f933bdb55105651539f4856ade5a65</id>
<content type='text'>
Otherwise writing anything will result in loosing data.

Signed-off-by: Rafał Miłecki &lt;zajec5@gmail.com&gt;

SVN-Revision: 45565
</content>
</entry>
<entry>
<title>nvram: drop check for WGT634U using /proc/diag/model</title>
<updated>2015-04-22T19:07:12Z</updated>
<author>
<name>Rafał Miłecki</name>
</author>
<published>2015-04-22T19:07:12Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/svn-archive/archive/commit/?id=e5b7e4b274f26ce0b013a0b0d95eade2db885a39'/>
<id>urn:sha1:e5b7e4b274f26ce0b013a0b0d95eade2db885a39</id>
<content type='text'>
We don't have broadcom-diag for months or years now and the correct
solution is to simply don't have "nvram" partition on WGT634U anyway.

Signed-off-by: Rafał Miłecki &lt;zajec5@gmail.com&gt;

SVN-Revision: 45564
</content>
</entry>
<entry>
<title>nvram: use correct variable name for MTD partition size</title>
<updated>2015-04-22T19:07:06Z</updated>
<author>
<name>Rafał Miłecki</name>
</author>
<published>2015-04-22T19:07:06Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/svn-archive/archive/commit/?id=cd17c04f680681083abaab637ce5503941546142'/>
<id>urn:sha1:cd17c04f680681083abaab637ce5503941546142</id>
<content type='text'>
Sytax of /proc/mtd is following:
dev:    size   erasesize  name
which means that sscanf "mtd%d: %08x" reads size, not erasesize.

Signed-off-by: Rafał Miłecki &lt;zajec5@gmail.com&gt;

SVN-Revision: 45563
</content>
</entry>
</feed>
