forked from gregkh/gregkh-linux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnotes
40 lines (27 loc) · 1.11 KB
/
notes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
lore_reply () {
if [[ "${1}" == "" ]] || [[ ! "${1}" =~ "lore.kernel.org" ]]; then
echo "First (only) argument should be a LORE link"
return
fi
mbox=$(mktemp --suffix=.mbox)
b4 mbox -n $mbox $1
mutt -f $mbox
}
building a initrd:
in busybox _install dir:
find . -print0 | cpio --null -ov --format=newc | gzip -9v > ../initramfs-busybox-x86.cpio.gz
qemu kernel image:
qemu-system-x86_64 -kernel arch/x86_64/boot/bzImage -initrd ../tools/initramfs-busybox-x86.cpio.gz -nographic -append "console=ttyS0" -enable-kvm
old-style qemu-kvm:
qemu-kvm -m 512 -kernel ./arch/x86/boot/bzImage -serial stdio -append "root=/dev/sda2 console=tty0 console=ttyS0" -snapshot /dev/sda
cross-compile:
$ CROSS_COMPILE=mipsel-linux-gnu- ARCH=mips make
make ARCH=arm64 CROSS_COMPILE=~/linux/compilers/gcc-11.1.0-nolibc/aarch64-linux/bin/aarch64-linux- -j100
kernel doc testing:
scripts/kernel-doc -Wall -none -v ...your file...
Intel patch review complaints:
Dynamic debug function information
$ alias ddcmd='echo $* > /proc/dynamic_debug/control'
# add function to all enabled messages
$ ddcmd '+f'