linux kernel compile details

    Line 38: root@pekphicprcxxxxx:~# cat /etc/issue
    Line 41: root@pekphicprcxxxxx:~# uname -a
    Line 42: Linux pekphicprcxxxxx 4.15.0-47-generic #50-Ubuntu SMP Wed Mar 13 10:44:52 UTC 2019 x86_64 GNU/Linux
    Line 43: root@pekphicprcxxxxx:/usr1# uname -a
    Line 44: root@pekphicprcxxxxx:/usr1# passwd root
    Line 48: root@pekphicprcxxxxx:/usr1# cd r00230944/html/
    Line 49: root@pekphicprcxxxxx:/usr1/r00230944/html# ll
    Line 54: root@pekphicprcxxxxx:/usr1/r00230944/html# xz
    Line 57: root@pekphicprcxxxxx:/usr1/r00230944/html# which mkinitramfs
    Line 59: root@pekphicprcxxxxx:/usr1/r00230944/html# which update-initramfs
    Line 61: root@pekphicprcxxxxx:/usr1/r00230944/html# which update-grub2
    Line 63: root@pekphicprcxxxxx:/usr1/r00230944/html# lsb_release -a
    Line 69: root@pekphicprcxxxxx:/usr1/r00230944/html# sudo su
    Line 70: root@pekphicprcxxxxx:/usr1/r00230944/html# cp linux-4.16.2.tar.xz /usr/src/
    Line 71: root@pekphicprcxxxxx:/usr1/r00230944/html# cd /usr/src/
    Line 72: root@pekphicprcxxxxx:/usr/src# ll
    Line 83: root@pekphicprcxxxxx:/usr/src# xz -d linux-4.16.2.tar.xz
    Line 84: root@pekphicprcxxxxx:/usr/src# ll
    Line 95: root@pekphicprcxxxxx:/usr/src# tar -xf linux-4.16.2.tar
    Line 96: root@pekphicprcxxxxx:/usr/src# ll
    Line 108: root@pekphicprcxxxxx:/usr/src# cd linux-4.16.2
    Line 109: root@pekphicprcxxxxx:/usr/src/linux-4.16.2# ls
    Line 112: root@pekphicprcxxxxx:/usr/src/linux-4.16.2# ll
    Line 151: root@pekphicprcxxxxx:/usr/src/linux-4.16.2# cp /boot/config-4.15.0-47-generic .
    Line 152: root@pekphicprcxxxxx:/usr/src/linux-4.16.2# ll
    Line 192: root@pekphicprcxxxxx:/usr/src/linux-4.16.2# mv config-4.15.0-47-generic config
    Line 193: root@pekphicprcxxxxx:/usr/src/linux-4.16.2# ll
    Line 233: root@pekphicprcxxxxx:/usr/src/linux-4.16.2# vim config
    Line 234: root@pekphicprcxxxxx:/usr/src/linux-4.16.2# make menuconfig
    Line 241: root@pekphicprcxxxxx:/usr/src/linux-4.16.2# apt install make
    Line 264: root@pekphicprcxxxxx:/usr/src/linux-4.16.2# make menuconfig
    Line 271: root@pekphicprcxxxxx:/usr/src/linux-4.16.2# apt install gcc
    Line 432: root@pekphicprcxxxxx:/usr/src/linux-4.16.2# make menuconfig
    Line 445: root@pekphicprcxxxxx:/usr/src/linux-4.16.2# apt-get install ncurses-dev
    Line 477: root@pekphicprcxxxxx:/usr/src/linux-4.16.2# make menuconfig
    Line 485: root@pekphicprcxxxxx:/usr/src/linux-4.16.2# apt-get install bison
    Line 523: root@pekphicprcxxxxx:/usr/src/linux-4.16.2# make menuconfig
    Line 531: root@pekphicprcxxxxx:/usr/src/linux-4.16.2# apt-get install flex
    Line 570: root@pekphicprcxxxxx:/usr/src/linux-4.16.2# make menuconfig
    Line 593: root@pekphicprcxxxxx:/usr/src/linux-4.16.2# uname a
    Line 596: root@pekphicprcxxxxx:/usr/src/linux-4.16.2# uname -a
    Line 597: Linux pekphicprcxxxxx 4.15.0-47-generic #50-Ubuntu SMP Wed Mar 13 10:44:52 UTC 2019 x86_
    Line 598: root@pekphicprcxxxxx:/usr/src/linux-4.16.2# make -j16
    Line 664: root@pekphicprcxxxxx:/usr/src/linux-4.16.2#
    Line 665: root@pekphicprcxxxxx:/usr/src/linux-4.16.2# sudo apt-get install libssl-dev
    Line 687: root@pekphicprcxxxxx:/usr/src/linux-4.16.2# make V=1 -j16
    Line 27340: root@pekphicprcxxxxx:/usr/src/linux-4.16.2# make -j16 V=1  modules_install
    Line 32466: root@pekphicprcxxxxx:/usr/src/linux-4.16.2# make -j16  V=1 install
    Line 32506: root@pekphicprcxxxxx:/usr/src/linux-4.16.2# ll /boot/initrd.img-4.1
    Line 32509: root@pekphicprcxxxxx:/usr/src/linux-4.16.2# mkinitramfs -o /boot/initrd.img-4.16.2
    Line 32513: root@pekphicprcxxxxx:/usr/src/linux-4.16.2# update-initramfs -c -k 4.16.2
    Line 32518: root@pekphicprcxxxxx:/usr/src/linux-4.16.2# update-grub2
    Line 32531: root@pekphicprcxxxxx:/usr/src/linux-4.16.2# cat /boot/grub/grub.cfg | grep 16.2
    Line 32542: root@pekphicprcxxxxx:/usr/src/linux-4.16.2# reboot
    Line 32583: root@pekphicprcxxxxx:~# uname -a
    Line 32584: Linux pekphicprcxxxxx 4.16.2 #1 SMP Wed Aug 21 14:22:57 CST 2019 x86_64 x86_64 x86_64 GN    

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
# # Install the bochs emulate system first! # Included is bochs version 2.1.1 packet.(Bochs-2.1.1.exe) #---------------------------------------------------------- # This is a root file system for linux 0.11 kernel. # Rebuild from materials gathered from Internet. # # Zhao Jiong ( [email protected] ) # http://oldlinux.org/ 2004.1.4 # Third release 2004.3.29 Now, this is a very basic root file system for linux 0.1x. I will add more things to this release soon. see the changelog bellow. This release is a basic system. you can test vi, ls, mkdir etc. Just for testing with kernel source code. Now I have added gcc 1.40 tools into the harddisk rootimage file. you can compile some c source file now. enjoy it :-) NOTE: By using the resources in this directory, you must first install the Bochs emulation software in your system. The included Bochs-2.1.1.exe is for win32. You can always download the newest version of it from http://sourceforge.net When testing floppy root (as running bochsrc-fd), when showing the message of " Insert root floppy and press ENTER", JUST press the Enter key. I have already attached the root floppy to the 'B:' diskette driver. The system will panic unpredicatablly. Use at your own risk! Changelog: ===================== 2004.3.29 Add gcc 1.40 & libs into the harddisk image. Now you can compile the orignal kernel sources without need any modification to it! But when running the system, please read another README file in /usr/root directory first. ------------------------------------------------ cd /usr/root gcc -s -o hello hello.c ./hello ------------------------------------------------ files included: README -- This file. Bochs-2.1.1.exe -- Bochs system for use in win32 environment. Must be installed on your windows system first. bootimage-0.11 -- kernel 0.11 bootimage request rootimage from floppy. bootimage-0.11-fd -- request rootimage in disk b: bootimage-0.11-hd -- boot harddisk root file system. bootimage-0.12-fd -- kernel 0.12 bootimage use with floppy root iamge. bootimage-0.12-hd -- kernel 0.12 bootimage use with harddisk root image. rootimage-0.11 -- kernel 0.11 rootimage. hdc-0.11 -- harddisk root filesystem image. diskb.img -- a dos format disk image. can be w/r with mtools. example: mdir b:, mcopy b:, mdel b:filename bochsrc-fd.bxrc -- bochs rc file configured for using disk root iamge. bochsrc-hd.bxrc -- bochs rc file configured for using hd root image. gcclib-1.40.taz -- tar files of the gcc bins & libs. You can change the line 'floppya' in bochsrc-xx.bxrc file to use the diferent bootimage file provided. In order to insert any programs into the hd image file, you can use winimage program or something like that to add/delete files in diskb.img and then read these files by using mtoos in the system. Play & enjoy the pleasure of it! 2004.3.4 This is truelly kernel 0.11 driving system!! In order to run bash 1.12.1, I inserted several system call stubs. To show the file date correctly, I added one line to the kernel/mktime.c at the top of file. For details, see the linux-0.11.dif file. Add Input/Output tools, such as mtools dealing with DOS diskettes, mount/umount command, compress, df, awk... ~ ~ ~ :wq #

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值