Open Krush206 opened 5 years ago
cm13 branch is for rev2
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.
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)
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
keep this issue open so others can see in future
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.