All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Any ideas about mechanism of updating software/firmware?
@ 2015-04-27  6:35 Xuebing Wang
  2015-04-27 15:24 ` Vivien Didelot
  0 siblings, 1 reply; 2+ messages in thread
From: Xuebing Wang @ 2015-04-27  6:35 UTC (permalink / raw)
  To: buildroot

Hi Community,

I am new to Buildroot. I am developing a commercial product based on 
Buildroot 2014.02, and I need the mechanism to update software/firmware 
of the product.

Here are some of my thought:
1) In eMMC, there is a partition which can be exported to PC via USB 
mass storage.
2( Once u-boot detects a special key-combination or new file in 
above-mentioned eMMC partition, u-boot boots a special kernel with 
initramfs.
3) In above-mentioned kernel + initramfs, it compares version buildroot 
distribution kernel (/etc/issue) and version+build number embedded in 
the filename of in the partition above.
3.1) If a new version is found, it updates u-boot / kernel / rootfs.

Is it a good practice to update 'system/skeleton/etc/issue' when a new 
version will be 'git tag'ed and built?

Thanks.

-- 
Xuebing

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Buildroot] Any ideas about mechanism of updating software/firmware?
  2015-04-27  6:35 [Buildroot] Any ideas about mechanism of updating software/firmware? Xuebing Wang
@ 2015-04-27 15:24 ` Vivien Didelot
  0 siblings, 0 replies; 2+ messages in thread
From: Vivien Didelot @ 2015-04-27 15:24 UTC (permalink / raw)
  To: buildroot

Hi Xuebing,

> Is it a good practice to update 'system/skeleton/etc/issue' when a new
> version will be 'git tag'ed and built?

No, you shouldn't modify Buildroot's default files. All project-specific files 
should go in a new directory under board/, typically 
board/<customer>/<project>/.  You can define a directory from which all files
will be copied as is to the rootfs.  For instance, try the following config:

    BR2_ROOTFS_OVERLAY="board/<customer>/<project>/fs-overlay"

with a custom file board/<customer>/<project>/fs-overlay/etc/issue.

Note that if you want a dynamic value such as the git tag, you can use a 
post-build script writing to ${TARGET_DIR}/etc/issue (see 
BR2_ROOTFS_POST_BUILD_SCRIPT). 

(Also note that /etc/os-release already contains the full version string).

Regards,
-v

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-04-27 15:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-27  6:35 [Buildroot] Any ideas about mechanism of updating software/firmware? Xuebing Wang
2015-04-27 15:24 ` Vivien Didelot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.