2013년 6월 2일 일요일

VFAT mount

When I try to mount vfat on Gentoo.

terminal
mount /dev/sdb1 /mnt/p1
error message :
mount: wrong fs type, bad option, bad superblock on >/dev/sdb1, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so
dmesg |tail
FAT: codepage cp437 not found

solution

  • kernel reconfig and compile it
  1. make menuconfig
    -> File systems:
    -> Native language support:
    <> Codepage 437 (United States, Canada)
    <
    > NLS ISO 8859-1 (Latin 1; Western European Languages)
  2. -> DOS/FAT/NT Filesystems
    (437) Default codepage for FAT
    (iso8859-1) Default iocharset for FAT

2013년 5월 22일 수요일

Gentoo on the BeagleBone Black

0.  Requirements
To be able to install Gentoo, we need the following:
  • An x86/amd64 based PC with Gentoo and SD card reader on it
  • A BeagleBone Black
  • One microSD card (2 GB is enough)
  • A network connection
  • A CrossCompiler (CodeSourcery)
1. emerge 
  • dev-vcs/git - to download U-Boot, X-Loader and the kernel
  • sys-devel/crossdev - to create a crosscompiler
  • dev-embedded/u-boot-tools - to create a kernel image U-Boot can understand
  • sys-fs/dosfstools - to create FAT32 filesystems
2.  Obtaining U-Boot
 
$ wget ftp://ftp.denx.de/pub/u-boot/u-boot-2013.10.tar.bz2
$ tar xvjpf  u-boot-2013.10.tar.bz2

3. Obtaining patches and applying them

$  wget https://raw.github.com/eewiki/u-boot-patches/master/v2013.10/0001-am335x_evm-uEnv.txt-bootz-n-fixes.patch
$ patch -p1 < 0001-am335x_evm-uEnv.txt-bootz-n-fixes.patch

4. Compile U-Boot
$ make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- am335x_evm_config
$ make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-

2013년 4월 23일 화요일

How to install cscope for Mac OS X

cscope introduce

Cscope is a developer's tool for browsing source code. It has an impeccable Unix pedigree, having been originally developed at Bell Labs back in the days of the PDP-11. Cscope was part of the official AT&T Unix distribution for many years, and has been used to manage projects involving 20 million lines of code!
In April, 2000, thanks to the Santa Cruz Operation, Inc. (SCO) (since merged with Caldera), the code for Cscope was open sourced under the BSD license.

install

Download from http://sourceforge.net/ (latest: cscope-15.8a) and in src/constants.h, change this line:
#if (BSD || V9 ) && !__NetBSD__ && !__FreeBSD__
To:
#if (BSD || V9 ) && !__NetBSD__ && !__FreeBSD__ && !__APPLE__
Then run:
$ configure
$ make
$ make install
You can find cscope in /usr/local/bin/