linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Fw: Montavista Patch for ml403
@ 2005-07-07 17:01 mcnernbm
  2005-07-07 17:33 ` Peter Ryser
  0 siblings, 1 reply; 2+ messages in thread
From: mcnernbm @ 2005-07-07 17:01 UTC (permalink / raw)
  To: linuxppc-embedded


[-- Attachment #1.1: Type: text/plain, Size: 652 bytes --]

Contained with in the reference design for the xilinx ml403 board is a 
patch for the montavista ml403 preview kit ot allow one to build the 
kernel for the ml403 board.  But I am having trouble applying the patch. 
Does anyone know how to properly apply this patch.  Also I tried to follow 
the instrucions on coping the bsp files over but exactly where to place 
them.  Do I over write the folders with in the arch directory and the 
drivers folder in the main kernel directory?  Its not 100% clear what 
files I need to over write.
Any help would be greatly appreciated.
Attached is the patch that come with the xilinx ml403 reference design

Brett

[-- Attachment #1.2: Type: text/html, Size: 848 bytes --]

[-- Attachment #2: patch_linux --]
[-- Type: application/octet-stream, Size: 1535 bytes --]

#!/bin/sh

if [ $# != 1 ] ; then
  echo "Usage: $0 <Path to MontaVista Linux 3.1 Kernel for the ML300 board>"
  echo
  echo "$0 patches a MontaVista Linux 3.1 kernel for the"
  echo "ML300 board (ML300 LSP) to make it useable with the ML403 board."
  echo "Run this script AFTER you have generated the Linux board support package"
  echo "with XPS. Provide the path to a COPY of the MontaVista Linux 3.1 kernel"
  echo "as a parameter to $0."
  exit 1
fi

# Check that the required tools and files are accessible
unzip=`which unzip 2> /dev/null`
[ ! -x "$unzip" ] && echo "Abort. Cannot find unzip in the search path." && exit 1

patch=`which patch 2> /dev/null`
[ ! -x "$patch" ] && echo "Abort. Cannot find patch in the search path." && exit 1

[ ! -r ml403.diff.zip ] && echo "Abort. Cannot read ml403.diff.zip." && exit 1

[ ! -r .config ] && echo "Abort. Cannot read .config." && exit 1

bspp=../ppc405_0/libsrc/linux_mvl31_v1_00_a/linux
[ ! -r "$bspp" ] && echo "Abort. Cannot read $bspp. Did you create the Linux BSP?" && exit 1

xp=arch/ppc/platforms/xilinx_ocp/xparameters_ml300.h
[ ! -r "$bspp/$xp" ] && echo "Abort. Cannot read $bspp/$xp. Did you create the Linux BSP?" && exit 1

lp=$1
[ ! -w "$lp" ] && echo "Abort. Cannot patch in $lp." && exit 1

# Ok, do it.
cp .config $lp
cp -Rp $bspp/* $lp
$unzip -p ml403.diff.zip | $patch -d $lp -p0 -F0
cat >> $lp/$xp <<EOF
#define XPAR_OPB_LCD_INTERFACE_0_BASEADDR XPAR_OPB_GPIO_CHAR_LCD_0_BASEADDR
#define XPAR_OPB_LCD_INTERFACE_0_HIGHADDR XPAR_OPB_GPIO_CHAR_LCD_0_HIGHADDR
EOF

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-07-07 17:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-07 17:01 Fw: Montavista Patch for ml403 mcnernbm
2005-07-07 17:33 ` Peter Ryser

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).