[Tutorial] How to use a linux live CD connecting your phone to PC via adb/fastboot
As I have noticed, many users here in the DX Forum have problems connecting their phones to the PC via fastboot / adb. So I decided to write a short tutorial on how to achieve this with the help of a linux live cd. As you may know, there won't appear problems in linux with the drivers because they're already included in the kernel.
First, lets start with what you need.
- A blank USB pendrive
- A PC capable of booting from USB (will explain that later)
- A micro USB cable
- An HTC Desire X
If you meet all these requirements, first download a few things:
Then, you need to make your stick bootable using YUMI. Just start the downloaded file and follow the instructions. Be careful to choose the right volume! All data on the volume chosen will be lost! Scroll down to find the entry for system rescue cd and choose the appropriate iso image you downloaded before, let YUMI finish your stick. Before rebooting, copy the adb and fastboot binary to the USB drive using explorer.
After this is done, restart your PC. Check boot priority in BIOS to be sure it will boot your stick before your harddrive. In the YUMI boot menu, choose System Tools -> System Rescue CD. In the system rescue cd menu, choose "Directly start graphical environment". Wait for Linux to boot up. You'll be greeted by the LXDE screen with a terminal window showing a root prompt. There, you just type "cd /livemnt/boot
". Connect your HTC Desire X to the PC. Make sure USB Debugging is enabled. Now, you can type "./adb devices
" and see if it recognizes your phone. If you want to use fastboot, just type "./adb reboot bootloader
" and your phone will directly boot into fastboot mode. There, you can test connectivity with "./fastboot devices
If you want to flash a kernel, be sure to copy the boot.img to your USB drive before booting the live cd. When you successfully tested connectivity with your phone via "./fastboot devices
", just issue "./fastboot flash boot boot.img
". For a recovery, do a "./fastboot flash recovery recovery.img
" (make sure the file recovery.img exists).
I hope this will help many users with the procedure of flashing kernels via fastboot and connect their phones via adb.