summaryrefslogtreecommitdiff
path: root/common/cmd_burnup.c
Commit message (Collapse)AuthorAgeFilesLines
* usb_tool: support dump emmc mirror [1/1]Sam Wu2019-05-161-0/+17
| | | | | | | | | | | | | | | | | PD#SWPL-7007 Problem: support dump emmc mirror with usb tool Solution: pc command 'update.exe mread store 1 normal xxxx emmc.dump' will dump emmc from address 0 at size xxxx bytes, saved as emmc.dump in pc Verify: self test with u200, dump speed 8.53M/Sec Change-Id: I6221aebb257ed4302f8846c7c5aa57abc9884c85 Signed-off-by: Sam Wu <yihui.wu@amlogic.com>
* factoryBurn: mmc: support upgrade whole mmcSam Wu2019-05-161-0/+43
| | | | | | | | | | | | | | | | | | PD#SWPL-4992 Problem: customer requires flashing whole mmc in bootloader mode, rather than enter recovery mode which has selinux issue. Solution: support "sdc_update/usb_update 1 emmc.bin" in bootloader mode support "update partition 1 emmc.bin" in bootloader mode Verify: test pass by project Change-Id: Ied3eda01a1840d3242fa3598bd88de30c8468f6c Signed-off-by: Sam Wu <yihui.wu@amlogic.com>
* FactoryBurn: mtd flashing bugs fixSam Wu2018-01-101-1/+1
| | | | | | | | | | | PD# 154368 1, fix err return value when verify TPL; 2, fix mtd bootloader write/read size not the same. 3, mtd: fix 'imgread pic' offset not aligh nand page 2k. 4, mtd: fix erasing data before dump data. Change-Id: I47737416a314d566c3a13cedb703f103d12085a3
* [FactoryBurn]Axg: fix cannot burn emmc when MTD enabled [1/1]Sam Wu2017-07-241-2/+2
| | | | | | | | | | | PD# 146995 1, fix cannot burn emmc board when enabled CONFIG_AML_NAND, now can flash both NAND and emmc for axg with MTD driver enabled 1.1, [store_interface]Remove force device_boot_flag ; 1.2, [driver/mmc]Remove force device_boot_flag ; Change-Id: If6b2bad9cde4cf4690a5c28625e0f607351380bd
* PD#141827:[FactoryBurn]mtd based burn improveSam Wu2017-04-121-2/+2
| | | | | | | 1, fix 'store write/read' skip more blocks than actual bad blks. 2, fix error 'store partition' when uploading memory. Change-Id: I7707d6d665b1d179385d07f657903af2a604e15c
* PD#141827:[FactoryBurn]mtd based burning improvingSam Wu2017-04-121-30/+14
| | | | | | | | | | | | | | 1, offset in 'store read/write' is logic, this means it will add bad blocks when call 'nand read/write'; 2, implement 'store erase partition', based on 'nand erase.part' 3, implement 'store size partName', the size is logic, not include bad blocks; 4, auto run 'store erase partition $partName'; 5, NOT parse part table from dts if MTD enabled, as parts table removed from dts; 6, Remove redundant log in 'nand write/read'. Change-Id: Icaf21cd7dc7e30347a6d54b8ed9d46008eb1d1e3
* PD#140550:[FactoryBurn] fix burn errorSam Wu2017-03-141-4/+4
| | | | | | | 1, This bug is caused by '94694ef3a127d5d8268818a48a079abc0b5c7555' of 'PD#138393:[FactoryBurn]support MTD based ubifs img'. Change-Id: I35acf6120a7e7f376637fbc9c2005a72a6922aa3
* PD#138393:[FactoryBurn]support MTD based ubifs imgSam Wu2017-03-081-11/+49
| | | | | | | | | 1, only support usb burning, sdc/udisk not verified; 2, when upgrading ubifs img, need tell uboot 'ubifs' format; 3, MTD read/write now will force align to 4k 4, use 'ubi part + ubi device + ubi create' to init ubifs part. Change-Id: I0face815a05101a1e86c84fec6c1deb34b64dbe3
* PD#132936:force dtb encrypted if secure bootSam Wu2016-10-281-2/+3
| | | | | | | | | | | | | | | | | 1, Add Decrypting dtb.img in 'store dtb read' and 'get_partition_from_dts', 1.1) need flush cache before decrypting, or failed in usb boot; 1.2) 'store dtb read' will decrypting, but 'store dtb write/iread' will NOT; 2, Must check uboot containing this commit: [[UBOOT][GXL/GXM/TXL]: secure boot update c5d23aa93b8de96e7ed2bf4a8955433a9ac47e76] 3, [Usb Burn]Remove 'store dtb write' in 'disk_initial', add special partition name '_aml_dtb' for upgrading dtb. Change-Id: I1b36a0cffe84e9ca5140cf61e6089a53a56e3f5a
* PD#108655: move dtb from boot.img to flash reserv areaSam Wu2015-07-131-0/+10
| | | | | | | | | | | | | | | | 1, nand driver update; 1.1) get part table from dtb in reserve area; 1.2) support uboot operations without dtb on board; 1.3) init device_boot_flag once id was found; 2, emmc driver update, get part table from dtb in reserve area; 3, factory usb/sdcard burning update, 3.1)download meson1.dtb before flash inited; 3.2)update flsh init flow for buring. Change-Id: Ie168e71d6210632d4367298733fcc97f944752f1 Signed-off-by: Yonghui Yu <yonghui.yu@amlogic.com> Signed-off-by: Long Yu <long.yu@amlogic.com> Signed-off-by: Sam Wu <yihui.wu@amlogic.com>
* [GXBB] EMMC driver and factory burning updateSam Wu2015-06-041-0/+359
| | | | | | | | | | 1, Burning code added in path 'drivers/usb/gadget/v2_burning/'; 2, Emmc driver and store_interface updated from Larson/yulong; 3, store interface updated by yulong; 4, USB burning tested ok in skt/p200 emmc flash 5, nand board p201 not enabled yet. Change-Id: Ief933bdc101cbed7564fe6cf22c2dc911fbc338b Signed-off-by: Sam Wu <yihui.wu@amlogic.com>
* Revert "[GXBB] EMMC driver and factory burning update"Xiaobo Gu2015-06-041-359/+0
| | | | | | This reverts commit 247ae04dd0adec63333e725b37d28a7f20b193e1. Change-Id: Id99c6bc4be2c6d84ad71c460c92ae51d2b8219e0
* [GXBB] EMMC driver and factory burning updateSam Wu2015-06-031-0/+359
1, Burning code added in path 'drivers/usb/gadget/v2_burning/'; 2, Emmc driver and store_interface updated from Larson/yulong; 3, Store interface updated by yulong; 4, USB burning tested ok in skt emmc flash. 5, fix bug when burning bootloader when size align to 64k Change-Id: I3b7e72dfb38542a51b3e3bfb14bfa6df12d5339d Signed-off-by: Sam Wu <yihui.wu@amlogic.com>