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