lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <43e72e890911121631q2e4afd17k59dfb30bc1d309f2@mail.gmail.com>
Date:	Thu, 12 Nov 2009 16:31:26 -0800
From:	"Luis R. Rodriguez" <lrodriguez@...eros.com>
To:	Alan Jenkins <sourcejedi.lkml@...glemail.com>
Cc:	linux-kernel@...r.kernel.org, sam@...nborg.org, greg@...ah.com,
	akpm@...ux-foundation.org
Subject: Re: [RFC] scripts: add gen-linux-conf for remote kernel configuration

On Thu, Nov 12, 2009 at 3:31 PM, Alan Jenkins
<sourcejedi.lkml@...glemail.com> wrote:
> On 11/12/09, Luis R. Rodriguez <lrodriguez@...eros.com> wrote:
>> The new 'make localmodconfig' proves very useful but on low end
>> systems we do not want to 'git clone' an entire kernel tree or
>> download a whole kernel but just cross compile the kernel on a
>> bigger machine. The .config generated with 'make localmodconfig'
>> is still very helpfup though so to aid users and developers
>> with that add a script which builds a tarball with only the
>> necessary kernel glue stuff to be able to generate a local
>> minimum kernel configuration with 'make localmodconfig'.
>>
>> With this you can copy to your target device a relatively
>> small tarball (1.2 MB currenty) and, allows you to modify
>> the kernel config for your tree (mconf, conf, etc) and
>> finally run 'make localmodconfig'.
>>
>> Signed-off-by: Luis R. Rodriguez <lrodriguez@...eros.com>
>> ---
>>
>> I had an itch to scratch and that was to use 'localmodconfig'
>> on a small netbook but I didn't want to clone a whole tree
>> or even compile an entire kernel on it. This did the trick,
>> thought others might find it useful.
>>
>> A little grimy the bash script, but hey it works and its simple
>> enough. I tried to reduce the Makefile count to only arch/ but
>> found that that didn't do the trick. Perhaps this can be optimized
>> more, suggestions welcomed. Maybe it should be written in Go :)
>>
>> What would be *real* nice is to give an IP address of a box and
>> have it build and fetch a localmodconfig .config for you.
>>
>>   Luis
>
> Thanks for posting this.
>
> When I tried this for my netbook, my approach was to copy
> /proc/modules and /boot/config from the netbook.  As a shameless hack,
> I temporarily bind mounted /proc/modules on the build system.  I guess
> the cleaner way would be to copy the result of "lsmod", and have
> localmodconfig accept "LSMOD_FILE=file".
>
> Naturally I think my approach is simpler, despite not having actually
> implemented it properly :).  What do you think about it?

It does sound simpler, but you'd still need the netbook's config and
upgrade it to the the desired kernel's config, so you'd need to
address that too. Just lsmod won't cut it I think.

  Luis
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ