12-07-2013
Running only the Linux kernel of an Android device
I am looking for a way to run on top of the Linux kernel of an Android device. I want to use the existing configured Linux beneath Android rather than put a new Linux distribution onto a device.
The article "The Android boot process from power on" (sorry, forum won't let me paste the link) describes the boot process as:
1) execute Boot ROM code
2) execute first stage of the boot loader
3) load the Linux kernel and execute the init process
4) load Zygote, Dalvik etc.
5) loads the System server
6) Boot completed
I would like to find a way to interrupt it at the end of step 3, leaving a linux system without extra layers on top.
Has anyone tried this?
What needs to be done to deactivate the android layers and produce a linux device that I can put linux applications onto?
thanks in advance
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I am looking for a guide on how to program for either the Linux or FreeBSD (includes 4.4BSD, NetBSD or OpenBSD) kernel. I would prefer to learn how to write device drivers, but anything would help.
If you know, please email me at *removed* or leave a post here
Regards,
Farhan (0 Replies)
Discussion started by: Farhan
0 Replies
2. UNIX for Advanced & Expert Users
my Querry is
if i build a software on a specific linux kernel
and then try to run it on another linux kernel
....what can be the possible problems
or what errors can most probably appear while running the binary in an updated version of linux. (1 Reply)
Discussion started by: mobydick
1 Replies
3. Linux
I recently started working with Linux and wrote my first device driver for a hardware chip controlled by a host CPU running Linux 2.6.x kernel.
1. The user space process makes an IOCTL call with pointer to a user memory buffer.
2. The kernel device driver in the big switch-case of IOCTL,... (1 Reply)
Discussion started by: agaurav
1 Replies
4. Android
In case you did not know, Android 2.1, Éclair, runs on the 2.6.29 Linux kernel. However, the user space it is built atop Dalvik, a Google-designed custom JVM (Java virtual machine).
This is pretty interesting, when you think about it. The core of Android is the linux kernel, and the standard... (5 Replies)
Discussion started by: Neo
5 Replies
5. Fedora
I have been reading prep questions for my second unix academy exam, and there's a nuance, I'm not sure I understand it correctly.
I've been under impression from my readings of book by Evi Nemeth and from unix academy DVDs I've been watching, that kernel's modules are drivers. I think of it, as... (25 Replies)
Discussion started by: newlinuxuser1
25 Replies
6. UNIX for Advanced & Expert Users
Hi all!
I am trying to register a device in an existing device class, but I am
having trouble getting the pointer to an existing class.
I can create a class in a module, get the pointer to it and then use
it to register the device with:
*cl = class_create(THIS_MODULE, className);... (0 Replies)
Discussion started by: hdaniel@ualg.pt
0 Replies
7. Red Hat
Hi,
I want to use android Apps like whats up with my linux pc.
Can any one give some steps or way how to do the same ? (1 Reply)
Discussion started by: Priy
1 Replies
8. Android
Hi,
I have a program that logs serial port data. In order to do so it requires the full device name in linux (e.g. /dev/ttyUSB0) and a baudrate.
Does anyone know how I can find out the device name in the terminal? I am trying to port this application to Android and cant figure it out.
... (22 Replies)
Discussion started by: fedora18
22 Replies
9. UNIX for Beginners Questions & Answers
this is worked "ANDROID NOUGAT" how can i use it for "ANDROID OREO"
-plz help me...
-------------------------------------------
echo " Ã-~-DEVICE ID CHANGINGÃ-~-"
sleep 2
echo "
"
COUNT=1
while
do
;
echo "settings put secure android_id " | tr -d '\n' > X1... (4 Replies)
Discussion started by: f4is4l
4 Replies
LEARN ABOUT DEBIAN
mkimage
MKIMAGE(1) General Commands Manual MKIMAGE(1)
NAME
mkimage - Generate image for U-Boot
SYNOPSIS
mkimage [options]
DESCRIPTION
The mkimage command is used to create images for use with the U-Boot boot loader. These images can contain the linux kernel, device tree
blob, root file system image, firmware images etc., either separate or combined.
mkimage supports two different formats:
The old legacy image format concatenates the individual parts (for example, kernel image, device tree blob and ramdisk image) and adds a 64
bytes header containing information about target architecture, operating system, image type, compression method, entry points, time stamp,
checksums, etc.
The new FIT (Flattened Image Tree) format allows for more flexibility in handling images of various types and also enhances integrity pro-
tection of images with stronger checksums.
OPTIONS
List image information:
-l [uimage file name]
mkimage lists the information contained in the header of an existing U-Boot image.
Create old legacy image:
-A [architecture]
Set architecture. Pass -h as the architecture to see the list of supported architectures.
-O [os]
Set operating system. bootm command of u-boot changes boot method by os type. Pass -h as the OS to see the list of supported OS.
-T [image type]
Set image type. Pass -h as the image to see the list of supported image type.
-C [compression type]
Set compression type. Pass -h as the compression to see the list of supported compression type.
-a [load addess]
Set load address with a hex number.
-e [entry point]
Set entry point with a hex number.
-n [image name]
Set image name to 'image name'.
-d [image data file]
Use image data from 'image data file'.
-x Set XIP (execute in place) flag.
Create FIT image:
-D [dtc options]
Provide special options to the device tree compiler that is used to create the image.
-f [image tree source file]
Image tree source file that describes the structure and contents of the FIT image.
EXAMPLES
List image information:
mkimage -l uImage
Create legacy image with compressed PowerPC Linux kernel:
mkimage -A powerpc -O linux -T kernel -C gzip
-a 0 -e 0 -n Linux -d vmlinux.gz uImage
Create FIT image with compressed PowerPC Linux kernel:
mkimage -f kernel.its kernel.itb
HOMEPAGE
http://www.denx.de/wiki/U-Boot/WebHome
AUTHOR
This manual page was written by Nobuhiro Iwamatsu <iwamatsu@nigauri.org> and Wolfgang Denk <wd@denx.de>
2010-05-16 MKIMAGE(1)