From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <9front-bounces@9front.inri.net> X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from 9front.inri.net (9front.inri.net [168.235.81.73]) by inbox.vuxu.org (Postfix) with ESMTP id A075124812 for ; Mon, 12 Feb 2024 09:18:28 +0100 (CET) Received: from mout01.posteo.de ([185.67.36.65]) by 9front; Mon Feb 12 03:17:25 -0500 2024 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id D7AC2240028 for <9front@9front.org>; Mon, 12 Feb 2024 09:17:22 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1707725842; bh=w7M/BZiMw4Bkk9vQZqfju4jHr89jYvCH6kznIBcVsxo=; h=MIME-Version:Content-Type:Content-Transfer-Encoding:Date:From:To: Subject:Message-ID:From; b=IkG2KsYjd/Uaw5rgFA9/QlUCBIHzLE5oMD+FvHPVOlTWDmYjwL2bkGDatN2hqFdKx 0jbNQGRC5NmS9SUYSz/46FoRd4cLa7jFyjCKX7mQKwVrcX24RYxf8HB41sEsGERJFk A9zeXtotZ3zGdeRmy15zikkGx/hydeNoylwW6DfBG45QqH0W9qxtD9F6wK38zN7D2i YbH1iRc5BEby1yLfjne7PcBILQb9Y3ZZTZGXZhqTvhrbSLDoQlPS++3TZDjXBt4RUY ie8Z/iJscJAjW8JaSTbxo9k9/CL0sOLui2kFomuZNFNujWXBkl9wqLsFPRtgx1EbZP 1Khe9q8Yvlq6w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TYHPZ3P47z9rxF for <9front@9front.org>; Mon, 12 Feb 2024 09:17:22 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 12 Feb 2024 08:17:22 +0000 From: alex-ml@posteo.de To: 9front@9front.org Message-ID: <1ef18420c4f54c9155a18c7d6dd16ca5@posteo.de> List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: ORM out-scaling-based factory reduce/map solution Subject: [9front] Reform MNT Boot Process Reply-To: 9front@9front.org Precedence: bulk Hello everyone, I am new to Plan 9 / 9front and am trying to understand the system. Since I'm using an MNT Reform, I'm particularly interested in the aarch64 architecture. As a starting point, I'm reading the Plan 9 3rd Edition Kernel Notes (is there by any chance a way to get the assignments mentioned therein?). I can't find 9boot or 9load in /sys/src/boot/reform/, so I wonder whether there is another way to load the kernel? The notes state: "The boot process starts when you press the power button on your PC. The BIOS (a program in ROM) is instructed to search for several devices to boot from. Usually, it will search for a floppy disk unit, a cdrom unit, and a hard disk. Once the boot device is located, the BIOS loads a block from the device. For hard disks, it loads the Master Boot Record (MBR), for floppies, it loads the boot sector (PBS). Once either the MBR or the PBS get loaded, the BIOS jumps to its starting address. The BIOS is done. Both MBR and PBS contain a tiny program that proceeds the loading process. The MBR scans the partition table for active partitions and loads the PBS sector of the active partition. Thus, all in all, we end up with the PBS loaded in memory. Plan 9 supplies its own PBS program. It will load the program 9load which will continue the job." My guess would be that flash.bin (built via the mkfile) is loading the kernel with the information from boot.scr (also built via mkfile). Is that right? In this case, the boot process would be a bit easier than described above (at least with fewer steps). In /sys/src/cmd/aux/txt2uimage.c/, which is used in the recipe for boot.scr, there are some numbers that I would like to understand where they come from. Is there some documentation explaining how an uimage and / or header has to look like? Unfortunately I wasn't able to find this information on https://docs.u-boot.org/. And the same question for /sys/src/boot/reform/boot.txt/, where some addresses are given. How do I obtain this information? I am very sorry for my beginner questions and I would really appreciate any explanations/hints to help me understand what happens during the boot process. Thank you very much in advance!