smd_private.h: No such file or directory - Android Q&A, Help & Troubleshooting

I'm trying to build a stand alone Android kernel and i want to write loadable kernel module, but when i build my module.c file, i have this error
Code:
error: smd_private.h: No such file or directory
search at google told me that i should change
Code:
<smd_private.h>
into
Code:
"smd_private.h"
in arch/arm/mach-msm/smd_init_dt.c file . but i dont have this file in my kernel folder !!!, so i download this file,but the error still exist!! Can you help me?

[Q]
any help?

Related

[Q] smd_private.h: No such file or directory while building loadable kernel module

I'm trying to build a stand alone Android kernel and i want to write loadable kernel module, but when i build my module.c file, i have this error
Code:
error: smd_private.h: No such file or directory
search at google told me that i should change
Code:
<smd_private.h>
into
Code:
"smd_private.h"
in
Code:
arch/arm/mach-msm/smd_init_dt.c
but i dont have this file in my kernel folder !!!, so i download this file,but the error still exist!!
plz help me

[Q] ROM build fails at copying install-recovery.sh

Hi! I'm trying to build the CypherOS ROM based on Android 6.0 for my Xiaomi Redmi Note 3, using CyanogenMod sources. The build seemed to be running just fine until it stopped at this bit near the end:
Code:
putting script in etc/install-recovery.sh
cp: cannot stat '/home/nsood/cypher/out/target/product/kenzo/ota_temp/SYSTEM/bin/install-recovery.sh': No such file or directory
build/core/Makefile:1077: recipe for target '/home/nsood/cypher/out/target/product/kenzo/system/bin/install-recovery.sh' failed
make: *** [/home/nsood/cypher/out/target/product/kenzo/system/bin/install-recovery.sh] Error 1
make: Leaving directory '/home/nsood/cypher'
It seems to be copying some install-recovery.sh from a temporary folder to the permanent one, but fails because there's no install-recovery.sh in system/bin there.
Some digging showed it is present in system/etc though:
Code:
$ find | grep install-recovery.sh
./out/target/product/kenzo/ota_temp/SYSTEM/etc/install-recovery.sh
Where is this file supposed to be? How do I point it to the right location? Anything I can do to fix this?
This is an error in your fstab.
Check you BoardConfig for the definition of TARGET_RECOVERY_FSTAB.
This defined file is the file that makes brunch bail out.
Unfortunately I do not know exactly what causes it, so you need to play around.
P.S.: The error in fstab is probably that either the mount for /boot or for /recovery is missing.
Hi @NSDCars5
How did you solve this...
I'm getting the same error when'm building for UMI Z
First time I'm building Android ,and building for a new device
If I copy install-recovery.sh from etc/ to bin/ the build continues... but there has to be a reason for it to end up in etc?
Go into build/core/make file.mk and somewhere near line 1057 you'll see a
(hide)(ota)"something blahblahblah" install-recovery.sh
Comment it out with a #

Porting Cyanogenmod 13.0 for Lenovo K3 Note: build issues

Hi,
I am trying to port cyanogenmod 13.0 to the Lenovo K3 note.
I have two problems that I have not been able to solve despite googling and searching this forum. Any answers would be appreciated.
Problem 1)
Build terminates close to very end at this line:
Code:
Installing recovery patch to system partition
Warning: could not find RECOVERY/RAMDISK/etc/recovery.fstab
Warning: could not find SYSTEM/build.prop in <built-in function zip>
using prebuilt recovery.img from BOOTABLE_IMAGES...
using prebuilt boot.img from BOOTABLE_IMAGES...
cp: cannot stat ‘$OUT/target/product/aio_otfp/ota_temp/SYSTEM/bin/install-recovery.sh’: No such file or directory
build/core/Makefile:1074: recipe for target '$OUT/target/product/aio_otfp/system/bin/install-recovery.sh' failed
make: *** [$OUT/target/product/aio_otfp/system/bin/install-recovery.sh] Error 1
build/core/Makefile contains the lines
Code:
$(hide) cp $(ota_temp_root)/SYSTEM/bin/install-recovery.sh $(TARGET_OUT)/bin/install-recovery.sh
$(hide) cp $(ota_temp_root)/SYSTEM/recovery-from-boot.p $(TARGET_OUT)/recovery-from-boot.p
however the file install-recovery.sh is missing. In fact the whole $(ota_temp_root)/SYSTEM/bin/ directory is empty.
Has anyone encountered this error before, or have thoughts on a solution?
Problem 2)
If I remove the line entirely from the makefile (i.e. skip install-recovery.sh) the build completes successfully. The $OUT directory contains the files recovery.img, boot.img, system.img, userdata.img, and so forth. I can flash the recovery.img to my recovery partition, and all is well booting into it. However, there is no .zip file for flashing the system as a whole.
I have tried various combinations of make otapackage, make bacon, etc., but none of these seem to work (possibly they were features in previous versions of CM). Is there a different target I should use, or a flag that I need to change in the device tree?
Many thanks for everyone's help!

Problem with Android Kitchen with Asus ZenFone 2 Z00L .img MM on Linux

Hi guys i'm having a problem with Kitchen 0.224 on opening a system.img of Android MM 6.0.1.
when i start the process of creating a working folder and when the process is done i get the following message:
Compiling simg2img ...
In file included from sparse_crc32.c:46:0:
ext4_utils.h:29:23: fatal error: sys/types.h: No such file or directory
compilation terminated.
gcc: error: sparse_crc32.o: No such file or directory
rm: cannot remove '*.o': No such file or directory
Error: simg2img not successfully compiled!
to be specific i'm running kitchen on linux mint 18.2,followed all the steps to get kitchen working.
Phone Asus ZenFone 2 Z00L MarshMallow.img ROM .
any idea on what is wrong ?? how do i get to work and modify that ROM?
any lil help is appreciated
oh and before someone wonder and even ask yes i am a beginner on those stuff

Error trying to build AICP FOR OnePlus 6T (PLEASE)

Device tree: https://github.com/LineageOS/android_device_oneplus_fajita
Vendor tree:=
https://github.com/AICP/proprietary_vendor_oneplus/tree/q10.0/sdm845-common
Kernel Source:=
https://github.com/AICP/kernel_oneplus_sdm845
ROM Source:=
https://github.com/AICP/platform_manifest
Haste or Dogbin URL:=
hastebin.come/acozerifum.makefile
Issues:
Well there are multiple and I'll highlight them here:
frameworks/base/rs/jni/Android.mk: error: librs_jni (native: platform) should not link to libunwind_llvm ()
frameworks/base/rs/jni/Android.mk: error: librs_jni (native: platform) should not link to libclang_rt.ubsan_minimal-arm-android ()
external/p7zip/Android.mk: error: lib7z (native: platform) should not link to lib unwind_llvm ()
external/p7zip/Android.mk: error: lib7z (native: platform) should not link to lib clang_rt.ubsan_minimal-arm-android ()
In file included from frameworks/base/rs/jni/android_renderscript_RenderScript.c pp:27: system/core/base/include/android-base/macros.h:22:10: fatal error: 'utility' file not found #include <utility> ^~~~~~~~~ 1 error generated.
In file included from frameworks/base/rs/jni/android_renderscript_RenderScript.c pp:44: In file included from ./frameworks/native/include/gui/Surface.h:22: ./frameworks/native/include/gui/IGraphicBufferProducer.h:31:10: fatal error: 'an droid/hardware/graphics/bufferqueue/1.0/IGraphicBufferProducer.h' file not found #include <android/hardware/graphics/bufferqueue/1.0/IGraphicBufferProducer.h>
List Of Things I Have Tried To Do To Try And Resolve This Error:=
For the IGraphicBufferProducer.h error I attempted to find the file and navigate to where it should be. I found a similarly named file but it was in the Hal file format and I didn't know what to do. The utility file error I have absolutely no idea what to do. Finally there are the "should not link to" errors and I opened Android.mk to remove them but these particular files arent even present in android.mk and for this reason I didn't know how to rectify this error. Hopefully someone can help me.

Categories

Resources