[Buildroot] How to login as root without password

Thomas De Schampheleire patrickdepinguin+buildroot at gmail.com
Wed Jul 31 15:11:28 UTC 2013


On Wed, Jul 31, 2013 at 5:03 PM, zhou qiang <zhouqiang.search at gmail.com> wrote:
> Hi , Thomas
>
> We have an internal jffs2 image making process , which requires a pure
> target from buildroot ,
> and follow the steps as below :
>
> (1) extract rootfs.tar to designated target directory (rootfs) , this is
> done by post-script .
> (2) Adding functional script and application to rootfs .
> (3) make a new jffs2 image
> (4)burn this image to arm board
>
> Of course , if extract rootfs.tar as root , everything works pretty well ,
> busybox login as root .
> But in the server , there is no root permission .
>
> So the issue is how to login as root without "operation of extract
> rootfs.tar as root".
>

What is the input to step 4, an extracted directory, or just the image?

In general, when you want to add custom elements to the rootfs, you would do:
a. 'make' in buildroot
b. copy custom files to <buildroot>/output/target
c. 'make' in buildroot again, this will create a new image
d. burn image to board

Is there a reason why you do not do it this way?

Best regards,
Thomas


More information about the buildroot mailing list