[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ttylinux:163] Re: [Ttylinux]How to build ttylinux



On Thu, Feb 9, 2012 at 9:05 AM, Douglas Jerome <[email protected]> wrote:
> I think I see two problems:
>
> 1) Look at the *ttylinux-config.sh* file again, around
>   line 155; why is the second TTYLINUX_PLATFORM
>   commented-out? It shouldn't be.

Yes, you are right. But, when it is uncomment, i run the command 'make
dist', which
also has something wrong shown like following.

[email protected]:~/workshop1/ttylinux-src-mp9# make dist
Remove the 12.7-x86_64-pc built items.
./ttylinux-config.sh: 200: [[: not found

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
site pre clean
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

=> Removing file system image, boot CD image, SDCard image.
=> Removing boot CD-ROM, SD Card staging areas.
=> Removing kernel and module tree, if any.
=> Removing kernel modules package, if any.
=> Removing the packages:
   -> Removing build-root/ contents.
   -> Removing pkg-bin/ binary packages.
   -> Removing var/log/ build logs.
=> Removing U-Boot, if any.
=> Removing x-load, if any.
./ttylinux-config.sh: 200: [[: not found

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
site post clean
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

./ttylinux-config.sh: 200: [[: not found
Initialize the 12.7-x86_64-pc ttylinux build.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
site package pre init
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

=> Creating preliminary development build directories ... DONE
=> Creating GLIBC i18n charmap configuration ... DONE
=> Creating GLIBC i18n locales configuration ... DONE

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
site package post init
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

./ttylinux-config.sh: 200: [[: not found
Building for 12.7-x86_64-pc
Make the ttylinux packages.
./ttylinux-config.sh: 200: [[: not found

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
site package pre build
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

=> ttylinux project directory:
   /root/workshop1/ttylinux-src-mp9
=> ws ttylinux-12.7 [buzzkill]
=> with x86_64 cross-building Binutils binutils-2.22
=> with x86_64 cross-building GCC gcc-4.4.4
=> with libc glibc-2.13, kernel interface:
        libc interface to Linux kernel x86_64 architecture
        libc interface to Linux kernel linux-2.6.38.1
=> for 64 MB target file system image size

##### START cross-building packages
g - getting the source and configuration packages
b - building and installing the package into build-root
f - finding installed files
m - looking for man pages to compress
p - creating ttylinux-installable package
c - cleaning

ttylinux-basefs-1.0 ......... g.b.f.m___0.p.c ... DONE [ 0 minutes  1 seconds]
ncurses-5.7 ................. g.b.f.m_695.p.c ... DONE [ 1 minutes 56 seconds]
alsa-lib-1.0.24.1 ........... g.b.f.m___0.p.c ... DONE [ 1 minutes  0 seconds]
bash-4.1 .................... g.b.f.m___0.p.c ... DONE [ 1 minutes 11 seconds]
busybox-1.19.3 .............. g.b.f.m___0.p.c ... DONE [ 1 minutes 35 seconds]
e2fsprogs-1.42 .............. g.b.f.m__43.p.c ... DONE [ 0 minutes 52 seconds]
iptables-1.4.12 ............. g.b.f.m___7.p.c ... DONE [ 0 minutes 22 seconds]
lilo-23.2 ................... g.b.Build FAILED.
make: *** [pkgs] error 1

Any comments?

>
> 2) Make sure your host has /bin/bash that is the real
>   bash and not a link to something else, and not a
>   silly small shell script that exec's something other
>   than the real bash.

Yup, it is like this.

[email protected]:~/workshop1/ttylinux-src-mp9# ls -al /bin/bash
-rwxr-xr-x 1 root root 818232 2010-04-19 09:51 /bin/bash



-- 
Thanks
Harry Wei