Errors encountered when compiling the android source code and Linux kernel source code

Source: Internet
Author: User

1. Run the "ADB reboot bootloader" or "ADB start-server" command in Ubuntu to get the following error:

 

Error: device not found

Cause 1 may be that no USB rule is added: Create the file/etc/udev/rules. d/51-android.rules: # HTC phonesubsystem = "USB", sysfs {idvendor }== "0bb4", mode = "0666" # googlesubsystem = "USB ", sysfs {idvendor }== "18d1 ", mode = "0666" other brand Mobile Phone codes can be found at http://developer.android.com/guide/developing/device.html?vendorids 2. The reason may be that the mobile phone does not set the USB Debugger Mode settings-> Applications-> Development

2. Run "ADB devices" and get the following error:

 

List of devices attached

???????????? No Permissions

The reason is that the root user is not used to start ADB.

# Sudo passwd root // if the root password is not set

# Su

# CD out/host/linux-x86/bin

#./ADB kill-Server

#./ADB start-Server

# Exit

The error will disappear.

 

3. Various no permission errors

# Su

Use the root user to execute the command

Also set Path =/home/<user>/<Android source root>/out/host/linux-x86/bin/: $ path

 

4. fastboot-P passion-W flashall get the following error

 

Error: coshould not load android-info.txt

The reason is that there is no unlock device: Execute the command: fastboot OEM unlock Select Yes with the sound key, restart and press power and click to enter the fastboot mode. 5. failed to build Linux kernel"
C0: Error: Unrecognized command line option "-MAPCs"
C0: Error: Unrecognized command line option "-MnO-sched-Prolog"
C0: Error: Unrecognized command line option "-mabi = aapcs-Linux"
C0: Error: Unrecognized command line option "-MnO-thumb-interwork"
ARCH/ARM/kernel/asm-offsets.c: 1: Error: Bad value (armv5t) for-March = Switch
ARCH/ARM/kernel/asm-offsets.c: 1: Error: Bad value (strongarm) for-mtune = switch the reason is that the cross_compiler path is not set correctly make arch = arm cross_compile = ~ /<Android source>/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/ARM-Eabi-can be added to this part. in the bashrc file, configure the global variable -- by scott6. implicit declaration of function 'kfree' to add the header file Linux/slab. h

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.