12fe4e5f8Sopenharmony_ci{
22fe4e5f8Sopenharmony_ci    "jobs" : [{
32fe4e5f8Sopenharmony_ci            "name" : "fs",
42fe4e5f8Sopenharmony_ci            "cmds" : [
52fe4e5f8Sopenharmony_ci                "write /sys/kernel/debug/usb/100e0000.hidwc3_0/mode device",
62fe4e5f8Sopenharmony_ci                "mkdir /dev/usb-ffs 0770 shell shell",
72fe4e5f8Sopenharmony_ci                "mkdir /dev/usb-ffs/hdc 0770 shell shell",
82fe4e5f8Sopenharmony_ci                "mount configfs none /config",
92fe4e5f8Sopenharmony_ci                "mkdir /config/usb_gadget/g1 0770 shell shell",
102fe4e5f8Sopenharmony_ci                "write /config/usb_gadget/g1/idVendor 0x12D1",
112fe4e5f8Sopenharmony_ci                "write /config/usb_gadget/g1/idProduct 0x5000",
122fe4e5f8Sopenharmony_ci                "write /config/usb_gadget/g1/os_desc/use 1",
132fe4e5f8Sopenharmony_ci                "write /config/usb_gadget/g1/bcdDevice 0x0223",
142fe4e5f8Sopenharmony_ci                "write /config/usb_gadget/g1/bcdUSB 0x0200",
152fe4e5f8Sopenharmony_ci                "mkdir /config/usb_gadget/g1/strings/0x409 0770",
162fe4e5f8Sopenharmony_ci                "copy /sys/block/mmcblk0/device/cid /config/usb_gadget/g1/strings/0x409/serialnumber",
172fe4e5f8Sopenharmony_ci                "write /config/usb_gadget/g1/strings/0x409/manufacturer HISILICON",
182fe4e5f8Sopenharmony_ci                "write /config/usb_gadget/g1/strings/0x409/product \"HDC Device\"",
192fe4e5f8Sopenharmony_ci                "mkdir /config/usb_gadget/g1/functions/ffs.hdc",
202fe4e5f8Sopenharmony_ci                "mkdir /config/usb_gadget/g1/configs/b.1 0770 shell shell",
212fe4e5f8Sopenharmony_ci                "mkdir /config/usb_gadget/g1/configs/b.1/strings/0x409 0770 shell shell",
222fe4e5f8Sopenharmony_ci                "write /config/usb_gadget/g1/os_desc/b_vendor_code 0x1",
232fe4e5f8Sopenharmony_ci                "write /config/usb_gadget/g1/os_desc/qw_sign MSFT100",
242fe4e5f8Sopenharmony_ci                "write /config/usb_gadget/g1/configs/b.1/MaxPower 500",
252fe4e5f8Sopenharmony_ci                "symlink /config/usb_gadget/g1/configs/b.1 /config/usb_gadget/g1/os_desc/b.1",
262fe4e5f8Sopenharmony_ci                "mount functionfs hdc /dev/usb-ffs/hdc uid=2000,gid=2000",
272fe4e5f8Sopenharmony_ci                "setparam sys.usb.configfs 1",
282fe4e5f8Sopenharmony_ci                "setparam sys.usb.controller 100e0000.hidwc3_0"
292fe4e5f8Sopenharmony_ci            ]
302fe4e5f8Sopenharmony_ci        }, {
312fe4e5f8Sopenharmony_ci            "name" : "param:sys.usb.config=none && param:sys.usb.configfs=1",
322fe4e5f8Sopenharmony_ci            "condition" : "sys.usb.config=none && sys.usb.configfs=1",
332fe4e5f8Sopenharmony_ci            "cmds" : [
342fe4e5f8Sopenharmony_ci                "write /config/usb_gadget/g1/os_desc/use 0",
352fe4e5f8Sopenharmony_ci                "setparam sys.usb.ffs.ready 0"
362fe4e5f8Sopenharmony_ci            ]
372fe4e5f8Sopenharmony_ci        }, {
382fe4e5f8Sopenharmony_ci            "name" : "param:init.svc.hdcd=stopped",
392fe4e5f8Sopenharmony_ci            "condition" : "init.svc.hdcd=stopped",
402fe4e5f8Sopenharmony_ci            "cmds" : [
412fe4e5f8Sopenharmony_ci                "setparam sys.usb.ffs.ready 0"
422fe4e5f8Sopenharmony_ci            ]
432fe4e5f8Sopenharmony_ci        }, {
442fe4e5f8Sopenharmony_ci            "name" : "param:sys.usb.config=hdc && param:sys.usb.configfs=1",
452fe4e5f8Sopenharmony_ci            "condition" : "sys.usb.config=hdc && sys.usb.configfs=1",
462fe4e5f8Sopenharmony_ci            "cmds" : [
472fe4e5f8Sopenharmony_ci                "write /config/usb_gadget/g1/idProduct 0x5000",
482fe4e5f8Sopenharmony_ci                "write /config/usb_gadget/g1/os_desc/use 1"
492fe4e5f8Sopenharmony_ci            ]
502fe4e5f8Sopenharmony_ci        }
512fe4e5f8Sopenharmony_ci    ]
522fe4e5f8Sopenharmony_ci}
53