Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4B4A7C433F5 for ; Sat, 23 Oct 2021 01:13:59 +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 8BBC2608FB for ; Sat, 23 Oct 2021 01:13:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 8BBC2608FB Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=physik.fu-berlin.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:33828 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1me5bh-00026i-I5 for qemu-devel@archiver.kernel.org; Fri, 22 Oct 2021 21:13:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34550) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1me5ar-0001PF-9o for qemu-devel@nongnu.org; Fri, 22 Oct 2021 21:13:05 -0400 Received: from outpost1.zedat.fu-berlin.de ([130.133.4.66]:34635) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1me5ao-0002B3-RM for qemu-devel@nongnu.org; Fri, 22 Oct 2021 21:13:04 -0400 Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.94) with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (envelope-from ) id 1me5al-001XC3-NV; Sat, 23 Oct 2021 03:12:59 +0200 Received: from p57bd9015.dip0.t-ipconnect.de ([87.189.144.21] helo=[192.168.178.81]) by inpost2.zedat.fu-berlin.de (Exim 4.94) with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (envelope-from ) id 1me5al-000Lg9-6n; Sat, 23 Oct 2021 03:12:59 +0200 Message-ID: <105383e6-9dab-e2bd-ffe2-fead5555f37c@physik.fu-berlin.de> Date: Sat, 23 Oct 2021 03:12:58 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Subject: Re: Looking for advise on debugging a non-boot kernel on qemu-system-sh4 Content-Language: en-US To: BALATON Zoltan References: <4882e4cc-6754-1c8a-a8ae-a2ceeca115fb@physik.fu-berlin.de> <013d782d-0d7c-8204-cab2-08102a7d80f4@physik.fu-berlin.de> <3c524162-e83-a9b3-1e28-2aa28dbefa76@eik.bme.hu> <9189dbe7-cf92-19c7-dee5-b707262964d1@physik.fu-berlin.de> <3f483f63-9e68-b1da-01ab-a1e05dcf45aa@physik.fu-berlin.de> <378d863-abbb-57b7-d624-ce1ca81d09c@eik.bme.hu> From: John Paul Adrian Glaubitz In-Reply-To: <378d863-abbb-57b7-d624-ce1ca81d09c@eik.bme.hu> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Original-Sender: glaubitz@physik.fu-berlin.de X-Originating-IP: 87.189.144.21 Received-SPF: pass client-ip=130.133.4.66; envelope-from=glaubitz@zedat.fu-berlin.de; helo=outpost1.zedat.fu-berlin.de X-Spam_score_int: -58 X-Spam_score: -5.9 X-Spam_bar: ----- X-Spam_report: (-5.9 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-1.742, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=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: QEMU Developers Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Hello Zoltan! On 10/23/21 03:07, BALATON Zoltan wrote: >> I can confirm that the default config works for me, too. Both with gcc-8 and gcc-11. > > OK with your config I can reproduce the problem too but the kernel with that config > is 177MB and the r2d board has 64MB RAM so this can't work that way. Then it's likely > not a but but a too big kernel. You either need to strip the kernel with "strip vmlinux" or use the image from arch/sh/ boot/zImage. >> Using that kernel, however, I cannot use the debian-installer initrd.gz, even with >> CONFIG_BLK_DEV_INITRD enabled in the kernel configuration. >> >> The kernel prints a message saying that the initramfs is uncompressed, but whatever I >> do I cannot get it to mount the initramfs. All I get is this: >> >> [ 0.096000] Trying to unpack rootfs image as initramfs... >> >> and then later: >> >> [ 0.480000] ---[ end trace 46a3adcb34136251 ]--- >> [ 0.480000] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b >> [ 0.480000] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b ]--- > > I don't know, you have to find the needed config options to have what's needed to use this initrd. > You could either try to strip down the debian config or add more to the default until you get a > working kernel that fits in the memory (and there's some left to run other processes). I'll keep digging. Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaubitz@debian.org `. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913