Hi,
I am developing a linux 2.6 kernel for ML505 board by following the
http://developer.petalogix.com/wiki/BoardGuides/Custom/Tutorial
tutorial.
When I run the "petalinux-copy-autoconfig" command,
"$PETALINUX/hardware/user-platforms/Xilinx-ML505-edk91/microblaze_0/libs
rc/petalinux_v1_00_b/Kconfig.auto" is copied to
"$PETALINUX/software/petalinux-dist/linux-2.6.x/arch/microblaze/platform
/Xilinx-ML505/".
When "make menuconfig" is run, I am able to select Xilinx as vendor and
Platform as ML505. But I am not able to see "Console on UARTLITE", "GPIO
dirver", "SystemAce driver" under main menu "Processor type and
features". And also "Memory Technology Devices (MTD)" main menu also
missing. But kernel compilation is successful. It seems to be the kernel
is compiled for microblaze architecture without any ML505 specific
peripheral configuration.
But I am able to get all these working well in linux-2.4 kernel, as per
above mentioned tutorial.
Please find the following kernel configuration files for linux-2.6 for
your reference.
******************************** START OF FILES
*******************************************
File 1: $PETALINUX/software/petalinux-dist/.config file:
-------------------------------------------------------
#
# Automatically generated by make menuconfig: don't edit
#
# Vendor/Product Selection
#
# CONFIG_DEFAULTS_PETALOGIX is not set
CONFIG_DEFAULTS_XILINX=y
# CONFIG_DEFAULTS_XILINX_ML401 is not set
CONFIG_DEFAULTS_XILINX_ML505=y
# CONFIG_DEFAULTS_XILINX_SPARTAN3E1600_REVA is not set
# CONFIG_DEFAULTS_XILINX_SPARTAN3E500_REVC is not set
#
# Kernel/Library/Defaults Selection
#
# CONFIG_DEFAULTS_KERNEL_2_4 is not set
CONFIG_DEFAULTS_KERNEL_2_6=y
CONFIG_DEFAULTS_LIBC_NONE=y
# CONFIG_DEFAULTS_LIBC_UCLIBC is not set
# CONFIG_DEFAULTS_OVERRIDE is not set
# CONFIG_DEFAULTS_VENDOR is not set
# CONFIG_DEFAULTS_VENDOR_UPDATE is not set
CONFIG_VENDOR=Xilinx
CONFIG_PRODUCT=ML505
CONFIG_LINUXDIR=linux-2.6.x
CONFIG_LIBCDIR=
File 2: The autoconf.h also intact with .config file.
File 3:
$PETALINUX/software/petalinux-dist/vendors/Xilinx/ML505/config.arch
------------------------------------------------------------------------
----
CONSOLE_BAUD_RATE = 57600
DISABLE_XIP = 1
DISABLE_SHARED_LIBS = 1
DISABLE_MOVE_RODATA = 1
include $(ROOTDIR)/vendors/config/microblaze/config.arch
File 4: $PETALINUX/software/petalinux-dist/linux-2.6.x/.config
----------------------------------------------------------------
............ TRUNCATED ..............
#
# Platform options
#
CONFIG_PLATFORM_XILINX_ML505=y
# CONFIG_PLATFORM_XILINX_SPARTAN3E1600_REVA is not set
# CONFIG_PLATFORM_XILINX_SPARTAN3E500_REVC is not set
# CONFIG_PLATFORM_MICROBLAZE_AUTO is not set
# CONFIG_PLATFORM_XILINX_ML401 is not set
# CONFIG_PLATFORM_XILINX_S3E1600_STARTER is not set
CONFIG_XILINX_ERAM_START=0x50000000
CONFIG_XILINX_ERAM_SIZE=0x10000000
CONFIG_XILINX_LMB_START=0x00000000
CONFIG_XILINX_LMB_SIZE=0x00002000
CONFIG_XILINX_CPU_CLOCK_FREQ=100000000
CONFIG_XILINX_MICROBLAZE0_INSTANCE="microblaze_0"
CONFIG_XILINX_MICROBLAZE0_SCO=0
CONFIG_XILINX_MICROBLAZE0_DATA_SIZE=32
CONFIG_XILINX_MICROBLAZE0_DYNAMIC_BUS_SIZING=1
CONFIG_XILINX_MICROBLAZE0_FAMILY="virtex5"
CONFIG_XILINX_MICROBLAZE0_AREA_OPTIMIZED=0
CONFIG_XILINX_MICROBLAZE0_D_OPB=1
CONFIG_XILINX_MICROBLAZE0_D_LMB=1
CONFIG_XILINX_MICROBLAZE0_I_OPB=1
CONFIG_XILINX_MICROBLAZE0_I_LMB=1
CONFIG_XILINX_MICROBLAZE0_USE_MSR_INSTR=1
............ TRUNCATED .............
File 5:
$PETALINUX/software/petalinux-dist/linux-2.6.x/arch/microblaze/Kconfig
------------------------------------------------------------------------
-------
........... TRUNCATED ...........
config DEFCONFIG_LIST
string
default "arch/$ARCH/defconfig"
source "init/Kconfig"
source "arch/microblaze/platform/Kconfig.platform"
menu "Processor type and features"
config PREEMPT
bool "Preemptible Kernel"
help
This option reduces the latency of the kernel when reacting to
real-time or interactive events by allowing a low priority
process to
be preempted even if it is in kernel mode executing a system
call.
This allows applications to run more reliably even when the
system is
under load.
Say Y here if you are building a kernel for a desktop,
embedded
or real-time system. Say N if you are unsure.
config PREEMPT_TIMES
bool "Collect preemption latency times"
depends on PREEMPT
help
Allow collection for preemption latency times.
config XILINX_UNCACHED_SHADOW
bool "Are you using uncached shadow for RAM ?"
depends on MICROBLAZE
default y
help
This is needed to be able to allocate uncachable memory regions.
The feature requires the design to define the RAM memory
controller window
to be twice as large as the actual physical memory.
config LARGE_ALLOCS
bool "Allow allocating large blocks (> 1MB) of memory"
help
Allow the slab memory allocator to keep chains for very
large
memory sizes - upto 32MB. You may need this if your system
has
a lot of RAM, and you need to able to allocate very large
contiguous chunks. If unsure, say N.
comment "Boot options"
config CMDLINE
string "Default kernel command string"
default ""
help
On some architectures there is currently no way for the boot
loader
to pass arguments to the kernel. For these architectures, you
should
supply some command-line options at build time by entering
them
here.
config CMDLINE_FORCE
bool "Force default kernel command string"
help
Set this to have arguments from the default kernel command
string
override those passed by the boot loader
endmenu
............. TRUNCATED ...........
File 6:
$PETALINUX/software/petalinux-dist/linux-2.6.x/arch/microblaze/platform/
Kconfig.platform
------------------------------------------------------------------------
-------------------------
#
# platform selection Kconfig menu for MicroBlaze targets
#
menu "Platform options"
choice
prompt "Platform"
default PLATFORM_MICROBLAZE_AUTO
help
Choose which hardware board/platform you are targeting
#### PetaLinux do not remove - @newplatformmenu@
### @petalinux-begin-platform-menuitem@ Xilinx-ML505 ###
config PLATFORM_XILINX_ML505
bool "Xilinx ML505"
help
Choose this option for the Xilinx ML505 platform
### @petalinux-end-platform-menuitem@ Xilinx-ML505 ###
.................... TRUNCATED .............
endchoice
# This is stil a bit broken - disabling for now JW 20070504
#config ALLOW_EDIT_AUTO
# bool "Permit Display/edit of Kconfig.auto platform settings"
# default n
# depends on EXPERIMENTAL
# help
# Allows the editing of auto-generated platform settings from
# the Kconfig.auto file. Obviously this does not change the
# underlying hardware, so be very careful if you go editing
# these settings.
#
# Also, if you enable this, and edit various Kconfig.auto
# settings, YOUR CHANGES WILL BE LOST if you then disable it
# again. You have been warned!
#
# If unsure, say no
#
# Ok, the platform is chosen. Source the kconfig.auto to get all of the
# system settings.
# If user selected CONFIG_EDIT_AUTO, these will be rendered in gory
detail
# and be able to be edited
comment "Automatic platform settings from Kconfig.auto"
depends on ALLOW_EDIT_AUTO
# Below is where platform-specific Kconfig.auto is sourced. You can
also use
# this section for any other platform-specific options - see the
S3E-1600
# platform for an example of how you might do this.
## do not remove - @newplatformautoconfig@
### @petalinux-begin-platform@ Xilinx-ML505 ###
if PLATFORM_XILINX_ML505=y
source "arch/microblaze/platform/Xilinx-ML505/Kconfig.auto"
#Insert any other platform-specific options here
endif
................ TRUNCATED ...............
Endmenu
******************************** END OF FILES
*******************************************
It would be helpful if someone can put me in right direction.
Regards
T.KaruppuSwamy
DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and
intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its
affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect
the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure,
modification, distribution and / or publication of
this message without the prior written consent of the author of this
e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender
immediately. Before opening any mail and
attachments please check them for viruses and defect.
-----------------------------------------------------------------------------------------------------------------------
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive :
http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/