# Entry-Easy DigiEL-5.2 # ------------------------- Status: Experimental # ------------------------- Download the entryeasy # install DigiEL-5.2 # --------------------- Install the DigiEL-5.2 development kit under your home directory: /home//Digi/DigiEL-5.2 # Install tools aptitude install minicom aptitude install rsync aptitude install tftpd mkdir /tftpboot chmod 1777 /tftpboot # edit inetd.conf cat /etc/inetd.conf --- snip --- tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /tftpboot --- snip --- aptitude install nfs-kernel-server mkdir /exports chmod 777 /tftpboot nano /etc/exports --------- add --------- /exports 192.168.3.0/24(rw,all_squash,anonuid=1000,anongid=1000,async) ----------------------- # restart nfs /etc/init.d/nfs-kernel-server restart # add the project # ------------------- cd ~/Digi/DigiEL-5.2 mkdir workspace cd workspace mkdir entryeasy cd entryeasy ../../mkproject.sh --with-kernel --with-modules --with-rootfs --enable-platform=cme9210js --tftp-dir=/tftpboot --nfs-dir=/exports/nfsroot-cme9210js mkdir build/coretemplate # install GPIO and INOTIFY support and the www folder # ------------------------------------------------------- cd ~/entryeasy cp -a ./DigiEL-5.2/src/* ~/Digi/DigiEL-5.2/workspace/entryeasy/build/coretemplate cp ./DigiEL-5.2/DigiEL.sh ~/Digi/DigiEL-5.2/workspace/entryeasy/build/coretemplate/ cp ./DigiEL-5.2/make_images.sh ~/Digi/DigiEL-5.2/workspace/entryeasy/build/coretemplate/ # edit the kernel w1 interface w1_timeout from 10 to 1# -------------------------------------------------- nano ~/Digi/DigiEL-5.2/kernel/linux/drivers/w1/w1.c -- snip -- MODULE_DESCRIPTION("Driver for 1-wire Dallas network protocol."); //static int w1_timeout = 10; static int w1_timeout = 1; -- snip -- # copy the kernel config and build the system # -------------------------------------------------- cp DigiEL-5.2/config-cme9210js ~/Digi/DigiEL-5.2/workspace/entryeasy/build/.config-cme9210js cd ~/Digi/DigiEL-5.2/workspace/entryeasy make make install # install WISL # ---------------- cd ~/entryeasy/vendor tar xfvz pcre-7.6.tar.gz -C ~/Digi/DigiEL-5.2/workspace/entryeasy/build/coretemplate/ tar xfvz libxml2-2.6.31.tar.gz -C ~/Digi/DigiEL-5.2/workspace/entryeasy/build/coretemplate/ tar xfvz libxslt-1.1.22.tar.gz -C ~/Digi/DigiEL-5.2/workspace/entryeasy/build/coretemplate/ tar xfvz spl-1.0pre5.tar.gz -C ~/Digi/DigiEL-5.2/workspace/entryeasy/build/coretemplate/ cp arm-linux-gcc-wrapper ~/Digi/DigiEL-5.2/workspace/entryeasy/build/coretemplate/libxml2-2.6.31/ cp arm-linux-gcc-wrapper ~/Digi/DigiEL-5.2/workspace/entryeasy/build/coretemplate/libxslt-1.1.22/ cp spl-1.0pre5-ME921X.diff ~/Digi/DigiEL-5.2/workspace/entryeasy/build/coretemplate/spl-1.0pre5/ # add path compiler # cd ~/Digi/DigiEL-5.2/workspace/entryeasy/build/coretemplate/ . ./DigiEL.sh libpcre-7.6 ------------- 1. go to libpcre (project)/build/coretemplate/ cd ~/Digi/DigiEL-5.2/workspace/entryeasy/build/coretemplate/pcre-7.6/ 2. configure: ./configure --host=arm-linux --build=i386-linux --prefix=/home//Digi/DigiEL-5.2/usr 3. compile and install the lib type: make make install libxml2-2.6.31 -------------- 1. go to libxml2 (project)/build/coretemplate/ cd ~/Digi/DigiEL-5.2/workspace/entryeasy/build/coretemplate/libxml2-2.6.31/ 2 configure CC=$PWD/arm-linux-gcc-wrapper ./configure --host=arm-linux --without-debug --without-python --prefix=/home//Digi/DigiEL-5.2/usr --without-c14n --without-catalog --without-ftp --without-http --without-legacy --without-push --without-regexps --without-schematron --without-valid --without-writer --without-modules 3. compile make make install libxslt-1.1.22 ------------- 1. go to libxslt (project)/build/coretemplate/ cd ~/Digi/DigiEL-5.2/workspace/entryeasy/build/coretemplate/libxslt-1.1.22/ 2 configure CC=$PWD/arm-linux-gcc-wrapper ./configure --host=arm-linux --without-crypto --without-debug --without-debugger --without-python --prefix=/home//Digi/DigiEL-5.2/usr 3. compile make make install spl-1.0pre5 ----------- 1. go to spl-1.0pre5 (project)/build/coretemplate/ cd ~/Digi/DigiEL-5.2/workspace/entryeasy/build/coretemplate/spl-1.0pre5/ 2. patch the spl (patch can be found in downloads section): patch -p1 < spl-1.0pre5-ME921X.diff 3. compile the lib type: make 4. copy needed files to arm linux target www folders Copy from spl-1.0pre5/spl_modules to build/coretemplate/www/spl_modules: cd spl_module cp *.so ~/Digi/DigiEL-5.2/workspace/entryeasy/build/coretemplate/www/spl_modules/ cp *.splb ~/Digi/DigiEL-5.2/workspace/entryeasy/build/coretemplate/www/spl_modules/ rm ~/Digi/DigiEL-5.2/workspace/entryeasy/build/coretemplate/www/spl_modules/mod_gyro.so rm ~/Digi/DigiEL-5.2/workspace/entryeasy/build/coretemplate/www/spl_modules/mod_multimouse.so rm ~/Digi/DigiEL-5.2/workspace/entryeasy/build/coretemplate/www/spl_modules/mod_wsf* / the list of files / mod_array.so mod_bits.so mod_cgi.so mod_crypt.so mod_encode_int.splb mod_encode_js.splb mod_encode_regex.splb mod_encode_url.splb mod_encode_xml.so mod_environ.so mod_file.so mod_format_ini.splb mod_gpio.so mod_inotify.so mod_prime.so mod_sql.so mod_sql_sqlite.so mod_sql_utils.splb mod_system.so mod_task.so mod_termio.so mod_time.so mod_w2t.splb mod_webdebug.so mod_xml.so # generate Images # ------------------- cd ~/entryeasy cp ./DigiEL-5.2/add_files.sh ~/Digi/DigiEL-5.2/workspace/entryeasy/configs/ cd ~/Digi/DigiEL-5.2/workspace/entryeasy/ make make install # generate extra Images # ------------------------- cd ~/Digi/DigiEL-5.2/workspace/entryeasy/build/coretemplate/ mkdir userfs mkdir images cp -a ./www ./userfs ./make_images.sh -r cp ~/Digi/DigiEL-5.2/workspace/entryeasy/build/coretemplate/images/userfs-cme9210js-64.jffs2 /exports/nfsroot-cme9210js/usr/share/ cp ~/Digi/DigiEL-5.2/workspace/entryeasy/build/coretemplate/images/userfs-cme9210js-64.jffs2 /tftpboot # Download Images to Target # ----------------------------- # start minicom 38400N81 # uboot promt type: update linux update rootfs update userfs ############################# #todo: # #documentation use cramfs instead sqashfs (to slow !!!) # #############################