add Gnublin board support
PATCH 1/1 add Gnublin board support
--- board/gnublin/README | 41 + board/gnublin/gnublin_kernel_config | 1836 +++++++++++++++++++++++++++++++++++ configs/gnublin_defconfig | 1253 ++++++++++++++++++++++++ 3 files changed, 3130 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 +41 -0
@@ -0,0 +1,41 @@ +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: + +#config buildroot with the gnublin_defconfig: + +$ make gnublin_defconfig + +#tweak the config for your needs: + +$ make menuconfig + +#and build: + +$ make + +#Create 2 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. + +#from the output/images directory dump the u-boot image to the BootIt partition: + +$ dd if=output/images/u-boot.bin of=/dev/sdc2 +# ^^^^ modify it accordingly + +#and the dump the root fs image as well: +$ dd if=output/images/rootfs.ext2 of=/dev/sdc1 +# ^^^^ modify it accordingly +#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 +1836 -0
1,836 lines not on this page · raw message
configs/gnublin_defconfig new file +1253 -0
1,123 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.7.9.5
Part of the diff is not shown here. View the raw message.
PATCH 1/1 add Gnublin board support
Dear Zoltan Gyarmati,
Quoted 5 lines · Zoltan Gyarmati
Signed-off-by Zoltan Gyarmati <[email protected]>--- board/gnublin/README | 41 + board/gnublin/gnublin_kernel_config | 1836 +++++++++++++++++++++++++++++++++++
The kernel configuration file should preferably be a minimal configuration file, generated using linux-savedefconfig.
Quoted 1 line
configs/gnublin_defconfig | 1253 ++++++++++++++++++++++++
Ditto here, minimal Buildroot config file preferred. Generated using make savedefconfig.
board/gnublin/README line 5
Quoted 7 lines
+++ b/board/gnublin/README
board/gnublin/README new file +5
-0@@ -0,0 +1,41 @@ +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.
[...]
Could you wrap those lines to ~80 columns maximum? Good text editors should have a way of doing that automatically for you.
board/gnublin/README line 12
Quoted 6 lines
board/gnublin/README new file +6
-0+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: + +#config buildroot with the gnublin_defconfig:
I believe it is a bit strange to have those comments starting with "#" because "#" is also usually the root prompt. What about something like:
1. Configure buildroot with the gnublin_defconfig
$ make gnublin_defconfig
And ditto for the next steps?
Quoted 9 lines
board/gnublin/README new file +9
-0+ +$ make gnublin_defconfig + +#tweak the config for your needs: + +$ make menuconfig + +#and build: +
board/gnublin/README line 31
Quoted 10 lines
board/gnublin/README new file +10
-0+$ make + +#Create 2 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. + +#from the output/images directory dump the u-boot image to the BootIt partition: + +$ dd if=output/images/u-boot.bin of=/dev/sdc2 +# ^^^^ modify it accordingly
Are you sure U-Boot goes on the second partition? My understanding of your text is that the first partition is the small one with a special type (I assume for the bootloader), and the second, big partition, is for the root filesystem.
board/gnublin/README line 35
Quoted 3 lines
board/gnublin/README new file +3
-0+#and the dump the root fs image as well: +$ dd if=output/images/rootfs.ext2 of=/dev/sdc1 +# ^^^^ modify it accordingly
Instead of "^^^^ modify it accordingly", just mention it on a different line, like "Of course, /dev/sdc1 should be adjusted depending on which device corresponds to the SD card on your system", or something like that.
Best regards,
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
PATCH 1/1 add Gnublin board support
Quoted 73 lines · Thomas Petazzoni
Dear Zoltan Gyarmati,
Quoted 4 lines · Zoltan Gyarmati
Signed-off-by Zoltan Gyarmati <[email protected]>--- board/gnublin/README | 41 + board/gnublin/gnublin_kernel_config | 1836 +++++++++++++++++++++++++++++++++++The kernel configuration file should preferably be a minimal configuration file, generated using linux-savedefconfig.
Quoted 1 line
configs/gnublin_defconfig | 1253 ++++++++++++++++++++++++Ditto here, minimal Buildroot config file preferred. Generated using make savedefconfig.
board/gnublin/README line 5
Quoted 7 lines
+++ b/board/gnublin/README
board/gnublin/README new file +5
-0@@ -0,0 +1,41 @@ +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.[...]
Could you wrap those lines to ~80 columns maximum? Good text editors should have a way of doing that automatically for you.
board/gnublin/README line 12
Quoted 6 lines
board/gnublin/README new file +6
-0+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: + +#config buildroot with the gnublin_defconfig:I believe it is a bit strange to have those comments starting with "#" because "#" is also usually the root prompt. What about something like:
1. Configure buildroot with the
gnublin_defconfig$ make gnublin_defconfigAnd ditto for the next steps?
Quoted 9 lines
board/gnublin/README new file +9
-0+ +$ make gnublin_defconfig + +#tweak the config for your needs: + +$ make menuconfig + +#and build: +board/gnublin/README line 31
Quoted 10 lines
board/gnublin/README new file +10
-0+$ make + +#Create 2 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. + +#from the output/images directory dump the u-boot image to the BootIt partition: + +$ dd if=output/images/u-boot.bin of=/dev/sdc2 +# ^^^^ modify it accordinglyAre you sure U-Boot goes on the second partition? My understanding of your text is that the first partition is the small one with a special type (I assume for the bootloader), and the second, big partition, is for the root filesystem.
board/gnublin/README line 35
Quoted 3 lines
board/gnublin/README new file +3
-0+#and the dump the root fs image as well: +$ dd if=output/images/rootfs.ext2 of=/dev/sdc1 +# ^^^^ modify it accordinglyInstead of "^^^^ modify it accordingly", just mention it on a different line, like "Of course,
/dev/sdc1should be adjusted depending on which device corresponds to the SD card on your system", or something like that.
Quoted 3 lines
Best regards,
Thomas
Hi Thomas,
thx for the input, i'll correct and resend it.
Signature · 4 lines
br, Zoltan Gyarmati mail: mr.zoltan.gyarmati at gmail.com freenode nick: zgyarmati
PATCH 1/1 add Gnublin board support
In reply to Zoltan GyarmatiHi Zoltan,
A few comments in addition to Thomas's.
Quoted 5 lines · Zoltan Gyarmati
Signed-off-by Zoltan Gyarmati <[email protected]>--- board/gnublin/README | 41 + board/gnublin/gnublin_kernel_config | 1836 +++++++++++++++++++++++++++++++++++
The kernel config is typically called "linux-<version>.config". In
your case, the version is gnublin_support_v1 which is a bit unfortunate, so perhaps 3.7 is better.
(It would be nice if the gnublin kernel tree would tag with e.g.
v3.7-gnublin-1 instead.)
It would also be nice if the gnublin kernel tree would contain a
defconfig for the board, then there's no need to include a custom linux config in buildroot.
It would also be nice if it would follow the stable kernel (currently
3.7.6 I think).
Quoted 12 lines
configs/gnublin_defconfig | 1253 ++++++++++++++++++++++++ 3 files changed, 3130 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 +0
-0
board/gnublin/README line 5
Quoted 5 lines
board/gnublin/README new file +5
-0@@ -0,0 +1,41 @@ +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.
Would be nice to mention the SoC used.
board/gnublin/README line 7
Quoted 2 lines
board/gnublin/README new file +2
-0+ +Base kernel version: 3.7.0 (available here: https://gitorious.org/linux-3-7-gnublin/linux-3-7-gnublin/commits/gnublin-support)
I guess that should be 3.7 (there is no 3.7.0 tag or tarball).
Quoted 14 lines
board/gnublin/README new file +14
-0+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: + +#config buildroot with the gnublin_defconfig: + +$ make gnublin_defconfig + +#tweak the config for your needs: + +$ make menuconfig + +#and build: +
board/gnublin/README line 31
Quoted 10 lines
board/gnublin/README new file +10
-0+$ make + +#Create 2 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. + +#from the output/images directory dump the u-boot image to the BootIt partition: + +$ dd if=output/images/u-boot.bin of=/dev/sdc2 +# ^^^^ modify it accordingly
Tip: if you're not using conversions, cat is generally much more
efficient than dd:
cat output/images/u-boot.bin > /dev/sdc2
Regards,
Arnout
Quoted 6 lines
board/gnublin/README new file +6
-0+ +#and the dump the root fs image as well: +$ dd if=output/images/rootfs.ext2 of=/dev/sdc1 +# ^^^^ modify it accordingly +#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
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