This guide provides instructions for a Buildroot demo on Raspberry Pi Zero W 2, where we will customise the root password and update the banner.
get the official buildroot repository cloned on you local system by doing a git clone
git clone https://github.com/buildroot/buildroot.gitwe will list the available defconfigs with the following, find if your target board's defconfig exists.
cd buildroot/
make list-defconfigsnext we will be selecting the our target and it will copy the defconfig from the configs folder to .config file which buildroot will further use for the menucofnig.
make raspberrypizero2w_defconfignext we can run make menuconfig command
make menuconfighere is the beginner friendly keybinding which is configured for menuconfig
going back to the pervious menu: [esc][esc]
searching console: [/]
select a option : [y]
unselect a option : [n]
use [tab] to navigate through the footer options
to change the root password System configuration ---> Root password
save the configuration by pressing [tab] and navigate to < Save > and press enter
you would be prompted with a message that the configuration are saved to .config hit ok and press [esp] multiple time to exit
start the build process by the following command
make allmake process will take anywhere between 2 hrs to 4 hrs as the computational speed you have.
you may use your preferred sdcard flashing tool like balena etcher, i will use the dd command for this
# find you memory block for the sd card attached from the following
lsblk
#i got the output and found mine 16 gbs storage at sdb1 so i would be using that
sudo dd if=output/images/sdcard.img of=/dev/sdb1i have given link to the .img file for Raspberry Pi Zero W 2 board, you may directly use this one as well
https://drive.google.com/file/d/1m-pO9T233HMS6A3zWerpMAsCeBeIbBQD/view?usp=sharing
login:root
password:12345678