Bo's Oracle Station

查看: 984|回复: 0

课程第12次:2020-03-04星期三

[复制链接]

1005

主题

1469

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
12012
发表于 2020-3-4 19:29:46 | 显示全部楼层 |阅读模式
1. 继续编译内核

1.1
  1. </blockquote></div><font size="4"><div class="blockcode"><blockquote> CC      arch/x86/boot/video-vga.o
  2.   CC      arch/x86/boot/video-vesa.o
  3.   CC      arch/x86/boot/video-bios.o
  4.   LD      arch/x86/boot/setup.elf
  5.   OBJCOPY arch/x86/boot/setup.bin
  6.   OBJCOPY arch/x86/boot/vmlinux.bin
  7.   HOSTCC  arch/x86/boot/tools/build
  8.   BUILD   arch/x86/boot/bzImage
  9. Setup is 17564 bytes (padded to 17920 bytes).
  10. System is 8165 kB
  11. CRC 7f0d790c
  12. Kernel: arch/x86/boot/bzImage is ready  (#1)
复制代码
  1. make modules_install
复制代码
  1. make install
复制代码
2. 传统日志系统


2.1 demesg:
  1. [root@desktop4 linux-5.3.11]# make bzImage
复制代码












[    0.000000] Linux version 5.3.11 (root@station90.example.com) (gcc version 8.2.1 20180905 (Red Hat 8.2.1-3) (GCC)) #1 SMP Sat Feb 29 00:26:45 CST 2020
[    0.000000] Command line: BOOT_IMAGE=(hd0,msdos1)/vmlinuz-5.3.11 root=/dev/mapper/RAC12crhel7-root ro systemd.unit=rescue.target
[    0.000000] Disabled fast string operations
[    0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[    0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[    0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[    0.000000] x86/fpu: xstate_offset[2]:  576, xstate_sizes[2]:  256
[    0.000000] x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'standard' format.
[    0.000000] BIOS-provided physical RAM map:
[    0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009e7ff] usable
[    0.000000] BIOS-e820: [mem 0x000000000009e800-0x000000000009ffff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000000dc000-0x00000000000fffff] reserved
[    0.000000] BIOS-e820: [mem 0x0000000000100000-0x000000007fedffff] usable
[    0.000000] BIOS-e820: [mem 0x000000007fee0000-0x000000007fefefff] ACPI data
[    0.000000] BIOS-e820: [mem 0x000000007feff000-0x000000007fefffff] ACPI NVS
[    0.000000] BIOS-e820: [mem 0x000000007ff00000-0x000000007fffffff] usable
[    0.000000] BIOS-e820: [mem 0x00000000f0000000-0x00000000f7ffffff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000fec00000-0x00000000fec0ffff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000fee00000-0x00000000fee00fff] reserved
:



2.2 local7事件类的日志boot.log



[^[[0;32m  OK  ^[[0m] Reached target Host and Network Name Lookups.^M
[^[[0;32m  OK  ^[[0m] Reached target Slices.^M
         Mounting Huge Pages File System...^M
         Starting Apply Kernel Variables...^M
[^[[0;32m  OK  ^[[0m] Listening on initctl Compatibility Named Pipe.^M
[^[[0;32m  OK  ^[[0m] Stopped File System Check on Root Device.^M
         Starting Remount Root and Kernel File Systems...^M
         Starting udev Coldplug all Devices...^M
         Starting Setup Virtual Console...^M
[^[[0;32m  OK  ^[[0m] Listening on Process Core Dump Socket.^M
[^[[0;32m  OK  ^[[0m] Set up automount Arbitrary Executable File Formats File System Automount Point.^M
[^[[0;32m  OK  ^[[0m] Listening on LVM2 poll daemon socket.^M
[^[[0;32m  OK  ^[[0m] Listening on multipathd control socket.^M
[^[[0;32m  OK  ^[[0m] Listening on RPCbind Server Activation Socket.^M
[^[[0;32m  OK  ^[[0m] Reached target RPC Port Mapper.^M
[^[[0;32m  OK  ^[[0m] Reached target Local Encrypted Volumes.^M
[^[[0;32m  OK  ^[[0m] Created slice system-getty.slice.^M
[^[[0;32m  OK  ^[[0m] Started Create list of required static device nodes for the current kernel.^M
[^[[0;32m  OK  ^[[0m] Mounted Kernel Debug File System.^M
[^[[0;32m  OK  ^[[0m] Mounted POSIX Message Queue File System.^M
[^[[0;32m  OK  ^[[0m] Mounted Huge Pages File System.^M
"boot.log" 369L, 21179C                                       

2.3 大杂烩messages
Feb 29 19:31:38 desktop4 journal[9355]: enabled plugins: desktop-categories, fwupd, os-release, packagekit, packagekit-local, packagekit-offline, packagekit-proxy, packagekit-refresh, packagekit-upgrade, packagekit-url-to-app, shell-extensions, appstream, desktop-menu-path, flatpak, hardcoded-blacklist, hardcoded-featured, hardcoded-popular, modalias, packagekit-refine, rewrite-resource, steam, odrs, packagekit-history, provenance, repos, systemd-updates, generic-updates, packagekit-refine-repos, provenance-license, icons, key-colors, key-colors-metadata
Feb 29 19:31:38 desktop4 journal[9355]: disabled plugins: dpkg, dummy, fedora-pkgdb-collections, epiphany
Feb 29 19:31:38 desktop4 dbus-daemon[876]: [system] Activating via systemd: service name='org.freedesktop.fwupd' unit='fwupd.service' requested by ':1.361' (uid=0 pid=9355 comm="/usr/bin/gnome-software --gapplication-service " label="unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023")
Feb 29 19:31:38 desktop4 systemd[1]: Starting Firmware update daemon...
Feb 29 19:31:38 desktop4 dbus-daemon[876]: [system] Successfully activated service 'org.freedesktop.fwupd'
Feb 29 19:31:38 desktop4 systemd[1]: Started Firmware update daemon.
Feb 29 19:31:39 desktop4 PackageKit[9177]: uid 0 is trying to obtain org.freedesktop.packagekit.system-sources-refresh auth (only_trusted:0)
Feb 29 19:31:39 desktop4 PackageKit[9177]: uid 0 obtained auth for org.freedesktop.packagekit.system-sources-refresh
Feb 29 19:31:40 desktop4 dbus-daemon[876]: [system] Activating service name='com.redhat.SubscriptionManager' requested by ':1.365' (uid=0 pid=9418 comm="/usr/libexec/platform-python /usr/sbin/subscriptio" label="system_u:system_r:rpm_t:s0") (using servicehelper)

3. journalctl的日志与传统日志系统有大量冗余
HOMEWORK RH124 P239-P239
  1. [root@classroom ~]# logger   -p local7.info   -i "This is a test log again."  
  2. [root@classroom ~]# logger   -p local7.info   -i "This is a test log again again
复制代码








回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|Bo's Oracle Station   

GMT+8, 2024-5-20 18:20 , Processed in 0.034050 second(s), 24 queries .

快速回复 返回顶部 返回列表