Vmlinuz file in linux

vmlinuz Definition

vmlinuz is the name of the Linux kernel executable.

A kernel is a program that constitutes the central core of a computer operating system. It is the first thing that is loaded into memory (which physically consists of RAM chips) when a computer is booted up (i.e., started), and it remains in memory for the entire time that the computer is in operation. An executable, also called an executable file, is a file that can be run as a program.

vmlinuz is a compressed Linux kernel, and it is bootable. Bootable means that it is capable of loading the operating system into memory so that the computer becomes usable and application programs can be run.

vmlinuz should not be confused with vmlinux, which is the kernel in a non-compressed and non-bootable form. vmlinux is generally just an intermediate step to producing vmlinuz.

vmlinuz is located in the /boot directory, which is the directory that contains the files needed to begin booting the system. The file named vmlinuz might be the actual kernel executable itself, or it could be a link to the kernel executable, which might bear a name such as /boot/vmlinuz-2.4.18-19.8.0 (i.e., the name of the specific version of the kernel). This can be easily determined by using the ls command (whose purpose is to list the contents of a specified directory) with its -l option (which tells ls to provide detailed information about each object in the specified directory) as follows:

If vmlinuz is an ordinary file (including an executable), the information about it in the first column will begin with a hyphen. If it is a link, it will begin with the letter l.

Читайте также:  Network is unreachable linux ping

The Linux kernel is compiled by issuing the following command:

This results in the creation of a file named bzImage in a directory such as /usr/src/linux/arch/i386/linux/boot/.

Compilation is the conversion the kernel’s source code (i.e., the original form in which the kernel is written by a human) into object code (which is understandable directly by a computer’s processor). It is performed by a specialized program called a compiler, usually one in the GCC (GNU Compiler Collection).

bzImage is then copied using the cp (i.e., copy) command to the /boot directory and simultaneously renamed vmlinuz with a command such as

cp /usr/src/linux/arch/i386/linux/boot/bzImage /boot/vmlinuz

vmlinuz is not merely a compressed image. It also has gzip decompressor code built into it. gzip is one of the most popular compression utilities on Unix-like operating systems.

A compiled kernel named zImage file is created on some older systems and is retained on newer ones for backward compatibility. Both zImage and bzImage are compressed with gzip. The difference is that zImage decompresses into low memory (i.e., the first 640kB), and bzImage decompresses into high memory (more than 1MB). There is a common misconception that bzImage is compressed with the bzip2 utility; actually, the b just stands for big.

The name vmlinuz is largely an accident of history. The kernel binary on the original UNIX as developed at Bell Labs was called unix. When a new kernel containing support for virtual memory was subsequently written at the University of California at Berkeley (UCB), the kernel binary was renamed vmunix.

Virtual memory is the use of space on a hard disk drive (HDD) to simulate additional RAM (random access memory) capacity. It was supported by the Linux kernel almost from Linux’s inception, in contrast to some other popular operating systems in use at the time, such as MS-DOS.

Читайте также:  Linux script run in terminal

Thus, it was a natural progression for the Linux kernel to be called vmlinux. And because the Linux kernel executable was made into a compressed file and compressed files typically have a z or gz extension on Unix-like systems, the name of the compressed kernel executable became vmlinuz.

Created March 29, 2005.
Copyright © 2005 Bellevue Linux. All Rights Reserved.

Источник

Ваш вопрос: Что такое Vmlinuz в Linux?

vmlinuz — это имя исполняемого файла ядра Linux. … Vmlinuz — это сжатое ядро ​​Linux, и оно является загрузочным. Загрузочный означает, что он способен загружать операционную систему в память, чтобы компьютер стал пригодным для использования и можно было запускать прикладные программы.

Что такое vmlinuz и Initramfs?

vmlinuz — это имя исполняемого файла ядра Linux. … Затем процедура вызывает ядро, и начинается загрузка ядра. В системах Linux vmlinux представляет собой статически связанный исполняемый файл, который содержит ядро ​​Linux в одном из форматов объектных файлов, поддерживаемых Linux, включая ELF, COFF и файл. из.

Что содержит вмлинуз?

vmlinuz — это сжатое ядро ​​Linux, которое загружает ОС в память, чтобы сервер можно было использовать. Во главе образа ядра (vmlinuz) находится процедура, которая выполняет минимальную настройку оборудования, а затем распаковывает ядро, содержащееся в образе ядра, и помещает его в верхнюю память.

Что означает vmlinux?

Процесс загрузки и распаковки ядра Linux.

Почему это называется вмлинуз?

Бинарный файл ядра unix, поддерживающий виртуальную память, был назван vmunix. Таким образом, двоичный файл ядра Linux, поддерживающий виртуальную память, называется vmlinux, и это не должно вызывать удивления. И название «vmlinuz» для сжатого vmlinux стало само собой разумеющимся для unix-подобных систем.

Зачем нужны initramfs?

initramfs — это корневая файловая система, которая встроена в ядро ​​и загружается на ранней стадии процесса загрузки. Это преемник initrd. Он предоставляет раннее пользовательское пространство, которое может делать то, что ядро ​​не может делать само во время процесса загрузки. Использование initramfs необязательно.

Читайте также:  Linux mint mesa install

Как мне извлечь вмлинуз?

Извлечение образа ядра Linux (vmlinuz)

Вы можете найти сценарий extract-linux в / usr / src / linux-headers — $ (uname -r) / scripts / extract-vmlinux. Вы сможете найти сценарий extract-linux в / usr / src / kernels / $ (uname -r) / scripts / extract-vmlinux.

Как сделать вмлинуз?

Re: [решено] Как сгенерировать образ ядра (vmlinuz)?

  1. переустановите пакет ядра (который включает / boot / vmlinuz-linux) (pacman -S linux).
  2. регенерируйте конфигурацию grub2 (см. Вики).
  3. регенерируйте ваш initcpio (см. Вики).

Как проверить версию vmlinuz?

Как прочитать версию vmlinuz (напрямую) с помощью команды file? Использование: file / vmlinuz | grep version, он должен отображаться так 4.11. 0-9.1-ликворикс-amd64.

Что такое uImage в Linux?

uImage: файл образа с оболочкой U-Boot (установленной утилитой mkimage), которая включает тип ОС и информацию о загрузчике. Очень распространенная практика (например, типичный Makefile ядра Linux) — использовать файл zImage.

Что такое initrd в Linux?

Начальный RAM-диск (initrd) — это начальная корневая файловая система, которая монтируется до того, как станет доступна настоящая корневая файловая система. Initrd привязан к ядру и загружается как часть процедуры загрузки ядра. … В случае настольных или серверных систем Linux initrd — это временная файловая система.

Как использовать Vmlinux?

Установка первой точки останова

  1. Загрузите символы для ядра. gdb./vmlinux.
  2. Присоедините gdb к остановленной виртуальной машине. (gdb) целевой пульт: 1234.
  3. Установить точку останова в start_kernel и возобновить выполнение. (gdb) hbreak start_kernel Точка останова 1 с аппаратной поддержкой в ​​& lt; addr & gt;: файл init / main.c, строка & lt; номер строки & gt;. (gdb) продолжить.

Что такое zImage и bzImage?

zImage (make zImage) Это старый формат для небольших ядер (сжатый, менее 512 КБ). При загрузке этот образ загружается в малый объем памяти (первые 640 КБ ОЗУ). bzImage (make bzImage)

Источник

Оцените статью
Adblock
detector