Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp917306ybt; Wed, 17 Jun 2020 17:50:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzABg8DRBfhFNLWDK16fDSFLpHmCKb4vohHmHoKc6GMX5R5LG0gy7Mi9uhH6GP2HrMEQ6RD X-Received: by 2002:a17:906:d204:: with SMTP id w4mr1679250ejz.117.1592441425784; Wed, 17 Jun 2020 17:50:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592441425; cv=none; d=google.com; s=arc-20160816; b=Zst8AONEfWeryDyUwxyMOaoipSrny1NbmiORhmcmCxuq/Zyj3QN5ItxWOaQNRVfGfP grlgqnRhnZjotkS7kP44UdhVR/L98TnH7LK5GsmlZA+f4fpUi/7kkZwe/e73v8kPY+dE 30/1Wb6zvH6rU3EDhGJy8WKe+wHX7xPZx6/ApMJKMFXabY0XD050z6WHvXpcf2AcQqwX 27LQu/fBMutWQP9hLobJBLfBQe7XA/YwsMU4RopAGQKs3JXKHUImeakf82RxdRz3enE3 Xc+oBcDgrwSov69gfeIhAIfEVuaFZI/1cqrafiNRbYwYTXDua3HpFL9wuS80cfCxHc0g Bt2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=BOadOz7W4mZCHvrXVbN8Wv7CzOZlYR+r7opG6qMwG3M=; b=BgatDx0pgnAiqyvoBNUsmdSrM83a/tHy88lvCKhfESx4VOAqjL4TAnxM+lVbFiSjzL Nrd3eyReajY55e4ltOdTFo8SnESri1zKtFHEWsK3ULWp2c3wfe0b7dC+KtMleCScJ3ri eyQn1W1q4YVnxwKKqS5vZQiWWZeSDt5Si26KQL62GRD+WfP6jwzoBmQsf/Lphjz7oG34 YDWJv1Xw2M7gvzXpQeq4uMrIU7ZJ3b9r01Fd10gDD8yWlfk4IbxP1ITFzW3GkqijCn9h 3pSl7seInfkUBCqTAb0ZNOpEr1+eMNojcs8mA9s5RWRNxcbnkxeuxg1tlPx3VCAz1Vrn VR/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=SbXjA23Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g8si963516edy.450.2020.06.17.17.50.04; Wed, 17 Jun 2020 17:50:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=SbXjA23Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726974AbgFRAr7 (ORCPT + 99 others); Wed, 17 Jun 2020 20:47:59 -0400 Received: from bilbo.ozlabs.org ([203.11.71.1]:35923 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726890AbgFRAr7 (ORCPT ); Wed, 17 Jun 2020 20:47:59 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 49nNZg50TZz9sSc; Thu, 18 Jun 2020 10:47:55 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ellerman.id.au; s=201909; t=1592441276; bh=TG7uARSNXOCtzyhqf6WfzaFhVxvui+qt2GtCF7JxfbU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=SbXjA23Qv4zCSPbZbYwvnNOG+10UWft7vXba1l9SRCrtwcmGfZqVAQUaL6AuE9TsE Xl8kpUEXPhep2rbqO6NXznsrJ5pmyAvobpwjHEHVxQiLxssesbWWXAjq11rpOqkPJ/ Bu4Kua0elnAKRocSOzhOkFZs0N25INuOTibgKUf1RUgfOyxCB1ETRQ2to3KOuFgtyN 4Y4paRw+lgO4Ne7RBVvUmfBnBjSnl1zBRS+9dp0XvBE0Li3frprvJrcWlaIuJDQ576 8sy17H7cJwQpV3mCBEfaY//7xxH7MvhtZF4XaTVSxt+ZFFtYEvyouNv4FV5eu143yd PEplI/YofUrmQ== From: Michael Ellerman To: Nick Desaulniers Cc: Michal Simek , Nathan Chancellor , Christophe Leroy , Benjamin Herrenschmidt , Paul Mackerras , Arnd Bergmann , linuxppc-dev , LKML , clang-built-linux Subject: Re: [PATCH v5 01/13] powerpc: Remove Xilinx PPC405/PPC440 support In-Reply-To: References: <8c593895e2cb57d232d85ce4d8c3a1aa7f0869cc.1590079968.git.christophe.leroy@csgroup.eu> <20200616002720.GA1307277@ubuntu-n2-xlarge-x86> <68503e5e-7456-b81c-e43d-27cb331a4b72@xilinx.com> <20200616181630.GA3403678@ubuntu-n2-xlarge-x86> <50fb2dd6-4e8f-a550-6eda-073beb86f2ff@xilinx.com> <87bllidmk4.fsf@mpe.ellerman.id.au> <878sgmdmcv.fsf@mpe.ellerman.id.au> Date: Thu, 18 Jun 2020 10:48:21 +1000 Message-ID: <87tuz9ci7e.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Nick Desaulniers writes: > On Wed, Jun 17, 2020 at 3:20 AM Michael Ellerman wrote: >> Michael Ellerman writes: >> > Michal Simek writes: >> >> >> >> Or if bamboo requires uImage to be built by default you can do it via >> >> Kconfig. >> >> >> >> diff --git a/arch/powerpc/platforms/44x/Kconfig >> >> b/arch/powerpc/platforms/44x/Kconfig >> >> index 39e93d23fb38..300864d7b8c9 100644 >> >> --- a/arch/powerpc/platforms/44x/Kconfig >> >> +++ b/arch/powerpc/platforms/44x/Kconfig >> >> @@ -13,6 +13,7 @@ config BAMBOO >> >> select PPC44x_SIMPLE >> >> select 440EP >> >> select FORCE_PCI >> >> + select DEFAULT_UIMAGE >> >> help >> >> This option enables support for the IBM PPC440EP evaluation board. >> > >> > Who knows what the actual bamboo board used. But I'd be happy to take a >> > SOB'ed patch to do the above, because these days the qemu emulation is >> > much more likely to be used than the actual board. >> >> I just went to see why my CI boot of 44x didn't catch this, and it's >> because I don't use the uImage, I just boot the vmlinux directly: >> >> $ qemu-system-ppc -M bamboo -m 128m -display none -kernel build~/vmlinux -append "console=ttyS0" -display none -nodefaults -serial mon:stdio >> Linux version 5.8.0-rc1-00118-g69119673bd50 (michael@alpine1-p1) (gcc (Ubuntu 9.3.0-10ubuntu2) 9.3.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #4 Wed Jun 17 20:19:22 AEST 2020 >> Using PowerPC 44x Platform machine description >> ioremap() called early from find_legacy_serial_ports+0x690/0x770. Use early_ioremap() instead >> printk: bootconsole [udbg0] enabled >> >> >> So that's probably the simplest solution? > > If the uImage or zImage self decompresses, I would prefer to test that as well. The uImage is decompressed by qemu AIUI. >> That means previously arch/powerpc/boot/zImage was just a hardlink to >> the uImage: > > It sounds like we can just boot the zImage, or is that no longer > created with the uImage? The zImage won't boot on bamboo. Because of the vagaries of the arch/powerpc/boot/Makefile the zImage ends up pointing to treeImage.ebony, which is for a different board. The zImage link is made to the first item in $(image-y): $(obj)/zImage: $(addprefix $(obj)/, $(image-y)) $(Q)rm -f $@; ln $< $@ ^ first preqrequisite Which for this defconfig happens to be: image-$(CONFIG_EBONY) += treeImage.ebony cuImage.ebony If you turned off CONFIG_EBONY then the zImage will be a link to treeImage.bamboo, but qemu can't boot that either. It's kind of nuts that the zImage points to some arbitrary image depending on what's configured and the order of things in the Makefile. But I'm not sure how we make it less nuts without risking breaking people's existing setups. cheers