From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Thu, 10 Mar 2022 23:51:12 +0100 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nSRcm-001Nel-M1 for lore@lore.pengutronix.de; Thu, 10 Mar 2022 23:51:12 +0100 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1nSRcl-0004Me-Fl; Thu, 10 Mar 2022 23:51:11 +0100 Received: from [70.184.225.181] (helo=mail.steinkuehler.net) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1nSRcR-0004Kn-6n for rauc@pengutronix.de; Thu, 10 Mar 2022 23:50:52 +0100 Received: (qmail 28478 invoked from network); 10 Mar 2022 16:50:46 -0600 Received: from 152.ks.newtek.dhcp (HELO ?10.34.1.152?) (charles@10.34.1.152) by mail.steinkuehler.net with SMTP; 10 Mar 2022 16:50:46 -0600 Message-ID: <666c7f97-3547-c09f-ff5f-a81d35cd83b2@steinkuehler.net> Date: Thu, 10 Mar 2022 16:50:42 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.2 To: rauc@pengutronix.de Content-Language: en-US From: Charles Steinkuehler X-Host-Lookup-Failed: Reverse DNS lookup failed for 70.184.225.181 (failed) X-Broken-Reverse-DNS: no host name for IP address 70.184.225.181 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.ext.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=0.8 required=4.0 tests=AWL, BAYES_00, PTX_BROKEN_RDNS, RDNS_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 Subject: [RAUC] RAUC Install issue with disk partitioning X-BeenThere: rauc@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: RAUC Project - Discussion List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "RAUC" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: rauc-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false I am working through my Buildroot + RAUC example project[1] and after modifying the HDD partitioning I can no longer install updates to the boot partition however updates to the rootfs partition still work. My boot filesystem is using boot-mbr-switch and it seems to be getting confused by the fact that I have extended partitions but no primary partition #4. The partition layout is: P1 = Boot loader (with space reserved for boot-mbr-switch) P2 = Rescue partition P3 = Extended partition P4 = E5 = Rootfs.0 E6 = Rootfs.1 E7 = Uploads (bulk data, unsafe across reboots) E8 = Persistent data (fully journaled, safe) When I attempt to update the bootfs, I get the following. The exact same commands worked before I changed the partition layout (adding the rescue & upload partitions, forcing the use of an extended partition table): ```` $ rauc install /mnt/bootfs.raucb installing 0% Installing 0% Determining slot states 20% Determining slot states done. 20% Checking bundle 20% Verifying signature 40% Verifying signature done. 40% Checking bundle done. 40% Checking manifest contents 60% Checking manifest contents done. 60% Determining target install group 80% Determining target install group done. 80% Updating slots 80% Checking slot bootloader.0 90% Checking slot bootloader.0 done. 90% Copying image to bootloader.0 100% Copying image to bootloader.0 failed. 100% Updating slots failed. 100% Installing failed. LastError: Installation error: Failed updating slot bootloader.0: Region start address 0x400000 is in area of partition 4 (0x0 - 0xffffffffffffffff) Installing `/mnt/bootfs.raucb` failed $ $ sudo fdisk -ul /dev/mmcblk0 Disk /dev/mmcblk0: 59 GB, 63864569856 bytes, 124735488 sectors 1948992 cylinders, 4 heads, 16 sectors/track Units: sectors of 1 * 512 = 512 bytes Device Boot StartLBA EndLBA Sectors Size Id Type /dev/mmcblk0p1 * 8192 532479 524288 256M c Win95 FAT32 (LBA) /dev/mmcblk0p2 1056768 1581055 524288 256M 83 Linux /dev/mmcblk0p3 1581056 7372803 5791748 2828M f Win95 Ext'd (LBA) /dev/mmcblk0p5 1581057 3424256 1843200 900M 83 Linux /dev/mmcblk0p6 3424258 5267457 1843200 900M 83 Linux /dev/mmcblk0p7 5267459 7110658 1843200 900M 83 Linux /dev/mmcblk0p8 7110660 7372803 262144 128M 83 Linux ```` Any idea why rauc is complaining that an unused partition overlaps my boot partition? I'll probably just shuffle things around and move the persistent data partition to P3 and let the extended partition table take P4, but this seems like it's a bug. [1] https://github.com/cdsteinkuehler/br2rauc -- Charles Steinkuehler charles@steinkuehler.net _______________________________________________ RAUC mailing list