It works.
It seems that due to lacking this file, I cannot use fastboot directly and 
then arise the issue I met.
Thanks for your kind help, Dan. 
It had been disturbing me for a long time.


On Saturday, March 18, 2017 at 1:33:37 AM UTC+8, Dan Willemsen wrote:
>
> Don't use sudo, instead follow these instructions: 
> http://source.android.com/source/initializing.html#configuring-usb-access
>
> - Dan
>
> On Fri, Mar 17, 2017, 6:00 AM 龚泽龙 <[email protected] <javascript:>> 
> wrote:
>
>> Before I have built the source code of AOSP sucessfully.
>>
>> Then I did the following.
>>
>>
>> source build/envsetup.sh
>>
>> lunch
>>
>> 19
>>
>> adb reboot bootloader
>>
>> sudo $(which fastboot) flashall -w
>>
>> error: neither -p product specified nor ANDROID_PRODUCT_OUT set
>>
>> env | grep ANDROID_PRODUCT_OUT
>>
>>
>> ANDROID_PRODUCT_OUT=/home/gongzelong/OpenSource/Android/out/target/product/hammerhead
>>
>>
>> so I edit the ~/.bashrc and added 
>>
>> `export 
>> ANDROID_PRODUCT_OUT=/home/gongzelong/OpenSource/Android/out/target/product/hammerhead`
>>
>> and source ~/.bashrc
>>
>> sudo $(which fastboot) flashall -w
>>
>> error: neither -p product specified nor ANDROID_PRODUCT_OUT set
>>
>> Then I 
>>
>> sudo $(which fastboot) flashall -w -p 
>> ANDROID_PRODUCT_OUT=/home/gongzelong/OpenSource/Android/out/target/product/hammerhead
>>
>>
>> error: could not load android-info.txt: No such file or directory
>>
>> I have searched a lot but have no effective solution.
>>
>> Could anyone fix the issue?
>>
>> -- 
>> -- 
>> You received this message because you are subscribed to the "Android 
>> Building" mailing list.
>> To post to this group, send email to [email protected] 
>> <javascript:>
>> To unsubscribe from this group, send email to
>> [email protected] <javascript:>
>> For more options, visit this group at
>> http://groups.google.com/group/android-building?hl=en
>>
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Android Building" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to