[ptxdist] Build environment for friendlyARM mini2440

2010-09-18 Thread Suresh Kumar
Hi I am setting up the build environment for mini2440 friendlyArm dev kit.
i could not find the processor name in the
platform configuration-architecture  : arm has been selected. but
variant - (no S3C2440 option)

what is the hardware option should i select for this?
Also, Do we have any preconfiguration for friendlyARM boards?

thanks
suresh

-- 
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] [PATCH] [libmxml] Added Mini-XML library support.

2010-08-24 Thread Suresh Kumar
Hi Ryan,

can you tell me how to apply this patch. I am novice user in ptxdist  patch.

I guess i have to copy the below lines in to a file(lets say
mxm.patch)  run patch  mxm.patch from the
/opt/OSELAS.BSP-Pengutronix-Generic-2010.07.0 directory.

please let me know the procedure to apply the patch.

thanks
suresh


On Tue, Aug 24, 2010 at 7:42 PM, Ryan M. Raasch ryan.raa...@gmail.com wrote:
 Lightweight XML Library:
 Mini-XML is a small XML library that you
 can use to read and write XML and XML-like data files.

 Signed-off-by: Ryan M. Raasch ryan.raa...@gmail.com
 ---
  rules/libmxml.in   |   10 +
  rules/libmxml.make |   57 
 
  2 files changed, 67 insertions(+), 0 deletions(-)
  create mode 100644 rules/libmxml.in
  create mode 100644 rules/libmxml.make

 diff --git a/rules/libmxml.in b/rules/libmxml.in
 new file mode 100644
 index 000..c96644a
 --- /dev/null
 +++ b/rules/libmxml.in
 @@ -0,0 +1,10 @@
 +## SECTION=system_libraries
 +
 +config LIBMXML
 +       bool
 +       prompt libmxml
 +       help
 +         Mini-XML is a small XML parsing library
 +         that you can use to read XML and XML-like
 +         data files in your application without
 +         requiring large non-standard libraries.
 diff --git a/rules/libmxml.make b/rules/libmxml.make
 new file mode 100644
 index 000..464e1f5
 --- /dev/null
 +++ b/rules/libmxml.make
 @@ -0,0 +1,57 @@
 +# -*-makefile-*-
 +#
 +# Copyright (C) 2007 by Lars Munch l...@segv.dk
 +#               2010 by Ryan Raasch ryan.raa...@gmail.com
 +#
 +# See CREDITS for details about who has contributed to this project.
 +#
 +# For further information about the PTXdist project and license conditions
 +# see the README file.
 +#
 +
 +PACKAGES-$(PTXCONF_LIBMXML) += libmxml
 +
 +#
 +# Paths and names
 +#
 +LIBMXML_VERSION        := 2.6
 +LIBMXML                := mxml-$(LIBMXML_VERSION)
 +LIBMXML_SUFFIX := tar.gz
 +LIBMXML_URL    := 
 http://ftp.easysw.com/pub/libmxml/$(LIBMXML).$(LIBMXML_SUFFIX)
 +LIBMXML_SOURCE := $(SRCDIR)/$(LIBMXML).$(LIBMXML_SUFFIX)
 +LIBMXML_DIR    := $(BUILDDIR)/mxml-$(LIBMXML_VERSION)
 +LIBMXML_LICENSE        := LGPL
 +
 +# 
 
 +# Prepare
 +# 
 
 +LIBMXML_ENV := $(CROSS_ENV) \
 +       DSTROOT=$(LIBMXML_PKGDIR)
 +#
 +# autoconf
 +#
 +LIBMXML_CONF_TOOL      := autoconf
 +LIBMXML_CONF_OPT       := \
 +       $(CROSS_AUTOCONF_USR) \
 +       --enable-shared
 +
 +# 
 
 +# Target-Install
 +# 
 
 +
 +$(STATEDIR)/libmxml.targetinstall:
 +       @$(call targetinfo)
 +
 +       @$(call install_init,  libmxml)
 +       @$(call install_fixup, libmxml,PRIORITY,optional)
 +       @$(call install_fixup, libmxml,SECTION,base)
 +       @$(call install_fixup, libmxml,AUTHOR,Ryan Raasch 
 ryan.raa...@gmail.com)
 +       @$(call install_fixup, libmxml,DESCRIPTION,missing)
 +
 +       @$(call install_lib, libmxml, 0, 0, 0644, libmxml)
 +
 +       @$(call install_finish, libmxml)
 +
 +       @$(call touch)
 +
 +# vim: syntax=make
 --
 1.7.1.rc1.GIT


 --
 ptxdist mailing list
 ptxdist@pengutronix.de


-- 
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] [PATCH] [libmxml] Added Mini-XML library support.

2010-08-24 Thread Suresh Kumar
Hi,
when i try to install libmxml  i am getting the following error.

install link:
  src=libmxml.so.1.4
  dst=/usr/lib/libmxml.so

install link:
  src=libmxml.so.1.4
  dst=/usr/lib/libmxml.so.1

@PACKAGE@
*** Error: Package name  contains illegal characters, (other than [a-z0-9.+-])

ipkg-build: Please fix the above errors and try again.
failed

what could be wrong?
thanks
suresh



On Wed, Aug 25, 2010 at 1:34 AM, Marc Kleine-Budde m...@pengutronix.de wrote:
 Ryan M. Raasch wrote:
 Lightweight XML Library:
 Mini-XML is a small XML library that you
 can use to read and write XML and XML-like data files.

 I cleaned up the patch and make it work even if cross compiling. Shame
 on every project using autoconf but not automake (ptxdist excluded). I
 wonder how long it would take to autotoolize the libmxml properly.

 however, commited to master

 Marc

 Signed-off-by: Ryan M. Raasch ryan.raa...@gmail.com
 ---
  rules/libmxml.in   |   10 +
  rules/libmxml.make |   57 
 
  2 files changed, 67 insertions(+), 0 deletions(-)
  create mode 100644 rules/libmxml.in
  create mode 100644 rules/libmxml.make

 diff --git a/rules/libmxml.in b/rules/libmxml.in
 new file mode 100644
 index 000..c96644a
 --- /dev/null
 +++ b/rules/libmxml.in
 @@ -0,0 +1,10 @@
 +## SECTION=system_libraries
 +
 +config LIBMXML
 +     bool
 +     prompt libmxml
 +     help
 +       Mini-XML is a small XML parsing library
 +       that you can use to read XML and XML-like
 +       data files in your application without
 +       requiring large non-standard libraries.
 diff --git a/rules/libmxml.make b/rules/libmxml.make
 new file mode 100644
 index 000..464e1f5
 --- /dev/null
 +++ b/rules/libmxml.make
 @@ -0,0 +1,57 @@
 +# -*-makefile-*-
 +#
 +# Copyright (C) 2007 by Lars Munch l...@segv.dk
 +#               2010 by Ryan Raasch ryan.raa...@gmail.com
 +#
 +# See CREDITS for details about who has contributed to this project.
 +#
 +# For further information about the PTXdist project and license conditions
 +# see the README file.
 +#
 +
 +PACKAGES-$(PTXCONF_LIBMXML) += libmxml
 +
 +#
 +# Paths and names
 +#
 +LIBMXML_VERSION      := 2.6
 +LIBMXML              := mxml-$(LIBMXML_VERSION)
 +LIBMXML_SUFFIX       := tar.gz
 +LIBMXML_URL  := 
 http://ftp.easysw.com/pub/libmxml/$(LIBMXML).$(LIBMXML_SUFFIX)
 +LIBMXML_SOURCE       := $(SRCDIR)/$(LIBMXML).$(LIBMXML_SUFFIX)
 +LIBMXML_DIR  := $(BUILDDIR)/mxml-$(LIBMXML_VERSION)
 +LIBMXML_LICENSE      := LGPL
 +
 +# 
 
 +# Prepare
 +# 
 
 +LIBMXML_ENV := $(CROSS_ENV) \
 +     DSTROOT=$(LIBMXML_PKGDIR)
 +#
 +# autoconf
 +#
 +LIBMXML_CONF_TOOL    := autoconf
 +LIBMXML_CONF_OPT     := \
 +     $(CROSS_AUTOCONF_USR) \
 +     --enable-shared
 +
 +# 
 
 +# Target-Install
 +# 
 
 +
 +$(STATEDIR)/libmxml.targetinstall:
 +     @$(call targetinfo)
 +
 +     @$(call install_init,  libmxml)
 +     @$(call install_fixup, libmxml,PRIORITY,optional)
 +     @$(call install_fixup, libmxml,SECTION,base)
 +     @$(call install_fixup, libmxml,AUTHOR,Ryan Raasch 
 ryan.raa...@gmail.com)
 +     @$(call install_fixup, libmxml,DESCRIPTION,missing)
 +
 +     @$(call install_lib, libmxml, 0, 0, 0644, libmxml)
 +
 +     @$(call install_finish, libmxml)
 +
 +     @$(call touch)
 +
 +# vim: syntax=make


 --
 Pengutronix e.K.                  | Marc Kleine-Budde           |
 Industrial Linux Solutions        | Phone: +49-231-2826-924     |
 Vertretung West/Dortmund          | Fax:   +49-5121-206917- |
 Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |


 --
 ptxdist mailing list
 ptxdist@pengutronix.de



-- 
ptxdist mailing list
ptxdist@pengutronix.de


[ptxdist] ARM compilation error

2010-08-24 Thread Suresh Kumar
Hi,

I am performing the  cross-compilation of my source code (which uses
libmxml library) and return the following error. I am using the
toolchain suppled by the ptxdist. and i am not sure, how to mention
the minixml library in the cross compilation. The error is below.

[sur...@suresh src]$ make
/opt/OSELAS.Toolchain-1.99.3/arm-v4t-linux-gnueabi/gcc-4.3.2-glibc-2.8-binutils-2.18-kernel-2.6.27-sanitized/bin/arm-v4t-linux-gnueabi-gcc
 -I /opt/perimeter/pr/include -I /usr/local/include -o
/opt/perimeter/pr/output/periApp.vx /opt/perimeter/pr/src/periTest.c
-lpthread -lmxml
/opt/perimeter/pr/src/periTest.c: In function 'main':
/opt/perimeter/pr/src/periTest.c:21: warning: return type of 'main' is not 'int'
/opt/OSELAS.Toolchain-1.99.3/arm-v4t-linux-gnueabi/gcc-4.3.2-glibc-2.8-binutils-2.18-kernel-2.6.27-sanitized/lib/gcc/arm-v4t-linux-gnueabi/4.3.2/../../../../arm-v4t-linux-gnueabi/bin/ld:
cannot find -lmxml
collect2: ld returned 1 exit status
make: *** [periApp.vx] Error 1
[sur...@suresh src]$ clear



Note :
I have installed the minixml on my Desktop, and able to compile using
gcc and run the application without any problem.

Please help me
thanks
suresh

-- 
ptxdist mailing list
ptxdist@pengutronix.de


[ptxdist] How to apply the kernel patch

2010-08-23 Thread Suresh Kumar
Hi,

I am using ptxdist for my target (ARM - AT91RM2000). I am able to
build the kernel image  root fs and able to boot the target via nfs.
I have two kernel patches received from the vendor.  I dont know where
to specify the patch location  filename in the configuration
menu(ptxdist menuconfig)

can you please help me to apply the patch.

Do we have directFB,miniXML application (predefined)  in the ptxdist?

thanks
suresh

-- 
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] How to apply the kernel patch

2010-08-23 Thread Suresh Kumar
Hi,


 Do we have directFB,miniXML application (predefined)  in the ptxdist?

 ptxdist comes with directfb. minixml has to be ported.


When i try to run LiTE (directfb wrap-up) example, i am getting the
follwoing error
:/usr/bin ./lite_msgbox
./lite_msgbox: error while loading shared libraries: libdl.so.2:
cannot open shared object file: No such file or directory


what could be wrong in the build?

thanks
suresh

-- 
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] How to apply the kernel patch

2010-08-23 Thread Suresh Kumar
Hi,



 just pleace the patches in the mentioned directory. They're
 automatically applied during the extract stage. To force a extract, do:

 ptxdist clean kernel
 ptxdist compile kernel

What are all the other clean/compile options available. where should i
refer this build command helps.
All the times, i am doing,
ptxdist clean,
ptxdist go
its killing my time.
Its really helpful for me to clean the filesystem/kernel/busybox or
packages( other components) alone and rebuild.

thanks
suresh

-- 
ptxdist mailing list
ptxdist@pengutronix.de


[ptxdist] ARM BSP

2010-05-31 Thread Suresh Kumar
All,

I have purchased the  ATMEL AT91RM9200 Mircrocontroller Development
Board from kwik byte. And i didnt get the BSP software for the board.

I am using ptxdist for build tool and successfully able to build the
linux,and packages.And able to boot board via tftp with the newly
built image.

But i am intersted to manipulate the  the devices (LEDs, Parallel
ports,etc).  unfortunately i didnt get the BSP from the vendor.

I guess ptxdist has the BSP for ARM. can you little elaborate this.
Where to refer , how to use, how to compile, etc

Any help appriciated.

thanks
suresh

-- 
ptxdist mailing list
ptxdist@pengutronix.de


[ptxdist] custom software installation

2010-03-11 Thread Suresh Kumar
Hi,

I am trying include the strongswan in the buildsystem. my requirement is get
strongswan installed on my target.

i followed the steps provided in the document.

1) ptxdist newpacket target
2)ptxdist get strongswan
3)ptxdist extract strongswan
4) ptxdist prepare strongswan
5)ptxdist compile strongswan
6)ptxdist install strongswan

all the above steps are executed and succeeded.

Now, i think, i have to edit the /rules/strongswan.make file and change the
@$call install_copy line..

I am not sure, Where is the strongswan gets installed .I mean the
$(FOO_DIR) in the make file

Is it the one inside build-target folder. If i copy the files fron the
../build-target/strongswan-xx to the target filesystem, will it work? Is
that equal to change the @$call install_copy line..

Thanks
suresh
--
ptxdist mailing list
ptxdist@pengutronix.de


[ptxdist] configuration files

2010-03-07 Thread Suresh Kumar
Hi,

I just want to take the backup of the configuration files (kernel, rootfs,
platform) of my working project.

I assume that only the following configuration files are required,

 /configs/ptxconfig  - This file is the configuration file for the complete
ptxconfig
/configs/arm-qemu-3/kernelconfig-2.6.32.
/configs/arm-qemu-3/platformconfig

Please let me know if i miss anything.

Thanks
suresh
--
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] How to use the existing config file

2010-03-06 Thread Suresh Kumar
Hi,

have you got a ttyAMA0 on your platform?

I dont know what is ttyAMA0 mean?

thanks
surehs
--
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] How to use the existing config file

2010-03-05 Thread Suresh Kumar
Hi,


Now check the ABI of the kernel, use
ptxdist menuconfig kernel (which will start the kernel's menuconfig).
 - Kernel Features
   - Use the ARM EABI to compile the kernelRecompile your Kernel with:
ptxdist go

Thanks. I am able to cross this. But still i am not able to get the prompt.
something wrong in the init scripts.


The following lines keep on priniting.
process '/sbin/getty -L 115200 ttyAMA0 vt100' (pid 362) exited. Scheduling
for .
starting pid 367, tty '/dev/console': '/sbin/getty -L 115200 ttyAMA0
vt100'

can you suggest what would be wrong in the configuration?



BOOTUP LOGS:

VFS: Mounted root (nfs filesystem) on device
0:13.
Freeing init memory:
124K
init started: BusyBox v1.15.2 (2010-03-04 21:10:29
BDST)
starting pid 322, tty '/dev/console':
'/etc/init.d/rcS'
mounting filesystems.../etc/init.d/rcS: line 13: can't create /dev/null: No
sucs
done.

running rc.d
services...
starting
udev
failed

error: sysfs not
mounted
run-parts: /etc/rc.d/S00udev exited with code
1
starting network
interfaces...
/etc/rc.d/S26networking: line 5: can't create /dev/null: No such device or
addrs
ip: RTNETLINK answers: File
exists
logrotate: rotating in
/var/log
run-parts: /etc/rc.d/S98logrotate exited with code
1
loading
modules


OSELAS(R)-Generic-2010.01.0
(ptxdist-2010.01.0/2010-03-05T22:07:47+0700)


   _   _   _   _
_
/ ___|| | | |  _ \| / ___|| | |
|
\___ \| | | | |_) |  _| \___ \| |_|
|
 ___) | |_| |  _ | |___ ___) |  _
|
|/ \___/|_| \_\_|/|_|
|_|






starting pid 351, tty '/dev/console': '/sbin/getty -L 115200 ttyAMA0
vt100'
process '/sbin/getty -L 115200 ttyAMA0 vt100' (pid 351) exited. Scheduling
for .
starting pid 357, tty '/dev/console': '/sbin/getty -L 115200 ttyAMA0
vt100'
process '/sbin/getty -L 115200 ttyAMA0 vt100' (pid 357) exited. Scheduling
for .
starting pid 362, tty '/dev/console': '/sbin/getty -L 115200 ttyAMA0
vt100'
process '/sbin/getty -L 115200 ttyAMA0 vt100' (pid 362) exited. Scheduling
for .
starting pid 367, tty '/dev/console': '/sbin/getty -L 115200 ttyAMA0
vt100'

thanks
suresh
--
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] How to use the existing config file

2010-03-05 Thread Suresh Kumar
Hi,


Looks like you've spelled the root console name incorrectly.
Try looking through the boot log (the whole thing, not just what you've
copied below) for the name of the console.
you mean logfile correct. which information should i look in to that?


What do your bootargs (kernel command line) look like?
UBOOT bootargs line is below
bootargs=root=/dev/nfs rw
nfsroot=192.168.1.2:/project3/myprj1/1/platform-versatilepb/root
ip=192.168.1.5

Do i need to give some bootargs for kernel in UBOOT.

thanks
suresh
--
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] How to use the existing config file

2010-03-04 Thread Suresh Kumar
Hi,


 the uImage will be installed as kernelimage into platform/images

 Thanks . it works. linuximage file is present in the images folder.

now i successfully built the kernel image  root fs.

1) i downloaded the kernel image in to ram via tftp
2)  use NFS for loading Filesystem

The bootargs line is below,

 setenv bootargs root=/dev/nfs rw nfsroot=192.168.1.2:/usr/local/arm/target_fs
ip=192.168.1.5


The kernel is booting up but the loading the Root FS is not succeeds. The
error is below,

IP-Config: Complete:
 device=eth0, addr=192.168.1.5, mask=255.255.255.0, gw=255.255.255.255,
 host=192.168.1.5, domain=, nis-domain=(none),
 bootserver=255.255.255.255, rootserver=192.168.1.2, rootpath=
Looking up port of RPC 13/2 on 192.168.1.2
Looking up port of RPC 15/1 on 192.168.1.2
VFS: Mounted root (nfs filesystem) on device 0:13.
Freeing init memory: 128K
Kernel panic - not syncing: Attempted to kill init!
Backtrace:
[c002c9e4] (dump_backtrace+0x0/0x104) from [c02e92dc]
(dump_stack+0x18/0x1c)


Any idea whats wrong in the root FS configuration.

thanks
suresh
--
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] How to use the existing config file

2010-03-04 Thread Suresh Kumar
Hi,

  setenv bootargs root=/dev/nfs rw nfsroot=192.168.1.2:
/usr/local/arm/target_fs
Is the path okay?

yes path is correct.

With ptxdist, use platform-./root within your workspace as NFS root

I didnt get this above point.can you detail more?
you mean,  create the NFS Root directory inside the images folder??


Thanks
suresh
--
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] How to use the existing config file

2010-03-04 Thread Suresh Kumar
Hi,
You don't have to create anything, ptxdist does that for you. After a
ptxdist go you have a fully populated root file system. You can fin
it in your workspace, try:
ls -d platform-*/root

I have mapped the root directory as NFS. But still i am getting the
following error.

S: Mounted root (nfs filesystem) on device 0:13.
Freeing init memory: 128K
Kernel panic - not syncing: Attempted to kill init!
Backtrace:
[c002c9e4] (dump_backtrace+0x0/0x104) from [c02e92dc]
(dump_stack+0x18/0x1c)

 Looks like, able to get the File System from NFS. But something wrong in
the FileSystem configuation.
please suggest what would be wrong in the Filesystem configuration.

 Thanks
suresh
--
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] How to use the existing config file

2010-03-04 Thread Suresh Kumar
Hi,


If your're on arm it may be an EABI/OABI problem

Yes. I am using ARM920T (AT91RM2000 processor).
For ARM920T is it EABI or OABI??
also, where is this configuration available..
is it under pdxdist platformconfig ?

Thanks
suresh
--
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] [ANNOUNCE] ptxdist beer event

2010-03-01 Thread Suresh Kumar
Hi All,
I am new to the ptxdist environment.
I am struggling to setup the build environment.

I have downloaded  installed the 1.0.2 version and successfully built the
toolchain for ARM.
But BSP( OSELAS.BSP-Pengutronix-Generic) for 1.0.2 version is not available
for download. so i am not able to procced further.
Can you please share the BSP for 1.0.2 if you have or where i can download?

thanks
suresh
--
ptxdist mailing list
ptxdist@pengutronix.de