From nobody Fri May 20 20:44:29 2022 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 6E11D1B392CF for ; Fri, 20 May 2022 20:44:56 +0000 (UTC) (envelope-from mhorne@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 4L4dyJ2jZmz3l39; Fri, 20 May 2022 20:44:56 +0000 (UTC) (envelope-from mhorne@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1653079496; 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; bh=+V1Y2I0jzneRCrXUJfWedbCcw1z0Ta08Krmtf1BZNhY=; b=BDJ0UisizMFtxpKRAJ8rt7nVnfIIlJf30Gy+SkpiHI34nDS8gu18vjaKfPtmF7ZiC08S/+ 51qIDloKlWuSMVpLlJvAlX4lS7SqDaWHUUmHBRZg95XB/4fUHxSyOAMm7WnnaxS5MnQIDh 534oAWqOoRHPDhgmiVHINn0uJmYjK+R5IzZlk/SMkBFyCcBZHQRLW5zigHWSOgu6dfgEnW +nnt4PHA2JuJgqepIvYf1xShzH8vjGkQIHAYopdpCf3XgUNcso2So75d/jZvF5wgENUUi9 tpsnflVXo9AnS6soHIpcuF0fhO/qyaBojhHyCgQoM7iU52Na4e0oyEFA/1ANvw== Received: from [192.168.2.42] (mctnnbsa70w-134-41-153-51.dhcp-dynamic.fibreop.nb.bellaliant.net [134.41.153.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: mhorne) by smtp.freebsd.org (Postfix) with ESMTPSA id 18BE6FEC1; Fri, 20 May 2022 20:44:56 +0000 (UTC) (envelope-from mhorne@FreeBSD.org) Message-ID: <40a8ac1a-ad1c-9e03-a66b-4b78b23f0d4a@FreeBSD.org> Date: Fri, 20 May 2022 17:44:29 -0300 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/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: Problem running FreeBSD/RISC-V in QEMU Content-Language: en-US To: "lars.sonchocky-helldorf@hamburg.de" , "freebsd-riscv@freebsd.org" References: <2FA6ED5C-4269-4033-BAF0-466FDC7EEA1C@hamburg.de> From: Mitchell Horne In-Reply-To: <2FA6ED5C-4269-4033-BAF0-466FDC7EEA1C@hamburg.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1653079496; 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; bh=+V1Y2I0jzneRCrXUJfWedbCcw1z0Ta08Krmtf1BZNhY=; b=jP5f42bLLsqQkX2OMsZdgZCaCFm+slYcDz1Hj6u1MrA4K4zM56j/ZN/SMvpOnY3q8nQSQ3 /Q93mZbZevnwuBPYrtH0SEA16wM8M/BBCSjnO/DVOF3q/cy0aNwkIgxO8IghUi69bLfCzR aWiddyBynbHWOwDSL0NDrBikTFrbNNG0mY0Bu3rDD7CdI8CGLaJNzKl0dOy5HN5NZktQbJ xQbAv1otoJRHxMo3RIkiXi1Q0jFU2MV9c/FzLgjea7kD7+gByHhvFICbk8uhbknwV/sOM6 yYMAjsZJS4jpjuVxzziZHspQYf/CPmBQvIOae1v7sEowrLwGhKHlekqFHpd5QA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1653079496; a=rsa-sha256; cv=none; b=oHLwJxcCAFEG2QsUS5bt8ZUeOA1N1CRWyWO7J8gNwNuDUUsNb3f623anHMgCzG+oMrZlVQ dYTF1x8K77OU2PKnPyEUBrxlXGV2nEZWIKKMRC2dXRERIKeYwAowmHSH6H1sJ9Yv3b+SJ1 PoBiVKrh7lMn+l7my5zUOwvdtNzifPjvSzliPMxcycQa2YICi+5wB4orXYnzNESEev0Au/ h3Xy0rqbKO5Me/KR1Ixhv45qJLLfOhiQnZnD7jBqJw2sHNFXTQ4Fi9gZUQ/00kWIQBgifz LWYnKuefsqqKfwo1bPuX13/+dtAzsmgk/vUnaatMWTpBoM9HKfAwH8f1rOcQPg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N On 2022-05-20 8:36 a.m., lars.sonchocky-helldorf@hamburg.de wrote: > Hi everybody, > > > I am trying to run FreeBSD/RISC-V in QEMU. > > For that purpose I have installed FreeBSD/amd64 inside Virtual Box on a macOS machine: > > FreeBSD FreeBSD14 14.0-CURRENT FreeBSD 14.0-CURRENT #0 main-n255696-716fd348e01: Thu May 19 08:29:12 UTC 2022 root@releng1.nyi.freebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 > > and then followed those instructions: > > https://wiki.freebsd.org/riscv#Quick_Start > > > > The boot process is initialized but then however I get repeatedly: > > failed to allocate staging area: 9 > > here is the part where it fails, truncated, since the above message is repeated endlessly: > > Loading kernel... > /boot/kernel/kernel text=0x5a5e88 text=0x172c34 data=0xf8350 data=0x1eac+0x273b9c 0x8+0x1efc360+0x8+0xf28d3 > Loading configured modules... > can't find '/etc/hostid' > can't find '/boot/entropy' > Using DTB provided by EFI at 0x87efb000. > Kernel entry at 0xf660002e... > Kernel args: (null) > failed to allocate staging area: 9 > failed to allocate staging area: 9 > > > What is going wrong here? > Seems to be a bug made visible by the recent upgrade of LLVM/clang. It was reported here: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264021 If you grab the snapshot from 2 weeks ago, it might not exhibit this problem. Otherwise, it looks like a fix is in progress. https://download.freebsd.org/snapshots/VM-IMAGES/14.0-CURRENT/riscv64/20220505/ Cheers, Mitchell > > Thanks in advance and if you need more information please let me know! > > Kind regards, > > Lars