From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6520199916203016192 X-Received: by 10.80.215.210 with SMTP id m18mr916627edj.0.1518708455947; Thu, 15 Feb 2018 07:27:35 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.80.185.67 with SMTP id m61ls213808ede.4.gmail; Thu, 15 Feb 2018 07:27:35 -0800 (PST) X-Google-Smtp-Source: AH8x226kUFf7mkxdEbvo6fWpy5jMzhfXlnq2o/znfuFVOKleytnalv9Cb9V2UgKv1MqFnAD5DWvs X-Received: by 10.80.202.11 with SMTP id d11mr909673edi.9.1518708455256; Thu, 15 Feb 2018 07:27:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518708455; cv=none; d=google.com; s=arc-20160816; b=U5KupyaOH7RI5pcraCUpiRhjH1qTQOlBstRbMkE2CW42s09hc8AAQ3fdpwnnGIldbp VQsUf1YaTb350edrtib44lLvR2iU7NkP25UF/2SSnzju+nmnFh74FiKJWkBRZqkP9fYI H6gqlkqZVH1GILc5EF3Pw568KcW4Ry6wcD3F3NhgGRz6+bgI+x148p4gIiNvfWMGbSJg DyoSEhrIM+6Dq1Ps9OD4rr9Dcp9D9KJarckbZRMQdIjuMGXfD3N0yFRH5iQsMTkmUjI+ wJ/wnbwUjNQGIqSR5JWEuwWBGNuyxEDfJHAx5LeHfZLZngbBD8OhH5sg8ssCYavc+7Vd io0A== 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=SCQcPdwynpwiDtFbp4VoIMH6XvZMlTcIOkR+GL+xymQ=; b=kPS8NMZFkCaUeleH7t0tE0vt9qqQOBczik8vQvylSkLVGTewAtxxygQEVynamZmJZw KpPeVzgZAlZjBrwGHe1isV+v/R4v6c+uCZ/dNtg0Xf7sQgXQxtZvcv14iaYs7N+Xz9Ch OVVcz64ErixfO8nMPbF3ZpCnnoPQFMA2/86asi+7vSkQFIU3R3oxlxzV4gDvrZ8IXD4T 0gejVQfVNoCjNrH11rFao+Q0IF8ZJj0sM5kQO/sM7VXEWM/oCod2n/Xm97DTUpM6ySwv OOayT9eANvx4vFrdk07idRuU15LL/EAVSeFBFuGFE0+CqMVts26rRRCT/rpnS+u/pjMk 8Tyw== 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 g10si489409edm.0.2018.02.15.07.27.34 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Feb 2018 07:27:35 -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 w1FFRR5h015542 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Thu, 15 Feb 2018 16:27:33 +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> <8d04dd7a-fd5f-a765-bfbd-319613c77781@siemens.com> From: Alexander Smirnov Message-ID: <0fe9cdd7-1943-049d-fbbf-832ac51d4acf@ilbers.de> Date: Thu, 15 Feb 2018 18:27:22 +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: <8d04dd7a-fd5f-a765-bfbd-319613c77781@siemens.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-TUID: YDOWKnguPSri On 02/15/2018 06:13 PM, Jan Kiszka wrote: > 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". :) Ok, thanks! Now there is simple automated which checks that each virtual machine has reached login prompt. You could see this in the bottom of console output: http://isar-build.org:8080/job/isar_next/105/console To be honest, I don't want to check this manually after each merge, so I'm thinking about test automation for everything new appears in Isar :-) Alex