linux – 内核参数“console”和“earlycon”是指旧硬件?

weixin_38072417 weixin_38072417 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
我首先通过调查earlycon的参数找到了这个,但发现控制台的选项看起来几乎相同.两者都在下面,取自this来源: 从控制台文档我们有: console= [KNL] Output console device and options. tty<n> Use the virtual console device <n>. ttyS<n>[,options] ttyUSB0[,options] Use the specified serial port. The options are of the form "bbbbpnf", where "bbbb" is the baud rate, "p" is parity ("n", "o", or "e"), "n" is number of bits, and "f" is flow control ("r" for RTS or omit it). Default is "9600n8". See Documentation/serial-console.txt for more information. See Documentation/networking/netconsole.txt for an alternative. uart[8250],io,<addr>[,options] uart[8250],mmio,<addr>[,options] uart[8250],mmio16,<addr>[,options] uart[8250],mmio32,<addr>[,options] uart[8250],0x<addr>[,options] Start an early, polled-mode console on the 8250/16550 UART at the specified I/O port or MMIO address, switching to the matching ttyS device later. MMIO inter-register address stride is either 8-bit (mmio), 16-bit (mmio16), or 32-bit (mmio32). If none of [io|mmio|mmio16|mmio32], <addr> is assumed to be equivalent to 'mmio'. 'options' are specified in the same format described for ttyS above; if unspecified, the h/w is not re-initialized. hvc<n> Use the hypervisor console device <n>. This is for both Xen and PowerPC hypervisors. If the device connected to the port is not a TTY but a braille device, prepend "brl," before the device type, for instance console=brl,ttyS0 For now, only VisioBraille is supported. 从earlycon的文档我们有: earlycon= [KNL] Output early console device and options. When used with no options, the early console is determined by the stdout-path property in device tree's chosen node. cdns,<addr> Start an early, polled-mode console on a cadence serial port at the specified address. The cadence serial port must already be setup and configured. Options are not yet supported. uart[8250],io,<addr>[,options] uart[8250],mmio,<addr>[,options] uart[8250],mmio32,<addr>[,options] uart[8250],mmio32be,<addr>[,options] uart[8250],0x<addr>[,options] Start an early, polled-mode console on the 8250/16550 UART at the specified I/O port or MMIO address. MMIO inter-register address stride is either 8-bit (mmio) or 32-bit (mmio32 or mmio32be). If none of [io|mmio|mmio32|mmio32be], <addr> is assumed to be equivalent to 'mmio'. 'options' are specified in the same format described for "console=ttyS<n>"; if unspecified, the h/w is not initialized. pl011,<addr> pl011,mmio32,<addr> Start an early, polled-mode console on a pl011 serial port at the specified address. The pl011 serial port must already be setup and configured. Options are not yet supported. If 'mmio32' is specified, then only the driver will use only 32-bit accessors to read/write the device registers. meson,<addr> Start an early, polled-mode console on a meson serial port at the specified address. The serial port must already be setup and configured. Options are not yet supported. msm_serial,<addr> Start an early, polled-mode console on an msm serial port at the specified address. The serial port must already be setup and configured. Options are not yet supported. msm_serial_dm,<addr> Start an early, polled-mode console on an msm serial dm port at the specified address. The serial port must already be setup and configured. Options are not yet supported. smh Use ARM semihosting calls for early console. s3c2410,<addr> s3c2412,<addr> s3c2440,<addr> s3c6400,<addr> s5pv210,<addr> exynos4210,<addr> Use early console provided by serial driver available on Samsung SoCs, requires selecting proper type and a correct base address of the selected UART port. The serial port must already be setup and configured. Options are not yet supported. lpuart,<addr> lpuart32,<addr> Use early console provided by Freescale LP UART driver found on Freescale Vybrid and QorIQ LS1021A processors. A valid base address must be provided, and the serial port must already be setup and configured. armada3700_uart,<addr> Start an early, polled-mode console on the Armada 3700 serial port at the specified address. The serial port must already be setup and configured. Options are not yet supported. 用法的一个例子是: earlycon = uart8250,0x21c0500 我的问题是: >为什么有参考8250/16550物理硬件?这个旧的实现是否已成为现代设计的接口规范?也就是说,当这些通信设备在SoC外部时,我们是否还在使用兼容的UART驱动程序?>如果MMIO是内存映射IO,那么在此上下文中引用的“正常”IO是什么?>什么是< addr>参数?这是您运行此内核的特定SoC的UART配置寄存器的开头吗?大多数UART配置寄存器是否符合特定的寄存器布局,以便通用UART驱动程序可以适当地配置硬件?
...全文

相关推荐

科研论文写作+LaTeX公式排版+数学公式与矩阵/多行对齐/编号引用实战案例+毕业论文与期刊投稿速查手册

LaTeX公式排版技巧与实战案例 【解决什么问题】 公式写对了却"看起来不对":函数名排成斜体、长公式冲出右边距、等号错开半行、编号跳号、括号过大、行距被分式撑开——编译不报错,却一眼被导师和审稿人看出来。本资源逐个给出可复制的正解。 【内容结构】 1)手册 50 页(PDF + 可编辑 DOCX):第 1—3 章讲 4 条硬指标、引擎选择、导言区骨架、公式入口与字体语义;第 4—12 章拆角标与微分、分式根式、求和积分、定界符尺寸、矩阵、编号与交叉引用、断行决策树、间距微调、定理体系;第 13 章是十大高频报错对照表(报错原文→根因→修复);第 15 章为投稿前 20 条自检清单;附录含完整模板、符号速查表、宏包清单。 2)12 个独立可编译案例(examples/):求根公式、分段函数、矩阵与方程组、多重积分与雅可比、泰勒展开、条件概率与 MLE、损失函数多行对齐、带约束优化、断行三写法对比、化学式与物理单位、算法伪代码公式、定理—引理—证明闭环,手册第 14 章逐例解读。 3)模板与速查单页(template/):改导言区即可写论文;A4 双栏符号表可打印。 【适用人群】毕业论文、期刊投稿、技术文档作者;会写 \documentclass 即可上手。 【环境】TeX Live 2023+ / MiKTeX 23+,XeLaTeX 编译;amsmath、mathtools、bm、siunitx、amsthm、mhchem、cleveref。 【用法】先跑通第 2 章环境 → 编译 01 号案例确认链路 → 替换模板导言区 → 写作时查附录 B → 交稿前过第 15 章清单。 示例代码可自由用于个人学习与论文写作。

kyyyyyy_

微信小程序实战开发教程:组件API、云开发、支付接入与性能优化

项目级实战教程,全案例可复现。覆盖:工程结构与页面路由 · WXML/WXSS 组件样式 · 数据绑定与事件 · 网络与本地存储 · 云函数云数据库云存储 · 登录与授权 · 微信支付接入 · 分包与性能优化。含判据表、配置片段与审核避坑。

wdxnzhh

产业园区运营负责人如何实现园区内创新资源的精准匹配与高效配置?.docx

科易网基于行业知识库+行业大数据+科技资源要素+AI模型,以AI,赋能技术转移、成果转化、技术经理人培训、知识产权管理、区域产业分析与布局、地方科技招商、创新创业大赛等场景,推出科技创新领域的AI工具、场景化服务和数智化解决方案,推动科技创新与产业创新智能化发展。

BIZKEEN

【ADMM、碳排放】基于分布式ADMM算法的考虑碳排放交易的电力系统优化调度研究【IEEE6节点、IEEE30节点、IEEE118节点】(Matlab代码实现)

内容概要:本文围绕基于分布式交替方向乘子法(ADMM)的电力系统优化调度展开研究,深入探讨了碳排放交易机制对多区域电力系统经济与低碳运行的影响。研究构建了融合碳交易成本的多区域分布式优化调度模型,并在IEEE6、IEEE30和IEEE118标准测试系统上进行了仿真验证。通过Matlab编程实现了ADMM算法的迭代求解过程,详细剖析了其分解协调机制与收敛特性,有效实现了系统运行成本与碳排放总量的协同优化,为低碳电力系统调度提供了理论支持与技术路径。; 适合人群:具备电力系统分析、优化理论基础及Matlab编程能力的研究生、高校科研人员以及电力公司从事调度自动化与节能减排工作的技术人员。; 使用场景及目标:①应用于跨区域互联电网在碳市场环境下的分布式经济调度与碳配额分配研究;②为电力系统低碳运行策略制定、碳价机制设计及政策仿真评估提供算法工具与案例支撑。; 阅读建议:建议读者结合提供的Matlab代码,深入理解ADMM算法的变量分裂、拉格朗日函数构建与分布式求解流程,重点关注碳交易价格对各区域机组出力、联络线功率及总成本的影响,可进一步拓展至含大规模可再生能源接入的随机或鲁棒优化场景。

李锦科研

【数据库部署】麒麟v10系统安装金仓KingbaseES指南:国产化环境下的金仓数据库部署方案

内容概要:本文详细介绍了在麒麟v10操作系统上安装国产金仓数据库(KingbaseES)的完整流程,涵盖安装包下载、系统环境准备、依赖库安装、数据库服务安装、数据目录初始化及数据库启动与连接等关键步骤。文档重点指导用户通过创建专用用户和属组、配置yum源、安装必要依赖、使用rpm命令安装数据库软件,并通过initdb命令初始化数据库集群,最终完成数据库服务的启动与客户端连接验证。整个过程结合命令行操作与输出日志,具有较强的实操指导性。; 适合人群:具备Linux操作系统基础、熟悉数据库基本概念的系统管理员、数据库运维人员或国产化项目实施工程师,尤其适用于从事信创环境下数据库部署的技术人员。; 使用场景及目标:①在麒麟v10系统中部署金仓数据库以替代国外数据库产品;②完成数据库的初始化配置并实现本地连接访问;③为后续的数据库迁移、应用对接和性能调优提供基础环境支撑。; 阅读建议:在操作前应确保系统已联网并配置好yum源,严格按照文档顺序执行命令,注意权限管理和路径一致性,建议在测试环境中先行验证后再应用于生产环境。

飞奔的瓜牛
评论 1
收藏 已收藏
分享
返回顶部