{"id":80719,"date":"2026-03-05T21:25:16","date_gmt":"2026-03-05T13:25:16","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/80719.html"},"modified":"2026-03-05T21:25:16","modified_gmt":"2026-03-05T13:25:16","slug":"raspi%e8%a3%b8%e6%9c%ba3%ef%bc%88%e5%a4%9a%e6%a0%b8%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/80719.html","title":{"rendered":"RASPI\u88f8\u673a3\uff08\u591a\u6838\uff09"},"content":{"rendered":"<h2>1 \u57fa\u672c\u6d41\u7a0b<\/h2>\n<p>\u4ee3\u7801\u6765\u81ea&#xff1a;https:\/\/github.com\/bztsrc\/raspi3-tutorial\/tree\/master\/02_multicorec<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"288\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260305132514-69a9843a9bca3.png\" width=\"402\" \/><\/p>\n<p>Makefile\u7684\u6d41\u7a0b\u53ef\u4ee5\u770b\u5230&#xff0c;\u548c\u4e0a\u4e00\u7bc7\u6539\u52a8\u4e5f\u4e0d\u662f\u5f88\u5927\u3002\u4fee\u6539\u7684\u5185\u5bb9\u6709\u4e09\u70b9&#xff0c;\u9996\u5148\u8fd8\u662f\u4e4b\u524d\u7684\u90a3\u4e24\u70b9&#xff1a;<\/p>\n<p>1 \u7f16\u8bd1\u5668\u6539\u6210aarch64-linux-gnu-gcc&#xff0c;\u91cc\u9762\u6709-ffreestanding -nostdinc\u5012\u662f\u4e0d\u7528\u518d\u52a0\u53c2\u6570\u3002<\/p>\n<p>2\u00a0\u00a0-Wl,&#8211;hash-style&#061;sysv&#xff0c;\u589e\u52a0\u8fd9\u4e2a\u53c2\u6570<\/p>\n<p>\u8fd8\u6709\u4e00\u4e2a\u5c31\u662f\u8fd9\u6b21\u589e\u52a0\u4e86.c\u6587\u4ef6\u3002<\/p>\n<p>\u503c\u5f97\u6ce8\u610f\u7684\u5c31\u662f\u589e\u52a0\u4e86<\/p>\n<p>SRCS &#061; $(wildcard *.c)<\/p>\n<p>OBJS &#061; $(SRCS:.c&#061;.o)<\/p>\n<\/p>\n<p>kernel8.img: start.o $(OBJS)<\/p>\n<p>\u8fd9\u91cc\u8868\u793a\u628a\u6240\u6709\u7684.c\u7f16\u8bd1\u5e76\u8fde\u63a5\u5230\u6700\u7ec8\u7684\u955c\u50cf&#xff0c;\u8fd9\u91cc\u7684\u7b2c\u4e09\u884c\u662f\u6307\u660e\u4e86\u4f9d\u8d56&#xff0c;\u53ea\u8981\u6709\u6539\u52a8.c\u5c31\u4f1a\u91cd\u65b0\u751f\u6210img\u3002\u6211\u4ee5\u524d\u5199makefile\u597d\u50cf\u5c31\u6ca1\u52a0\u8fd9\u4e2a&#xff0c;\u5bfc\u81f4\u90fd\u8981\u624b\u52a8\u64cd\u4f5c\u3002\u4eca\u5929\u53c8\u5b66\u5230\u4e86\u3002<\/p>\n<\/p>\n<p>\u6539\u5b8c\u5982\u4e0b&#xff1a;<\/p>\n<p>SRCS &#061; $(wildcard *.c)<br \/>\nOBJS &#061; $(SRCS:.c&#061;.o)<br \/>\nCFLAGS &#061; -Wall -O2 -ffreestanding -nostdinc -nostdlib -nostartfiles<\/p>\n<p>all: clean kernel8.img<\/p>\n<p>start.o: start.S<br \/>\naarch64-linux-gnu-gcc $(CFLAGS) -c start.S -o start.o<\/p>\n<p>%.o: %.c<br \/>\naarch64-linux-gnu-gcc $(CFLAGS) -c $&lt; -o $&#064;<\/p>\n<p>kernel8.img: start.o $(OBJS)<br \/>\naarch64-linux-gnu-gcc -nostdlib -nostartfiles -Wl,&#8211;hash-style&#061;sysv start.o $(OBJS) -T link.ld -o kernel8.elf<br \/>\naarch64-linux-gnu-objcopy -O binary kernel8.elf kernel8.img<\/p>\n<p>clean:<br \/>\nrm kernel8.elf *.o &gt;\/dev\/null 2&gt;\/dev\/null || true<\/p>\n<p>run:<br \/>\nqemu-system-aarch64 -M raspi3b -kernel kernel8.img -d in_asm<\/p>\n<p>\u4e4b\u540e\u5c31\u662f\u5f88\u6b63\u5e38\u7684\u7f16\u8bd1\u5c31\u8fc7\u4e86\u3002\u6709\u4e24\u4e2awarning&#xff0c;\u4f46\u662f\u4e0d\u5f71\u54cd\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"165\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260305132514-69a9843ab920f.png\" width=\"1490\" \/><\/p>\n<\/p>\n<h2>2 main.c<\/h2>\n<p>void main()<br \/>\n{<br \/>\n    while(1);<br \/>\n}<\/p>\n<p>\u57fa\u672c\u4e0a\u4e5f\u6ca1\u4ec0\u4e48\u5185\u5bb9\u3002\u4f46\u662f\u8fd9\u4e2amain\u4f1a\u6700\u540e\u94fe\u63a5\u5230img\u4e2d\u3002<\/p>\n<\/p>\n<h2>3 link.ld<\/h2>\n<p>SECTIONS<br \/>\n{<br \/>\n    . &#061; 0x80000;<br \/>\n    .text : { KEEP(*(.text.boot)) *(.text .text.* .gnu.linkonce.t*) }<br \/>\n    .rodata : { *(.rodata .rodata.* .gnu.linkonce.r*) }<br \/>\n    PROVIDE(_data &#061; .);<br \/>\n    .data : { *(.data .data.* .gnu.linkonce.d*) }<br \/>\n    .bss (NOLOAD) : {<br \/>\n        . &#061; ALIGN(16);<br \/>\n        __bss_start &#061; .;<br \/>\n        *(.bss .bss.*)<br \/>\n        *(COMMON)<br \/>\n        __bss_end &#061; .;<br \/>\n    }<br \/>\n    _end &#061; .;<\/p>\n<p>   \/DISCARD\/ : { *(.comment) *(.gnu*) *(.note*) *(.eh_frame*) }<br \/>\n}<br \/>\n__bss_size &#061; (__bss_end &#8211; __bss_start)&gt;&gt;3; <\/p>\n<p>link\u53ef\u4ee5\u770b\u5230&#xff0c;\u8fd9\u6b21\u589e\u52a0\u4e86\u51e0\u4e2a\u6570\u636e\u5206\u533a&#xff0c;rodata&#xff0c;text&#xff0c;data&#xff0c;bss\u3002<\/p>\n<p>BSS\u6bb5\u7684\u5185\u5bb9\u6709(NOLOAD)&#xff0c;\u544a\u8bc9objcopy&#xff0c;\u8fd9\u4e00\u6bb5\u5728img\u4e2d\u4e0d\u5360\u7a7a\u95f4\u3002ALIGN(16)\u662f\u5185\u5b58\u5bf9\u9f50\u3002*(COMMON)\u517c\u5bb9\u8001\u5f0fC\u7f16\u8bd1\u5668\u3002<\/p>\n<p>__bss_size &#061; (__bss_end &#8211; __bss_start)&gt;&gt;3;\u8fd9\u91cc\u7684&gt;&gt;3\u8868\u793a\u9664\u4ee58&#xff0c;\u56e0\u4e3a\u6bcf\u6b21\u5faa\u73af\u6e05\u7a7a 8 \u4e2a\u5b57\u8282&#xff08;\u4e00\u4e2a 64 \u4f4d\u5bc4\u5b58\u5668&#xff09;\u3002<\/p>\n<\/p>\n<h2>4 start.S<\/h2>\n<p>\u6539\u52a8\u6700\u5927\u7684\u662fstrat.s<\/p>\n<p>.section &#034;.text.boot&#034;<\/p>\n<p>.global _start<\/p>\n<p>_start:<br \/>\n    \/\/ read cpu id, stop slave cores<br \/>\n    mrs     x1, mpidr_el1<br \/>\n    and     x1, x1, #3<br \/>\n    cbz     x1, 2f<br \/>\n    \/\/ cpu id &gt; 0, stop<br \/>\n1:  wfe<br \/>\n    b       1b<br \/>\n2:  \/\/ cpu id &#061;&#061; 0<\/p>\n<p>    \/\/ set top of stack just before our code (stack grows to a lower address per AAPCS64)<br \/>\n    ldr     x1, &#061;_start<br \/>\n    mov     sp, x1<\/p>\n<p>    \/\/ clear bss<br \/>\n    ldr     x1, &#061;__bss_start<br \/>\n    ldr     w2, &#061;__bss_size<br \/>\n3:  cbz     w2, 4f<br \/>\n    str     xzr, [x1], #8<br \/>\n    sub     w2, w2, #1<br \/>\n    cbnz    w2, 3b<\/p>\n<p>    \/\/ jump to C code, should not return<br \/>\n4:  bl      main<br \/>\n    \/\/ for failsafe, halt this core too<br \/>\n    b       1b <\/p>\n<p>\u4ee3\u7801\u8bf4\u660e\u8bf4\u4e0b&#xff1a;<\/p>\n<p>\u591a\u6838\u8fd0\u884c&#xff1a;<\/p>\n<p>\/\/ read cpu id, stop slave cores<\/p>\n<p>mrs \u00a0 \u00a0 x1, mpidr_el1 \u00a0 \u00a0\/\/ \u4ece\u5bc4\u5b58\u5668mpidr_el1\u8bfb\u53d6\u591a\u6838\u6807\u8bc6\u5bc4\u5b58\u5668 and \u00a0 \u00a0 x1, x1, #3 \u00a0 \u00a0 \u00a0 \/\/ \u63a9\u7801\u64cd\u4f5c&#xff0c;\u53ea\u4fdd\u7559\u6700\u540e\u4e24\u4f4d&#xff08;\u6838\u5fc3\u7f16\u53f7 0, 1, 2, 3&#xff09; cbz \u00a0 \u00a0 x1, 2f \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \/\/ \u5982\u679c\u7f16\u53f7\u662f 0&#xff0c;\u8df3\u8f6c\u5230\u6807\u7b7e 2:&#xff08;\u4e3b\u6838\u903b\u8f91&#xff09;<\/p>\n<p>\/\/ cpu id &gt; 0, stop 1: \u00a0wfe \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\/\/ \u5982\u679c\u7f16\u53f7 &gt; 0&#xff0c;\u6267\u884c WFE&#xff08;\u7b49\u5f85\u4e8b\u4ef6&#xff0c;\u4f4e\u529f\u8017\u7761\u7720&#xff09; \u00a0 \u00a0 b \u00a0 \u00a0 \u00a0 1b \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \/\/ \u7761\u7720\u9192\u6765\u540e\u7ee7\u7eed\u8df3\u56de 1: \u5f62\u6210\u6b7b\u5faa\u73af<\/p>\n<p>\u8bbe\u7f6e\u6808\u6307\u9488&#xff1a;<\/p>\n<p>\u5f53\u53d1\u73b0CPU\u7684id\u662f0\u65f6\u5230\u8fd9\u91cc\u3002<\/p>\n<p>2: \u00a0ldr \u00a0 \u00a0 x1, &#061;_start \u00a0\/\/ \u83b7\u53d6 _start \u6807\u7b7e\u7684\u5730\u5740&#xff08;\u5373 0x80000&#xff09; \u00a0 \u00a0 mov \u00a0 \u00a0 sp, x1 \u00a0 \u00a0 \u00a0 \/\/ \u5c06\u8fd9\u4e2a\u5730\u5740\u8d4b\u7ed9\u6808\u6307\u9488\u5bc4\u5b58\u5668 SP<\/p>\n<p>\u6e05\u7a7aBSS<\/p>\n<p>\u6309\u7167C\u8bed\u8a00\u89c4\u8303&#xff0c;BSS\u7684\u672a\u521d\u59cb\u5316\u7684\u5168\u5c40\u53d8\u91cf\u5fc5\u987b\u6e05\u96f6&#xff0c;\u8fd9\u90e8\u5206\u5b9e\u9645\u4e0a\u4e5f\u662f\u624b\u52a8\u505a\u7684\u3002<\/p>\n<p>ldr \u00a0 \u00a0 x1, &#061;__bss_start \u00a0\/\/ \u4ece\u94fe\u63a5\u811a\u672c\u83b7\u53d6 BSS \u6bb5\u7684\u8d77\u59cb\u5730\u5740 \u00a0 \u00a0 ldr \u00a0 \u00a0 w2, &#061;__bss_size \u00a0 \/\/ \u4ece\u94fe\u63a5\u811a\u672c\u83b7\u53d6 BSS \u6bb5\u7684\u5927\u5c0f 3: \u00a0cbz \u00a0 \u00a0 w2, 4f \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\/\/ \u5982\u679c\u5927\u5c0f\u4e3a 0&#xff0c;\u8df3\u8fc7\u6e05\u96f6\u76f4\u63a5\u53bb 4: \u00a0 \u00a0 str \u00a0 \u00a0 xzr, [x1], #8 \u00a0 \u00a0 \/\/ \u5c06 64 \u4f4d\u96f6\u5bc4\u5b58\u5668 (xzr) \u5199\u5165 x1 \u6307\u5411\u7684\u5185\u5b58&#xff0c;\u5e76\u5c06 x1 \u540e\u79fb 8 \u5b57\u8282 \u00a0 \u00a0 sub \u00a0 \u00a0 w2, w2, #1 \u00a0 \u00a0 \u00a0 \u00a0\/\/ \u8ba1\u6570\u5668\u51cf 1 \u00a0 \u00a0 cbnz \u00a0 \u00a0w2, 3b \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\/\/ \u5982\u679c\u8ba1\u6570\u5668\u4e0d\u4e3a 0&#xff0c;\u7ee7\u7eed\u5faa\u73af<\/p>\n<p>\u8df3\u8f6c\u5230main<\/p>\n<p>4: \u00a0bl \u00a0 \u00a0 \u00a0main \u00a0 \u00a0\/\/ Branch with Link&#xff1a;\u8df3\u8f6c\u5230 main \u51fd\u6570&#xff0c;\u5e76\u628a\u8fd4\u56de\u5730\u5740\u5b58\u5728 lr \u5bc4\u5b58\u5668 \u00a0 \u00a0 b \u00a0 \u00a0 \u00a0 1b \u00a0 \u00a0 \u00a0\/\/ \u4e07\u4e00 main \u51fd\u6570\u8fd4\u56de\u4e86&#xff08;\u901a\u5e38\u4e0d\u5e94\u8be5&#xff09;&#xff0c;\u8ba9 Core 0 \u4e5f\u53bb\u7761\u7720\u6b7b\u5faa\u73af<\/p>\n<\/p>\n<h2>5 \u8fd0\u884c<\/h2>\n<p>\u5bf9kernel8.elf\u8fdb\u884c\u53cd\u6c47\u7f16\u5206\u6790\u7ed3\u679c\u5982\u4e0b&#xff1a;<\/p>\n<p>aarch64-linux-gnu-objdump -d kernel8.elf<\/p>\n<p>kernel8.elf: \u00a0 \u00a0 file format elf64-littleaarch64<\/p>\n<p> Disassembly of section .text:<\/p>\n<p>0000000000080000 &lt;_start&gt;: \u00a0 \u00a080000: \u00a0 \u00a0 \u00a0 d53800a1 \u00a0 \u00a0 \u00a0 \u00a0mrs \u00a0 \u00a0 x1, mpidr_el1 \u00a0 \u00a080004: \u00a0 \u00a0 \u00a0 92400421 \u00a0 \u00a0 \u00a0 \u00a0and \u00a0 \u00a0 x1, x1, #0x3 \u00a0 \u00a080008: \u00a0 \u00a0 \u00a0 b4000061 \u00a0 \u00a0 \u00a0 \u00a0cbz \u00a0 \u00a0 x1, 80014 &lt;_start&#043;0x14&gt; \u00a0 \u00a08000c: \u00a0 \u00a0 \u00a0 d503205f \u00a0 \u00a0 \u00a0 \u00a0wfe \u00a0 \u00a080010: \u00a0 \u00a0 \u00a0 17ffffff \u00a0 \u00a0 \u00a0 \u00a0b \u00a0 \u00a0 \u00a0 8000c &lt;_start&#043;0xc&gt; \u00a0 \u00a080014: \u00a0 \u00a0 \u00a0 58000161 \u00a0 \u00a0 \u00a0 \u00a0ldr \u00a0 \u00a0 x1, 80040 &lt;_start&#043;0x40&gt; \u00a0 \u00a080018: \u00a0 \u00a0 \u00a0 9100003f \u00a0 \u00a0 \u00a0 \u00a0mov \u00a0 \u00a0 sp, x1 \u00a0 \u00a08001c: \u00a0 \u00a0 \u00a0 58000161 \u00a0 \u00a0 \u00a0 \u00a0ldr \u00a0 \u00a0 x1, 80048 &lt;_start&#043;0x48&gt; \u00a0 \u00a080020: \u00a0 \u00a0 \u00a0 180000e2 \u00a0 \u00a0 \u00a0 \u00a0ldr \u00a0 \u00a0 w2, 8003c &lt;_start&#043;0x3c&gt; \u00a0 \u00a080024: \u00a0 \u00a0 \u00a0 34000082 \u00a0 \u00a0 \u00a0 \u00a0cbz \u00a0 \u00a0 w2, 80034 &lt;_start&#043;0x34&gt; \u00a0 \u00a080028: \u00a0 \u00a0 \u00a0 f800843f \u00a0 \u00a0 \u00a0 \u00a0str \u00a0 \u00a0 xzr, [x1], #8 \u00a0 \u00a08002c: \u00a0 \u00a0 \u00a0 51000442 \u00a0 \u00a0 \u00a0 \u00a0sub \u00a0 \u00a0 w2, w2, #0x1 \u00a0 \u00a080030: \u00a0 \u00a0 \u00a0 35ffffa2 \u00a0 \u00a0 \u00a0 \u00a0cbnz \u00a0 \u00a0w2, 80024 &lt;_start&#043;0x24&gt; \u00a0 \u00a080034: \u00a0 \u00a0 \u00a0 94000007 \u00a0 \u00a0 \u00a0 \u00a0bl \u00a0 \u00a0 \u00a080050 &lt;main&gt; \u00a0 \u00a080038: \u00a0 \u00a0 \u00a0 17fffff5 \u00a0 \u00a0 \u00a0 \u00a0b \u00a0 \u00a0 \u00a0 8000c &lt;_start&#043;0xc&gt; \u00a0 \u00a08003c: \u00a0 \u00a0 \u00a0 00000000 \u00a0 \u00a0 \u00a0 \u00a0.word \u00a0 0x00000000 \u00a0 \u00a080040: \u00a0 \u00a0 \u00a0 00080000 \u00a0 \u00a0 \u00a0 \u00a0.word \u00a0 0x00080000 \u00a0 \u00a080044: \u00a0 \u00a0 \u00a0 00000000 \u00a0 \u00a0 \u00a0 \u00a0.word \u00a0 0x00000000 \u00a0 \u00a080048: \u00a0 \u00a0 \u00a0 00080250 \u00a0 \u00a0 \u00a0 \u00a0.word \u00a0 0x00080250 \u00a0 \u00a08004c: \u00a0 \u00a0 \u00a0 00000000 \u00a0 \u00a0 \u00a0 \u00a0.word \u00a0 0x00000000<\/p>\n<p>0000000000080050 &lt;main&gt;: \u00a0 \u00a080050: \u00a0 \u00a0 \u00a0 14000000 \u00a0 \u00a0 \u00a0 \u00a0b \u00a0 \u00a0 \u00a0 80050 &lt;main&gt;<\/p>\n<\/p>\n<p>\u8fd0\u884c\u7ed3\u679c\u5982\u4e0b&#xff1a;<\/p>\n<p>tom&#064;PC-20241221RKUQ:~\/rp3\/raspi3-tutorial\/02_multicorec$ make run<br \/>\nqemu-system-aarch64 -M raspi3b -kernel kernel8.img -d in_asm<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nIN:<br \/>\n0x00000000:<br \/>\nOBJD-T: c0000058e1031faae2031faae3031faa8400005880001fd6<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nIN:<br \/>\n0x00080000:<br \/>\nOBJD-T: a10038d521044092610000b4<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nIN:<br \/>\n0x00080014:<br \/>\nOBJD-T: 610100583f00009161010058e200001882000034<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nIN:<br \/>\n0x00080034:<br \/>\nOBJD-T: 07000094<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nIN:<br \/>\n0x00080050:<br \/>\nOBJD-T: 00000014<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nIN:<br \/>\n0x00000300:<br \/>\nOBJD-T: 051b80d2a60038d5c60440925f2003d5a47866f8c4ffffb4<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nIN:<br \/>\n0x00000300:<br \/>\nOBJD-T: 051b80d2a60038d5c60440925f2003d5a47866f8c4ffffb4<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nIN:<br \/>\n0x0000030c:<br \/>\nOBJD-T: 5f2003d5a47866f8c4ffffb4<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nIN:<br \/>\n0x00000300:<br \/>\nOBJD-T: 051b80d2a60038d5c60440925f2003d5a47866f8c4ffffb4<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nIN:<br \/>\n0x0000030c:<br \/>\nOBJD-T: 5f2003d5a47866f8c4ffffb4<\/p>\n<p>\u57280x80000\u5730\u5740\u65f6&#xff0c;\u673a\u5668\u7801\u662fa10038d521044092610000b4\u3002<\/p>\n<p>a1 00 38 d5\u5bf9\u5e94\u8bfb\u53d6 MPIDR_EL1 \u5230 x1\u3002 21 04 40 92&#xff1a;\u6267\u884c and x1, x1, #3\u3002 61 00 00 b4&#xff1a;\u6267\u884c cbz x1, 2f\u3002\u6700\u540e\u662f\u8fd0\u884c\u523080008\u3002<\/p>\n<\/p>\n<p>\u57280x80014&#xff0c;\u673a\u5668\u7801\u662f610100583f00009161010058e200001882000034\u3002<\/p>\n<p>61 01 00 58&#xff1a;\u8fd9\u662f ldr x1, &#061;_start\u3002 3f 00 00 91&#xff1a;\u8fd9\u662f mov sp, x1\u3002C \u8bed\u8a00\u9700\u8981\u7684\u6808\u6b63\u5f0f\u5efa\u7acb\u3002 \u540e\u9762\u662f\u52a0\u8f7d __bss_start \u548c __bss_size \u5e76\u5f00\u59cb\u5faa\u73af\u6e05\u96f6\u3002<\/p>\n<\/p>\n<p>\u57280x80034&#xff0c;\u673a\u5668\u7801\u662f07000094\u3002<\/p>\n<p>0x94000007\u5c31\u662f\u5bf9\u5e94\u7684bl\u8df3\u8f6c\u6307\u4ee4&#xff0c;\u8df3\u8f6c\u5230main\u3002<\/p>\n<\/p>\n<p>\u540e\u9762\u76840x80050\u5c31\u662fmain\u6267\u884c\u540e\u7684\u8fd4\u56de&#xff0c;0x300\u662f\u53e6\u5916\u4e09\u4e2a\u6838\u5fc3\u7684\u5f02\u5e38\u3002<\/p>\n<\/p>\n<p>\u6b64\u65f6\u67e5\u770b\u591a\u6838\u7684\u72b6\u6001&#xff1a;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"93\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260305132514-69a9843ad2fe6.png\" width=\"695\" \/><\/p>\n<p>Core0\u8fd0\u884c\u5728main\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"585\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260305132514-69a9843ade486.png\" width=\"570\" \/><\/p>\n<p>\u5176\u5b83\u6838\u5728wfe<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"589\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260305132514-69a9843af34de.png\" width=\"593\" \/><\/p>\n<p>\u6700\u540e&#xff0c;\u770b\u4e86\u4e00\u4e0b\u5bc4\u5b58\u5668\u7684\u72b6\u51b5\u3002\u6240\u6709\u6838\u5fc3\u7684\u5bc4\u5b58\u5668\u7c7b\u578b\u662f\u4e00\u6837&#xff0c;\u4f46\u662f\u6570\u636e\u4e0d\u540c&#xff0c;\u4e5f\u5c31\u662f\u8bf4\u6bcf\u4e2a\u6838\u7684\u5bc4\u5b58\u5668\u90fd\u662f\u5355\u72ec\u7684\u3002\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\u767d\u8272\u7684\u90e8\u5206\u5c31\u662f\u53d8\u5316\u7684\u5bc4\u5b58\u5668\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"320\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260305132515-69a9843b182a7.png\" width=\"1398\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1 \u57fa\u672c\u6d41\u7a0b<br \/>\n\u4ee3\u7801\u6765\u81ea&#xff1a;https:\/\/github.com\/bztsrc\/raspi3-tutorial\/tree\/master\/02_multicorec Makefile\u7684\u6d41\u7a0b\u53ef\u4ee5\u770b\u5230&#xff0c;\u548c\u4e0a\u4e00\u7bc7\u6539\u52a8\u4e5f\u4e0d\u662f\u5f88\u5927\u3002\u4fee\u6539\u7684\u5185\u5bb9\u6709\u4e09\u70b9&#xff0c;\u9996\u5148\u8fd8\u662f\u4e4b\u524d\u7684\u90a3\u4e24\u70b9&#xff1a;<br \/>\n1 \u7f16\u8bd1\u5668\u6539\u6210aarch64-linux-gnu-gcc&#xff0c;\u91cc\u9762\u6709-ffreestanding -nostdinc\u5012\u662f\u4e0d\u7528\u518d\u52a0\u53c2\u6570\u3002<br \/>\n2\u00a0\u00a0-Wl,<\/p>\n","protected":false},"author":2,"featured_media":80713,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[219,16],"topic":[],"class_list":["post-80719","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-219","tag-16"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>RASPI\u88f8\u673a3\uff08\u591a\u6838\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/80719.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"RASPI\u88f8\u673a3\uff08\u591a\u6838\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"1 \u57fa\u672c\u6d41\u7a0b \u4ee3\u7801\u6765\u81ea&#xff1a;https:\/\/github.com\/bztsrc\/raspi3-tutorial\/tree\/master\/02_multicorec Makefile\u7684\u6d41\u7a0b\u53ef\u4ee5\u770b\u5230&#xff0c;\u548c\u4e0a\u4e00\u7bc7\u6539\u52a8\u4e5f\u4e0d\u662f\u5f88\u5927\u3002\u4fee\u6539\u7684\u5185\u5bb9\u6709\u4e09\u70b9&#xff0c;\u9996\u5148\u8fd8\u662f\u4e4b\u524d\u7684\u90a3\u4e24\u70b9&#xff1a; 1 \u7f16\u8bd1\u5668\u6539\u6210aarch64-linux-gnu-gcc&#xff0c;\u91cc\u9762\u6709-ffreestanding -nostdinc\u5012\u662f\u4e0d\u7528\u518d\u52a0\u53c2\u6570\u3002 2\u00a0\u00a0-Wl,\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/80719.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-03-05T13:25:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260305132514-69a9843a9bca3.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/80719.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/80719.html\",\"name\":\"RASPI\u88f8\u673a3\uff08\u591a\u6838\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-03-05T13:25:16+00:00\",\"dateModified\":\"2026-03-05T13:25:16+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/80719.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/80719.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/80719.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"RASPI\u88f8\u673a3\uff08\u591a\u6838\uff09\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"RASPI\u88f8\u673a3\uff08\u591a\u6838\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/80719.html","og_locale":"zh_CN","og_type":"article","og_title":"RASPI\u88f8\u673a3\uff08\u591a\u6838\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"1 \u57fa\u672c\u6d41\u7a0b \u4ee3\u7801\u6765\u81ea&#xff1a;https:\/\/github.com\/bztsrc\/raspi3-tutorial\/tree\/master\/02_multicorec Makefile\u7684\u6d41\u7a0b\u53ef\u4ee5\u770b\u5230&#xff0c;\u548c\u4e0a\u4e00\u7bc7\u6539\u52a8\u4e5f\u4e0d\u662f\u5f88\u5927\u3002\u4fee\u6539\u7684\u5185\u5bb9\u6709\u4e09\u70b9&#xff0c;\u9996\u5148\u8fd8\u662f\u4e4b\u524d\u7684\u90a3\u4e24\u70b9&#xff1a; 1 \u7f16\u8bd1\u5668\u6539\u6210aarch64-linux-gnu-gcc&#xff0c;\u91cc\u9762\u6709-ffreestanding -nostdinc\u5012\u662f\u4e0d\u7528\u518d\u52a0\u53c2\u6570\u3002 2\u00a0\u00a0-Wl,","og_url":"https:\/\/www.wsisp.com\/helps\/80719.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-03-05T13:25:16+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260305132514-69a9843a9bca3.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/80719.html","url":"https:\/\/www.wsisp.com\/helps\/80719.html","name":"RASPI\u88f8\u673a3\uff08\u591a\u6838\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-03-05T13:25:16+00:00","dateModified":"2026-03-05T13:25:16+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/80719.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/80719.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/80719.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"RASPI\u88f8\u673a3\uff08\u591a\u6838\uff09"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/80719","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=80719"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/80719\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/80713"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=80719"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=80719"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=80719"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=80719"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}