dt-bindings/clock/bcm2835.h: No such file or directory - android

I trying to build the android kernel for Raspberry Pi 2 from https://github.com/peyo-hd/device_brcm_rpi2, but I am facing the following build error when building dtbs:
$ ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make dtbs
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CHK include/generated/bounds.h
CHK include/generated/timeconst.h
CHK include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
DTC arch/arm/boot/dts/overlays/vc4-kms-v3d-overlay.dtb
arch/arm/boot/dts/overlays/vc4-kms-v3d-overlay.dts:8:39: fatal error: dt-bindings/clock/bcm2835.h: No such file or directory
compilation terminated.
make[2]: *** [arch/arm/boot/dts/overlays/vc4-kms-v3d-overlay.dtb] Error 1
make[1]: *** [arch/arm/boot/dts/overlays] Error 2
make: *** [dtbs] Error 2
Know that I have successfully built zImage using:
$ ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make zImage

vc4-kms-v3d-overlay.dtb seems to be referring to the wrong include directory. The correct include directory is in kernel/rpi/include/, so you will need to do the appropriate change inside vc4-kms-v3d-overlay.dtb.

Related

android kernel error: 'struct dentry' has no member named 'd_alias'

So I have cloned the android kernel source for my motorola mobile, and was in the process of building it.
Android Kernel Info:
Name: Android Kernel Motorola MSM8610
Device(Intended): Moto E
Hardware: MSM8610
Github: Kernel Source Link
Procedure:
First, I made the .config file using
make ARCH=arm msm8610_defconfig
then I tried to build the kernel image by creating a file name startBuild
startBuild:
make ARCH=arm SUBARCH=arm CROSS_COMPILE=/media/mohit/776b997b-f9a1-46c2-92a0-7f438c7b78e3/code/toolchain/arm-eabi-4.6/bin/arm-eabi- -j4
giving it required permissions
chmod +x startBuild
and executing it
./startBuild
But I am getting the following error message:
CHK include/linux/version.h
make[1]: Nothing to be done for 'arch/arm/boot/dtbs'.
CHK include/generated/utsrelease.h
make[1]: 'include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CHK kernel/config_data.h
CC fs/overlayfs/inode.o
fs/overlayfs/inode.c: In function 'ovl_permission':
fs/overlayfs/inode.c:71:11: error: 'struct dentry' has no member named 'd_alias'
fs/overlayfs/inode.c:71:11: warning: initialization from incompatible pointer type [enabled by default]
error, forbidden warning: inode.c:71
scripts/Makefile.build:307: recipe for target 'fs/overlayfs/inode.o' failed
make[2]: *** [fs/overlayfs/inode.o] Error 1
scripts/Makefile.build:443: recipe for target 'fs/overlayfs' failed
make[1]: *** [fs/overlayfs] Error 2
Makefile:957: recipe for target 'fs' failed
make: *** [fs] Error 2
make: *** Waiting for unfinished jobs..
So how to fix this error?
Thank you.
Since version 3.19 of Linux kernel d_alias member of struct dentry has been moved to the member's union d_u, see definition of struct dentry in include/linux/dcache.h.
So, replacing reference to d_alias member to d_u.d_alias should help with that compatibility problem.
That replasing may also be performed globally in all files, see e.g. this post about fixing given error in vmware-tools.

error while compiling u-boot

I am trying to build u-boot and getting these error
No private recovery resources for TARGET_DEVICE G0
Building U-boot
make -C u-boot ARCH=arm fio-om3xxx_config
make[1]: Entering directory `/home/mrigendra/GingerBread_2_3_4_FIO/u-boot'
Configuring for fio-om3xxx board...
rm: cannot remove `asm': Is a directory
make[1]: *** [fio-om3xxx_config] Error 1
make[1]: Leaving directory `/home/mrigendra/GingerBread_2_3_4_FIO/u-boot'
make: *** [uboot] Error 2
i don't know why it wants to remove asm directory.
do anybody have idea from where i should start ..

Error compiling kernel Galaxy Note3

I'm getting the following error when trying to compile the kernel of Note3.
This is a kernel from Samsung.
Does someone has any suggestion how to fix it?
make[1]: Leaving directory `/home/ran/android/system/kernel/samsung/ha3g'
make -C kernel/samsung/ha3g O=/home/ran/android/system/out/target/product/ha3g/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /home/ran/android/system/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi-" headers_install
make[1]: Entering directory `/home/ran/android/system/kernel/samsung/ha3g'
CHK include/linux/version.h
make[1]: Leaving directory `/home/ran/android/system/kernel/samsung/ha3g'
make -C kernel/samsung/ha3g O=/home/ran/android/system/out/target/product/ha3g/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /home/ran/android/system/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi-" zImage
make[1]: Entering directory `/home/ran/android/system/kernel/samsung/ha3g'
GEN /home/ran/android/system/out/target/product/ha3g/obj/KERNEL_OBJ/Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
Using /home/ran/android/system/kernel/samsung/ha3g as source for kernel
GEN /home/ran/android/system/out/target/product/ha3g/obj/KERNEL_OBJ/Makefile
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[3]: `include/generated/mach-types.h' is up to date.
CALL /home/ran/android/system/kernel/samsung/ha3g/scripts/checksyscalls.sh
CHK include/generated/compile.h
CC drivers/sensorhub/stm/factory/light_max88921.o
/home/ran/android/system/kernel/samsung/ha3g/drivers/sensorhub/stm/factory/light_max88921.c:78:1: fatal error: opening dependency file drivers/sensorhub/stm/factory/.light_max88921.o.d: No such file or directory
compilation terminated.
make[5]: *** [drivers/sensorhub/stm/factory/light_max88921.o] Error 1
make[4]: *** [drivers/sensorhub/stm] Error 2
make[3]: *** [drivers/sensorhub] Error 2
make[2]: *** [drivers] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/ran/android/system/kernel/samsung/ha3g'
make: *** [TARGET_KERNEL_BINARIES] Error 2
Somehow the folder factory was missing under out/target/product/ha3g/obj/KERNEL_OBJ/drivers/sensorhub/stm
When I added this folder (with mkdir) it worked.

android kernel source code compilation error

I need to customize the kernel of android to run on my Nexus S.
So I download the kernel with branch name "remotes/origin/android-samsung-2.6.35-gingerbread"
I tried to follow the instruction here http://source.android.com/source/building-kernels.html to build the kernel. To do this, I need the cross compile tool.In my target android source code version android-2.3.5_r1, there is no such tool(no prebuilts/ folder). So I downloaded the version 4.1.2 and set up the tool as path prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin .
Then I tried to build my kernel, but I got the following error:
[root#localhost samsung]# make
scripts/kconfig/conf -s arch/arm/Kconfig
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CC drivers/gpu/pvr/osfunc.o
In file included from drivers/gpu/pvr/osfunc.c:39:0:
include/linux/pagemap.h: In function 'fault_in_pages_readable':
include/linux/pagemap.h:415:16: error: variable 'c' set but not used [-Werror=unused-but-set-variable]
drivers/gpu/pvr/osfunc.c: In function 'OSAccessOK':
drivers/gpu/pvr/osfunc.c:2144:13: error: variable 'linuxType' set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
make[3]: *** [drivers/gpu/pvr/osfunc.o] Error 1
make[2]: *** [drivers/gpu/pvr] Error 2
make[1]: *** [drivers/gpu] Error 2
make: *** [drivers] Error 2
Should I just disable the "all warnings being treated as errors" to solve it? Or maybe I need a better toolchain?
PS: The tool chain of the master branch and branch 4.2 can not be used by me. Because it looks like they are made for a 64-bit OS while my linux is 32-bit
Do you have the path of ARCH=ARM and TOOLCHAIN pointing to the toolchain in \prebuilts folder?
make ARCH=ARM TOOLCHAIN=\<homeofAOSP>\prebuilt\.. herring_defconfig
make clean before you do the make

configure sphinxbase or pocketsphinx for android in ubuntu

I need to implement speech to text offline functionality for my android apps, I found library sphinxbase i tried to installed in ubuntu but something went wrong and the error occured.
I have download the both package of sphinxbase and pockectsphinx and placed in same directory , As document says i ran ./autogen.sh file successfuly after this one message occur to run make command to compile packages after make command there is some error occur
libtool: install: /usr/bin/install -c .libs/libsphinxbase.a /usr/local/lib/libsphinxbase.a
libtool: install: chmod 644 /usr/local/lib/libsphinxbase.a
libtool: install: ranlib /usr/local/lib/libsphinxbase.a/bin/bash: /home/speech: No such file or directory
make[4]: *** [install-libLTLIBRARIES] Error 127
make[4]: Leaving directory `/home/speech to text/Untitled Folder/sphinxbase/src/libsphinxbase'
make[3]: *** [install-am] Error 2
make[3]: Leaving directory `/home/speech to text/Untitled Folder/sphinxbase/src/libsphinxbase'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/home/speech to text/Untitled Folder/sphinxbase/src/libsphinxbase'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/speech to text/Untitled Folder/sphinxbase/src'
make: *** [install-recursive] Error 1
Strip off the space in the directory name.
Try renaming "speech to text" to "speechtotext".

Categories

Resources