求教 V3s wget 或者 curl 命令如何使用硬件AES 硬件加速来实现openssl支持呢? wget一个https文件,CPU占用率很高!!
最近编辑记录 danile (2019-07-29 09:09:11)
离线
V3s 主线 Linux 貌似没有支持 AES 驱动吧, 得去看下 bsp linux 有没有整合进去。
离线
我搜了一圈, 全志其他 soc 比如A20 是支持 crypto 的3
http://linux-sunxi.org/Cryptographic_Hardware_Accelerators
https://github.com/torvalds/linux/blob/master/arch/arm/boot/dts/sun7i-a20.dtsi
https://github.com/torvalds/linux/blob/master/drivers/crypto/sunxi-ss/sun4i-ss-core.c
crypto: crypto-engine@1c15000 {
compatible = "allwinner,sun7i-a20-crypto",
"allwinner,sun4i-a10-crypto";
reg = <0x01c15000 0x1000>;
interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&ccu CLK_AHB_SS>, <&ccu CLK_SS>;
clock-names = "ahb", "mod";
};
V3s 不知道是否需要修改驱动?
离线
V3S bsp 如何配置AES ?
离线
https://github.com/torvalds/linux/blob/master/arch/arm/boot/dts/sun8i-v3s.dtsi
主线 Linux 貌似已经支持 crypto engine了!
第 271 行:
crypto@1c15000 {
compatible = "allwinner,sun8i-v3s-crypto",
"allwinner,sun8i-a33-crypto";
reg = <0x01c15000 0x1000>;
interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&ccu CLK_BUS_CE>, <&ccu CLK_CE>;
clock-names = "ahb", "mod";
resets = <&ccu RST_BUS_CE>;
reset-names = "ahb";
};
离线