레이블이 linux utils인 게시물을 표시합니다. 모든 게시물 표시
레이블이 linux utils인 게시물을 표시합니다. 모든 게시물 표시

2012년 10월 31일 수요일

ubuntu svn server install ( over apache )


I installed svn server under ubuntu LTS 10.04 64 bits

SVN Server Setup

1. install essentail packages
#  sudo apt-get install subversion libapache2-svn apache2

2. create repository
 # svnadmin create /home3/swmgr/tmpsvn/sample

3. configure conf file
open  /home3/swmgr/tmpsvn/sample/conf/svnserve.conf
then uncommnet belows
 auth-access = write ==> set permission
 password-db = passwd ==> indicate passward file

open /home3/swmgr/tmpsvn/sample/conf/passwd
then add user and passward

[users]
user = passwd
dokyun = hellscream

4. start svn server
 svnserve -d -r /home3/swmgr/tmpsvn/sample

5. check
# svn checkout svn://192.168.0.4 ./svn
 or
# svn checkout svn://localhost ./svn

if  ,,, /db/txn-current-lock': Permission denied  error happens when svn access
check the directory permission.
$ chmod -R 775 /home3/swmgr/tmpsvn/sample


SVN over Apache


1. set directory owner
 # sudo chown -R www-data /home3/swmgr/tmpsvn/sample/

2. configure
 open /etc/apache2/mods-enabled/dav_svn.conf
 then add

<Location /svn>
  DAV svn
  SVNPath /home3/swmgr/tmpsvn/sample
  AuthType Basic
  AuthName "Subversion Repository"
  AuthUserFile /etc/apache2/dav_svn.passwd
  Require valid-user
</Location>

3. add user
# sudo htpasswd2 -cm /etc/apache2/dav_svn.passwd dokyun
 or
# sudo htpasswd -cm /etc/apache2/dav_svn.passwd dokyun

4. restart apache
 sudo /etc/init.d/apache2 restart
5. check





2012년 7월 5일 목요일

LZO build and install


  • Introduction


LZO is a data compression library which is suitable for data de-/compression in real-time. This means it favours speed over compression ratio.
LZO is written in ANSI C. Both the source code and the compressed data format are designed to be portable across platforms.
LZO is lossless compression algorithm
LZO is using in ubifs
  • official home

http://www.oberhumer.com/

  • download

http://www.oberhumer.com/opensource/lzo/

  • build and install ( cross compile )

./configure --host=arm-none-linux-gnueabi --prefix=/targetnfs/usr
make
make install

sometimes you need to contain this lib in toolchain

./configure --host=arm-none-linux-gnueabi --prefix=/opt/toolchains/arm-2009q1/usr/
make
make install

2012년 7월 4일 수요일

mtd-utils build and install


  • officail homepage


http://www.linux-mtd.infradead.org/index.html

  • download


ftp://ftp.infradead.org/pub/mtd-utils/
or
git clone git://git.infradead.org/mtd-utils.git mtd-utils

  • configure and build for cross compile


mtd-utils does not supprot configure.
You must modify Makefile of commom.mk directlry

In common.mk defines CC

CC := $(CROSS)gcc
AR := $(CROSS)ar
RANLIB := $(CROSS)ranlib


just add variable CROSS on top of common.mk for example

CROSS :=arm-none-linux-gnueabi-

  • Install


In Makefile instill DIR defined as DESTDIR

install:: $(addprefix $(BUILDDIR)/,${BINS}) ${SCRIPTS}
        mkdir -p ${DESTDIR}/${SBINDIR}
        install -m 0755 $^ ${DESTDIR}/${SBINDIR}/
        mkdir -p ${DESTDIR}/${MANDIR}/man1
        install -m 0644 mkfs.jffs2.1 ${DESTDIR}/${MANDIR}/man1/
        -gzip -9f ${DESTDIR}/${MANDIR}/man1/*.1


Do below commnad

$ make install  DESTDIR=/home/user/mtd/install

finally you can do as below

$ make CROSS=arm-none-linux-gnueabi- DESTDIR=/home/user/mtd/install all install

  • build error handling


sometimes it can return errors, because of cross compiler restriction

$ error: sys/acl.h: No such file or directory

It means your cross toolchanin does not support ACL.
mtd-util has build option for this

$ make CROSS=arm-none-linux-gnueabi- WITHOUT_XATTR=1

The access control list(ACL) enables higher flexible access control based on UNIX users and groups than traditional user/group/others model. '--with-xattr' or '--with-posix-acl' options on mkfs.jffs2 enables to
copy the ACLs associated with any files in host environment into jffs2 image file. The purpose of this feature is improvement of security in embedded region.

refer to http://lists.infradead.org/pipermail/linux-mtd/2006-November/016814.html

error: lzo/lzo1x.h: No such file or directory

There is an option build without LZO
But it does not works properly, also LZO must be needed because ubifs includes LZO

$make CROSS=arm-none-linux-gnueabi- WITHOUT_XATTR=1 WITHOUT_LZO=1

It will cause build error also in ubifs related package
Refer to http://dokyunblog.blogspot.kr/2012/07/introduction-lzo-is-data-compression.html
Contain LZO lib in toolchain.


ethtool build and install


ethtool is a small utility for examining and tuning your ethernet-based
network interface. 

dowload


http://sourceforge.net/projects/gkernel/files/ethtool/ --> old version
https://ftp.kernel.org/pub/software/network/ethtool/ --> current & latest version


configure


$ ./configure --host=arm-none-linux-gnueabi
$ ./configure --host=arm-none-linux-gnueabi --prefix=/targetnfs/durota/rfs/usr

build


$ make
$ make install

2011년 12월 26일 월요일

inetutil cross compile - ( telnetd )

inetutil includes various network utils
such as telnet client, telnet daemon, tftp, and so on

download  source code

http://ftp.gnu.org/gnu/inetutils/

untar inetutils-1.8.tar.gz

and configure

# ./configure --host=arm-none-linux-gnueabi --build=i686 --prefix=/usr/bin
# make

I have compile error while building ifconfig,
just disable ifconfig then succeeded

# ./configure --host=arm-none-linux-gnueabi --build=i686 --prefix=/usr/bin --disable-ifconfig
# make

if you want to find other tool that is not included in inetutils
try to find net-tools

http://sourceforge.net/projects/net-tools/

2011년 9월 15일 목요일

pciutils build and install


Introduction


The PCI Utilities package contains a library for portable access to PCI bus configuration registers and several utilities based on this library.

- lspci: displays detailed information about all PCI buses and devices.
- setpci: allows to read from and write to PCI device configuration
    registers. For example, you can adjust the latency timers with it.
    CAUTION: There is a couple of dangerous points and caveats, please read
    the manual page first!
- update-pciids: download the current version of the pci.ids file.

For more detail , refer to README file in this package

download


ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/
https://ftp.kernel.org/pub/software/utils/pciutils/
or git tree
git://git.kernel.org/pub/scm/utils/pciutils/pciutils.git

Configure and build for cross compile


pci-util does not support configure.

$ make CROSS_COMPILE=arm-none-linux-gnueabi- HOST=arm-none-linux PREFIX=/targetnfs/durota/rfs/user/local/pciutils all
$make install

strip option is defined as below inside of make file

STRIP=-s

and install includes below

$(INSTALL) -c -m 755 $(STRIP) lspci setpci $(DESTDIR)$(SBINDIR)

change makefile as below

STRIP=$(CROSS_COMPILE)strip
$(STRIP) lspci
$(STRIP) setpci
$(INSTALL) -c -m 755 lspci setpci $(DESTDIR)$(SBINDIR)

or just remove $(STRIP)

$(INSTALL) -c -m 755  lspci setpci $(DESTDIR)$(SBINDIR)

2011년 9월 9일 금요일

simple busybox build

just do it

 make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- CONFIG_PREFIX=../rootfs_skel_tmp/ install

2011년 3월 22일 화요일

Making simple rootfs using ELDK

ELDK ramdisk is really small and the ELDK pacakages includes almost all of the utils.
You do not need to navigate web and try to searching source code for SW pacakges
Basically root file system packages are included in PSP but that also includes something that we do not need and it makes increase flash image size and sometime it spends useless time for boot.

If you are using ELDK rootfs and just exchange libs and binaries, you can get optimized filesystem for your own. Then add packages what you need.

Offcial homepage : http://www.denx.de/wiki/DULG/ELDK

References :
http://www.denx.de/wiki/view/DULG/ELDKInitialInstallation
http://www.denx.de/wiki/view/DULG/RootFileSystemDesignAndBuilding

Env : I did under Fedora12

1. ELDK package download
http://ftp.denx.de/pub/eldk/4.2/arm-linux-x86/iso/arm-2008-11-24.iso

2. mount iso image.
 Make directory for mount point
 For mounting iso image, log-in as root
 mounting iso image

 [dokyun@kalimdor ELDK]$ mkdir armiso
 [dokyun@kalimdor ELDK]$ su
 [root@kalimdor ELDK]# mount -t iso9660 -o loop ./arm-2008-11-24.iso armiso

3. Install ELDK

TBD
홈