Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/4] configs/imx233_olinuxino: Add EXT4 support
@ 2016-11-10 15:39 Fabio Estevam
  2016-11-10 15:39 ` [Buildroot] [PATCH 2/4] imx233_olinuxino: readme: Adjust the generated file names Fabio Estevam
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Fabio Estevam @ 2016-11-10 15:39 UTC (permalink / raw)
  To: buildroot

Select BR2_TARGET_ROOTFS_EXT4 so that an EXT4 rootfs can be generated.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
---
 configs/olimex_imx233_olinuxino_defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configs/olimex_imx233_olinuxino_defconfig b/configs/olimex_imx233_olinuxino_defconfig
index 1040e5e..70e8b5d 100644
--- a/configs/olimex_imx233_olinuxino_defconfig
+++ b/configs/olimex_imx233_olinuxino_defconfig
@@ -32,6 +32,7 @@ BR2_PACKAGE_ZD1211_FIRMWARE=y
 
 # Filesystem
 BR2_TARGET_ROOTFS_EXT2=y
+BR2_TARGET_ROOTFS_EXT4=y
 # BR2_TARGET_ROOTFS_TAR is not set
 
 # U-Boot
-- 
2.7.4

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

* [Buildroot] [PATCH 2/4] imx233_olinuxino: readme: Adjust the generated file names
  2016-11-10 15:39 [Buildroot] [PATCH 1/4] configs/imx233_olinuxino: Add EXT4 support Fabio Estevam
@ 2016-11-10 15:39 ` Fabio Estevam
  2016-11-10 15:39 ` [Buildroot] [PATCH 3/4] imx233_olinuxino: readme: Improve SD card flashing procedure Fabio Estevam
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Fabio Estevam @ 2016-11-10 15:39 UTC (permalink / raw)
  To: buildroot

After the conversion to the common genimage scripts the generated file list
is a bit different, so adjust it accordingly.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
---
 board/olimex/imx233_olinuxino/readme.txt | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/board/olimex/imx233_olinuxino/readme.txt b/board/olimex/imx233_olinuxino/readme.txt
index 4b24ac2..d6a7377 100644
--- a/board/olimex/imx233_olinuxino/readme.txt
+++ b/board/olimex/imx233_olinuxino/readme.txt
@@ -8,12 +8,12 @@ It also pulls up the console on the serial port, not on TV output.
 === Output files after building ==============================================
 
 output/images
-+-- kernel.vfat (VFAT kernel partition image generated by genimage)
++-- boot.vfat (VFAT kernel partition image generated by genimage)
++-- imx23-olinuxino.dtb (device tree blob)
 +-- rootfs.ext2 (Root file system)
 +-- sdcard.img (Complete SD card image generated by genimage)
 +-- u-boot.sd (U-Boot image)
-+-- uImage -> uImage.imx23-olinuxino (To copy kernel as "uImage" to kernel.vfat)
-+-- uImage.imx23-olinuxino (Kernel uImage)
++-- uImage  (Kernel binary)
 
 === Use of generated SD card image ===========================================
 
-- 
2.7.4

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

* [Buildroot] [PATCH 3/4] imx233_olinuxino: readme: Improve SD card flashing procedure
  2016-11-10 15:39 [Buildroot] [PATCH 1/4] configs/imx233_olinuxino: Add EXT4 support Fabio Estevam
  2016-11-10 15:39 ` [Buildroot] [PATCH 2/4] imx233_olinuxino: readme: Adjust the generated file names Fabio Estevam
@ 2016-11-10 15:39 ` Fabio Estevam
  2016-11-10 15:39 ` [Buildroot] [PATCH 4/4] imx233_olinuxino: readme: Remove a section Fabio Estevam
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Fabio Estevam @ 2016-11-10 15:39 UTC (permalink / raw)
  To: buildroot

Make the SD card flashing procedure text consistent with the other i.MX
boards.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
---
 board/olimex/imx233_olinuxino/readme.txt | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/board/olimex/imx233_olinuxino/readme.txt b/board/olimex/imx233_olinuxino/readme.txt
index d6a7377..2722c3a 100644
--- a/board/olimex/imx233_olinuxino/readme.txt
+++ b/board/olimex/imx233_olinuxino/readme.txt
@@ -17,13 +17,16 @@ output/images
 
 === Use of generated SD card image ===========================================
 
-Just write sdcard.img directly to the SD card
+To determine the device associated to the SD card have a look in the
+/proc/partitions file:
 
-***** WARNING: Double check that /dev/sdc is your MicroSD card *****
-*****      It might be /dev/sdb or some other device name      *****
-***** Failure to do so may result in you wiping your hard disk *****
+  cat /proc/partitions
+
+Then, run the following command as root:
+
+*** WARNING! The command will destroy all the card content. Use with care! ***
 
-   # dd if=output/images/sdcard.img of=/dev/sdc bs=512
+ sudo dd if=output/images/sdcard.img of=/dev/<your-microsd-device>
 
 === Manual creation of SD card image =========================================
 
-- 
2.7.4

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

* [Buildroot] [PATCH 4/4] imx233_olinuxino: readme: Remove a section
  2016-11-10 15:39 [Buildroot] [PATCH 1/4] configs/imx233_olinuxino: Add EXT4 support Fabio Estevam
  2016-11-10 15:39 ` [Buildroot] [PATCH 2/4] imx233_olinuxino: readme: Adjust the generated file names Fabio Estevam
  2016-11-10 15:39 ` [Buildroot] [PATCH 3/4] imx233_olinuxino: readme: Improve SD card flashing procedure Fabio Estevam
@ 2016-11-10 15:39 ` Fabio Estevam
  2016-11-10 17:42 ` [Buildroot] [PATCH 1/4] configs/imx233_olinuxino: Add EXT4 support François Perrad
  2016-11-11 15:35 ` Thomas Petazzoni
  4 siblings, 0 replies; 6+ messages in thread
From: Fabio Estevam @ 2016-11-10 15:39 UTC (permalink / raw)
  To: buildroot

After the conversion to the common genimage scripts, the uImage.imx23-olinuxino
file no longer exists.

Instead of updating the section, let's simply remove it as the more
standard method of using sdcard.img is already explained.

This also makes the readme more consistent with the other i.MX readme files.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
---
 board/olimex/imx233_olinuxino/readme.txt | 70 --------------------------------
 1 file changed, 70 deletions(-)

diff --git a/board/olimex/imx233_olinuxino/readme.txt b/board/olimex/imx233_olinuxino/readme.txt
index 2722c3a..1e676c4 100644
--- a/board/olimex/imx233_olinuxino/readme.txt
+++ b/board/olimex/imx233_olinuxino/readme.txt
@@ -27,73 +27,3 @@ Then, run the following command as root:
 *** WARNING! The command will destroy all the card content. Use with care! ***
 
  sudo dd if=output/images/sdcard.img of=/dev/<your-microsd-device>
-
-=== Manual creation of SD card image =========================================
-
-You'll need a spare MicroSD card with Freescale's special partition layout.
-This is basically three partitions:
-
-1) Type 53, the U-Boot partition, should be 16MB.
-2) VFAT, place the kernel uImage there
-3) Anything you like, for this example an ext2 partition, type 83 (linux).
-
-Assuming you see your MicroSD card as /dev/sdc you'd need to do, as root
-and from the buildroot project top level directory:
-(remember to replace /dev/sdc* with the appropiate device name!)
-
-***** WARNING: Double check that /dev/sdc is your MicroSD card *****
-*****      It might be /dev/sdb or some other device name      *****
-***** Failure to do so may result in you wiping your hard disk *****
-
-1. Unmount the filesystem(s) if they're already mounted, usually...
-
-   # for fs in `grep /dev/sdc /proc/mounts|cut -d ' ' -f 1`;do umount $fs;done
-
-   ...should work
-
-2. Blank the partition table out
-
-   # dd if=/dev/zero of=/dev/sdc bs=1024 count=1024
-
-3. Set up the partitions
-
-   # fdisk /dev/sdc
-   n
-   p
-   1
-   <ENTER>
-   +16MB
-   t
-   53
-   n
-   p
-   2
-   <ENTER>
-   +5M
-   t
-   2
-   4
-   n
-   p
-   3
-   <ENTER>
-   <ENTER>
-   w
-
-4. Fill up the first (U-Boot) partition
-   # dd if=output/images/u-boot.sd bs=512 of=/dev/sdc1
-
-5. Create VFAT Filesystem
-   # mkfs.vfat /dev/sdc2
-
-6. Mount and copy output/images/uImage.imx23-olinuxino to the VFAT partition, rename to uImage
-   # mount /dev/sdc2 /mnt
-   # cp output/images/uImages/uImage.imx23-olinuxino /mnt/uImage
-   # umount /mnt
-
-7. Fill up the third (filesystem) partition
-   # dd if=output/images/rootfs.ext2 of=/dev/sdc3 bs=512
-
-8. Remove the MicroSD card from your linux PC and put it into your olinuxino.
-
-9. Boot! You're done!
-- 
2.7.4

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

* [Buildroot] [PATCH 1/4] configs/imx233_olinuxino: Add EXT4 support
  2016-11-10 15:39 [Buildroot] [PATCH 1/4] configs/imx233_olinuxino: Add EXT4 support Fabio Estevam
                   ` (2 preceding siblings ...)
  2016-11-10 15:39 ` [Buildroot] [PATCH 4/4] imx233_olinuxino: readme: Remove a section Fabio Estevam
@ 2016-11-10 17:42 ` François Perrad
  2016-11-11 15:35 ` Thomas Petazzoni
  4 siblings, 0 replies; 6+ messages in thread
From: François Perrad @ 2016-11-10 17:42 UTC (permalink / raw)
  To: buildroot

2016-11-10 16:39 GMT+01:00 Fabio Estevam <fabio.estevam@nxp.com>:
> Select BR2_TARGET_ROOTFS_EXT4 so that an EXT4 rootfs can be generated.
>
> Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>

Acked-by: Francois Perrad <francois.perrad@gadz.org>

> ---
>  configs/olimex_imx233_olinuxino_defconfig | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/configs/olimex_imx233_olinuxino_defconfig b/configs/olimex_imx233_olinuxino_defconfig
> index 1040e5e..70e8b5d 100644
> --- a/configs/olimex_imx233_olinuxino_defconfig
> +++ b/configs/olimex_imx233_olinuxino_defconfig
> @@ -32,6 +32,7 @@ BR2_PACKAGE_ZD1211_FIRMWARE=y
>
>  # Filesystem
>  BR2_TARGET_ROOTFS_EXT2=y
> +BR2_TARGET_ROOTFS_EXT4=y
>  # BR2_TARGET_ROOTFS_TAR is not set
>
>  # U-Boot
> --
> 2.7.4
>

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

* [Buildroot] [PATCH 1/4] configs/imx233_olinuxino: Add EXT4 support
  2016-11-10 15:39 [Buildroot] [PATCH 1/4] configs/imx233_olinuxino: Add EXT4 support Fabio Estevam
                   ` (3 preceding siblings ...)
  2016-11-10 17:42 ` [Buildroot] [PATCH 1/4] configs/imx233_olinuxino: Add EXT4 support François Perrad
@ 2016-11-11 15:35 ` Thomas Petazzoni
  4 siblings, 0 replies; 6+ messages in thread
From: Thomas Petazzoni @ 2016-11-11 15:35 UTC (permalink / raw)
  To: buildroot

Hello,

On Thu, 10 Nov 2016 13:39:45 -0200, Fabio Estevam wrote:
> Select BR2_TARGET_ROOTFS_EXT4 so that an EXT4 rootfs can be generated.
> 
> Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
> ---
>  configs/olimex_imx233_olinuxino_defconfig | 1 +
>  1 file changed, 1 insertion(+)

All applied to next. Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

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

end of thread, other threads:[~2016-11-11 15:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-10 15:39 [Buildroot] [PATCH 1/4] configs/imx233_olinuxino: Add EXT4 support Fabio Estevam
2016-11-10 15:39 ` [Buildroot] [PATCH 2/4] imx233_olinuxino: readme: Adjust the generated file names Fabio Estevam
2016-11-10 15:39 ` [Buildroot] [PATCH 3/4] imx233_olinuxino: readme: Improve SD card flashing procedure Fabio Estevam
2016-11-10 15:39 ` [Buildroot] [PATCH 4/4] imx233_olinuxino: readme: Remove a section Fabio Estevam
2016-11-10 17:42 ` [Buildroot] [PATCH 1/4] configs/imx233_olinuxino: Add EXT4 support François Perrad
2016-11-11 15:35 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox