| 5b2bcb4f | 11-Sep-2018 |
Frank Wang <frank.wang@rock-chips.com> |
usb: dwc2: fix the maximum dieptsizn/doeptsizn
The maximum transfer size supported should be 2^19 bytes from Table 5-79 (P372) of the DWC OTG Databook V3.10.
Change-Id: I258b6c2119270fa2f31453af86f
usb: dwc2: fix the maximum dieptsizn/doeptsizn
The maximum transfer size supported should be 2^19 bytes from Table 5-79 (P372) of the DWC OTG Databook V3.10.
Change-Id: I258b6c2119270fa2f31453af86f7eb179359e171 Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
show more ...
|
| 6f0347c8 | 15-Aug-2018 |
tony.xu <tony.xu@rock-chips.com> |
usb: gadget: rockusb: write keybox to RPMB
invoke function: write_keybox_to_secure_storage(uint8_t *uboot_data, uint32_t len). it only work when the chip support OPTEE_V1
Change-Id: If010b7cab6bab8
usb: gadget: rockusb: write keybox to RPMB
invoke function: write_keybox_to_secure_storage(uint8_t *uboot_data, uint32_t len). it only work when the chip support OPTEE_V1
Change-Id: If010b7cab6bab87485d9542af8c04544d27162cc Signed-off-by: tony.xu <tony.xu@rock-chips.com>
show more ...
|
| 90d27e7f | 05-Mar-2018 |
Jason Zhu <jason.zhu@rock-chips.com> |
fastboot: split cb_getvar into dedicate functions
The old implementation of cb_getvar is programed in one functions, this make the cb_getvar huge. So separate cb_getvar in several functions.
Functi
fastboot: split cb_getvar into dedicate functions
The old implementation of cb_getvar is programed in one functions, this make the cb_getvar huge. So separate cb_getvar in several functions.
Functions: fb_getvar_all: Get all parameters by cmd fastboot getvar all. fb_getvar_single: Get one parameter by cmd fastboot getvar xxx. fb_read_var: Parse parameters
Change-Id: I1e795228f8129af82702f8f315cbad349ceec451 Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
show more ...
|
| 0d0c3248 | 09-Aug-2018 |
Frank Wang <frank.wang@rock-chips.com> |
usb: gadget: rockusb: add vendor storage r/w cmd support
At present the vendor storage partition is small than 64K in the design, so vendor storage r/w commands do not take multi-packet into conside
usb: gadget: rockusb: add vendor storage r/w cmd support
At present the vendor storage partition is small than 64K in the design, so vendor storage r/w commands do not take multi-packet into consideration, if it is needed, the codes should do a little change in future. Besides, the RPMB r/w support need to be added when its APIs get ready.
Change-Id: I621604c99b44c69eb3aff3e01b28a18f35303040 Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
show more ...
|
| 46a8a269 | 06-Aug-2018 |
Jason Zhu <jason.zhu@rock-chips.com> |
fastboot: add RK_AVB_LIBAVB_ENABLE_ATH_UNLOCK config
add RK_AVB_LIBAVB_ENABLE_ATH_UNLOCK config so we can disable authenticated unlock function when we debug and unlock devices quickly.
Change-Id:
fastboot: add RK_AVB_LIBAVB_ENABLE_ATH_UNLOCK config
add RK_AVB_LIBAVB_ENABLE_ATH_UNLOCK config so we can disable authenticated unlock function when we debug and unlock devices quickly.
Change-Id: Id60be9ae6c17b59e107709a8041e8940743e5725 Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
show more ...
|
| 65413a00 | 05-Jul-2018 |
Jian Qiu <qiujian@rock-chips.com> |
fastboot: add FASTBOOT_OEM_UNLOCK option
This enables the following fastboot commands: fastboot oem unlock fastboot oem unlock_accept fastboot oem lock fastboot getvar oem-unlock
Android 8.
fastboot: add FASTBOOT_OEM_UNLOCK option
This enables the following fastboot commands: fastboot oem unlock fastboot oem unlock_accept fastboot oem lock fastboot getvar oem-unlock
Android 8.1 need the oem unlock status attach to bootargs on boot.
Change-Id: Icc83451336a4dea2cbcf4927287de23bc8e28cb1 Signed-off-by: Jian Qiu <qiujian@rock-chips.com>
show more ...
|
| 6651d4c0 | 03-Jul-2018 |
Jason Zhu <jason.zhu@rock-chips.com> |
dev_desc: judge dev_desc whether NULL or not before use it
Change-Id: I9d0e2d207a143a02949fbdff2d9ad39f154e4f3e Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com> |
| 5fb597c2 | 22-Jun-2018 |
Kever Yang <kever.yang@rock-chips.com> |
rockchip: rockusb: only fix cmd for WL10/RL10
The definition of cmnd[7] is different for different cmd, so we can not use the fixup for all cmd.
Change-Id: I0020de4974ecca6075e0512456787089139a67fd
rockchip: rockusb: only fix cmd for WL10/RL10
The definition of cmnd[7] is different for different cmd, so we can not use the fixup for all cmd.
Change-Id: I0020de4974ecca6075e0512456787089139a67fd Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
show more ...
|
| aa74b607 | 11-Jun-2018 |
Jason Zhu <jason.zhu@rock-chips.com> |
fastboot: fix cb_upload bug
It will run sleep_thread when call fastboot_tx_write_str. So add wakeup_thread to function tx_handler_ul when tx_handler okay.
Change-Id: I25996639bbed7228dc9bc4fb5184dd
fastboot: fix cb_upload bug
It will run sleep_thread when call fastboot_tx_write_str. So add wakeup_thread to function tx_handler_ul when tx_handler okay.
Change-Id: I25996639bbed7228dc9bc4fb5184ddf2ee19a511 Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
show more ...
|
| e0023032 | 05-Jun-2018 |
Kever Yang <kever.yang@rock-chips.com> |
rockchip: rockusb: update for legacy tool
Update data size for get_flash_id() and do_bad_block_test() so that legacy tool can till work; Add warning log for those not supported cmds from legacy tool
rockchip: rockusb: update for legacy tool
Update data size for get_flash_id() and do_bad_block_test() so that legacy tool can till work; Add warning log for those not supported cmds from legacy tool;
Change-Id: I40e7f5d82a138bef6f8b0cef237c04483e663931 Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
show more ...
|
| 62b11485 | 11-Jun-2018 |
Jason Zhu <jason.zhu@rock-chips.com> |
fastboot: support oem at-get-vboot-unlock-challenge
Change-Id: I34785710a3edc80fbc5e98d4a26c98f8bd12a15b Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com> |
| 542316a9 | 11-Jun-2018 |
Jason Zhu <jason.zhu@rock-chips.com> |
fastboot: support authenticated unlock
Change-Id: I1a92652ab031f370ff37b73dfd2d7e4b2ec957e7 Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com> |
| d23ec8c4 | 04-Jun-2018 |
Kever Yang <kever.yang@rock-chips.com> |
rockchip: rockusb: add copatible with legacy upgrade tool
Legacy upgrade tool may not set correct transfer size for cmds, and for get flash info there no size in cmnd[7], fix it.
Change-Id: I4060d7
rockchip: rockusb: add copatible with legacy upgrade tool
Legacy upgrade tool may not set correct transfer size for cmds, and for get flash info there no size in cmnd[7], fix it.
Change-Id: I4060d72bb1f814903ed3c5b6b13689609dc905c8 Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
show more ...
|
| f61a997e | 28-Mar-2018 |
qiujian <qiujian@rock-chips.com> |
fastboot: implement oem unlock commands for bootrkp
Read-write oem unlock status from optee client api.
Implement the following fastboot commands: fastboot oem unlock fastboot oem unlock_accept
fastboot: implement oem unlock commands for bootrkp
Read-write oem unlock status from optee client api.
Implement the following fastboot commands: fastboot oem unlock fastboot oem unlock_accept fastboot oem lock fastboot getvar oem-unlock
Change-Id: I99edcee7b60c6d9529e6687291d87f22bf97b771 Signed-off-by: Qiu Jian <qiujian@rock-chips.com>
show more ...
|
| e290ced6 | 02-Apr-2018 |
Frank Wang <frank.wang@rock-chips.com> |
usb: gadget: skip receipent setup if usb config has not been set
We found the following errors were reported when the rockusb command is executed.
============================= RKUSB: LUN 0, dev 0,
usb: gadget: skip receipent setup if usb config has not been set
We found the following errors were reported when the rockusb command is executed.
============================= RKUSB: LUN 0, dev 0, hwpart 0, sector 0x0, count 0xe90000 "Synchronous Abort" handler, esr 0x96000010 ELR: 22e5e4 LR: 22e5dc x0 : 0000000000000000 x1 : 0000000000000064 x2 : 0000000000000000 x3 : 00000000ff0c0000 x4 : 0000000000000000 x5 : 0000000000000037 x6 : 000000000000000a x7 : 0000000000000007 x8 : 0000000000000008 x9 : 0000000000000008 ...
Resetting CPU ...
It is caused by the null pointer in bmRequestType.Receipent.Device setup, theoretically, Receipent.Device setup should be handled after the set_configuration request was finished, so skip it if the usb configuration has not been set.
Change-Id: I42caf375e8d842ad626d85a6a2a21dfb07fb557a Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
show more ...
|
| c0acb0f2 | 06-Mar-2018 |
Frank Wang <frank.wang@rock-chips.com> |
usb: gadget: use google's vid and pid for fastboot
Using Google's VID and PID default for fastboot command.
Change-Id: I8deb275f0f6a925b8e0b9668b6ba59abd44b74a5 Signed-off-by: Frank Wang <frank.wan
usb: gadget: use google's vid and pid for fastboot
Using Google's VID and PID default for fastboot command.
Change-Id: I8deb275f0f6a925b8e0b9668b6ba59abd44b74a5 Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
show more ...
|
| de78ceae | 05-Mar-2018 |
Jason Zhu <jason.zhu@rock-chips.com> |
fastboot: break fastboot 64 bytes limit
Some message can not be complete transmission because the fastboot can only transmit 64 bytes one time. So add sleep_thread() to judge whether the data is com
fastboot: break fastboot 64 bytes limit
Some message can not be complete transmission because the fastboot can only transmit 64 bytes one time. So add sleep_thread() to judge whether the data is complete transmission before call fastboot_complete().
Change-Id: I9057ffc9ca4b92db8c9ab14e4650d386c5d06254 Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
show more ...
|
| 2e40c2c1 | 28-Feb-2018 |
Jason Zhu <jason.zhu@rock-chips.com> |
fastboot: update fastboot commands
1. cb_oem. 2. cb_flashing. 3. cd_flash.
Change-Id: I6348c53c992b794f37d6d1813be04bd3dc63d1b5 Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com> |
| 2a1017eb | 24-Feb-2018 |
Jason Zhu <jason.zhu@rock-chips.com> |
fastboot: fix compile error in arm64
Change-Id: I935989c0573e12a95fac5e3b92a37b1764fad2fc Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com> |
| 174b4544 | 11-Feb-2018 |
Kever Yang <kever.yang@rock-chips.com> |
fastboot: fix compile warning
Change-Id: Ife064a098cbec3689790934eae86b4726f5f027d Signed-off-by: Kever Yang <kever.yang@rock-chips.com> |
| 6fff026f | 11-Feb-2018 |
Kever Yang <kever.yang@rock-chips.com> |
rockchip: usb: dwc2: fix compile warning
Change-Id: Ic0b190aa93378faf28147306d195fbc49c28c34d Signed-off-by: Kever Yang <kever.yang@rock-chips.com> |
| 912bc5c1 | 11-Feb-2018 |
Frank Wang <frank.wang@rock-chips.com> |
usb: gadget: fix bos descriptor for rockusb
A GetDescriptor(BOS) request always requires the Device Capability descriptors as part of the BOS information. This patch adds a generic Device Capability
usb: gadget: fix bos descriptor for rockusb
A GetDescriptor(BOS) request always requires the Device Capability descriptors as part of the BOS information. This patch adds a generic Device Capability descriptor header to fix it.
Fixes: 8ddd5824c ("usb: gadget: add bos descriptor response for rockusb command") Change-Id: I6b5976c6f13a6991a7d00c8221ece2a740032a07 Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
show more ...
|
| 37a7bc39 | 26-Jan-2018 |
Jason Zhu <jason.zhu@rock-chips.com> |
lib: avb: update and modify the avb library
The commit point is updated to google external/avb/ which commit point is cf8c56208d2d9643804a7f123b196c7ebc9af276.
Change-Id: I5a10a8a45d3e9e2c9d20d9b3d
lib: avb: update and modify the avb library
The commit point is updated to google external/avb/ which commit point is cf8c56208d2d9643804a7f123b196c7ebc9af276.
Change-Id: I5a10a8a45d3e9e2c9d20d9b3d44946073c9a49ff Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
show more ...
|
| 829f2b85 | 05-Feb-2018 |
Frank Wang <frank.wang@rock-chips.com> |
usb: gadget: add getting chip-info command for rockusb
This change adds getting chip-info command support for rockusb.
Change-Id: Ie158c94eb0591e658947f3b0c47f4fc0ec0333d1 Signed-off-by: Frank Wang
usb: gadget: add getting chip-info command for rockusb
This change adds getting chip-info command support for rockusb.
Change-Id: Ie158c94eb0591e658947f3b0c47f4fc0ec0333d1 Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
show more ...
|
| 5b081643 | 01-Feb-2018 |
Frank Wang <frank.wang@rock-chips.com> |
usb: gadget: reset to maskrom support for rockusb
Follow the subcode in reset command and add resetting to maskrom support.
Change-Id: I15bedef6b83b7282f3e1a9ff3663ec56cd3affc8 Signed-off-by: Frank
usb: gadget: reset to maskrom support for rockusb
Follow the subcode in reset command and add resetting to maskrom support.
Change-Id: I15bedef6b83b7282f3e1a9ff3663ec56cd3affc8 Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
show more ...
|