olimex_imx233: refactor with genimage.sh
PATCH 1/1 olimex_imx233: refactor with genimage.sh
instead of use a freescale script
--- board/olimex/imx233_olinuxino/genimage.cfg | 37 ++++++++++++++++++++++++++++++ configs/olimex_imx233_olinuxino_defconfig | 3 ++- 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 board/olimex/imx233_olinuxino/genimage.cfg
board/olimex/imx233_olinuxino/genimage.cfg new file +37 -0
@@ -0,0 +1,37 @@ +# We mimic the .sdcard Freescale's MX23/MX28 image format: +# * u-boot.sb is placed at offset 1M, +# * a FAT partition at offset 16 MB is containing zImage/uImage and DTB files +# * a single root filesystem partition is required (ext2, ext3 or ext4) +# + +image boot.vfat { + vfat { + files = { + imx23-olinuxino.dtb, uImage + } + } + size = 16M +} + +image sdcard.img { + hdimage { + } + + partition u-boot { + partition-type = 0x53 + image = "u-boot.sd" + offset = 1M + size = 16M + } + + partition kernel { + partition-type = 0xC + bootable = "true" + image = "boot.vfat" + } + + partition rootfs { + partition-type = 0x83 + image = "rootfs.ext2" + } +}
configs/olimex_imx233_olinuxino_defconfig +2 -1
@@ -48,5 +48,6 @@ BR2_TARGET_UBOOT_FORMAT_SD=y BR2_PACKAGE_HOST_DOSFSTOOLS=y BR2_PACKAGE_HOST_GENIMAGE=y BR2_PACKAGE_HOST_MTOOLS=y -BR2_ROOTFS_POST_IMAGE_SCRIPT="board/freescale/common/mxs/post-image.sh" +BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh" +BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/olimex/imx233_olinuxino/genimage.cfg"
Signature · 1 line
2.11.0
PATCH 1/1 olimex_imx233: refactor with genimage.sh
Hello,
Quoted 3 lines · Francois Perrad
instead of use a freescale script
Signed-off-by Francois Perrad <[email protected]>
Could you explain why this is an improvement? The whole idea of board/freescale/common/mxs/post-image.sh is to have a single genimage.cfg.template file that covers all MXS boards. So your change doesn't seem to go in the right direction.
Thanks,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
PATCH 1/1 olimex_imx233: refactor with genimage.sh
2017-07-01 17:45 GMT+02:00 Thomas Petazzoni <
[email protected]>:
Quoted 13 lines
Hello,
Quoted 3 lines · Francois Perrad
instead of use a freescale script
Signed-off-by Francois Perrad <[email protected]>Could you explain why this is an improvement? The whole idea of
board/freescale/common/mxs/post-image.shis to have a single genimage.cfg.template file that covers all MXS boards. So your change doesn't seem to go in the right direction.
First, I like common tools which avoid duplication of effort.
I introduced the use of the common mxs script on November 2016, soon after its creation by Fabio.
But, I dislike the level indirection given by the template of image description (the use of this template is good inside board/freescale, but not outside).
So now, I prefer use the new global common scriptsupport/scripts/genimage.sh.
Fran?ois
Quoted 12 lines
Thanks,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20170710/6ec615b8/attachment.html>
Fabio Estevam
reviewerPATCH 1/1 olimex_imx233: refactor with genimage.sh
Quoted 10 lines · Fran?ois Perrad
First, I like common tools which avoid duplication of effort.
I introduced the use of the common mxs script on November 2016, soon after its creation by Fabio.
But, I dislike the level indirection given by the template of image description (the use of this template is good inside board/freescale, but not outside).
Not sure if this is a good argument for such change.