如何配置netbsd内核
发表于:2025-11-07 作者:千家信息网编辑
千家信息网最后更新 2025年11月07日,这篇文章主要讲解了"如何配置netbsd内核",文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习"如何配置netbsd内核"吧!这个内核配置文件,要经过con
千家信息网最后更新 2025年11月07日如何配置netbsd内核
这篇文章主要讲解了"如何配置netbsd内核",文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习"如何配置netbsd内核"吧!
这个内核配置文件,要经过config进行处理
第一行表示,要包含一个文件
include "arch/evbmips/conf/std.loongson", 内容如下:
# $NetBSD: std.loongson,v 1.2 2017/08/08 12:22:21 maya Exp $machine evbmips mipsinclude "conf/std" # MI standard optionsoptions MIPS3_ENABLE_CLOCK_INTRoptions ENABLE_MIPS_16KB_PAGEoptions PMON# Platform supportoptions MIPS3_LOONGSON2options MIPS3options MIPS3_LOONGSON2Foptions LOONGSON2 # IDT LOONGSON2makeoptions LP64="yes"options EXEC_ELF64options EXEC_ELF32 # exec ELF32 binariesoptions EXEC_SCRIPT # exec #! scriptsoptions COMPAT_NETBSD32makeoptions CPUFLAGS="-mips3 -mdivide-breaks -Wa,-mfix-loongson2f-btb -Wa,-mfix-loongson2f-jump -Wa,-mfix-loongson2f-nop" # CPU codegen optionsmakeoptions DEFTEXTADDR="0x80200000"makeoptions BOARDTYPE="loongson"include "arch/evbmips/conf/files.loongson"
它又包含了两个文件:
1 conf/std
# $NetBSD: std,v 1.23 2019/01/27 02:08:41 pgoyette Exp $## standard MI 'options' 标准的不能取消的选项## this file is for options which can't be off-by-default for some reasons.# "it's commonly used" is NOT a good reason to enable options here.## Always include "kern" attribute (module). Other attributes don't need to# depend on "kern".#select kern 有内核模块属性,在输出目录里,有kern_xxx.d & kern_xxx.o# Always include the "vfs" attribute (module). Although all of the# ufs/xxx file systems depend on the vfs attribute, it is not required# that any file system actually be built-in to the kernel. (At least# on some architectures, file system modules can be loaded at boot# time.)select vfs 有vfs,虚拟文件系统属性,在输出目录里,有vfs_xxx.d & vfs_xxx.o select net # XXX Clean up dependency# the following options are on-by-default to keep# kernel config file compatibility.下面的选项,默认都是打开的options VMSWAP # Swap device/file supportoptions BUFQ_FCFS # First-come First-serve strategyoptions BUFQ_DISKSORT # Traditional min seek sort strategyoptions RFC2292 # Previous version of Adv. Sockets API for IPv6options PTRACE # Include ptrace(2) syscalloptions PTRACE_HOOKS # Include ptrace hooksoptions COREDUMP # allow processes to coredump.options AIO # POSIX asynchronous I/Ooptions MQUEUE # POSIX message queues# Common compatibility functions. They happen to be needed even when# no compatibility option is explicitly enabled.#options COMPAT_UTILS## Security model.#options secmodel_bsd44 # Traditional 4.4BSD security model## Scheduling algorithm#options SCHED_4BSDpseudo-device cpuctl## Kernel entropy pool and random-number generator pseudodevice.# The pseudodevice might stop being "std" when the two are torn# apart some day but the entropy pool itself never will (they are# presently implemented in the same source file)#pseudo-device rnd
2 arch/evbmips/conf/files.loongson
# $NetBSD: files.loongson,v 1.5 2014/07/20 10:22:54 alnsn Exp $# Standard stanzas config(8) can't run withoutmaxpartitions 16maxusers 8 16 64file arch/evbmips/loongson/autoconf.cfile arch/evbmips/loongson/loongson_bus_io.cfile arch/evbmips/loongson/loongson_bus_mem.cfile kern/subr_disk_mbr.cfile arch/evbmips/loongson/loongson_intr.cfile arch/evbmips/evbmips/interrupt.cfile arch/evbmips/loongson/gdium_machdep.cfile arch/evbmips/loongson/generic2e_machdep.cfile arch/evbmips/loongson/yeeloong_machdep.cfile arch/evbmips/loongson/isa_machdep.c isafile arch/evbmips/loongson/loongson2_machdep.cfile arch/evbmips/loongson/machdep.cfile arch/mips/mips/bus_dma.cfile arch/mips/mips/mips3_clock.cfile arch/mips/mips/mips3_clockintr.c# Memory Diskfile dev/md_root.c memory_disk_hooks# Stack-less Just-In-Time compilerinclude "external/bsd/sljit/conf/files.sljit"include "dev/ata/files.ata"include "dev/scsipi/files.scsipi"include "dev/i2o/files.i2o"include "dev/isa/files.isa"include "dev/pci/files.pci"include "dev/pci/files.agp"include "dev/usb/files.usb"include "dev/bluetooth/files.bluetooth"include "dev/pckbport/files.pckbport"device mainbus {[addr = -1] }attach mainbus at rootfile arch/evbmips/loongson/mainbus.c mainbusfile arch/evbmips/loongson/bonito_mainbus.c bonito_mainbusdevice cpuattach cpu at mainbusfile arch/evbmips/evbmips/cpu.c cpudevice clockattach clock at mainbusinclude "arch/mips/conf/files.bonito"# AMD Geode CS5536 companion chipfile arch/evbmips/loongson/dev/glx.c bonito & pci# AMD Geode CS5535/CS5536 PCI-ISA bridgedevice gcscpcib: isabus, sysmon_wdog, gpiobusattach gcscpcib at pci with gcscpcib_pcifile arch/evbmips/loongson/dev/gcscpcib_pci.c gcscpcib_pcifile dev/ic/gcscpcib.c gcscpcib# Other PCI-ISA bridgesdevice pcib: isabusattach pcib at pcifile arch/evbmips/loongson/dev/pcib.c pcib | gcscpcibfile arch/mips/pci/pciide_machdep.c pciide_commondevice mcclock: mc146818attach mcclock at isa with mcclock_isafile arch/evbmips/isa/mcclock_isa.c mcclock_isa# Lemote Yeeloong KB3310B Embedded Controllerdevice ykbecattach ykbec at isafile arch/evbmips/loongson/dev/kb3310.c ykbec needs-flag# Gdium ST7 controllerdevice stviiattach stvii at iicfile arch/evbmips/loongson/dev/stvii.c stvii needs-flagdefflag opt_stvii.h STVII_DEBUG# SM502 OHCI#attach ohci at voyager with ohci_voyager#file arch/loongson/dev/ohci_voyager.c ohci_voyager感谢各位的阅读,以上就是"如何配置netbsd内核"的内容了,经过本文的学习后,相信大家对如何配置netbsd内核这一问题有了更深刻的体会,具体使用情况还需要大家实践验证。这里是,小编将为大家推送更多相关知识点的文章,欢迎关注!
内核
配置
文件
内容
学习
属性
目录
输出
一行
两个
就是
思路
情况
文章
更多
标准
模块
知识
知识点
篇文章
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
湘潭学校网站建设服务器
上海免费版进销存软件开发
ctf网络安全
江苏芯融网络技术研究院咋样
广州巨杉软件开发有限公司简介
江苏无线网络技术口碑推荐
千的软件开发
ftp代理服务器软件
电脑网络安全证书错误怎么办
广州万户网络技术有限公司邮编
普陀区创新软件开发要多少钱
数据库的安全及效率优化
上海中纺达软件开发有限公司
网络安全时代步伐
网络安全教学内容包括
创建数据库实践感受
服务器主板一定要插服务器内存吗
vs怎么写sql数据库
寿光网络技术
沉迷网络安全的危害资料
快快云服务器
中国联通网络技术公司
delphi 数据库编程
工业互联网信息化网络安全
计算机网络技术发展热点
gis数据库建设标准
软件开发项目预算案例分析
石家庄软件开发公司工资一般多少
前台身份号码提交数据库报错
张家口人社服务器拒绝