12fe4e5f8Sopenharmony_ci{ 22fe4e5f8Sopenharmony_ci "import" : [ 32fe4e5f8Sopenharmony_ci "/etc/init.Hi3516DV300.updater.cfg" 42fe4e5f8Sopenharmony_ci ], 52fe4e5f8Sopenharmony_ci "jobs" : [{ 62fe4e5f8Sopenharmony_ci "name" : "pre-init", 72fe4e5f8Sopenharmony_ci "cmds" : [ 82fe4e5f8Sopenharmony_ci "symlink /system/bin /bin", 92fe4e5f8Sopenharmony_ci "start ueventd" 102fe4e5f8Sopenharmony_ci ] 112fe4e5f8Sopenharmony_ci }, { 122fe4e5f8Sopenharmony_ci "name" : "init", 132fe4e5f8Sopenharmony_ci "cmds" : [ 142fe4e5f8Sopenharmony_ci "wait /dev/block/platform/soc/10100000.himci.eMMC/by-name", 152fe4e5f8Sopenharmony_ci "symlink /dev/block/platform/soc/10100000.himci.eMMC/by-name /dev/block/by-name", 162fe4e5f8Sopenharmony_ci "mkdir /system", 172fe4e5f8Sopenharmony_ci "mkdir /vendor", 182fe4e5f8Sopenharmony_ci "mkdir /tmp", 192fe4e5f8Sopenharmony_ci "mkdir /param", 202fe4e5f8Sopenharmony_ci "mount tmpfs tmpfs /tmp", 212fe4e5f8Sopenharmony_ci "chown 0 2000 /tmp", 222fe4e5f8Sopenharmony_ci "chmod 0755 /tmp", 232fe4e5f8Sopenharmony_ci "chmod 0755 /param", 242fe4e5f8Sopenharmony_ci "mkdir /dev/usb-ffs 0770 shell shell", 252fe4e5f8Sopenharmony_ci "mkdir /dev/usb-ffs/hdc 0770 shell shell", 262fe4e5f8Sopenharmony_ci "mkdir /dev/usb-ffs/hdc 0770 shell shell", 272fe4e5f8Sopenharmony_ci "mkdir /config 0770 shell shell", 282fe4e5f8Sopenharmony_ci "mount configfs none /config", 292fe4e5f8Sopenharmony_ci "mkdir /config/usb_gadget/g1 0770 shell shell", 302fe4e5f8Sopenharmony_ci "write /config/usb_gadget/g1/idVendor 0x12D1", 312fe4e5f8Sopenharmony_ci "write /config/usb_gadget/g1/idProduct 0x5000", 322fe4e5f8Sopenharmony_ci "write /config/usb_gadget/g1/os_desc/use 1", 332fe4e5f8Sopenharmony_ci "write /config/usb_gadget/g1/bcdDevice 0x0223", 342fe4e5f8Sopenharmony_ci "write /config/usb_gadget/g1/bcdUSB 0x0200", 352fe4e5f8Sopenharmony_ci "mkdir /config/usb_gadget/g1/strings/0x409 0770", 362fe4e5f8Sopenharmony_ci "copy /sys/block/mmcblk0/device/cid /config/usb_gadget/g1/strings/0x409/serialnumber", 372fe4e5f8Sopenharmony_ci "write /config/usb_gadget/g1/strings/0x409/manufacturer HISILICON", 382fe4e5f8Sopenharmony_ci "write /config/usb_gadget/g1/strings/0x409/product \"HDC Device\"", 392fe4e5f8Sopenharmony_ci "mkdir /config/usb_gadget/g1/functions/ffs.hdc", 402fe4e5f8Sopenharmony_ci "mkdir /config/usb_gadget/g1/configs/b.1 0770 shell shell", 412fe4e5f8Sopenharmony_ci "mkdir /config/usb_gadget/g1/configs/b.1/strings/0x409 0770 shell shell", 422fe4e5f8Sopenharmony_ci "write /config/usb_gadget/g1/os_desc/b_vendor_code 0x1", 432fe4e5f8Sopenharmony_ci "write /config/usb_gadget/g1/os_desc/qw_sign MSFT100", 442fe4e5f8Sopenharmony_ci "write /config/usb_gadget/g1/configs/b.1/MaxPower 500", 452fe4e5f8Sopenharmony_ci "symlink /config/usb_gadget/g1/configs/b.1 /config/usb_gadget/g1/os_desc/b.1", 462fe4e5f8Sopenharmony_ci "mount functionfs hdc /dev/usb-ffs/hdc uid=2000,gid=2000", 472fe4e5f8Sopenharmony_ci "load_persist_params ", 482fe4e5f8Sopenharmony_ci "setparam sys.usb.controller 100e0000.hidwc3_0", 492fe4e5f8Sopenharmony_ci "setparam sys.usb.config hdc", 502fe4e5f8Sopenharmony_ci "setparam sys.usb.configfs 1" 512fe4e5f8Sopenharmony_ci ] 522fe4e5f8Sopenharmony_ci }, { 532fe4e5f8Sopenharmony_ci "name" : "post-init", 542fe4e5f8Sopenharmony_ci "cmds" : [ 552fe4e5f8Sopenharmony_ci "start shell", 562fe4e5f8Sopenharmony_ci "start updater" 572fe4e5f8Sopenharmony_ci ] 582fe4e5f8Sopenharmony_ci } 592fe4e5f8Sopenharmony_ci ], 602fe4e5f8Sopenharmony_ci "services" : [{ 612fe4e5f8Sopenharmony_ci "name" : "shell", 622fe4e5f8Sopenharmony_ci "path" : ["/bin/sh"], 632fe4e5f8Sopenharmony_ci "uid" : 0, 642fe4e5f8Sopenharmony_ci "gid" : 2000, 652fe4e5f8Sopenharmony_ci "once" : 0, 662fe4e5f8Sopenharmony_ci "importance" : 0, 672fe4e5f8Sopenharmony_ci "console" : 1 682fe4e5f8Sopenharmony_ci }, { 692fe4e5f8Sopenharmony_ci "name" : "updater", 702fe4e5f8Sopenharmony_ci "path" : ["/bin/updater"], 712fe4e5f8Sopenharmony_ci "uid" : 0, 722fe4e5f8Sopenharmony_ci "gid" : 0, 732fe4e5f8Sopenharmony_ci "importance" : 0, 742fe4e5f8Sopenharmony_ci "caps" : [0, 1] 752fe4e5f8Sopenharmony_ci }, { 762fe4e5f8Sopenharmony_ci "name" : "ueventd", 772fe4e5f8Sopenharmony_ci "path" : ["/bin/ueventd"], 782fe4e5f8Sopenharmony_ci "uid" : 0, 792fe4e5f8Sopenharmony_ci "gid" : 2000, 802fe4e5f8Sopenharmony_ci "once" : 0, 812fe4e5f8Sopenharmony_ci "importance" : 0, 822fe4e5f8Sopenharmony_ci "caps" : [0, 1], 832fe4e5f8Sopenharmony_ci "socket" : [{ 842fe4e5f8Sopenharmony_ci "name" : "ueventd", 852fe4e5f8Sopenharmony_ci "family" : "AF_NETLINK", 862fe4e5f8Sopenharmony_ci "type" : "SOCK_DGRAM", 872fe4e5f8Sopenharmony_ci "protocol" : "NETLINK_KOBJECT_UEVENT", 882fe4e5f8Sopenharmony_ci "permissions" : "0660", 892fe4e5f8Sopenharmony_ci "uid" : "0", 902fe4e5f8Sopenharmony_ci "gid" : "2000", 912fe4e5f8Sopenharmony_ci "option" : [ 922fe4e5f8Sopenharmony_ci "SOCKET_OPTION_PASSCRED", 932fe4e5f8Sopenharmony_ci "SOCKET_OPTION_RCVBUFFORCE", 942fe4e5f8Sopenharmony_ci "SOCK_CLOEXEC", 952fe4e5f8Sopenharmony_ci "SOCK_NONBLOCK" 962fe4e5f8Sopenharmony_ci ] 972fe4e5f8Sopenharmony_ci }], 982fe4e5f8Sopenharmony_ci "critical" : [ 0, 15, 5], 992fe4e5f8Sopenharmony_ci "ondemand" : true 1002fe4e5f8Sopenharmony_ci } 1012fe4e5f8Sopenharmony_ci ] 1022fe4e5f8Sopenharmony_ci} 103