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

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



On Fri, Feb 10, 2012 at 8:53 AM, Douglas Jerome <[email protected]> wrote:
> harryxiyou 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
>
> Look at this error in the line above. [[ is
> not found. That indicates that your /bin/bash
> is not really bash, or it has some configuration
> that prevents it from having normal bash
> capabilities.

But how can i fix the bash matter, please give me some
suggestions.

>
> At the command line try typing:
> /bin/bash --version
>

[email protected]:~# /bin/bash --version
/bin/bash --version
GNU bash, version 4.1.5(1)-release (i486-pc-linux-gnu)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

>>
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> 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
>
> After you fix the bash issue, look at
> the file var/log/lilo-23.2.log; you can
> gzip that file and send it to me.

I will do this after fix the bash matter.



-- 
Thanks
Harry Wei