Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,728,832 Members 51,436 Now Online
XDA Developers Android and Mobile Development Forum

[Q&A] Kernel-Building for Huawei Ascent P6

Tip us?
 
Hotfingers
Old
#21  
Hotfingers's Avatar
Senior Member
Thanks Meter 127
Posts: 282
Join Date: Jul 2012
Location: Roodepoort
Hi all,

I'd like to build the kernel, but I'm not winning.

I'm new to this kind of development, and am looking for some advice on how to get going..

My first thing is -After setting up Ubuntu, and downloading the source, I and the toolchain and doing sudo get The TheWorld... I can't get it to compile.
(Some error about an unterminated string constant when I try the make command..)

The other thing is how yo get the ramdisk out of boot.img

Thanks

Sent from my HUAWEI P6-U06 using XDA Free mobile app
Current phone: Huawei P6 (Stock B506)
Prev phone: XPERIA (LT15i) - Legacy CM 10.1 rom
 
surdu_petru
Old
(Last edited by surdu_petru; 16th May 2014 at 03:49 PM.)
#22  
surdu_petru's Avatar
Recognized Contributor
Thanks Meter 7457
Posts: 3,347
Join Date: Feb 2010
Location: Paris

 
DONATE TO ME
Quote:
Originally Posted by Hotfingers View Post
Hi all,

I'd like to build the kernel, but I'm not winning.

I'm new to this kind of development, and am looking for some advice on how to get going..

My first thing is -After setting up Ubuntu, and downloading the source, I and the toolchain and doing sudo get The TheWorld... I can't get it to compile.
(Some error about an unterminated string constant when I try the make command..)

The other thing is how yo get the ramdisk out of boot.img

Thanks

Sent from my HUAWEI P6-U06 using XDA Free mobile app
Hi!

First , you shouldn't use sudo when you want to build kernel .

You can unpack repack boot.img with a tool by @dsixda

Good luck!

Edit :

If you can post here your build error, maybe I can help you more ...
*****
Huawei Ascend P6 | Quad Core 1.5GHz | 8GB | 2GB RAM ( Omni ROM 4.4.4 ! )
*****
Motorola RAZR XT910 | Dual Core 1.2GHz | 16GB | 1GB RAM ( Pac - MAN 4.4.2 ! )
*****
HTC One M8 | Qualcomm MSM8974AB Snapdragon 801 2.3GHz | 16GB | 2GB RAM ( Stock 4.4.2 )

If you find my work useful, feel free to hit the THANKS button below !
The Following User Says Thank You to surdu_petru For This Useful Post: [ Click to Expand ]
 
Hotfingers
Old
#23  
Hotfingers's Avatar
Senior Member
Thanks Meter 127
Posts: 282
Join Date: Jul 2012
Location: Roodepoort
Default trouble with toolchain

Hi all, me again.

Sorry that I'm slow, but I don't get too much time to play with android stuff.
I've got everything set up now (as described in the 1st post), but I get an error in the toolchain when I try to run

Quote:
make clean && make mrproper
I have already run this bit of code to set all the variables correclty...
Code:
export ARCH=arm
export SUBARCH=arm
export CROSS_COMPILE=/media/david/Android_Dev_Data/android/kernel/toolchains/arm-linux-androideabi-4.6/bin/arm-linux-androideabi-

export PATH=$PATH:/media/david/Android_Dev_Data/android/kernel/toolchains/arm-linux-androideabi-4.6/bin/arm-linux-androideabi-

So now I get this error below (something about an Unterminated quoted string in "arm-linux-androideabi-gcc"...
Code:
/media/david/Android_Dev_Data/android/kernel/toolchains/arm-linux-androideabi-4.6/bin/arm-linux-androideabi-gcc: 4: /media/david/Android_Dev_Data/android/kernel/toolchains/arm-linux-androideabi-4.6/bin/arm-linux-androideabi-gcc: Syntax error: Unterminated quoted string
Building with KERNELRELEASE = 3.0.8
  CLEAN   .tmp_versions
/media/david/Android_Dev_Data/android/kernel/toolchains/arm-linux-androideabi-4.6/bin/arm-linux-androideabi-gcc: 4: /media/david/Android_Dev_Data/android/kernel/toolchains/arm-linux-androideabi-4.6/bin/arm-linux-androideabi-gcc: Syntax error: Unterminated quoted string
Building with KERNELRELEASE = 3.0.8
  CLEAN   scripts/basic
  CLEAN   scripts/kconfig
  CLEAN   scripts
  CLEAN   include/config include/generated arch/arm/include/generated
  CLEAN   .config .config.old include/linux/version.h
Does anyone have any idea what I've done wrong..?

Thanks,
Hotfingers
Current phone: Huawei P6 (Stock B506)
Prev phone: XPERIA (LT15i) - Legacy CM 10.1 rom
 
Hotfingers
Old
#24  
Hotfingers's Avatar
Senior Member
Thanks Meter 127
Posts: 282
Join Date: Jul 2012
Location: Roodepoort
Default Maaybe we can get a new kernel

Hi all,

Can some-one try applying a patch from https://www.kernel.org/pub/linux/kernel/v3.0/incr/ to our 3.0.8 kernel?
I wanted to do this, but I can't even get the kernel to compile.

My friend has a Samsung, and for his phone all kernels 3.0.x have the same ramdisk. So maybe we can even get 3.0.101 kernel by just applying patches to the 3.0.8 code that was released by Huawei..?
Current phone: Huawei P6 (Stock B506)
Prev phone: XPERIA (LT15i) - Legacy CM 10.1 rom
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes