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,
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
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.
link Verification OTA w/ update.zip and diff-ota.zip is for r13.4.1
and may not work for android 6.0.1.
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.
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!
-----------------------------------------------------------------------------------------------------------------------
Hi Igorpadykov,
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'.