New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
alephzain
Old
#1  
alephzain's Avatar
Member - OP
Thanks Meter 584
Posts: 89
Join Date: Sep 2010

 
DONATE TO ME
Default [Dev] Kexec support for Gen8 kernel

Hi,

You will found here the kernel source tree archos-gpl-gen8-kernel with kexec support.
Tested on A101IT.
The Following 3 Users Say Thank You to alephzain For This Useful Post: [ Click to Expand ]
 
CalcProgrammer1
Old
(Last edited by CalcProgrammer1; 22nd February 2012 at 05:37 PM.)
#2  
Senior Member
Thanks Meter 212
Posts: 266
Join Date: Oct 2007
Location: Illinois
Awesome, will have to look into this as I've been trying to get kexecboot up and running. I want to be able to boot Ubuntu with a different kernel than Android, and so far it hasn't worked.

Edit: How are you compiling this kernel? I copied linux.config to .config and ran:

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- -j9

and it errors on

drivers/usb/storage/archos_hdd.c: At top level:
drivers/usb/storage/archos_hdd.c:30:27: fatal error: ../../scsi/sd.h: No such file or directory

EDIT again:

Change the <>'s to ""'s in the line in archos_hdd.c:
#include <../../scsi/sd.h>

Also apply this patch http://mailman.alsa-project.org/pipe...ay/016949.html

Then it should compile on the arm-linux-gnueabi-gcc compiler that Ubuntu ships using the above command. I have tested this on my A43 and it works perfectly, I booted Debian and ran the kexecboot bootloader (compiled from source on the device), it booted a 2.6.37+ kernel. You need the kexec-tools package installed for Debian.
Samsung Galaxy Note i717 16GB
-CM9 ICS @ 240dpi

HP TouchPad 32GB
-WebOS / CM9 ICS / Ubuntu 12.04

Archos 43 Internet Tablet - 16GB + 32GB mSD
-Android 2.2 Froyo / OpenAOS CM7 / Ubuntu 12.04

Dell Axim X50v - 128MB + 16GB CF
-Windows Mobile 6.1
The Following User Says Thank You to CalcProgrammer1 For This Useful Post: [ Click to Expand ]
 
alephzain
Old
(Last edited by alephzain; 22nd February 2012 at 06:40 PM.)
#3  
alephzain's Avatar
Member - OP
Thanks Meter 584
Posts: 89
Join Date: Sep 2010

 
DONATE TO ME
Quote:
Originally Posted by CalcProgrammer1 View Post
Edit: How are you compiling this kernel? I copied linux.config to .config and ran:
Compiled in archos buildroot env

Quote:
Originally Posted by CalcProgrammer1
Then it should compile on the arm-linux-gnueabi-gcc compiler that Ubuntu ships using the above command. I have tested this on my A43 and it works perfectly, I booted Debian and ran the kexecboot bootloader (compiled from source on the device), it booted a 2.6.37+ kernel. You need the kexec-tools package installed for Debian.
Good to hear.

Between a mirror of kernel source code is available on gitorious

And for those who would to test, you can download zImage and initramfs.cpio.gz

Edit:
After flashing these files, and boot in sde you will have the recovery menu plus a Kexec boot item where upload a zImage and initramfs.cpio.gz corresponding to system you want to execute
The Following User Says Thank You to alephzain For This Useful Post: [ Click to Expand ]