No Permissions FastBoot
Get FastBoot file
1. After compiling the Android source code will be in the directory:
andsource2/out/host/linux-x86/bin
Generate FastBoot File
Add to environment variable
1. Use VIM to enter the environment variable configuration file:. BASHRC
Vim ~/.BASHRC
2. Add fastboot environment variable
Path= $PATH: ~/andsource2/out/host/linux-x86/bin
3. After saving, source ~/.BASHRC
Modify Permissions
1.fastboot-l devices
No Permissions FastBoot usb:2-1.x (x is version, it doesn't matter, it doesn't have permission anyway)
2. Add permissions to change the owner attribute of the FastBoot to root:
A. which fastboot (command to find the directory where the FastBoot is located;)
Which FastBoot
/home/likewise-open/xxxxx/andsource2/out/host/linux-x86/bin/fastboot
B. then enter this directory;
C. Re-use the command chown to change its properties:
sudo chown root:root fastboot
sudo chown root:root fastboot
xxxxxubtpc:~/andsource2/out/host/linux-x86/bin$ ls-l FastBoot
-rwxrwxrwx 1 root root 599112 June 1 20:13 fastboot
3. Change its permissions:
sudo chmod +s fastboot
sudo chmod +s fastboot
xxxxubtpc:~/andsource2/out/host/linux-x86/bin$ ls-l FastBoot
-rwsrwsrwx 1 root root 599112 June 1 20:13 fastboot
At this point fastboot configuration is complete, can be burned into the corresponding IMG file.
--------------------------------------------------------------------------------------------------------------- ----------------
Burn in img
FastBoot Flash Cache Andsource2/out/target/product/xxxxxxxxxxxxxxx/cache.img
Sending ' cache ' (5348 KB) ...
OKAY [0.251s]
Writing ' Cache ' ...
OKAY [1.079s]
Finished. Total time:1.341s
Reprint http://m.blog.csdn.net/blog/shi_xin/28093705
No Permissions FastBoot