Getting started with Android-x86-curing startup parameters

Source: Internet
Author: User

Louiswang

Reprinted please indicate the source: http://blog.csdn.net/louiswangbing/article/details/6715930

 

Since Andorid-x86 received attention, more and more friends are being helped, but at the same time, more and more friends are being troubled. Here, I am going to talk about some of my questions recently.

A lot of friends recently asked me, "Android-x86 is very easy to use, but every time you go in to start the parameters have to re-knock again, really very troublesome, is there any good way to enter the parameter again?" I have been asking this question for a long time, but I have been suffering from the pressure of my work and have no time to talk about the solution. Let's talk about it now.

There are two ways to solidify the parameters:

  • One is to use the Ubuntu boot disk to modify the Android-x86 system parameters and save
  • Another is to modify the startup parameters by modifying the source code STARTUP script (the premise is that the source code of the android-x86 must exist ).

First, let's briefly introduce the first one (the vbox virtual machine is used as an example here ):

The first method is relatively simple, no conditions, the only prerequisite is that the Android-x86 is installed.

1. Find an ISO image for Ubuntu or other Linux systems and load it to a vbox virtual machine in the Android-x86, like this:

2. Modify the BIOS of the Android-x86 virtual machine, default boot from the disc to the first boot mode, like this:


3. next, you can start the Android-x86, at this time you will see the Ubuntu Cd (don't ask me why it is like this, this is just like installing a Windows system on your PC or inserting a CD to run ubuntu. There is no difference, but the environment is virtual.) like this:


4. Select try Ubuntu

5. After going in, you can see the hard drive of the Android-x86 in place, like this:


6. Enter the hard disk of the Android-x86, you can see there is a grub FOLDER inside, play Linux all know what it is, I will not say:


7. Enter the grub folder, which contains menu. lst, which is in the startup parameter configuration file. I believe everyone is familiar with it. The Code is as follows:

default=0timeout=6root (hd0,0)splashimage=/android-x86.xpm.gztitle Live USB - Run Android-x86 without Installation (HDPI)kernel /android-system/kernel CMDLINE quiet SRC=/android-system DPI=240initrd /android-system/initrd.imgtitle Live USB - Run Android-x86 without Installation (MDPI)kernel /android-system/kernel CMDLINE quiet SRC=/android-system DPI=160initrd /android-system/initrd.imgtitle Live USB - VESA Modekernel /android-system/kernel CMDLINE quiet vga=788 SRC=/android-systeminitrd /android-system/initrd.imgtitle Live USB - Debug Modekernel /android-system/kernel CMDLINE vga=788 SRC=/android-system DEBUG=1initrd /android-system/initrd.imgtitle Installation - Install Android-x86 VER to harddiskkernel /android-system/kernel CMDLINE SRC=/android-system INSTALL=1 DEBUG=initrd /android-system/initrd.img

Are you familiar with this? That's right. If you want to add any parameters, add them to it !! The last note is that normal users of this file do not have the permission to modify it. You need to use shell to enter the root permission to modify it. Here I will make the following modifications:

title Live USB - Run Android-x86 without Installation (HDPI)kernel /android-system/kernel CMDLINE quiet SRC=/android-system DPI=240 hello_world_this_is_a_test_from_LouisWanginitrd /android-system/initrd.img

After modification, save the modification. Next, let's take a look at our results (note, before looking at the results, we should first change the BIOS boot settings of the Android-x86 back, or delete the loaded Ubuntu ISO image, otherwise, it will be ubuntu ):

The first method is introduced here.

Next, we will briefly introduce the second method to modify the source code. The second method also has two ways, one is to modify the startup script of the Android-x86, the second is to modify the startup configuration file, you can, the specific I will not go into detail, if you have any questions, ask me.

Let's write it here. Go home and cook...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.