avbtool: command not found

1,012 views
Skip to first unread message

Michael Burrows

unread,
May 8, 2019, 12:02:42 PM5/8/19
to Android Building
Hey guys. My computer with ubuntu crashed which resulted in me not being able to run avbtool command

I have my AOSP folder named AOSP.

I run the make avbtool command inside that folder as follows:

/AOSP$ make avbtool
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=9
TARGET_PRODUCT=aosp_arm
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=generic
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.18.0-17-generic-x86_64-Ubuntu-18.10
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=PQ2A.190305.002
OUT_DIR=out
============================================
ninja: no work to do.
ninja: no work to do.
No need to regenerate ninja file
No need to regenerate ninja file

ninja: no work to do.

When I try using the avbtool to get information about my system.img

AOSP$  avbtool info_image --image system.img 
avbtool: command not found

running the ls command shows avbtool.

Colin Cross

unread,
May 8, 2019, 1:46:43 PM5/8/19
to android-...@googlegroups.com
Did you run source build/envsetup.sh and lunch as described at https://source.android.com/setup/build/building?

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
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 android-buildi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/31b3b212-22ce-48ea-a327-89c38842389f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Baran Jean-Marie

unread,
May 9, 2019, 11:15:56 AM5/9/19
to Android Building
It's probably because you already generated avbtool previously. Once generated, avbtool is located under out/host/linux-x86/bin/avbtool. Check if it's there. If not you can search it: find out -name avbtool

Jean-Marie.

Akshay Mhaske

unread,
May 9, 2019, 11:15:56 AM5/9/19
to android-...@googlegroups.com
Compile your source with BOARD_AVB_ENABLE :- true

Michael Burrows

unread,
May 9, 2019, 11:16:01 AM5/9/19
to android-...@googlegroups.com
Thanks! That did it. Should have figured that out by myself. Sorry

Reply all
Reply to author
Forward
0 new messages