I8552-CM / android_kernel_delos3geur

Other
2 stars 2 forks source link

Compatibility with rev. 2 devices. #1

Open Krush206 opened 5 years ago

Krush206 commented 5 years ago

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 commented 5 years ago

cm13 branch is for rev2

Krush206 commented 5 years ago

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 commented 5 years ago

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 commented 4 years ago

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 commented 4 years ago

keep this issue open so others can see in future