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

Compatibility with rev. 2 devices. #1

Open
Krush206 opened this issue Jul 14, 2019 · 5 comments
Open

Compatibility with rev. 2 devices. #1

Krush206 opened this issue Jul 14, 2019 · 5 comments

Comments

@Krush206
Copy link

How does one proceed to get this kernel working on a rev. 2 (released after the second half of 2014) device? I got the CM 13 kernel compiled successfully. The device boots up normally, but I only get a black screen.

Thanks in advance.

@androidlover5842
Copy link
Contributor

cm13 branch is for rev2

@Krush206
Copy link
Author

That's the branch I've used. I've also tried the one from weritos' repository, didn't work either.
There might be something slightly different on rev. 2's kernel. Its original kernel is a couple of bytes higher than the one for rev. 1 devices.
However, I'm unable to figure out what and where is the issue; dmesg doesn't log any errors.

@Krush206
Copy link
Author

I think the issue is related to the modules. Whenever I try to load them, it returns a Cannot execute binary file: Exec format error message.
I built the modules for the new compiled kernel, still aren't loadable. This time, I get errors such as insmod: failed to load cfg80211.ko: Bad address or c2 ath6kl_sdio: Unknown symbol cfg80211_sched_scan_results (err 0)

@Krush206
Copy link
Author

After revising and adding features to the kernel for a couple months, I finally figured out the issue. Turns out NT35502's device tree wasn't set in the configuration file. After setting it, I don't get a black screen, anymore.
For those who want to build the kernel for such devices, here are the lines you must add to the configuration file:
CONFIG_FB_MSM_MIPI_DSI_NT35502=y
CONFIG_FB_MSM_MIPI_NT35502_VIDEO_WVGA_PT=y
CONFIG_FB_MSM_MIPI_NT35502_VIDEO_WVGA_PT_PANEL=y

@androidlover5842
Copy link
Contributor

keep this issue open so others can see in future

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

No branches or pull requests

2 participants