Fastboot doesn't work well

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Fastboot doesn't work well

1,637 Views
s_inamura
Contributor I

Hello,
I am building Secure Boot environment with iMX8MINI board.
but now I cannot build it because of following result.

[host os (Ubuntu) terminal]
$ sudo ./fastboot oem set-rsa-atte-key
FAILED (remote: command not defined)
Finished. Total time: 0.004s

[U-Boot terminal]
$ Unknown flashing command:oem set-rsa-atte-key

I understand that above U-Boot's message means the U-Boot program do not support trustyOS option for fastboot command.

I builded android_build following command lines at host os.

$ source build/envsetup.sh
$ lunch evk_8mm-user
$ make 2>&1 | tee build-log.txt

I refered to these steps with i.MX_Android_Security_User_Guide.pdf page 3.
and I executed fastboot_imx_flashall.sh to flash U-Boot image to eMMC boot area.


How can I execute above fastboot command ?
and
Please teach me correct build steps if above steps are wrong for to build Secure Boot environment.

Best regards,
Seiji Inamura

0 Kudos
5 Replies

1,306 Views
s_inamura
Contributor I

Hello,

thank you for your support.

Does it output something?

fastboot command outputted  following message.

xxxxxxxxxxxxxxxx fastboot

above strings "xxxxxxxxxxxxxxxx" are serial number,

so i think fastboot command can communicate the board physically .

Regards,

Seiji Inamura

0 Kudos

1,306 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

 

I notice that you're using user as your build type this could be causing your issue since it is a production-ready image, no debug, so could you please try changing your build to userdebug or eng:

$ lunch evk_8mm-user-debug  or $ lunch evk_8mm-eng

 

Hope this helps,

Regards,

Aldo.

0 Kudos

1,306 Views
s_inamura
Contributor I

Hello Aldo,

Thank you for your reply.

PRODUCT_IMX_TRUSTY := true

I didn't set this parameter ,so i set it  in evk_8mm.mk and builded codes and flashed images.

However fastboot command  reported the same error message.

Do you know other options for Trusty OS ?  

Best regards,

Seiji Inamura.

0 Kudos

1,306 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

 

Could you please run the command:

$ ./fastboot devices

 

Does it output something?

It should output the device connected.

 

Regards,

Aldo.

0 Kudos

1,306 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

 

To support Trusty OS in standard Android enable in evk_8mm.mk:

PRODUCT_IMX_TRUSTY := true

Thank you,

Best regards,

Aldo.

0 Kudos