From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6546059049526362112 X-Received: by 2002:aca:7201:: with SMTP id p1-v6mr2140933oic.76.1524124040138; Thu, 19 Apr 2018 00:47:20 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a9d:2b54:: with SMTP id f20-v6ls365846otd.12.gmail; Thu, 19 Apr 2018 00:47:19 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+qagsPMaj7BXVeRPiYZeiw0ex18wYtQLMRHKmnB4Ky4Ix3XiMvwzHKY38IgJ3QwotgWcJd X-Received: by 2002:a9d:ac4:: with SMTP id 62-v6mr2557505otq.80.1524124039893; Thu, 19 Apr 2018 00:47:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524124039; cv=none; d=google.com; s=arc-20160816; b=xtxGXQc4JmXXrQ7AK4QKMH0iwkaFSUia4iY+5e5VTtua6ONVOknjp8uo2Nmo/JmOdg pvi7N9VP1gKaDL9HUO7iNmCDErgp4k/6Mgo7GOpxcCmA6pSLPxBpMFLq5ONBlMKpNVMx MEOoJFyhwrz3AzWfZ0asbZLza4U2zbuI6rvPoIockchsvoUIN1JpjpxysMY9aMaggEa0 5jPKBvvmXtOa/Mje5TvpAM51dLgFyKObQwC6ldrG9zdWLZeM0HMr1bO/7T28Fehc2nSb e712EZeIpo1bhsbZuW69hYW2+m84qjxw9TbnuXbkvK8557bSAywtjZyg360bHOzc/If/ 6riQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature:arc-authentication-results; bh=YVdGPFg1/s9YpTTaNTSwxbB+CDobIMhTAiqg04MP5tM=; b=t8pfEf3NrN76zQqQemkfU9yeHhEwVZV2tQcWnKQkFYhczOJ14vFgEr+cjjKFrq/JXR Qy5Tv0uwN1k+XhZBpqZ9HC1/JFSpfQxdYZ7ov8WGu2hz1+GFP406QwgGAQ4ts2cHdcCq k7jxd5FyB/UMNNVNKdEyLiCSmz+KH7zDkIDv0VuKL4fUi0ZusbIV/GCqGwXyvUHuMH3X kHDVKcYmDVlS1rs/zrnTv354IeOw5pd34iGno7CpUG7Uo073rMqo20v6ggq7bd7XgZ19 BB/lpPt0QLKKaqPWFdCvJRg9ml8qBt+Faa61Cka1S0YlISI+a9qS/ROMq0krpuw2Xapc Yirg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@solid-run-com.20150623.gappssmtp.com header.s=20150623 header.b=C4IxTrN9; spf=pass (google.com: domain of jon@solid-run.com designates 2607:f8b0:4001:c06::236 as permitted sender) smtp.mailfrom=jon@solid-run.com Return-Path: Received: from mail-io0-x236.google.com (mail-io0-x236.google.com. [2607:f8b0:4001:c06::236]) by gmr-mx.google.com with ESMTPS id v4-v6si344540oth.4.2018.04.19.00.47.19 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Apr 2018 00:47:19 -0700 (PDT) Received-SPF: pass (google.com: domain of jon@solid-run.com designates 2607:f8b0:4001:c06::236 as permitted sender) client-ip=2607:f8b0:4001:c06::236; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@solid-run-com.20150623.gappssmtp.com header.s=20150623 header.b=C4IxTrN9; spf=pass (google.com: domain of jon@solid-run.com designates 2607:f8b0:4001:c06::236 as permitted sender) smtp.mailfrom=jon@solid-run.com Received: by mail-io0-x236.google.com with SMTP id d6-v6so5550752iog.1 for ; Thu, 19 Apr 2018 00:47:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=solid-run-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YVdGPFg1/s9YpTTaNTSwxbB+CDobIMhTAiqg04MP5tM=; b=C4IxTrN9HLxtXBIDumRpzVR0R0GLtAg03xQF2zu3n963hPKuvIcB3UK52Z3X22dKTm mKHxhBCQcZw1ZJLSsKx6cpmndYlwNioMgX+iw59QT4HJU9cG17dAd0YwMPm6m2BJYBGf LwvcE7oo/wUG7IiSEcvUXz180uVH781uxO1cllu0MpwS3dOxLHyR+Zi2DIKCZlfGP2Lp OjS8S9oAAb+Cj+GW8pkh1LtHkI8V+l8v0svPnSuQho6Wl0aCNSwt5CXuiprmxeAy7mg/ cyDKarc/uIUjXfF97bBP+DMqBxtv9Nrf7E4ppXcB/vHAnr8E0l/eUFayKTpaGFlUmOVC 3NWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=YVdGPFg1/s9YpTTaNTSwxbB+CDobIMhTAiqg04MP5tM=; b=E1mfT/4Rgxc3EUp0ZTKToqsWj1OFUHM0/V9bHtylAAv5Fwh9WQ6rcOuX8056tZJZey 6thOSExdVfHcwjg0rXA2WJRm38RcGmAL+dHoa3MISQ5W95mrQr2FmJ/X8aoBV9+3ERQ6 VdwMbGl7+A4AZe6PmSVzx5xqDYkLs8XKuX3ZglSwK2sVvIhApxItsyoXSrPsAVMuUcyP VxlsHgn41QpP16pw2bt+n2ni64nxG4x15C+EDyEQkSAyOVAyFGt3Q5neNXgPF69KZ8G4 1UHdq5VUJknFPpsvIzckmNdJAWdQRq800ax6ElmASe4shRBsHqgX+FmB2bV2r9wpRaDy I4kw== X-Gm-Message-State: ALQs6tCmycZ8ovfaTDiADlH2GESYwGuA5xOoL5Lut67gvxI5FsZYBOh0 HjltrgENDqAO9NZIf0otkzSInF63tD8tZclZitRhjQ== X-Received: by 2002:a6b:f208:: with SMTP id q8-v6mr5492156ioh.195.1524124039539; Thu, 19 Apr 2018 00:47:19 -0700 (PDT) MIME-Version: 1.0 References: <01699424-086e-5688-d768-a23cbf16c7a7@siemens.com> In-Reply-To: <01699424-086e-5688-d768-a23cbf16c7a7@siemens.com> From: Jon Nettleton Date: Thu, 19 Apr 2018 07:47:09 +0000 Message-ID: Subject: Re: building custom kernel fails To: Jan Kiszka Cc: isar-users Content-Type: multipart/alternative; boundary="000000000000f88000056a2ec7e2" X-TUID: nApgjSPvIIYa --000000000000f88000056a2ec7e2 Content-Type: text/plain; charset="UTF-8" On Thu, Apr 19, 2018 at 9:40 AM Jan Kiszka wrote: > On 2018-04-19 09:32, jon@solid-run.com wrote: > > I am now building a custom debian package from our kernel sources, the > > kernel compile goes fine. The deb-pkg is failing because the number of > > files passed to xarg is too long. > > > > Error message is. > > > > 2018-04-19 07:11:17 - INFO - | Using default distribution of > > 'unstable' in the changelog > > 2018-04-19 07:11:17 - INFO - | Install lsb-release or set > > $KDEB_CHANGELOG_DIST explicitly > > 2018-04-19 07:11:17 - INFO - | /usr/bin/xargs: md5sum: Argument list > > too long > > 2018-04-19 07:11:17 - INFO - | scripts/package/Makefile:90: recipe > > for target 'deb-pkg' failed > > 2018-04-19 07:11:17 - INFO - | make[1]: *** [deb-pkg] Error 126 > > 2018-04-19 07:11:17 - INFO - | Makefile:1347: recipe for target > > 'deb-pkg' failed > > 2018-04-19 07:11:17 - INFO - | make: *** [deb-pkg] Error 2 > > 2018-04-19 07:11:17 - INFO - | WARNING: exit code 2 from a shell > > command. > > > > looks like on large kernel builds the file lists will need to be broken > up. > > Where exactly is this argument list passed? What exactly is your setup > (host, target distro, kernel version etc.)? > > BTW, you can find a working custom kernel build here e.g.: > > https://github.com/siemens/jailhouse-images/tree/master/recipes-kernel/linux > There is an ARM64 version of that as well, just waiting for cross-build > support to be available. > > Jan > > > Yes I have used your recipe as a reference. It is a 4.9.y lts kernel with the NXP BSP merged for our hardware. https://www.solid-run.com I am attempting to use the default make deb-pkg in that LTS kernel. I am running this in a kas-isar container on a CentOS 7 host. My guess is ulimit my possibly be getting in the way. I will do a minimal kernel config build and then move up from there. Jon --000000000000f88000056a2ec7e2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

On Thu, Ap= r 19, 2018 at 9:40 AM Jan Kiszka <jan.kiszka@siemens.com> wrote:
On 2018-04-19 09:32, jon@solid-run.com wrote:
> I am now building a custom debian package from our kernel sources, the=
> kernel compile goes fine.=C2=A0 The deb-pkg is failing because the num= ber of
> files passed to xarg is too long.
>
> Error message is.
>
> 2018-04-19 07:11:17 - INFO=C2=A0 =C2=A0 =C2=A0- | Using default distri= bution of
> 'unstable' in the changelog
> 2018-04-19 07:11:17 - INFO=C2=A0 =C2=A0 =C2=A0- | Install lsb-release = or set
> $KDEB_CHANGELOG_DIST explicitly
> 2018-04-19 07:11:17 - INFO=C2=A0 =C2=A0 =C2=A0- | /usr/bin/xargs: md5s= um: Argument list
> too long
> 2018-04-19 07:11:17 - INFO=C2=A0 =C2=A0 =C2=A0- | scripts/package/Make= file:90: recipe
> for target 'deb-pkg' failed
> 2018-04-19 07:11:17 - INFO=C2=A0 =C2=A0 =C2=A0- | make[1]: *** [deb-pk= g] Error 126
> 2018-04-19 07:11:17 - INFO=C2=A0 =C2=A0 =C2=A0- | Makefile:1347: recip= e for target
> 'deb-pkg' failed
> 2018-04-19 07:11:17 - INFO=C2=A0 =C2=A0 =C2=A0- | make: *** [deb-pkg] = Error 2
> 2018-04-19 07:11:17 - INFO=C2=A0 =C2=A0 =C2=A0- | WARNING: exit code 2= from a shell
> command.
>
> looks like on large kernel builds the file lists will need to be broke= n up.

Where exactly is this argument list passed? What exactly is your setup
(host, target distro, kernel version etc.)?

BTW, you can find a working custom kernel build here e.g.:
https://github.com/sieme= ns/jailhouse-images/tree/master/recipes-kernel/linux
There is an ARM64 version of that as well, just waiting for cross-build
support to be available.

Jan


=C2=A0Yes I have used your recipe as a reference.= =C2=A0 It is a 4.9.y lts kernel with the NXP BSP merged for our hardware. <= a href=3D"https://www.solid-run.com">https://www.solid-run.com

I am attempting to use the default make deb-pkg in that LT= S kernel.=C2=A0 I am running this in a kas-isar container on a CentOS 7 hos= t.=C2=A0 My guess is ulimit my possibly be getting in the way.=C2=A0 I will= do a minimal kernel config build and then move up from there.
Jon
--000000000000f88000056a2ec7e2--