From nobody Tue Feb 27 17:37:13 2024 X-Original-To: freebsd-riscv@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Tkl7708L4z5C6Yj for ; Tue, 27 Feb 2024 17:37:39 +0000 (UTC) (envelope-from himanshu@thechauhan.dev) Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tkl760yCqz4mwv for ; Tue, 27 Feb 2024 17:37:38 +0000 (UTC) (envelope-from himanshu@thechauhan.dev) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=thechauhan.dev header.s=google header.b=Q56uvvyA; dmarc=none; spf=fail (mx1.freebsd.org: domain of himanshu@thechauhan.dev does not designate 2607:f8b0:4864:20::42b as permitted sender) smtp.mailfrom=himanshu@thechauhan.dev Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-6e435542d41so3077174b3a.1 for ; Tue, 27 Feb 2024 09:37:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thechauhan.dev; s=google; t=1709055456; x=1709660256; darn=freebsd.org; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:from:to:cc:subject:date:message-id:reply-to; bh=SQSCZrSYaXRHRF0ubhP8rh0y/h6xMO688tEhzF+ql/0=; b=Q56uvvyAnlwN5QEmOesgygjq+RBWfPLXGu94hJ5GuEK2Hjpcw5sQDgkxPEfjsMDsmz h9Xkv5DKDnVvW/8rs63dqvkX1ebG0xRDVloVb0q1xd6fjgKO7BJvO1BHqqNbQS+RDmym Tx3CWabsp5tzbLQ5cx0A47k7tW7P3RGnV1I+V4CTX164jfhNknTcAUiojPIX8mueKNzV vRF+Wr2ORGLfGtMJvS5BCSnLTNOZ329Slb2xjFiijVnBRenssMa9fm2xrIi2I2wminHk NFf+gGwyhQN1A3CL4vHTddo2eshXQ/3VY18AADjVWRgP4Wl6upCI6Gu6dO0ckh3mc1cP GG4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709055456; x=1709660256; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=SQSCZrSYaXRHRF0ubhP8rh0y/h6xMO688tEhzF+ql/0=; b=ESvPaIiTrye4FohDiI8MqCxwrZMQ4BD+j+n57o0lFTAfrfMhODuAxBp7XUjRq/1qHn jEIxIpU3KbGw0h272Zok/lRXJLNaPfVvtuVQBonaeEGcCHhuWLBDEEnyExbq+/DYB4Jc 7wdBXYlb4DA5/enMg2d+34bPyubW/3zKeR293tnoI+eszRh3JtwCsNDqye167Fx5o47z IGviLOx/bOKw/H7YLjWPA4x85xNIlrYMbgeP4L957W5LueIE/bWvH35R9pw51/DzlKbE PB+MDJFJouau7ODvSDZaD+4uAiKNrsYYJteIKlVmHCU36SCauvW8Q9ug6bj6/i3ctHdf eVgw== X-Gm-Message-State: AOJu0YwXSOEnsgjeCtAOAYd9n/1RDFZsRzUIka/pq95IboWuuWTlAh6I fhE/JaH7NhcJjF0SdCgyTCtMEWZLEPu8kbkUf+yJtNy4GdvNQ+XSesKWmwIKkCxw+OZQmmXACeg = X-Google-Smtp-Source: AGHT+IHMojAOB8Xv43DBTL+7BWxZzetXZGO//aY/GHJBdjzi16q/3K9KbDXdkvqeAp/w3rwb7H3y9A== X-Received: by 2002:a05:6a21:3482:b0:1a1:aad:5d5c with SMTP id yo2-20020a056a21348200b001a10aad5d5cmr2647323pzb.42.1709055456421; Tue, 27 Feb 2024 09:37:36 -0800 (PST) Received: from smtpclient.apple ([2405:201:d019:cbd3:a52a:deee:895a:f2c5]) by smtp.gmail.com with ESMTPSA id x185-20020a6386c2000000b005e43cce33f8sm6142544pgd.88.2024.02.27.09.37.35 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Feb 2024 09:37:36 -0800 (PST) From: Himanshu Chauhan Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable List-Id: FreeBSD on the RISC-V instruction set architecture List-Archive: https://lists.freebsd.org/archives/freebsd-riscv List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-riscv@freebsd.org X-BeenThere: freebsd-riscv@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.400.31\)) Subject: Unable to boot custom kernel Message-Id: <632BA64E-2BF6-46F4-9375-C74E534A8F40@thechauhan.dev> Date: Tue, 27 Feb 2024 23:07:13 +0530 To: freebsd-riscv@freebsd.org X-Mailer: Apple Mail (2.3774.400.31) X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.23 / 15.00]; R_SPF_FAIL(1.00)[-all]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.93)[-0.931]; R_DKIM_ALLOW(-0.20)[thechauhan.dev:s=google]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; DMARC_NA(0.00)[thechauhan.dev]; DKIM_TRACE(0.00)[thechauhan.dev:+]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_HAS_DN(0.00)[]; MIME_TRACE(0.00)[0:+]; TO_DN_NONE(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-riscv@freebsd.org]; MID_RHS_MATCH_FROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-riscv@freebsd.org]; APPLE_MAILER_COMMON(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::42b:from] X-Rspamd-Queue-Id: 4Tkl760yCqz4mwv Hi Everyone, I am unable to boot my custom kernel from commit ID 04440331b57(Feb22). = Qemu throws the following error and exits: qemu-system-riscv64: Some ROM regions are overlapping These ROM regions might have been loaded by direct user request or by = default. They could be BIOS/firmware images, a guest kernel, initrd or some other = file loaded into guest memory. Check whether you intended to load all this guest code, and whether it = has been built to load to the correct addresses. The following two regions overlap (in the memory address space): /riscv.riscv64/sys/GENERIC/kernel ELF program header = segment 1 (addresses 0x0000000080200000 - 0x00000000807e0226) fdt (addresses 0x0000000080200000 - 0x0000000080201346) I have tried with packaged Qemu as well as the latest one compiled from = source code. Any one else faced or facing this problem? Thanks Regards Himanshu From nobody Tue Feb 27 18:12:49 2024 X-Original-To: freebsd-riscv@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Tklvl1JRrz5C96G for ; Tue, 27 Feb 2024 18:12:51 +0000 (UTC) (envelope-from mhorne@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tklvl0rPvz4s11; Tue, 27 Feb 2024 18:12:51 +0000 (UTC) (envelope-from mhorne@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709057571; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=iTWXptr/kY5FuTGyW6ZvHD9e6t/aMjvNFjaat6gMLhI=; b=tXVNqj47Z0V23sTSS4AGgZ67SQgDUy3H6dnw0qGGGEKTAqFhOE74cSoQU4i2ipAlyL3Rcd ZFHJpHEF1DU8Ly2H/Kwqz2pzvLqj6a5Af3FkwqVbLJXttyIcYtUwrx9YgbYvylU+heUfY2 H4hzO5+WOzYw9a8Qm0a3aeJcb4zyLzfOOlIqZzxoS1Mw+oj4BcSHakB0pYSSZSl/R0Oj7X sa9QlCxYhPBl4SKu/PL+XNmy918JmB7Usu9yDobe9Weatv9YMBItP12cyftP6Wtxesv730 FKUT1Yf67E6hIaRhhZlrdlOV1HEUx9mMpWEkAXjk+hSSrIHcE0X216SX3BLgSw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1709057571; a=rsa-sha256; cv=none; b=vpA3PCKpVbjewX3a6zywwMamHYC0eNEVaiRJTn/ilMkO4vgoV8LDKJoLYjZ6mAL/LfR6Yn OI6Cr5yR3pUI29m7C2Vq+eDp2nOlH/OHDgrX00jQeFqST4R2rMzccTuHUo2IWpCuLa1j3T BOSFz0MdO/NICWDfGEd4bePjlO1YKxVgC3x11FZZf3rFOHNC+9wZD2AaVle6GH6KnT+0iz IeIOi7ksoIqXmBIb7lb7s12XFJ/ADBLf9GOwhxAnFbwI/1sIPMtgsC+nTzQpsMC3TxGN3f tJBlDypWhPGHfq/BXszw1y1jshUkgaQRxxaRGNw+9l6cclDABxNsPnn0kkIu0g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709057571; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=iTWXptr/kY5FuTGyW6ZvHD9e6t/aMjvNFjaat6gMLhI=; b=uIfBfEQNgISYM/f/vBSgtZzM54RiiVEoPAuK4L6FgeH/WgvI4pYEa4KsE4NZpqifjMOUAB yYpZJgVcWaA9owkTXF5Yo8QRpIqswVrVOtkuvE2BIPiAV3ZiPa35whna4pU8Kk5SPXuZzP BinQxUmFbT2FxeqNtjQ2yKU0x9kZPnQdTHm+i5NIuQ8gQdJfQZYvV3kTmuqp2iUfp0KgyH DcR3s6pbd4nYYqFbu+mznGCQmaea3c7WvNhnfDGhfRuiqGbCwpCZ9a8fr/ajeFl08bDOgo dJtqzkktBtJlmTQhfijWkIpGweyL2EpPkxRPO45MxxohHP85Of4mc4qpkVKVLA== Received: from [192.168.1.151] (host-173-212-76-127.public.eastlink.ca [173.212.76.127]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: mhorne) by smtp.freebsd.org (Postfix) with ESMTPSA id 4Tklvk5sJhzTy5; Tue, 27 Feb 2024 18:12:50 +0000 (UTC) (envelope-from mhorne@freebsd.org) Message-ID: <3f4d8075-4372-46dd-9ce6-ca925c799857@freebsd.org> Date: Tue, 27 Feb 2024 14:12:49 -0400 List-Id: FreeBSD on the RISC-V instruction set architecture List-Archive: https://lists.freebsd.org/archives/freebsd-riscv List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-riscv@freebsd.org X-BeenThere: freebsd-riscv@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Unable to boot custom kernel Content-Language: en-CA To: Himanshu Chauhan , freebsd-riscv@freebsd.org References: <632BA64E-2BF6-46F4-9375-C74E534A8F40@thechauhan.dev> From: Mitchell Horne Autocrypt: addr=mhorne@freebsd.org; keydata= xsBNBFyS2dQBCADdiXBG8hBVLmYbxu7aSzbwLwUf3HkGFz3rooS1kwyy+SfmjZ4UKNnl9WMx WKrJ7OAZpiNH6bLQ5nsqfx09OnpWL8c/QuPbhNdUywQoqqYpRI0K8GEn//nS9Gs0KTYwVpWb XlrzP+jf3Uh/9L5mcQmStLIH4zaaqMYHW+pMuPrvBmLIHTvLj2QjOkxslrcUdord9uvxe5Ht LU8RuTpQpHOKz705Z9/v7twFdi2HtKzpLwO6SzVyu351di1J+GihsVpcT5josQV5cHbIP3Un x+kmtKBEEc/jl/zBglF7ruWUtwgbryID+2ZPEaO1Mj+RResX4LFVMusq3uUpWRb5WJXxABEB AAHNI01pdGNoZWxsIEhvcm5lIDxtaG9ybmVARnJlZUJTRC5vcmc+wsCUBBMBCgA+AhsDBQsJ CAcCBhUKCQgLAgQWAgMBAh4BAheAFiEEkp/cYPcfabAiQvACi/gnTOdUid8FAmIyDpUFCQtC z0EACgkQi/gnTOdUid8IsQf+N8IptrrCgifT5Z0/WUVFfnHThFOKf4zBjaGswsIM8+VKsKnF 15jCWHODUHP6s+dcQ4nQi81PHPsnMfBSkGPvN/X3ess2/1KUVkH+6tAJbqXDjXhD8HT+i0NM QEFIXlLnotpgIKW3yOHjKv3ZvKw9LCvUjyNY9vOJmLk/6AbbkFh+INo65nXtQWb/hM5FVEHW S+zUoU8AqZRJoVAQfj9wmIfg/HdsxeDGKL0zkv5AwKpccvb8VJNGJbCVMgoy5uQYcUeXxcie cg0VlbFLshNQTfyhVQ85vyuHahARrUWs/k8KiYODoBnW1ChtyF8yM6VZTzSYx7pINqPq2YZy i/Htd87ATQRcktnUAQgA3zt4M4ecoQqfxpjliNLujt9klDqvmkJvWmzMuMXdzlPgGRJ0doio 9YIeEdkOt6xN0pPTK/ReCZ8WqFQ8zo23u1pwGuo0CnR58XF19wyxyUuKu/PHbt+56mC8tNHm AXsMyXQmlDqWvn/WzLY7euNRtNS4QQIwtxfM5EC4GGa5KQwxn0kM7dkUSOE/cxr+/kNbHHzb gagZR4cnNUqtPPr3dYXcibCTzgz96Lyt3/qMLXX9RTBRzu+O6E+byxWOe8ar/ZlwY2b4wTQG mhgNttkSxKtxMpZnd8+DGV/bI1P5Ct/K2GeCwNyupQGON5ymn6o7jTch+qmFX0ItkBWO4zn4 9QARAQABwsB8BBgBCgAmAhsMFiEEkp/cYPcfabAiQvACi/gnTOdUid8FAmIyDtwFCQtCz4gA CgkQi/gnTOdUid/i5gf/aQ75pJR4TJFM2vVVr6PDIwTdl0b5EchB4w4s4g/zE84XNbMOQanb BginLYEhAacLQVAvM3XdvUEhwrhaMQdjdSEB1krResL3/mbxrtKwdHSMbHA3IS3XdvxFWTB7 P5JjUSPsW6hqgoidbn4w3OxaNHhs45H2b0Nx5QiKcSyepmCZuB52gCEHnEnrdaz8TFQMXOLq 94WbTmZeIjChW3FB61m1gTf0UEFjoZAfTAUB+pbwoCa4AykIeZnDC19vjsruVU9Gy5rLglwd bjsZNfXIJGOZNEvdF8FOBwM7DlXx7SYvTJcUNoNJjOKtQ0bYGVgGqYOB/y2mTjVuKeU0eOkN Uw== In-Reply-To: <632BA64E-2BF6-46F4-9375-C74E534A8F40@thechauhan.dev> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Can you share the commandline you are using to launch QEMU? Mitchell On 2/27/24 13:37, Himanshu Chauhan wrote: > Hi Everyone, > > I am unable to boot my custom kernel from commit ID 04440331b57(Feb22). Qemu throws the following error and exits: > > qemu-system-riscv64: Some ROM regions are overlapping > These ROM regions might have been loaded by direct user request or by default. > They could be BIOS/firmware images, a guest kernel, initrd or some other file loaded into guest memory. > Check whether you intended to load all this guest code, and whether it has been built to load to the correct addresses. > > The following two regions overlap (in the memory address space): > /riscv.riscv64/sys/GENERIC/kernel ELF program header segment 1 (addresses 0x0000000080200000 - 0x00000000807e0226) > fdt (addresses 0x0000000080200000 - 0x0000000080201346) > > I have tried with packaged Qemu as well as the latest one compiled from source code. > > Any one else faced or facing this problem? > > Thanks > Regards > Himanshu > > From nobody Tue Feb 27 18:26:20 2024 X-Original-To: freebsd-riscv@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TkmCp3zQLz5CBj4 for ; Tue, 27 Feb 2024 18:26:46 +0000 (UTC) (envelope-from himanshu@thechauhan.dev) Received: from mail-il1-x12b.google.com (mail-il1-x12b.google.com [IPv6:2607:f8b0:4864:20::12b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TkmCn4Mxgz4w6d for ; Tue, 27 Feb 2024 18:26:45 +0000 (UTC) (envelope-from himanshu@thechauhan.dev) Authentication-Results: mx1.freebsd.org; none Received: by mail-il1-x12b.google.com with SMTP id e9e14a558f8ab-36423c819a3so21266835ab.0 for ; Tue, 27 Feb 2024 10:26:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thechauhan.dev; s=google; t=1709058403; x=1709663203; darn=freebsd.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=mhqqfljSObNkcoMvdxp6pceuxRyma1WknmisJF1e30Y=; b=g8Mzf/irUqekHRNAimiychK6RHggbOOXkbvCgCkjYEUGds7P0wYuVlde5G43xfScza i+mlpuGxtuaftPsrqhlgS5GTBbvYc9/PkuIdFShrN+Ums311DkRd2Z0/H95uH0bkLyU1 f5KHs2xtFJa2rLHX5dzpGkA9WEmycrQHq21yv1p/jiSYfAcyA/K0h7OAHUPL1q2Pntr/ 2/m3yNYxIw0GfCrT9mi9mlhmZK4ah+yYGKA9lxth9hBDVgOihTrhe53yvRILiiT7YoSS RhSVvE4vY8mm6h5fE0WELNru3j/CfqL2lCPrcIU8/pcAkP3MJMAMbzo4ExbXf/psNB/e EEBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709058403; x=1709663203; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mhqqfljSObNkcoMvdxp6pceuxRyma1WknmisJF1e30Y=; b=L9s8fDQrS5M+7s9jMub1xbMBFh5bC2rSvDrI8AwqVwAu6LJXrBhxqZaUlFdG8eIS/v XBl4aN89SU/lDmJkM5DxPa2jXaZE3OjuEZvMGzXSJyKKswYnXhFXQBAtczvgWyMYyVbj vFBCcFTeix8AoBvWRa8FObaw4ajBT6CzBv9yej0XXX/Dk8eOdOyZWNVShvdYwxZdpGfk Q2F7iza8Q/CqrSWR/azuW9lK6QeRbYXHXiGE+J9sNq24Z/EZ8ovvsSUIXvCQkvTvqRDl BCAR7qe3Kcsk4hQo0mBsqdyfLSCpkvOERPZyQ/K/WnYckoP4szybrmiCKo6RbkQG+Ta4 ODTw== X-Gm-Message-State: AOJu0Yytdapope7pCHpELZ5JUcXIdme7SEoBojGQ7n+CaThpB/62qN4b 5llHraOw6UNi7qQLtbumrwYj71QM30TnKg+KV/tT7JkreII8OF1IFd819WVUePFZUUW+7ETf1do = X-Google-Smtp-Source: AGHT+IFOZyOdM3xdLeJKW0ZqEO6bVZOi3Vxw5+3h+V5bEcC163DTuX14kYQjrcxgT8m8goy4IJKhSw== X-Received: by 2002:a92:c60a:0:b0:365:1035:83ab with SMTP id p10-20020a92c60a000000b00365103583abmr10422723ilm.32.1709058403510; Tue, 27 Feb 2024 10:26:43 -0800 (PST) Received: from smtpclient.apple ([2405:201:d019:cbd3:88b0:73a3:eb82:f22c]) by smtp.gmail.com with ESMTPSA id h26-20020aa786da000000b006e555d40951sm514002pfo.188.2024.02.27.10.26.42 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Feb 2024 10:26:43 -0800 (PST) Content-Type: text/plain; charset=utf-8 List-Id: FreeBSD on the RISC-V instruction set architecture List-Archive: https://lists.freebsd.org/archives/freebsd-riscv List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-riscv@freebsd.org X-BeenThere: freebsd-riscv@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.400.31\)) Subject: Re: Unable to boot custom kernel From: Himanshu Chauhan In-Reply-To: <3f4d8075-4372-46dd-9ce6-ca925c799857@freebsd.org> Date: Tue, 27 Feb 2024 23:56:20 +0530 Cc: freebsd-riscv@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <632BA64E-2BF6-46F4-9375-C74E534A8F40@thechauhan.dev> <3f4d8075-4372-46dd-9ce6-ca925c799857@freebsd.org> To: Mitchell Horne X-Mailer: Apple Mail (2.3774.400.31) X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4TkmCn4Mxgz4w6d > On 27-Feb-2024, at 11:42=E2=80=AFPM, Mitchell Horne = wrote: >=20 > Can you share the commandline you are using to launch QEMU? >=20 > Mitchell >=20 > On 2/27/24 13:37, Himanshu Chauhan wrote: >> Hi Everyone, >> I am unable to boot my custom kernel from commit ID = 04440331b57(Feb22). Qemu throws the following error and exits: >> qemu-system-riscv64: Some ROM regions are overlapping >> These ROM regions might have been loaded by direct user request or by = default. >> They could be BIOS/firmware images, a guest kernel, initrd or some = other file loaded into guest memory. >> Check whether you intended to load all this guest code, and whether = it has been built to load to the correct addresses. >> The following two regions overlap (in the memory address space): >> /riscv.riscv64/sys/GENERIC/kernel ELF program header = segment 1 (addresses 0x0000000080200000 - 0x00000000807e0226) >> fdt (addresses 0x0000000080200000 - 0x0000000080201346) >> I have tried with packaged Qemu as well as the latest one compiled = from source code. >> Any one else faced or facing this problem? >> Thanks >> Regards >> Himanshu >=20 qemu-system-riscv64 \ -machine virt \ -m 2048M \ -smp 2 \ -nographic \ -bios \ -kernel \ -append "vfs.root.mountfrom=3Dufs:/dev/vtbd0" \ -drive riscv.img,format=3Draw,id=3Dhd0 \ -device virtio-blk-device,drive=3Dhd0 I have always been following instruction from: = https://wiki.freebsd.org/riscv It used to work fine earlier. Regards Himanshu=