Post Reply

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

OP raolleel

16th May 2014, 04:31 AM   |  #21  
Hotfingers's Avatar
Senior Member
Flag Roodepoort
Thanks Meter: 134
 
286 posts
Join Date:Joined: Jul 2012
More
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
16th May 2014, 11:34 AM   |  #22  
surdu_petru's Avatar
Recognized Contributor
Flag Paris
Thanks Meter: 8,153
 
3,526 posts
Join Date:Joined: Feb 2010
Donate to Me
Quote:
Originally Posted by Hotfingers

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 ...
Last edited by surdu_petru; 16th May 2014 at 03:49 PM.
The Following User Says Thank You to surdu_petru For This Useful Post: [ View ]
23rd June 2014, 03:09 PM   |  #23  
Hotfingers's Avatar
Senior Member
Flag Roodepoort
Thanks Meter: 134
 
286 posts
Join Date:Joined: Jul 2012
More
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
24th June 2014, 08:57 AM   |  #24  
Hotfingers's Avatar
Senior Member
Flag Roodepoort
Thanks Meter: 134
 
286 posts
Join Date:Joined: Jul 2012
More
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..?
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Ascend P6 Q&A, Help & Troubleshooting by ThreadRank