Guest iAl3x Posted August 20, 2013 Report Posted August 20, 2013 Hi! I recently started to build CM10.1 as I can see nobody is working on custom ROMs for this device...I started to edit vache's device and vendor tree, but I'm still noob and I don't know where and what to start editing to work on android 4.2.2...So can anyone point me what to do or where to start editing I would be glad to hear your tips or advice as I want an working CM10.1 build for Acer... I tried to build it with the minor changes I've made but it gave me many errors...I've managed to get over some of them but now I'm stuck at this: /home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsgApi.cpp:184:28: error: use of undeclared identifier 'RS_CMD_ID_ContextInitToClient'; did you mean 'RF_ContextInitToClient'? const uint32_t cmdID = RS_CMD_ID_ContextInitToClient; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ RF_ContextInitToClient /home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsgApi.cpp:181:13: note: 'RF_ContextInitToClient' declared here static void RF_ContextInitToClient (RsContext rsc) ^ /home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsgApi.cpp:184:20: error: cannot initialize a variable of type 'const uint32_t' (aka 'const unsigned int') with an lvalue of type 'void (RsContext)' const uint32_t cmdID = RS_CMD_ID_ContextInitToClient; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # # configuration written to .config # /home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsgApi.cpp:197:5: error: use of undeclared identifier 'rsi_ContextDeinitToClient'; did you mean 'rsContextDeinitToClient'? rsi_ContextDeinitToClient((Context *)rsc); ^~~~~~~~~~~~~~~~~~~~~~~~~ rsContextDeinitToClient /home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsgApiFuncDecl.h:21:6: note: 'rsContextDeinitToClient' declared here void rsContextDeinitToClient (RsContext rsc); ^ /home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsgApiReplay.cpp:60:64: error: unknown type name 'RS_CMD_AllocationSetSurface' const RS_CMD_AllocationSetSurface *cmd = static_cast<const RS_CMD_AllocationSetSurface *>(vp); ^ make[1]: Leaving directory `/home/alex/CM10.1/android/system/kernel/acer/swing' /home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsgApi.cpp:203:28: error: use of undeclared identifier 'RS_CMD_ID_ContextDeinitToClient'; did you mean 'RF_ContextDeinitToClient'? const uint32_t cmdID = RS_CMD_ID_ContextDeinitToClient; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ RF_ContextDeinitToClient /home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsgApi.cpp:200:13: note: 'RF_ContextDeinitToClient' declared here static void RF_ContextDeinitToClient (RsContext rsc) ^ /home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsgApi.cpp:203:20: error: cannot initialize a variable of type 'const uint32_t' (aka 'const unsigned int') with an lvalue of type 'void (RsContext)' const uint32_t cmdID = RS_CMD_ID_ContextDeinitToClient; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsgApi.cpp:216:12: error: use of undeclared identifier 'rsi_TypeCreate'; did you mean 'rsTypeCreate'? return rsi_TypeCreate((Context *)rsc, e, dimX, dimY, dimZ, mips, faces); ^~~~~~~~~~~~~~ rsTypeCreate /home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsgApiFuncDecl.h:22:8: note: 'rsTypeCreate' declared here RsType rsTypeCreate (RsContext rsc, RsElement e, uint32_t dimX, uint32_t dimY, uint32_t dimZ, bool mips, bool faces); ^ /home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsgApiReplay.cpp:68:11: error: unknown type name 'RS_CMD_AllocationIoSend' const RS_CMD_AllocationIoSend *cmd = static_cast<const RS_CMD_AllocationIoSend *>(vp); ^ /home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsgApi.cpp:222:28: error: use of undeclared identifier 'RS_CMD_ID_TypeCreate' const uint32_t cmdID = RS_CMD_ID_TypeCreate; ^ /home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsgApiReplay.cpp:68:60: error: unknown type name 'RS_CMD_AllocationIoSend' const RS_CMD_AllocationIoSend *cmd = static_cast<const RS_CMD_AllocationIoSend *>(vp); ^ fatal error: too many errors emitted, stopping now [-ferror-limit] make: *** [/home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsScriptC_Lib.o] Error 1 make: *** Waiting for unfinished jobs.... make: *** [/home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsScriptC_LibGL.o] Error 1 make: *** [/home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsThreadIO.o] Error 1 /home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsgApiReplay.cpp:74:11: error: unknown type name 'RS_CMD_AllocationIoReceive' const RS_CMD_AllocationIoReceive *cmd = static_cast<const RS_CMD_AllocationIoReceive *>(vp); ^ /home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsgApiReplay.cpp:74:63: error: unknown type name 'RS_CMD_AllocationIoReceive' const RS_CMD_AllocationIoReceive *cmd = static_cast<const RS_CMD_AllocationIoReceive *>(vp); ^ /home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsgApiReplay.cpp:80:11: error: unknown type name 'RS_CMD_ContextFinish' const RS_CMD_ContextFinish *cmd = static_cast<const RS_CMD_ContextFinish *>(vp); ^ 20 errors generated. make: *** [/home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsgApi.o] Error 1 /home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsgApiReplay.cpp:80:57: error: unknown type name 'RS_CMD_ContextFinish' const RS_CMD_ContextFinish *cmd = static_cast<const RS_CMD_ContextFinish *>(vp); ^ /home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsgApiReplay.cpp:81:5: error: use of undeclared identifier 'rsi_ContextFinish'; did you mean 'rsContextFinish'? rsi_ContextFinish(con); ^~~~~~~~~~~~~~~~~ rsContextFinish /home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsgApiFuncDecl.h:31:6: note: 'rsContextFinish' declared here void rsContextFinish (RsContext rsc); ^ /home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsgApiReplay.cpp:86:11: error: unknown type name 'RS_CMD_ContextBindRootScript' const RS_CMD_ContextBindRootScript *cmd = static_cast<const RS_CMD_ContextBindRootScript *>(vp); ^ /home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsgApiReplay.cpp:86:65: error: unknown type name 'RS_CMD_ContextBindRootScript' const RS_CMD_ContextBindRootScript *cmd = static_cast<const RS_CMD_ContextBindRootScript *>(vp); ^ /home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsgApiReplay.cpp:92:11: error: unknown type name 'RS_CMD_ContextBindProgramStore' const RS_CMD_ContextBindProgramStore *cmd = static_cast<const RS_CMD_ContextBindProgramStore *>(vp); ^ /home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsgApiReplay.cpp:92:67: error: unknown type name 'RS_CMD_ContextBindProgramStore' const RS_CMD_ContextBindProgramStore *cmd = static_cast<const RS_CMD_ContextBindProgramStore *>(vp); ^ fatal error: too many errors emitted, stopping now [-ferror-limit] 20 errors generated. make: *** [/home/alex/CM10.1/android/system/out/target/product/swing/obj/SHARED_LIBRARIES/libRS_intermediates/rsgApiReplay.o] Error 1 Can someone help me with this? Thanks!
Guest Posted August 20, 2013 Report Posted August 20, 2013 I can't help you but Vache and davidevinavil both tried to build CM10.1. They have been unable to make it work so far and they are quite experienced with this, Vache probably being the most prolific dev on Acer devices :D That's why they both focused on CM10 so far. I guess their biggest issue was that although they could compile a ROM, it would boot but without display...
Guest Spacecaker Posted August 20, 2013 Report Posted August 20, 2013 display is because of kernel kernel needs to have updated display drivers and moddifying/porting them is hard
Guest gkai Posted August 27, 2013 Report Posted August 27, 2013 I have a compiling 10.1....but unfortunately it is of no real help for now, as it bootloop with its native kernel, and hang on boot with the CM10 kernel compiled by davi. At this point, I am not exactly sure how to build a booting kernel for CM10 (using the one provided by davi works though) and that's the point I'd like to understand before going further with CM10.1. The change I had to make to get CM10.1 to compile were not too big, mostly I took the CM10 device tree, de-activated FM and change a few things mainly related to camera interface (so I did not expect camera to work), but hoped to have a booting CM10.1.
Guest Spacecaker Posted August 27, 2013 Report Posted August 27, 2013 can you take logcat of the non booting rom >? maybe egl or hgl is confronting as for cm10;1 to boot we need to fix display drivers
Guest gkai Posted August 27, 2013 Report Posted August 27, 2013 can you take logcat of the non booting rom >? maybe egl or hgl is confronting as for cm10;1 to boot we need to fix display drivers yeah I will try that this WE, first I will sync my 10.1 with the repos and recompile it (should be ok, I did it many times already and only once did it break the compilation - fixed in the next commits). Not sure if there will be time for a logcat though, seems to bootloop quite early so I expect ADB service is not launched yet. A dmesg would be nice, but I do not know how to extract it from the device without having ADB access...
Guest Shreps Posted August 27, 2013 Report Posted August 27, 2013 Be sure to enable ADB in the build.prop And yes, hope your Kernel boot, ADB starts after the Kernel Or you can try to add some shell script in init.d / init.rc to dump dmesg in /sdcard/ for example
Guest Spacecaker Posted August 31, 2013 Report Posted August 31, 2013 gkai can you upload your cm10.1 build ?
Guest gkai Posted September 1, 2013 Report Posted September 1, 2013 gkai can you upload your cm10.1 build ? Here it is: https://docs.google.com/file/d/0BypB1uTnFV4PV24wMHBRbVBTM3c/edit?usp=sharing https://docs.google.com/file/d/0BypB1uTnFV4PVk9HeXZZUURUOFE/edit?usp=sharing md5sum and .zip... repo synced just 20 minutes ago and recompiled, but not tested....I would be very surprised if it does not bootloop, but it compile without error ;-)
Guest davidevinavil Posted September 1, 2013 Report Posted September 1, 2013 Can you share your device tree?
Guest razvankim Posted September 1, 2013 Report Posted September 1, 2013 @gkai Bootloop on your cm10.1 build:)
Guest davidevinavil Posted September 1, 2013 Report Posted September 1, 2013 (edited) @gkai Bootloop on your cm10.1 build:) Android system is boot up or just kernel? Any logcat or dmesg? Edited September 1, 2013 by davidevinavil
Guest razvankim Posted September 1, 2013 Report Posted September 1, 2013 I power on the device .. and i have acer Logo then..it shuts down ..and it power on after 2 3 sec..and again and again the same
Guest Spacecaker Posted September 1, 2013 Report Posted September 1, 2013 its kernel problem use cm10 boot.img i will try to boot tonight ;) i think i know what to do as it seems like same prob as on myold device
Guest Spacecaker Posted September 1, 2013 Report Posted September 1, 2013 (edited) soinfo_relocate(linker.cpp:1013): cannot locate symbol "__memmove_chk" referenced by "/system/bin/sh"...CANNOT LINK EXECUTABLE this is what i could get from adb logcat... only this i used CM10 boot.img and moddified updater.script it stays at bootlogo sh file indeed doesnt exist also when i added sh in bin or xbin i tried both and also together i get exact same error Edited September 1, 2013 by Spacecaker
Guest Spacecaker Posted September 2, 2013 Report Posted September 2, 2013 about the linker.cpp on cm10 i could only find one in external/mesa3d/src/glsl maybe we need to modify line 1013 to be read properly from our device will synch cm10.1 ;) and try myself can u give me link to ur device configs ? thank u
Guest vache Posted September 2, 2013 Report Posted September 2, 2013 (edited) Looks like because compiled libc.so is overwrited by the one in our vendor/device tree (Acer one). You may try to use libc.so from another cm10.1 ROM or don't use the Acer one. Edited September 2, 2013 by vache
Guest gkai Posted September 2, 2013 Report Posted September 2, 2013 Looks like because compiled libc.so is overwrited by the one in our vendor/device tree (Acer one). You may try to use libc.so from another cm10.1 ROM or don't use the Acer one. Thanks Vache, I will (try to) try that ;) How do you want I share my device tree? patch? share the whole directory on my gdrive?
Guest vache Posted September 2, 2013 Report Posted September 2, 2013 (edited) It could be better using Github ;) Edited September 2, 2013 by vache
Guest gkai Posted September 2, 2013 Report Posted September 2, 2013 It could be better using Github ;) Indeed...but, in addition to being a complete noob using git (I know just enough to clone repositories, I don't know how to commit anything, don't even know how to do a diff...), wouldn't comiting something that do not even boot be a little bit wrong? ;-) Anyway, if creating a new github or commiting my change into your device tree/ vendor tree is the way to go, is there a link where I can learn how to do it? Thanks!
Guest vache Posted September 2, 2013 Report Posted September 2, 2013 Github website have a really good wiki. ;) Of course, you can just upload your device tree somewhere then i'll make a new branch for CM10.1.
Guest Spacecaker Posted September 2, 2013 Report Posted September 2, 2013 (edited) http://forum.xda-dev...d.php?t=1877040 good guide for git ;) Edited September 2, 2013 by Spacecaker
Guest razvankim Posted September 2, 2013 Report Posted September 2, 2013 I can help testing your builds in -1 CPU type! Just give me PM and i will test it! Good luck with developing and let's hope you'll bring cm10.1 on our acer.
Guest vache Posted September 2, 2013 Report Posted September 2, 2013 (edited) Better after using default CM10.1 libc.so, but now still have same graphic bootloop issue. Logcat : http://pastebin.com/cAQuVHXC dmesg : http://pastebin.com/3Dc7nybL Edited September 2, 2013 by vache
Guest Spacecaker Posted September 2, 2013 Report Posted September 2, 2013 (edited) Better after using default CM10.1 libc.so, but now still have same graphic bootloop issue. Logcat : http://pastebin.com/cAQuVHXC dmesg : http://pastebin.com/3Dc7nybL i think that we might be able to boot it if we modify framebuffer in kernel E/hwcomposer( 1085): Failed to call ioctl MSMFB_OVERLAY_SET err=Invalid argument E/overlay ( 1117): cannot open framebuffer(2) but not all to sure try to comment this /*printk("huyu-------%s: lcd cmd_brightness_setting!\n",__func__); mipi_dsi_cmds_tx(&orise_tx_buf, cmd_brightness_setting, ARRAY_SIZE(cmd_brightness_setting));*/ out of mipi_orise_1080p.c or try to apply this patch https://www.codeaurora.org/cgit/quic/le//kernel/msm/patch/?id=e4eb02a22a66ae82af4638a03ffde2b87878269a Edited September 2, 2013 by Spacecaker
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now