Kernel
Doc
$ sudo apt-get install xmlto $ make htmldocs >> Documentation/DocBook/index.html |
Lindent
Indentation for coding style in Linux kernel. Go to script directory in your linux source and execute "Lindent". For example :
$ cat main2.c void fonction(int a[]){ a[1] = 10;} void main(){ int i = 30; while(i>0) { i = i - 12; printf("%d, ", i); } int S = 0; for(i = 3; i < 19; i = S + 3.7){ S = S + i;} printf("%d\n", S); int W; int T[] = { 3, 7, 3, 9, 10, 3 }; W = *(T + T[0]); printf("%d\n", W); int ET[] ={ 1,2, 3 }; fonction ( ET ); printf("%dtoto\n", ET[1]) ; } |
$ sh Lindent /home/quentin/test/main2.c $ cat /home/quentin/test/main2.c void fonction(int a[]) { a[1] = 10; } void main() { int i = 30; while (i > 0) { i = i - 12; printf("%d, ", i); } int S = 0; for (i = 3; i < 19; i = S + 3.7) { S = S + i; } printf("%d\n", S); int W; int T[] = { 3, 7, 3, 9, 10, 3 }; W = *(T + T[0]); printf("%d\n", W); int ET[] = { 1, 2, 3 }; fonction(ET); printf("%dtoto\n", ET[1]); } |
Dependancy
./scripts/headerdep.pl --graph include/linux/kernel.h | dot -Tpng -o graph.png; xdg-open graph.png |
Time boot
cat /home/USER/Bureau/dmesg | perl scripts/bootgraph.pl > /home/USER/Bureau/output.svg |
Kernel cross Compile
Source (kernel 3.8) for beaglebone : https://beagleboard.org/linux
~$ git clone git://github.com/beagleboard/kernel.git ~$ cd kernel ~/kernel$ git checkout 3.8 ~/kernel$ ./patch.sh ~/kernel$ cp configs/beaglebone kernel/arch/arm/configs/beaglebone_defconfig ~/kernel$ wget https://arago-project.org/git/projects/?p=am33x-cm3.git\; a=blob_plain\;f=bin/am335x-pm-firmware.bin\;hb=HEAD -O kernel/firmware/am335x-pm-firmware.bin ~/kernel$ cd kernel ~/kernel/kernel$ make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- beaglebone_defconfig ~/kernel/kernel$ make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- uImage |
Sujet: Kernel
Aucun message nʼ a été trouvé.