VirtualTam's bookmarks
78 bookmarks found
-
- https://kernelnewbies.org/FAQ/CodeBrowsing
- https://stackoverflow.com/questions/33676829/vim-configuration-for-linux-kernel-development
- https://stackoverflow.com/questions/3828157/how-to-use-cscope
- https://stackoverflow.com/questions/934233/cscope-or-ctags-why-choose-one-over-the-other
- https://github.com/vivien/vim-linux-coding-style
- https://github.com/Valloric/YouCompleteMe
- https://valloric.github.io/YouCompleteMe/
- http://vim.wikia.com/wiki/Cscope
- http://cscope.sourceforge.net/cscope_vim_tutorial.html
- https://www.embeddedarm.com/blog/tag-jumping-in-a-codebase-using-ctags-and-cscope-in-vim/
-
Here are the steps I used to migrate a CentOS 7 VM from (presumably?) an ESXi server, to a local VirtualBox environment.
The LVM volumes were not detected at boot, and after the boot timeout, the OS fell back to the Dracut emergency shell.
- get a CentOS minimal installation CD
- check the VM's resources and peripherals:
- ensure there are no floppy drives (!)
- setup CPU and RAM resources
- check virtual drives
- add an SCSI optical drive if needed
- optional: convert the virtual drive images from VMDK to VDI
- mount the CentOS installation disc
- boot on the installation disc:
- select "Troubleshooting", then "Rescue"
- let the rescue utility detect filesystems and mountpoints
$ chroot
to the detected environment- backup files:
/etc/fstab
/boot/grub/grub.cfg
- under /boot, backup the initrd and initramfs for the current configuration (these will be overwritten)
- compare the current
/etc/fstab
with the output of$ lsblk
and$ blkid
- if needed, manually edit /etc/fstab to use the appropriate block device UUIDs, identifiers and mountpoints
- regenerate GRUB configuration:
$ grub2-mkconfig -o /boot/grub2/grub.cfg
- if needed, reinstall GRUB:
$ grub-install /dev/sda
- rebuild initrd:
$ mkinitrd --force /boot/<initrd_image> <kernel_version>
- rebuild initramfs:
$ dracut --force <kernel_version>
- exit the chroot
- unmount the installation disc
- reboot
- optional but highly recommended: cross your fingers
- ...
- profit!
-
Dracut emergency shell
2018-04-20 - https://superuser.com/questions/1244536/dracut-emerg-shell-mount-lvm2-volume
- https://unix.stackexchange.com/questions/207593/how-to-make-lvms-at-available-boot-kernel-panic-dracut-cannot-find-logical-vo
- https://serverfault.com/questions/893721/centos7-dracut-lvm-command-not-found
- https://www.novell.com/coolsolutions/appnote/19386.html
- https://fedoraproject.org/wiki/How_to_debug_Dracut_problems
- https://kb.vmware.com/s/article/1002402
- https://forums.fedoraforum.org/showthread.php?294909-Need-dracut-emergency-shell-help-regenerate
-
Linux - Network over USB (usbnet)
2018-04-03 -
https://superuser.com/questions/145933/how-to-add-usbnet-driver-to-the-linux-kernel#145944
-
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/net/usb/usbnet.c
-
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/net/usb/cdc_ether.c
-
https://raspberrypi.stackexchange.com/questions/9636/usb-to-usb-mimicking-ethernet
-
https://www.raspberrypi.org/forums/viewtopic.php?f=36&t=131042
-
https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=130810
-
https://www.raspberrypi.org/forums/viewtopic.php?p=865905#p865905
-
https://raspberrypi.stackexchange.com/questions/13917/raspberry-pi-communication-over-usb
-
https://developer.ridgerun.com/wiki/index.php/How_to_use_USB_device_networking
-
http://www.ev3dev.org/docs/tutorials/connecting-to-the-internet-via-usb/
-
- https://cyber.wtf/2017/07/28/negative-result-reading-kernel-memory-from-user-mode/
- https://cyber.wtf/2018/01/05/behind-the-scene-of-a-bug-collision/
- https://lwn.net/Articles/738975/
- https://lwn.net/Articles/741878/
- https://lwn.net/Articles/741882/
- https://twitter.com/misc0110/status/948706387491786752
- https://www.theregister.co.uk/2018/01/02/intel_cpu_design_flaw/
-
Linux eBPF Tracing Tools
2017-11-20 -
Heterogeneous memory management [LWN.net]
2017-09-26 - https://www.phoronix.com/scan.php?page=search&q=Heterogeneous+Memory+Management
- https://www.phoronix.com/scan.php?page=news_item&px=Nouveau-Compote
- https://cgit.freedesktop.org/~glisse/compote/
- https://www.infoworld.com/article/3196884/machine-learning/faster-machine-learning-is-coming-to-the-linux-kernel.html
-
syscalls(2) - Linux manual page
2017-05-30