0% found this document useful (0 votes)
52 views2 pages

BusyBox Runit Setup for Raspberry Pi

The document provides a step-by-step guide for configuring and building a BusyBox image with Runit support for a Raspberry Pi 4 using Buildroot. It includes commands for setting up the environment, modifying configuration files, and copying the built image to a Raspberry Pi. Additionally, it outlines verification steps to ensure the BusyBox installation is successful.

Uploaded by

Tran Minh Nguyet
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
52 views2 pages

BusyBox Runit Setup for Raspberry Pi

The document provides a step-by-step guide for configuring and building a BusyBox image with Runit support for a Raspberry Pi 4 using Buildroot. It includes commands for setting up the environment, modifying configuration files, and copying the built image to a Raspberry Pi. Additionally, it outlines verification steps to ensure the BusyBox installation is successful.

Uploaded by

Tran Minh Nguyet
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Trần Minh Nguyệt 22161161

Nguyễn Thị Phương Lan 22161147


SOURCE CODE BUSYBOX RUNIT
1. cd buildroot
2. grep Runit package/busybox/[Link]
3. make clean
git checkout .
git clean --force -d
4. git checkout -b busybox-runit
5. cd configs
cp raspberrypi4_64_defconfig rpi4_runit_defconfig
cd ..
cp package/busybox/[Link] board/raspberrypi/[Link]
make rpi4_runit_defconfig
make menuconfig
Trong menuconfig chọn :
6. Toolchain | Toolchain type => External toolchain
7. Toolchain => Linaro AArch64
8. System configuration | Init system => BusyBox
9. Target packages | BusyBox configuration file to use? => BusyBox
10. Replace the package/busybox/[Link] string value in that text field with
board/raspberrypi/[Link]
11. Exit => Save
12. make savedefconfig
13. make busybox-menuconfig
Trong busybox-menuconfig chọn :
14. Runit Utilities
Chọn chpst, setuidgid, envuidgid, envdir, and softlimit
15. Trong Runit Utilities chọn
Default directory for services
16. Ghi /etc/sv vào Default directory for services
17. Exit => yes =>save
18. make busybox-update-config
19. Build hình ảnh
make rpi4_runit_defconfig
Make

COPY BUSYBOX QUA RAS ẢO


1. cd Desktop/ras
2. ./[Link]
3. SSH
4. Qua terminal mới dùng lệnh copy
scp -P 5555 -r /home/nguyet/buildroot/output/images pi@localhost:/home/pi/
5. Kiểm tra xem đã copy thành côngchưa bằng các câu lệnh sau
which busybox
busybox
busybox ls
busybox ps
busybox df
busybox du

You might also like