{"id":291888,"date":"2019-07-10T15:00:10","date_gmt":"2019-07-10T15:00:10","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=291888"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=291888","title":{"rendered":"\u0427\u0430\u0441\u0442\u044c 4: \u0412\u0441\u0451-\u0442\u0430\u043a\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c Linux \u043d\u0430 RocketChip RISC-V"},"content":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\">\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/wq\/cw\/ae\/wqcwaewtqxjju-xcycuspdxaipe.jpeg\" width=\"45%\" align=\"left\"> <em>\u041d\u0430 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435 Linux kernel \u0448\u043b\u0451\u0442 \u0432\u0430\u043c \u043f\u0440\u0438\u0432\u0435\u0442 \u0447\u0435\u0440\u0435\u0437 GPIO.<\/em><\/p>\n<p>  <\/p>\n<p>\u0412 \u044d\u0442\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \u0441 \u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c RISC-V RocketChip \u043d\u0430 \u043a\u0438\u0442\u0430\u0439\u0441\u043a\u0443\u044e \u043f\u043b\u0430\u0442\u0443 \u0441 Cyclone IV \u043c\u044b \u0432\u0441\u0451-\u0442\u0430\u043a\u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c Linux, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043d\u0430\u0443\u0447\u0438\u043c\u0441\u044f \u0441\u0430\u043c\u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c IP Core \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 \u043f\u0430\u043c\u044f\u0442\u0438 \u0438 \u0447\u0443\u0442\u044c \u043f\u043e\u0434\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c dts-\u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u0443\u0440\u044b. \u042d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435\u043c <a href=\"https:\/\/habr.com\/ru\/post\/458482\/\">\u0442\u0440\u0435\u0442\u044c\u0435\u0439 \u0447\u0430\u0441\u0442\u0438<\/a>, \u043d\u043e, \u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 \u0438\u0437\u0440\u044f\u0434\u043d\u043e \u0440\u0430\u0437\u0440\u043e\u0441\u0448\u0435\u0439\u0441\u044f \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439, \u043e\u043d\u0430 \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043a\u043e\u0440\u043e\u0442\u043a\u043e\u0439.<\/p>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<p>\u2026 \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 <code>setup_smp<\/code> \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u043b\u0438 \u044f\u0434\u0440\u043e \u0441\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043e \u0441 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 SMP, \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043c\u043d\u043e\u0433\u043e\u044f\u0434\u0435\u0440\u043d\u043e\u0441\u0442\u044c. \u0411\u0443\u0434\u0435\u0442 \u043d\u0435\u043f\u0440\u0438\u044f\u0442\u043d\u043e, \u0435\u0441\u043b\u0438 \u043c\u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0435\u0449\u0451 \u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u044b\u0432\u0430\u0442\u044c \u0432 \u043c\u043e\u0434\u0443\u043b\u0435 \u043f\u0430\u043c\u044f\u0442\u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 \u0430\u0442\u043e\u043c\u0430\u0440\u043d\u043e\u0441\u0442\u0438 (\u043c\u043d\u0435 \u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0441 \u044d\u0442\u0438\u043c \u043a\u0435\u0448 \u0432\u043e\u0437\u0438\u0442\u0441\u044f \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e), \u043d\u043e \u0432 \u043e\u0434\u043d\u043e\u044f\u0434\u0435\u0440\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u043d\u043e \u043d\u0430\u043c \u043f\u043e\u043c\u0435\u0448\u0430\u0442\u044c \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u043e.<\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0412\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u043d\u0435 \u0432\u0437\u043b\u0435\u0442\u0435\u043b\u043e&#8230;<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"plaintext\">[    0.000000] OF: fdt: Ignoring memory range 0x80000000 - 0x80200000 [    0.000000] Linux version 4.19.0-sifive-1+ (trosinenko@trosinenko-pc) (gcc version 8.3.0 (Buildroot 2019.02-07449-g4eddd28f99)) #1 Thu Jul 4 18:38:10 MSK 2019 [    0.000000] bootconsole [early0] enabled [    0.000000] Initial ramdisk at: 0x(____ptrval____) (16777216 bytes) [    0.000000] Zone ranges: [    0.000000]   DMA32    [mem 0x0000000080200000-0x00000000bfffffff] [    0.000000]   Normal   [mem 0x00000000c0000000-0x00000bffffffffff] [    0.000000] Movable zone start for each node [    0.000000] Early memory node ranges [    0.000000]   node   0: [mem 0x0000000080200000-0x00000000bfffffff] [    0.000000] Initmem setup node 0 [mem 0x0000000080200000-0x00000000bfffffff] [    0.000000] software IO TLB: mapped [mem 0xbb1fc000-0xbf1fc000] (64MB) [    0.000000] Unable to find \"cpu\" devicetree entry [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 258055 [    0.000000] Kernel command line: debug console=ttySIF0,125200 root=\/dev\/mmcblk0p2 loglevel=7 rootwait [    0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes) [    0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes) [    0.000000] Sorting __ex_table... [    0.000000] BUG: Bad page state in process swapper  pfn:80bf7 [    0.000000] page:ffffffe03f029e08 count:0 mapcount:-65280 mapping:0000000000000000 index:0x1 [    0.000000] flags: 0x0() [    0.000000] raw: 0000000000000000 0000000000000100 0000000000000200 0000000000000000 [    0.000000] raw: 0000000000000001 0000000000000000 00000000ffff00ff [    0.000000] page dumped because: nonzero mapcount [    0.000000] Modules linked in: [    0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 4.19.0-sifive-1+ #1 [    0.000000] Call Trace: [    0.000000] [&lt;ffffffe00002cfde&gt;] walk_stackframe+0x0\/0xa0 [    0.000000] [&lt;ffffffe00002d1da&gt;] show_stack+0x2a\/0x34 [    0.000000] [&lt;ffffffe00063c898&gt;] chachachllachachachTradeonachachach_inachachipachachachachllachachachTradeonachachachdevachachachypachachachllachachachTradeona+0x20\/0x28 [    0.000000] [&lt;ffffffe00009499c&gt;] bad_page+0xe4\/0x102 [    0.000000] [&lt;ffffffe0000949f2&gt;] free_pages_check_bad+0x38\/0x7a [    0.000000] [&lt;ffffffe000094bb0&gt;] free_pcppages_bulk+0x106\/0x36c [    0.000000] [&lt;ffffffe0000957be&gt;] free_unref_page_commit.isra.23+0x86\/0x8e [    0.000000] [&lt;ffffffe0000960bc&gt;] free_unref_page+0x44\/0x58 [    0.000000] [&lt;ffffffe0000960de&gt;] __free_pages.part.28+0xe\/0x22 [    0.000000] [&lt;ffffffe0000056da&gt;] __free_pages_bootmem+0x86\/0x90 [    0.000000] [&lt;ffffffe000007c46&gt;] free_all_bootmem+0x156\/0x1ba [    0.000000] [&lt;ffffffe0000023f8&gt;] mem_init+0x36\/0x44 [    0.000000] [&lt;ffffffe0000007a0&gt;] start_kernel+0x1aa\/0x328 [    0.000000] [&lt;ffffffe000000058&gt;] _sinittext+0x58\/0x5c [    0.000000] Disabling lock debugging due to kernel taint [    0.000000] BUG: Bad page state in process swapper  pfn:80bf9 [    0.000000] page:ffffffe03f029e78 count:0 mapcount:-65280 mapping:0000000000000000 index:0x0 [    0.000000] flags: 0x0() [    0.000000] raw: 0000000000000000 ffffffe03f020080 ffffffe03f020080 0000000000000000 [    0.000000] raw: 0000000000000000 0000000000000000 00000000ffff00ff [    0.000000] page dumped because: nonzero mapcount [    0.000000] Modules linked in: [    0.000000] CPU: 0 PID: 0 Comm: swapper Tainted: G    B             4.19.0-sifive-1+ #1 [    0.000000] Call Trace: [    0.000000] [&lt;ffffffe00002cfde&gt;] walk_stackframe+0x0\/0xa0 [    0.000000] [&lt;ffffffe00002d1da&gt;] show_stack+0x2a\/0x34 [    0.000000] [&lt;ffffffe00063c898&gt;] chachachllachachachTradeonachachach_inachachipachachachachllachachachTradeonachachachdevachachachypachachachllachachachTradeona+0x20\/0x28 [    0.000000] [&lt;ffffffe00009499c&gt;] bad_page+0xe4\/0x102 [    0.000000] [&lt;ffffffe0000949f2&gt;] free_pages_check_bad+0x38\/0x7a [    0.000000] [&lt;ffffffe0000955c6&gt;] __free_pages_ok+0x3fe\/0x430 [    0.000000] [&lt;ffffffe0000960ea&gt;] __free_pages.part.28+0x1a\/0x22 [    0.000000] [&lt;ffffffe0000056da&gt;] __free_pages_bootmem+0x86\/0x90 [    0.000000] [&lt;ffffffe000007c46&gt;] free_all_bootmem+0x156\/0x1ba [    0.000000] [&lt;ffffffe0000023f8&gt;] mem_init+0x36\/0x44 [    0.000000] [&lt;ffffffe0000007a0&gt;] start_kernel+0x1aa\/0x328 [    0.000000] [&lt;ffffffe000000058&gt;] _sinittext+0x58\/0x5c [    0.000000] BUG: Bad page state in process swapper  pfn:80bfa [    0.000000] page:ffffffe03f029eb0 count:0 mapcount:-65280 mapping:0000000000000000 index:0x0 [    0.000000] flags: 0x0() [    0.000000] raw: 0000000000000000 ffffffe03f0200b8 ffffffe03f0200b8 0000000000000000 [    0.000000] raw: 0000000000000000 0000000000000000 00000000ffff00ff [    0.000000] page dumped because: nonzero mapcount [    0.000000] Modules linked in: [    0.000000] CPU: 0 PID: 0 Comm: swapper Tainted: G    B             4.19.0-sifive-1+ #1 [    0.000000] Call Trace: [    0.000000] [&lt;ffffffe00002cfde&gt;] walk_stackframe+0x0\/0xa0 [    0.000000] [&lt;ffffffe00002d1da&gt;] show_stack+0x2a\/0x34 [    0.000000] [&lt;ffffffe00063c898&gt;] chachachllachachachTradeonachachach_inachachipachachachachllachachachTradeonachachachdevachachachypachachachllachachachTradeona+0x20\/0x28 [    0.000000] [&lt;ffffffe00009499c&gt;] bad_page+0xe4\/0x102 [    0.000000] [&lt;ffffffe0000949f2&gt;] free_pages_check_bad+0x38\/0x7a [    0.000000] [&lt;ffffffe0000955c6&gt;] __free_pages_ok+0x3fe\/0x430 [    0.000000] [&lt;ffffffe0000960ea&gt;] __free_pages.part.28+0x1a\/0x22 [    0.000000] [&lt;ffffffe0000056da&gt;] __free_pages_bootmem+0x86\/0x90 [    0.000000] [&lt;ffffffe000007c46&gt;] free_all_bootmem+0x156\/0x1ba [    0.000000] [&lt;ffffffe0000023f8&gt;] mem_init+0x36\/0x44 [    0.000000] [&lt;ffffffe0000007a0&gt;] start_kernel+0x1aa\/0x328 [    0.000000] [&lt;ffffffe000000058&gt;] _sinittext+0x58\/0x5c [    0.000000] BUG: Bad page state in process swapper  pfn:80bfb [    0.000000] page:ffffffe03f029ee8 count:0 mapcount:-65280 mapping:0000000000000000 index:0x0 [    0.000000] flags: 0x0() [    0.000000] raw: 0000000000000000 ffffffe03f0200f0 ffffffe03f0200f0 0000000000000000 [    0.000000] raw: 0000000000000000 0000000000000000 00000000ffff00ff [    0.000000] page dumped because: nonzero mapcount [    0.000000] Modules linked in: [    0.000000] CPU: 0 PID: 0 Comm: swapper Tainted: G    B             4.19.0-sifive-1+ #1 [    0.000000] Call Trace: [    0.000000] [&lt;ffffffe00002cfde&gt;] walk_stackframe+0x0\/0xa0 [    0.000000] [&lt;ffffffe00002d1da&gt;] show_stack+0x2a\/0x34 [    0.000000] [&lt;ffffffe00063c898&gt;] chachachllachachachTradeonachachach_inachachipachachachachllachachachTradeonachachachdevachachachypachachachllachachachTradeona+0x20\/0x28 [    0.000000] [&lt;ffffffe00009499c&gt;] bad_page+0xe4\/0x102 [    0.000000] [&lt;ffffffe0000949f2&gt;] free_pages_check_bad+0x38\/0x7a [    0.000000] [&lt;ffffffe0000955c6&gt;] __free_pages_ok+0x3fe\/0x430 [    0.000000] [&lt;ffffffe0000960ea&gt;] __free_pages.part.28+0x1a\/0x22 [    0.000000] [&lt;ffffffe0000056da&gt;] __free_pages_bootmem+0x86\/0x90 [    0.000000] [&lt;ffffffe000007c46&gt;] free_all_bootmem+0x156\/0x1ba [    0.000000] [&lt;ffffffe0000023f8&gt;] mem_init+0x36\/0x44 [    0.000000] [&lt;ffffffe0000007a0&gt;] start_kernel+0x1aa\/0x328 [    0.000000] [&lt;ffffffe000000058&gt;] _sinittext+0x58\/0x5c [    0.000000] BUG: Bad page state in process swapper  pfn:80bfc [    0.000000] page:ffffffe03f029f20 count:0 mapcount:-65280 mapping:0000000000000000 index:0x0 [    0.000000] flags: 0x0() [    0.000000] raw: 0000000000000000 ffffffe03f020028 ffffffe03f020028 0000000000000000 [    0.000000] raw: 0000000000000000 0000000000000000 00000000ffff00ff ...<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<p>\u0417\u0430\u043d\u044f\u0442\u043d\u043e, \u0447\u0442\u043e \u043f\u043e\u0441\u043b\u0435 \u0432\u0441\u0435\u0439 \u043e\u0442\u043b\u0430\u0434\u043a\u0438 \u044f \u0440\u0435\u0448\u0438\u043b \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c, \u043a\u0430\u043a \u0434\u043e\u043b\u0436\u0435\u043d \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u00ab\u0440\u0435\u0444\u0435\u0440\u0435\u043d\u0441\u043d\u044b\u0439\u00bb \u0432\u044b\u0432\u043e\u0434 \u044f\u0434\u0440\u0430, \u0441\u043a\u0430\u0437\u0430\u043b <code>make qemu<\/code>, \u0438 \u0443\u0432\u0438\u0434\u0435\u043b \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u0443\u044e \u043e\u0448\u0438\u0431\u043a\u0443.<\/p>\n<p>  <\/p>\n<p>\u0423\u0432\u044b, \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c (Linux kernel) \u0441\u043b\u043e\u0436\u043d\u0435\u0435: GDB, \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0451\u043d\u043d\u044b\u0439 \u0447\u0435\u0440\u0435\u0437 JTAG \u043a RocketChip, \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u043f\u043e-\u0432\u0438\u0434\u0438\u043c\u043e\u043c\u0443, \u0441 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u0430\u0434\u0440\u0435\u0441\u0430\u043c\u0438 \u0432\u043d\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043e MMU, \u0430 \u044f\u0434\u0440\u043e \u0432 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0449\u0438\u0439 \u043d\u0430\u0441 \u043c\u043e\u043c\u0435\u043d\u0442 \u0443\u0436\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043b\u043e \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0430\u0434\u0440\u0435\u0441\u043e\u0432, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043a\u0430\u0437\u0430\u0442\u044c <code>display\/10i $pc<\/code> \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u2014 \u0443\u0432\u0438\u0434\u0438\u043c \u043b\u0438\u0448\u044c \u043c\u043d\u043e\u0433\u043e <code>unimp<\/code>. \u0417\u0430\u0442\u043e, \u0435\u0441\u043b\u0438 \u043c\u044b \u0443\u0436\u0435 \u0432\u044b\u044f\u0441\u043d\u0438\u043b\u0438 \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0435 (\u043f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e <code>0x80200000 -&gt; 0xffffffe000000000<\/code>), \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0445\u0438\u0442\u0440\u0438\u0442\u044c:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">1: x\/10i $pc =&gt; 0xffffffe000002436 &lt;setup_smp&gt;:      unimp    0xffffffe000002438 &lt;setup_smp+2&gt;:    unimp    0xffffffe00000243a &lt;setup_smp+4&gt;:    unimp    0xffffffe00000243c &lt;setup_smp+6&gt;:    unimp    0xffffffe00000243e &lt;setup_smp+8&gt;:    unimp    0xffffffe000002440 &lt;setup_smp+10&gt;:   unimp    0xffffffe000002442 &lt;setup_smp+12&gt;:   unimp    0xffffffe000002444 &lt;setup_smp+14&gt;:   unimp    0xffffffe000002446 &lt;setup_smp+16&gt;:   unimp    0xffffffe000002448 &lt;setup_smp+18&gt;:   unimp (gdb) undisplay 1 (gdb) display\/10i ($pc - 0xffffffe000002436 + 0x80202436) 2: x\/10i ($pc - 0xffffffe000002436 + 0x80202436)    0x80202436:  addi    sp,sp,-96    0x80202438:  sd      s0,80(sp)    0x8020243a:  sd      s1,72(sp)    0x8020243c:  sd      s2,64(sp)    0x8020243e:  sd      s3,56(sp)    0x80202440:  sd      s4,48(sp)    0x80202442:  sd      s5,40(sp)    0x80202444:  sd      s6,32(sp)    0x80202446:  sd      s7,24(sp)    0x80202448:  sd      s8,16(sp)<\/code><\/pre>\n<p>  <\/p>\n<p>\u0411\u0440\u0435\u043a\u043f\u043e\u0438\u043d\u0442\u044b \u043f\u0440\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">(gdb) p setup_smp $1 = {&lt;text variable, no debug info&gt;} 0xffffffe000002436 &lt;setup_smp&gt; (gdb) b *0x80202436 Breakpoint 1 at 0x80202436 (gdb) c Continuing.  Program received signal SIGTRAP, Trace\/breakpoint trap. setup_smp () at \/home\/trosinenko\/freedom-u-sdk\/linux\/arch\/riscv\/kernel\/smpboot.c:58 58              while ((dn = of_find_node_by_type(dn, \"cpu\"))) { (gdb) bt #0  setup_smp () at \/home\/trosinenko\/freedom-u-sdk\/linux\/arch\/riscv\/kernel\/smpboot.c:58 #1  0xffffffe0000022a2 in setup_arch () at \/home\/trosinenko\/freedom-u-sdk\/linux\/arch\/riscv\/kernel\/setup.c:253 #2  0x0000000000000000 in ?? () Backtrace stopped: frame did not save the PC<\/code><\/pre>\n<p>  <\/p>\n<p>\u0412\u043e\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0445 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0441\u043d\u0438\u043c\u0430\u0442\u044c, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0439\u0442\u0438 \u0434\u0430\u043b\u044c\u0448\u0435 \u2014 \u0434\u043b\u044f GDB \u044d\u0442\u043e \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u043d\u0435\u043f\u043e\u043d\u044f\u0442\u043d\u044b\u0439 trap. \u0410\u0445 \u0434\u0430, \u0435\u0441\u043b\u0438 \u0432\u044b \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e \u0441\u043a\u0430\u0436\u0435\u0442\u0435 <code>s<\/code> \u0438\u043b\u0438 <code>n<\/code> \u0432\u043c\u0435\u0441\u0442\u043e <code>si<\/code>, gdb \u043f\u043e\u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043d\u0435\u044f\u0432\u043d\u044b\u0439 \u0431\u0440\u0435\u043a\u043f\u043e\u0438\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u043c \u043f\u0440\u0438\u0447\u0438\u043d\u0430\u043c \u043d\u0435 \u0432\u044b\u0441\u0442\u0430\u0432\u0438\u0442\u0441\u044f, \u043d\u043e \u0438 \u043e\u0442\u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c GDB \u0443\u0436\u0435 \u043d\u0438\u043a\u0430\u043a. \u041d\u043e \u043d\u0435 \u0441\u043f\u0435\u0448\u0438\u0442\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u043f\u043b\u0430\u0442\u0443 \u2014 \u043f\u043e \u043c\u043e\u0438\u043c \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u044f\u043c, \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e gdb (\u0443\u0447\u0442\u0438\u0442\u0435, \u0447\u0442\u043e \u0441\u0442\u0430\u0440\u044b\u0435 breakpoint-\u044b, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043d\u0435 \u0438\u0441\u0447\u0435\u0437\u043d\u0443\u0442).<\/p>\n<p>  <\/p>\n<p>\u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u0441 \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439: \u0440\u0430\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043e\u0442\u043b\u0430\u0434\u043e\u0447\u043d\u044b\u0445 <code>printk<\/code> \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u044e <code>of_find_node_by_type<\/code>, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0443\u044e \u043a\u043e\u0434\u043e\u043c \u043f\u043e\u0438\u0441\u043a\u0430 \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043d\u043e\u0433\u043e \u044f\u0434\u0440\u0430, \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u0447\u0442\u043e \u043e\u043d\u043e \u0432\u0438\u0434\u0438\u0442 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043c\u0443\u0441\u043e\u0440 \u0432\u043c\u0435\u0441\u0442\u043e \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0439 \u0442\u0438\u043f\u043e\u0432 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043e\u043d\u043e \u043e\u0442\u043a\u0443\u0434\u0430-\u0442\u043e \u0431\u0435\u0440\u0451\u0442 \u0441\u0442\u0440\u043e\u0447\u043a\u0443 \u00abSerial port\u00bb, \u0445\u043e\u0442\u044f \u0442\u0430\u043a\u043e\u0433\u043e \u044f\u0432\u043d\u043e \u043d\u0435\u0442 \u0432 dtb \u0432 \u043f\u043e\u043b\u0435 <code>device_type<\/code>. \u041f\u043e\u0438\u0441\u043a\u0430\u0432 \u044d\u0442\u0438 \u0431\u0430\u0439\u0442\u044b \u0432 \u043e\u0431\u0440\u0430\u0437\u0435 \u044f\u0434\u0440\u0430, \u044f \u0438\u0445 \u043d\u0430\u0448\u0451\u043b, \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u043b \u043d\u0430 \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0435, \u0438 \u043f\u043e\u043d\u044f\u043b \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e\u0435: \u0440\u0430\u0437\u043c\u0435\u0440 \u044f\u0434\u0440\u0430 \u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u0445 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u044f\u0432\u043d\u043e \u043d\u0435\u0434\u043e\u043e\u0446\u0435\u043d\u0451\u043d: \u0435\u043c\u0443 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043e 8Mb, \u0430 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043e\u043d\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u0434\u0435\u0441\u044f\u0442\u0438. \u0412\u044b\u0434\u0435\u043b\u0438\u043b 16Mb, \u043d\u043e \u0441\u0442\u0440\u0430\u043d\u043d\u043e\u0441\u0442\u0438 \u043d\u0435 \u043f\u0440\u0435\u043a\u0440\u0430\u0442\u0438\u043b\u0438\u0441\u044c. \u041f\u043e\u0441\u043b\u0435 \u043f\u043b\u044f\u0441\u043e\u043a \u0441 \u0447\u0442\u0435\u043d\u0438\u0435\u043c FDT \u0441 \u0440\u0430\u0437\u043d\u044b\u0445 \u0430\u0434\u0440\u0435\u0441\u043e\u0432 (\u0448\u0442\u0430\u0442\u043d\u043e \u0430\u0434\u0440\u0435\u0441 \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442\u0441\u044f \u044f\u0434\u0440\u0443 \u0432 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0435 <code>a1<\/code>), \u044f, \u043d\u0430\u043a\u043e\u043d\u0435\u0446, \u0440\u0435\u0448\u0438\u043b \u0442\u0440\u0430\u0441\u0441\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u0430 \u0447\u0442\u043e \u0436\u0435 <strong>\u0441\u0435\u0439\u0447\u0430\u0441<\/strong> \u0442\u0430\u043c \u043f\u0430\u0440\u0441\u0438\u0442\u0441\u044f. \u041a \u0441\u0447\u0430\u0441\u0442\u044c\u044e, \u0432\u043c\u0435\u0441\u0442\u043e \u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0439 \u0441 \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a\u043e\u043c (\u0430 \u043c\u044b \u043f\u043e\u043c\u043d\u0438\u043c, \u0447\u0442\u043e \u0435\u0441\u0442\u044c \u043d\u044e\u0430\u043d\u0441\u044b \u0441 \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u0435\u0439 \u0430\u0434\u0440\u0435\u0441\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0435\u0449\u0451 \u043d\u0443\u0436\u043d\u043e \u0442\u0430\u043a \u0438\u043b\u0438 \u0438\u043d\u0430\u0447\u0435 \u0440\u0435\u0448\u0438\u0442\u044c), \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0438 \u043a\u043e\u0441\u0442\u044b\u043b\u044c\u043d\u043e \u0432 \u0444\u0430\u0439\u043b\u0435 <code>drivers\/of\/fdt.c<\/code> \u0443\u043a\u0430\u0437\u0430\u0442\u044c <code>#define pr_debug printk<\/code>. \u0412 \u0438\u0442\u043e\u0433\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c:<\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043e\u0442\u043b\u0430\u0434\u043e\u0447\u043d\u043e\u0433\u043e \u0432\u044b\u0432\u043e\u0434\u0430<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"diff\">diff --git a\/arch\/riscv\/kernel\/setup.c b\/arch\/riscv\/kernel\/setup.c index 3db0d71d128b..fac47df9d1db 100644 --- a\/arch\/riscv\/kernel\/setup.c +++ b\/arch\/riscv\/kernel\/setup.c @@ -173,6 +173,7 @@ asmlinkage void __init setup_vm(void)   void __init parse_dtb(unsigned int hartid, void *dtb)  { +       printk(\"HART = %u DTB = %lx\\n\", hartid, dtb);         early_init_dt_scan(__va(dtb));  }  diff --git a\/drivers\/of\/base.c b\/drivers\/of\/base.c index 74eaedd5b860..c019e4158e1d 100644 --- a\/drivers\/of\/base.c +++ b\/drivers\/of\/base.c @@ -940,10 +940,12 @@ struct device_node *of_find_node_by_type(struct device_node *from,         unsigned long flags;          raw_spin_lock_irqsave(&amp;devtree_lock, flags); -       for_each_of_allnodes_from(from, np) +       for_each_of_allnodes_from(from, np) { +               printk(\"%lx %lx [%s] | [%s]\\n\", from, np, np-&gt;type, type);                 if (np-&gt;type &amp;&amp; (of_node_cmp(np-&gt;type, type) == 0)                     &amp;&amp; of_node_get(np))                         break; +       }         of_node_put(from);         raw_spin_unlock_irqrestore(&amp;devtree_lock, flags);         return np; diff --git a\/drivers\/of\/fdt.c b\/drivers\/of\/fdt.c index 800ad252cf9c..2b45870ebada 100644 --- a\/drivers\/of\/fdt.c +++ b\/drivers\/of\/fdt.c @@ -31,6 +31,8 @@   #include \"of_private.h\"  +#define pr_debug printk +  \/*   * of_fdt_limit_memory - limit the number of regions in the \/memory node   * @limit: maximum entries @@ -1253,6 +1255,7 @@ bool __init early_init_dt_scan(void *params)   *\/  void __init unflatten_device_tree(void)  { +       printk(\"INITIAL: %lx\\n\", initial_boot_params);         __unflatten_device_tree(initial_boot_params, NULL, &amp;of_root,                                 early_init_dt_alloc_memory_arch, false);<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0412\u044b\u0432\u043e\u0434 \u043d\u0430 \u0436\u0435\u043b\u0435\u0437\u0435<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"plaintext\">                SIFIVE, INC.           5555555555555555555555555         5555                   5555        5555                     5555       5555                       5555      5555       5555555555555555555555     5555       555555555555555555555555    5555                             5555   5555                               5555  5555                                 5555 5555555555555555555555555555          55555  55555           555555555           55555    55555           55555           55555      55555           5           55555        55555                   55555          55555               55555            55555           55555              55555       55555                55555   55555                  555555555                    55555                      5             SiFive RISC-V Core IP  {   #address-cells = &lt;0x00000001&gt;;   #size-cells = &lt;0x00000001&gt;;   compatible = \"freechips,rocketchip-unknown-dev\";   model = \"freechips,rocketchip-unknown\";   chosen {     linux,initrd-start = &lt;0x82000000&gt;;     riscv,kernel-end = &lt;0x81200000&gt;;     riscv,kernel-start = &lt;0x80200000&gt;;     #address-cells = &lt;0x00000001&gt;;     #size-cells = &lt;0x00000000&gt;;     bootargs = &lt;0x64656275 0x6720636f 0x6e736f6c 0x653d7474 0x79534946 0x302c3132 0x35323030 0x20726f6f 0x743d2f64 0x65762f6d 0x6d63626c 0x6b307032 0x206c6f67 0x6c657665 0x6c3d3720 0x726f6f74 0x77616974&gt;;   }   firmware {     sifive,uboot = \"YYYY-MM-DD\";   }   aliases {     serial0 = &lt;0x2f736f63 0x2f736572 0x69616c40 0x36343030 0x30303030&gt;;   }   cpus {     #address-cells = &lt;0x00000001&gt;;     #size-cells = &lt;0x00000000&gt;;     cpu@0 {       device_type = \"cpu\";       clock-frequency = &lt;0x00000000&gt;;       compatible = \"sifive,rocket0\", \"riscv\";       d-cache-block-size = &lt;0x00000010&gt;;       d-cache-sets = &lt;0x00000040&gt;;       d-cache-size = &lt;0x00001000&gt;;       d-tlb-sets = &lt;0x00000001&gt;;       d-tlb-size = &lt;0x00000020&gt;;       i-cache-block-size = &lt;0x00000010&gt;;       i-cache-sets = &lt;0x00000040&gt;;       i-cache-size = &lt;0x00001000&gt;;       i-tlb-sets = &lt;0x00000001&gt;;       i-tlb-size = &lt;0x00000020&gt;;       mmu-type = \"riscv,sv39\";       next-level-cache = &lt;0x00000001&gt;;       reg = &lt;0x00000000&gt;;       riscv,isa = \"rv64imafdc\";       status = \"okay\";       timebase-frequency = &lt;0x000f4240&gt;;       tlb-split;       interrupt-controller {         #interrupt-cells = &lt;0x00000001&gt;;         compatible = \"riscv,cpu-intc\";         interrupt-controller;         phandle = &lt;0x00000002&gt;;       }     }   }   ram@80000000 {     device_type = \"memory\";     reg = &lt;0x80000000 0x40000000&gt;;     reg-names = \"mem\";     phandle = &lt;0x00000001&gt;;   }   soc {     #address-cells = &lt;0x00000001&gt;;     #size-cells = &lt;0x00000001&gt;;     compatible = \"freechips,rocketchip-unknown-soc\", \"simple-bus\";     ranges;     clint@2000000 {       compatible = \"riscv,clint0\";       interrupts-extended = &lt;0x00000002 0x00000003 0x00000002 0x00000007&gt;;       reg = &lt;0x02000000 0x00010000&gt;;       reg-names = \"control\";     }     debug-controller@0 {       compatible = \"sifive,debug-013\", \"riscv,debug-013\";       interrupts-extended = &lt;0x00000002 0x0000ffff&gt;;       reg = &lt;0x00000000 0x00001000&gt;;       reg-names = \"control\";     }     gpio@64002000 {       #gpio-cells = &lt;0x00000002&gt;;       #interrupt-cells = &lt;0x00000002&gt;;       compatible = \"sifive,gpio0\";       gpio-controller;       interrupt-controller;       interrupt-parent = &lt;0x00000003&gt;;       interrupts = &lt;0x00000003 0x00000004 0x00000005 0x00000006 0x00000007 0x00000008&gt;;       reg = &lt;0x64002000 0x00001000&gt;;       reg-names = \"control\";     }     interrupt-controller@c000000 {       #interrupt-cells = &lt;0x00000001&gt;;       compatible = \"riscv,plic0\";       interrupt-controller;       interrupts-extended = &lt;0x00000002 0x0000000b 0x00000002 0x00000009&gt;;       reg = &lt;0x0c000000 0x04000000&gt;;       reg-names = \"control\";       riscv,max-priority = &lt;0x00000007&gt;;       riscv,ndev = &lt;0x00000008&gt;;       phandle = &lt;0x00000003&gt;;     }     rom@10000 {       compatible = \"sifive,maskrom0\";       reg = &lt;0x00010000 0x00002000&gt;;       reg-names = \"mem\";     }     serial@64000000 {       compatible = \"sifive,uart0\";       interrupt-parent = &lt;0x00000003&gt;;       interrupts = &lt;0x00000002&gt;;       reg = &lt;0x64000000 0x00001000&gt;;       reg-names = \"control\";     }     spi@64001000 {       #address-cells = &lt;0x00000001&gt;;       #size-cells = &lt;0x00000000&gt;;       compatible = \"sifive,spi0\";       interrupt-parent = &lt;0x00000003&gt;;       interrupts = &lt;0x00000001&gt;;       reg = &lt;0x64001000 0x00001000&gt;;       reg-names = \"control\";       mmc@0 {         compatible = \"mmc-spi-slot\";         disable-wp;         reg = &lt;0x00000000&gt;;         spi-max-frequency = &lt;0x01312d00&gt;;         voltage-ranges = &lt;0x00000ce4 0x00000ce4&gt;;       }     }     tlclk {       #clock-cells = &lt;0x00000000&gt;;       clock-frequency = &lt;0x017d7840&gt;;       clock-output-names = \"tlclk\";       compatible = \"fixed-clock\";     }   } } [    0.000000] HART = 0 DTB = 81200000 [    0.000000] search \"chosen\", depth: 0, uname: [    0.000000] search \"chosen\", depth: 1, uname: chosen [    0.000000] Looking for initrd properties... [    0.000000] Command line is: debug console=ttySIF0,125200 root=\/dev\/mmcblk0p2 loglevel=7 rootwait [    0.000000] dt_root_size_cells = 1 [    0.000000] dt_root_addr_cells = 1 [    0.000000] memory scan node ram@80000000, reg size 8, [    0.000000]  - 80000000 ,  40000000 [    0.000000] OF: fdt: Ignoring memory range 0x80000000 - 0x80200000 [    0.000000] Linux version 4.19.0-sifive-1+ (trosinenko@trosinenko-pc) (gcc version 8.3.0 (Buildroot 2019.02-07449-g4eddd28f99)) #1 SMP Sat Jul 6 12:14:41 MSK 2019 [    0.000000] bootconsole [early0] enabled [    0.000000] initrd not found or empty - disabling initrd [    0.000000] Zone ranges: [    0.000000]   DMA32    [mem 0x0000000080200000-0x00000000bfffffff] [    0.000000]   Normal   [mem 0x00000000c0000000-0x00000bffffffffff] [    0.000000] Movable zone start for each node [    0.000000] Early memory node ranges [    0.000000]   node   0: [mem 0x0000000080200000-0x00000000bfffffff] [    0.000000] Initmem setup node 0 [mem 0x0000000080200000-0x00000000bfffffff] [    0.000000] INITIAL: ffffffe001000000 [    0.000000]  -&gt; unflatten_device_tree() [    0.000000] Unflattening device tree: [    0.000000] magic: d00dfeed [    0.000000] size: 00001000 [    0.000000] version: 00000011 [    0.000000]   size is 13512, allocating... [    0.000000]   unflattening (____ptrval____)... [    0.000000] fixed up name for  -&gt; [    0.000000] fixed up name for chosen -&gt; chosen [    0.000000] fixed up name for firmware -&gt; firmware [    0.000000] fixed up name for aliases -&gt; aliases [    0.000000] fixed up name for cpus -&gt; cpus [    0.000000] fixed up name for cpu@0 -&gt; cpu [    0.000000] fixed up name for interrupt-controller -&gt; interrupt-controller [    0.000000] fixed up name for ram@80000000 -&gt; ram [    0.000000] fixed up name for soc -&gt; soc [    0.000000] fixed up name for clint@2000000 -&gt; clint [    0.000000] fixed up name for debug-controller@0 -&gt; debug-controller [    0.000000] fixed up name for gpio@64002000 -&gt; gpio [    0.000000] fixed up name for interrupt-controller@c000000 -&gt; interrupt-controller [    0.000000] fixed up name for rom@10000 -&gt; rom [    0.000000] fixed up name for serial@64000000 -&gt; serial [    0.000000] fixed up name for spi@64001000 -&gt; spi [    0.000000] fixed up name for mmc@0 -&gt; mmc [    0.000000] fixed up name for tlclk -&gt; tlclk [    0.000000]  &lt;- unflatten_device_tree() [    0.000000] software IO TLB: mapped [mem 0xbb1fc000-0xbf1fc000] (64MB) [    0.000000] 0 ffffffe03effcab0 [attach() failed for %s with error %d [    0.000000] ] | [cpu] [    0.000000] 0 ffffffe03eff0020 [(null)] | [cpu]<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0412\u044b\u0432\u043e\u0434 \u0432 QEMU<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"plaintext\">                SIFIVE, INC.           5555555555555555555555555         5555                   5555        5555                     5555       5555                       5555      5555       5555555555555555555555     5555       555555555555555555555555    5555                             5555   5555                               5555  5555                                 5555 5555555555555555555555555555          55555  55555           555555555           55555    55555           55555           55555      55555           5           55555        55555                   55555          55555               55555            55555           55555              55555       55555                55555   55555                  555555555                    55555                      5             SiFive RISC-V Core IP  {   #address-cells = &lt;0x00000002&gt;;   #size-cells = &lt;0x00000002&gt;;   compatible = \"riscv-virtio\";   model = \"riscv-virtio,qemu\";   chosen {     linux,initrd-start = &lt;0x00000000 0x88000000&gt;;     linux,initrd-end = &lt;0x00000000 0x88442b86&gt;;     riscv,kernel-start = &lt;0x00000000 0x80200000&gt;;     riscv,kernel-end = &lt;0x00000000 0x80c482ac&gt;;     bootargs = \"\";     stdout-path = &lt;0x2f756172 0x74403130 0x30303030&gt;;   }   uart@10000000 {     interrupts = &lt;0x0000000a&gt;;     interrupt-parent = &lt;0x00000002&gt;;     clock-frequency = &lt;0x00384000&gt;;     reg = &lt;0x00000000 0x10000000 0x00000000 0x00000100&gt;;     compatible = \"ns16550a\";   }   test@100000 {     reg = &lt;0x00000000 0x00100000 0x00000000 0x00001000&gt;;     compatible = \"sifive,test0\";   }   virtio_mmio@10008000 {     interrupts = &lt;0x00000008&gt;;     interrupt-parent = &lt;0x00000002&gt;;     reg = &lt;0x00000000 0x10008000 0x00000000 0x00001000&gt;;     compatible = \"virtio,mmio\";   }   virtio_mmio@10007000 {     interrupts = &lt;0x00000007&gt;;     interrupt-parent = &lt;0x00000002&gt;;     reg = &lt;0x00000000 0x10007000 0x00000000 0x00001000&gt;;     compatible = \"virtio,mmio\";   }   virtio_mmio@10006000 {     interrupts = &lt;0x00000006&gt;;     interrupt-parent = &lt;0x00000002&gt;;     reg = &lt;0x00000000 0x10006000 0x00000000 0x00001000&gt;;     compatible = \"virtio,mmio\";   }   virtio_mmio@10005000 {     interrupts = &lt;0x00000005&gt;;     interrupt-parent = &lt;0x00000002&gt;;     reg = &lt;0x00000000 0x10005000 0x00000000 0x00001000&gt;;     compatible = \"virtio,mmio\";   }   virtio_mmio@10004000 {     interrupts = &lt;0x00000004&gt;;     interrupt-parent = &lt;0x00000002&gt;;     reg = &lt;0x00000000 0x10004000 0x00000000 0x00001000&gt;;     compatible = \"virtio,mmio\";   }   virtio_mmio@10003000 {     interrupts = &lt;0x00000003&gt;;     interrupt-parent = &lt;0x00000002&gt;;     reg = &lt;0x00000000 0x10003000 0x00000000 0x00001000&gt;;     compatible = \"virtio,mmio\";   }   virtio_mmio@10002000 {     interrupts = &lt;0x00000002&gt;;     interrupt-parent = &lt;0x00000002&gt;;     reg = &lt;0x00000000 0x10002000 0x00000000 0x00001000&gt;;     compatible = \"virtio,mmio\";   }   virtio_mmio@10001000 {     interrupts = &lt;0x00000001&gt;;     interrupt-parent = &lt;0x00000002&gt;;     reg = &lt;0x00000000 0x10001000 0x00000000 0x00001000&gt;;     compatible = \"virtio,mmio\";   }   cpus {     #address-cells = &lt;0x00000001&gt;;     #size-cells = &lt;0x00000000&gt;;     timebase-frequency = &lt;0x00989680&gt;;     cpu@0 {       device_type = \"cpu\";       reg = &lt;0x00000000&gt;;       status = \"okay\";       compatible = \"riscv\";       riscv,isa = \"rv64imafdcsu\";       mmu-type = \"riscv,sv48\";       clock-frequency = &lt;0x3b9aca00&gt;;       interrupt-controller {         #interrupt-cells = &lt;0x00000001&gt;;         interrupt-controller;         compatible = \"riscv,cpu-intc\";         linux,phandle = &lt;0x00000001&gt;;         phandle = &lt;0x00000001&gt;;       }     }   }   memory@80000000 {     device_type = \"memory\";     reg = &lt;0x00000000 0x80000000 0x00000000 0x40000000&gt;;   }   soc {     #address-cells = &lt;0x00000002&gt;;     #size-cells = &lt;0x00000002&gt;;     compatible = \"simple-bus\";     ranges;     pci@30000000 {       interrupt-map-mask = &lt;0x00001800 0x00000000 0x00000000 0x00000007&gt;;       interrupt-map = &lt;0x00000000 0x00000000 0x00000000 0x00000001 0x00000002 0x00000020 0x00000000 0x00000000 0x00000000 0x00000002 0x00000002 0x00000021 0x00000000 0x00000000 0x00000000 0x00000003 0x00000002 0x00000022 0x00000000 0x00000000 0x00000000 0x00000004 0x00000002 0x00000023 0x00000800 0x00000000 0x00000000 0x00000001 0x00000002 0x00000021 0x00000800 0x00000000 0x00000000 0x00000002 0x00000002 0x00000022 0x00000800 0x00000000 0x00000000 0x00000003 0x00000002 0x00000023 0x00000800 0x00000000 0x00000000 0x00000004 0x00000002 0x00000020 0x00001000 0x00000000 0x00000000 0x00000001 0x00000002 0x00000022 0x00001000 0x00000000 0x00000000 0x00000002 0x00000002 0x00000023 0x00001000 0x00000000 0x00000000 0x00000003 0x00000002 0x00000020 0x00001000 0x00000000 0x00000000 0x00000004 0x00000002 0x00000021 0x00001800 0x00000000 0x00000000 0x00000001 0x00000002 0x00000023 0x00001800 0x00000000 0x00000000 0x00000002 0x00000002 0x00000020 0x00001800 0x00000000 0x00000000 0x00000003 0x00000002 0x00000021 0x00001800 0x00000000 0x00000000 0x00000004 0x00000002 0x00000022&gt;;       ranges = &lt;0x01000000 0x00000000 0x00000000 0x00000000 0x03000000 0x00000000 0x00010000 0x02000000 0x00000000 0x40000000 0x00000000 0x40000000 0x00000000 0x40000000&gt;;       reg = &lt;0x00000000 0x30000000 0x00000000 0x10000000&gt;;       dma-coherent;       bus-range = &lt;0x00000000 0x000002ff&gt;;       linux,pci-domain = &lt;0x00000000&gt;;       device_type = \"pci\";       compatible = \"pci-host-ecam-generic\";       #size-cells = &lt;0x00000002&gt;;       #interrupt-cells = &lt;0x00000001&gt;;       #address-cells = &lt;0x00000003&gt;;     }     interrupt-controller@c000000 {       linux,phandle = &lt;0x00000002&gt;;       phandle = &lt;0x00000002&gt;;       riscv,ndev = &lt;0x00000035&gt;;       riscv,max-priority = &lt;0x00000007&gt;;       reg-names = \"control\";       reg = &lt;0x00000000 0x0c000000 0x00000000 0x04000000&gt;;       interrupts-extended = &lt;0x00000001 0x0000000b 0x00000001 0x00000009&gt;;       interrupt-controller;       compatible = \"riscv,plic0\";       #interrupt-cells = &lt;0x00000001&gt;;       #address-cells = &lt;0x00000000&gt;;     }     clint@2000000 {       interrupts-extended = &lt;0x00000001 0x00000003 0x00000001 0x00000007&gt;;       reg = &lt;0x00000000 0x02000000 0x00000000 0x00010000&gt;;       compatible = \"riscv,clint0\";     }   } } [    0.000000] HART = 0 DTB = 80e00000 [    0.000000] search \"chosen\", depth: 0, uname: [    0.000000] search \"chosen\", depth: 1, uname: chosen [    0.000000] Looking for initrd properties... [    0.000000] initrd_start=0x88000000  initrd_end=0x88442b86 [    0.000000] Command line is: earlyprintk [    0.000000] dt_root_size_cells = 2 [    0.000000] dt_root_addr_cells = 2 [    0.000000] memory scan node memory@80000000, reg size 16, [    0.000000]  - 80000000 ,  40000000 [    0.000000] OF: fdt: Ignoring memory range 0x80000000 - 0x80200000 [    0.000000] Linux version 4.19.0-sifive-1+ (trosinenko@trosinenko-pc) (gcc version 8.3.0 (Buildroot 2019.02-07449-g4eddd28f99)) #1 SMP Sat Jul 6 12:14:41 MSK 2019 [    0.000000] bootconsole [early0] enabled [    0.000000] Initial ramdisk at: 0x(____ptrval____) (4467590 bytes) [    0.000000] Zone ranges: [    0.000000]   DMA32    [mem 0x0000000080200000-0x00000000bfffffff] [    0.000000]   Normal   [mem 0x00000000c0000000-0x00000bffffffffff] [    0.000000] Movable zone start for each node [    0.000000] Early memory node ranges [    0.000000]   node   0: [mem 0x0000000080200000-0x00000000bfffffff] [    0.000000] Initmem setup node 0 [mem 0x0000000080200000-0x00000000bfffffff] [    0.000000] INITIAL: ffffffe000c00000 [    0.000000]  -&gt; unflatten_device_tree() [    0.000000] Unflattening device tree: [    0.000000] magic: d00dfeed [    0.000000] size: 00000d56 [    0.000000] version: 00000011 [    0.000000]   size is 14192, allocating... [    0.000000]   unflattening (____ptrval____)... [    0.000000] fixed up name for  -&gt; [    0.000000] fixed up name for chosen -&gt; chosen [    0.000000] fixed up name for uart@10000000 -&gt; uart [    0.000000] fixed up name for test@100000 -&gt; test [    0.000000] fixed up name for virtio_mmio@10008000 -&gt; virtio_mmio [    0.000000] fixed up name for virtio_mmio@10007000 -&gt; virtio_mmio [    0.000000] fixed up name for virtio_mmio@10006000 -&gt; virtio_mmio [    0.000000] fixed up name for virtio_mmio@10005000 -&gt; virtio_mmio [    0.000000] fixed up name for virtio_mmio@10004000 -&gt; virtio_mmio [    0.000000] fixed up name for virtio_mmio@10003000 -&gt; virtio_mmio [    0.000000] fixed up name for virtio_mmio@10002000 -&gt; virtio_mmio [    0.000000] fixed up name for virtio_mmio@10001000 -&gt; virtio_mmio [    0.000000] fixed up name for cpus -&gt; cpus [    0.000000] fixed up name for cpu@0 -&gt; cpu [    0.000000] fixed up name for interrupt-controller -&gt; interrupt-controller [    0.000000] fixed up name for memory@80000000 -&gt; memory [    0.000000] fixed up name for soc -&gt; soc [    0.000000] fixed up name for pci@30000000 -&gt; pci [    0.000000] fixed up name for interrupt-controller@c000000 -&gt; interrupt-controller [    0.000000] fixed up name for clint@2000000 -&gt; clint [    0.000000]  &lt;- unflatten_device_tree() [    0.000000] software IO TLB: mapped [mem 0xbb1fc000-0xbf1fc000] (64MB) [    0.000000] 0 ffffffe03effc808 [&lt;NULL&gt;] | [cpu] [    0.000000] 0 ffffffe03effca78 [&lt;NULL&gt;] | [cpu] [    0.000000] 0 ffffffe03effcd98 [&lt;NULL&gt;] | [cpu] [    0.000000] 0 ffffffe03effd068 [&lt;NULL&gt;] | [cpu] [    0.000000] 0 ffffffe03effd230 [&lt;NULL&gt;] | [cpu] [    0.000000] 0 ffffffe03effd4b8 [&lt;NULL&gt;] | [cpu] [    0.000000] 0 ffffffe03effd740 [&lt;NULL&gt;] | [cpu] [    0.000000] 0 ffffffe03effd9c8 [&lt;NULL&gt;] | [cpu] [    0.000000] 0 ffffffe03effdc50 [&lt;NULL&gt;] | [cpu] [    0.000000] 0 ffffffe03effded8 [&lt;NULL&gt;] | [cpu] [    0.000000] 0 ffffffe03effe160 [&lt;NULL&gt;] | [cpu] [    0.000000] 0 ffffffe03effe3e8 [&lt;NULL&gt;] | [cpu] [    0.000000] 0 ffffffe03effe670 [&lt;NULL&gt;] | [cpu] [    0.000000] 0 ffffffe03effe888 [cpu] | [cpu] [    0.000000] ffffffe03effe888 ffffffe03effec00 [&lt;NULL&gt;] | [cpu] [    0.000000] ffffffe03effe888 ffffffe03effeee8 [memory] | [cpu] [    0.000000] ffffffe03effe888 ffffffe03efff0b0 [&lt;NULL&gt;] | [cpu] [    0.000000] ffffffe03effe888 ffffffe03efff320 [pci] | [cpu] [    0.000000] ffffffe03effe888 ffffffe03efff858 [&lt;NULL&gt;] | [cpu] [    0.000000] ffffffe03effe888 ffffffe03efffd58 [&lt;NULL&gt;] | [cpu] [    0.000000] 0 ffffffe03effc808 [&lt;NULL&gt;] | [cpu] [    0.000000] 0 ffffffe03effca78 [&lt;NULL&gt;] | [cpu] [    0.000000] 0 ffffffe03effcd98 [&lt;NULL&gt;] | [cpu] [    0.000000] 0 ffffffe03effd068 [&lt;NULL&gt;] | [cpu] [    0.000000] 0 ffffffe03effd230 [&lt;NULL&gt;] | [cpu] [    0.000000] 0 ffffffe03effd4b8 [&lt;NULL&gt;] | [cpu] [    0.000000] 0 ffffffe03effd740 [&lt;NULL&gt;] | [cpu] [    0.000000] 0 ffffffe03effd9c8 [&lt;NULL&gt;] | [cpu] [    0.000000] 0 ffffffe03effdc50 [&lt;NULL&gt;] | [cpu] [    0.000000] 0 ffffffe03effded8 [&lt;NULL&gt;] | [cpu] [    0.000000] 0 ffffffe03effe160 [&lt;NULL&gt;] | [cpu] [    0.000000] 0 ffffffe03effe3e8 [&lt;NULL&gt;] | [cpu] [    0.000000] 0 ffffffe03effe670 [&lt;NULL&gt;] | [cpu] [    0.000000] 0 ffffffe03effe888 [cpu] | [cpu] [    0.000000] elf_hwcap is 0x112d [    0.000000] percpu: Embedded 17 pages\/cpu @(____ptrval____) s29400 r8192 d32040 u69632 [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 258055 [    0.000000] Kernel command line: earlyprintk [    0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes) [    0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes) [    0.000000] Sorting __ex_table... [    0.000000] Memory: 949716K\/1046528K available (6565K kernel code, 342K rwdata, 2564K rodata, 208K init, 832K bss, 96812K reserved, 0K cma-reserved) [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [    0.000000] rcu: Hierarchical RCU implementation. [    0.000000] rcu:     RCU event tracing is enabled. [    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1. [    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1 [    0.000000] NR_IRQS: 0, nr_irqs: 0, preallocated irqs: 0 [    0.000000] plic: mapped 53 interrupts to 2 (out of 2) handlers. [    0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x24e6a1710, max_idle_ns: 440795202120 ns [    0.000000] Console: colour dummy device 80x25 [    0.000000] console [tty0] enabled [    0.000000] bootconsole [early0] disabled [    0.000000] HART = 0 DTB = 80e00000 [    0.000000] search \"chosen\", depth: 0, uname: [    0.000000] search \"chosen\", depth: 1, uname: chosen [    0.000000] Looking for initrd properties... [    0.000000] initrd_start=0x88000000  initrd_end=0x88442b86 [    0.000000] Command line is: earlyprintk [    0.000000] dt_root_size_cells = 2 [    0.000000] dt_root_addr_cells = 2 [    0.000000] memory scan node memory@80000000, reg size 16, [    0.000000]  - 80000000 ,  40000000 [    0.000000] OF: fdt: Ignoring memory range 0x80000000 - 0x80200000 [    0.000000] Linux version 4.19.0-sifive-1+ (trosinenko@trosinenko-pc) (gcc version 8.3.0 (Buildroot 2019.02-07449-g4eddd28f99)) #1 SMP Sat Jul 6 12:14:41 MSK 2019 [    0.000000] bootconsole [early0] enabled [    0.000000] Initial ramdisk at: 0x(____ptrval____) (4467590 bytes) [    0.000000] Zone ranges: [    0.000000]   DMA32    [mem 0x0000000080200000-0x00000000bfffffff] [    0.000000]   Normal   [mem 0x00000000c0000000-0x00000bffffffffff] [    0.000000] Movable zone start for each node [    0.000000] Early memory node ranges [    0.000000]   node   0: [mem 0x0000000080200000-0x00000000bfffffff] [    0.000000] Initmem setup node 0 [mem 0x0000000080200000-0x00000000bfffffff] [    0.000000] INITIAL: ffffffe000c00000 [    0.000000]  -&gt; unflatten_device_tree() [    0.000000] Unflattening device tree: [    0.000000] magic: d00dfeed [    0.000000] size: 00000d56 [    0.000000] version: 00000011 [    0.000000]   size is 14192, allocating... [    0.000000]   unflattening (____ptrval____)... [    0.000000] fixed up name for  -&gt; [    0.000000] fixed up name for chosen -&gt; chosen [    0.000000] fixed up name for uart@10000000 -&gt; uart [    0.000000] fixed up name for test@100000 -&gt; test [    0.000000] fixed up name for virtio_mmio@10008000 -&gt; virtio_mmio [    0.000000] fixed up name for virtio_mmio@10007000 -&gt; virtio_mmio [    0.000000] fixed up name for virtio_mmio@10006000 -&gt; virtio_mmio [    0.000000] fixed up name for virtio_mmio@10005000 -&gt; virtio_mmio [    0.000000] fixed up name for virtio_mmio@10004000 -&gt; virtio_mmio [    0.000000] fixed up name for virtio_mmio@10003000 -&gt; virtio_mmio [    0.000000] fixed up name for virtio_mmio@10002000 -&gt; virtio_mmio [    0.000000] fixed up name for virtio_mmio@10001000 -&gt; virtio_mmio [    0.000000] fixed up name for cpus -&gt; cpus [    0.000000] fixed up name for cpu@0 -&gt; cpu [    0.000000] fixed up name for interrupt-controller -&gt; interrupt-controller [    0.000000] fixed up name for memory@80000000 -&gt; memory [    0.000000] fixed up name for soc -&gt; soc [    0.000000] fixed up name for pci@30000000 -&gt; pci [    0.000000] fixed up name for interrupt-controller@c000000 -&gt; interrupt-controller [    0.000000] fixed up name for clint@2000000 -&gt; clint [    0.000000]  &lt;- unflatten_device_tree() [    0.000000] software IO TLB: mapped [mem 0xbb1fc000-0xbf1fc000] (64MB) [    0.000000] 0 ffffffe03effc808 [&lt;NULL&gt;] | [cpu] [    0.000000] 0 ffffffe03effca78 [&lt;NULL&gt;] | [cpu] [    0.000000] 0 ffffffe03effcd98 [&lt;NULL&gt;] | [cpu] [    0.000000] 0 ffffffe03effd068 [&lt;NULL&gt;] | [cpu] [    0.000000] 0 ffffffe03effd230 [&lt;NULL&gt;] | [cpu] [    0.000000] 0 ffffffe03effd4b8 [&lt;NULL&gt;] | [cpu] [    0.000000] 0 ffffffe03effd740 [&lt;NULL&gt;] | [cpu] [    0.000000] 0 ffffffe03effd9c8 [&lt;NULL&gt;] | [cpu] [    0.000000] 0 ffffffe03effdc50 [&lt;NULL&gt;] | [cpu] [    0.000000] 0 ffffffe03effded8 [&lt;NULL&gt;] | [cpu] [    0.000000] 0 ffffffe03effe160 [&lt;NULL&gt;] | [cpu] [    0.000000] 0 ffffffe03effe3e8 [&lt;NULL&gt;] | [cpu] [    0.000000] 0 ffffffe03effe670 [&lt;NULL&gt;] | [cpu] [    0.000000] 0 ffffffe03effe888 [cpu] | [cpu] [    0.000000] ffffffe03effe888 ffffffe03effec00 [&lt;NULL&gt;] | [cpu] [    0.000000] ffffffe03effe888 ffffffe03effeee8 [memory] | [cpu] [    0.000000] ffffffe03effe888 ffffffe03efff0b0 [&lt;NULL&gt;] | [cpu] [    0.000000] ffffffe03effe888 ffffffe03efff320 [pci] | [cpu] [    0.000000] ffffffe03effe888 ffffffe03efff858 [&lt;NULL&gt;] | [cpu] [    0.000000] ffffffe03effe888 ffffffe03efffd58 [&lt;NULL&gt;] | [cpu] [    0.000000] 0 ffffffe03effc808 [&lt;NULL&gt;] | [cpu] [    0.000000] 0 ffffffe03effca78 [&lt;NULL&gt;] | [cpu] [    0.000000] 0 ffffffe03effcd98 [&lt;NULL&gt;] | [cpu] [    0.000000] 0 ffffffe03effd068 [&lt;NULL&gt;] | [cpu] [    0.000000] 0 ffffffe03effd230 [&lt;NULL&gt;] | [cpu] [    0.000000] 0 ffffffe03effd4b8 [&lt;NULL&gt;] | [cpu] [    0.000000] 0 ffffffe03effd740 [&lt;NULL&gt;] | [cpu] [    0.000000] 0 ffffffe03effd9c8 [&lt;NULL&gt;] | [cpu] [    0.000000] 0 ffffffe03effdc50 [&lt;NULL&gt;] | [cpu] [    0.000000] 0 ffffffe03effded8 [&lt;NULL&gt;] | [cpu] [    0.000000] 0 ffffffe03effe160 [&lt;NULL&gt;] | [cpu] [    0.000000] 0 ffffffe03effe3e8 [&lt;NULL&gt;] | [cpu] [    0.000000] 0 ffffffe03effe670 [&lt;NULL&gt;] | [cpu] [    0.000000] 0 ffffffe03effe888 [cpu] | [cpu] [    0.000000] elf_hwcap is 0x112d [    0.000000] percpu: Embedded 17 pages\/cpu @(____ptrval____) s29400 r8192 d32040 u69632 [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 258055 [    0.000000] Kernel command line: earlyprintk [    0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes) [    0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes) [    0.000000] Sorting __ex_table... [    0.000000] Memory: 949716K\/1046528K available (6565K kernel code, 342K rwdata, 2564K rodata, 208K init, 832K bss, 96812K reserved, 0K cma-reserved) [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [    0.000000] rcu: Hierarchical RCU implementation. [    0.000000] rcu:     RCU event tracing is enabled. [    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1. [    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1 [    0.000000] NR_IRQS: 0, nr_irqs: 0, preallocated irqs: 0 [    0.000000] plic: mapped 53 interrupts to 2 (out of 2) handlers. [    0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x24e6a1710, max_idle_ns: 440795202120 ns [    0.000000] Console: colour dummy device 80x25 [    0.000000] console [tty0] enabled [    0.000000] bootconsole [early0] disabled [    0.000000] Calibrating delay loop (skipped), value calculated using timer frequency.. 20.00 BogoMIPS (lpj=100000) [    0.000000] pid_max: default: 32768 minimum: 301 [    0.000000] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes) [    0.000000] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes) [    0.020000] rcu: Hierarchical SRCU implementation. [    0.020000] smp: Bringing up secondary CPUs ... [    0.020000] smp: Brought up 1 node, 1 CPU [    0.050000] devtmpfs: initialized [    0.050000] 0 ffffffe03effc808 [&lt;NULL&gt;] | [cpu] [    0.050000] 0 ffffffe03effca78 [&lt;NULL&gt;] | [cpu] [    0.050000] 0 ffffffe03effcd98 [&lt;NULL&gt;] | [cpu] [    0.050000] 0 ffffffe03effd068 [&lt;NULL&gt;] | [cpu] [    0.050000] 0 ffffffe03effd230 [&lt;NULL&gt;] | [cpu] [    0.050000] 0 ffffffe03effd4b8 [&lt;NULL&gt;] | [cpu] [    0.050000] 0 ffffffe03effd740 [&lt;NULL&gt;] | [cpu] [    0.050000] 0 ffffffe03effd9c8 [&lt;NULL&gt;] | [cpu] [    0.050000] 0 ffffffe03effdc50 [&lt;NULL&gt;] | [cpu] [    0.050000] 0 ffffffe03effded8 [&lt;NULL&gt;] | [cpu] [    0.050000] 0 ffffffe03effe160 [&lt;NULL&gt;] | [cpu] [    0.050000] 0 ffffffe03effe3e8 [&lt;NULL&gt;] | [cpu] [    0.050000] 0 ffffffe03effe670 [&lt;NULL&gt;] | [cpu] [    0.050000] 0 ffffffe03effe888 [cpu] | [cpu] [    0.050000] random: get_random_u32 called from bucket_table_alloc+0x76\/0x17a with crng_init=0 [    0.050000] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [    0.050000] futex hash table entries: 256 (order: 2, 16384 bytes) [    0.060000] NET: Registered protocol family 16 [    0.090000] vgaarb: loaded [    0.090000] SCSI subsystem initialized [    0.090000] usbcore: registered new interface driver usbfs [    0.090000] usbcore: registered new interface driver hub [    0.090000] usbcore: registered new device driver usb [    0.090000] pps_core: LinuxPPS API ver. 1 registered [    0.090000] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti &lt;giometti@linux.it&gt; [    0.090000] PTP clock support registered [    0.100000] Advanced Linux Sound Architecture Driver Initialized. [    0.100000] clocksource: Switched to clocksource riscv_clocksource [    0.110000] NET: Registered protocol family 2 [    0.110000] tcp_listen_portaddr_hash hash table entries: 512 (order: 1, 8192 bytes) [    0.110000] TCP established hash table entries: 8192 (order: 4, 65536 bytes) [    0.110000] TCP bind hash table entries: 8192 (order: 5, 131072 bytes) [    0.110000] TCP: Hash tables configured (established 8192 bind 8192) [    0.110000] UDP hash table entries: 512 (order: 2, 16384 bytes) [    0.110000] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes) [    0.110000] NET: Registered protocol family 1 [    0.120000] Unpacking initramfs... [    0.590000] workingset: timestamp_bits=62 max_order=18 bucket_order=0 [    0.620000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251) [    0.620000] io scheduler noop registered [    0.620000] io scheduler deadline registered [    0.620000] io scheduler cfq registered (default) [    0.620000] io scheduler mq-deadline registered [    0.620000] io scheduler kyber registered [    0.620000] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4 [    0.690000] Serial: 8250\/16550 driver, 4 ports, IRQ sharing disabled [    0.690000] 10000000.uart: ttyS0 at MMIO 0x10000000 (irq = 10, base_baud = 230400) is a 16550A [    0.720000] console [ttyS0] enabled [    0.720000] [drm] radeon kernel modesetting enabled. [    0.720000] [drm] amdgpu kernel modesetting enabled. [    0.730000] loop: module loaded [    0.730000] libphy: Fixed MDIO Bus: probed [    0.740000] e1000e: Intel(R) PRO\/1000 Network Driver - 3.2.6-k [    0.740000] e1000e: Copyright(c) 1999 - 2015 Intel Corporation. [    0.740000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [    0.740000] ehci-pci: EHCI PCI platform driver [    0.740000] ehci-platform: EHCI generic platform driver [    0.740000] mousedev: PS\/2 mouse device common for all mice [    0.740000] usbcore: registered new interface driver usbhid [    0.740000] usbhid: USB HID core driver [    0.740000] usbcore: registered new interface driver snd-usb-audio [    0.740000] NET: Registered protocol family 10 [    0.750000] Segment Routing with IPv6 [    0.750000] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver [    0.750000] NET: Registered protocol family 17 [    0.750000] Key type dns_resolver registered [    0.760000] ALSA device list: [    0.760000]   No soundcards found. [    0.770000] Freeing unused kernel memory: 208K [    0.770000] This architecture does not have kernel memory protection. [    0.770000] Run \/init as init process<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<p>(\u00ab\u0422\u0430\u0439\u043c\u0441\u0442\u0435\u043c\u043f\u043d\u0443\u0442\u044b\u043c\u0438\u00bb \u0441\u0442\u0440\u043e\u0447\u043a\u0438 \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u044f\u0434\u0440\u043e, \u043f\u0435\u0440\u0435\u0434 \u043d\u0438\u043c\u0438 \u0434\u0435\u0440\u0435\u0432\u043e \u0432\u044b\u0432\u043e\u0434\u0438\u0442 BBL) \u0421 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b, FDT \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f, \u0441 \u0434\u0440\u0443\u0433\u043e\u0439 \u2014 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u043a\u0430\u044f-\u0442\u043e \u0447\u0435\u043f\u0443\u0445\u0430 \u0432 \u0440\u0430\u0441\u043f\u0430\u0440\u0441\u0435\u043d\u043d\u043e\u043c \u00ab\u043e\u0431\u044a\u0435\u043a\u0442\u043d\u043e\u043c\u00bb \u0434\u0435\u0440\u0435\u0432\u0435.<\/p>\n<p>  <\/p>\n<p>\u0412 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u043e\u0442\u043b\u0430\u0434\u043a\u0438 \u044f \u043f\u043e\u043d\u044f\u043b, \u0447\u0442\u043e BBL \u043d\u0435 \u043c\u043e\u0433 \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u00ab\u0434\u0432\u043e\u0439\u043d\u043e\u0439\u00bb \u0430\u0434\u0440\u0435\u0441 \u043d\u0435 \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0435 \u0431\u044b\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430, \u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0443 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0433\u043e \u0443\u0437\u043b\u0430 \u0431\u044b\u043b \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u0435\u043d <code>#address-cells = &lt;1&gt;; #size-cells = &lt;1&gt;;<\/code>.<\/p>\n<p>  <\/p>\n<p>\u0420\u0430\u0441\u0448\u0438\u0440\u0438\u0432 \u043e\u0442\u043b\u0430\u0434\u043e\u0447\u043d\u044b\u0439 \u0432\u044b\u0432\u043e\u0434, \u044f \u0443\u0432\u0438\u0434\u0435\u043b, \u0447\u0442\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u043d\u0430 <code>type<\/code> \u0438 <code>name<\/code> \u00ab\u043f\u043e\u0431\u0438\u043b\u0438\u0441\u044c\u00bb, \u043f\u0440\u0438\u0447\u0451\u043c \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0441\u0442\u0440\u0430\u043d\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c: \u0443 \u043d\u0438\u0445 \u043e\u0431\u043d\u0443\u043b\u0438\u043b\u0441\u044f \u043f\u0435\u0440\u0432\u044b\u0439 (\u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u043d\u0443\u043b\u044f) \u0431\u0430\u0439\u0442, \u0447\u0442\u043e-\u0442\u043e \u0432\u0440\u043e\u0434\u0435 <code>0xabcdef -&gt; 0xab00ef<\/code>. \u041f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0437\u043d\u0430\u043a\u043e\u043c\u043e\u0439 \u0442\u0430\u043a\u0442\u0438\u043a\u043e\u0439: \u0437\u043d\u0430\u044f \u0430\u0434\u0440\u0435\u0441\u0430, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u043e\u0432\u0440\u0435\u0436\u0434\u0451\u043d\u043d\u0430\u044f \u043f\u0430\u043c\u044f\u0442\u044c, \u0434\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u044e <code>printk<\/code> \u043f\u0435\u0447\u0430\u0442\u044c \u044d\u0442\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445. \u041d\u0443 \u0438 \u0441\u0430\u043c\u0438\u0445 \u0432\u044b\u0437\u043e\u0432\u043e\u0432 <code>printk<\/code> \u043f\u043e\u0440\u0430\u0441\u043a\u0438\u0434\u0430\u0442\u044c, \u0433\u0434\u0435 \u0438\u0445 \u043c\u0430\u043b\u043e. \u0423\u0432\u044b, \u0441\u0438\u043b\u044c\u043d\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u0435\u0435 \u043d\u0435 \u0441\u0442\u0430\u043b\u043e. \u0422\u043e\u0433\u0434\u0430 \u044f \u0441\u0442\u0430\u043b, \u0441\u0432\u0435\u0440\u044f\u044f\u0441\u044c \u0441 \u0434\u0438\u0437\u0430\u0441\u0441\u0435\u043c\u0431\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 <code>objdump<\/code> \u0432\u0435\u0440\u0441\u0438\u0435\u0439, \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0440\u0430\u0441\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c breakpoint-\u044b \u0438 \u043f\u043e \u0448\u0430\u0433\u0430\u043c \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043d\u044b\u0439 \u0443\u0447\u0430\u0441\u0442\u043e\u043a \u043a\u043e\u0434\u0430. \u0418 \u0442\u0443\u0442 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b\u043e\u0441\u044c \u0437\u0430\u0433\u0430\u0434\u043e\u0447\u043d\u043e\u0435 \u0438 \u043d\u0435\u043f\u0440\u0438\u044f\u0442\u043d\u043e\u0435: \u0435\u0441\u043b\u0438 \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0442\u043e\u0447\u043a\u0443 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0430 \u043a\u0443\u0434\u0430-\u043d\u0438\u0431\u0443\u0434\u044c \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0434\u0430\u043b\u0435\u043a\u043e \u043e\u0442 known-good \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f, \u0442\u043e, \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0432\u0448\u0438\u0441\u044c \u043d\u0430 \u043d\u0435\u0439, \u044f \u0443\u0432\u0438\u0436\u0443 \u0443\u0436\u0435 \u043f\u043e\u0432\u0440\u0435\u0436\u0434\u0451\u043d\u043d\u0443\u044e \u043f\u0430\u043c\u044f\u0442\u044c. \u041d\u043e \u0435\u0441\u043b\u0438 \u043f\u043e\u043f\u044b\u0442\u0430\u0442\u044c\u0441\u044f \u0442\u0438\u0445\u043e \u043f\u043e\u0434\u043a\u0440\u0430\u0441\u0442\u044c\u0441\u044f \u043a \u043d\u0435\u0439 \u043f\u043e \u0448\u0430\u0433\u0430\u043c, \u0442\u043e \u043e\u0448\u0438\u0431\u043a\u0430 \u0443\u0441\u043f\u0435\u0432\u0430\u0435\u0442 \u0441\u043f\u0440\u044f\u0442\u0430\u0442\u044c\u0441\u044f! \u0414\u0435\u043b\u043e \u043f\u0430\u0445\u043d\u0435\u0442 \u0431\u0438\u0442\u044b\u043c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u043c \u043f\u0430\u043c\u044f\u0442\u0438 \u0438 \u043a\u0435\u0448\u043e\u043c, \u0441\u043a\u0440\u044b\u0432\u0430\u044e\u0449\u0438\u043c \u043e\u0448\u0438\u0431\u043a\u0443, \u0435\u0441\u043b\u0438 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0442\u044c \u043d\u0443\u0436\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435. \u0410 \u0447\u0442\u043e \u0435\u0441\u043b\u0438&#8230;<\/p>\n<p>  <\/p>\n<h2 id=\"zamenyaem-pamyat\">\u0417\u0430\u043c\u0435\u043d\u044f\u0435\u043c \u043f\u0430\u043c\u044f\u0442\u044c<\/h2>\n<p>  <\/p>\n<p>\u0426\u0435\u043f\u043b\u044f\u044f\u0441\u044c \u0437\u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0440\u0435\u0448\u0438\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u043d\u0435 \u043d\u0430 \u0441\u0432\u043e\u0435\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u0435, \u044f \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u043b, \u0447\u0442\u043e, \u043c\u043e\u0436\u0435\u0442, \u043c\u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u0438\u0448\u043b\u0430 \u0431\u0438\u0442\u0430\u044f \u043f\u043b\u0430\u043d\u043a\u0430 \u043f\u0430\u043c\u044f\u0442\u0438. \u0422\u0443\u0442 \u044f \u0432\u0441\u043f\u043e\u043c\u043d\u0438\u043b, \u0447\u0442\u043e \u043d\u0435\u0442\u0431\u0443\u043a \u0434\u0435\u0441\u044f\u0442\u0438\u043b\u0435\u0442\u043d\u0435\u0439 \u0434\u0430\u0432\u043d\u043e\u0441\u0442\u0438 \u2014 \u044d\u0442\u043e \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0440\u0442\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440, \u043d\u043e \u0438 \u0446\u0435\u043d\u043d\u044b\u0439 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a DDR2 SO-DIMM. \u0411\u043e\u043d\u0443\u0441\u043e\u043c, \u0432 \u043d\u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0441\u0443\u043d\u0443\u0442\u044c \u0432\u044b\u043d\u0443\u0442\u0443\u044e \u0438\u0437 \u043f\u043b\u0430\u0442\u044b \u043f\u0430\u043c\u044f\u0442\u044c, \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u043e\u0447\u0442\u0438 \u043c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u043e\u0435 \u0437\u0430\u0432\u0438\u0441\u0430\u043d\u0438\u0435 Memtest (Linux, \u043a\u0441\u0442\u0430\u0442\u0438, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0433\u0440\u0443\u0437\u0438\u043b\u0441\u044f \u043f\u043e\u0447\u0442\u0438 \u0434\u043e \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0438. <strong>\u041d\u043e \u043b\u0443\u0447\u0448\u0435 \u043d\u0435 \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0439\u0442\u0435 \u0442\u0430\u043a\u043e\u0439 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442, \u0435\u0441\u043b\u0438 \u0432\u0430\u043c \u0434\u043e\u0440\u043e\u0433\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043d\u0430 \u043f\u043e\u0434\u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0434\u0438\u0441\u043a\u0430\u0445&#8230;<\/strong>). \u0421 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b, \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c, \u0447\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0430\u043c\u044f\u0442\u044c \u043d\u0435 \u043f\u043e\u0434\u043e\u0448\u043b\u0430 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e \u043a \u044d\u0442\u043e\u043c\u0443 \u043d\u0435\u0442\u0431\u0443\u043a\u0443. \u0421 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b, \u043e\u043d \u0436\u0435 \u0441\u043c\u043e\u0433 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c\u0441\u044f! \u041f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u043d\u0430\u0434\u0435\u0436\u0434\u0430, \u0447\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0430\u043c\u044f\u0442\u044c \u00ab\u0431\u0438\u0442\u0430\u044f\u00bb, \u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043d\u0435 \u0432 \u043c\u043e\u0435\u0439 \u043e\u0431\u0451\u0440\u0442\u043a\u0435.<\/p>\n<p>  <\/p>\n<p>\u0417\u043d\u0430\u0447\u0438\u0442, \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c\u0441\u044f \u0441 \u043d\u0435\u0442\u0431\u0443\u0447\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u044c\u044e. \u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, Quartus 18 \u043d\u0435 \u0443\u043c\u0435\u0435\u0442 \u0430\u043f\u0433\u0440\u0435\u0439\u0434\u0438\u0442\u044c \u044d\u0442\u043e\u0442 IP Core \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c. \u0417\u043d\u0430\u0447\u0438\u0442, \u0432\u0441\u0451-\u0442\u0430\u043a\u0438 \u043f\u0440\u0438\u0448\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u043d\u0430\u0443\u0447\u0438\u0442\u044c\u0441\u044f \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0435 \u0438\u043d\u0441\u0442\u0430\u043d\u0441\u044b. \u0412\u0441\u0451 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e: \u0438\u0449\u0435\u043c \u0432 IP Catalog \u043f\u0443\u043d\u043a\u0442 DDR2 SDRAM Controller with ALTMEMPHY Intel FPGA IP \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0431\u043b\u043e\u043a \u0441 \u0442\u0430\u043a\u0438\u043c \u0436\u0435 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c, \u043a\u0430\u043a \u0438 \u0440\u0430\u043d\u044c\u0448\u0435. \u0415\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u2014 \u044d\u0442\u043e \u0432\u044b\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u0430\u043c\u044f\u0442\u0438.<\/p>\n<p>  <\/p>\n<h3 id=\"poluchaem-parametry-modulya-pamyati\">\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043c\u043e\u0434\u0443\u043b\u044f \u043f\u0430\u043c\u044f\u0442\u0438<\/h3>\n<p>  <\/p>\n<p>\u0415\u0441\u0442\u044c \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u044c: \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0438\u0437 SPD. \u0414\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e, \u0435\u0441\u043b\u0438 \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440 \u0432\u044b\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 SPD \u0438 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442 \u043f\u043e \u043d\u0438\u043c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440, \u0442\u043e \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0432\u044b\u0447\u0438\u0442\u0430\u0435\u043c \u044d\u0442\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 \u0438\u043c\u0435\u044e\u0449\u0435\u043c\u0441\u044f \u043d\u0435\u0442\u0431\u0443\u043a\u0435 \u0438 \u0432\u043e\u0431\u044c\u0451\u043c \u0438\u0445 \u0432 \u0442\u0430\u0431\u043b\u0438\u0447\u043a\u0443.<\/p>\n<p>  <\/p>\n<p>\u041d\u0430 Ubuntu \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f <a href=\"https:\/\/unix.stackexchange.com\/a\/92044\/251405\">\u0432\u0435\u0441\u044c\u043c\u0430 \u043d\u0435\u0445\u0438\u0442\u0440\u043e<\/a>: \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u0430\u043a\u0435\u0442 <code>i2c-tools<\/code>, \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u0438 <code>eeprom<\/code> \u0438 <code>i2c-i801<\/code> (\u043d\u0435 \u0443\u0432\u0435\u0440\u0435\u043d, \u043f\u0440\u0430\u0432\u0434\u0430, \u0447\u0442\u043e \u0432\u0442\u043e\u0440\u043e\u0439 \u0434\u0440\u0430\u0439\u0432\u0435\u0440 \u043f\u043e\u0434\u043e\u0439\u0434\u0451\u0442 \u0432\u0435\u0437\u0434\u0435), \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c <code>decode-dimms<\/code>:<\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0412\u044b\u0432\u043e\u0434 decode-dimms<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"plaintext\"># decode-dimms version 6231 (2014-02-20 10:54:34 +0100)  Memory Serial Presence Detect Decoder By Philip Edelbrock, Christian Zuckschwerdt, Burkart Lingner, Jean Delvare, Trent Piepho and others  Decoding EEPROM: \/sys\/bus\/i2c\/drivers\/eeprom\/0-0050 Guessing DIMM is in                             bank 1  ---=== SPD EEPROM Information ===--- EEPROM Checksum of bytes 0-62                   OK (0x00) SPD Revision                                    Invalid Fundamental Memory type                         Unknown (0x00)  ---=== Manufacturing Information ===--- Manufacturer                                    Undefined Part Number                                     Undefined  Decoding EEPROM: \/sys\/bus\/i2c\/drivers\/eeprom\/4-0050 Guessing DIMM is in                             bank 1  ---=== SPD EEPROM Information ===--- EEPROM Checksum of bytes 0-62                   OK (0x00) SPD Revision                                    Invalid Fundamental Memory type                         Unknown (0x00)  ---=== Manufacturing Information ===--- Manufacturer                                    Undefined Part Number                                     Undefined  Decoding EEPROM: \/sys\/bus\/i2c\/drivers\/eeprom\/6-0050 Guessing DIMM is in                             bank 1  ---=== SPD EEPROM Information ===--- EEPROM Checksum of bytes 0-62                   OK (0x76) # of bytes written to SDRAM EEPROM              128 Total number of bytes in EEPROM                 256 Fundamental Memory type                         DDR2 SDRAM SPD Revision                                    1.2  ---=== Memory Characteristics ===--- Maximum module speed                            800 MHz (PC2-6400) Size                                            1024 MB Banks x Rows x Columns x Bits                   8 x 13 x 10 x 64 Ranks                                           2 SDRAM Device Width                              16 bits Module Height                                   30.0 mm Module Type                                     SO-DIMM (67.6 mm) DRAM Package                                    Planar Voltage Interface Level                         SSTL 1.8V Module Configuration Type                       No Parity Refresh Rate                                    Reduced (7.8 us) - Self Refresh Supported Burst Lengths                         4, 8 tCL-tRCD-tRP-tRAS                               6-6-6-18 Supported CAS Latencies (tCL)                   6T, 5T, 4T Minimum Cycle Time                              2.50 ns at CAS 6 (tCK min)                                                 3.00 ns at CAS 5                                                 3.75 ns at CAS 4 Maximum Access Time                             0.40 ns at CAS 6 (tAC)                                                 0.45 ns at CAS 5                                                 0.50 ns at CAS 4 Maximum Cycle Time (tCK max)                    8.00 ns  ---=== Timing Parameters ===--- Address\/Command Setup Time Before Clock (tIS)   0.17 ns Address\/Command Hold Time After Clock (tIH)     0.25 ns Data Input Setup Time Before Strobe (tDS)       0.05 ns Data Input Hold Time After Strobe (tDH)         0.12 ns Minimum Row Precharge Delay (tRP)               15.00 ns Minimum Row Active to Row Active Delay (tRRD)   10.00 ns Minimum RAS# to CAS# Delay (tRCD)               15.00 ns Minimum RAS# Pulse Width (tRAS)                 45.00 ns Write Recovery Time (tWR)                       15.00 ns Minimum Write to Read CMD Delay (tWTR)          7.50 ns Minimum Read to Pre-charge CMD Delay (tRTP)     7.50 ns Minimum Active to Auto-refresh Delay (tRC)      60.00 ns Minimum Recovery Delay (tRFC)                   127.50 ns Maximum DQS to DQ Skew (tDQSQ)                  0.20 ns Maximum Read Data Hold Skew (tQHS)              0.30 ns  ---=== Manufacturing Information ===--- Manufacturer                                    Samsung Manufacturing Location Code                     0x02 Part Number                                     M4 70T2864QZ3-CF7 Revision Code                                   0x3351 Manufacturing Date                              2009-W34 Assembly Serial Number                          0x79C64E9A  Number of SDRAM DIMMs detected and decoded: 3<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<p>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0442\u0430\u0439\u043c\u0438\u043d\u0433\u043e\u0432 \u0437\u0434\u0435\u0441\u044c \u043d\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u043e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u043e\u0439\u0434\u0451\u043c \u043f\u043e \u0432\u0442\u043e\u0440\u043e\u043c\u0443 \u043f\u0443\u0442\u0438.<\/p>\n<p>  <\/p>\n<p>\u0427\u0442\u043e \u0443 \u043d\u0430\u0441 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u043d\u0430 \u043c\u043e\u0434\u0443\u043b\u044f\u0445:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ki\/ko\/wq\/kikowqnmhy2udulovzqtnnebg5s.jpeg\" width=\"45%\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/7t\/g2\/l3\/7tg2l30tx8ylwijagknepu0im_o.jpeg\" width=\"45%\"><\/p>\n<p>  <\/p>\n<p>\u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0435\u0435 \u043d\u0430\u0434\u043f\u0438\u0441\u044c \u043d\u0430 \u0441\u0430\u043c\u0438\u0445 \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u0430\u0445 \u043f\u0430\u043c\u044f\u0442\u0438: K4T1G164QQ-HCF7. \u0417\u0430\u0431\u0438\u0432 \u044d\u0442\u0443 \u0441\u0442\u0440\u043e\u0447\u043a\u0443 \u0432 \u0413\u0443\u0433\u043b, \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c datasheet \u043d\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u0435\u0441\u044f\u0442\u043a\u043e\u0432 \u0441\u0442\u0440\u0430\u043d\u0438\u0446 \u0441\u043e \u0432\u0441\u0435\u043c\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u043c\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u0430\u043a\u043a\u0443\u0440\u0430\u0442\u043d\u043e \u043f\u0435\u0440\u0435\u0431\u0438\u0442\u044c \u0432 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 IP Core. \u0422\u043e\u043b\u044c\u043a\u043e \u043e\u0431\u0440\u0430\u0449\u0430\u0439\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0435\u0434\u0438\u043d\u0438\u0446\u044b \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f: \u0433\u0434\u0435-\u0442\u043e <code>ns<\/code>, \u0433\u0434\u0435-\u0442\u043e \u2014 <code>ps<\/code>, \u0430 \u0438\u043d\u043e\u0433\u0434\u0430 \u0438 \u0432\u043e\u043e\u0431\u0449\u0435 \u0434\u043e\u043b\u0438 <code>tCK<\/code>. \u0423\u0447\u0438\u0442\u044c \u0432\u0430\u0441, \u043d\u0430 \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u043e\u0431\u0440\u0430\u0449\u0430\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u044f \u043d\u0435 \u0431\u0443\u0434\u0443 \u2014 \u0441\u0430\u043c \u043c\u043d\u043e\u0433\u043e\u0435 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043b \u043c\u0435\u0442\u043e\u0434\u043e\u043c \u0442\u044b\u043a\u0430 (\u043d\u0435 \u043c\u043e\u0433\u0443 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u0447\u0442\u043e \u0442\u0430\u043a \u043d\u0435\u043b\u044c\u0437\u044f \u00ab\u0441\u0436\u0435\u0447\u044c\u00bb \u043f\u0430\u043c\u044f\u0442\u044c \u0438\u043b\u0438 \u041f\u041b\u0418\u0421). \u041e\u0431\u0440\u0430\u0449\u0443 \u043b\u0438\u0448\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u0432\u043e\u0442 \u043d\u0430 \u0447\u0442\u043e: \u044f \u043e\u0447\u0435\u043d\u044c \u0434\u043e\u043b\u0433\u043e \u043d\u0435 \u043c\u043e\u0433 \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c, \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u043c \u0448\u0430\u0433\u043e\u043c \u0431\u044b\u043b\u043e \u043e\u0441\u043e\u0437\u043d\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0448\u0438\u0440\u0438\u043d\u0443 \u0432\u0441\u0435\u0445 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432 \u043a \u043f\u0430\u043c\u044f\u0442\u0438 \u043d\u0430 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u043c\u0443 \u043a\u043e\u0434\u0443 \u043d\u0430 Verilog: \u0432\u0435\u0434\u044c \u043a\u043e\u0433\u0434\u0430 \u0432 <code>MemIfBundle<\/code> \u0443\u043a\u0430\u0437\u0430\u043d <code>val mem_ba = IO(Output(UInt(2.W)))<\/code>, \u0430 \u0431\u0430\u043d\u043a\u043e\u0432 8 (\u0442.\u0435. \u0430\u0434\u0440\u0435\u0441 \u0448\u0438\u0440\u0438\u043d\u043e\u0439 3 \u0431\u0438\u0442\u0430), \u0442\u043e \u0432\u0441\u0451, \u0447\u0442\u043e \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u2014 \u0432\u0438\u0441\u044f\u0449\u0438\u0439 \u0432 \u0432\u043e\u0437\u0434\u0443\u0445\u0435 output \u0438\u0437 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 \u043f\u0430\u043c\u044f\u0442\u0438 \u2014 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430, \u043d\u043e \u043d\u0435 \u043a\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u0441\u0451 \u0441\u0438\u043d\u0442\u0435\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044f, \u043d\u043e \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.<\/p>\n<p>  <\/p>\n<p>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0432\u0441\u0451 \u0431\u044b \u0437\u0430\u0432\u0435\u043b\u043e\u0441\u044c \u0438 \u0441\u043e \u0441\u0442\u0430\u0440\u044b\u043c \u043c\u043e\u0434\u0443\u043b\u0435\u043c, \u0435\u0441\u043b\u0438 \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440, \u043d\u043e \u043f\u043e\u043a\u0430 \u0447\u0442\u043e \u043c\u043d\u0435 \u043b\u0435\u043d\u044c \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u0441 \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u043f\u043b\u0430\u0432\u0430\u044e\u0449\u0438\u043c\u0438 \u0431\u0430\u0433\u0430\u043c\u0438: \u043c\u043d\u0435 \u0438 \u0441\u0432\u043e\u0438\u0445 \u0445\u0432\u0430\u0442\u0430\u0435\u0442.<\/p>\n<p>  <\/p>\n<p>\u0418\u0442\u0430\u043a, \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u044f <code>timebase-frequency<\/code> \u0432 DTS \u0441 \u0443\u0440\u043e\u0432\u043d\u044f \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e CPU \u043d\u0430 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0443\u0437\u043b\u0430 <code>cpus<\/code> (\u043f\u043e \u0432\u043f\u043e\u043b\u043d\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u043e \u0441\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0439 \u043f\u0440\u043e\u0441\u044c\u0431\u0435 \u044f\u0434\u0440\u0430), \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c:<\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"plaintext\">[    0.000000] OF: fdt: Ignoring memory range 0x80000000 - 0x80200000 [    0.000000] Linux version 4.19.0-sifive-1+ (trosinenko@trosinenko-pc) (gcc version 8.3.0 (Buildroot 2019.02-07449-g4eddd28f99)) #1 SMP Tue Jul 9 22:42:36 MSK 2019 [    0.000000] bootconsole [early0] enabled [    0.000000] Initial ramdisk at: 0x(____ptrval____) (16777216 bytes) [    0.000000] Zone ranges: [    0.000000]   DMA32    [mem 0x0000000080200000-0x00000000bfffffff] [    0.000000]   Normal   [mem 0x00000000c0000000-0x00000bffffffffff] [    0.000000] Movable zone start for each node [    0.000000] Early memory node ranges [    0.000000]   node   0: [mem 0x0000000080200000-0x00000000bfffffff] [    0.000000] Initmem setup node 0 [mem 0x0000000080200000-0x00000000bfffffff] [    0.000000] software IO TLB: mapped [mem 0xbb1fc000-0xbf1fc000] (64MB) [    0.000000] elf_hwcap is 0x112d [    0.000000] percpu: Embedded 17 pages\/cpu @(____ptrval____) s29400 r8192 d32040 u69632 [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 258055 [    0.000000] Kernel command line: debug console=ttySIF0,125200 root=\/dev\/mmcblk0p2 loglevel=7 rootwait [    0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes) [    0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes) [    0.000000] Sorting __ex_table... [    0.000000] Memory: 937696K\/1046528K available (6565K kernel code, 343K rwdata, 2564K rodata, 208K init, 832K bss, 108832K reserved, 0K cma-reserved) [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [    0.000000] rcu: Hierarchical RCU implementation. [    0.000000] rcu:     RCU event tracing is enabled. [    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1. [    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1 [    0.000000] NR_IRQS: 0, nr_irqs: 0, preallocated irqs: 0 [    0.000000] plic: mapped 8 interrupts to 1 (out of 2) handlers. [    0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x1d854df40, max_idle_ns: 3526361616960 ns [    0.000000] Console: colour dummy device 80x25 [    0.000000] Calibrating delay loop (skipped), value calculated using timer frequency.. 2.00 BogoMIPS (lpj=10000) [    0.020000] pid_max: default: 32768 minimum: 301 [    0.030000] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes) [    0.040000] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes) [    0.140000] rcu: Hierarchical SRCU implementation. [    0.190000] smp: Bringing up secondary CPUs ... [    0.190000] smp: Brought up 1 node, 1 CPU [    0.220000] devtmpfs: initialized [    0.300000] random: get_random_u32 called from bucket_table_alloc+0x76\/0x17a with crng_init=0 [    0.330000] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [    0.340000] futex hash table entries: 256 (order: 2, 16384 bytes) [    0.380000] NET: Registered protocol family 16 [    1.850000] vgaarb: loaded [    1.870000] SCSI subsystem initialized [    1.900000] usbcore: registered new interface driver usbfs [    1.910000] usbcore: registered new interface driver hub [    1.920000] usbcore: registered new device driver usb [    1.930000] pps_core: LinuxPPS API ver. 1 registered [    1.940000] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti &lt;giometti@linux.it&gt; [    1.950000] PTP clock support registered [    1.970000] Advanced Linux Sound Architecture Driver Initialized. [    2.010000] clocksource: Switched to clocksource riscv_clocksource [    2.600000] NET: Registered protocol family 2 [    2.640000] tcp_listen_portaddr_hash hash table entries: 512 (order: 1, 8192 bytes) [    2.650000] TCP established hash table entries: 8192 (order: 4, 65536 bytes) [    2.670000] TCP bind hash table entries: 8192 (order: 5, 131072 bytes) [    2.700000] TCP: Hash tables configured (established 8192 bind 8192) [    2.720000] UDP hash table entries: 512 (order: 2, 16384 bytes) [    2.730000] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes) [    2.750000] NET: Registered protocol family 1 [    2.770000] Unpacking initramfs... [   23.980000] Initramfs unpacking failed: junk in compressed archive [   24.030000] workingset: timestamp_bits=62 max_order=18 bucket_order=0 [   25.020000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251) [   25.030000] io scheduler noop registered [   25.040000] io scheduler deadline registered [   25.050000] io scheduler cfq registered (default) [   25.060000] io scheduler mq-deadline registered [   25.060000] io scheduler kyber registered [   25.120000] sifive_gpio 64002000.gpio: SiFive GPIO chip registered 6 GPIOs [   25.150000] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4 [   28.870000] Serial: 8250\/16550 driver, 4 ports, IRQ sharing disabled [   28.940000] sifive-serial 64000000.serial: unable to find controller clock [   28.950000] sifive-serial: probe of 64000000.serial failed with error -2 [   28.980000] [drm] radeon kernel modesetting enabled. [   28.990000] [drm] amdgpu kernel modesetting enabled. [   29.500000] loop: module loaded [   29.610000] sifive_spi 64001000.spi: Unable to find bus clock [   29.620000] sifive_spi: probe of 64001000.spi failed with error -2 [   29.640000] libphy: Fixed MDIO Bus: probed [   29.680000] e1000e: Intel(R) PRO\/1000 Network Driver - 3.2.6-k [   29.690000] e1000e: Copyright(c) 1999 - 2015 Intel Corporation. [   29.700000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [   29.710000] ehci-pci: EHCI PCI platform driver [   29.720000] ehci-platform: EHCI generic platform driver [   29.750000] mousedev: PS\/2 mouse device common for all mice [   29.790000] usbcore: registered new interface driver usbhid [   29.800000] usbhid: USB HID core driver [   29.820000] usbcore: registered new interface driver snd-usb-audio [   29.900000] NET: Registered protocol family 10 [   29.960000] Segment Routing with IPv6 [   29.960000] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver [   30.020000] NET: Registered protocol family 17 [   30.020000] Key type dns_resolver registered [   30.070000] bootconsole [early0] uses init memory and must be disabled even before the real one is ready [   30.080000] bootconsole [early0] disabled<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u043d\u0438\u0447\u0435\u0433\u043e \u0432\u0438\u0434\u0438\u043c\u043e\u0433\u043e \u043d\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442.<\/p>\n<\/div>\n<\/div>\n<p>  <\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0431\u043e\u0440\u043e\u0442\u044c\u0441\u044f \u0441 \u0442\u0440\u0435\u043c\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u043c\u0438:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">[   23.980000] Initramfs unpacking failed: junk in compressed archive ... [   28.940000] sifive-serial 64000000.serial: unable to find controller clock ... [   29.610000] sifive_spi 64001000.spi: Unable to find bus clock<\/code><\/pre>\n<p>  <\/p>\n<p>\u2026 \u0430 \u0442\u0430\u043a\u0436\u0435 \u0441 \u043f\u0440\u0435\u043a\u0440\u0430\u0449\u0435\u043d\u0438\u0435\u043c \u0432\u044b\u0432\u043e\u0434\u0430 \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c.<\/p>\n<p>  <\/p>\n<p>\u0421 \u0434\u0432\u0443\u043c\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u043c\u0438 \u0441 \u0447\u0430\u0441\u0442\u043e\u0442\u0430\u043c\u0438 \u043f\u043e\u0431\u043e\u0440\u043e\u0442\u044c\u0441\u044f \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435\u0441\u043b\u043e\u0436\u043d\u043e: \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u0443\u043d\u043a\u0442\u044b <code>clocks<\/code> \u0432 \u043f\u043e\u0434\u0434\u0435\u0440\u0435\u0432\u044c\u044f \u0442\u0440\u0435\u0431\u0443\u0435\u043c\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432, \u0434\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u0434\u0430\u0432 \u043f\u043e\u043d\u044f\u0442\u043d\u043e\u0435 \u0438\u043c\u044f \u043c\u0435\u0442\u043a\u0438 \u0434\u043b\u044f \u0443\u0437\u043b\u0430 <code>tlclk<\/code>:<\/p>\n<p>  <\/p>\n<pre><code class=\"diff\">diff --git a\/arch\/riscv\/dts\/zeowaa-1gb.dts b\/arch\/riscv\/dts\/zeowaa-1gb.dts index 4b2cebc..1347e76 100644 --- a\/arch\/riscv\/dts\/zeowaa-1gb.dts +++ b\/arch\/riscv\/dts\/zeowaa-1gb.dts @@ -96,6 +97,7 @@                  L8: serial@64000000 {                          compatible = \"sifive,uart0\";                          interrupt-parent = &lt;&amp;L0&gt;; +                        clocks = &lt;&amp;tlclk&gt;;                          interrupts = &lt;2&gt;;                          reg = &lt;0x64000000 0x1000&gt;;                          reg-names = \"control\"; @@ -107,6 +109,7 @@                          interrupt-parent = &lt;&amp;L0&gt;;                          interrupts = &lt;1&gt;;                          reg = &lt;0x64001000 0x1000&gt;; +                        clocks = &lt;&amp;tlclk&gt;;                          reg-names = \"control\";                          L12: mmc@0 {                                  compatible = \"mmc-spi-slot\"; @@ -116,7 +119,7 @@                                  voltage-ranges = &lt;3300 3300&gt;;                          };                  }; -                L11: tlclk { +                tlclk: tlclk {                          #clock-cells = &lt;0&gt;;                          clock-frequency = &lt;25000000&gt;;                          clock-output-names = \"tlclk\";<\/code><\/pre>\n<p>  <\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u0432 \u0441\u0442\u0440\u043e\u0447\u043a\u0443 <code>#define pr_debug printk<\/code> \u0432 \u043d\u0430\u0447\u0430\u043b\u043e \u0444\u0430\u0439\u043b\u0430 <code>init\/initramfs.c<\/code>, \u0432\u044b\u0432\u043e\u0434\u044f\u0449\u0435\u0433\u043e \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043f\u0440\u043e \u043c\u0443\u0441\u043e\u0440 \u0432\u043c\u0435\u0441\u0442\u043e initramfs \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0447\u0443\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">[    2.760000] Unpacking initramfs... [    2.770000] Detected gzip compressed data [   23.940000] Detected (null) compressed data [   23.970000] Initramfs unpacking failed: junk in compressed archive<\/code><\/pre>\n<p>  <\/p>\n<p>\u0422\u043e \u0435\u0441\u0442\u044c, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043c\u0443\u0441\u043e\u0440 \u043d\u0435 <strong>\u0432\u043c\u0435\u0441\u0442\u043e<\/strong> initramfs, \u0430 <strong>\u0432\u043c\u0435\u0441\u0442\u0435<\/strong>.<\/p>\n<p>  <\/p>\n<p>\u041e\u043a\u0435\u0439, \u0447\u0442\u043e-\u0442\u043e \u043e\u043d \u043d\u0430\u0448\u0451\u043b, \u043c\u043e\u0436\u0435\u0442, \u0438 \u044d\u0442\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e. \u0410 \u043a\u0443\u0434\u0430 \u0434\u0435\u043b\u0430\u0441\u044c \u043a\u043e\u043d\u0441\u043e\u043b\u044c? \u041f\u043e\u0438\u0441\u043a \u0434\u0430\u0451\u0442 \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 issue \u043d\u0430 \u0413\u0438\u0442\u0445\u0430\u0431\u0435: <a href=\"https:\/\/github.com\/sifive\/freedom-u-sdk\/issues\/62#issuecomment-403684481\">linux failed to bringup on vc707 board<\/a> \u2014 \u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u043e\u0434\u0438\u043d UART \u044d\u0442\u043e, \u043f\u043e \u043c\u043d\u0435\u043d\u0438\u044e \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0430, \u0434\u0430\u0436\u0435 \u043d\u0435 \u0441\u0442\u043e\u0438\u0442 \u0440\u0430\u0437\u0433\u043e\u0432\u043e\u0440\u043e\u0432. \u041d\u043e <a href=\"https:\/\/github.com\/sifive\/freedom-u-sdk\/pull\/64\">\u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435<\/a> \u0434\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043e 11 \u0438\u044e\u043b\u044f 2018 \u0433\u043e\u0434\u0430 \u2014 \u0433\u043e\u0434 \u043d\u0430\u0437\u0430\u0434. \u041e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u044d\u0442\u043e\u0442 \u043a\u043e\u043c\u043c\u0438\u0442 \u0442\u0430\u043a \u0438 \u043d\u0435 \u043f\u043e\u043f\u0430\u043b \u0432 \u0434\u0435\u0440\u0435\u0432\u043e, \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0443 \u043c\u0435\u043d\u044f \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u044f\u0434\u0440\u043e. \u0412\u0440\u0443\u0447\u043d\u0443\u044e \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0432 \u044d\u0442\u043e\u0442 \u043f\u0430\u0442\u0447, \u044f \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0439 \u041b\u0438\u043d\u0443\u043a\u0441! \u041e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0441 initramfs \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0431\u044b\u043b\u0430, \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e, \u043d\u0435 \u043a\u0440\u0438\u0442\u0438\u0447\u043d\u0430\u044f.<\/p>\n<p>  <\/p>\n<p>\u0417\u0430\u043b\u043e\u0433\u0438\u043d\u0438\u0432\u0448\u0438\u0441\u044c \u043a\u0430\u043a user=root, password=sifive, \u044f \u0441\u043c\u043e\u0433 \u0431\u0435\u0437 \u043e\u0441\u043e\u0431\u044b\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c (\u043a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043d\u044f\u0442\u044c, \u0447\u0442\u043e \u0443 \u043d\u043e\u043c\u0435\u0440\u0430 GPIO \u0435\u0441\u0442\u044c base, \u043e\u0442 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0432\u0441\u0451 \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f, \u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0438\u0437 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e \u043f\u0441\u0435\u0432\u0434\u043e-\u0444\u0430\u0439\u043b\u0430) \u0447\u0435\u0440\u0435\u0437 <code>sysfs<\/code> \u0437\u0430\u0436\u0435\u0447\u044c \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 \u043d\u0430 \u043f\u043b\u0430\u0442\u0435.<\/p>\n<p>  <\/p>\n<p>\u041a\u0430\u043a \u0438 \u0432 \u043f\u0440\u043e\u0448\u043b\u044b\u0439 \u0440\u0430\u0437, \u043f\u0440\u0438\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u044e \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0435 \u0432\u0438\u0434\u0435\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430 Linux. \u0412 \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u0441 earlyprintk \u043d\u0430 \u0448\u0442\u0430\u0442\u043d\u0443\u044e \u0438\u0434\u0451\u0442 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043c\u0443\u0441\u043e\u0440, \u043f\u043e\u0445\u043e\u0436\u0438\u0439 \u043d\u0430 \u0432\u044b\u0432\u043e\u0434 \u043f\u0440\u0438 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u0439 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 UART. \u0427\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u043f\u043b\u0435\u0435\u0440 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u043e\u0442\u0440\u0430\u0431\u043e\u0442\u0430\u043b \u044d\u0442\u0443 \u00ab\u043a\u0430\u0448\u0443\u00bb.<\/p>\n<p>  <\/p>\n<p><a href=\"https:\/\/asciinema.org\/a\/256637\"><img decoding=\"async\" src=\"https:\/\/asciinema.org\/a\/256637.svg\"><\/a><\/p>\n<\/div>\n<p>               <script class=\"js-mediator-script\">!function(e){function t(t,n){if(!(n in e)){for(var r,a=e.document,i=a.scripts,o=i.length;o--;)if(-1!==i[o].src.indexOf(t)){r=i[o];break}if(!r){r=a.createElement(\"script\"),r.type=\"text\/javascript\",r.async=!0,r.defer=!0,r.src=t,r.charset=\"UTF-8\";var d=function(){var e=a.getElementsByTagName(\"script\")[0];e.parentNode.insertBefore(r,e)};\"[object Opera]\"==e.opera?a.addEventListener?a.addEventListener(\"DOMContentLoaded\",d,!1):e.attachEvent(\"onload\",d):d()}}}t(\"\/\/mediator.mail.ru\/script\/2820404\/\",\"_mediator\")}(window);<\/script>     <br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/459470\/\"> https:\/\/habr.com\/ru\/post\/459470\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\">\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/wq\/cw\/ae\/wqcwaewtqxjju-xcycuspdxaipe.jpeg\" width=\"45%\" align=\"left\"> <em>\u041d\u0430 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435 Linux kernel \u0448\u043b\u0451\u0442 \u0432\u0430\u043c \u043f\u0440\u0438\u0432\u0435\u0442 \u0447\u0435\u0440\u0435\u0437 GPIO.<\/em><\/p>\n<p>  <\/p>\n<p>\u0412 \u044d\u0442\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \u0441 \u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c RISC-V RocketChip \u043d\u0430 \u043a\u0438\u0442\u0430\u0439\u0441\u043a\u0443\u044e \u043f\u043b\u0430\u0442\u0443 \u0441 Cyclone IV \u043c\u044b \u0432\u0441\u0451-\u0442\u0430\u043a\u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c Linux, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043d\u0430\u0443\u0447\u0438\u043c\u0441\u044f \u0441\u0430\u043c\u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c IP Core \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 \u043f\u0430\u043c\u044f\u0442\u0438 \u0438 \u0447\u0443\u0442\u044c \u043f\u043e\u0434\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c dts-\u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u0443\u0440\u044b. \u042d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435\u043c <a href=\"https:\/\/habr.com\/ru\/post\/458482\/\">\u0442\u0440\u0435\u0442\u044c\u0435\u0439 \u0447\u0430\u0441\u0442\u0438<\/a>, \u043d\u043e, \u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 \u0438\u0437\u0440\u044f\u0434\u043d\u043e \u0440\u0430\u0437\u0440\u043e\u0441\u0448\u0435\u0439\u0441\u044f \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439, \u043e\u043d\u0430 \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043a\u043e\u0440\u043e\u0442\u043a\u043e\u0439.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-291888","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/291888","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=291888"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/291888\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=291888"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=291888"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=291888"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}