{"id":5231,"date":"2017-06-22T17:33:42","date_gmt":"2017-06-22T14:33:42","guid":{"rendered":"http:\/\/skeletor.org.ua\/?p=5231"},"modified":"2017-06-22T17:33:42","modified_gmt":"2017-06-22T14:33:42","slug":"freebsd-%d1%83%d1%81%d1%82%d0%b0%d0%bd%d0%be%d0%b2%d0%ba%d0%b0-%d0%bd%d0%be%d0%b2%d0%be%d0%b3%d0%be-%d1%8f%d0%b4%d1%80%d0%b0-%d0%b5%d1%81%d0%bb%d0%b8-%d0%bd%d0%b5-%d1%85%d0%b2%d0%b0%d1%82%d0%b0","status":"publish","type":"post","link":"https:\/\/skeletor.org.ua\/?p=5231","title":{"rendered":"[FreeBSD] \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043d\u043e\u0432\u043e\u0433\u043e \u044f\u0434\u0440\u0430, \u0435\u0441\u043b\u0438 \u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u0435\u0442 \u043c\u0435\u0441\u0442\u0430"},"content":{"rendered":"<p>\u041f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u043c, \u0432\u0430\u043c \u0434\u043e\u0441\u0442\u0430\u043b\u0441\u044f \u0441\u0442\u0430\u0440\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440, \u0443 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043d\u0430 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0433\u043e \u043c\u0435\u0441\u0442\u0430 \u0432\u0441\u0435\u0433\u043e 500 \u043c\u0431 \u0438 300 \u0438\u0437 \u043d\u0438\u0445 \u0437\u0430\u043d\u044f\u0442\u044b. \u041d\u0443\u0436\u043d\u043e \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u041e\u0421 \u0438\u043b\u0438 \u043f\u0435\u0440\u0435\u0441\u043e\u0431\u0440\u0430\u0442\u044c \u044f\u0434\u0440\u043e? \u041d\u0438\u0436\u0435 \u043f\u043e\u043a\u0430\u0436\u0443 \u043a\u0430\u043a \u0438 \u0433\u0434\u0435 \u043c\u043e\u0436\u043d\u043e \u0441\u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442\u044c \u043c\u0435\u0441\u0442\u043e.<\/p>\n<p><!--more--><\/p>\n<p><span style=\"color: #ff0000;\"><strong>1. \u0443\u0434\u0430\u043b\u044f\u0435\u043c symbols<\/strong><\/span><\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u0435\u043d <strong>debug<\/strong>, \u043c\u043e\u0436\u043d\u043e \u0441\u043c\u0435\u043b\u043e \u0443\u0434\u0430\u043b\u044f\u0442\u044c <strong>*.symbols<\/strong> \u0438\u0437 \u043f\u0430\u043f\u043a\u0438 <strong>\/boot\/kernel\/<\/strong>.<\/p>\n<p><strong><span style=\"color: #ff0000;\">2. \u0443\u0434\u0430\u043b\u044f\u0435\u043c \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435 \u043c\u043e\u0434\u0443\u043b\u0438<\/span><\/strong><\/p>\n<p>\u0415\u0441\u043b\u0438 \u0438 \u044d\u0442\u043e\u0433\u043e \u043d\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435 \u043c\u043e\u0434\u0443\u043b\u0438 \u0432 \u0434\u0440\u0443\u0433\u043e\u0435 \u043c\u0435\u0441\u0442\u043e. \u0410 \u0443\u0437\u043d\u0430\u0442\u044c \u043a\u0430\u043a\u0438\u0435 \u043c\u043e\u0434\u0443\u043b\u0438 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f, \u043c\u043e\u0436\u043d\u043e \u0447\u0435\u0440\u0435\u0437 <strong>kldstat<\/strong>:<\/p>\n<pre># kldstat \r\nId Refs Address            Size     Name\r\n 1   28 0xffffffff80200000 17bcab8  kernel\r\n 2    1 0xffffffff81a11000 1ee143   zfs.ko\r\n 3    1 0xffffffff81c00000 3330     opensolaris.ko\r\n 4    1 0xffffffff81c04000 33520    pf.ko\r\n 5    1 0xffffffff81c38000 382f     ng_socket.ko\r\n 6    2 0xffffffff81c3c000 ba02     netgraph.ko\r\n 7    1 0xffffffff81c48000 2b99     ng_mppc.ko\r\n 8    1 0xffffffff81c4b000 80c      rc4.ko\r\n 9    1 0xffffffff81c4c000 81bd     ipmi.ko\r\n10    1 0xffffffff81c55000 ba8      smbus.ko\r\n<\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0441\u043c\u0435\u043b\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u0435\u043c \u0432\u0441\u0435 \u043c\u043e\u0434\u0443\u043b\u0438, \u043a\u0440\u043e\u043c\u0435 \u0442\u0435\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u044b \u0432 \u0441\u0442\u043e\u043b\u0431\u0446\u0435 <strong>Name<\/strong>.<\/p>\n<p><span style=\"color: #ff0000;\"><strong>3. \u0421\u0436\u0430\u0442\u0438\u0435<\/strong><\/span><\/p>\n<p>\u041c\u043e\u0436\u043d\u043e \u0441\u0436\u0430\u0442\u044c \u044f\u0434\u0440\u043e:<\/p>\n<p><code># gzip -9 kernel<\/code><\/p>\n<p><span style=\"color: #ff0000;\"><strong>4. \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u043e\u0442\u043b\u0430\u0434\u043e\u0447\u043d\u044b\u0445 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0438\u0437 \u043c\u043e\u0434\u0443\u043b\u0435\u0439 \u0438 \u044f\u0434\u0440\u0430:<\/strong><\/span><\/p>\n<p><code># for i in `ls \/boot\/kernel\/*.ko` ; do strip $i;done<br \/>\n#\u00a0strip --remove-section=.note --remove-section=.comment \/boot\/kernel\/kernel<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u043c, \u0432\u0430\u043c \u0434\u043e\u0441\u0442\u0430\u043b\u0441\u044f \u0441\u0442\u0430\u0440\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440, \u0443 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043d\u0430 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0433\u043e \u043c\u0435\u0441\u0442\u0430 \u0432\u0441\u0435\u0433\u043e 500 \u043c\u0431 \u0438 300 \u0438\u0437 \u043d\u0438\u0445 \u0437\u0430\u043d\u044f\u0442\u044b. \u041d\u0443\u0436\u043d\u043e \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u041e\u0421 \u0438\u043b\u0438 \u043f\u0435\u0440\u0435\u0441\u043e\u0431\u0440\u0430\u0442\u044c \u044f\u0434\u0440\u043e? \u041d\u0438\u0436\u0435 \u043f\u043e\u043a\u0430\u0436\u0443 \u043a\u0430\u043a \u0438 \u0433\u0434\u0435 \u043c\u043e\u0436\u043d\u043e \u0441\u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442\u044c \u043c\u0435\u0441\u0442\u043e.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-5231","post","type-post","status-publish","format-standard","hentry","category-freebsd"],"_links":{"self":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/5231","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5231"}],"version-history":[{"count":1,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/5231\/revisions"}],"predecessor-version":[{"id":5232,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/5231\/revisions\/5232"}],"wp:attachment":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5231"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5231"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5231"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}