{"id":3847,"date":"2025-12-03T07:00:00","date_gmt":"2025-12-02T22:00:00","guid":{"rendered":"https:\/\/www.litcoder.com\/?p=3847"},"modified":"2025-11-28T10:08:55","modified_gmt":"2025-11-28T01:08:55","slug":"raspberry-pi-5%ec%97%90-%ea%b0%84%eb%8b%a8%ed%95%9c-linux-%ec%8b%9c%ec%8a%a4%ed%85%9c-%ec%98%ac%eb%a6%ac%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/litcoder.com\/?p=3847","title":{"rendered":"Raspberry Pi 5\uc5d0 \uac04\ub2e8\ud55c Linux \uc2dc\uc2a4\ud15c \uc62c\ub9ac\uae30"},"content":{"rendered":"\n<p>\uc774 \ud3ec\uc2a4\ud305\uc5d0\uc11c\ub294 Raspberry pi 5(RPi5)\uc5d0 \uc544\uc8fc \ub2e8\uc21c\ud55c \ub9ac\ub205\uc2a4 \uc2dc\uc2a4\ud15c\uc744 \uad6c\uc131\ud574\uc11c \ubd80\ud305\ud574 \ubcf4\ub294 \uacfc\uc815\uc744 \ub2e4\ub8ec\ub2e4. Ubuntu 24.04 \uac1c\ubc1c\ud658\uacbd\uc5d0\uc11c RPi5\ub97c \uc704\ud55c u-boot, Linux, Busybox\ub97c \uc124\uc815\ud558\uace0 \ubd80\ud305\ud574 \ubcfc \uac83\uc774\ub2e4.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">SD card \uc900\ube44<\/h2>\n\n\n\n<p>SD card\ub97c \uac1c\ubc1c \ud638\uc2a4\ud2b8 \uba38\uc2e0\uc5d0 \uc0bd\uc785\ud558\uace0 <strong>lsblk<\/strong> \uba85\ub839\uc5b4\ub85c \uc5f0\uacb0\ub41c \ub514\ubc14\uc774\uc2a4\ub4e4\uc744 \ud655\uc778\ud55c\ub2e4.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"675\" height=\"214\" src=\"https:\/\/www.litcoder.com\/wp-content\/uploads\/2025\/11\/u-boot-lsblk.png\" alt=\"\" class=\"wp-image-3885\" style=\"width:450px\" srcset=\"https:\/\/litcoder.com\/wp-content\/uploads\/2025\/11\/u-boot-lsblk.png 675w, https:\/\/litcoder.com\/wp-content\/uploads\/2025\/11\/u-boot-lsblk-300x95.png 300w, https:\/\/litcoder.com\/wp-content\/uploads\/2025\/11\/u-boot-lsblk-624x198.png 624w\" sizes=\"auto, (max-width: 675px) 100vw, 675px\" \/><\/figure>\n<\/div>\n\n\n<p>\uc704\uc758 \uc608\uc81c\uc5d0\uc11c SD card\ub294 mmclbk0\uc774\ub2e4. \uc800\uc7a5\uacf5\uac04\uc758 \ud06c\uae30\ub97c \ud1b5\ud574 \uad6c\ubd84\ud558\uac70\ub098 SD card\ub97c \uc0bd\uc785\ud560 \ub54c \ucee4\ub110 \uba54\uc138\uc9c0\ub97c \uc798 \ubcf4\uace0 \uc5c9\ub6b1\ud55c \ub514\ubc14\uc774\uc2a4\ub97c \uc9c0\uc815\ud558\uc9c0 \uc54a\ub3c4\ub85d <strong>\uc8fc\uc758<\/strong>\ud558\uc790 \uc2e4\uc218\ud558\uba74 \uc758\ub3c4\uce58 \uc54a\uac8c \uc2dc\uc2a4\ud15c \uc815\ubcf4\ub97c \ub0a0\ub824 \uba39\uc744 \uc218\ub3c4 \uc788\ub2e4.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\ud30c\ud2f0\uc158 \uc0dd\uc131<\/h3>\n\n\n\n<p>parted \uba85\ub839\uc5b4\ub85c \ud30c\ud2f0\uc158\uc744 \uc0dd\uc131\ud55c\ub2e4. \ubd80\ud305\ub9cc\uc744 \uc704\ud574\ub294 \uccab\ubc88\uc9f8 \ud30c\ud2f0\uc158\uc778 256MiB\uc9dc\ub9ac FAT32\ub9cc \uc124\uc815\ud574\ub3c4 \ub41c\ub2e4. \uc774 \uacf5\uac04\uc5d0 \ubd80\ud305\uc5d0 \uad00\ub828\ub41c boot loader, kernel, RAM disk image\ub97c \ub123\uc5b4\uc8fc\uac8c \ub41c\ub2e4.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"dracula\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># MBR \uc124\uc815\uc744 \uc704\ud55c msdos label\uc744 \uc0dd\uc131\nsudo parted \/dev\/mmcblk0 mklabel msdos\n\n# \ud30c\ud2f0\uc158 \ub450\uac1c(boot \/ data)\ub97c \ub9cc\ub4e0\ub2e4. ext4\ub294 \ubd80\ud305\uacfc\ub294 \uc0c1\uad00 \uc5c6\ub2e4.\nsudo parted -a optimal \/dev\/mmcblk0 mkpart primary fat32 1MiB 256MiB\nsudo parted -a optimal \/dev\/mmcblk0 mkpart primary ext4 256MiB 100%\n\n# \ud30c\uc77c \uc2dc\uc2a4\ud15c\uc744 \uc0dd\uc131\ud55c\ub2e4.\nsudo mkfs.vfat \/dev\/mmcblk0p1\nsudo mkfs.ext4 \/dev\/mmcblk0p2<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Kernel &#8211; Linux v6.12.58<\/h2>\n\n\n\n<p>LTS \ucee4\ub110 \uc911\uc5d0 2025\ub144 11\uc6d4 \ud604\uc7ac \uac00\uc7a5 \ucd5c\uc2e0 \ubc84\uc804\uc778 v6.12.58\uc744 \uace8\ub790\ub2e4. \ub531\ud788 \ud2b9\uc815\ud55c \ubc84\uc804\uc744 \uc0ac\uc6a9\ud574\uc57c \ud558\ub294 \uac83\uc740 \uc544\ub2c8\ubbc0\ub85c \uc548\uc815\uc801\uc774\ub77c\uace0 \uc54c\ub824\uc9c4 \ubc84\uc804 \uc911\uc5d0 \uc544\ubb34\uac83\uc774\ub098 \uace0\ub974\uba74\ub41c\ub2e4.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Source code<\/h3>\n\n\n\n<p>GitHub\ub97c \ud1b5\ud574\uc11c \ucf54\ub4dc\ub97c \ubc1b\uac70\ub098 <a href=\"https:\/\/www.kernel.org\/\" data-type=\"link\" data-id=\"https:\/\/www.kernel.org\/\">Kernel Archive<\/a>\uc5d0\uc11c tarball\uc744 \ubc1b\uc544\ub3c4 \ub418\ub294\ub370, GtiHub\ub294 \ud788\uc2a4\ud1a0\ub9ac\ub97c \ub2e4\uc6b4\ub85c\ub4dc \ubc1b\ub294 \uac83 \ub54c\ubb38\uc5d0 \uc0dd\uac01\ubcf4\ub2e4 \uc2dc\uac04\uc774 \uc880 \uac78\ub838\ub2e4.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"785\" src=\"https:\/\/www.litcoder.com\/wp-content\/uploads\/2025\/11\/kernel_archive-1024x785.png\" alt=\"\" class=\"wp-image-3902\" style=\"width:450px\" srcset=\"https:\/\/litcoder.com\/wp-content\/uploads\/2025\/11\/kernel_archive-1024x785.png 1024w, https:\/\/litcoder.com\/wp-content\/uploads\/2025\/11\/kernel_archive-300x230.png 300w, https:\/\/litcoder.com\/wp-content\/uploads\/2025\/11\/kernel_archive-768x589.png 768w, https:\/\/litcoder.com\/wp-content\/uploads\/2025\/11\/kernel_archive-624x478.png 624w, https:\/\/litcoder.com\/wp-content\/uploads\/2025\/11\/kernel_archive.png 1374w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"dracula\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">git clone https:\/\/git.kernel.org\/pub\/scm\/linux\/kernel\/git\/stable\/linux.git\ncd linux\ngit checkout v6.12.58<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Kernel Build<\/h3>\n\n\n\n<p>ARM64 CPU\uc778 RPi5\uc6a9 \ucee4\ub110\uc744 x86\uc5d0\uc11c \ube4c\ub4dc\ud558\uae30 \uc704\ud574\uc11c cross compiler\ub97c \uc124\uce58\ud574\uc57c \ud55c\ub2e4.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"dracula\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo apt update\nsudo apt install -y crossbuild-essential-arm64<\/pre>\n\n\n\n<p>Cross compile\uc744 \uc704\ud574 ARCH\uc640 CROSS_COMPILE \ud658\uacbd\ubcc0\uc218\ub4e4\uc744 \uc544\ub798\uc640 \uac19\uc774 \uc124\uc815\ud574 \uc8fc\uace0, make defconfig\ub97c \uc2e4\ud589\ud574\uc11c .config \ud30c\uc77c\uc744 \uc0dd\uc131\ud55c\ub2e4. \ucef4\ud30c\uc77c \ud0c0\uac9f\uc740 kernel image\ub97c \uc704\ud55c <strong>Image<\/strong>, device tree blob\uc744 \uc704\ud574 <strong>dtbs<\/strong> \uadf8\ub9ac\uace0 kernel module\ub4e4\uc744 \uc704\ud55c <strong>modules<\/strong>\ub97c \uc9c0\uc815\ud574 \uc8fc\uc5c8\ub2e4.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"dracula\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">export ARCH=arm64\nexport CROSS_COMPILE=aarch64-linux-gnu-\n\n# Defconfig\nmake defconfig\n\n# Compile\nmake -j `nproc` Image dtbs modules<\/pre>\n\n\n\n<p>\ube4c\ub4dc\uac00 \uc644\ub8cc\ub41c \ud6c4\uc5d0\ub294 \ub2e4\uc74c \ub450\uac1c\uc758 \ud30c\uc77c\uc774 \uc798 \uc0dd\uc131\ub418\uc5b4 \uc788\ub294\uc9c0 \ud655\uc778\ud55c\ub2e4.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"dracula\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># Linux kernel image\n$ ls -l arch\/arm64\/boot\/Image\n-rw-rw-r-- 1 litcoder litcoder  arch\/arm64\/boot\/Image\n\n# BCM2712\uc6a9 device tree blob\n$ ls -l arch\/arm64\/boot\/dts\/broadcom\/bcm2712-rpi-5-b.dtb\n-rw-rw-r-- 1 litcoder litcoder  arch\/arm64\/boot\/dts\/broadcom\/bcm2712-rpi-5-b.dtb\n<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Boot loader &#8211; u-boot v2025.10<\/h2>\n\n\n\n<p>2025\ub144 11\uc6d4 \ud604\uc7ac \ucd5c\uc2e0 \ubc84\uc804\uc778 tag v2025.10\ub97c \uc0ac\uc6a9\ud588\ub2e4.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"dracula\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">git clone https:\/\/github.com\/u-boot\/u-boot.git &amp;&amp; cd $_\ngit checkout v2025.10<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Compile<\/h3>\n\n\n\n<p>u-boot\uc744 \ube4c\ub4dc\ud558\uae30 \uc704\ud574, \uc55e\uc11c \uc124\uc815\ud55c cross compiler\uc678\uc5d0\ub3c4 \ud30c\uc11c \uc0dd\uc131\uc5d0 \ud544\uc694\ud55c flex, bison\uacfc GNU TLS\ub97c \uc704\ud55c libgnutls28-dev\ub97c \uc124\uce58\ud574 \uc8fc\uc5c8\ub2e4. \ub9cc\uc57d 24.04\uac00 \uc544\ub2cc \ub2e4\ub978 \ubc84\uc804\uc744 \uc0ac\uc6a9\ud558\uace0 \uc788\ub2e4\uba74 apt-cache search libgnutls \uba85\ub839\uc5b4\ub85c \ub300\uccb4 \uac00\ub2a5\ud55c \ub2e4\ub978 \ud328\ud0a4\uc9c0\ub97c \uac80\uc0c9\ud574 \ubcfc \uc218 \uc788\uc744 \uac83\uc774\ub2e4.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"dracula\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo apt update\nsudo apt install flex bison libgnutls28-dev<\/pre>\n\n\n\n<p>v2025.10 \ubc84\uc804\uc5d0\uc11c\ub294 \uba85\uc2dc\uc801\uc73c\ub85c RPi5 \uc774\ub984\uc774 \ubd99\uc740 defconfig \ud30c\uc77c\uc740 \uc5c6\uace0 \ub300\uc2e0\uc5d0 <strong>rpi_arm64_defconfig<\/strong>\ub97c \uc0ac\uc6a9\ud558\uba74 \ub41c\ub2e4. ARCH\uc640 CROSS_COMPILE \ud658\uacbd\ubcc0\uc218\ub97c \uc124\uc815\ud558\uace0 \ucef4\ud30c\uc77c\ud55c\ub2e4.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"dracula\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">export ARCH=arm64\nexport CROSS_COMPILE=aarch64-linux-gnu-\n\n# Defconfig PRi5\nmake rpi_arm64_defconfig\n\n# Compile\nmake -j `nproc`<\/pre>\n\n\n\n<p>\ucef4\ud30c\uc77c\uc774 \uc644\ub8cc\ub418\uba74 \uc544\ub798\uc640 \uac19\uc774 u-boot \uad00\ub828 \ud30c\uc77c\ub4e4\uc774 \uc0dd\uc131\ub418\ub294\ub370 \uc774 \uc911 <strong>u-boot.bin<\/strong> file\uc774 \uc0dd\uc131\ub41c \ubd80\ud2b8\ub85c\ub354 \ud30c\uc77c\uc774\ub2e4.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"dracula\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">$ ls -l u-boot*\n-rwxrwxr-x 1 litcoder litcoder  u-boot\n-rw-rw-r-- 1 litcoder litcoder  u-boot-nodtb.bin\n-rw-rw-r-- 1 litcoder litcoder  u-boot.bin # \ubd80\ud2b8\ub85c\ub354 \ud30c\uc77c\n-rw-rw-r-- 1 litcoder litcoder  u-boot.cfg\n-rw-rw-r-- 1 litcoder litcoder  u-boot.dtb\n-rw-rw-r-- 1 litcoder litcoder  u-boot.lds\n-rw-rw-r-- 1 litcoder litcoder  u-boot.map\n-rw-rw-r-- 1 litcoder litcoder  u-boot.srec\n-rw-rw-r-- 1 litcoder litcoder  u-boot.sym\n<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">RootFS &#8211; Busybox 1_37_0<\/h2>\n\n\n\n<p>\ubd80\ud2b8\ub85c\ub354\uac00 \ucee4\ub110\uc744 \ubd88\ub7ec\uc11c \ubd80\ud305\uae4c\uc9c0 \uc131\uacf5 \ud588\ub2e4\uba74, \uc2dc\uc2a4\ud15c \ubd80\ud305\uc758 \ud6c4\ubc18 \uacfc\uc815\uc744 \ud1b5\ud574 \ud544\uc694\ud55c \ub370\ubaac\uc744 \ub744\uc6b0\uac70\ub098 \ud544\uc694\ud55c \ud2b9\uc218 \ud30c\uc77c \uc2dc\uc2a4\ud15c\uc744 \uad6c\uc131\ud558\uace0 shell\uc744 \uad6c\ub3d9\ud574\uc11c \uba85\ub839\uc5b4 \uc785\ub825\uc774 \uac00\ub2a5\ud55c \uc0c1\ud0dc\ub85c \ub9cc\ub4dc\ub294  \uc77c\uc744 \uc218\ud589\ud574\uc57c \ud558\ub294\ub370 \uc774\ub7ec\ud55c \uc815\ubcf4\ub97c \ub2f4\uc544\ub450\ub294 \uacf5\uac04\uc744 RootFS\ub77c\uace0 \ud55c\ub2e4. RootFS\ub97c \uad6c\uc131\ud558\ub294 \uc5ec\ub7ec\uac00\uc9c0 \ubc29\ubc95\uc774 \uc788\uc73c\ub098, \uc5ec\uae30\uc5d0\uc11c\ub294 \uac00\uc7a5 \uac04\ub2e8\ud558\uac8c Busybox\ub97c \uc774\uc6a9\ud574\uc11c RAM disk image \ud615\ud0dc\ub85c \ub9cc\ub4e4\uc5b4\uc11c \ucee4\ub110 \ubd80\ud305 \uc774\ud6c4\uc758 \uacfc\uc815\uc744 \uc218\ud589\ud558\ub3c4\ub85d \ud55c\ub2e4.<\/p>\n\n\n\n<p>Busybox git repository\uc778 <a href=\"https:\/\/git.busybox.net\/busybox\">https:\/\/git.busybox.net\/busybox<\/a> \uc5d0\uc11c \ud544\uc694\ud55c \ubc84\uc804\uc744 tarball\ub85c \ub2e4\uc6b4\ub85c\ub4dc \ubc1b\uac70\ub098 git\uba85\ub839\uc5b4\ub85c \ubc1b\uc544\uc11c \uc18c\uc2a4 \ucf54\ub4dc\ub97c \uc900\ube44\ud55c\ub2e4.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"dracula\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">git clone https:\/\/git.busybox.net\/busybox\ncd busybox\ngit checkout 1_37_1<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Compile<\/h3>\n\n\n\n<p>Cross compile\uc744 \uc704\ud55c \ud658\uacbd\uc744 \uc124\uc815\ud558\uace0 make defconfig\ub85c <strong>.config<\/strong> \ud30c\uc77c\uc744 \uc0dd\uc131\ud55c\ub2e4.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"dracula\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">export ARCH=arm64\nexport CROSS_COMPILE=aarch64-linux-gnu-\n\nmake defconfig<\/pre>\n\n\n\n<p>\uc0dd\uc131\ub41c .config \ud30c\uc77c\uc548\uc5d0\ub294 \uba87\uac00\uc9c0 \uc124\uc815\uc774 \uc788\ub294\ub370, \uc815\uc801 \ub9c1\ud06c\ub97c \uc704\ud574 CONFIG_STATIC\uc744 y\ub85c \uc124\uc815\ud574 \uc8fc\uace0 \ucef4\ud30c\uc77c \uc624\ub958\ub97c \ubc29\uc9c0 \ud558\uae30 \uc704\ud574 CONFIG_TC\ub97c unset \ud574\uc900\ub2e4. \uc774 \ud30c\uc77c\uc5d0\uc11c \ubcf4\uc774\ub4ef\uc774 \uae30\ubcf8 \uc124\uce58 \ub514\ub809\ud1a0\ub9ac\ub294 _install \ub514\ub809\ud1a0\ub9ac \uc774\ub2e4.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># \uc0dd\uc131\ub41c .config \uc9c1\uc811 \ud3b8\uc9d1\n...\n# not set -> y\ub85c \ubcc0\uacbd\nCONFIG_STATIC=y\n...\nCONFIG_PREFIX=\".\/_install\"\n...\n# y -> not set\uc73c\ub85c \ubcc0\uacbd\n#CONFIG_TC is not set<\/pre>\n\n\n\n<p>make oldconfig \ud6c4 \ucef4\ud30c\uc77c \ubc0f \uc124\uce58\ub97c \uc2e4\ud589\ud558\uba74 _install directory\uc548\uc5d0 \ud544\uc694\ud55c \ud30c\uc77c\ub4e4\uc774 \uc124\uce58\ub41c\ub2e4.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"dracula\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">make oldconfig\nmake -j `nproc`\n\n# _install directory\uc5d0 \uc124\uce58 \ud30c\uc77c \ubcf5\uc0ac\n# \uc8fc\uc758: sudo\ub97c \uc4f0\uc9c0 \ub9d0\uac83. \uc2e4\uc218\ub85c \uc2dc\uc2a4\ud15c\uc774 \ub9dd\uac00\uc9c0\ub294 \uac83\uc744 \ub9c9\uc744 \uc218 \uc788\uc74c.\nmake install<\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"419\" src=\"https:\/\/www.litcoder.com\/wp-content\/uploads\/2025\/11\/SC_u-boot_install-1024x419.png\" alt=\"\" class=\"wp-image-3904\" style=\"width:450px\" srcset=\"https:\/\/litcoder.com\/wp-content\/uploads\/2025\/11\/SC_u-boot_install-1024x419.png 1024w, https:\/\/litcoder.com\/wp-content\/uploads\/2025\/11\/SC_u-boot_install-300x123.png 300w, https:\/\/litcoder.com\/wp-content\/uploads\/2025\/11\/SC_u-boot_install-768x314.png 768w, https:\/\/litcoder.com\/wp-content\/uploads\/2025\/11\/SC_u-boot_install-624x255.png 624w, https:\/\/litcoder.com\/wp-content\/uploads\/2025\/11\/SC_u-boot_install.png 1074w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\">RAM disk image \ub9cc\ub4e4\uae30<\/h3>\n\n\n\n<p>Busybox\ub294 <a href=\"https:\/\/www.gnu.org\/software\/coreutils\/\" data-type=\"link\" data-id=\"https:\/\/www.gnu.org\/software\/coreutils\/\">GNU coreutils<\/a>\ucc98\ub7fc \uae30\ubcf8\uc801\uc778 \uba85\ub839\uc5b4\ub4e4\uc744 \uc81c\uacf5\ud55c\ub2e4. \uc774\ub7ec\ud55c \uba85\ub839\uc5b4\ub4e4\ub97c \uc0ac\uc6a9\ud558\uae30 \uc704\ud574\uc11c\ub294 &#8220;busybox ls&#8221;\uc640 \uac19\uc774 \uc218\ud589\ud558\uace0\uc790 \ud558\ub294 \uba85\ub839\uc5b4\uc758 \uc55e\uc5d0 busybox\ub97c \uc785\ub825\ud574 \uc8fc\uc5b4\uc57c \ud558\ub294\ub370, \/bin\/sh\uac00 \/bin\/busybox\ub97c link\ud558\ub3c4\ub85d \ud558\uba74 shell\uc5d0 \uc758\ud574 \uc790\ub3d9\uc801\uc73c\ub85c \uc774 \ubd80\ubd84\uc774 \uc218\ud589 \ub41c\ub2e4.<\/p>\n\n\n\n<p>Linux kernel \ubd80\ud305\uc774 \ub05d\ub098\uace0 \ub098\uc11c \uc790\ub3d9\uc73c\ub85c <strong>init<\/strong> script\uac00 \ubd88\ub824\uc9c0\ub294 \uacfc\uc815\uc774 \uc788\ub294\ub370, \uc774 \ub0b4\uc6a9\uc744 \ud3ec\ud568\ud55c RAM disk\ub97c \uc0dd\uc131\ud558\ub294 \uacfc\uc815\uc744 \uc544\ub798\uc640 \uac19\uc774 script\ub85c \ub9cc\ub4e4\uc5b4 \ub450\uc5c8\ub2e4. \uc774 \uc2a4\ud06c\ub9bd\ud2b8\ub97c \uc0ac\uc6a9 \ud558\uae30 \uc704\ud574\uc11c\ub294 \uc704\uc5d0\uc11c \uc124\uba85\ud55c busybox \uad00\ub828 \ub0b4\uc6a9\ub4e4\uc744 make install\uae4c\uc9c0 \uc218\ud589\ud55c \ub2e4\uc74c, export BUSYBOX_DIR=${PWD}\ub85c \ud658\uacbd\ubcc0\uc218\ub97c \uc124\uc815\ud574\uc8fc\uace0 \uc2a4\ud06c\ub9bd\ud2b8\ub97c \uc218\ud589\ud558\uba74 \ub41c\ub2e4.<\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/litcoder\/69ebde7de4df7ad74b1b274d7e6befec.js\"><\/script>\n\n\n\n<p>\uc2a4\ud06c\ub9bd\ud2b8\uac00 \uc798 \uc218\ud589\ub418\uc5c8\ub2e4\uba74 uInitrd \ud30c\uc77c\uc774 \uc0dd\uc131\ub420 \uac83\uc774\ub2e4.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"180\" src=\"https:\/\/www.litcoder.com\/wp-content\/uploads\/2025\/11\/SC_uInitrd_info-1024x180.png\" alt=\"\" class=\"wp-image-3907\" style=\"width:450px\" srcset=\"https:\/\/litcoder.com\/wp-content\/uploads\/2025\/11\/SC_uInitrd_info-1024x180.png 1024w, https:\/\/litcoder.com\/wp-content\/uploads\/2025\/11\/SC_uInitrd_info-300x53.png 300w, https:\/\/litcoder.com\/wp-content\/uploads\/2025\/11\/SC_uInitrd_info-768x135.png 768w, https:\/\/litcoder.com\/wp-content\/uploads\/2025\/11\/SC_uInitrd_info-624x110.png 624w, https:\/\/litcoder.com\/wp-content\/uploads\/2025\/11\/SC_uInitrd_info.png 1411w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">\uc124\uce58 \ud558\uae30<\/h2>\n\n\n\n<p>RPi5\uc758 ROM\uc73c \ub85c\ub4dc\ub418\uba74 FAT \ud30c\ud2f0\uc158\uc548\uc5d0 \uc788\ub294 config.txt \ud30c\uc77c\uc758 \ub0b4\uc6a9\uc744 \uc77d\uc5b4\uc11c \uadf8 \ub0b4\uc6a9\ub300\ub85c \uc218\ud589\ud574 \uc900\ub2e4. u-boot.bin \ud30c\uc77c\uc744 \ub85c\ub4dc\ud558\uae30 \uc704\ud574 \ub2e4\uc74c\uacfc \uac19\uc774 config.txt file\uc744 \uc791\uc131\ud574 \uc900\ub2e4.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">enable_uart=1\nkernel=u-boot.bin\narm_64bit=1<\/pre>\n\n\n\n<p>bottfs\ub77c\ub294 \ub514\ub809\ud1a0\ub9ac\ub97c \ud558\ub098 \ub9cc\ub4e4\uace0 \uc9c0\uae08\uae4c\uc9c0 \uc0dd\uc131\ud55c \ubaa8\ub4e0 \ud30c\uc77c\ub4e4\uc744 \ud55c\uacf3\uc5d0 \ubaa8\uc544 \ub454\ub2e4. \ud30c\uc77c\ub4e4\uc758 \ub0b4\uc5ed\uc740 \ub2e4\uc74c\uacfc \uac19\ub2e4.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"dracula\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">$ ls -l .\/bootfs\n# \uc218\ub3d9\uc791\uc131\ud558\ub294 \uc124\uc815\ud30c\uc77c\n-rw-rw-r-- 1 litcoder litcoder  config.txt\n\n# Kernel\uc5d0\uc11c \ubcf5\uc0ac\n-rw-rw-r-- 1 litcoder litcoder  bcm2712-rpi-5-b.dtb\n-rw-rw-r-- 1 litcoder litcoder  Image\n\n# u-boot\uc5d0\uc11c \ubcf5\uc0ac\n-rw-rw-r-- 1 litcoder litcoder  u-boot.bin\n\n# Busybox\uc5d0\uc11c \uc0dd\uc131\n-rw-rw-r-- 1 litcoder litcoder  uInitrd\n<\/pre>\n\n\n\n<p>SD card\ub97c \uc0bd\uc785\ud558\uace0 \uc704\uc758 \ud30c\uc77c\ub4e4\uc744 \ubaa8\ub450 \uccab\ubc88\uc9f8 \ud30c\ud2f0\uc158\uc778 FAT32\ub85c \ubcf5\uc0ac\ud574 \uc900\ub2e4.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"dracula\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">mkdir -p ~\/mnt\nsudo mount \/dev\/mmcblk0p1 ~\/mnt\nsudo cp bootfs\/* ~\/mnt\/\nsudo umount ~\/mnt<\/pre>\n\n\n\n<p>\uc774\uc81c, SD card\ub97c RPi5\uc5d0 \ub123\uace0 \ubd80\ud305\uc744 \uc2dc\ub3c4\ud558\uba74 u-boot\uc774 \uc2e4\ud589\ub418\uace0 \ubd80\ud305\uc744 \uc704\ud55c \uce74\uc6b4\ud2b8 \ub2e4\uc6b4\uc774 \uc2e4\ud589\ub418\ub294\ub370, \uc774 \ub54c Enter key\ub97c \ub20c\ub7ec\uc11c u-boot> prompt\ub97c \ub744\uc6b4\ub2e4.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"841\" src=\"https:\/\/www.litcoder.com\/wp-content\/uploads\/2025\/11\/SC_u-boot_prompt-1024x841.png\" alt=\"\" class=\"wp-image-3909\" style=\"width:450px\" srcset=\"https:\/\/litcoder.com\/wp-content\/uploads\/2025\/11\/SC_u-boot_prompt-1024x841.png 1024w, https:\/\/litcoder.com\/wp-content\/uploads\/2025\/11\/SC_u-boot_prompt-300x246.png 300w, https:\/\/litcoder.com\/wp-content\/uploads\/2025\/11\/SC_u-boot_prompt-768x631.png 768w, https:\/\/litcoder.com\/wp-content\/uploads\/2025\/11\/SC_u-boot_prompt-624x513.png 624w, https:\/\/litcoder.com\/wp-content\/uploads\/2025\/11\/SC_u-boot_prompt.png 1076w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p>printenv\ub85c \ud604\uc7ac \ud658\uacbd\ubcc0\uc218\ub4e4\uc744 \uc0b4\ud3b4\ubcf4\uba74 bcm2712-rpi-5-b.dtb\uc758 \uacbd\ub85c\uac00 \uc798\ubabb\ub418\uc5b4 \uc788\uace0, bootcmd\uac00 \uc124\uc815\ub418\uc5b4 \uc788\uc9c0 \uc54a\ub294 \uac83\uc744 \ubcfc \uc218 \uc788\ub2e4. \uc544\ub798\uc640 \uac19\uc774 \uc124\uc815\ud574\uc11c \ud658\uacbd\ubcc0\uc218\ub97c \uc800\uc7a5\ud558\uba74 \uc774\ud6c4\ub85c\ub294 \uace7\ubc14\ub85c \ubd80\ud305 \ud560 \uc218 \uc788\ub2e4.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"dracula\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">setenv fdtfile bcm2712-rpi-5-b.dtb\nsetenv bootcmd \"fatload mmc 0:1 ${kernel_addr_r} Image; fatload mmc 0:1 ${fdt_addr_r} ${fdtfile}; fatload mmc 0:1 ${ramdisk_addr_r} uInitrd; booti ${kernel_addr_r} ${ramdisk_addr_r} ${fdt_addr_r}\"\nsaveenv\n\nrun bootcmd<\/pre>\n\n\n\n<p>\ucc38\uace0\ub85c \ubcc0\uacbd\ud55c u-boot \ud658\uacbd\ubcc0\uc218\ub4e4\uc744 \ubaa8\ub450 reset \ud558\uace0 \uc2f6\uc73c\uba74 \uc544\ub798\uc758 \uba85\ub839\uc5b4\ub97c \uc218\ud589\ud558\uba74 \ub41c\ub2e4.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"dracula\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">env default -a\nsaveenv<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\ubd80\ud305\uc644\ub8cc \ud6c4 root shell<\/h2>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"755\" src=\"https:\/\/www.litcoder.com\/wp-content\/uploads\/2025\/11\/SC_boot_success-1024x755.png\" alt=\"\" class=\"wp-image-3893\" style=\"width:470px\" srcset=\"https:\/\/litcoder.com\/wp-content\/uploads\/2025\/11\/SC_boot_success-1024x755.png 1024w, https:\/\/litcoder.com\/wp-content\/uploads\/2025\/11\/SC_boot_success-300x221.png 300w, https:\/\/litcoder.com\/wp-content\/uploads\/2025\/11\/SC_boot_success-768x567.png 768w, https:\/\/litcoder.com\/wp-content\/uploads\/2025\/11\/SC_boot_success-624x460.png 624w, https:\/\/litcoder.com\/wp-content\/uploads\/2025\/11\/SC_boot_success.png 1075w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>\uc774 \ud3ec\uc2a4\ud305\uc5d0\uc11c\ub294 Raspberry pi 5(RPi5)\uc5d0 \uc544\uc8fc \ub2e8\uc21c\ud55c \ub9ac\ub205\uc2a4 \uc2dc\uc2a4\ud15c\uc744 \uad6c\uc131\ud574\uc11c \ubd80\ud305\ud574 \ubcf4\ub294 \uacfc\uc815\uc744 \ub2e4\ub8ec\ub2e4. Ubuntu 24.04 \uac1c\ubc1c\ud658\uacbd\uc5d0\uc11c RPi5\ub97c \uc704\ud55c u-boot, Linux, Busybox\ub97c \uc124\uc815\ud558\uace0 \ubd80\ud305\ud574 \ubcfc \uac83\uc774\ub2e4. SD card \uc900\ube44 SD card\ub97c \uac1c\ubc1c \ud638\uc2a4\ud2b8 \uba38\uc2e0\uc5d0 \uc0bd\uc785\ud558\uace0 lsblk \uba85\ub839\uc5b4\ub85c \uc5f0\uacb0\ub41c \ub514\ubc14\uc774\uc2a4\ub4e4\uc744 \ud655\uc778\ud55c\ub2e4. \uc704\uc758 \uc608\uc81c\uc5d0\uc11c SD card\ub294 mmclbk0\uc774\ub2e4. \uc800\uc7a5\uacf5\uac04\uc758 \ud06c\uae30\ub97c \ud1b5\ud574 \uad6c\ubd84\ud558\uac70\ub098 SD card\ub97c \uc0bd\uc785\ud560 \ub54c \ucee4\ub110 \uba54\uc138\uc9c0\ub97c [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[367,368,370,369,366],"class_list":["post-3847","post","type-post","status-publish","format-standard","hentry","category-linux","tag-busybox","tag-kernel","tag-raspberry-pi","tag-rpi","tag-u-boot"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/litcoder.com\/index.php?rest_route=\/wp\/v2\/posts\/3847","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/litcoder.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/litcoder.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/litcoder.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/litcoder.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3847"}],"version-history":[{"count":35,"href":"https:\/\/litcoder.com\/index.php?rest_route=\/wp\/v2\/posts\/3847\/revisions"}],"predecessor-version":[{"id":3937,"href":"https:\/\/litcoder.com\/index.php?rest_route=\/wp\/v2\/posts\/3847\/revisions\/3937"}],"wp:attachment":[{"href":"https:\/\/litcoder.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3847"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/litcoder.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3847"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/litcoder.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3847"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}