Closed Martins3 closed 3 years ago
➜ ~ ssh loongson@10.90.50.133
ssh: connect to host 10.90.50.133 port 22: Connection refused
systemctl start sshd
交叉编译的方法:
在 loongson 上
交叉编译 Linux module 的方法 : https://stackoverflow.com/questions/3467850/cross-compiling-a-kernel-module 因为用户态程序是直接使用 x86 的编译器,从而可以 indexing, 而内核模块交叉编译,从而可以掌握全部的脚本。
make tags
may work too.
diff --git a/Makefile b/Makefile
index 7d1b6fd..931d0a9 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@ CROSS_COMPILE=arm-none-linux-gnueabi
obj-m := dune.o
dune-objs := \
core.o \
vz.c
KDIR := /home/maritns3/core/loongson-dune/cross PWD := $(shell pwd)
clangd is unnecessary, the latest ccls works perfectly.
we can compile vz option successfully, but trap and emulate
not.
about how to remove password: https://askubuntu.com/questions/281074/can-i-set-my-user-account-to-have-no-password