Compiling for CI20

Kai Nacke kai at redstar.de
Wed Jul 10 17:07:21 UTC 2019


Hi,

I tried to build FreeBSD for the CI20 board. There were some compile 
errors due to undeclared symbols. The attached diff fixes the compile 
problems.

Regards,
Kai

-------------- next part --------------
diff --git a/sys/mips/ingenic/jz4780_machdep.c b/sys/mips/ingenic/jz4780_machdep.c
index 2e8005eb17a..c74e7cc6113 100644
--- a/sys/mips/ingenic/jz4780_machdep.c
+++ b/sys/mips/ingenic/jz4780_machdep.c
@@ -39,6 +39,7 @@ __FBSDID("$FreeBSD$");
 #include <sys/boot.h>
 #include <sys/cons.h>
 #include <sys/kdb.h>
+#include <sys/mutex.h>
 #include <sys/reboot.h>
 
 #ifdef FDT
diff --git a/sys/mips/ingenic/jz4780_mmc.c b/sys/mips/ingenic/jz4780_mmc.c
index ed7e14fc0fa..e6359e03435 100644
--- a/sys/mips/ingenic/jz4780_mmc.c
+++ b/sys/mips/ingenic/jz4780_mmc.c
@@ -775,7 +775,7 @@ jz4780_mmc_read_ivar(device_t bus, device_t child, int which,
 		*(int *)result = sc->sc_host.ios.power_mode;
 		break;
 	case MMCBR_IVAR_RETUNE_REQ:
-		*(int *)result = return_req_none;
+		*(int *)result = retune_req_none;
 		break;
 	case MMCBR_IVAR_VDD:
 		*(int *)result = sc->sc_host.ios.vdd;
diff --git a/sys/mips/ingenic/jz4780_smb.c b/sys/mips/ingenic/jz4780_smb.c
index a69b6cbd198..8ed8cb64d14 100644
--- a/sys/mips/ingenic/jz4780_smb.c
+++ b/sys/mips/ingenic/jz4780_smb.c
@@ -39,6 +39,8 @@ __FBSDID("$FreeBSD$");
 #include <sys/rman.h>
 #include <sys/kernel.h>
 #include <sys/module.h>
+#include <sys/lock.h>
+#include <sys/mutex.h>
 #include <sys/time.h>
 #include <machine/bus.h>
 


More information about the freebsd-mips mailing list