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