1d6aed566Sopenharmony_ci{
2d6aed566Sopenharmony_ci    "jobs" : [{
3d6aed566Sopenharmony_ci            "name" : "boot",
4d6aed566Sopenharmony_ci            "cmds" : [
5d6aed566Sopenharmony_ci                "mkdir /dev/usb-ffs 0770 shell shell",
6d6aed566Sopenharmony_ci                "mkdir /dev/usb-ffs/hdc 0770 shell shell",
7d6aed566Sopenharmony_ci                "mount configfs none /config",
8d6aed566Sopenharmony_ci                "mkdir /config/usb_gadget/g1 0770 shell shell",
9d6aed566Sopenharmony_ci                "write /config/usb_gadget/g1/idVendor 0x12D1",
10d6aed566Sopenharmony_ci                "write /config/usb_gadget/g1/idProduct 0x5000",
11d6aed566Sopenharmony_ci                "write /config/usb_gadget/g1/os_desc/use 1",
12d6aed566Sopenharmony_ci                "write /config/usb_gadget/g1/bcdDevice 0x0223",
13d6aed566Sopenharmony_ci                "write /config/usb_gadget/g1/bcdUSB 0x0200",
14d6aed566Sopenharmony_ci                "mkdir /config/usb_gadget/g1/strings/0x409 0770",
15d6aed566Sopenharmony_ci                "copy /sys/block/mmcblk0/device/cid /config/usb_gadget/g1/strings/0x409/serialnumber",
16d6aed566Sopenharmony_ci                "write /config/usb_gadget/g1/strings/0x409/manufacturer HISILICON",
17d6aed566Sopenharmony_ci                "write /config/usb_gadget/g1/strings/0x409/product \"HDC Device\"",
18d6aed566Sopenharmony_ci                "mkdir /config/usb_gadget/g1/functions/ffs.hdc",
19d6aed566Sopenharmony_ci                "mkdir /config/usb_gadget/g1/configs/b.1 0770 shell shell",
20d6aed566Sopenharmony_ci                "mkdir /config/usb_gadget/g1/configs/b.1/strings/0x409 0770 shell shell",
21d6aed566Sopenharmony_ci                "write /config/usb_gadget/g1/os_desc/b_vendor_code 0x1",
22d6aed566Sopenharmony_ci                "write /config/usb_gadget/g1/os_desc/qw_sign MSFT100",
23d6aed566Sopenharmony_ci                "write /config/usb_gadget/g1/configs/b.1/MaxPower 500",
24d6aed566Sopenharmony_ci                "symlink /config/usb_gadget/g1/configs/b.1 /config/usb_gadget/g1/os_desc/b.1",
25d6aed566Sopenharmony_ci                "mount functionfs hdc /dev/usb-ffs/hdc uid=2000,gid=2000",
26d6aed566Sopenharmony_ci                "setparam sys.usb.configfs 1",
27d6aed566Sopenharmony_ci                "setparam sys.usb.controller 100e0000.hidwc3_0"
28d6aed566Sopenharmony_ci            ]
29d6aed566Sopenharmony_ci        }, {
30d6aed566Sopenharmony_ci            "name" : "param:sys.usb.config=none && param:sys.usb.configfs=1",
31d6aed566Sopenharmony_ci            "condition" : "sys.usb.config=none && sys.usb.configfs=1",
32d6aed566Sopenharmony_ci            "cmds" : [
33d6aed566Sopenharmony_ci                "write /config/usb_gadget/g1/os_desc/use 0",
34d6aed566Sopenharmony_ci                "setparam sys.usb.ffs.ready 0"
35d6aed566Sopenharmony_ci            ]
36d6aed566Sopenharmony_ci        }, {
37d6aed566Sopenharmony_ci            "name" : "param:init.svc.hdcd=stopped",
38d6aed566Sopenharmony_ci            "condition" : "init.svc.hdcd=stopped",
39d6aed566Sopenharmony_ci            "cmds" : [
40d6aed566Sopenharmony_ci                "setparam sys.usb.ffs.ready 0"
41d6aed566Sopenharmony_ci            ]
42d6aed566Sopenharmony_ci        }, {
43d6aed566Sopenharmony_ci            "name" : "param:sys.usb.config=hdc && param:sys.usb.configfs=1",
44d6aed566Sopenharmony_ci            "condition" : "sys.usb.config=hdc && sys.usb.configfs=1",
45d6aed566Sopenharmony_ci            "cmds" : [
46d6aed566Sopenharmony_ci                "write /config/usb_gadget/g1/idProduct 0x5000",
47d6aed566Sopenharmony_ci                "write /config/usb_gadget/g1/os_desc/use 1"
48d6aed566Sopenharmony_ci            ]
49d6aed566Sopenharmony_ci        }
50d6aed566Sopenharmony_ci    ]
51d6aed566Sopenharmony_ci}
52