forked from gregkh/gregkh-linux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
notes
32 lines (21 loc) · 920 Bytes
/
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
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
Intel patch review complaints: