iMX6q sabersd OTA update

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

iMX6q sabersd OTA update

5,574 Views
Babu
Contributor I

Hi,

I am trying to update ota images over USB, as mentioned in Verification OTA w/ update.zip and diff-ota.zip for imx6 sabersd (android 6.0.1). But not able to see "upgrade successful." message on the console And changes also not reflecting.

 

Below are the steps i am following,

 

1. $source build/envsetup.sh
2. $lunch sabresd_6dq-user
3. $make
4. Flash the generated images using mfgtool
5. Do changes one of the packages
6. $make dist
7. cp out/target/product/sabresd_6dq/sabresd_6dq-ota-20160331.zip /media/usb/ (copy from Host to USB device)
8. cp /mnt/media_rw/USB/sabresd_6dq-ota-20160331.zip /cache/
9. $echo --update_package=/cache/sabresd_6dq-ota-20160331.zip > /cache/recovery/command
10. $reboot recovery
After step #10 system halting for some time with the below logs
init: Starting service 'recovery'...
EXT4-fs (mmcblk3p6): Ignoring removed nomblk_io_submit option
EXT4-fs (mmcblk3p6): mounted filesystem with ordered data mode. Opts: nomblk_io_submit
random: nonblocking pool is initialized
EXT4-fs (mmcblk3p6): Ignoring removed nomblk_io_submit option
EXT4-fs (mmcblk3p6): mounted filesystem with ordered data mode. Opts: nomblk_io_submit
SysRq : Emergency Remount R/O
Emergency Remount complete
reboot: Restarting system with command ''
Please let me know if anything wrong in the above steps or is there any other way to flash in new versions of android.
Thanks in advance.
Babu A
Labels (2)
0 Kudos
Reply
7 Replies

2,850 Views
Babu
Contributor I

Hi igor,

Thank for your reply...

As mentioned in Documentations i have done below experiments.

1. Built OTA images using

       a)  make otapackage

       b)  make PRODUCT=sabresd_6dq-user otapackage -j4

OTA package is generated in "out/target/product/sabresd_6dq/" as "sabresd_6dq-ota-20160331.zip"

copy the above package in /cache and run the below commands to start update.

# echo “--update_package=/cache/sabresd_6dq-ota-20160331.zip\n--locale=$(getprop ro.product.locale.language)” > /cache/recovery/command

# reboot recovery.

With Other procedure system is not booting as mentioned in the Initial posting.

2. Generate OTA Package from the target files as mentioned below

# ./build/tools/releasetools/ota_from_target_files.py out/dist/sabresd_6dq-target_files-20160331.zip ota_update.zip

unzipping target target-files...
(using device-specific extensions from target_files)
loaded device-specific extensions from /tmp/targetfiles-dAMf3n/META/releasetools.py
using prebuilt recovery.img from IMAGES...
using prebuilt boot.img from IMAGES...
putting script in bin/install-recovery.sh
no bootloader.raw in target_files; skipping install
done.

In this procedure kernel is not able to find the DTS files, hence it is rebooting continuously with below logs.

U-Boot 2015.04 (Sep 14 2016 - 21:48:39)
 
CPU:   Freescale i.MX6D rev1.5 at 792 MHz
CPU:   Temperature 31 C
Reset cause: WDOG
Board: MX6-SabreSD
I2C:   ready
DRAM:  1 GiB
Using default environment
 
set_default_env
set_default_env puts
PMIC:  PFUZE100 ID=0x10
MMC-zspl:   FSL_SDHC- 0, FSL_SDHC- 1, FSL_SDHC- 2
env_relocate_spec --zspl
mmc_init --zspl
MMC-zspl: mmc_start_init -19
MMC-zspl: TIMEOUT -20
init_mmc_for_env
env_relocate_spec --zspl 0
No panel detected: default to Hannstar-XGA
Display: Hannstar-XGA (1024x768)
In:    serial
Out:   serial
Err:   serial
check_and_clean: reg 0, flag_set 0
Fastboot: Normal
flash target is MMC:2
Net:   FEC [PRIME]
Error: FEC address not set.
 
Normal Boot
Hit any key to stop autoboot:  0
boota mmc2
kernel   @ 14008000 (7059304)
ramdisk  @ 15000000 (1029327)
## Booting Android Image at 0x12000000 ...
Kernel load addr 0x14008000 size 6894 KiB
Kernel command line: console=ttymxc0,115200 init=/init video=mxcfb0:dev=ldb,LDB-XGA,if=RGB666 video=mxcfb1:dev=hdmi,1920x1080M@60,if=RGB24 video=mxcfb2:off video=mxcfb3:off vmalloc=400M fbmem=10M,28M androidboot.console=ttymxc0 consoleblank=0 androidboot.hardware=freescale cma=384M androidboot.selinux=disabled androidboot.dm_verity=disabled
ERROR: Did not find a cmdline Flattened Device Tree
Could not find a valid device tree
resetting ...

Please let me know if i am missing anything.

Thank You

Babu A

0 Kudos
Reply

2,850 Views
m_c
Senior Contributor I
0 Kudos
Reply

2,850 Views
pwhipple
Contributor I

For the Flattened Device Tree issue, try updating the boot.img in the update.zip with the new boot.img generated by the build scripts.

0 Kudos
Reply

2,850 Views
igorpadykov
NXP Employee
NXP Employee

link Verification OTA w/ update.zip and diff-ota.zip is for r13.4.1

and may not work for android 6.0.1.

0 Kudos
Reply

2,850 Views
Babu
Contributor I

can you please elaborate "link Verification OTA w/ update.zip and diff-ota.zip is for r13.4.1" ..

Is ts tested in any of the freescale imx6 series. If so, can you please share the repo link.

0 Kudos
Reply

2,850 Views
igorpadykov
NXP Employee
NXP Employee

Hi Babu

please try steps given in attached sect.30 How do I build an OTA package?

Android_Frequently_Asked_Questions.pdf and Android_User's_Guide.pdf p.7

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

2,850 Views
varunjeevangoud
Contributor I

Hi Igorpadykov,

                           

I have been following the same procedure to  build recovery.img to perform OTA operation, but i'm not able to generate recovery.img. I tried some changes in Make file in /build/core, still the result is fail!!. Any one in conversation can help me out..i have attached Make file from /build/core. Please have a look and come back.

This is results after the command make otapackage:

PRODUCT_COPY_FILES device/medallion/imx6/init.recovery.freescale.rc:root/init.recovery.freescale.rc ignored.
PRODUCT_COPY_FILES external/bluetooth/bluez/obexd/src/obexd:system/bin ignored.
PRODUCT_COPY_FILES device/medallion/imx6/etc/ueventd.freescale.rc:root/ueventd.freescale.rc ignored.
PRODUCT_COPY_FILES device/medallion/common/display/display_mode_fb0.conf:system/etc/display_mode_fb0.conf ignored.
PRODUCT_COPY_FILES device/medallion/common/display/display_mode_fb2.conf:system/etc/display_mode_fb2.conf ignored.
PRODUCT_COPY_FILES device/medallion/common/display/display_mode_fb4.conf:system/etc/display_mode_fb4.conf ignored.
make: *** No rule to make target `otapackage'. Stop.

This is results after the command make recoveryimage:

PRODUCT_COPY_FILES device/medallion/imx6/init.recovery.freescale.rc:root/init.recovery.freescale.rc ignored.
PRODUCT_COPY_FILES external/bluetooth/bluez/obexd/src/obexd:system/bin ignored.
PRODUCT_COPY_FILES device/medallion/imx6/etc/ueventd.freescale.rc:root/ueventd.freescale.rc ignored.
PRODUCT_COPY_FILES device/medallion/common/display/display_mode_fb0.conf:system/etc/display_mode_fb0.conf ignored.
PRODUCT_COPY_FILES device/medallion/common/display/display_mode_fb2.conf:system/etc/display_mode_fb2.conf ignored.
PRODUCT_COPY_FILES device/medallion/common/display/display_mode_fb4.conf:system/etc/display_mode_fb4.conf ignored.
make: Nothing to be done for `recoveryimage'.

0 Kudos
Reply