Skip to contentSkip to conversation

defconfig for Phytec Cosmic-AM335x Board

PATCH New Praveen kumar Vattipalli 4 participants 5 messages Jan 28, 2014 – Jul 16, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 defconfig for Phytec Cosmic-AM335x Board

---
 board/cosmic-am335x/readme.txt         |   54 ++++++++++++++++++++++++++++++
 configs/phytec_cosmic_am335x_defconfig |   57 ++++++++++++++++++++++++++++++++
 2 files changed, 111 insertions(+)
 create mode 100644 board/cosmic-am335x/readme.txt
 create mode 100644 configs/phytec_cosmic_am335x_defconfig
board/cosmic-am335x/readme.txt new file +54 -0
new file mode 100644
index 0000000..62fd238
@@ -0,0 +1,54 @@
+Phytec Cosmic-AM335x Board.
+
+How to build it
+===============
+
+Configure Buildroot
+-------------------
+
+The pcm051lb_defconfig configuration is a default configuration for Phytec Cosmic-AM335x Board.
+
+  $ make phytec_cosmic_am335x_defconfig
+
+Build the rootfs
+----------------
+You may now build your rootfs with:
+
+  $ make
+
+This may take a long time. In this process it download some pakages,you need internet Connections.
+
+Result of the build
+-------------------
+
+After building, you should obtain this tree:
+
+	output/images/
+		+-- rootfs.tar
+		+-- barebox.bin
+		+-- uImage
+
+To boot the board you need MLO (primary bootloader) so download from below link
+ftp://ftp.phytec.de/pub/Products/India/Cosmic-AM335x/Linux/PD13.0.0/images/MLO
+
+Prepare you SDCard
+==================
+
+For more information, download manual
+
+	ftp://ftp.phytec.de/pub/Products/India/Cosmic-AM335x/Linux/doc/Cosmic-AM335x%20System%20Development%20User%20Manual.pdf
+
+Install the binaries to the SDCard
+----------------------------------
+
+		cp MLO /media/boot
+	output/images/
+		cp barebox.bin uImage /media/boot
+		tar -xvf rootfs.tar -C /media/rootfs
+
+Finish
+======
+
+Unmount all the partitions And eject your SDcard from your computer.
+
+Insert the SDcard into your cosmic, and power it up. Your new system should come up, now.
configs/phytec_cosmic_am335x_defconfig new file +57 -0

57 lines not on this page · raw message

Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 defconfig for Phytec Cosmic-AM335x Board

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

"Praveen" == Praveen kumar Vattipalli <[email protected]> writes:

Thanks for your patch. See below for a few comments:

Quoted 14 lines
---
 board/cosmic-am335x/readme.txt         |   54 ++++++++++++++++++++++++++++++
 configs/phytec_cosmic_am335x_defconfig |   57 ++++++++++++++++++++++++++++++++
 2 files changed, 111 insertions(+)
 create mode 100644 board/cosmic-am335x/readme.txt
 create mode 100644 configs/phytec_cosmic_am335x_defconfig
board/cosmic-am335x/readme.txt new file +1 -0
new file mode 100644
index 0000000..62fd238
@@ -0,0 +1,54 @@
+Phytec Cosmic-AM335x Board.

board/cosmic-am335x/readme.txt line 11

Quoted 10 lines
board/cosmic-am335x/readme.txt new file +10 -0
+
+How to build it
+===============
+
+Configure Buildroot
+-------------------
+
+The pcm051lb_defconfig configuration is a default configuration for Phytec Cosmic-AM335x Board.
+
+  $ make phytec_cosmic_am335x_defconfig

Ehh, pcm051lb or phytec_cosmit_am335x?

Quoted 1 line

+

board/cosmic-am335x/readme.txt line 19

Quoted 7 lines
board/cosmic-am335x/readme.txt new file +7 -0
+Build the rootfs
+----------------
+You may now build your rootfs with:
+
+  $ make
+
+This may take a long time. In this process it download some pakages,you need internet Connections.

Typos/odd sentence. What about:

This may take a long time. During this process, additional source code is downloaded from the Internet.

board/cosmic-am335x/readme.txt line 32

Quoted 13 lines
board/cosmic-am335x/readme.txt new file +13 -0
+
+Result of the build
+-------------------
+
+After building, you should obtain this tree:
+
+	output/images/
+		+-- rootfs.tar
+		+-- barebox.bin
+		+-- uImage
+
+To boot the board you need MLO (primary bootloader) so download from below link
+ftp://ftp.phytec.de/pub/Products/India/Cosmic-AM335x/Linux/PD13.0.0/images/MLO

Hmm, can't we build MLO ourselves?

Quoted 6 lines
board/cosmic-am335x/readme.txt new file +6 -0
+
+Prepare you SDCard
+==================
+
+For more information, download manual
+

board/cosmic-am335x/readme.txt line 48

Quoted 10 lines
board/cosmic-am335x/readme.txt new file +10 -0
+	ftp://ftp.phytec.de/pub/Products/India/Cosmic-AM335x/Linux/doc/Cosmic-AM335x%20System%20Development%20User%20Manual.pdf
+
+Install the binaries to the SDCard
+----------------------------------
+
+		cp MLO /media/boot
+	output/images/
+		cp barebox.bin uImage /media/boot
+		tar -xvf rootfs.tar -C /media/rootfs
+

Hmm, it looks like there's a mount command, a 'cd' in front of output/images and sudo before the tar missing.

Quoted 12 lines
board/cosmic-am335x/readme.txt new file +6 -0
+Finish
+======
+
+Unmount all the partitions And eject your SDcard from your computer.
+
+Insert the SDcard into your cosmic, and power it up. Your new system should come up, now.
configs/phytec_cosmic_am335x_defconfig new file +0 -0
new file mode 100644
index 0000000..94ba4ba

configs/phytec_cosmic_am335x_defconfig line 4

Quoted 4 lines
configs/phytec_cosmic_am335x_defconfig new file +4 -0
@@ -0,0 +1,57 @@
+BR2_arm=y
+BR2_cortex_a8=y
+BR2_ARM_SOFT_FLOAT=y
+BR2_JLEVEL=4

Please don't hardcode JLEVEL in a defconfig.

configs/phytec_cosmic_am335x_defconfig line 5

Quoted 1 line
configs/phytec_cosmic_am335x_defconfig new file +1 -0
+BR2_DEPRECATED=y

Why?

configs/phytec_cosmic_am335x_defconfig line 9

Quoted 4 lines
configs/phytec_cosmic_am335x_defconfig new file +4 -0
+BR2_TOOLCHAIN_EXTERNAL=y
+BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y
+BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y
+BR2_TOOLCHAIN_EXTERNAL_URL="ftp://ftp.phytec.de/pub/Products/India/Cosmic-AM335x/Linux/PD13.0.0/tools/toolchain/arm-cortexa8-linux-gnueabi.tar.bz2"

Defconfigs should use the internal uClibc toolchain.

configs/phytec_cosmic_am335x_defconfig line 19

Quoted 10 lines
configs/phytec_cosmic_am335x_defconfig new file +10 -0
+BR2_TOOLCHAIN_EXTERNAL_CUSTOM_PREFIX="arm-cortexa8-linux-gnueabi"
+BR2_TOOLCHAIN_EXTERNAL_CUSTOM_GLIBC=y
+BR2_TOOLCHAIN_EXTERNAL_CXX=y
+BR2_TARGET_GENERIC_HOSTNAME="Cosmic-AM335x"
+BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV=y
+BR2_TARGET_GENERIC_GETTY_PORT="ttyO0"
+BR2_TARGET_GENERIC_GETTY_TERM=""
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
+BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="ftp://ftp.phytec.de/pub/Products/India/Cosmic-AM335x/Linux/PD13.0.0/src/linux/linux-3.2.tar.bz2"

No mainline support?

Quoted 25 lines
configs/phytec_cosmic_am335x_defconfig new file +24 -0
+BR2_LINUX_KERNEL_DEFCONFIG="pcm051lb"
 
+BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
+BR2_PACKAGE_TAR=y
+BR2_PACKAGE_FBGRAB=y
+BR2_PACKAGE_FBSET=y
+BR2_PACKAGE_FB_TEST_APP=y
+BR2_PACKAGE_FBV=y
+BR2_PACKAGE_EVTEST=y
+BR2_PACKAGE_I2C_TOOLS=y
+BR2_PACKAGE_LZO=y
+BR2_PACKAGE_LIBGPGME=y
+BR2_PACKAGE_TSLIB=y
+BR2_PACKAGE_LIBXML2=y
+BR2_PACKAGE_NCURSES_TARGET_PANEL=y
+BR2_PACKAGE_NCURSES_TARGET_FORM=y
+BR2_PACKAGE_NCURSES_TARGET_MENU=y
+BR2_PACKAGE_CAN_UTILS=y
+BR2_PACKAGE_DHCP=y
+BR2_PACKAGE_DHCP_SERVER=y
+BR2_PACKAGE_DHCP_SERVER_DELAYED_ACK=y
+BR2_PACKAGE_DHCP_CLIENT=y
+BR2_PACKAGE_ETHTOOL=y
+BR2_PACKAGE_IPERF=y
+BR2_PACKAGE_IPROUTE2=y

configs/phytec_cosmic_am335x_defconfig line 53

Quoted 10 lines
configs/phytec_cosmic_am335x_defconfig new file +10 -0
+BR2_PACKAGE_OPENSSH=y
+BR2_PACKAGE_WGET=y
+BR2_PACKAGE_IPKG=y
+BR2_PACKAGE_OPKG=y
+BR2_PACKAGE_RPM=y
+BR2_PACKAGE_BASH=y
+BR2_PACKAGE_DASH=y
+BR2_PACKAGE_FILE=y
+BR2_PACKAGE_TIME=y
+BR2_PACKAGE_WHICH=y

These packages are for a specific use case and shouldn't be in a minimal defconfig.

configs/phytec_cosmic_am335x_defconfig line 56

Quoted 3 lines
configs/phytec_cosmic_am335x_defconfig new file +3 -0
+BR2_TARGET_BAREBOX=y
+BR2_TARGET_BAREBOX_CUSTOM_TARBALL=y
+BR2_TARGET_BAREBOX_CUSTOM_TARBALL_LOCATION="ftp://ftp.phytec.de/pub/Products/India/Cosmic-AM335x/Linux/PD13.0.0/src/bootloaders/barebox/barebox-2013.07.0.tar.bz2"

No mainline support?

Quoted 1 line

+BR2_TARGET_BAREBOX_BOARD_DEFCONFIG="pcm051lb"

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

PATCH 1/1 defconfig for Phytec Cosmic-AM335x Board

Quoted 1 line · Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Praveen" == Praveen kumar Vattipalli <[email protected]> writes:

[snip]

Quoted 7 lines
Quoted 7 lines
board/cosmic-am335x/readme.txt new file +7 -0
+
+Result of the build
+-------------------
+
+After building, you should obtain this tree:
+
+	output/images/
Quoted 8 lines

board/cosmic-am335x/readme.txt line 32

Quoted 6 lines
board/cosmic-am335x/readme.txt new file +6 -0
+		+-- rootfs.tar
+		+-- barebox.bin
+		+-- uImage
+
+To boot the board you need MLO (primary bootloader) so download from below link
+ftp://ftp.phytec.de/pub/Products/India/Cosmic-AM335x/Linux/PD13.0.0/images/MLO

Hmm, can't we build MLO ourselves?

The patch that makes that possible in barebox was just rejected in
patchwork...

[snip]

Quoted 4 lines
Quoted 4 lines
configs/phytec_cosmic_am335x_defconfig new file +4 -0
+BR2_TOOLCHAIN_EXTERNAL_CUSTOM_PREFIX="arm-cortexa8-linux-gnueabi"
+BR2_TOOLCHAIN_EXTERNAL_CUSTOM_GLIBC=y
+BR2_TOOLCHAIN_EXTERNAL_CXX=y
+BR2_TARGET_GENERIC_HOSTNAME="Cosmic-AM335x"
Quoted 8 lines

configs/phytec_cosmic_am335x_defconfig line 19

Quoted 6 lines
configs/phytec_cosmic_am335x_defconfig new file +6 -0
+BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV=y
+BR2_TARGET_GENERIC_GETTY_PORT="ttyO0"
+BR2_TARGET_GENERIC_GETTY_TERM=""
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
+BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="ftp://ftp.phytec.de/pub/Products/India/Cosmic-AM335x/Linux/PD13.0.0/src/linux/linux-3.2.tar.bz2"

No mainline support?

3.2 so still using board files...

[snip]

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
#3 lore raw

PATCH 1/1 defconfig for Phytec Cosmic-AM335x Board

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

"Arnout" == Arnout Vandecappelle <[email protected]> writes:

Hi,

Quoted 7 lines
Quoted 4 lines

board/cosmic-am335x/readme.txt line 32

Quoted 2 lines
board/cosmic-am335x/readme.txt new file +2 -0
+To boot the board you need MLO (primary bootloader) so download from below link
+ftp://ftp.phytec.de/pub/Products/India/Cosmic-AM335x/Linux/PD13.0.0/images/MLO

Hmm, can't we build MLO ourselves?

The patch that makes that possible in barebox was just rejected in
patchwork...

Ahh, ok. I don't personally use barebox, but if people need this then presumably the patch can be resurrected.

Quoted 6 lines
Quoted 4 lines

configs/phytec_cosmic_am335x_defconfig line 19

Quoted 2 lines
configs/phytec_cosmic_am335x_defconfig new file +2 -0
+BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
+BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="ftp://ftp.phytec.de/pub/Products/India/Cosmic-AM335x/Linux/PD13.0.0/src/linux/linux-3.2.tar.bz2"

No mainline support?

3.2 so still using board files...

Yeah. I don't think there's much need to stay at 3.2 for am335x nowadays though.

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

PATCH 1/1 defconfig for Phytec Cosmic-AM335x Board

In reply to Praveen kumar Vattipalli

Dear Praveen kumar Vattipalli,

Quoted 7 lines · Praveen kumar Vattipalli
---
 board/cosmic-am335x/readme.txt         |   54 ++++++++++++++++++++++++++++++
 configs/phytec_cosmic_am335x_defconfig |   57 ++++++++++++++++++++++++++++++++
 2 files changed, 111 insertions(+)
 create mode 100644 board/cosmic-am335x/readme.txt
 create mode 100644 configs/phytec_cosmic_am335x_defconfig

Thanks for your patch, but despite the feedback provided by Peter Korsgaard and Arnout Vandecappelle just a few days after you posted your patch, you never came back to us with an updated version of the patch. Since it's been 6 months now, I'll mark your patch as "Changes Requested" in our patch tracking system.

Since we are definitely interested in seeing some defconfigs added for Phytec boards, do not hesitate to update your patch, take into account the comments made by Peter and Arnout, and resubmit it.

Thanks a lot for your contribution!

Thomas

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