Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
sirduke989
Old
#1  
Junior Member - OP
Thanks Meter 19
Posts: 24
Join Date: Feb 2012
Question Problems finding/compiling kernel images for Gen9

Hello, does anyone have a working .config file to compile a kernel that will work on the Archos Gen9 or any links to information specific to what is needed for our devices?

I have tried compiling the kernel from the ICS source on ubuntu 11.10 but I am unable to get it to boot and had to work around many errors just to get it to create the zImage.
 
djnilse
Old
#2  
djnilse's Avatar
Senior Member
Thanks Meter 590
Posts: 176
Join Date: Aug 2011
Location: Frankfurt am Main

 
DONATE TO ME
Quote:
Originally Posted by sirduke989 View Post
Hello, does anyone have a working .config file to compile a kernel that will work on the Archos Gen9 or any links to information specific to what is needed for our devices?

I have tried compiling the kernel from the ICS source on ubuntu 11.10 but I am unable to get it to boot and had to work around many errors just to get it to create the zImage.
I know where you can found what you want, you gonna filp out, i'm sure of it












in the root folder of the linux-ics kernel is a file called linux.config, now get things compiled and GOOD LUCK
Check out my holostyled ConvertItAll app, if you want to be amazed
Check out my Youtube-Channel HERE





My X8 Story
Xperia S (OpenSEMC CM10.1 built from sources)
Xperia X8 black 'n white (rooted, my version of alfs-kernel , GingerDX v030)
Archos Gen9Turbo
Nexus 7(cm10.1)


Check out my Github here
The Following User Says Thank You to djnilse For This Useful Post: [ Click to Expand ]
 
surdu_petru
Old
#3  
surdu_petru's Avatar
Recognized Contributor
Thanks Meter 3073
Posts: 2,130
Join Date: Feb 2010
Location: Paris

 
DONATE TO ME
Post How set environment for build kernel ICS !

Quote:
Originally Posted by sirduke989 View Post
Hello, does anyone have a working .config file to compile a kernel that will work on the Archos Gen9 or any links to information specific to what is needed for our devices?

I have tried compiling the kernel from the ICS source on ubuntu 11.10 but I am unable to get it to boot and had to work around many errors just to get it to create the zImage.
HI!

First you need to update your environment ( Ubuntu 11.10) with all the neccessary .lib
- sudo apt-get install gnupg flex bison gperf build-essential zip curl zliblg-dev libc6-dev libncurses5-dev x11proto-dev libx11-dev libreadline-dev libgl1-mesa-dev tofrodos python-markdown libxml2-utils xsltproc gettext make info libsdl-dev libxgtk2.6-dev automake
- download your toolchain => http://forum.xda-developers.com/show....php?t=1328027
- copy linux.config into /arch/arm/configs/archos_defconfig
For build zImage :
cd into kernel source directory ...
- export ARCH=arm
- export CROSS_COMPILE=/your directory/arm-archos/usr/bin/arm-linux-uclibcgnueabi-
- make ARCH=arm archos_defconfig
- make -j2
**************That's all *******
.....if you not get errors - you should find zImage into /arch/arm/boot/zImage
RC Surdu_Petru
*****
Asus Transformer TF300T | Quad Core 1.3GHz | 32GB | 1GB RAM ( AOKP 4.2.2 )
*****
Motorola RAZR XT910 | Dual Core 1.2GHz | 16GB | 1GB RAM ( AOKP 4.2.2 )
*****
Sony Xperia Z | Quad Core Qualcomm® Snapdragon™ S4 Pro 1.5GHz | 16GB | 2GB RAM ( stock 4.1.2 )

If you find my work useful, feel free to hit the THANKS button below !
The Following 2 Users Say Thank You to surdu_petru For This Useful Post: [ Click to Expand ]
 
sirduke989
Old
#4  
Junior Member - OP
Thanks Meter 19
Posts: 24
Join Date: Feb 2012
Thanks for the info, it appears that my problems may be coming from using an outdated toolchain. Basically I am trying to compile an updated kernel that I can run Ubuntu on but so far my kernel does not even boot to the boot menu that I created or the one in the Ubuntu thread that is using fbmenu.
 
szanalmas
Old
#5  
Member
Thanks Meter 12
Posts: 42
Join Date: Apr 2012
Quote:
Originally Posted by surdu_petru View Post
...
- download your toolchain => http://forum.xda-developers.com/show....php?t=1328027
- copy linux.config into /arch/arm/configs/archos_defconfig
For build zImage :
cd into kernel source directory ...
- export ARCH=arm
- export CROSS_COMPILE=/your directory/arm-archos/usr/bin/arm-linux-uclibcgnueabi-
- make ARCH=arm archos_defconfig
- make -j2
**************That's all *******
.....if you not get errors - you should find zImage into /arch/arm/boot/zImage
I do not know why it will be a huge size of the compiled kernel modules?
Any idea?
 
scholbert
Old
(Last edited by scholbert; 2nd May 2012 at 10:51 AM.)
#6  
Senior Member
Thanks Meter 436
Posts: 1,204
Join Date: Aug 2007
Quote:
Originally Posted by szanalmas View Post
I do not know why it will be a huge size of the compiled kernel modules?
Any idea?
The kernel modules contain some extra symbol information by default.
You may use the strip command to get rid of those.
Search the kernel Makefile for the command, i'm not sure of the function call right now...
Anyway it doesn't matter in the end, because the modules have the same size when they got loaded to RAM.

BTW, if you use my toolchain, you better unpack it in /opt.
There are some hard coded path's in some of the libraries.
If the toolchain is placed somewhere else you might run into trouble.
See this as well... http://forum.xda-developers.com/show...90&postcount=8

If someone needs a 64Bit toolchain built please tell me.

Best regards,

scholbert
The Following User Says Thank You to scholbert For This Useful Post: [ Click to Expand ]
 
szanalmas
Old
#7  
Member
Thanks Meter 12
Posts: 42
Join Date: Apr 2012
Quote:
Originally Posted by scholbert View Post
The kernel modules contain some extra symbol information by default.
You may use the strip command to get rid of those.
Best regards,
scholbert
Yes, thanks, strip working. strip -g -S -d -x -X *.ko and Hawaii!
 
Quallenauge
Old
(Last edited by Quallenauge; 19th June 2012 at 05:32 AM.) Reason: My DIV usage mismatch Solution
#8  
Senior Member
Thanks Meter 125
Posts: 109
Join Date: May 2012
Hi!

Thanks to the short information on #3 I was able to compile a kernel image of my own. I was curious to see if we can use another toolchain
like the one from Linaro which uses an 4.7 gcc (it has no specific tweaks for archos device like the toolchain from scholbert, I think).

After some modifications of the kernel (thanks google search!!) it compiles and a zImage was generated...which doesn't booted at all (black screen) :(

Then a hint came up on planet linaro : "Kernel not booting with Linaro GCC?". I tried it yesterday and it boots
--> Don't expect huge speed improvements (if there any). I get very similar results at the quadrant benchmark compared to the kernel provided by surdu_petru.

My patches to the kernel are located at the patch.txt file.

PS: I would like to try out the android-toolchain 4.7 (ICS), which is also provided by linaro.
It compiles, but at the final linker step a
"DIV usage mismatch between arch/arm/boot/compressed/misc.o and output"
is thrown. Maybe we have to wait once the patch is merged into binutils release - any help on this issue?

UPDATE: DIV usage mismatch solution
I found out, that the linker gold produces problems on my kernel build. So I changed the build process to use the bfd linker which compiles the kernel successfully.
Load the android build toolchain:
Code:
wget --no-check-certificate https://android-build.linaro.org/jenkins/view/Toolchain/job/linaro-android_toolchain-4.7-bzr/lastSuccessfulBuild/artifact/build/out/android-toolchain-eabi-4.7-daily-linux-x86.tar.bz2
Extract it:
Code:
tar xfj android-toolchain-eabi-4.7-daily-linux-x86.tar.bz2
Go into that directory and replace ld which points to ld.gold with that binary of ld.bfd:
Code:
cd android-toolchain-eabi
find . -name "*gold"
cp ./bin/arm-linux-androideabi-ld.bfd ./bin/arm-linux-androideabi-ld
cp ./bin/arm-eabi-ld.bfd ./bin/arm-eabi-ld
cp ./arm-eabi/bin/ld.bfd ./arm-eabi/bin/ld
cp ./arm-linux-androideabi/bin/ld.bfd ./arm-linux-androideabi/bin/ld
Then perform a build as normal.
Attached Files
File Type: txt patch.txt - [Click for QR Code] (2.1 KB, 147 views)

The Following 8 Users Say Thank You to Quallenauge For This Useful Post: [ Click to Expand ]
 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...