Skip to contentSkip to conversation

olimex_imx233_olinuxino: split defconfig in 2 variants

PATCH New Francois Perrad 4 participants 6 messages Nov 12, 2016 – Nov 14, 2016 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 olimex_imx233_olinuxino: split defconfig in 2 variants

---
 DEVELOPERS                                         |  2 ++
 board/olimex/imx233_olinuxino/readme.txt           | 38 +++++++++++++++++++---
 ...nfig => olimex_imx233_olinuxino_maxi_defconfig} | 16 +--------
 ...=> olimex_imx233_olinuxino_mini_wifi_defconfig} |  3 +-
 4 files changed, 37 insertions(+), 22 deletions(-)
 copy configs/{olimex_imx233_olinuxino_defconfig => olimex_imx233_olinuxino_maxi_defconfig} (66%)
 rename configs/{olimex_imx233_olinuxino_defconfig => olimex_imx233_olinuxino_mini_wifi_defconfig} (97%)
DEVELOPERS +2 -0
index 3a9c00d..60dd82c 100644
@@ -496,7 +496,9 @@ F:	package/ser2net/
 
 N:	Francois Perrad <[email protected]>
 F:	board/olimex/a20_olinuxino
+F:	board/olimex/imx233_olinuxino
 F:	configs/olimex_a20_olinuxino_*
+F:	configs/olimex_ims233_olinuxino_*
 F:	package/4th/
 F:	package/botan/
 F:	package/cosmo/
board/olimex/imx233_olinuxino/readme.txt +33 -5
index 1e676c4..125d82d 100644
@@ -1,9 +1,37 @@
-This configuration is intended as a base image.
-It includes kernel and firmware support for the common USB WiFi hardware.
-Packages for WiFi support are up to the user, you'll probably want
-one or more of: hostapd, iw, wireless_tools and/or wpa_supplicant.
+iMX233-OLinuXino
 
-It also pulls up the console on the serial port, not on TV output.
+Intro
+=====
+
+These are open hardware boards, all based on the Freescale (now NXP) i.MX233 SoC.
+
+for more details about the boards see the following pages:
+ - https://www.olimex.com/Products/OLinuXino/iMX233/
+ - https://en.wikipedia.org/wiki/OLinuXino
+
+The following defconfigs are available:
+ - olimex_imx233_olinuxino_maxi_defconfig
+ - olimex_imx233_olinuxino_mini_wifi_defconfig
+
+These configurations are intended as a base image.
+There pull up the console on the serial port, not on TV output.
+There use mainline kernel with device tree and mainline u-boot.
+
+The configuration MINI-WIFI includes kernel and firmware support for
+the common USB WiFi hardware. Packages for WiFi support are up to the user,
+you'll probably want one or more of: hostapd, iw, wireless_tools
+and/or wpa_supplicant.
+
+How to build it
+===============
+
+Configure Buildroot:
+
+    $ make <board>_defconfig
+
+Compile everything and build the SD card image:
+
+    $ make
 
 === Output files after building ==============================================
 
configs/olimex_imx233_olinuxino_maxi_defconfig renamed from configs/olimex_imx233_olinuxino_defconfig +1 -15
similarity index 66%
copy from configs/olimex_imx233_olinuxino_defconfig
copy to configs/olimex_imx233_olinuxino_maxi_defconfig
index 37ec4d7..c99bf72 100644
@@ -8,33 +8,19 @@ BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_8=y
 # System
 BR2_TARGET_GENERIC_GETTY_PORT="ttyAMA0"
 
-# For automatic firmware loading
-BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y
-
 # Kernel
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_VERSION=y
 BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.8.6"
 BR2_LINUX_KERNEL_DEFCONFIG="mxs"
-BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/olimex/imx233_olinuxino/linux-wifi.fragment"
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
 BR2_LINUX_KERNEL_INTREE_DTS_NAME="imx23-olinuxino"
 BR2_LINUX_KERNEL_UIMAGE=y
 BR2_LINUX_KERNEL_UIMAGE_LOADADDR="0x42000000"
 
-# Firmware for WiFi
-BR2_PACKAGE_LINUX_FIRMWARE=y
-BR2_PACKAGE_LINUX_FIRMWARE_ATHEROS_7010=y
-BR2_PACKAGE_LINUX_FIRMWARE_ATHEROS_9271=y
-BR2_PACKAGE_LINUX_FIRMWARE_RALINK_RT73=y
-BR2_PACKAGE_LINUX_FIRMWARE_RALINK_RT2XX=y
-BR2_PACKAGE_LINUX_FIRMWARE_RTL_81XX=y
-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
 BR2_TARGET_UBOOT=y
@@ -43,7 +29,7 @@ BR2_TARGET_UBOOT_CUSTOM_VERSION=y
 BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2016.09.01"
 BR2_TARGET_UBOOT_BOARD_DEFCONFIG="mx23_olinuxino"
 BR2_TARGET_UBOOT_FORMAT_SD=y
- 
+
 # To generate SD Image
 BR2_PACKAGE_HOST_DOSFSTOOLS=y
 BR2_PACKAGE_HOST_GENIMAGE=y
configs/olimex_imx233_olinuxino_mini_wifi_defconfig renamed from configs/olimex_imx233_olinuxino_defconfig +1 -2
similarity index 97%
rename from configs/olimex_imx233_olinuxino_defconfig
rename to configs/olimex_imx233_olinuxino_mini_wifi_defconfig
index 37ec4d7..8a84fa2 100644
@@ -34,7 +34,6 @@ 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
 BR2_TARGET_UBOOT=y
@@ -43,7 +42,7 @@ BR2_TARGET_UBOOT_CUSTOM_VERSION=y
 BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2016.09.01"
 BR2_TARGET_UBOOT_BOARD_DEFCONFIG="mx23_olinuxino"
 BR2_TARGET_UBOOT_FORMAT_SD=y
- 
+
 # To generate SD Image
 BR2_PACKAGE_HOST_DOSFSTOOLS=y
 BR2_PACKAGE_HOST_GENIMAGE=y
Signature · 1 line
2.7.4
reviewer
#1 lore raw

PATCH 1/1 olimex_imx233_olinuxino: split defconfig in 2 variants

Quoted 1 line · Francois Perrad

It would be nice to explain the reason for splitting the defconfigs in the commit log.

DEVELOPERS F: package/ser2net/

Quoted 14 lines
---
 DEVELOPERS                                         |  2 ++
 board/olimex/imx233_olinuxino/readme.txt           | 38 +++++++++++++++++++---
 ...nfig => olimex_imx233_olinuxino_maxi_defconfig} | 16 +--------
 ...=> olimex_imx233_olinuxino_mini_wifi_defconfig} |  3 +-
 4 files changed, 37 insertions(+), 22 deletions(-)
 copy configs/{olimex_imx233_olinuxino_defconfig => olimex_imx233_olinuxino_maxi_defconfig} (66%)
 rename configs/{olimex_imx233_olinuxino_defconfig => olimex_imx233_olinuxino_mini_wifi_defconfig} (97%)
DEVELOPERS +0 -0
index 3a9c00d..60dd82c 100644
@@ -496,7 +496,9 @@ F:  package/ser2net/

This should be a separate patch.

DEVELOPERS F: package/ser2net/ · line 501

Quoted 6 lines
DEVELOPERS +2 -0
 N:     Francois Perrad <[email protected]>
 F:     board/olimex/a20_olinuxino
+F:     board/olimex/imx233_olinuxino
 F:     configs/olimex_a20_olinuxino_*
+F:     configs/olimex_ims233_olinuxino_*

ims233 ?

I don't see the value in doing this splitting.

What is the problem it fixes or what advantage it brings?

#2 lore raw

PATCH 1/1 olimex_imx233_olinuxino: split defconfig in 2 variants

2016-11-12 13:17 GMT+01:00 Fabio Estevam <[email protected]>:

Quoted 16 lines · Francois Perrad
Quoted 1 line

It would be nice to explain the reason for splitting the defconfigs in the commit log.

Quoted 9 lines
---
 DEVELOPERS                                         |  2 ++
 board/olimex/imx233_olinuxino/readme.txt           | 38 +++++++++++++++++++---
 ...nfig => olimex_imx233_olinuxino_maxi_defconfig} | 16 +--------
 ...=> olimex_imx233_olinuxino_mini_wifi_defconfig} |  3 +-
 4 files changed, 37 insertions(+), 22 deletions(-)
 copy configs/{olimex_imx233_olinuxino_defconfig => olimex_imx233_olinuxino_maxi_defconfig} (66%)
 rename configs/{olimex_imx233_olinuxino_defconfig => olimex_imx233_olinuxino_mini_wifi_defconfig} (97%)
Quoted 7 lines

DEVELOPERS F: package/ser2net/

Quoted 5 lines
DEVELOPERS +0 -0
index 3a9c00d..60dd82c 100644
@@ -496,7 +496,9 @@ F:  package/ser2net/

This should be a separate patch.

You are right according
https://buildroot.org/downloads/manual/manual.html#submitting-patches.

Quoted 8 lines

DEVELOPERS F: package/ser2net/ · line 501

Quoted 6 lines
DEVELOPERS +2 -0
 N:     Francois Perrad <[email protected]>
 F:     board/olimex/a20_olinuxino
+F:     board/olimex/imx233_olinuxino
 F:     configs/olimex_a20_olinuxino_*
+F:     configs/olimex_ims233_olinuxino_*

ims233 ?

Yes, typo imx233

Quoted 4 lines

I don't see the value in doing this splitting.

What is the problem it fixes or what advantage it brings?

My rational is:
- The Wifi part is annoying for me because I cannot test it.

- olimex_imx233_olinuxino_maxi_defconfig is really as minimal as possible (see policy in https://buildroot.org/downloads/manual/manual.html#adding-board-support)
and I could maintain (and test) it.

Fran?ois

Quoted 4 lines

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

#3 lore raw

PATCH 1/1 olimex_imx233_olinuxino: split defconfig in 2 variants

Hello,

Quoted 2 lines · Fran?ois Perrad

My rational is:
- The Wifi part is annoying for me because I cannot test it.

Why? Isn't the Wifi built-in?

Quoted 3 lines

- olimex_imx233_olinuxino_maxi_defconfig is really as minimal as possible (see policy in https://buildroot.org/downloads/manual/manual.html#adding-board-support)
and I could maintain (and test) it.

Using the name "maxi" for a defconfig that is in fact "as minimal as possible" is very weird.

We generally try to provide support for the HW that is available on the board, so if Wifi is available, it's good to have it supported in our defconfig. I don't think two defconfigs are really useful in this situation.

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#4 lore raw

PATCH 1/1 olimex_imx233_olinuxino: split defconfig in 2 variants

2016-11-13 21:42 GMT+01:00 Thomas Petazzoni
<[email protected]>:

Quoted 9 lines

Hello,

Quoted 2 lines · Fran?ois Perrad

My rational is:
- The Wifi part is annoying for me because I cannot test it.

Why? Isn't the Wifi built-in?

No, Wifi is not builtin.

As I said in http://lists.busybox.net/pipermail/buildroot/2016-November/177118.html,
there are many variants of iMX233-OLinuXino: MAXI, MINI, MINI-WIFI, MICRO, NANO.

The only product with Wifi is MINI-WIFI which is in fact a MINI board with the WIFI RTL8188CU module
see https://www.olimex.com/Products/Components/RF/MOD-RTL8188CU/
see https://www.olimex.com/Products/OLinuXino/iMX233/iMX233-OLinuXino-MINI-WiFi/

Quoted 7 lines
Quoted 3 lines

- olimex_imx233_olinuxino_maxi_defconfig is really as minimal as possible (see policy in https://buildroot.org/downloads/manual/manual.html#adding-board-support)
and I could maintain (and test) it.

Using the name "maxi" for a defconfig that is in fact "as minimal as possible" is very weird.

I could rename them:
- olimex_imx233_olinuxino_defconfig
- olimex_imx233_olinuxino_wifi_defconfig

Fran?ois

Quoted 12 lines

We generally try to provide support for the HW that is available on the board, so if Wifi is available, it's good to have it supported in our defconfig. I don't think two defconfigs are really useful in this situation.

Best regards,

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

reviewer
#5 lore raw

PATCH 1/1 olimex_imx233_olinuxino: split defconfig in 2 variants

Hi Fran?ois,

Quoted 3 lines · Fran?ois Perrad

I could rename them:
- olimex_imx233_olinuxino_defconfig
- olimex_imx233_olinuxino_wifi_defconfig

I am still not convinced we should have two defconfigs for this board.

The only difference between them would be to enable some extra kernel config options related to Wifi. They would not cause any harm on a board without wifi.

Also, what if in the future mxs_defconfig is updated to include such Wifi related options?

So I would say, just don't worry about the extra Wifi related modules in your roots and we should be good.