-
Notifications
You must be signed in to change notification settings - Fork 29
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
initial commit to enable Victara support #4
base: master
Are you sure you want to change the base?
Conversation
SOS vibrator, movie, ntp, input APIs
Clean up includes
Add silk-core-version
update the docs
Thanks, so the logcat looks pretty good. I see things from init.silk.rc starting up, like our Bluetooth daemon. Silk-init is failing at boot in the same way as when it's run explicitly. This no longer looks like a victara porting issue and a more general silk build issue, so \o/ for that For some reason, we're failing to require log/device at https://github.com/silklabs/silk/blob/master/bsp-gonk/vendor/silk/silk-sysutils/lib/index.js#L21. This dependency should be resolved at build time by webpack. It's possible there was a build error for silk-sysutils that didn't halt the build. Could you try rebuilding sys-sysutils (run mm in https://github.com/silklabs/silk/tree/master/bsp-gonk/vendor/silk/silk-sysutils) to check for an error? Otherwise the contents of /system/silk/node_modules/silk-sysutils/lib/index.js would be interesting to look at. I'll double check later today that I'm not seeing the same in a Nexus build . |
It's good to hear logcat is not plagued with errors :). I have run mm and it looks to run ok, this is the result:
About /system/silk/node_modules/silk-sysutils/lib/index.js, i created a new gist so you can check it here: I hope we are really close to have a working port. |
Thanks, the contents of index.js was very helpful. We had a bug, now fixed by a813116, whereby webpack was unable to locate the Please rebase the PR to the tip of the |
I don't know if this is good news, your fix worked!. The problem now is im creating a simple silk project and doing silk run. Im getting this
Could it be related to a missing driver? |
@angelpipe this is due to a race condition where silk is trying to start wpa before it is ready. This usually resolves itself in couple of seconds when wpa subsystem is ready. |
Hi @jainanshul. The problem is it keeps showing that message over and over until i stop it. I could leave it running for half an hour and the message would keep printing :( |
i found this on device logcat, i think there's a problem with the wpa subsystem and it is my fault
|
Oh, yep that looks suspicious! I'm not sure if this is still the case, but on the previous device logcat I also noticed this which looked like the modem was not happy -- https://gist.github.com/angelpipe/cc6417649b1eb7bf347d8eb02b093c25#file-logcat-L2643-L2665 |
@angelpipe -- hey are you still working on anything here, just wondering if this is PR ready to merge. Thanks! |
Well.... i never stopped working, but i haven't been able to make the wpa_suplicant work. Right now i'm trying a new build structure |
Hey @mvines. I haven't had luck nor fixing the wpa_supplicant problem nor trying to build with different sources. I don't know if i should spend more time trying to fix it or if i should try getting something that proved to work (like a CyanogenMod complete manifest) and migrate all patches to it to then remove the unnecessary things. Motorola has some info to build android for a variety of devices but sadly, Moto X 2014 is not on the instructions and repos look outdated. What would you recommend to do? |
Ugh. In my experience it's super helpful to have a buidable Android image to start from that demonstrates all the desired features (eg, wifi works) . Given the amount of vendor variance in Android I'd not want to start with anything less, there's to much risk of running into a binary blob that does something different with very little way to debug/trace it |
Hey... I built CyanogenMod 12.1 for victara, it works good when i do it following instructions. Then i tried to integrate my manifest into the bsp-gonk board scheme and built. I had some errors and i managed to fix them to get a successful build. The device keeps booting in the "android" screen. It even does not show the cyanogen logo(which i think is weird as it comes from a cyanogen manifest). I cannot check the logcat cause cyanogenmod comes with that disabled (Maybe i can tinker to make it work from scratch?). The thing is when i build the Silk style, i don't get the cyanogen zip, i just get the images and the generated recovery does not work. Maybe i am flashing it the wrong way?. This way is not proving to be easier :(. Do you have any thoughts?. PD: Im not using any patches, just the necessary ones to get a successful build. |
Hey,
I'm intending to enable Victara(Moto X 2nd generation) support. I have given some steps but i want to make sure I'm pointing in the right direction, and I still have some doubts. Please forgive me if i do very basic questions (I didn't know anything about AOSP building a week ago).
The approach
I want to use the most i can from AOSP because porting is easier as your current patches are written for it and mako board is a good starting point. Taking that in account, I'm using the same android-5.1.1_r1.xml file in my custom victara.xml. After that, I'm adding Cyanogen Mod's Victara repo into /device/motorola/victara; and finally, I add motorola vendor files into /vendor/motorola. Am I crazy or this should be enough to get an almost pure AOSP build for the device?. I hope I'm on the right path, you can check the details of this in the victara.xml file.
Patches
As i used the same AOSP version you're using for mako, i guess the only patches that i need to review are the device ones (is that assumption ok?). I found 5 patches that are candidates to be ported to victara's build. I have rewritten some and i have doubts in others, so i will give a status for each one of them.
This patch is currently ported in this branch. If you find a problem about it, feel free to point it out.
I haven't found any reference on CM's code where persist.sys.usb.config's value is set to mtp. Does it mean this patch is not necessary?. The file where the var is referenced is https://github.com/CyanogenMod/android_device_motorola_victara/blob/cm-12.1/rootdir/etc/init.mmi.usb.sh
In the fstab file from CM(https://github.com/CyanogenMod/android_device_motorola_victara/blob/cm-12.1/rootdir/etc/fstab.qcom), the /dev/block/platform/msm_sdcc.1/by-name/modem and /dev/block/platform/msm_sdcc.1/by-name/persist volumes are not listed so it is not possible to apply the change for the modem one. Should I add those volumes? could it affect the build?.
I have a big question here, Does Silk use only 2 underclocked cores all the time?. Besides that, i think this is the trickiest patch because this kind of configuration for mako is done only in init.mako.rc; but in CM it is done in two files https://github.com/CyanogenMod/android_device_motorola_victara/blob/cm-12.1/rootdir/etc/init.target.rc and https://github.com/CyanogenMod/android_device_motorola_victara/blob/cm-12.1/rootdir/etc/init.qcom.rc. I don't know in which one of those should I set the patch, my guess is init.qcom.rc as it includes init.target.rc. The other thing is I'm wondering if this patch is really necessary because CM does a lot of cpu settings in these files (could this patch as it is on mako cause conflicts with current CM settings?).
This patch is currently ported in this branch. If you find a problem about it, feel free to point it out.
Thank you so much for reading this long text!
Best Regards.