Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing kernel patches #123

Open
ydirson opened this issue May 20, 2012 · 2 comments
Open

Missing kernel patches #123

ydirson opened this issue May 20, 2012 · 2 comments

Comments

@ydirson
Copy link

ydirson commented May 20, 2012

"om resume-reason" apparently does not work, since it is expecting /sys/class/i2c-adapter/i2c-0/0-0073/neo1973-resume.0/resume_reason and/or /sys/devices/platform/s3c2440-i2c/i2c-0/0-0073/neo1973-resume.0/resume_reason (according to strace), where we only have /sys/devices/platform/s3c2440-i2c/i2c-0/0-0073/resume_reason

lindi- pointed to http://wiki.openmoko.org/wiki/Kernel/Upstreaming as the list of patches we should have

@radekp
Copy link
Owner

radekp commented May 21, 2012

This should be IMO fixed in omhacks upstream package. Upstreaming is nice, but as far as i know we dont have better kernel for GTA02 that works reliably now.

@radekp
Copy link
Owner

radekp commented May 21, 2012

This is untested patch for omhack:

diff --git a/omhacks/sysfs.c b/omhacks/sysfs.c
index 0a333df..4d81a0d 100644
--- a/omhacks/sysfs.c
+++ b/omhacks/sysfs.c
@@ -117,6 +117,8 @@ static const char* scan_resume_reason()
return "/sys/class/i2c-adapter/i2c-0/0-0073/neo1973-resume.0/resume_reason";
if (exists("/sys/devices/platform/s3c2440-i2c/i2c-0/0-0073/neo1973-resume.0/resume_reason"))
return "/sys/devices/platform/s3c2440-i2c/i2c-0/0-0073/neo1973-resume.0/resume_reason";

  •   if (exists("/sys/devices/platform/s3c2440-i2c/i2c-0/0-0073/resume_reason"))
    
  •           return "/sys/devices/platform/s3c2440-i2c/i2c-0/0-0073/resume_reason";
    return NULL;
    
    }
    static const char* scan_resume_reason2()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants