configs: add SoCkit defconfig
PATCH v2 1/1 configs: add SoCkit defconfig
This commit introduces the minimal support for the SoCkit from altera :
http://www.altera.com/b/arrow-sockit.html
It is based on the "Roman Diouskine" <[email protected]> work at https://github.com/rndi/buildroot-alt.
The kernel and the u-boot used is the one developped by rocketboards.org as it is not supported currently in mainline kernel.
For more info, please find board/altera/sockit/readme.txt
---
Changes v1 -> v2:
- Fixe typo in the path to the post-image.sh script
- Remove useless line in the post-image.sh script
--- board/altera/sockit/post-image.sh | 7 + board/altera/sockit/readme.txt | 170 +++++ .../uboot-sockit-preloader-sample-design.patch | 820 +++++++++++++++++++++ configs/altera_sockit_defconfig | 32 + 4 files changed, 1029 insertions(+) create mode 100755 board/altera/sockit/post-image.sh create mode 100644 board/altera/sockit/readme.txt create mode 100644 board/altera/sockit/uboot-sockit-preloader-sample-design.patch create mode 100644 configs/altera_sockit_defconfig
board/altera/sockit/post-image.sh new file +7 -0
@@ -0,0 +1,7 @@ +#!/bin/sh +# post-image.sh for SoCkit +# 2014, "Roman Diouskine" <[email protected]> +# 2014, "Sebastien Bourdelin" <[email protected]> + +# create a DTB file copy with the name expected by the u-boot config +cp -af $BINARIES_DIR/socfpga_cyclone5.dtb $BINARIES_DIR/socfpga.dtb
board/altera/sockit/readme.txt new file +170 -0
170 lines not on this page · raw message
board/altera/sockit/uboot-sockit-preloader-sample-design.patch new file +820 -0
820 lines not on this page · raw message
configs/altera_sockit_defconfig new file +32 -0
@@ -0,0 +1,32 @@ +BR2_arm=y +BR2_cortex_a9=y + +BR2_ARM_EABIHF=y +BR2_ARM_ENABLE_NEON=y +BR2_ARM_FPU_NEON=y +BR2_ARM_INSTRUCTIONS_THUMB2=y + +BR2_TARGET_GENERIC_GETTY_BAUDRATE_57600=y +BR2_ROOTFS_POST_IMAGE_SCRIPT="board/altera/sockit/post-image.sh" + +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_GIT=y +BR2_LINUX_KERNEL_CUSTOM_REPO_URL="git://git.rocketboards.org/linux-socfpga.git" +BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="rel_13.07_RC5" +BR2_LINUX_KERNEL_DEFCONFIG="socfpga" +BR2_LINUX_KERNEL_UIMAGE_LOADADDR="0x8000" +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="socfpga_cyclone5" + +BR2_TARGET_ROOTFS_EXT2=y +BR2_TARGET_ROOTFS_EXT2_3=y + +BR2_TARGET_UBOOT=y +BR2_TARGET_UBOOT_BOARDNAME="socfpga_cyclone5" +BR2_TARGET_UBOOT_CUSTOM_GIT=y +BR2_TARGET_UBOOT_CUSTOM_REPO_URL="git://git.rocketboards.org/u-boot-socfpga.git" +BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="rel_acds13.0sp1" +BR2_TARGET_UBOOT_CUSTOM_PATCH_DIR="board/altera/sockit" +BR2_TARGET_UBOOT_FORMAT_IMG=y +BR2_TARGET_UBOOT_SPL=y +BR2_TARGET_UBOOT_SPL_NAME="spl/u-boot-spl.bin"
Signature · 1 line
1.9.0
PATCH v2 1/1 configs: add SoCkit defconfig
Hello Sebasitian
board/altera/sockit/readme.txt line 154
Quoted 3 lines
board/altera/sockit/readme.txt new file +3
-0+Copy the rootfs : + + $ sudo dd if=rootfs.ext2 of=/dev/mmcblk0p2 bs=64k
It is advisable to do:
sudo sync
at this stage. Some hosts do async writing to block devices and popping the SD card after a write (particularly a large one) can end up losing data.
configs/altera_sockit_defconfig line 25
Quoted 3 lines
configs/altera_sockit_defconfig new file +2
-0+BR2_LINUX_KERNEL_INTREE_DTS_NAME="socfpga_cyclone5" +BR2_TARGET_UBOOT_BOARDNAME="socfpga_cyclone5"
IMHO, this way of doing sockit board support is ugly because it stomps over socfpga_cyclone5 breaks builds for that board . I know that this is the way most people are doing it, but still...
It is probably better if this is handled with proper boards.
There is some work that Walter Lozano and I are doing which helps move this along. There is some discussion on the rocketboard RFI ML.
I am going to try to get a github repository of u-boot up that builds this as socfpga_cyclone5 and then get the rocketboard people to merge it.
Regards
Charles
PATCH v2 1/1 configs: add SoCkit defconfig
Hello Charles,
Quoted 7 lines · Charles Manning
Hello Sebasitian
board/altera/sockit/readme.txt line 154
Quoted 3 lines
board/altera/sockit/readme.txt new file +3
-0+Copy the rootfs : + + $ sudo dd if=rootfs.ext2 of=/dev/mmcblk0p2 bs=64kIt is advisable to do:
Quoted 5 lines
sudo sync
at this stage. Some hosts do async writing to block devices and popping the SD card after a write (particularly a large one) can end up losing data.
Thanks for this advice, i will add this in the readme.
Quoted 12 lines
configs/altera_sockit_defconfig line 25
Quoted 2 lines
configs/altera_sockit_defconfig new file +2
-0+BR2_LINUX_KERNEL_INTREE_DTS_NAME="socfpga_cyclone5" +BR2_TARGET_UBOOT_BOARDNAME="socfpga_cyclone5"IMHO, this way of doing sockit board support is ugly because it stomps over
socfpga_cyclone5breaks builds for that board . I know that this is the way most people are doing it, but still...It is probably better if this is handled with proper boards.
There is some work that Walter Lozano and I are doing which helps move this along. There is some discussion on the rocketboard RFI ML.
Quoted 6 lines
I am going to try to get a github repository of u-boot up that builds this as
socfpga_cyclone5and then get the rocketboard people to merge it.Regards
Charles
Well i agree, but until there is a "sockit" config i think this is the way to go.
By the way, i have seen rocketboard tagged a new Linux and uboot release last week, this Linux release has a socfpga_cyclone5_sockit.dts and seems to work, so i will change the buildroot config to use this release. For the new uboot release, i can't make the preloader work... the files generated by the Altera's tools in its 13.1 version doesn't work from scratch, i'm stuck in the sdram calibration and i'm not enough confident to make it work, so until someone know what's wrong i will stay on the previous uboot release based on the 13.0sp1 Altera's tools.
Regards,
Sebastien.
PATCH v2 1/1 configs: add SoCkit defconfig
Quoted 37 lines · On Wednesday 26 February 2014 05:05:53 Sebastien Bourdelin wrote:
Hello Charles,
Quoted 8 lines · Charles Manning
Hello Sebasitian
board/altera/sockit/readme.txt line 154
Quoted 3 lines
board/altera/sockit/readme.txt new file +3
-0+Copy the rootfs : + + $ sudo dd if=rootfs.ext2 of=/dev/mmcblk0p2 bs=64kIt is advisable to do:
Quoted 5 lines
sudo sync
at this stage. Some hosts do async writing to block devices and popping the SD card after a write (particularly a large one) can end up losing data.
Thanks for this advice, i will add this in the readme.
Quoted 18 lines
configs/altera_sockit_defconfig line 25
Quoted 2 lines
configs/altera_sockit_defconfig new file +2
-0+BR2_LINUX_KERNEL_INTREE_DTS_NAME="socfpga_cyclone5" +BR2_TARGET_UBOOT_BOARDNAME="socfpga_cyclone5"IMHO, this way of doing sockit board support is ugly because it stomps over
socfpga_cyclone5breaks builds for that board . I know that this is the way most people are doing it, but still...It is probably better if this is handled with proper boards.
There is some work that Walter Lozano and I are doing which helps move this along. There is some discussion on the rocketboard RFI ML.
I am going to try to get a github repository of u-boot up that builds this as
socfpga_cyclone5and then get the rocketboard people to merge it.Regards
Quoted 7 lines
Quoted 1 line
Charles
Well i agree, but until there is a "sockit" config i think this is the way to go.
By the way, i have seen rocketboard tagged a new Linux and uboot release last week, this Linux release has asocfpga_cyclone5_sockit.dtsand seems to work, so i will change the buildroot config to use this release.
Great I must look into that.
Quoted 5 lines
For the new uboot release, i can't make the preloader work... the files generated by the Altera's tools in its 13.1 version doesn't work from scratch, i'm stuck in the sdram calibration and i'm not enough confident to make it work, so until someone know what's wrong i will stay on the previous uboot release based on the 13.0sp1 Altera's tools.
That is exactly the same problem as I, and others, are having: SDRAM calibration fails and it is the end of the party.
I have a git repo that builds Sockit, but is based off some old stuff. I am trying to get that published with a proper sockit config etc.
Regards
Charles