README of Bungalow open source package

Test in Ubuntu 8.4.2

1. Package list:

	mips-4.3.tgz                            : toolchain
	linux_kernel_2.6.22.19-19.tgz           : linux kernel
	linux_kernel_2.6.22.19_config           : kernel_config
	2.8_by_mips_4_3_2			: glibc 2.8 from toolchain
	busybox-1.10.0                          : busybox  
	curl-7.19.3.tar.bz2                     : curl
	dhcpcd-1.3.22-pl1                       : dhcpcd
	dosfstools_2.11-6.diff
	dosfstools_2.11-6.tar.gz                : dosfstools
	flickcurl-1.2.tar.gz                    : flickcurl
	fuse-2.7.4.tar.gz                       : FUSE
	gdbm-1.8.3.patch
	gdbm-1.8.3.tar.gz                       : gdbm
	gettext-0.14.3.tar.gz                   : gettext
	gettext_config.patch
	glib-2.18.0.cache
	glib-2.18.0.tar.bz2                     : glib
	gphoto2-2.4.4.tar.gz                    : gphoto2
	gphotofs-0.4.0.tar.bz2                  : GPhotoFS
	gphoto_lc_cytype.patch
	howl-1.0.0.tar.gz                       : howl
	libcx-1.1.1-devel.tar.bz2		: libcx
	libexif-0.6.17.tar.bz2                  : libexif
	libgphoto2-2.4.4.tar.bz2                : libgphoto2
	libiconv-1.12.tar.gz                    : libiconv
	libid3tag-0.15.1b.tar.gz                : libid3tag
	libtool-1.5.tar.gz                      : libtool
	libusb-0.1.12.tar.gz                    : libusb
	make_busybox.sh
	make_curl.sh
	make_dhcpcd.sh
	make_dosfstools.sh
	make_flickcurl.sh
	make_fuse.sh
	make_gdbm.sh
	make_gettext.sh
	make_glibc.sh
	make_glib.sh
	make_gphoto2.sh
	make_gphotofs.sh
	make_howl.sh
	make_kernel.sh
	make_libcx.sh
	make_libexif.sh
	make_libgphoto2.sh
	make_libiconv.sh
	make_libid3tag.sh
	make_libtool.sh
	make_libusb.sh
	make_mt-daapd.sh
	make_mxml.sh
	make_openssl.sh
	make_popt.sh
	make_rootfs.sh
	make_samba.sh
	make_uuid.sh
	make_wireless_tools.sh
	make_wol.sh
	make_wpa_supplicant.sh
	make_xfs.sh
	make_zlib.sh
	mt-daapd-0.2.4.2.patch
	mt-daapd-0.2.4.2.tar.gz                 : mt-daapd
	mxml-2.6.patch
	mxml-2.6.tar.gz                         : mxml
	openssl-0.9.8k.patch
	openssl-0.9.8k.tar.gz			: openssl
	popt-1.10.4.tar.gz                      : popt
	README
	smbtree		                        : samba
	toolchain-path.env
	wireless_tools.26                       : wireless_tools
	uuid-1.41.10.tar.gz			: uuid 
	wol-0.7.1.tar.gz			: wol
	wpa_supplicant-0.4.8_otus		: wpa_supplicant
	xfs-3.1.1-1.patch
	xfs-3.1.1-1.tar.gz			: xfs
	zlib-1.2.2.tar.gz                       : zlib


2. Set toolchain PATH:
   1) Untar the package mips-4.3
      tar xvf mips-4.3.tgz
   2) please source the file toolchain-path.env as below:
      . toolchain-path.env

3. Build kernel:
   1) please run script file make_kernel.sh as below:
      ./make_kernel.sh

4. How to build binary:
     1) Please run script files as below:
	./make_busybox.sh
	./make_dhcpcd.sh
	./make_dosfstools.sh
	./make_fuse.sh
	./make_gdbm.sh
	./make_gettext.sh
	./make_glibc.sh
	./make_glib.sh
	./make_howl.sh
	./make_libcx.sh
	./make_libexif.sh
	./make_libiconv.sh
	./make_libtool.sh
	./make_libusb.sh
	./make_mxml.sh
	./make_openssl.sh
	./make_popt.sh
	./make_samba.sh
	./make_uuid.sh
	./make_wireless_tools.sh
	./make_wol.sh
	./make_zlib.sh

     2) Then run script files as below: 
	./make_curl.sh
	./make_libgphoto2.sh
	./make_libid3tag.sh
	./make_mt-daapd.sh
	./make_wpa_supplicant.sh
	./make_xfs.sh

     3) Finally run script files as below:
	./make_flickcurl.sh
	./make_gphoto2.sh
	./make_gphotofs.sh
    
    Note: curl need after openssl
	  flickcurl need after curl
	  libgphoto2 need libtool, libusb, libexif
          mt-daapd need gdbm, libid3tag, zlib
	  libid3tag need zlib
          gphoto2 need libgphoto2
          gphotofs need libgphoto2
	  xfs need uuid

5. It will install in build folder.
     1) Run the script to copy the library to build/root/lib
        ./make_rootfs.sh
     2) The build/root folder is the firmware folder.


note:
       The toolchain is from codesourcery and we use the binary. We do not build the toolchain ourselves.
       The download URL
           http://www.codesourcery.com/sgpp/lite/mips/portal/subscription?@template=lite

	busybox for our system is under busybox-1.10.0

