bios

X86架构下Linux启动过程分析

最后都变了- 提交于 2019-12-18 12:36:21
1 、 X86 架构下的从开机到 Start_kernel 启动的整体过程 这个过程简要概述为: 开机—— >BIOS —— >GRUB/LILO —— >Linux Kernel 其执行的流程图和重要函数例如以下图所看到的: 2 、载入 Linux 内核(基于 X86 )的内存布局图 | | 0A0000 +--------------------------+ | Reserved for BIOS | Do not use. Reserved for BIOS EBDA. 09A000 +--------------------------+ | Command line | | Stack/heap | For use by the kernel real-mode code. 098000 +--------------------------+ | Kernel setup | The kernel real-mode code. 090200 +--------------------------+ <--- __start 函数開始运行地址 | Kernel boot sector | The kernel legacy boot sector. 090000 +--------------------------+ <--- header.S |

Is it possible to call Windows libraries that will live on the hard disk from a program that lives in the BIOS?

拈花ヽ惹草 提交于 2019-12-18 11:33:31
问题 I'm trying to write a program that will be a BIOS option (after POST). I'd like the application to have a nice GUI instead of being text based (there are multiple reasons for this, localization being one of them). My problem is that we are constrained by the size of the application that we can flash to the BIOS. Is it possible using MASM32 to "Link" to the dll's on the hard disk so that we can use the Windows API's to develop the GUI? Or is there an API that is availible to us to create the

如何在BIOS里设置定时关机?

做~自己de王妃 提交于 2019-12-18 02:59:45
如何在BIOS里设置定时关机? 通过CMOS设置实现定时开机的设置过程如下:首先进入“CMOS SETUP”程序(大多数主板是在计算机启动时按DEL键进入);然后将光条移到“Power Management Setup”选项上,回车进入其子菜单;再将“Resume by Alarm”项设置成“Enabled”,并在“Date(of Month)Alarm”项中设置每月开机日期(0表示每天,1表示每月1日,2表示每月2日,……),在“Time(hh:mm:ss)Alarm”项中设置开机时间;最后保存设置,重新启动,当关闭计算机后,你的计算机将在你规定的时刻自动启动..................... 来源: https://www.cnblogs.com/JasonLGJnote/p/11159883.html

调整linux系统时间和时区

丶灬走出姿态 提交于 2019-12-17 19:58:50
一、修改时区: # cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime 修改为中国的东八区 # vi /etc/sysconfig/clock ZONE="Asia/Shanghai" UTC=false ARC=false 二、配置新的时间 日期设定: # date -s 2008/05/06 时间设定: # date -s 18:40:00 查看硬件时间(BIOS的): hwclock [-rw] -r:查看现有BIOS时间,默认为-r参数 -w:将现在的linux系统时间写入BIOS中 当我们进行完 Linux 时间的校时后,还需要以 hwclock -w 来更新 BIOS 的时间,因为每次开机的时候,系统会重新由 BIOS 将时间读出来,所以, BIOS 才是重要的时间依据。 # hwclock Tue 06 May 2008 03:49:37 PM CST -0.039646 seconds 同步BIOS时钟,强制把系统时间写入CMOS: # clock -w 来源: https://www.cnblogs.com/furoun/p/3706039.html

TASM running LED animation with specific time of stop

和自甴很熟 提交于 2019-12-17 10:04:43
问题 Im very new in this assembly language can you guys help me .model small .stack .code org 100h start: main proc mov cx,1; how many times to loop here:mov al,00000001b mov dx,378h out dx,al call delay mov al,00000010b mov dx,378h out dx,al call delay mov al,00000100b mov dx,378h out dx,al call delay mov al,00001000b mov dx,378h out dx,al call delay mov al,00010000b mov dx,378h out dx,al call delay mov al,00100000b mov dx,378h out dx,al call delay mov al,01000000b mov dx,378h out dx,al call

linux电源管理系列(一)

拜拜、爱过 提交于 2019-12-16 16:05:37
本系列将逐步介绍linux电源管理相关的知识,涉及到常见电源管理机制、linux电源管理机制、linux驱动中有关电源管理的相关接口、内核文档中关于Linux电源管理架构文档的分析。以下将以此来介绍相关内容,尽量做到通俗易懂,条理清晰。 电是现在社会的基础设施,它点亮了整个世界。随着移动互联网的盛行,各种智能设备层出不穷,各种CPU和大屏幕,都在不断折磨手机的电池,各种刺激的手游,也在压榨智能手机的电量。电池技术发展了这么多年,在没有新型储能材料发现之前,考虑到整体的重量和发热的可接受度,手机电池电量是不会有太大突破的。大家都知道Android是基于Linux开发的,要提高未来智能设备的续航时间,一方面需要提高电池容量,另一方面,就要站在系统的视角上,像进程调度一样,调度”电力”,在满足一定负载要求下,尽量降低功耗,延迟设备使用时间。本篇文章将从下往上,依次介绍电源管理理念在Android智能手机上的设计与实现。 电源管理的对象是各种硬件设备驱动、系统框架中的各种应用调度等(这只是我的初步理解,有什么不对的地方,请各位指教)。如果以日常生活为例子来类比,一个成年人,一日三餐,就可以全速工作一整天,吃饭就像充电一样,先吃饭,再做事,体内葡萄糖等储能物质就像电池一样,在一定的能量供应下,干越多的活,Boss越欢喜。只在需要马儿跑时,才让它吃草,这是电源管理的核心思想,它主要有两点 1.

shell脚本问题汇总

一世执手 提交于 2019-12-16 01:45:05
1.Shell语言是什么类型的语言? SHELL语言是指UNIX操作系统的命令语言,同时又是该命令语言的解释程序的简称。 Shell本身是一个用C语言编写的程序,它是用户使用Unix/Linux的桥梁,用户的大部分工作都是通过Shell完成的。Shell既是一种命令语言,又是一种程序设计语言。作为命令语言,它交互式地解释和执行用户输入的命令;作为程序设计语言,它定义了各种变量和参数,并提供了许多在高级语言中才具有的控制结构,包括循环和分支。 它虽然不是Unix/Linux系统内核的一部分,但它调用了系统核心的大部分功能来执行程序、建立文件并以并行的方式协调各个程序的运行。因此,对于用户来说,shell是最重要的实用程序,深入了解和熟练掌握shell的特性极其使用方法,是用好Unix/Linux系统的关键。 2.Shell语言的执行方式有哪些? bash script-name 或者 sh script-name;   这是当脚本文件本身没有可执行权限(即文件权限属性x位为-号)时常使用的方法,或者脚本文件开头没有指定解释器时需要使用的方法。 推荐使用这种方法 。 path/script-name或者./script-name; 指在当前路径下执行脚本(脚本需要有执行权限),需要将脚本文件的权限改为可执行(即文件权限属性为x位)。具体方法为:chmod a+x script-name

Dell R730服务器Ctrl+R无法进入磁盘阵列设置界面

一世执手 提交于 2019-12-14 22:59:04
环境:Dell R730服务器(也适用于R720、R630、R620、R420、R530) 问题:开机后没有出现Ctrl+R的界面,无法进入磁盘阵列设置界面 解决步骤: 1,开机时,按F2进入系统设置(system setup),点击-System BIOS,如下图所示: 2,选择Boot settings,如下图所示: 设置为BIOS,如下图所示: 4,退出保存后,如下图所示: 5、重启服务器,就能看到Crtl+R的界面,再按Crtl+R可以进入raid设置界面,如下图所示: 6、再按Crtl+R可以进入raid设置界面,如下图所示: 到此为止,希望能帮到你。 来源: 51CTO 作者: 奋斗者励志 链接: https://blog.51cto.com/chentongsan/2458547

ASM subroutine to print coloured text at specific location on the screen

ぐ巨炮叔叔 提交于 2019-12-14 02:40:17
问题 I'm trying to write some ASM code that will write some text to the display using BIOS interrupts. This code will run from the boot sector. I have msgText DB "Hello" ;Text msgCol DB 0x07,0x08,0x09,0x0A,0x0B ;Colours msgXY DW 0x0E26 ;Col/Row msgLen DB 0x05 ;Length The message is just "Hello", each letter having a different colour. The position of the message on the screen is roughly in the middle, and it has a length of 5. I want to write a function that will write any message/colour/xy/length

Make beep sound in BIOS

假如想象 提交于 2019-12-13 09:39:29
问题 When computer starts to boot, It makes a beep sound from the BIOS Speaker . How do i can do this in Assembly or C++ ? Clearly I want to make Beep Sound by BIOS Speaker. Remember i mean BIOS Speakers Does it have any interrupt for that ? I searched about that but nothing found.. I used some interrupt But the didn't do this. the following code : int main(){ cout<<"\a"; } Produced the sound from the Speaker, Not Bios How can i do this ? with any interrupt ? 回答1: Try to add this code, too.