Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3081849ybb; Mon, 6 Apr 2020 01:28:09 -0700 (PDT) X-Google-Smtp-Source: APiQypKX0pgrq1KD7PozQbpH0tD+D8MR5AziCEP2Re8SYU+0xHiDJ2KR1HLB0zJnrsMfZ8k2O0dC X-Received: by 2002:a05:6830:8d:: with SMTP id a13mr16719674oto.321.1586161689474; Mon, 06 Apr 2020 01:28:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586161689; cv=none; d=google.com; s=arc-20160816; b=ww26YOFpLYzf1ograr1mG8/ngvvBkOrMOozPrfsYwFTwHVk3lziHn/A4NkA7YQnaL0 HqhUHtAldTl5K1AMcnm8CqGSIxl13hwMsYo969bEntrxw1MtDToqmRMs1GzEbF+CpbgV THfqJZ1hSwNzNn8KLE00dy5OCZeGb2yAchmwpM6PvP40SbdFYxzNlQ3ocbMBDfHAQ9rL 6lpzL+2/wY/tRcIv2Px3mfMCRz4oDk+3ZDGNdAkpB4CMWZ4JUYFrJLzUnnAOkQ00qDjU wP7ZU+qoamlZpUKMSJzAVcjhlMyixb2phJFb54Q/FByd1hE+I+b6Ekdkecx9XRIUXzFS j1wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=55a3ErFUzwi21OsaY2azC2jkNniTZaL9xFoaJMyXUts=; b=VNHVQLSBlj10YCbtKF/5mFidsmBgoM4LT6b3bpSR1P/F7YLMikyxMuNfyISbJgtnB+ fbv3j2CiCAclEs0dzOU8u7D9inwAChVHLvKVz2AH5gnOMgrRLrywwj3jYnt6XBe4KAHT GRbhDLIOEFEctBW2S1XuAAJ4x0p89yk7tPEIhV3NnHn0y+qi2pPp7LiNuwjglaAIr+al S81CWFdmUDdXXCa07Ugz4wtfinwimHbxkEDVjv1KMreyXDKsb9pSaMpfE47FnEYLX1D9 1JGQz1gv/ZENZBpUquOUO20/wMePqMFNd6XgFiz7Io5OnfKMV3c3hH//EdfI6RZSZJ/1 b2eQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=vZnUnwZQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e53si7542336ote.156.2020.04.06.01.27.56; Mon, 06 Apr 2020 01:28:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=vZnUnwZQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726605AbgDFI1Y (ORCPT + 99 others); Mon, 6 Apr 2020 04:27:24 -0400 Received: from mail-wr1-f43.google.com ([209.85.221.43]:32796 "EHLO mail-wr1-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726514AbgDFI1Y (ORCPT ); Mon, 6 Apr 2020 04:27:24 -0400 Received: by mail-wr1-f43.google.com with SMTP id a25so16359054wrd.0 for ; Mon, 06 Apr 2020 01:27:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition; bh=55a3ErFUzwi21OsaY2azC2jkNniTZaL9xFoaJMyXUts=; b=vZnUnwZQ1qXHKPZWX9+n3t/3eu+4bLYPi6ploQCBGr2mO6XDyM+5moogDuVDP5C2E0 0fWMGbfcau+ZSAOFIMEtSHXueEnHV++vJN+YCDqRJyiF2EuYCIWyOpzLYn1U4aFLSuzM rOR75n4gmmGORVuj3EQgVQFfBJmtjls9BN4lixj3Pf7rzDSoQzhLh3MCdS+lQct3KzGX 4dCXSxEt0ATG1uiz1vQcMavWBrh9LtDK8/VPJefOXf1COF7IuGnhHz1hy/OQ5tfbvreU yQdz6C1+IeKUnmNLrxF3RwVQKZPsVW+3foLqVTM4EMnDrlzlNcOMbFlT0EFxMuhk/M/K GHJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=55a3ErFUzwi21OsaY2azC2jkNniTZaL9xFoaJMyXUts=; b=C1gKj4XQKDr+xQaYFA16ePBii+0d5YAU9aP6qU2oOtRSVTtpDdYVnMZP7DnylwM5cZ yzGKl8XvYg4hGPx9rCDZO78XfDhUsM1gLTJotZCGc+mB8fWEq7o9zW27iJgS0aX1Ojfe tRkHa0xm9HxXtsy4G3k9Aceu9LLhcxlE4b3fNHrV6U6d7I28OD4J2dzbXJUH8sUfdr8E sutnVf6gsCxKxVwZW/0How05LzSY7XI9zkfOMBtozkNlW5hgBgfe6BA9SPvX01klOTmS cu+o/v7uCYR1EjkPzD4zKvN6uvHubyEM4hVsecGCPlL0eB+iAib9fudiZExauGXcuUcS 2t2g== X-Gm-Message-State: AGi0Pua0SqtFC0K97lVFWleIuGCZ6+eFz+liyycDiKFWE7tsqwongl9a fN0ETlfHhxSFxWMsuWofzFYNHaMP X-Received: by 2002:a05:6000:1205:: with SMTP id e5mr24179604wrx.73.1586161642322; Mon, 06 Apr 2020 01:27:22 -0700 (PDT) Received: from Red ([2a01:cb1d:3d5:a100:2e56:dcff:fed2:c6d6]) by smtp.googlemail.com with ESMTPSA id f3sm24957862wmj.24.2020.04.06.01.27.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Apr 2020 01:27:21 -0700 (PDT) Date: Mon, 6 Apr 2020 10:27:20 +0200 From: Corentin Labbe To: ebiederm@xmission.com, kexec@lists.infradead.org Cc: mripard@kernel.org, wens@csie.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Trying to kexec on Allwinner A80 Message-ID: <20200406082720.GA31279@Red> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello I am trying to add the last missing Allwinner Soc in kernelci: the A80. But this SoC does not have any way to be used in kernelci, no USB nor network in uboot. So I have tried to fake uboot since the kernel has network support and run the new kernel via kexec. But kexec 2.0.18 fail to work: kexec --force /tmp/kernel --initrd /tmp/ramdisk --dtb /tmp/dtb --command-line='console=ttyS0,115200n8 root=/dev/ram0 earlycon=uart,mmio32,0x7000000 ip=dhcp' syscall kexec_file_load not available. Try gzip decompression. kernel: 0xb6535008 kernel_size: 0x853200 MEMORY RANGES 0000000020000000-000000009fffffff (0) zImage header: 0x016f2818 0x00000000 0x00853200 zImage size 0x853200, file size 0x853200 zImage requires 0x00864200 bytes offset 0x0000bae4 tag 0x5a534c4b size 8 Decompressed kernel sizes: text+data 0x0158b3a0 bss 0x000632f0 total 0x015ee690 Resulting kernel space: 0x01def5a0 Kernel: address=0x20008000 size=0x01def5a0 Initrd: address=0x21df8000 size=0x0090b6fa DT : address=0x22704000 size=0x00005c09 kexec_load: entry = 0x20008000 flags = 0x280000 nr_segments = 3 segment[0].buf = 0xb6535008 segment[0].bufsz = 0x853204 segment[0].mem = 0x20008000 segment[0].memsz = 0x854000 segment[1].buf = 0xb5c29008 segment[1].bufsz = 0x90b6fa segment[1].mem = 0x21df8000 segment[1].memsz = 0x90c000 segment[2].buf = 0x4db50 segment[2].bufsz = 0x5c09 segm[ 71.039126] kexec_core: Starting new kernel ent[2].mem = 0[ 71.044712] Disabling non-boot CPUs ... x22704000 segment[2].memsz = 0x6000 [ 71.489070] Bye! I have tried also kexec-2.0.20 Try gzip decompression. zImage header: 0x00000000 0x000019b4 0x00001000 zImage requires 0x008641c0 bytes Could not find a free area of memory of 0x86c1c0 bytes... Cannot load /tmp/kernel What can I do for made it working ? I probably need to give it some memory address, but I am a bit loss. Thanks Regards