Skip to contentSkip to conversation

Add Gnublin board support

PATCH New Zoltan Gyarmati 2 participants 3 messages Feb 6, 2013 – Feb 7, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add Gnublin board support

---
 board/gnublin/README                |   51 +++++++++++++
 board/gnublin/gnublin_kernel_config |  139 +++++++++++++++++++++++++++++++++++
 configs/gnublin_defconfig           |   25 +++++++
 3 files changed, 215 insertions(+)
 create mode 100644 board/gnublin/README
 create mode 100644 board/gnublin/gnublin_kernel_config
 create mode 100644 configs/gnublin_defconfig
board/gnublin/README new file +51 -0
new file mode 100644
index 0000000..2d94161
@@ -0,0 +1,51 @@
+This the Buildroot support for the Gnublin board (see here:
+http://en.gnublin.org/) and to the Elektor Linux board
+(http://www.elektor.com/news/elektor-presents-embedded-linux-made-easy.2147294.
+lynkx)
+
+Unfortunately currently the AD and the pwm modules are not supported, i'm about
+to add also those drivers as well to the current kernel later.
+
+Base kernel version: 3.7.0 (available here:
+https://gitorious.org/linux-3-7-gnublin/linux-3-7-gnublin/commits/gnublin-
+support)
+
+U-boot version: 2009.11 (available here:
+https://gitorious.org/u-boot-gnublin-support/u-boot-gnublin-support)
+
+
+Steps to create a bootable SD card:
+
+1.Config buildroot with the gnublin_defconfig:
+
+$ make gnublin_defconfig
+
+2.Tweak the config for your needs:
+
+$ make menuconfig
+
+3.Build:
+
+$ make
+
+4.Create two partitions on your SD card, one with type of BootIt (fdisk ID: df),
+the size should be around 1M, and another partition with all of the left space
+on the card, and with the type of normal DOS partition.
+
+5.From the output/images directory dump the u-boot image to the BootIt partition
+(probably you have to modify the output /dev files according to your system):
+
+$ dd if=output/images/u-boot.bin of=/dev/sdc1
+
+6.Dump the root fs image as well:
+
+$ dd if=output/images/rootfs.ext2 of=/dev/sdc2
+
+7.Insert the SD card into the board's slot, and your board should boot up with
+your newly created system.
+
+Any feedback/report is welcome on the mr.zoltan.gyarmati[at]gmail.com 
+
+
+
+
board/gnublin/gnublin_kernel_config new file +139 -0

139 lines not on this page · raw message

configs/gnublin_defconfig new file +25 -0
new file mode 100644
index 0000000..3664b96
@@ -0,0 +1,25 @@
+BR2_arm=y
+BR2_arm926t=y
+BR2_TOOLCHAIN_BUILDROOT_LARGEFILE=y
+BR2_TOOLCHAIN_BUILDROOT_INET_RPC=y
+BR2_TOOLCHAIN_BUILDROOT_WCHAR=y
+BR2_TARGET_GENERIC_ISSUE="Welcome to Gnublin"
+BR2_TARGET_GENERIC_PASSWD_SHA256=y
+BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV=y
+BR2_PACKAGE_LIBFFI=y
+BR2_PACKAGE_NCURSES=y
+BR2_PACKAGE_HOST_UBOOT_TOOLS=y
+BR2_TARGET_ROOTFS_EXT2=y
+BR2_TARGET_ROOTFS_EXT2_BLOCKS=512000
+BR2_TARGET_UBOOT=y
+BR2_TARGET_UBOOT_BOARDNAME="GNUBLIN"
+BR2_TARGET_UBOOT_CUSTOM_GIT=y
+BR2_TARGET_UBOOT_CUSTOM_GIT_REPO_URL="git://gitorious.org/u-boot-gnublin-support/u-boot-gnublin-support.git"
+BR2_TARGET_UBOOT_CUSTOM_GIT_VERSION="2009.11_gnublin_support_v2"
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_GIT=y
+BR2_LINUX_KERNEL_CUSTOM_GIT_REPO_URL="git://gitorious.org/linux-3-7-gnublin/linux-3-7-gnublin.git"
+BR2_LINUX_KERNEL_CUSTOM_GIT_VERSION="gnublin_support_v1"
+BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
+BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/gnublin/gnublin_kernel_config"
+BR2_LINUX_KERNEL_INSTALL_TARGET=y
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 Add Gnublin board support

configs/gnublin_defconfig line 5

Quoted 11 lines · Zoltan Gyarmati
configs/gnublin_defconfig new file +5 -0
new file mode 100644
index 0000000..3664b96
@@ -0,0 +1,25 @@
+BR2_arm=y
+BR2_arm926t=y
+BR2_TOOLCHAIN_BUILDROOT_LARGEFILE=y
+BR2_TOOLCHAIN_BUILDROOT_INET_RPC=y
+BR2_TOOLCHAIN_BUILDROOT_WCHAR=y

Why are these selected?

configs/gnublin_defconfig line 8

Quoted 3 lines
configs/gnublin_defconfig new file +3 -0
+BR2_TARGET_GENERIC_ISSUE="Welcome to Gnublin"
+BR2_TARGET_GENERIC_PASSWD_SHA256=y
+BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV=y

Why is this one selected?

configs/gnublin_defconfig line 11

Quoted 3 lines
configs/gnublin_defconfig new file +3 -0
+BR2_PACKAGE_LIBFFI=y
+BR2_PACKAGE_NCURSES=y
+BR2_PACKAGE_HOST_UBOOT_TOOLS=y

Why do you need these packages?

configs/gnublin_defconfig line 13

Quoted 2 lines
configs/gnublin_defconfig new file +2 -0
+BR2_TARGET_ROOTFS_EXT2=y
+BR2_TARGET_ROOTFS_EXT2_BLOCKS=512000

You should mention in the README that the SD card size should be at
least 514MB (strange number by the way - wouldn't it make more sense to set the size at 475000 so it may actually fit on a 500MB SD card?)

Regards,
Arnout

Quoted 12 lines
configs/gnublin_defconfig new file +12 -0
+BR2_TARGET_UBOOT=y
+BR2_TARGET_UBOOT_BOARDNAME="GNUBLIN"
+BR2_TARGET_UBOOT_CUSTOM_GIT=y
+BR2_TARGET_UBOOT_CUSTOM_GIT_REPO_URL="git://gitorious.org/u-boot-gnublin-support/u-boot-gnublin-support.git"
+BR2_TARGET_UBOOT_CUSTOM_GIT_VERSION="2009.11_gnublin_support_v2"
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_GIT=y
+BR2_LINUX_KERNEL_CUSTOM_GIT_REPO_URL="git://gitorious.org/linux-3-7-gnublin/linux-3-7-gnublin.git"
+BR2_LINUX_KERNEL_CUSTOM_GIT_VERSION="gnublin_support_v1"
+BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
+BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/gnublin/gnublin_kernel_config"
+BR2_LINUX_KERNEL_INSTALL_TARGET=y
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
#2 lore raw

PATCH 1/1 Add Gnublin board support

Quoted 48 lines · Arnout Vandecappelle

configs/gnublin_defconfig line 5

Quoted 11 lines · Zoltan Gyarmati
configs/gnublin_defconfig new file +5 -0
new file mode 100644
index 0000000..3664b96
@@ -0,0 +1,25 @@
+BR2_arm=y
+BR2_arm926t=y
+BR2_TOOLCHAIN_BUILDROOT_LARGEFILE=y
+BR2_TOOLCHAIN_BUILDROOT_INET_RPC=y
+BR2_TOOLCHAIN_BUILDROOT_WCHAR=y

Why are these selected?

configs/gnublin_defconfig line 8

Quoted 3 lines
configs/gnublin_defconfig new file +3 -0
+BR2_TARGET_GENERIC_ISSUE="Welcome to Gnublin"
+BR2_TARGET_GENERIC_PASSWD_SHA256=y
+BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV=y

Why is this one selected?

configs/gnublin_defconfig line 11

Quoted 3 lines
configs/gnublin_defconfig new file +3 -0
+BR2_PACKAGE_LIBFFI=y
+BR2_PACKAGE_NCURSES=y
+BR2_PACKAGE_HOST_UBOOT_TOOLS=y

Why do you need these packages?

configs/gnublin_defconfig line 13

Quoted 2 lines
configs/gnublin_defconfig new file +2 -0
+BR2_TARGET_ROOTFS_EXT2=y
+BR2_TARGET_ROOTFS_EXT2_BLOCKS=512000

You should mention in the README that the SD card size should be at
least 514MB (strange number by the way - wouldn't it make more sense to set the size at 475000 so it may actually fit on a 500MB SD card?)

Regards,
Arnout

Quoted 10 lines
configs/gnublin_defconfig new file +8 -0
+BR2_TARGET_UBOOT=y
+BR2_TARGET_UBOOT_BOARDNAME="GNUBLIN"
+BR2_TARGET_UBOOT_CUSTOM_GIT=y
+BR2_TARGET_UBOOT_CUSTOM_GIT_REPO_URL="git://gitorious.org/u-boot-gnublin-support/u-boot-gnublin-support.git" 
 
+BR2_TARGET_UBOOT_CUSTOM_GIT_VERSION="2009.11_gnublin_support_v2"
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_GIT=y
+BR2_LINUX_KERNEL_CUSTOM_GIT_REPO_URL="git://gitorious.org/linux-3-7-gnublin/linux-3-7-gnublin.git" 
Quoted 7 lines

configs/gnublin_defconfig line 25

Quoted 5 lines
configs/gnublin_defconfig new file +4 -0
+BR2_LINUX_KERNEL_CUSTOM_GIT_VERSION="gnublin_support_v1"
+BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
+BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/gnublin/gnublin_kernel_config" 
 
+BR2_LINUX_KERNEL_INSTALL_TARGET=y

Hi,

hm, ok, i'll clean up more carefully(it seems the configs are still representing my setup...), thx for your time and feedback.

Signature · 4 lines
br,
Zoltan Gyarmati
mail: mr.zoltan.gyarmati at gmail.com
freenode nick: zgyarmati