[OpenWrt-Devel] [PATCH] kernel: enable CONFIG_IDE_TASK_IOCTL for 4.19

Rosen Penev rosenp at gmail.com
Mon Apr 8 15:57:09 EDT 2019


CONFIG_IDE_TASK_IOCTL is used by hdparm when erasing drives. Without it,
it errors with:

Issuing SECURITY_ERASE command, password="PasSWorD", user=user
The running kernel lacks CONFIG_IDE_TASK_IOCTL support for this device.
SECURITY_ERASE: Invalid argument

I have not been able to find a size increase as a result of enabling it:

Before:
1917495 Feb 19 16:15 linux-ramips_mt7621/gnubee_gb-pc1-kernel.bin

After:
1917495 Feb 19 16:27 linux-ramips_mt7621/gnubee_gb-pc1-kernel.bin

Signed-off-by: Rosen Penev <rosenp at gmail.com>
---
 target/linux/generic/config-4.19 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/generic/config-4.19 b/target/linux/generic/config-4.19
index e187241567..7e1da9c430 100644
--- a/target/linux/generic/config-4.19
+++ b/target/linux/generic/config-4.19
@@ -1992,7 +1992,7 @@ CONFIG_HZ_100=y
 # CONFIG_IDEAPAD_LAPTOP is not set
 # CONFIG_IDE_GD is not set
 # CONFIG_IDE_PROC_FS is not set
-# CONFIG_IDE_TASK_IOCTL is not set
+CONFIG_IDE_TASK_IOCTL=y
 # CONFIG_IDLE_PAGE_TRACKING is not set
 # CONFIG_IEEE802154 is not set
 # CONFIG_IEEE802154_ADF7242 is not set
-- 
2.17.1


_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list