Bug 10036

Summary: Buildroot builds Raspbian Jessie headless image presenting incorrect prompt
Product: buildroot Reporter: Paul Tomov <ptomov>
Component: OtherAssignee: unassigned
Status: RESOLVED INVALID    
Severity: major CC: buildroot
Priority: P5    
Version: 2017.05   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

Description Paul Tomov 2017-07-11 20:45:28 UTC
Hi,

After building a new headless raspbian Jessie image from the original Buildroot clone, I flashed it into a CD card and started my Rasberry Pi 3 board with this card. But the prompt in the login stage was "buidroot login:" and not as I expected "rpi3 login:". Please advise me how to define the correct prompt name before building my image.

Thanks,

   Pavel
Comment 1 Paul Tomov 2017-07-11 21:29:17 UTC
In addition when I try to run "sudo" command it reports- sh- sudo not found. Please explain.
Comment 2 Arnout Vandecappelle 2017-07-11 21:49:27 UTC
Please use the mailing list or IRC for questions. The bug tracker is for reporting bugs.

The "buildroot login:" prompt appears because your system is configured with "buildroot" as hostname - this is the default. If you want to change this, look for the BR2_TARGET_GENERIC_HOSTNAME in "make menuconfig".

sudo is not found because you have not installed it. Look for BR2_PACKAGE_SUDO in "make menuconfig".

If all this is not clear, you may want to consult http://buildroot.org/manual.html

By the way, you can't build a raspbian image from Buildroot, there are quite a few Required packages missing and the skeleton is different.
Comment 3 Paul Tomov 2017-07-11 22:48:32 UTC
Hi,

Please explain what packages I need to add to Buildroot image in order to build a full-fledged (including "sudo" available) Rasbian headless image or raspberry Pi 3 and the places to download them from.

The other question is how to add my application files to the Buildroot image and make my application a startup one.

Thank you,

   Pavel
Comment 4 Thomas Petazzoni 2017-07-12 07:51:47 UTC
Paul, I think you are very confused about what Buildroot and what Raspbian are. Buildroot and Raspbian have nothing in common, and trying to "build" Raspbian with Buildroot doesn't make any sense at all.

Buildroot is an embedded Linux build system, to build highly customized Linux systems by cross-compilation. It does not build Linux distributions with binary packages, but just a root filesystem image, with no package management system at all.

Raspbian is based on Debian, and provides a full-featured Linux distribution, with a package management system.

There is simply no way Buildroot can be used to "produce" Raspbian.