Skip to contentSkip to conversation

How to build image with added files

Buildroot yoda zhong 2 participants 3 messages Sep 1, 2016

lore
Share & tools
lore

yoda zhong

author
#0 lore raw

Hi,

I tried to build image with ?make? after modifying /etc/network/interfaces. But that is automatically made by buildroot. So I failed.
How could I make image with modified interfaces file?

In addition, I tried to make image after adding one script on output/target. But this also doesn?t work. Is there any restriction on adding or modifying on output/target?

Thanks in advance.

Best,
Jehun

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160901/8a91c530/attachment.html>

#1 lore raw
Quoted 9 lines · yoda zhong

Hi,

I tried to build image with ?make? after modifying /etc/network/interfaces.

But that is automatically made by buildroot. So I failed.

How could I make image with modified interfaces file?

Use the filesystem-overlay feature.

https://buildroot.org/downloads/manual/manual.html#rootfs-custom

Quoted 4 lines

In addition, I tried to make image after adding one script on output/target.

We don't have an 'image' target. I guess you just meant 'make'?

Quoted 3 lines

But this also doesn?t work. Is there any restriction on adding or modifying on output/target?

Nothing ever gets removed from output/target, except for the cleanups done by
the finalize step (static libraries, documentation). So any script you added there should stay. Except if you did a 'make clean', that removes the entire output directory.

Regards,
Arnout

Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
author
#2 lore raw

Thank you for your answer.

I?ll lookup that overlay feature. Thanks.

For the second part, I need to describe my situation in detail.
Usually I make image and copy them to microSD card which has rootfs and boot partitions. I use ?make? command to do this.
And in some cases, I modified some files under output/target. But my modification is nulled when I do ?make? command. For example, I add a script file in output/target, but it disappeared. I modified output/target/etc/network/interfaces, but added lines disappeared too. So I thought there?s another way to do this and asked this to here.

Regards,
Jehun

?? ??: Arnout Vandecappelle
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160901/833698a2/attachment.html>