Rock pi s nand flash/erase error

Hi,
Following error i got while flash/erase the nand flash.

   root@ELMPC-158:/home/elmpc-158# rkdeveloptool ld  
     DevNo=1	    Vid=0x2207,Pid=0x330e,LocationID=101	Maskrom
  root@ELMPC-158:/home/elmpc-158# rkdeveloptool db /media/elmpc-   158/CC1EB40A1EB3EC18/Dhevan/Rock_pi/RockPi_S/rk3308_loader_uart0_m0_emmc_port_support_sd_20190717.bin 
    Opening loader failed, exiting download boot!

Please give solution for this error.

Thanks & Regards
Vasu

You need to cd to the path where you put the rk3308_loader_uart0_m0_emmc_port_support_sd_20190717.bin and use rkdeveloptool in the current path.

rkdeveloptool db ./rk3308_loader_uart0_m0_emmc_port_support_sd_20190717.bin

I have a success with this command : rkdeveloptool db ./rk3308_loader_uart0_m0_emmc_port_support_sd_20190717.bin
But in the next step : sudo rkdeveloptool wl 0 system.img
I got this error:
Write LBA failed, err=2, can’t open file: system.img
Please help me.
Thank you.

sudo rkdeveloptool wl 0 system.img system.img is the image you downloaded, it should be rockpi-xxx-gpt.img

Thank you, it was because i have’n extracted the gz file.