Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 39E0FC433EF for ; Thu, 21 Oct 2021 12:54:21 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2AF38610C8 for ; Thu, 21 Oct 2021 12:54:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 2AF38610C8 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=etri.re.kr Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.94.2) (envelope-from ) id 1mdXZp-0004JE-Ga; Thu, 21 Oct 2021 08:53:45 -0400 Received: from mscreen.etri.re.kr ([129.254.9.16]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA (Exim 4.94.2) (envelope-from ) id 1mdXZl-0004J6-AC for kernelnewbies@kernelnewbies.org; Thu, 21 Oct 2021 08:53:41 -0400 Received: from unknown (HELO send001-relay.gov-dooray.com) (211.180.235.152) by 129.254.9.16 with ESMTP; 21 Oct 2021 21:53:32 +0900 X-Original-SENDERIP: 211.180.235.152 X-Original-MAILFROM: ckim@etri.re.kr X-Original-RCPTTO: kernelnewbies@kernelnewbies.org Received: from [10.162.225.106] (HELO smtp001-imp.gov-dooray.com) ([10.162.225.106]) by send001-relay.gov-dooray.com with SMTP id d13c876f617162cc; Thu, 21 Oct 2021 21:53:32 +0900 DKIM-Signature: a=rsa-sha256; b=YFgnWv0U6j45OHDhYGgsKcByAWr4udVL9xSBEimagOjnxDIUrfAkBelRRjz+W/yo8UY3G4/pon pmodB18A/35lV9KKPHwJENpmh2gUS0odfeOTgW63YTujocC0aDywlNbAg8CR4tewKZEydJyT+uwD TANFLWSd5Y+vUgZpEW7/GThSfnERN8mdg0hrB7Aj9oQxE3GGwF1FCkItdP2wDZaNydemCXLNdLU/ yeeA6+kZu0Tl4CUyXPP6avaPVnVRGDYtADk+93NcAWOomlpuBAseafRL6G95pJdgVK9nM+szh7ln otdVSPry1hUHGGgYAxN18KJYkTwOW79aTBZWZDCQ==; c=relaxed/relaxed; s=selector; d=dooray.com; v=1; bh=iANJ+0YDUtH6dBLTt442/Oz3q6ZENmvGVy13S4wyAT8=; h=From:To:Subject:Message-ID; Received: from [129.254.132.39] (HELO CHANKIMPC) ([129.254.132.39]) by smtp001-imp.gov-dooray.com with SMTP id 980649e3617162cc; Thu, 21 Oct 2021 21:53:32 +0900 From: "Chan Kim" To: Subject: how is booting possible using kernel image in disk?.. Date: Thu, 21 Oct 2021 21:53:31 +0900 Message-ID: <047d01d7c67a$a6eba5d0$f4c2f170$@etri.re.kr> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AdfGem80t+m1LrLVRxu/yLO9gZbtyw== Content-Language: ko X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============9160553814411457354==" Errors-To: kernelnewbies-bounces@kernelnewbies.org This is a multipart message in MIME format. --===============9160553814411457354== Content-Type: multipart/alternative; boundary="----=_NextPart_000_047E_01D7C6C6.16D3EA10" Content-Language: ko This is a multipart message in MIME format. ------=_NextPart_000_047E_01D7C6C6.16D3EA10 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hello, In my ubuntu 20.04 machine, ckim@ckim-ubuntu:~$ dmesg | grep 'Command' [ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-5.11.0-36-generic root=UUID=5252b177-1243-4d3f-8a1a-ec7d0dcae011 ro quiet splash vt.handoff=7 ckim@ckim-ubuntu:~$ mount | grep boot /dev/sda2 on /boot/efi type vfat (rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=iso8859-1,shortnam e=mixed,errors=remount-ro) The kernel image in /boot/ directory was used and the /boot directory is in /dev/sda2, a hard disk. I'm almost sure but is this possible because (my system used UEFI for booting, I can see /boot/efi/EFI/ directory) 1. the UEFI firmware has file system driver and could open the disk partition and used the kernel image to boot 2. the UEFI firmware detected the disk (using SCSI driver?) and edited the system hardware information (here maybe ACPI table) and passed it to linux kernel. Is my understanding correct? Thanks in advance. Regards, Chan Kim ------=_NextPart_000_047E_01D7C6C6.16D3EA10 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hello,

In my ubuntu 20.04 machine, =

 

ckim@ckim-ubuntu:~$ dmesg | grep = 'Command'

[    0.000000] Command line: = BOOT_IMAGE=3D/boot/vmlinuz-5.11.0-36-generic = root=3DUUID=3D5252b177-1243-4d3f-8a1a-ec7d0dcae011 ro quiet splash = vt.handoff=3D7

ckim@ckim-ubuntu:~$ mount | grep = boot

/dev/sda2 on /boot/efi type vfat = (rw,relatime,fmask=3D0077,dmask=3D0077,codepage=3D437,iocharset=3Diso8859= -1,shortname=3Dmixed,errors=3Dremount-ro)

 

The kernel image in /boot/ = directory was used and the /boot directory is in /dev/sda2, a hard = disk.

I’m almost sure but is this possible because (my = system used UEFI for booting, I can see /boot/efi/EFI/ = directory)

  1. the UEFI firmware has file system driver and = could open the disk partition and used the kernel image to = boot
  2. the UEFI firmware detected the disk (using SCSI = driver?) and edited the system hardware information (here maybe ACPI = table) and passed it to linux kernel.

Is my understanding = correct?

 

Thanks in advance.

Regards,

Chan Kim

 

------=_NextPart_000_047E_01D7C6C6.16D3EA10-- --===============9160553814411457354== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies --===============9160553814411457354==--