Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sudo apt install libssl-dev
- sudo apt-get install build-essential
- git clone --depth 1 -b v4.12.7 git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git linux
- git clone git://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/linux-firmware.git
- cp config-4.12.7 linux/.config ** OR **
- cd linux
- wget https://raw.githubusercontent.com/u-root/webboot/master/config-4.12.7
- cp config-4.12.7 .config
- make bzImage
- --Make Ubuntu's kernel :
- sudo apt-get install git build-essential kernel-package fakeroot libncurses5-dev libssl-dev ccache bison flex
- git clone --reference linux git://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/bionic
- git clone --reference linux git://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/cosmic
- sudo apt-get build-dep --no-install-recommends --only-source linux
- apt-get source --only-source linux
- (if error, type sudo nano /etc/apt/sources.list, and delete any # you see)
- sudo apt-get install linux-source
- mkdir ~/src; cd ~/src
- go to https://mirrors.edge.kernel.org/pub/linux/kernel/v4.x/linux-4.15.tar.xz (it will start a download)
- sudo cp -R /Downloads/linux-4.15.tar.xz ~/src
- cd ~/src
- sudo tar -xzvf linux-4.15.tar.xz (or right click and extract)
- cp -vi /boot/config-`uname -r` .config
- sudo apt-get install libncurses5 libncurses5-dev
- sudo make menuconfig
- (I didn't change anything, just hit the down-arrow to exit and save)
- grep PMEM .config
- if it has any =m,
- nano .config, CTRL+W (or whatever option says search for), find what said =m and change it to =y, and save.
- grep PMEM .config, and make sure it looks like this:
- CONFIG_X86_PMEM_LEGACY_DEVICE=y
- CONFIG_X86_PMEM_LEGACY=y
- CONFIG_BLK_DEV_PMEM=y
- CONFIG_ARCH_HAS_PMEM_API=y
- make -j8
- go get github.com/u-root/webboot
- cd $GOPATH/src/github.com/u-root/webboot
- go run buildimage.go -u '-build=bb -files $HOME/src/linux-4.15/arch/x86/boot/bzImage:bzImage'
- qemu-system-x86_64 -m 2048 -kernel linux/arch/x86/boot/bzImage -append 'console=ttyS0 console=tty1 memmap=4G!4G' -initrd /tmp/initramfs.linux_amd64.cpio -device virtio-rng-pci -netdev user,id=network0 -device rtl8139,netdev=network0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement