Forums - Building specific image for Snapdragon 845 devkit

6 posts / 0 new
Last post
Building specific image for Snapdragon 845 devkit
fhn
Join Date: 19 Sep 19
Posts: 3
Posted: Thu, 2021-08-19 05:02

Hi,
I have a SDA845 HDK and I would like to build a custom image based on Android 11.

I followed the below steps :

  1. repo init -u git://codeaurora.org/platform/manifest.git -b release -m LA.UM.9.3.r1-00500-sdm845.0.xml --repo-url=git://codeaurora.org/tools/repo.git
  2. repo sync
  3. source build/envsetup.h
  4. lunch sdm845-userdebug 
  5. make -j2

First issue : when I run step 3, I observed the envsetup.h script is located in the build/make/ path.
After I applied a workaround by copying the envsetup.h script directly in the build/ path, I continued with steps 4 and 5 obtaining the following error:


FAILED: ninja: 'Android.bp', needed by 'out/soong/.bootstrap/build.ninja', missing and no known rule to make it

What I am doing wrong here? The above steps are obsolete?

Any feedback is greatly appreciated.

 

Thanks Florin.

 

 

 

  • Up0
  • Down0
rlolur
Join Date: 17 May 21
Posts: 2
Posted: Thu, 2021-08-19 06:15

Hi Florin,

Thanks for reaching out to us.

In step4, you have used "lunch sdm945-userdebug". So, I assume that it's your custom target.

If yes, could you please confirm if you have made necessary build changes to create a custom target in "vendor/qcom/proprietary/common" folder? Also, a corresponding target with name "sdm945" in "vendor/qcom/proprietary/common/config/sdclang.json" file is required.

If you have not done these changes, I suggest you to refer to a target in the above folder and the json file to make necessary changes and then try to build with the same steps you listed. You may refer to an already existing target to make changes for your custom target.

Otherwise, if your target is still sdm845, I suggest you to modify step4 command from "lunch sdm945-userdebug" to "lunch sdm845-userdebug" and check if it helps to resolve your issue.

 

Thanks,

Raghu.

  • Up0
  • Down0
fhn
Join Date: 19 Sep 19
Posts: 3
Posted: Thu, 2021-08-19 06:30

Hi Raghu,
 

It was a typo .

My target is sdm845, so I modified the step4.
The compilation issue reported above is after I run  lunch sdm845-userdebug and make -j2 commands.

 

Thanks,

Florin

  • Up0
  • Down0
rlolur
Join Date: 17 May 21
Posts: 2
Posted: Thu, 2021-08-19 10:56

Hi Florin,

Thanks for clarifying.

I will check the instructions with our internal team and get back to you.

Thanks,

Raghu.

  • Up0
  • Down0
fhn
Join Date: 19 Sep 19
Posts: 3
Posted: Tue, 2021-08-31 01:10

Hi Raghu,

Any updates?
Do you have a feedback from your internal team?

Best regards,
Florin

  • Up0
  • Down0
mengdiz
Join Date: 6 Dec 21
Posts: 27
Posted: Sun, 2021-12-19 18:21

Hi,

I use this command to download code, but the envsetup.sh in build path.

  1. repo init -u git://codeaurora.org/platform/manifest.git -b release -m LA.UM.9.3.r1-00500-sdm845.0.xml --repo-url=git://codeaurora.org/tools/repo.git

Could you try it again? and check the .repo/mainfest.xml

<linkfile dest="build/envsetup.sh" src="envsetup.sh"/>
 
  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.