Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,813,477 Members 41,109 Now Online
XDA Developers Android and Mobile Development Forum

[Q] How to blacklist RAM sectors?

Tip us?
 
cozmy
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 7
Join Date: Jul 2013
Default [Q] How to blacklist RAM sectors?

Hi,

I have already posted some time ago about the problem with my phone ( http://forum.xda-developers.com/goog...ilure-t2822131 ) and now I come with a completion and a specific question to my problem.

The problem still persists ( https://www.dropbox.com/sh/5ym5v7z38...5QxnkZOkAZrDna ) the apps randomly crashing at times. This problem was encountered even on the stock Android before installing any additional app next to those already on it.

I assumed that I might have some broken RAM sectors and that the only possibility to remedy this problem is to deny the OS to use these sectores. As I don't know which sectors are the faulty ones, I will reserve at first 1GB RAM, continuing to do binary search until I manage to izolate them.

I read and found that that the memmap kernel parameter could help me: ( http://unix.stackexchange.com/questi...error-indicati )

My questions is how could I add this parameter to an Android kernel. At the moment I'm using ParanoidAndroid 4.45. I have tried until now apps such as Trickster MOD but memmap is not among the parameters I can edit.

Thanks for your help.
 
jd1639
Old
(Last edited by jd1639; 20th August 2014 at 01:11 AM.)
#2  
jd1639's Avatar
Recognized Contributor
Thanks Meter 3,367
Posts: 9,869
Join Date: Sep 2012
Location: Minnetonka, MN
Every consider just rma'ing the device. If you have bad sectors I doubt you'll be able to exclude them

Sent from my Nexus 5 using XDA Free mobile app
 
cozmy
Old
#3  
Junior Member - OP
Thanks Meter 0
Posts: 7
Join Date: Jul 2013
Quote:
Originally Posted by jd1639 View Post
Every consider just rma'ing the device. If you have bad sectors I doubt you'll be able to exclude them

Sent from my Nexus 5 using XDA Free mobile app
As I have said in my previous post, "Sending it to warranty is out of the question since this is a used device bought from a shady guy who is not answering my calls."

I am sure there must be a way to exclude the bad sectors. There are some useful links online but I don't have any idea how to start.

Useful links:
https://android.googlesource.com/ker...mware/memmap.c
https://github.com/hypnos-android/Hy...irmware-memmap
 
jd1639
Old
#4  
jd1639's Avatar
Recognized Contributor
Thanks Meter 3,367
Posts: 9,869
Join Date: Sep 2012
Location: Minnetonka, MN
Quote:
Originally Posted by cozmy View Post
As I have said in my previous post, "Sending it to warranty is out of the question since this is a used device bought from a shady guy who is not answering my calls."

I am sure there must be a way to exclude the bad sectors. There are some useful links online but I don't have any idea how to start.

Useful links:
https://android.googlesource.com/ker...mware/memmap.c
https://github.com/hypnos-android/Hy...irmware-memmap
Have you tried checking the file structure using e2fsck in an adb shell? Double check this because it can be dangerous to use but it should go something like this:

Open a cmd window
Type adb shell
Type e2fsck /dev/block/platform/msm_sdcc.1/by-name/userdata

Full disclosure, I have not run this on my own device

Sent from my Nexus 5 using XDA Free mobile app
 
cozmy
Old
#5  
Junior Member - OP
Thanks Meter 0
Posts: 7
Join Date: Jul 2013
Quote:
Originally Posted by jd1639 View Post
Have you tried checking the file structure using e2fsck in an adb shell? Double check this because it can be dangerous to use but it should go something like this:

Open a cmd window
Type adb shell
Type e2fsck /dev/block/platform/msm_sdcc.1/by-name/userdata

Full disclosure, I have not run this on my own device

Sent from my Nexus 5 using XDA Free mobile app
This is what I have got after running your command: http://prntscr.com/4eobxy
The only exception is that I added the -n parameter since I have not unmounted anything.
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes