最近在弄硬盘休眠,找到解决不休眠的教程了,结果却不知道该咋操作,下面是教程 修改redpill驱动的smart_shim.c文件,把第684行的 pr_loc_err("Expected to copy HDIO_DRIVE_CMD header of %d bytes from %p - it failed", HDIO_DRIVE_CMD_HDR_OFFSET, buff_ptr); 这行代码删掉或者注释掉,然后重新编译redpill引导即可。 帮我看下这步怎么操作啊,我都不知道这个文件在哪
嗯,我之前已经把他们都指向内存了,结果过了一晚上我发现还是唤醒了两三次,查看日志有如下显示 [89624.844151] <redpill/smart_shim.c:687> Expected to copy HDIO_DRIVE_CMD header of 4 bytes from (null) - it failed [89624.846229] <redpill/smart_shim.c:687> Expected to copy HDIO_DRIVE_CMD header of 4 bytes from (null) - it failed [89624.847126] <redpill/smart_shim.c:687> Expected to copy HDIO_DRIVE_CMD header of 4 bytes from (null) - it failed [89624.871722] <redpill/smart_shim.c:687> Expected to copy HDIO_DRIVE_CMD header of 4 bytes from (null) - it failed [89624.872765] <redpill/smart_shim.c:687> Expected to copy HDIO_DRIVE_CMD header of 4 bytes from (null) - it failed [89624.873691] <redpill/smart_shim.c:687> Expected to copy HDIO_DRIVE_CMD header of 4 bytes from (null) - it failed [89624.874532] <redpill/smart_shim.c:687> Expected to copy HDIO_DRIVE_CMD header of 4 bytes from (null) - it failed [89626.005110] <redpill/override_symbol.c:250> Obtaining lock for <GetHwCapability+0x0/0xf0 [geminilake_synobios]/ffffffffa062ac90> [89626.005333] <redpill/override_symbol.c:250> Writing original code to <ffffffffa062ac90> [89626.005486] <redpill/override_symbol.c:250> Released lock for <ffffffffa062ac90> [89626.005656] <redpill/override_symbol.c:221> Obtaining lock for <GetHwCapability+0x0/0xf0 [geminilake_synobios]/ffffffffa062ac90> [89626.005874] <redpill/override_symbol.c:221> Writing trampoline code to <ffffffffa062ac90> [89626.006029] <redpill/override_symbol.c:221> Released lock for <ffffffffa062ac90> [89626.006169] <redpill/bios_hwcap_shim.c:66> proxying GetHwCapability(id=5)->support => real=0 [org_fout=0, ovs_fout=0] [89626.156463] <redpill/pmu_shim.c:310> Got 1 bytes from PMU: reason=1 hex={2d} ascii="-" [89626.306465] <redpill/pmu_shim.c:310> Got 1 bytes from PMU: reason=1 hex={37} ascii="7" [89626.306550] <redpill/pmu_shim.c:239> Executing cmd OUT_STATUS_LED_OFF handler cmd_shim_noop+0x0/0x30 [redpill] [89626.306662] <redpill/pmu_shim.c:45> vPMU received OUT_STATUS_LED_OFF using 1 bytes - NOOP [89655.377851] <redpill/pmu_shim.c:310> Got 1 bytes from PMU: reason=1 hex={2d} ascii="-" [89655.527860] <redpill/pmu_shim.c:310> Got 1 bytes from PMU: reason=1 hex={44} ascii="D" [89655.527937] <redpill/pmu_shim.c:235> Unknown 1 byte PMU command with signature hex="44" ascii="D" [89655.777551] synobios get empty ttyS current [89684.662162] <redpill/bios_shims_collection.c:52> mfgBIOS: nullify zero-int for VTK_SET_HDD_ACT_LED [89698.527459] ppid:11542(redis-server), pid:27549(redis-server), dirtied inode 25432 (temp-27549.rdb) on md0 [89698.527659] ppid:11542(redis-server), pid:27549(redis-server), dirtied inode 25432 (temp-27549.rdb) on md0 [89698.527843] ppid:11542(redis-server), pid:27549(redis-server), dirtied inode 25432 (temp-27549.rdb) on md0 我就在想是不是得删掉才能根除