[SOLVED] Kernel Compiling error - Galaxy Ace S5830 General

How do i fix this error
[email protected]:~/kernel****/GT-S5830_Kernel$ export ARCH=arm
[email protected]:~/kernel****/GT-S5830_Kernel$ export CROSS_COMPILE=/home/carlos/ndk/toolchains/arm-eabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi/
[email protected]:~/kernel****/GT-S5830_Kernel$ make clean
make: /opt/toolchains/arm-2009q3/bin/arm-none-linux-gnueabi-gcc: Command not found
/home/carlos/kernel****/GT-S5830_Kernel/scripts/gcc-version.sh: line 25: /opt/toolchains/arm-2009q3/bin/arm-none-linux-gnueabi-gcc: No such file or directory
/home/carlos/kernel****/GT-S5830_Kernel/scripts/gcc-version.sh: line 26: /opt/toolchains/arm-2009q3/bin/arm-none-linux-gnueabi-gcc: No such file or directory

It cannot find toolchain in your path. Try this, leave the "gcc" extension when you specify it, so in your case here the correct is "arm-none-linux-gnueabi-" not "arm-none-linux-gnueabi-gcc"

Toolchain not installed or you specified on /opt/toolchain but cant found (not installed again).
Leave config on toolchain default to system if you installed trough apt, or put on /opt if you download manually (eg. Extract .tar.gz not .deb but sometimes troublesome on library depedency).

diditdr said:
Toolchain not installed or you specified on /opt/toolchain but cant found (not installed again).
Leave config on toolchain default to system if you installed trough apt, or put on /opt if you download manually (eg. Extract .tar.gz not .deb but sometimes troublesome on library depedency).
Click to expand...
Click to collapse
didn't work
[email protected]:~/kernel****/GT-S5830_Kernel$ export CROSS_COMPILE=/home/carlos/ndk/toolchains/arm-eabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi/
[email protected]:~/kernel****/GT-S5830_Kernel$ export CROSS_COMPILE=/home/carlos/ndk/toolchains/arm-eabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc
[email protected]:~/kernel****/GT-S5830_Kernel$ make clean
make: /opt/toolchains/arm-2009q3/bin/arm-none-linux-gnueabi-gcc: Command not found
/home/carlos/kernel****/GT-S5830_Kernel/scripts/gcc-version.sh: line 25: /opt/toolchains/arm-2009q3/bin/arm-none-linux-gnueabi-gcc: No such file or directory
/home/carlos/kernel****/GT-S5830_Kernel/scripts/gcc-version.sh: line 26: /opt/toolchains/arm-2009q3/bin/arm-none-linux-gnueabi-gcc: No such file or directory
[email protected]:~/kernel****/GT-S5830_Kernel$ export CROSS_COMPILE=/home/carlos/arm-2010q1/bin/arm-none-eabi-gcc
[email protected]:~/kernel****/GT-S5830_Kernel$ make clean
make: /opt/toolchains/arm-2009q3/bin/arm-none-linux-gnueabi-gcc: Command not found
/home/carlos/kernel****/GT-S5830_Kernel/scripts/gcc-version.sh: line 25: /opt/toolchains/arm-2009q3/bin/arm-none-linux-gnueabi-gcc: No such file or directory
/home/carlos/kernel****/GT-S5830_Kernel/scripts/gcc-version.sh: line 26: /opt/toolchains/arm-2009q3/bin/arm-none-linux-gnueabi-gcc: No such file or directory
[email protected]:~/kernel****/GT-S5830_Kernel$ make mrproper
make: /opt/toolchains/arm-2009q3/bin/arm-none-linux-gnueabi-gcc: Command not found
/home/carlos/kernel****/GT-S5830_Kernel/scripts/gcc-version.sh: line 25: /opt/toolchains/arm-2009q3/bin/arm-none-linux-gnueabi-gcc: No such file or directory
/home/carlos/kernel****/GT-S5830_Kernel/scripts/gcc-version.sh: line 26: /opt/toolchains/arm-2009q3/bin/arm-none-linux-gnueabi-gcc: No such file or directory
tried both ndk and arm 2010.Followed tutorial. Could be because im on a VM

diditdr said:
Toolchain not installed or you specified on /opt/toolchain but cant found (not installed again).
Leave config on toolchain default to system if you installed trough apt, or put on /opt if you download manually (eg. Extract .tar.gz not .deb but sometimes troublesome on library depedency).
Click to expand...
Click to collapse
i just download the ndk unpack it, then the source and then export to compiler location but the message showed.
Then i tried 2010 and same thing.

U wrongly specify the path to the gcc crosscompile toolchain binary(the "arm-none-linux-gnueabi-gcc").
In your case here is the "export CROSS_COMPILE=/home/carlos/ndk/toolchains/arm-eabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi/" should be " export CROSS_COMPILE=/home/carlos/blah3/blah3/blah3/arm-none-linux-gnueabi-". Replace the blah3 with the correct path to the binary
Btw if u want to use codebench lite, do not, I repeat DO NOT download the archive and unpack. Download the binary version and install it.

Why are you splitting your queries into different threads ?
Defy-ing all limits.

EmoBoiix3 said:
Why are you splitting your queries into different threads ?
Defy-ing all limits.
Click to expand...
Click to collapse
this is about configuring enviroment to compilekernel, i dont know what u mean

Nop, ndk is like that, arm is like you say but didnt work . Two snapshots to see my folders just in case.

heres what wrong with the error so far in your case here.
1- it cannot find the gcc crosscompile toolchain binary in your path. thats because u download the archive and unpack manually. use codesourcery lite because its easier. it'll do all path exporting etc etc automatically when u install it and u dont need do worry about all this wrong path, wrong binary **** afterwards.
2- u wrongly specify the path to gcc crosscompile toolchain binary. it should be "export CROSS_COMPILE=/path/to/the/binary/arm-none-linux-gnueabi-". note the intended missing "gcc" extension at the end, thats highly important.

tried that path too. Same error. im gonna use the codesourcery lite you say. Thanks. There was an installer T_T. The guide i followed didnt say.

Installed but same thing happened. Snapshot
[email protected]:~/kernel****/GT-S5830_Kernel$ export CROSS_COMPILE=/home/carlos/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-eabi-
[email protected]:~/kernel****/GT-S5830_Kernel$ make clean && make mrproper
make: /opt/toolchains/arm-2009q3/bin/arm-none-linux-gnueabi-gcc: Command not found
/home/carlos/kernel****/GT-S5830_Kernel/scripts/gcc-version.sh: line 25: /opt/toolchains/arm-2009q3/bin/arm-none-linux-gnueabi-gcc: No such file or directory
/home/carlos/kernel****/GT-S5830_Kernel/scripts/gcc-version.sh: line 26: /opt/toolchains/arm-2009q3/bin/arm-none-linux-gnueabi-gcc: No such file or directory
make: /opt/toolchains/arm-2009q3/bin/arm-none-linux-gnueabi-gcc: Command not found
/home/carlos/kernel****/GT-S5830_Kernel/scripts/gcc-version.sh: line 25: /opt/toolchains/arm-2009q3/bin/arm-none-linux-gnueabi-gcc: No such file or directory
/home/carlos/kernel****/GT-S5830_Kernel/scripts/gcc-version.sh: line 26: /opt/toolchains/arm-2009q3/bin/arm-none-linux-gnueabi-gcc: No such file or directory
[email protected]:~/kernel****/GT-S5830_Kernel$
I think i'll try from zero tomorrow damn

here is the problem
Code:
/opt/toolchains/arm-2009q3/bin/arm-none-linux-gnueabi-gcc
why did it search for the toolchain there?

an0nym0us_ said:
here is the problem
Code:
/opt/toolchains/arm-2009q3/bin/arm-none-linux-gnueabi-gcc
why did it search for the toolchain there?
Click to expand...
Click to collapse
In this tutorial they say it's normal, that is part of the script. But i can't compile so mine isn't working.
http://forum.xda-developers.com/showthread.php?t=1442870
seems like the path was never recognized so i have to pass export as an argument on every make like this.
$ make export CROSS_COMPILE=/home/carlos/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-eabi-
and problem solved. Thanks dude.

So, kernel released?

Might wanna set the kernel in your PATH , as I've heard in source.android.com
Defy-ing all limits.

Related

Testsign tool !

Hi guys !
This my first little tool i'm build for resign zipfiles and apkfiles for linux users.
Unzip the testsign_tool.zip to your home directory,inside you will find a little howto.
Sorry for bad english.
Enjoy
1. you can use ~/ instead of /home/username/
2. you can use $USER instead of username
3. you left a hidden file .kopia in the scripts folder.
4. you assume that everybody has testsign.jar in his sdk folder, why not include it with this tool?
other than that, nice tool
Well this is my first script,must start somewhere
thank you .. good work ... it would have bin nice to include the jar file but hey thats what google is for right thanks thou
OK, I'm having a problem getting it to work. Here's what I did: I changed my sdk folder to androidsdk. I unzipped the testsign_tool to my androidsdk/tool folder. I edited the scripts to:
for zipfile script:
Code:
lear
echo
#
#set -x
#
file_date=$(date +%Y%m%d%H%M%S)
# Dir with signed file
working_dir="~/$USER/testsign_tool/update"
# directory that contains update.zip
zip_dir="../working"
jpath="~/$USER/androidsdk/tools/sign/testsign.jar"
cd $working_dir
java -classpath $jpath testsign $zip_dir/update.zip ${file_date}_file-signed.zip
if [ -f $working_dir/${file_date}_file-signed.zip ] ; then
echo "New file signed!"
sleep 2
exit 0
else
echo "Error, please check."
fi
and for apkfile script:
Code:
clear echo
#
#set -x
#
file_date=$(date +%Y%m%d%H%M%S)
# Dir with signed file
working_dir="~/$USER/testsign_tool/update"
# directory that contains update.apk
apk_dir="../working"
jpath="~/$USER/androidsdk/tools/sign/testsign.jar"
cd $working_dir
java -classpath $jpath testsign $apk_dir/update.apk ${file_date}_file-signed.apk
if [ -f $working_dir/${file_date}_file-signed.apk ] ; then
echo "New file signed!"
sleep 2
exit 0
else
echo "Error, please check."
fi
so that $USER will allow anyone to use without modifying the scripts with their own name. I renamed my Launcher.apk to update.apk.
I place the update.apk into the working folder from within the testsign_tool folder. I double click the menu.sh and select option 2 in order to resign/sign my new apk. After this I get a message in terminal saying:
Code:
scripts/do_apkfile: line 13: cd: ~/treken/testsign_tool/update: No such file or directory
Exception in thread "main" java.lang.NoClassDefFoundError: testsign
Caused by: java.lang.ClassNotFoundException: testsign
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: testsign. Program will exit.
Error, please check.
Press Enter to continue
any insight to my problem as to what I did wrong?
No version for windows? only for linux?

[Q] CM10.1 Won't suddenly won't build (No rule to make target...)

This isn't the first time I've tried to build Cyanogenmod for my i9100 on Ubuntu 12.10; I've done it successfully a few times before. However recently, it has just refused to build.
Code:
lunch cm_i9100-userdebug && mka
gave a bunch of errors: http://pastebin.com/Mn3YLZDY.
Code:
brunch cm_i9100-userdebug
gives different errors: http://pastebin.com/xiv4ettD. Teamhacksung's build script also gives the exact same errors. I tried starting in a new directory from scratch, but I still get the same errors.
The parts that look suspicious to me are
Code:
/bin/bash: line 0: cd: external/apache-harmony//home/ari/android/system/external/apache-harmony: No such file or directory
/bin/bash: line 0: cd: external/apache-harmony//home/ari/android/system/external/apache-harmony: No such file or directory
/bin/bash: line 0: cd: external/apache-harmony//home/ari/android/system/external/apache-harmony: No such file or directory
/bin/bash: line 0: cd: external/apache-harmony//home/ari/android/system/external/apache-harmony: No such file or directory
(/home/ari/android/system/external/apache-harmony does exist) and
Code:
/bin/bash: line 0: cd: libcore//home/ari/android/system/libcore: No such file or directory
/bin/bash: line 0: cd: libcore//home/ari/android/system/libcore: No such file or directory
/bin/bash: line 0: cd: libcore//home/ari/android/system/libcore: No such file or directory
/bin/bash: line 0: cd: libcore//home/ari/android/system/libcore: No such file or directory
find: `src': No such file or directory
I think this could be related to a repo sync problem I had/have where it couldn't download anything properly with lots of
Code:
Connection reset by peer
errors, although I think it has now synced (df -h shows 15GB). I also ran
Code:
repo forall -c "git fsck && git gc"
which "repairs" each repository, and that didn't give any errors.
Can anyone help with getting this to build?
EDIT: I found a post on the Android Building mailing list that was similar, and the suggestion to run
Code:
export CDPATH=""
(previously, $CDPATH=".")
got CM to build much further than before. No idea how this works, but it does.
However there are now more errors later during the build, e.g.
Code:
make: *** No rule to make target `/media/build/android/out/system/target/product/i9100/obj/lib/libTVOut.so', needed by `/media/build/android/out/system/target/product/i9100/obj/EXECUTABLES/mediaserver_intermediates/LINKED/mediaserver'. Stop.
It seems to have built a .zip flashable file now:
Code:
Package complete: /media/build/android/out/system/target/product/i9100/cm-10.1-20130121-UNOFFICIAL-i9100.zip
md5: f9fe076a6f0dfe140329e94ce6aa1867
Creating kernel zip...
Bootimage found...
No instructions to create out/target/product/i9100/kernel-cm-10.1-20130121-i9100-signed.zip... skipping.
Elapsed: 47 min(s) 20 sec(s)
but it says it can't create a kernel zip?

[Q] 1000 failures while trying to compile CM!

I'm tired of asking the same question again and again but for the thousandth and the last time I'll try my best to explain y'all the jeopardy I'm in.
I'm trying to build cm-10.2 from source for Sony Xperia E (nanhu) and everything started off just fine until I had to generate the skeleton files. I decided to use the mkvendor.sh to generate em. I have no clue why, but Sony seems to be in love with .elf files. And the best part, mkvendor only works with a standard boot.img file. Since I found mkvendor.sh the only convincing option, I decided to not use the other 2 options given here.
I extracted the kernel.sin from the ftf package of the kernel I downloaded, used flashtool to in turn extract kernel.sin which produced kernel.elf. I tried two things:
1) Unpack kernel.elf (flashtool elf extractor) and then pack em into a boot.img file (Failed as I couldn't pack em because I didn;t know how to use mkbootimg)
2) Rename kernel.elf to boot.img. as suggested by a developer of CM11 for Xperia E (Worked and was also accepted by mkvendor.sh)
I used mkvendor and it said that i don't have unpackbootimg binaries. I tried to make them by using:
make -j4 out/host/linux-x86/bin/unpackbootimg
Sadly I didn't know how to proceed so I got the binary from here and copied it to /usr/bin/ and made executable using:
sudo chmod a+x /usr/bin/unpackbootimg
Rebooted and it worked but you will see below that it isn't fixed 100% but it just works. I moved on and decided to use the script again on the renamed kernel.elf file(i.e. boot.img)
This is the following error I encounter while using mkvendor:
[email protected]:~/tools/FlashTool$ cd ~/source/cm/branch/cm-10.2
[email protected]:~/source/cm/branch/cm-10.2$ ./build/tools/device/mkvendor.sh sony nanhu ~/Desktop/boot.img
Arguments: sony nanhu /home/carbogen-chemist/Desktop/boot.img
Output will be in /home/carbogen-chemist/source/cm/branch/cm-10.2/device/sony/nanhu
*** Error in `unpackbootimg': free(): invalid next size (fast): 0x09793170 ***
./build/tools/device/mkvendor.sh: line 84: 3943 Aborted (core dumped) unpackbootimg -i $BOOTIMAGEFILE > /dev/null
gzip: ../boot.img-ramdisk.gz: No such file or directory
cpio: premature end of archive
cp: cannot stat ‘/tmp/carbogen-chemist/bootimg/boot.img-zImage’: No such file or directory
Creating initial git repository.
~/source/cm/branch/cm-10.2/device/sony/nanhu ~/source/cm/branch/cm-10.2
Initialized empty Git repository in /home/carbogen-chemist/source/cm/branch/cm-10.2/device/sony/nanhu/.git/
[master (root-commit) d49b660] mkvendor.sh: Initial commit of nanhu
7 files changed, 95 insertions(+)
create mode 100644 AndroidBoard.mk
create mode 100644 AndroidProducts.mk
create mode 100644 BoardConfig.mk
create mode 100644 cm.mk
create mode 100644 device_nanhu.mk
create mode 100644 recovery.fstab
create mode 100644 system.prop
~/source/cm/branch/cm-10.2
Done!
Use the following command to set up your build environment:
lunch cm_nanhu-eng
And use the follwowing command to build a recovery:
. build/tools/device/makerecoveries.sh cm_nanhu-eng
Since the script seems to look up for boot.img-ramdisk.gz and boot.img-zImage, I decided to investigate a bit further. I renamed boot.img to kernel.elf and used flashtool elf extractor to unzip kernel.elf. I obtained four files as a result of the extraction:
1) kernel.elf.bootcmd
2) kernel.elf.cert
3) kernel.elf.Image
4) kernel.elf.ramdisk.gz
Since mkvendor needed boot.img-ramdisk.gz and boot.img-zImage, I renamed all the files:
1) kernel.elf.bootcmd >> kernel.img-bootcmd
2) kernel.elf.cert >> kernel.img-cert
3) kernel.elf.Image >> kernel.img-zImage
4) kernel.elf.ramdisk.gz >> kernel.img-ramdisk.gz
Now I repackaged them using mkelf.py script. Since I couldn't find any command specific to nanhu, I edited it to fit for the device:
python mkelf.py -o edited.elf [email protected] [email protected],ramdisk [email protected],cmdline
This command throws no error and produces edited.elf. All of the files are packed in except kernel.img-cert as I didn't know the arguments for it ([email protected]?x????????,cert). I rename the edited.elf to boot2.img.
But I get the same error as the one I get when I use the unedited kernel (boot.img)
What should I do to get out of this format abyss? Would I have better luck with mkbootimg? If so, could you point me out to a thread or tell me here itself how to use it?
Thank you all!
TheUltimateNoobist said:
I used mkvendor and it said that i don't have unpackbootimg binaries. I tried to make them by using:
make -j4 out/host/linux-x86/bin/unpackbootimg
Sadly I didn't know how to proceed so I got the binary from here and copied it to /usr/bin/ and made executable using:
sudo chmod a+x /usr/bin/unpackbootimg
Rebooted and it worked but you will see below that it isn't fixed 100% but it just works. I moved on and decided to use the script again on the renamed kernel.elf file(i.e. boot.img)
Click to expand...
Click to collapse
Fixed it myself. How did I miss that note at cyanogenmod porting?
Cd'ed to my working directory. Ran :
sudo make -j4 otatools
and grabbed unpackbootimg from WORKING_DIR/out/host/linux-x86/bin/unpackbootimg and pasted to /usr/bin
Made it executable by running:
sudo chmod a+x /usr/bin/unpackbootimg
Reboot!
It would also be very helpful if anyone could point out what the correct config for Xperia E is. (For EG >> blue_mint_defconfig is for Xperia T, semc_zeus_defconfig is for Xperia Play)
There is a file called README_Xperia, which contains the configuration names for the different phones in the kernel source can be used for. But my source doesn't contain it. So I would be very grateful if someone pointed it out!
Thank you!
TheUltimateNoobist said:
I'm tired of asking the same question again and again but for the thousandth and the last time I'll try my best to explain y'all the jeopardy I'm in.
I'm trying to build cm-10.2 from source for Sony Xperia E (nanhu) and everything started off just fine until I had to generate the skeleton files. I decided to use the mkvendor.sh to generate em. I have no clue why, but Sony seems to be in love with .elf files. And the best part, mkvendor only works with a standard boot.img file. Since I found mkvendor.sh the only convincing option, I decided to not use the other 2 options given here.
I extracted the kernel.sin from the ftf package of the kernel I downloaded, used flashtool to in turn extract kernel.sin which produced kernel.elf. I tried two things:
1) Unpack kernel.elf (flashtool elf extractor) and then pack em into a boot.img file (Failed as I couldn't pack em because I didn;t know how to use mkbootimg)
2) Rename kernel.elf to boot.img. as suggested by a developer of CM11 for Xperia E (Worked and was also accepted by mkvendor.sh)
I used mkvendor and it said that i don't have unpackbootimg binaries. I tried to make them by using:
make -j4 out/host/linux-x86/bin/unpackbootimg
Sadly I didn't know how to proceed so I got the binary from here and copied it to /usr/bin/ and made executable using:
sudo chmod a+x /usr/bin/unpackbootimg
Rebooted and it worked but you will see below that it isn't fixed 100% but it just works. I moved on and decided to use the script again on the renamed kernel.elf file(i.e. boot.img)
This is the following error I encounter while using mkvendor:
[email protected]:~/tools/FlashTool$ cd ~/source/cm/branch/cm-10.2
[email protected]:~/source/cm/branch/cm-10.2$ ./build/tools/device/mkvendor.sh sony nanhu ~/Desktop/boot.img
Arguments: sony nanhu /home/carbogen-chemist/Desktop/boot.img
Output will be in /home/carbogen-chemist/source/cm/branch/cm-10.2/device/sony/nanhu
*** Error in `unpackbootimg': free(): invalid next size (fast): 0x09793170 ***
./build/tools/device/mkvendor.sh: line 84: 3943 Aborted (core dumped) unpackbootimg -i $BOOTIMAGEFILE > /dev/null
gzip: ../boot.img-ramdisk.gz: No such file or directory
cpio: premature end of archive
cp: cannot stat ‘/tmp/carbogen-chemist/bootimg/boot.img-zImage’: No such file or directory
Creating initial git repository.
~/source/cm/branch/cm-10.2/device/sony/nanhu ~/source/cm/branch/cm-10.2
Initialized empty Git repository in /home/carbogen-chemist/source/cm/branch/cm-10.2/device/sony/nanhu/.git/
[master (root-commit) d49b660] mkvendor.sh: Initial commit of nanhu
7 files changed, 95 insertions(+)
create mode 100644 AndroidBoard.mk
create mode 100644 AndroidProducts.mk
create mode 100644 BoardConfig.mk
create mode 100644 cm.mk
create mode 100644 device_nanhu.mk
create mode 100644 recovery.fstab
create mode 100644 system.prop
~/source/cm/branch/cm-10.2
Done!
Use the following command to set up your build environment:
lunch cm_nanhu-eng
And use the follwowing command to build a recovery:
. build/tools/device/makerecoveries.sh cm_nanhu-eng
Since the script seems to look up for boot.img-ramdisk.gz and boot.img-zImage, I decided to investigate a bit further. I renamed boot.img to kernel.elf and used flashtool elf extractor to unzip kernel.elf. I obtained four files as a result of the extraction:
1) kernel.elf.bootcmd
2) kernel.elf.cert
3) kernel.elf.Image
4) kernel.elf.ramdisk.gz
Since mkvendor needed boot.img-ramdisk.gz and boot.img-zImage, I renamed all the files:
1) kernel.elf.bootcmd >> kernel.img-bootcmd
2) kernel.elf.cert >> kernel.img-cert
3) kernel.elf.Image >> kernel.img-zImage
4) kernel.elf.ramdisk.gz >> kernel.img-ramdisk.gz
Now I repackaged them using mkelf.py script. Since I couldn't find any command specific to nanhu, I edited it to fit for the device:
python mkelf.py -o edited.elf [email protected] [email protected],ramdisk [email protected],cmdline
This command throws no error and produces edited.elf. All of the files are packed in except kernel.img-cert as I didn't know the arguments for it ([email protected]?x????????,cert). I rename the edited.elf to boot2.img.
But I get the same error as the one I get when I use the unedited kernel (boot.img)
What should I do to get out of this format abyss? Would I have better luck with mkbootimg? If so, could you point me out to a thread or tell me here itself how to use it?
Thank you all!
Click to expand...
Click to collapse
Nevermind :/ Fixed it myself.
Repacked the edited files using mkbootimg.
mkbootimg --kernel kernel.img-zImage --ramdisk kernel.img-ramdisk.gz --cmdline kernel.img-bootcmd -o boot.img

[Q] [HELP!!] Kernel Compiling problem

Code:
make: *** No rule to make target `device_user_defconfig'. Stop.
when trying to "make device_user_defconfig"
i use the toolchain arm-eabi-4.7 & add the necessary lines in the .bashrc file
Code:
#Android Toolchain PATH
export ARCH=arm
export CCOMPILE=$CROSS_COMPILE
export CROSS_COMPILE=arm-eabi-
export PATH=$PATH:/home/fracy/android/toolchain/bin/
i'm in root of kernel folder when i execute command
i'm new here and also new to kernel compiling please help
finally i got zImage!!

Help, Problem with mkvendor.sh to get device tree

Hi, im starting to learn to port roms following cyanogenmod guide but now i have this problem trying to generate the device tree of the dell venue 8 3830, i hope anyone can help me.
I run this:
Code:
./build/tools/device/mkvendor.sh dell yellowtail ~/boot.img
And i got this:
Code:
Arguments: dell yellowtail /home/quevon24/boot.img
Output will be in /home/quevon24/android/system/cm12/device/dell/yellowtail
gzip: ../boot.img-ramdisk.gz: No such file or directory
cpio: premature end of archive
cat: /tmp/quevon24/bootimg/boot.img-base: No such file or directory
cat: /tmp/quevon24/bootimg/boot.img-cmdline: No such file or directory
cat: /tmp/quevon24/bootimg/boot.img-pagesize: No such file or directory
cp: cannot stat
«/tmp/quevon24/bootimg/boot.img-zImage»: No such file or directory
Creating initial git repository.
~/android/system/cm12/device/dell/yellowtail ~/android/system/cm12
Reinitialized existing Git repository in /home/quevon24/android/system/cm12/device/dell/yellowtail/.git/
On master branch
nothing to commit, working directory clean
~/android/system/cm12
Done!
quevon24 said:
Hi, im starting to learn to port roms following cyanogenmod guide but now i have this problem trying to generate the device tree of the dell venue 8 3830, i hope anyone can help me.
I run this:
Code:
./build/tools/device/mkvendor.sh dell yellowtail ~/boot.img
And i got this:
Code:
Arguments: dell yellowtail /home/quevon24/boot.img
Output will be in /home/quevon24/android/system/cm12/device/dell/yellowtail
gzip: ../boot.img-ramdisk.gz: No such file or directory
cpio: premature end of archive
cat: /tmp/quevon24/bootimg/boot.img-base: No such file or directory
cat: /tmp/quevon24/bootimg/boot.img-cmdline: No such file or directory
cat: /tmp/quevon24/bootimg/boot.img-pagesize: No such file or directory
cp: cannot stat
«/tmp/quevon24/bootimg/boot.img-zImage»: No such file or directory
Creating initial git repository.
~/android/system/cm12/device/dell/yellowtail ~/android/system/cm12
Reinitialized existing Git repository in /home/quevon24/android/system/cm12/device/dell/yellowtail/.git/
On master branch
nothing to commit, working directory clean
~/android/system/cm12
Done!
Click to expand...
Click to collapse
Intel's provided their own custom boot image, thus default Google's unpack tool has no effect on it. Luckily, there are many dev shared their tool to unpack/repack it, i.e @shakalaca, or @social-design-concepts of your dell. You should find those repo, and download or build by yourself follow their guide, then place compiled tool to your path. After that, You can change at line 20 as below
Before:
Code:
UNPACKBOOTIMG=$(which unpackbootimg)
After modified:
Code:
UNPACKBOOTIMG=$(which unpack_intel)
P/s: unpack_intel here is just an example,only. In facts, it's maybe has different, depending its name on makefile. Good luck:laugh:
How to get the mkvendor.sh ?
quevon24 said:
Hi, im starting to learn to port roms following cyanogenmod guide but now i have this problem trying to generate the device tree of the dell venue 8 3830, i hope anyone can help me.
I run this:
Code:
./build/tools/device/mkvendor.sh dell yellowtail ~/boot.img
And i got this:
Code:
Arguments: dell yellowtail /home/quevon24/boot.img
Output will be in /home/quevon24/android/system/cm12/device/dell/yellowtail
gzip: ../boot.img-ramdisk.gz: No such file or directory
cpio: premature end of archive
cat: /tmp/quevon24/bootimg/boot.img-base: No such file or directory
cat: /tmp/quevon24/bootimg/boot.img-cmdline: No such file or directory
cat: /tmp/quevon24/bootimg/boot.img-pagesize: No such file or directory
cp: cannot stat
«/tmp/quevon24/bootimg/boot.img-zImage»: No such file or directory
Creating initial git repository.
~/android/system/cm12/device/dell/yellowtail ~/android/system/cm12
Reinitialized existing Git repository in /home/quevon24/android/system/cm12/device/dell/yellowtail/.git/
On master branch
nothing to commit, working directory clean
~/android/system/cm12
Done!
Click to expand...
Click to collapse
Hey can you please help me? I am trying to build device tree. I have done all the previous steps. But theres no mkvendor.sh file in my cm14.1 repo. Please help.
bnayagrawal said:
Hey can you please help me? I am trying to build device tree. I have done all the previous steps. But theres no mkvendor.sh file in my cm14.1 repo. Please help.
Click to expand...
Click to collapse
I didn't keep trying, but if you are trying for the same device, you can't use cm 14.1, but I think you need to use cm 12, there's no any development for other android versions.

Categories

Resources