With the vanilla kernel included with the install (or when I set TARGET_KERNEL_UBUNTU := true in the BoardConfig.mk file) has the following module loaded:
When I compile my own kernel, there are no modules that show up when I run lsmod.
I am running UT 15.04 on a Nexus 5 (Hammerhead) and I am trying to start doing some kernel development (I want to get gadgetfs working properly) however I am running into some issues that I'd like to resolve before going further.
I have installed a custom kernel which I built from the following repository (branch ubp-5.1):
I have built the kernel (no modifications) with the
cyanogenmod_hammerhead_defconfig config options and successfully crafted a boot image to run on my target device.
However, when I boot into my new kernel, bluetooth and WiFi no longer work and I see that no drivers are loaded when I run
Presumably there is some configuration option that I am missing in my kernel, has anyone experienced this or can anyone point me in the right direction?
I believe that this is relevant to the error that I am getting:
[ 92.381860] SMSM: Modem SMSM state changed to SMSM_RESET. [ 92.382434] Fatal error on the modem. [ 92.382898] modem subsystem failure reason: dog.c:1495:Watchdog detects stalled initialization. [ 92.383360] subsys-restart: subsystem_restart_dev(): Restart sequence requested for modem, restart_level = RELATED. [ 92.383581] Notify: start reset [ 92.385078] subsys-restart: subsystem_shutdown(): [ed51cc00]: Shutting down modem [ 92.490177] pil-q6v5-mss fc880000.qcom,mss: Port f01c6200 halt timeout [ 92.599787] pil-q6v5-mss fc880000.qcom,mss: Port f01c6280 halt timeout [ 92.601371] smem_find(22, 40): wrong size 88 [ 92.601740] smem_find(22, 40): wrong size 88 [ 92.717946] modem_notifier_cb: sysmon_send_event error -38 [ 92.718155] M-Notify: General: 4 [ 92.719237] subsys-restart: subsystem_powerup(): [ed51cc00]: Powering up modem [ 92.804105] pil-q6v5-mss fc880000.qcom,mss: mba: Brought out of reset [ 93.399633] smd_pkt_open: wait on smd_pkt_dev id:0 allocation failed rc:-110 [ 93.588222] pil-q6v5-mss fc880000.qcom,mss: modem: Brought out of reset [ 93.651109] Notify: smsm init [ 93.688363] subsys-restart: subsys_err_ready_intr_handler(): Error ready interrupt occured for modem [ 93.689118] subsys-restart: subsystem_restart_wq_func(): [ed51cc00]: Restart sequence for modem completed.
I managed to get my own kernel compiled, the issue was that I did not have a console argument specified that I needed (I founded it on another post here)
Needed to be added to my kernel command line args.
Hope this is useful to someone in the future!
First and foremost, I am following this guide: https://docs.ubuntu.com/phone/en/devices/porting-new-device
I have managed to build and install Ubuntu Touch on my Nexus 5. I would like to compile a custom kernel but I am running into some issues.
First, I cloned the source tree from here: https://github.com/ubports/android_kernel_lge_hammerhead
Then I placed the source in the kernel/lge/hammerhead directory
Next I modified the device/lge/hammerhead/BoardConfig.mk to build using the cyanogenmod_hammerhead_defconfig configuration as a test run.
Now, onto the problems...
The first problem that I had was that the kernel was not getting the device tree appended to it, I was able to copy the original tree from my working boot.img and that bypassed my "dtb not found errors"
Now when I try to run my new image, by running:
fastboot boot my-img.img
I simply hang at the google logo. I've not made any modifications to the kernel source or configuration yet there is still something that I am missing.
Does anyone have any suggestions or ideas? I'd really like to start on some kernel development and I'm not terribly familiar with the Android ecosystem.