Outils pour utilisateurs

Outils du site


maison2:configuration_open_wrt:developpement_appli

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
maison2:configuration_open_wrt:developpement_appli [03/2012] – [langage et environnement] fredmaison2:configuration_open_wrt:developpement_appli [04/2012] (Version actuelle) – [temps execution] fred
Ligne 14: Ligne 14:
 pour compiler on fait sous ~/openwrt/OpenWrt-SDK-brcm-2.4-for-Linux-i686/make V=99 à V=1 pour compiler on fait sous ~/openwrt/OpenWrt-SDK-brcm-2.4-for-Linux-i686/make V=99 à V=1
  
-wget http://frederic.simon.free.fr/maison/openhouse_1_mipsel.ipk +in case of ERRORplease fix package/click/Makefile 
-wget http://open-house.ovh.org/_dev/helloworld_1_mipsel.ipk +To get a more descriptive error message, enter the following from the root directory of your OpenWRT source distribution
-wget http://open-house.ovh.org/_dev/openhouse_1_mipsel.ipk+TOPDIR=$PWD make -C package/pkg_name DUMP=1 
  
 ipkg install -force-overwrite openhouse_1_mipsel.ipk ipkg install -force-overwrite openhouse_1_mipsel.ipk
- 
  
 openhouse: can't load library 'libstdc++.so.6'   -> installer la libstdcpp ... openhouse: can't load library 'libstdc++.so.6'   -> installer la libstdcpp ...
 +</code>
  
-- i_open [modified] 9/9 100% +{{:maison2:configuration_open_wrt:script_install_wl500gp.zip|}} on les met dans /usr/bin pour le garder en flash
-#!/bin/sh +
-echo "script d'installation de open house" +
-echo "wget ..." +
-wget http://frederic.simon.free.fr/maison/openhouse_1_mipsel.ipk +
-echo "install : .." +
-ipkg install -force-overwrite openhouse_1_mipsel.ipk +
-echo "clean" +
-rm openhouse_1_mipsel.ipk +
-echo "end" +
- +
- +
-on le met dans /usr/bin pour le garder en flash +
-cp i_open /usr/bin +
-</code>+
  
 ====== création du SDK ====== ====== création du SDK ======
Ligne 49: Ligne 35:
  
 </code> </code>
- +  * http://wiki.openwrt.org/doc/howto/obtain.firmware.sdk
-test +
- * http://wiki.openwrt.org/doc/howto/obtain.firmware.sdk+
  
 ====== debugage du SDK ar71 ====== ====== debugage du SDK ar71 ======
Ligne 61: Ligne 45:
     * scripts/config/mconf: /lib/tls/i686/cmov/libc.so.6: version `GLIBC_2.7' not found (required by scripts/config/mconf)     * scripts/config/mconf: /lib/tls/i686/cmov/libc.so.6: version `GLIBC_2.7' not found (required by scripts/config/mconf)
 <code> strings /lib/libc.so.6 | grep GLIBC : GLIBC_2.0  .. GLIBC_2.6 -> il faudrait passer a une autre distri linux </code> <code> strings /lib/libc.so.6 | grep GLIBC : GLIBC_2.0  .. GLIBC_2.6 -> il faudrait passer a une autre distri linux </code>
-  * make menuconfig qui bloque :  +  * make menuconfig qui bloque : clean (pas d'effet), test avec sdk relocable (même problème)
-    * clean pas d'effet , renommage pas de problème, test avec sdk patché : meme probleme  +
-    * comparaison paquet de 2 distri +
  
 test du sdk avec un package sans dépendance test du sdk avec un package sans dépendance
Ligne 73: Ligne 54:
  
 dernière modification du tag 10.03.1 r29638 dernière modification du tag 10.03.1 r29638
- 
 https://dev.openwrt.org/search?changeset=on&q=reloc&page=2&noquickjump=1 https://dev.openwrt.org/search?changeset=on&q=reloc&page=2&noquickjump=1
- +r29924 r29925 r29926,r29932,r29933,r29938,r29950,r29961
-r29924 +
-  * autoconf/patches/000-relocatable.patch (copied from trunk/tools/autoconf/patches/000-relocatable.patch) +
-  * automake/patches/000-relocatable.patch (copied from trunk/tools/automake/patches/000-relocatable.patch) +
-  * automake/patches/100-aclocal-skip-not-existing-directories.patch (1 diff) tagrev 25739 : direct use ok +
-  * bison/patches/000-relocatable.patch (copied from trunk/tools/bison/patches/000-relocatable.patch) +
-  * libtool/patches/000-relocatable.patch (copied from trunk/tools/libtool/patches/000-relocatable.patch) +
-  * quilt/patches/000-relocatable.patch (copied from trunk/tools/quilt/patches/000-relocatable.patch) +
- +
-r29925 +
-  * scripts/ext-toolchain.sh (copied from trunk/scripts/ext-toolchain.sh) +
-  * scripts/patch-specs.sh (copied from trunk/scripts/patch-specs.sh) +
-  * toolchain/Makefile (1 diff) tagrev 29311 : direct use ok +
-  * toolchain/gcc/Makefile (1 diff)  tagrev 29311 : direct use ok +
-  * toolchain/wrapper (copied from trunk/toolchain/wrapper)   +
- +
-r29926,r29932,r29933,r29938,r29950,r29961 +
- +
-make[7]: Entering directory `/home/fred/10.03.1/build_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/gcc-4.3.3-final/mips-openwrt-linux-uclibc/libiberty/testsuite' +
-make[7]: Nothing to be done for `install'+
-make[7]: Leaving directory `/home/fred/10.03.1/build_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/gcc-4.3.3-final/mips-openwrt-linux-uclibc/libiberty/testsuite' +
-make[6]: Leaving directory `/home/fred/10.03.1/build_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/gcc-4.3.3-final/mips-openwrt-linux-uclibc/libiberty' +
-make[5]: Leaving directory `/home/fred/10.03.1/build_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/gcc-4.3.3-final' +
-make[4]: Leaving directory `/home/fred/10.03.1/build_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/gcc-4.3.3-final' +
-# Set up the symlinks to enable lying about target name. +
-set -e; (cd /home/fred/10.03.1/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1; ln -sf mips-openwrt-linux-uclibc mips-openwrt-linux; cd bin; for app in mips-openwrt-linux-uclibc-* ; do ln -sf ${app} mips-openwrt-linux${app##mips-openwrt-linux-uclibc}; done; ); +
-/home/fred/10.03.1/scripts/patch-specs.sh "/home/fred/10.03.1/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1" +
---: /home/fred/10.03.1/scripts/patch-specs.sh: Permission denied +
-make[3]: *** [/home/fred/10.03.1/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/stamp/.gcc_installed] Error 126 +
-make[3]: Leaving directory `/home/fred/10.03.1/toolchain/gcc' +
-make[2]: *** [toolchain/gcc/install] Error 2 +
-make[2]: Leaving directory `/home/fred/10.03.1' +
-make[1]: *** [/home/fred/10.03.1/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/stamp/.toolchain_install] Error 2 +
-make[1]: Leaving directory `/home/fred/10.03.1' +
-make: *** [world] Erreur 2 +
 https://dev.openwrt.org/changeset/29948 => écrase la modif du patch-specs.sh  r29925 https://dev.openwrt.org/changeset/29948 => écrase la modif du patch-specs.sh  r29925
  
 ==== conclusion ==== ==== conclusion ====
 +from https://forum.openwrt.org/viewtopic.php?id=35152 :
 +
 hello hello
- 
 currently the SDK for backfire 10.30.1 get a problem of relocation (https://forum.openwrt.org/viewforum.php?id=17&p=1) currently the SDK for backfire 10.30.1 get a problem of relocation (https://forum.openwrt.org/viewforum.php?id=17&p=1)
 applying only https://dev.openwrt.org/ticket/10822 do not solve the problem applying only https://dev.openwrt.org/ticket/10822 do not solve the problem
Ligne 185: Ligne 131:
    
  
-====== modification owfs ====== 
  
-apres avoir installé le package owfs-2.6p8 de facon [[maison2:configuration_open_wrt:owfs|standard]] sur le routeur 
-  * on place {{:maison2:configuration_open_wrt:owfs-2.6p8.zip|owfs-2.6p8.zip}} dans /OpenWrt-SDK-brcm-2.4-for-Linux-i686/dl/ 
-  * on place le {{:maison2:configuration_open_wrt:owfs-2.6p8_package_make.zip|package makefile}} dans /OpenWrt-SDK-brcm-2.4-for-Linux-i686/package/owfs-2.6p/ 
-  * sous ~/openwrt/OpenWrt-SDK-brcm-2.4-for-Linux-i686/ on fait make clean (:!: ceci va ecraser toutes les modifications faites sous /build_mipsel/ voir après) 
-{{:maison2:configuration_open_wrt:ow_ds9097_modif.zip|}} 
-<code> 
-on modifie ~/openwrt/OpenWrt-SDK-brcm-2.4-for-Linux-i686/build_mipsel/owfs-2.6p8/module/owlib/src/c/ow_ds9097U.c 
-on modifie ~/openwrt/OpenWrt-SDK-brcm-2.4-for-Linux-i686/build_mipsel/owfs-2.6p8/module/owlib/src/c/ow_ds9097.c 
-~/openwrt/OpenWrt-SDK-brcm-2.4-for-Linux-i686/make V=99 à V=1 
-wget http://frederic.simon.free.fr/maison/libow_2.6p8-4FS2_mipsel.ipk 
-wget http://www.lamaisonsimon.fr/dev/libow_2.6p8-4FS2_mipsel.ipk 
-ipkg install -force-overwrite libow_2.6p8-4FS2_mipsel.ipk 
-</code> 
  
 ====== compiling on OpenWRT router natively ====== ====== compiling on OpenWRT router natively ======
Ligne 206: Ligne 138:
   * http://scratchbox.org/wiki/CrossToolToolchain   * http://scratchbox.org/wiki/CrossToolToolchain
  
 +====== dépendance de openhouse ======
 +   * [[maison2:configuration_open_wrt:owfs]] 
 +   * [[maison2:configuration_open_wrt:ws2355|fetch2300 minmax2300]] 
  
-====== 1 Wire in C ====== 
  
-===== utilisation de OWCAPI ===== 
-je n'arrive pas à linker OWCAPI malgrès les liens ci dessous, ca me semble un peu lourd pour mes besoins 
-  * {{:maison2:configuration_open_wrt:lib.zip|}} 
-  * [[http://home.mag.cx/openwrt/source/mk/kamikaze/package/owfs/]] 
-  * [[http://quamquam.org/~tetzlav/freifunk/owfs/|pour kernel2.6...]] 
  
-===== on passe par le system de fichier que crée OWFS ===== 
- 
-  * {{:maison2:configuration_open_wrt:1wire.zip|}} 
- 
-  * [[http://vesta.homelinux.net/wiki/acquisition_senseurs_i2c_fonera_par_messages_xpl.html|sys_log et socket]] 
- 
- 
-====== interface web embarqué ====== 
-en utilisant web if comment la page command ([[maison2:configuration_open_wrt:remote_shell]]) 
- 
-doit'on sauvegarder les pages sur le wiki , en ce moment ce doit être situé dans NET/WL500GP , a vérifier 
- 
-===== 1 wire error ===== 
-on ajoute un menu sous webif grace a script suivant (/www/cgi-bin/webif/_maison_1wire_stat.sh) 
-<code bash> 
-#!/usr/bin/webif-page 
-<? 
-. /usr/lib/webif/webif.sh 
-header "MAISON" "1 Wire Stat" "" 
-cat <<EOF 
-<h2>1 wire statistics</h2> 
-/var/1wire/bus.0/statistics/errors/ 
-EOF 
-cd /var/1wire/bus.0/statistics/errors/ 
-echo "<BR>grep sur valeur différente de 0<BR>" 
-tmp=$(grep  [1-9] *) 
-echo $tmp  
- 
-cd /var/1wire/statistics/read/ 
-echo "<BR><BR>/var/1wire/statistics/read/" 
-echo "<BR>success";cat success 
-echo "<BR>tries.ALL";cat tries.ALL 
- 
-cd /var/1wire/statistics/write 
-echo "<BR><BR>/var/1wire/statistics/write" 
-echo "<BR>success";cat success 
-echo "<BR>tries.ALL";cat tries.ALL 
- 
-cd /var/1wire/statistics/threads/overall 
-echo "<BR><BR>var/1wire/statistics/threads/overall" 
-echo "<BR>sum";cat sum 
-echo "<BR>num";cat num 
-echo "<BR>now";cat now 
-echo "<BR>max";cat max 
-?> 
-<? footer ?> 
-<!-- 
-##WEBIF:name:MAISON:1_Wire_Statistics 
---> 
-</code>         
- 
-<code> 
-fred@Xubuntu:~/WL500GP_File_Structure/tmp/1wire/bus.0/statistics/errors$ grep -v 0 * 
-CRC8_errors:           2 
-CRC8_tries:         169 
-ne fonctionne pas avec 20 a la place de 2 .... 
- 
-mieux : 
-fred@Xubuntu:~/WL500GP_File_Structure/tmp/1wire/bus.0/statistics/errors$ grep  [1-9] * 
-CRC8_errors:           20 
-CRC8_tries:         169 
-max_delay:       0.011 
- 
-maintenant il faudrait substituer les retour chariot par des <BR> 
- 
-</code> 
  
 ====== misc ====== ====== misc ======
Ligne 308: Ligne 171:
  
  
-===== tracking discontinuité graphique web ===== +====== temps execution =======
- +
- +
-semble lié a ces erreur syslog +
-<code> +
-May 27 19:43:06 (none) user.err openhouse[502]: ERROR reading from socket -1  +
-May 27 20:12:19 (none) user.err openhouse[502]: ERROR reading from socket -1 +
-</code> +
- +
-===== temps execution =====+
    
 <code c> <code c>
maison2/configuration_open_wrt/developpement_appli.1331555981.txt.gz · Dernière modification : 03/2012 de fred