From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6520199916203016192 X-Received: by 10.46.85.25 with SMTP id j25mr169262ljb.43.1518707628223; Thu, 15 Feb 2018 07:13:48 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.25.72.82 with SMTP id v79ls2871lfa.7.gmail; Thu, 15 Feb 2018 07:13:47 -0800 (PST) X-Google-Smtp-Source: AH8x225s6SL6Zx5UIRLnx+KkQiHE0jIPP3oalj5V3FMRKsUYjB1R7eGptjxzbB/kZwhb9EEhhHis X-Received: by 10.25.79.28 with SMTP id d28mr207184lfb.8.1518707627186; Thu, 15 Feb 2018 07:13:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518707627; cv=none; d=google.com; s=arc-20160816; b=zr0CSUw+I81qGis406h3etuJy5YvjmZQ/kmwvX3TCD+tfwZYSuAJcaOTLMB76A7z3k CScrnH9w9HTyMMcwRj4DbYY6sNf/ROPMOKh1m4WbNasFeSDvPVFXSwL8RCG4Sk/+RsH6 991oxFPOrBs91FKyQ8HO8eYiKsHslUNcvxpE17TDzz/WZQBxJn6fBKv8oG/blEQNhWLn e2ptP6F9cbAwqmrHGrVOKbsK6vQjrW2BRiR0f1QZ8kOnWEzFxByvPI/rvl6eEY0c8zYh rLHRkfXxr1toU3EkKNME3b+9D/rxD3UKDUCDpPATpAIvDev23DHaQCL4irP/Z9e/00+A uIsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject :arc-authentication-results; bh=hwF0k9YlF/6BuEBxy4nkaz9zy4twnX6J1y3sxnrHfdo=; b=tXrLPKO0UiQSfo/8VsQ+H2N5ou0OdcpuxBNeYwllfYlkDoM/gDwRUaRgxpsyH0PYNR jOvkm3vyknV3P4h9HeDGdfYMn5H+ZktCWzjgBpCgSkkX/XHFzuqMsF1Jv3CTwWdXUStF amEYI2JV6WXackuHpLwx8uX26sJ10SS8RzjaYOstDLtmrcxEg6EpsqLB7ULnslqClhUi EewZDRJv23IapH5DqOnYUQyny8X/EE899FkG1JcbJonn8QHGiaC2o/JlGjH2WT6WX439 YHsZWx9bzCe22Ojb+LDCjDiKc2++YMPqmN4dqmR3K/i4pjYn8Q6lWZqRFPelTFQBmt/s rUCQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.28 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Return-Path: Received: from goliath.siemens.de (goliath.siemens.de. [192.35.17.28]) by gmr-mx.google.com with ESMTPS id b10si731367lfe.4.2018.02.15.07.13.47 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Feb 2018 07:13:47 -0800 (PST) Received-SPF: pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.28 as permitted sender) client-ip=192.35.17.28; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.28 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Received: from mail3.siemens.de (mail3.siemens.de [139.25.208.14]) by goliath.siemens.de (8.15.2/8.15.2) with ESMTPS id w1FFDk0f027614 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 15 Feb 2018 16:13:46 +0100 Received: from [139.25.68.37] (md1q0hnc.ad001.siemens.net [139.25.68.37] (may be forged)) by mail3.siemens.de (8.15.2/8.15.2) with ESMTP id w1FFDkmn031405; Thu, 15 Feb 2018 16:13:46 +0100 Subject: Re: [PATCH v5 0/5] Provide infrastructure and examples for custom kernels and modules To: Alexander Smirnov , isar-users References: <72878cee-c341-8ad7-e884-47ccb41bec89@ilbers.de> From: Jan Kiszka Message-ID: <8d04dd7a-fd5f-a765-bfbd-319613c77781@siemens.com> Date: Thu, 15 Feb 2018 16:13:45 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-TUID: FXykEGBDpftN On 2018-02-15 16:04, Alexander Smirnov wrote: > > > On 02/15/2018 06:00 PM, Jan Kiszka wrote: >> On 2018-02-15 15:43, Alexander Smirnov wrote: >>> On 02/14/2018 12:13 PM, Jan Kiszka wrote: >>>> This is now finally the promised patches to provide simple patterns for >>>> building custom kernels for Isar images that replace the distro >>>> kernels. >>>> It also provids the same pattern for custom out-of-tree kernel modules. >>>> >>>> Changes in v5: >>>>    - dropped merged patches >>>>    - reworked kernel packages naming and selection mechanism to use >>>>      flavor/arch rather them overwriting upstream names >>>>    - fixed rebuilds of the kernel (.version was causing problems) >>>>    - moved kernel build into script - and switched back to include >>>> pattern >>>>    - provided note on origin of exemplary defconfig >>>>    - add KERNEL_DEFCONFIG variable >>>> >>>> Jan >>> >>> $ start_vm -a arm -d jessie >>> >>> ... >>> >>> root@isar:~# modprobe example-module >>> [  110.444107] Just an example >>> modprobe: ERROR: could not insert 'example_module': No anode >>> >>> >>> The same for amd64: >>> >>> >>> root@isar:~# modprobe example-module >>> [   38.343926] example_module: loading out-of-tree module taints kernel. >>> [   38.353140] Just an example >>> modprobe: ERROR: could not insert 'example_module': No anode >>> >>> Please take a look. >>> >> >> static int __init example_module_init(void) >> { >>          printk("Just an example\n"); >>          return -ENOANO; >> } >> >> module_init(example_module_init); >> >> :) >> > > Ouch, didn't notice this. :-( > > Do you have any specific reason to have module_init failed? Could we > have zero return code to test its probe-ability and loading-by-default > for CI? I didn't think of CI for this module yet, but that may make more sense then. Do you plan to write some CI script for that? Then just change the module code to your needs. It's "just an example". :) Jan -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux