Skip to contentSkip to conversation

defconfigs: add sama5d3 support

PATCH New ludovic.desroches at atmel.com 4 participants 9 messages Jan 30, 2014 – Oct 6, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 defconfigs: add sama5d3 support

From: Ludovic Desroches <[email protected]>

Defconfig file for boards based on sama5d3x devices.

---

Hi,

This is a basic defconf file for sama5d3 devices. at91boostrap, u-boot, linux stuff will come later.

From the top of my head Alexandre Belloni told me that some flags have to be added for hardware floating point use. It was on a previous version when hard floating has been introduced. Is it still true or does selecting EABIHF is enough?

Regards

Ludovic

 configs/sama5d3_defconfig |  104 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 104 insertions(+)
 create mode 100644 configs/sama5d3_defconfig
configs/sama5d3_defconfig new file +104 -0
new file mode 100644
index 0000000..d54e76d
@@ -0,0 +1,104 @@
+BR2_arm=y
+BR2_cortex_a5=y
+BR2_ARM_EABIHF=y
+BR2_ARM_FPU_VFPV4D16=y
+BR2_ARM_INSTRUCTIONS_THUMB2=y
+BR2_TOOLCHAIN_EXTERNAL=y
+BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV=y
+BR2_PACKAGE_BUSYBOX_CONFIG="package/busybox/busybox-1.20.x.config"
+BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
+BR2_PACKAGE_ALSA_UTILS=y
+BR2_PACKAGE_ALSA_UTILS_ALSACONF=y
+BR2_PACKAGE_ALSA_UTILS_AMIXER=y
+BR2_PACKAGE_ALSA_UTILS_APLAY=y
+BR2_PACKAGE_ALSA_UTILS_SPEAKER_TEST=y
+BR2_PACKAGE_FFMPEG=y
+BR2_PACKAGE_FFMPEG_GPL=y
+BR2_PACKAGE_FFMPEG_NONFREE=y
+BR2_PACKAGE_FFMPEG_POSTPROC=y
+BR2_PACKAGE_GSTREAMER=y
+BR2_PACKAGE_GST_PLUGINS_BASE_PLUGIN_VIDEORATE=y
+BR2_PACKAGE_GST_PLUGINS_BASE_PLUGIN_ALSA=y
+BR2_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PACKAGE_RNG_TOOLS=y
+BR2_PACKAGE_SETSERIAL=y
+BR2_PACKAGE_STATSERIAL=y
+BR2_PACKAGE_USBUTILS=y
+BR2_PACKAGE_USBUTILS_ZLIB=y
+BR2_PACKAGE_PYTHON=y
+BR2_PACKAGE_PYTHON_CURSES=y
+BR2_PACKAGE_PYTHON_READLINE=y
+BR2_PACKAGE_PYTHON_NETIFACES=y
+BR2_PACKAGE_PYTHON_SERIAL=y
+BR2_PACKAGE_PYTHON_SETUPTOOLS=y
+BR2_PACKAGE_SQLITE=y
+BR2_PACKAGE_ZXING=y
+BR2_PACKAGE_ARGP_STANDALONE=y
+BR2_PACKAGE_BRIDGE_UTILS=y
+BR2_PACKAGE_CAN_UTILS=y
+BR2_PACKAGE_DROPBEAR=y
+BR2_PACKAGE_EBTABLES=y
+BR2_PACKAGE_ETHTOOL=y
+BR2_PACKAGE_IPERF=y
+BR2_PACKAGE_IPROUTE2=y
+BR2_PACKAGE_IPTABLES=y
+BR2_PACKAGE_IW=y
+BR2_PACKAGE_LRZSZ=y
+BR2_PACKAGE_MACCHANGER=y
+BR2_PACKAGE_MII_DIAG=y
+BR2_PACKAGE_OPENSSH=y
+BR2_PACKAGE_PORTMAP=y
+BR2_PACKAGE_TCPDUMP=y
+BR2_PACKAGE_WIRELESS_TOOLS=y
+BR2_PACKAGE_WPA_SUPPLICANT=y
+BR2_PACKAGE_WPA_SUPPLICANT_EAP=y
+BR2_PACKAGE_WPA_SUPPLICANT_CLI=y
+BR2_PACKAGE_WPA_SUPPLICANT_PASSPHRASE=y
+BR2_PACKAGE_WPA_SUPPLICANT_AP_SUPPORT=y
+BR2_PACKAGE_WPA_SUPPLICANT_WPS=y
+BR2_PACKAGE_BASH=y
+BR2_PACKAGE_FILE=y
+BR2_PACKAGE_CPULOAD=y
+BR2_PACKAGE_VIM=y
+BR2_TARGET_ROOTFS_CPIO=y
+BR2_TARGET_ROOTFS_JFFS2=y
+BR2_TARGET_ROOTFS_JFFS2_NANDFLASH_2K_128K=y
+BR2_TARGET_ROOTFS_UBIFS=y
+BR2_TARGET_ROOTFS_UBIFS_LEBSIZE=0x1f000
+BR2_TARGET_ROOTFS_UBI=y
+BR2_TARGET_ROOTFS_UBI_SUBSIZE=2048
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 defconfigs: add sama5d3 support

Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

<[email protected]> writes:

From: Ludovic Desroches <[email protected]> Defconfig file for boards based on sama5d3x devices.

Quoted 7 lines

---

Hi,

This is a basic defconf file for sama5d3 devices. at91boostrap, u-boot, linux stuff will come later.

Thanks, but we prefer our defconfigs to just be the minimal needed to configure buildroot for the hardware (arch/variant, bootloader, kernel)
- E.G. something like configs/nitrogen6x_defconfig

Care to send such a minimal defconfig with comments instead?

Quoted 4 lines
Quoted 1 line

From the top of my head Alexandre Belloni told me that some flags have to be

added for hardware floating point use. It was on a previous version when hard floating has been introduced. Is it still true or does selecting EABIHF is enough?

Selecting EABIHF should afaik be enough.

Signature · 1 line
Bye, Peter Korsgaard
#2 lore raw

PATCH 1/1 defconfigs: add sama5d3 support

Hi Peter,

Quoted 8 lines · Peter Korsgaard
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

<[email protected]> writes:

From: Ludovic Desroches <[email protected]> Defconfig file for boards based on sama5d3x devices.

---

Quoted 8 lines
Quoted 4 lines

Hi,

This is a basic defconf file for sama5d3 devices. at91boostrap, u-boot, linux stuff will come later.

Thanks, but we prefer our defconfigs to just be the minimal needed to configure buildroot for the hardware (arch/variant, bootloader, kernel)
- E.G. something like configs/nitrogen6x_defconfig

Ok

Quoted 2 lines

Care to send such a minimal defconfig with comments instead?

Sorry, not sure to have understood, you mean I have to put extra packages I want as comments.

Quoted 10 lines
Quoted 5 lines
Quoted 2 lines

From the top of my head Alexandre Belloni told me that some flags have to be

added for hardware floating point use. It was on a previous version when hard floating has been introduced. Is it still true or does selecting EABIHF is enough?

Selecting EABIHF should afaik be enough.

Signature · 1 line
Bye, Peter Korsgaard

Regards

Ludovic

#3 lore raw

PATCH 1/1 defconfigs: add sama5d3 support

Quoted 6 lines
Quoted 3 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Ludovic" == Ludovic Desroches <[email protected]> writes:

Care to send such a minimal defconfig with comments instead?

Sorry, not sure to have understood, you mean I have to put extra packages I want as comments.

No, please take a look at our other defconfigs (E.G. nitrogen6x):

# architecture
BR2_arm=y
BR2_cortex_a9=y
# system
BR2_TARGET_GENERIC_GETTY=y
BR2_TARGET_GENERIC_GETTY_PORT="ttymxc1"
BR2_ROOTFS_POST_BUILD_SCRIPT="board/boundarydevices/nitrogen6x/post-build.sh"
# filesystem
BR2_TARGET_ROOTFS_EXT2=y
BR2_TARGET_ROOTFS_EXT2_2r1=y
# bootloader
BR2_TARGET_UBOOT=y
BR2_TARGET_UBOOT_BOARDNAME="nitrogen6q"
BR2_TARGET_UBOOT_FORMAT_IMX=y
BR2_TARGET_UBOOT_CUSTOM_TARBALL=y
BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION="http://github.com/boundarydevices/u-boot-imx6/tarball/4034391/u-boot-4034391.tar.gz"
# kernel
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="http://github.com/boundarydevices/linux-imx6/tarball/5809938/linux-imx6-5809938.tar.gz"
BR2_LINUX_KERNEL_DEFCONFIG="nitrogen6x"
BR2_LINUX_KERNEL_INSTALL_TARGET=y

It doesn't enable any usecase specific packages, just the needed arch/getty/linux/bootloader configuration to start working from.

Signature · 1 line
Bye, Peter Korsgaard
#4 lore raw

PATCH 1/1 defconfigs: add sama5d3 support

Quoted 8 lines · Peter Korsgaard
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Ludovic" == Ludovic Desroches <[email protected]> writes:

Care to send such a minimal defconfig with comments instead?

Sorry, not sure to have understood, you mean I have to put extra packages I want as comments.

No, please take a look at our other defconfigs (E.G. nitrogen6x):

I had a look but I didn't understand what you mean by comments. So ok, those kind of comments.

Quoted 29 lines
# architecture
BR2_arm=y
BR2_cortex_a9=y
# system
BR2_TARGET_GENERIC_GETTY=y
BR2_TARGET_GENERIC_GETTY_PORT="ttymxc1"
BR2_ROOTFS_POST_BUILD_SCRIPT="board/boundarydevices/nitrogen6x/post-build.sh"
# filesystem
BR2_TARGET_ROOTFS_EXT2=y
BR2_TARGET_ROOTFS_EXT2_2r1=y
# bootloader
BR2_TARGET_UBOOT=y
BR2_TARGET_UBOOT_BOARDNAME="nitrogen6q"
BR2_TARGET_UBOOT_FORMAT_IMX=y
BR2_TARGET_UBOOT_CUSTOM_TARBALL=y
BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION="http://github.com/boundarydevices/u-boot-imx6/tarball/4034391/u-boot-4034391.tar.gz"
# kernel
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="http://github.com/boundarydevices/linux-imx6/tarball/5809938/linux-imx6-5809938.tar.gz"
BR2_LINUX_KERNEL_DEFCONFIG="nitrogen6x"
BR2_LINUX_KERNEL_INSTALL_TARGET=y
Quoted 3 lines

It doesn't enable any usecase specific packages, just the needed arch/getty/linux/bootloader configuration to start working from.

I understand this point of view and I am fine with it. But my concern is that some customers want something working out of the box. For instance, we often use devmem2 for debugging purpose or other tools such as i2c-tools. It is easier for us to have it in a defconfig file.

I am not trying to convince you to take this defconfig as is! Just to know if there is a way to provide specific packages? If not, it will be provided only in our buildroot-at91 repository. I am also fine with this, if the customer wants something out of the box then he'll have to use our repository. Otherwise he could use buildroot one.

Regards

Ludovic

#5 lore raw

PATCH 1/1 defconfigs: add sama5d3 support

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Ludovic" == Ludovic Desroches <[email protected]> writes:

Hi,

Quoted 11 lines

I understand this point of view and I am fine with it. But my concern is that some customers want something working out of the box. For instance, we often use devmem2 for debugging purpose or other tools such as i2c-tools. It is easier for us to have it in a defconfig file.

I am not trying to convince you to take this defconfig as is! Just to know if there is a way to provide specific packages? If not, it will be provided only in our buildroot-at91 repository. I am also fine with this, if the customer wants something out of the box then he'll have to use our repository. Otherwise he could use buildroot one.

I understand. We're been discussing something like this a few times (E.G. full blown "demo" defconfigs), but for now I prefer to keep the variant in buildroot minimal.

Signature · 1 line
Bye, Peter Korsgaard
#6 lore raw

PATCH 1/1 defconfigs: add sama5d3 support

Quoted 16 lines · Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Ludovic" == Ludovic Desroches <[email protected]> writes:

Hi,

Quoted 11 lines

I understand this point of view and I am fine with it. But my concern is that some customers want something working out of the box. For instance, we often use devmem2 for debugging purpose or other tools such as i2c-tools. It is easier for us to have it in a defconfig file.

I am not trying to convince you to take this defconfig as is! Just to know if there is a way to provide specific packages? If not, it will be provided only in our buildroot-at91 repository. I am also fine with this, if the customer wants something out of the box then he'll have to use our repository. Otherwise he could use buildroot one.

Quoted 3 lines

I understand. We're been discussing something like this a few times (E.G. full blown "demo" defconfigs), but for now I prefer to keep the variant in buildroot minimal.

However, we are OK with a minimal and a demo variant. So you can submit
one patch that builds a minimal config in configs/sama5d3_defconfig, and a second patch that adds a demo defconfig in configs/sama5d3_demo_multimedia_defconfig (it looks like you mainly add multimedia packages, hence the name I chose, but you can take something else of course).

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:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
#7 lore raw

PATCH 1/1 defconfigs: add sama5d3 support

Quoted 21 lines · Arnout Vandecappelle
Quoted 16 lines · Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Ludovic" == Ludovic Desroches <[email protected]> writes:

Hi,

Quoted 11 lines

I understand this point of view and I am fine with it. But my concern is that some customers want something working out of the box. For instance, we often use devmem2 for debugging purpose or other tools such as i2c-tools. It is easier for us to have it in a defconfig file.

I am not trying to convince you to take this defconfig as is! Just to know if there is a way to provide specific packages? If not, it will be provided only in our buildroot-at91 repository. I am also fine with this, if the customer wants something out of the box then he'll have to use our repository. Otherwise he could use buildroot one.

Quoted 3 lines

I understand. We're been discussing something like this a few times (E.G. full blown "demo" defconfigs), but for now I prefer to keep the variant in buildroot minimal.

Quoted 7 lines

However, we are OK with a minimal and a demo variant. So you can submit
one patch that builds a minimal config in configs/sama5d3_defconfig, and a second patch that adds a demo defconfig in configs/sama5d3_demo_multimedia_defconfig (it looks like you mainly add multimedia packages, hence the name I chose, but you can take something else of course).

Once other components would be ready, I'll send a minimal defconfig and a demo defconfig then I let you choose if you want to take both or not.

Regards

Ludovic

#8 lore raw

PATCH 1/1 defconfigs: add sama5d3 support

In reply to ludovic.desroches at atmel.com

Ludovic,

Quoted 5 lines · ludovic.desroches at atmel.com

From: Ludovic Desroches <[email protected]>

Defconfig file for boards based on sama5d3x devices.

Since you posted your patch, we have merged a defconfig for the SAMA5D3 Xplained board that matches the "requirements" of Buildroot in terms of defconfig. See
http://git.buildroot.net/buildroot/commit/?id=54a653f649d131f8a038fc1314383b60294ad351.

So I'll mark your patch as Rejected in our patch tracking system.

Of course, feel free to send a new patch if you disagree with this decision.

Thanks,

Thomas Petazzoni

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