[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 2:00 PM, harryxiyou <[email protected]> wrote:
> 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?

My packages information are like these.

[email protected]:~/workshop1/ttylinux-src-mp9/pkg-src# ls -alh *
-rw------- 1 root   root   814K 2012-02-08 13:48 alsa-lib-1.0.24.1.tar.bz2
-rw------- 1 root   root   1.1M 2012-02-08 15:26 alsa-utils-1.0.24.2.tar.bz2
-rw------- 1 root   root   6.3M 2010-01-01 10:51 bash-4.1.tar.gz
-rw------- 1 root   root    20M 2011-11-21 21:05 binutils-2.22.tar.bz2
-rw------- 1 root   root   2.1M 2011-10-29 19:45 busybox-1.19.3.tar.bz2
-rw------- 1 root   root   1.6M 2011-03-02 21:26 dropbear-0.53.1.tar.bz2
-rw------- 1 root   root   5.5M 2011-11-30 07:25 e2fsprogs-1.42.tar.gz
-rw------- 1 root   root    61M 2010-04-29 20:03 gcc-4.4.4.tar.bz2
-rw------- 1 root   root   1.9M 2010-01-08 19:24 gmp-4.3.2.tar.bz2
-rw------- 1 root   root   1.4M 2012-01-21 00:33 gpm-1.20.6.tar.bz2
-rw------- 1 root   root   476K 2012-02-08 13:58 iptables-1.4.12.tar.bz2
-rw------- 1 root   root   568K 2011-04-10 01:12 lilo-23.2.tar.gz
-rw------- 1 root   root   1.2M 2010-07-28 13:59 make-3.82.tar.bz2
-rw-r--r-- 1 jiawei jiawei 224K 2012-02-08 16:20 module-init-tools-3.16.tar.bz2
-rw------- 1 root   root   1.1M 2009-12-07 04:55 mpfr-2.4.2.tar.bz2
-rw------- 1 root   root   2.4M 2008-11-03 09:11 ncurses-5.7.tar.gz
-rw------- 1 root   root   669K 2012-02-08 15:25 ppp-2.4.5.tar.gz
-rw------- 1 root   root   385K 2006-03-19 18:29 retawq-0.2.6c.tar.gz
-rw-r--r-- 1 root   root   544K 2012-02-08 16:15 udev-163.tar.bz2
-rw-r--r-- 1 root   root   7.4M 2012-02-08 16:13 util-linux-ng-2.18.tar.bz2

>
>>
>> 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



-- 
Thanks
Harry Wei