From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4924FC433ED for ; Wed, 7 Apr 2021 03:49:11 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 902D961245 for ; Wed, 7 Apr 2021 03:49:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 902D961245 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=flygoat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:41902 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lTzBl-0008VG-H8 for qemu-devel@archiver.kernel.org; Tue, 06 Apr 2021 23:49:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51650) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lTzBA-00085E-Dd for qemu-devel@nongnu.org; Tue, 06 Apr 2021 23:48:32 -0400 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:57263) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lTzB8-0006p9-Bm for qemu-devel@nongnu.org; Tue, 06 Apr 2021 23:48:32 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 7C74E138E; Tue, 6 Apr 2021 23:48:27 -0400 (EDT) Received: from imap1 ([10.202.2.51]) by compute6.internal (MEProxy); Tue, 06 Apr 2021 23:48:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; h= mime-version:message-id:in-reply-to:references:date:from:to:cc :subject:content-type:content-transfer-encoding; s=fm1; bh=qlD4T 8wg+Q3nYdZoolz4GaixXF8HsLa88JE+Z5P06dQ=; b=TFnN1V6wZRN9rf+7WN97o ghB++P3RObl5eZAH9ded29yZNQWeT0KoMKaZSfZAkZGoi3an8W6vDdu0MU9+GY6F fBhu8EM05iFLsObX9gBOdhvFtcFPcXdZI1LqVQDw57eXQ1+qob3kYmmv/0ZLmuZJ /H4D29Utk5gsxMKqmfnudQSAC9h+UkIaYCuNRmMd2ZCEfSM5zyuMFL3oTz5AJmo9 0vVpVw037tjYnQ5mXj2c4Iv1+u+Cq5SmsRbtnsOiSlvAaE20+7oRx//BP1GcsDAh OLsnUE1Ll1Wj9QfBS6/j+zqX1hF7ZSjAZVcUs223AY5uCilTPZvMJFWgoGyzxgiS A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=qlD4T8wg+Q3nYdZoolz4GaixXF8HsLa88JE+Z5P06 dQ=; b=P+qKTU9QK0agvWtAZYcs2nKHZ3avzhiCE8HlIJjE2QChLtfPrNh/tZLWn aE5CAxId5dLA/XAFEFqn7dUuxXv/fAUXg3a4JDkAPd9vQ2Xq/jciv2oXFtOz9+sH o0CyAJbPKRyAWrQuXrdM9j/t19jDVpj/H/F+6IMJMtVMlp3iQCEBYDkh+gt9wr5T mAr57yKlZcFkeVjUSej0mdlKU+1rubmq0B31zOz4tMlRrIXSR1xycu28OtCmEt6/ xBPPtV15fZQ4u4/ngmozjHGq8UVup+FUEgOUP7k2NK0SFxjF5AIpGrQmFMBhv+Ez b7btl5HX3Ao1j2/lIBUdOKKMrSRyA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudejiedgjeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgfgsehtqhertderreejnecuhfhrohhmpedflfhi rgiguhhnucgjrghnghdfuceojhhirgiguhhnrdihrghnghesfhhlhihgohgrthdrtghomh eqnecuggftrfgrthhtvghrnhepudekgfelleegieetfeehffejuefguddtvdejheevhfeh jedufeelvedtkefhvdejnecuffhomhgrihhnpehmrghilhdqrghrtghhihhvvgdrtghomh enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehjihgr gihunhdrhigrnhhgsehflhihghhorghtrdgtohhm X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 544D11300062; Tue, 6 Apr 2021 23:48:26 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-273-g8500d2492d-fm-20210323.002-g8500d249 Mime-Version: 1.0 Message-Id: In-Reply-To: <87mtubwnsq.fsf@linaro.org> References: <87mtubwnsq.fsf@linaro.org> Date: Wed, 07 Apr 2021 11:47:58 +0800 From: "Jiaxun Yang" To: =?UTF-8?Q?Alex_Benn=C3=A9e?= , "Huacai Chen" Subject: Re: Could we document exact steps for loongson3-virt in the manual? Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=64.147.123.24; envelope-from=jiaxun.yang@flygoat.com; helo=wout1-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?Q?Philippe_Mathieu-Daud=C3=A9?= , BALATON Zoltan via Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On Tue, Apr 6, 2021, at 9:06 PM, Alex Benn=C3=A9e wrote: > Hi, >=20 > I was trying to bootstrap a Loongson3 Debian image but ran into some > roadblocks. Philippe pointed me at: >=20 > https://www.mail-archive.com/qemu-devel@nongnu.org/msg768848.html >=20 > which gives a bit of detail but elides over details such as how to > handle block devices. AFAICT it should support virtio-blk although may= be > Debian bullseye doesn't support the target, it's hard to say: >=20 > ./qemu-system-mips64el -M loongson3-virt -m 4096 -nographic -blockde= v=20 > driver=3Draw,node-name=3Dhd0,discard=3Dunmap,file.driver=3Dhost_device= ,file.filename=3D/dev/zvol/hackpool-0/debian-bullseye-mips64le -device v= irtio-blk,drive=3Dhd0 -kernel ./vmlinuz-5.9.0-4-loongson-3 -initrd initr= d.gz -append "root=3D/dev/sda1 console=3Dtty0 nokaslr" missing console=3DttyS0,115200 in cmdline. >=20 > Gets as far as: >=20 > [ 0.008641] printk: console [tty0] enabled > [ 0.009507] printk: bootconsole [early0] disabled >=20 > and then just goes silent. It would be nice if we could add enough > detail to the appropriate target-mips.rst to: >=20 > - give guidance on the best model to use for general purpose distros > - describe a common command line for such > - detail bootstraping a modern kernel >=20 > In the ARM section there is a nice "Choosing a board model" which > discusses what you want (probably "virt") and then we have varying > levels of detail for the various myriad zoo of ARM machines that are > emulated. I recently added sections to the versatile and vexpress > sections after going through similar pain trying to get those up and > running. I=E2=80=99ll take a look. Thanks! >=20 > --=20 > Alex Benn=C3=A9e > --=20 - Jiaxun