Changes

Jump to navigation Jump to search
Line 272: Line 272:  
不同树莓派的编译选项不同,区别如下:
 
不同树莓派的编译选项不同,区别如下:
   −
* Raspberry Pi 1, Pi Zero, Pi Zero W, and Compute Module default build configuration
+
* For Raspberry Pi 1, Zero and Zero W, and Raspberry Pi Compute Module 1 default (32-bit only) build configuration
    
<code>KERNEL=kernel</code>
 
<code>KERNEL=kernel</code>
Line 278: Line 278:  
<code>make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- bcmrpi_defconfig</code>
 
<code>make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- bcmrpi_defconfig</code>
   −
* Raspberry Pi 2, Pi 3, Pi 3+,Zero 2 W, and Compute Module 3 default build configuration
+
* For Raspberry Pi 2, 3, 3+ and Zero 2 W, and Raspberry Pi Compute Modules 3 and 3+ default 32-bit build configuration
    
<code>KERNEL=kernel7</code>
 
<code>KERNEL=kernel7</code>
Line 284: Line 284:  
<code>make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- bcm2709_defconfig</code>
 
<code>make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- bcm2709_defconfig</code>
   −
* Raspberry Pi 4 default build configuration
+
* For Raspberry Pi 4 and 400, and Raspberry Pi Compute Module 4 default 32-bit build configuration
    
<code>KERNEL=kernel7l</code>
 
<code>KERNEL=kernel7l</code>
    
<code>make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- bcm2711_defconfig</code>
 
<code>make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- bcm2711_defconfig</code>
 +
 +
* For Raspberry Pi 3, 3+, 4, 400 and Zero 2 W, and Raspberry Pi Compute Modules 3, 3+ and 4 default 64-bit build configuration
 +
 +
<code>KERNEL=kernel8</code>
 +
 +
<code>make bcm2711_defconfig</code>
    
===== 增加编译选项 =====
 
===== 增加编译选项 =====
Line 299: Line 305:  
===== 编译输出 =====
 
===== 编译输出 =====
 
<code>make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImage modules dtbs -j4</code>
 
<code>make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImage modules dtbs -j4</code>
<br />
+
 
 
=== 参考资料 ===
 
=== 参考资料 ===
  

Navigation menu