From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6520199916203016192 X-Received: by 10.28.156.12 with SMTP id f12mr986466wme.4.1518707105997; Thu, 15 Feb 2018 07:05:05 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.28.138.19 with SMTP id m19ls87002wmd.5.gmail; Thu, 15 Feb 2018 07:05:05 -0800 (PST) X-Google-Smtp-Source: AH8x2242+hx6z9zV+YUL40zcS380v//pnEBO+z2GXFxl6d5Ts/r+z9hByhW0SmoFudyTnswYKq7R X-Received: by 10.28.103.133 with SMTP id b127mr221862wmc.30.1518707105500; Thu, 15 Feb 2018 07:05:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518707105; cv=none; d=google.com; s=arc-20160816; b=RxQJ5xymeJ+dJl/N1TtRcGvVQB8CtT+VKoK1hYdDCJFtzfGkwRZ6l3eJzzCiCIwEdk bjbDMWsrfBPMIsauX7wCN8pqyjT/kz/svNOweQfRWOdV1NJKufIqoANVEnCDA+saZddE Mypo2w7YeTUlX1IiUiOJ1tK5LBhb/iaW0oU9ynTFaUA3Lr38FCARWkXsLzfVa+gaozPF P7GOO8VLp/3qvSgFW1DqyZfYcgDYt9nsPna5DGukArPikdN4Zg6pL1Fm4a5Ni62IfebD 6rJsnJpVSBIj73HfEBAD9wJKAW24HTDtKBclXDIMY6riI3t5J9FyIz469kLSt/6u7+17 zakw== 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=rhEu+VI7GFjUOiEzqT/buh85Hn/4pqea2/NKBDtMCOE=; b=pxxwJlOUJ2sHa31UpFrYRKCcMaEIFcfg+WKsX2I6iF2/inYvFenja9lZQSqJ/WdPa0 RhgdCc19gtZWs77xWdv8RobQ7IL3GcDkb2qwURK/LsGXVhClzkqcIJscrAJmOsAvO4id d6advS7zizpt9NcWiqN9I18fPb8mvv3Kt7WGxWvC5IzgjGplYJW9Q81Oo+XD6bv0A09q dY+nrha+DBhV6zxtqEVdVGUPDt7NfNsOXoU1keCdr/ySEFGWDcVWugVdQhLjghgyrCp+ NaqpN03f4sUqTsNLpYqOnZIw3Rjod9OgN6KsV+XLGtdKfNdxlQxh0kAMYUG47SAfGDuq 8v7g== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=asmirnov@ilbers.de Return-Path: Received: from aqmola.ilbers.de (aqmola.ilbers.de. [85.214.62.211]) by gmr-mx.google.com with ESMTPS id v196si55730wmf.1.2018.02.15.07.05.05 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Feb 2018 07:05:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) client-ip=85.214.62.211; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=asmirnov@ilbers.de Received: from [10.0.2.15] ([188.227.110.165]) (authenticated bits=0) by aqmola.ilbers.de (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id w1FF51sX014823 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Thu, 15 Feb 2018 16:05:04 +0100 Subject: Re: [PATCH v5 0/5] Provide infrastructure and examples for custom kernels and modules To: Jan Kiszka , isar-users References: <72878cee-c341-8ad7-e884-47ccb41bec89@ilbers.de> From: Alexander Smirnov Message-ID: Date: Thu, 15 Feb 2018 18:04:56 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-TUID: ImOvNRJFZgAJ 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? Alex