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=