Re: Linux Kernel contains only C code?

2018-01-25 Thread Alice Ferrazzi
Hello Sekar,

On Fri, Jan 26, 2018 at 3:58 PM, inventsekar <inventse...@gmail.com> wrote:
> Hi all, ...
>
> 1. May i know, other than C language, is there any other programming
> language is/are used inside Linux Kernel?!?!
> is there any c++, Perl, python programs are used for peculiar tasks inside
> Linux Kernel?!?!
>

Yes, there are some scripts made in Perl, Python and other languages.
Most of them are under tools/ or scripts/ or documentation/

> 2. I believe some assembly language and shell scripting also used.. how can
> I check them? Can you point me which part of the source code contains the
> assembly and shell scripting

https://github.com/torvalds/linux/search?l=assembly
https://github.com/torvalds/linux/search?l=Shell

I think you can see in the left down menu bar also other languages.
Still, some language doesn't come out, but you can change assembly with Perl.
You can also just find the file extensions with the find command or
using git ls-files.

find . -type f -name "*.pl"
find . -type f -name "*.py"

or

git ls-files "*.pl"
git ls-files "*.py"

thanks,
Alice


-- 
Thanks,
Alice Ferrazzi

Gentoo Kernel Project Leader
Gentoo Foundation Board Member
Mail: Alice Ferrazzi <alice.ferra...@gmail.com>
PGP: 2E4E 0856 461C 0585 1336 F496 5621 A6B2 8638 781A

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Qemu+busybox for kernel development

2017-07-02 Thread Alice Ferrazzi
On Wed, Jun 28, 2017 at 5:46 PM, Alexander Kapshuk
<alexander.kaps...@gmail.com> wrote:
> I am trying to setup a build environment where I can run the kernel and see
> how the changes I have made to the kernel source work.
> My understanding, based on googling, is that it is common practice in the
> kernel community to use a virtualised environment for that purpose.
> What I have done so far is create a ramfs that is built into the kernel, as
> described here [1] and here [2].
>
> [1] https://landley.net/writing/rootfs-howto.html
> [2]
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/plain/Documentation/early-userspace/README?h=v4.12-rc7
>
> a). I have generated a minimal initramfs_list file:
> scripts/gen_initramfs_list.sh -d >usr/initramfs_list
> Which looks like this:
> # This is a very simple, default initramfs
>
> dir /dev 0755 0 0
> nod /dev/console 0600 0 0 c 5 1
> dir /root 0700 0 0
> # file /kinit usr/kinit/kinit 0755 0 0
> # slink /init kinit 0755 0 0
> slink /bin/sh busybox 777 0 0
> file /init /bin/busybox 755 0 0
>
> b). Set CONFIG_INITRAMFS_SOURCE:
> CONFIG_INITRAMFS_SOURCE="/home/sasha/linux/usr/initramfs_list"
>
> c). And had the kernel generate the initramfs image:
> make
> ...
> GEN usr/initramfs_data.cpio.gz
>   CHK include/generated/compile.h
>   AS  usr/initramfs_data.o
>   LD  usr/built-in.o
> ...
>
> When I run the kernel in qemu I get an error message which complains about
> /etc/init.d/rcS missing.
> The posts online seem to suggest that this has got to do with the busybox
> configuration.
> So far, I have not been able to get my head around this problem.
> Any points or suggestions would be much appreciated.
>

We are using this in Gentoo for testing the kernel:
https://github.com/gentoo/Gentoo_kernelCI

This is how we are calling Qemu:
https://github.com/gentoo/Gentoo_kernelCI/blob/master/files/qemu_check.py#L50


-- 
Thanks,
Alice Ferrazzi

Gentoo Kernel Project Leader
Mail: Alice Ferrazzi <alice.ferra...@gmail.com>
PGP: 2E4E 0856 461C 0585 1336 F496 5621 A6B2 8638 781A

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies