Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 216067 - Sample ebuild to include BadRAM into gentoo-sources
Summary: Sample ebuild to include BadRAM into gentoo-sources
Status: RESOLVED DUPLICATE of bug 47994
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High enhancement
Assignee: Gentoo Linux bug wranglers
URL: http://rick.vanrein.org/linux/badram/
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2008-04-03 17:39 UTC by Peter GAAL
Modified: 2008-04-03 22:30 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
BadRAM patch for kernel 2.6.18.1 (1842_BadRAM-2.6.18.1.patch,31.26 KB, patch)
2008-04-03 17:43 UTC, Peter GAAL
Details | Diff
Changes in ChangeLog (ChangeLog.diff,304 bytes, patch)
2008-04-03 17:44 UTC, Peter GAAL
Details | Diff
Ebuild for BadRAM-patched kernel 2.6.18.1 (gentoo-sources-2.6.18-r42.ebuild,1.23 KB, text/plain)
2008-04-03 17:45 UTC, Peter GAAL
Details
Tarball with BadRAM-patch included (genpatches-2.6.18-42.base.tar.bz2,116.39 KB, application/x-bzip-compressed-tar)
2008-04-03 17:49 UTC, Peter GAAL
Details
Original tarball, only renamed (genpatches-2.6.17-6.extras.tar.bz2,866 bytes, application/x-bzip-compressed-tar)
2008-04-03 17:51 UTC, Peter GAAL
Details
Original tarball, only renamed (genpatches-2.6.18-42.base.tar.bz2,116.39 KB, application/x-bzip-compressed-tar)
2008-04-03 18:11 UTC, Peter GAAL
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter GAAL 2008-04-03 17:39:14 UTC
+++ This bug was initially created as a clone of Bug #47994 +++

> I'd like for BadRAM to be included in the list of kernel patches in package sys-kernel/gentoo-dev-sources .
> BadRAM's objective is to allow the use of memory that have a few bad bytes safely by preventing programs from allocating the bad adresses.
> More details & patch at the given URL.

The steps to do it yourself are the straight-forward:
1) Make up a new, local release of your favorite gentoo-sources;
2) Copy genpatches-*.{base,extras}.tar.bz2 in yout distfiles directory to two files showing your new release number;
3) Download the corresponding patch file from the site above;
4) Rename it following the example;
5) Add the patch file to the base tarball;
6) Make a fresh digest of the new ebuild;
7) Emerge & install the patched gentoo-sources.
Comment 1 Peter GAAL 2008-04-03 17:43:03 UTC
Created attachment 148464 [details, diff]
BadRAM patch for kernel 2.6.18.1

Already included into genpatches-2.6.18-42.base.tar.bz2
Comment 2 Peter GAAL 2008-04-03 17:44:15 UTC
Created attachment 148465 [details, diff]
Changes in ChangeLog
Comment 3 Peter GAAL 2008-04-03 17:45:56 UTC
Created attachment 148469 [details]
Ebuild for BadRAM-patched kernel 2.6.18.1

K_GENPATCHES_VER must be set to the new release number!
Comment 4 Peter GAAL 2008-04-03 17:49:11 UTC
Created attachment 148470 [details]
Tarball with BadRAM-patch included
Comment 5 Peter GAAL 2008-04-03 17:51:37 UTC
Created attachment 148471 [details]
Original tarball, only renamed
Comment 6 Peter GAAL 2008-04-03 18:05:39 UTC
(In reply to comment #0)

For newer kernels, you only have to adapt the version numbers (I personally prefer versions optimized to a given hardware and running stable).

As an answer to http://bugs.gentoo.org/show_bug.cgi?id=47994#c1, I would say that the older a machine gets the sooner you could find yourself put back in those old days, when the RAM costed more than the PC itself, especially with originally high-end laptops.

And folks, believe me, HD and RAM defects *do* happen!
Comment 7 Peter GAAL 2008-04-03 18:11:06 UTC
Created attachment 148473 [details]
Original tarball, only renamed

Sorry, tarball http://bugs.gentoo.org/attachment.cgi?id=148471 was the wrong one.
Comment 8 Carsten Lohrke (RETIRED) gentoo-dev 2008-04-03 22:30:39 UTC
no chance - get it accepted upstream

*** This bug has been marked as a duplicate of bug 47994 ***