Skip to contentSkip to conversation

Microblaze: Added defconfig for Avnet S6LX9 Microboard

PATCH New Stephan Hoffmann 2 participants 2 messages Mar 11, 2012 – Mar 12, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 5/5 Microblaze: Added defconfig for Avnet S6LX9 Microboard

---
 board/Avnet/Avnet_S6LX9_MicroBoard/README          |   64 +++++
 board/Avnet/Avnet_S6LX9_MicroBoard/TODO            |   19 ++
 board/Avnet/Avnet_S6LX9_MicroBoard/lx9_mmu.dts     |  247 ++++++++++++++++++++
 .../Avnet/Avnet_S6LX9_MicroBoard/lx9_mmu_defconfig |   68 ++++++
 configs/Avnet_S6LX9_MicroBoard_defconfig           |   17 ++
 5 files changed, 415 insertions(+), 0 deletions(-)
 create mode 100644 board/Avnet/Avnet_S6LX9_MicroBoard/README
 create mode 100644 board/Avnet/Avnet_S6LX9_MicroBoard/TODO
 create mode 100644 board/Avnet/Avnet_S6LX9_MicroBoard/lx9_mmu.dts
 create mode 100644 board/Avnet/Avnet_S6LX9_MicroBoard/lx9_mmu_defconfig
 create mode 100644 configs/Avnet_S6LX9_MicroBoard_defconfig
board/Avnet/Avnet_S6LX9_MicroBoard/README new file +64 -0
new file mode 100644
index 0000000..a2e9247
@@ -0,0 +1,64 @@
+This is the buildroot board support for the Avnet Spartan6 LX9 MicroBoard.
+
+The board can be bought from Avnet or from Trenz for a low prize.
+
+To run the Linux built with buildroot you have to install the FPGA bitfile
+and the u-boot boot loader as described in the totorial available on
+
+    http://www.em.avnet.com/s6microboard
+
+The image file (default name is simpleImage.lx9_mmu.ub) has to be
+copied to your tftp folder (often /tftpboot/).
+
+Sample session:
+
+SPI Bootloader
+Loading binary image
+from flash @ address: 00060000
+to RAM address: 83f00000
+Done
+
+
+SDRAM :
+                Icache:ON
+                Dcache:ON
+        U-Boot Start:0x83f00000
+SF: Got idcode 20 ba 18 10 01
+*** Warning - bad CRC, using default environment
+
+Net:   Xilinx_Emaclite
+MAC:   00:0a:35:00:63:37
+U-BOOT for Avnet-LX9-Microboard-AXI-tiny-13.1
+
+BOOTP broadcast 1
+DHCP client bound to address 192.168.11.122
+Hit any key to stop autoboot:  0
+U-Boot-PetaLinux> tftp simpleImage.lx9_mmu.ub
+Using Xilinx_Emaclite device
+TFTP from server 192.168.11.10; our IP address is 192.168.11.122
+Filename 't.ub'.
+Load address: 0x80002000
+Loading: #################################################################
+         #################################################################
+         #################################################################
+         #################################################################
+         #################################################################
+         ##############################
+done
+Bytes transferred = 5207724 (4f76ac hex)
+U-Boot-PetaLinux> bootm
+## Booting kernel from Legacy Image at 80002000 ...
+   Image Name:   Linux-3.1.0
+   Image Type:   MicroBlaze Linux Kernel Image (uncompressed)
+   Data Size:    5207660 Bytes =  5 MB
+   Load Address: 80000000
+   Entry Point:  80000000
+   Verifying Checksum ... OK
+   Loading Kernel Image ... OK
+OK
+## Transferring control to Linux (at address 80000000), 0x80000000 ramdisk 0x00000000, FDT 0x00000000...
+Early console on uartlite at 0x40600000
+..... boot log skipped
+
+Welcome to Microblaze Buildroot
+Microblaze login:
board/Avnet/Avnet_S6LX9_MicroBoard/TODO new file +19 -0
new file mode 100644
index 0000000..ca5ee94
@@ -0,0 +1,19 @@
+TODO list for the Spartan LX9 Microboard
+
+Generate u-boot within buildroot
+================================
+Currently, we need to use the u-boot provided by Avnet.
+
+Provide config files for qemu
+=============================
+
+Generate toolchain
+==================
+Currently the GNU toolchain provided by Xilinx has to be used.
+Xilinx does not provide a toolchain suitable to build a mmu-less
+Linux system, but omitting the mmu saved space within the FPGA.
+
+Bring up mmu-less system
+========================
+Hopefully this is easy as soon as we have a working toolchain
+with flt support.
board/Avnet/Avnet_S6LX9_MicroBoard/lx9_mmu.dts new file +247 -0

247 lines not on this page · raw message

board/Avnet/Avnet_S6LX9_MicroBoard/lx9_mmu_defconfig new file +68 -0

68 lines not on this page · raw message

configs/Avnet_S6LX9_MicroBoard_defconfig new file +17 -0
new file mode 100644
index 0000000..ec0dad2
@@ -0,0 +1,17 @@
+BR2_microblaze=y
+BR2_microblazeel=y
+BR2_TOOLCHAIN_EXTERNAL=y
+BR2_TOOLCHAIN_EXTERNAL_XILINX_MICROBLAZEEL_V2=y
+BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y
+BR2_TOOLCHAIN_EXTERNAL_CUSTOM_PREFIX="microblazeel-unknown-linux-gnu"
+BR2_TOOLCHAIN_EXTERNAL_CUSTOM_GLIBC=y
+BR2_TOOLCHAIN_EXTERNAL_CXX=y
+BR2_TARGET_GENERIC_GETTY_PORT="ttyUL0"
+# BR2_TARGET_ROOTFS_TAR is not set
+BR2_TARGET_ROOTFS_INITRAMFS=y
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
+BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/Avnet/Avnet_S6LX9_MicroBoard/lx9_mmu_defconfig"
+BR2_LINUX_KERNEL_DTS_FILE="board/Avnet/Avnet_S6LX9_MicroBoard/lx9_mmu.dts"
+BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM=y
+BR2_LINUX_KERNEL_IMAGE_TARGET_NAME="simpleImage.lx9_mmu"
Signature · 9 lines
1.7.0.4



-- 
reLinux     -    Stephan Hoffmann
Am Schmidtgrund 124    50765 K?ln
Tel. +49.221.95595-19    Fax: -64
www.reLinux.de     sho at reLinux.de
#1 lore raw

PATCH 5/5 Microblaze: Added defconfig for Avnet S6LX9 Microboard

Le Sun, 11 Mar 2012 17:51:18 +0100,
Stephan Hoffmann <[email protected]> a ?crit :

Quoted 4 lines
---
 board/Avnet/Avnet_S6LX9_MicroBoard/README          |   64 +++++

Please use lowercase everywhere, and don't repeat the manufacturer name in the board subdirectory:

board/avnet/s6lx9_microboard

Quoted 1 line
 board/Avnet/Avnet_S6LX9_MicroBoard/TODO            |   19 ++

I'd prefer not to have those "specific" TODO in the code-base. Put it on the Buildroot Wiki, or in a global TODO at the root directory if you prefer.

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com