Ufs not working with debian image


#1

Hi

When we use Android UFS is working fine, but when we use Debian we are facing below issue.

[ 3.392505] ufshcd-hi3660 ff3b0000.ufs: ufshcd_query_flag: Sending flag query for idn 3 failed, err = -11
[ 4.928490] ufshcd-hi3660 ff3b0000.ufs: ufshcd_query_flag: Sending flag query for idn 3 failed, err = -11
[ 6.464536] ufshcd-hi3660 ff3b0000.ufs: ufshcd_query_flag: Sending flag query for idn 3 failed, err = -11
[ 6.474207] ufshcd-hi3660 ff3b0000.ufs: ufshcd_query_flag_retry: query attribute, opcode 5, idn 3, failed with error -11 after 3 retires
[ 8.000698] ufshcd-hi3660 ff3b0000.ufs: __ufshcd_query_descriptor: opcode 0x01 for idn 8 failed, index 0, err = -11
[ 9.536544] ufshcd-hi3660 ff3b0000.ufs: __ufshcd_query_descriptor: opcode 0x01 for idn 8 failed, index 0, err = -11
[ 11.072631] ufshcd-hi3660 ff3b0000.ufs: __ufshcd_query_descriptor: opcode 0x01 for idn 8 failed, index 0, err = -11
[ 11.083170] ufshcd-hi3660 ff3b0000.ufs: ufshcd_read_desc_param: Failed reading descriptor. desc_id 8, desc_index 0, param_offset 0, ret -11
[ 11.095780] ufshcd-hi3660 ff3b0000.ufs: ufshcd_init_icc_levels: Failed reading power descriptor.len = 98 ret = -11

We are using Linux-Kernel(4.14). Board has SKhynixs


#2

Hi @Vikram,

From where did you get the Debian image? Official image [1] has no issues on booting.

Thanks,
Mani

[1] http://snapshots.linaro.org/96boards/hikey/linaro/debian/latest/


#3

Hi Mani

We have downloaded the image from the same link.

Thanks


#4

The offcial image is based on v4.15 kernel, so not sure which image the system is picking up. While flashing the rootfs image, make sure you have flashed only one partition (system or userdata) and left the other one empty.

You can use the following command to erase a partition:

$ sudo fastboot erase userdata

or

$ sudo fastboot erase system

#5

HI,

  1. Where can we find more information on partition table for Debian package.
  2. We built boot-loader following the instructions provided in the below link and flashed it.
    https://github.com/96boards-hikey/tools-images-hikey960/blob/master/build-from-source/README-ATF- UEFI-build-from-source.md.
    After building the boot loader we see ptable-aosp-32g.img, prm_ptable.img, ptable-aosp-32g-spare.img,
    ptable-linux-32g.img.
    As we are using Debian, Do we need to flash ptable-linux-32g.img or prm_ptable.img

#6

Hi @Vikram,

  1. This is the script used to generate partition table for HiKey* boards:
    https://github.com/96boards-hikey/l-loader/blob/testing/hikey960_v1.2/generate_ptable.sh

  2. As mentioned in the README-ATF-UEFI-build-from-source.md, you need to use prm_table.img for both HiKey and HiKey960 boards.

Hope this helps!

Thanks,
Mani