Latest code of AOSP with AUTOMOTIVE overlay can not mount sd card on hikey960

I am trying to build latest AOSP code with AUTOMOTIVE overlay. It can be built successfully, but the sd card can not be mount automatically. I have no idea about how to mount the sd card manually, or how to figure out the reason why the sd card can not be mounted automatically. Can anyone help me?

If I did not use AUTOMOTIVE overlay or download the latest prebuilt image and flash it to hikey960, sd card can be mounted automatically without any problem.

This is normally done by the init/ueventd process if fstab is correclty configured, maybe it’s disabled for automotive. On regular android you can find the following line in /fstab.hikey960:

/devices/platform/soc/ff37f000.dwmmc1/mmc_host/mmc*      auto       auto    defaults    voldmanaged=sdcard1:auto,encryptable=userdata

You can mount the card manually with mount, e.g:

$ mkdir /mnt/sd
$ mount /dev/mmcblk0p1 /mnt/sd

It does not work.

There is no mmcblk0p1 under /dev.

But it can resolved by flashing the latest kernel to the board.
I don’t know why, it just be resolved.

Thank you.