Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédenteProchaine révisionLes deux révisions suivantes | ||
maison2:configuration_open_wrt:developpement_appli [02/2012] – [debugage du SDK ar71] fred | maison2:configuration_open_wrt:developpement_appli [04/2012] – [interface web embarqué] fred | ||
---|---|---|---|
Ligne 8: | Ligne 8: | ||
donc on retrouve les package sous fred@Xubuntu: | donc on retrouve les package sous fred@Xubuntu: | ||
- | * helloworl | + | * helloworld |
* openhouse | * openhouse | ||
Ligne 14: | Ligne 14: | ||
pour compiler on fait sous ~/ | pour compiler on fait sous ~/ | ||
- | wget http://frederic.simon.free.fr/ | + | in case of ERROR: please fix package/click/Makefile |
- | wget http:// | + | 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/ | + | 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 ' | openhouse: can't load library ' | ||
+ | </ | ||
- | - i_open [modified] 9/9 100% | + | {{:maison2:configuration_open_wrt:script_install_wl500gp.zip|}} |
- | #!/bin/sh | + | |
- | echo " | + | |
- | echo " | + | |
- | wget http:// | + | |
- | echo " | + | |
- | ipkg install -force-overwrite openhouse_1_mipsel.ipk | + | |
- | echo " | + | |
- | rm openhouse_1_mipsel.ipk | + | |
- | echo " | + | |
- | + | ||
- | + | ||
- | on le met dans /usr/bin pour le garder en flash | + | |
- | cp i_open /usr/bin | + | |
- | </ | + | |
====== création du SDK ====== | ====== création du SDK ====== | ||
Ligne 49: | Ligne 35: | ||
</ | </ | ||
- | + | | |
- | test | + | |
- | * http:// | + | |
====== debugage du SDK ar71 ====== | ====== debugage du SDK ar71 ====== | ||
Ligne 61: | Ligne 45: | ||
* scripts/ | * scripts/ | ||
< | < | ||
- | * make menuconfig qui bloque : | + | * make menuconfig qui bloque : clean (pas d' |
- | * clean : pas d' | + | |
- | * 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:// | https:// | ||
+ | r29924 r29925 r29926, | ||
+ | https:// | ||
- | r29924 | + | ==== conclusion ==== |
- | * autoconf/ | + | from https://forum.openwrt.org/viewtopic.php? |
- | * automake/ | + | |
- | * automake/ | + | |
- | * bison/ | + | |
- | * libtool/ | + | |
- | * quilt/ | + | |
- | r29925 | + | hello |
- | * scripts/ | + | currently the SDK for backfire 10.30.1 get a problem of relocation |
- | * scripts/ | + | applying only https://dev.openwrt.org/ticket/10822 do not solve the problem |
- | * toolchain/ | + | |
- | * toolchain/gcc/Makefile (1 diff) tagrev 29311 : direct use ok | + | |
- | * toolchain/wrapper (copied from trunk/toolchain/ | + | |
- | r29926,r29932, | + | so here a list of change set to download and merge: |
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
- | make[7]: Entering directory `/ | + | so you unzip all from the oldest to the latest |
- | make[7]: Nothing | + | this will give you 2 folders trunk and branches , you shall merge the 2 folders with the latest files... |
- | make[7]: Leaving directory `/ | + | so in order to help you i made {{: |
- | make[6]: Leaving directory `/home/fred/10.03.1/build_dir/ | + | |
- | make[5]: Leaving directory `/home/ | + | |
- | make[4]: Leaving directory `/ | + | here is the procedure |
- | # Set up the symlinks to enable lying about target name. | + | < |
- | set -e; (cd / | + | mkdir my_sdk_builder |
- | / | + | cd my_sdk_builder |
- | --: / | + | svn export svn://svn.openwrt.org/openwrt/tags/backfire_10.03.1 |
- | make[3]: *** [/home/fred/10.03.1/ | + | unzip patch_10.03.1_SDK_reloc.zip (force overwrite) |
- | make[3]: Leaving directory `/home/fred/10.03.1/ | + | chmod 755 ./script/ext-toolchain.sh |
- | make[2]: *** [toolchain/ | + | chmod 755 ./script/ |
- | make[2]: Leaving directory `/ | + | make menuconfig (Choose your Target System and platfrom and then [x] Build the OpenWrt SDK) -> save your config |
- | 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 -j 4 //wait 1 hour on a 3 core@3,3Ghz. |
- | make[1]: Leaving directory `/home/ | + | |
- | make: *** [world] Erreur 2 | + | cp ./bin/target system/ |
+ | cd .. | ||
+ | rm my_sdk_builder | ||
+ | unzip your_sdk.zip | ||
+ | cd your_sdk | ||
+ | svn export svn://svn.openwrt.org/openwrt/trunk/package/ncurses package/ | ||
+ | make V=1 | ||
+ | </code> | ||
- | https:// | ||
Ligne 134: | Ligne 131: | ||
- | ====== modification owfs ====== | ||
- | apres avoir installé le package owfs-2.6p8 de facon [[maison2: | ||
- | * on place {{: | ||
- | * on place le {{: | ||
- | * sous ~/ | ||
- | {{: | ||
- | < | ||
- | on modifie ~/ | ||
- | on modifie ~/ | ||
- | ~/ | ||
- | wget http:// | ||
- | wget http:// | ||
- | ipkg install -force-overwrite libow_2.6p8-4FS2_mipsel.ipk | ||
- | </ | ||
====== compiling on OpenWRT router natively ====== | ====== compiling on OpenWRT router natively ====== | ||
Ligne 155: | Ligne 138: | ||
* http:// | * http:// | ||
+ | ====== dépendance de openhouse ====== | ||
+ | * [[maison2: | ||
- | ====== 1 Wire in C ====== | ||
- | ===== utilisation de OWCAPI ===== | ||
- | je n' | ||
- | * {{: | ||
- | * [[http:// | ||
- | * [[http:// | ||
- | ===== on passe par le system de fichier que crée OWFS ===== | ||
- | |||
- | * {{: | ||
- | |||
- | * [[http:// | ||
- | |||
- | |||
- | ====== interface web embarqué ====== | ||
- | en utilisant web if comment la page command ([[maison2: | ||
- | |||
- | doit' | ||
- | |||
- | ===== 1 wire error ===== | ||
- | on ajoute un menu sous webif grace a script suivant (/ | ||
- | <code bash> | ||
- | # | ||
- | <? | ||
- | . / | ||
- | header " | ||
- | cat <<EOF | ||
- | <h2>1 wire statistics</ | ||
- | / | ||
- | EOF | ||
- | cd / | ||
- | echo "< | ||
- | tmp=$(grep | ||
- | echo $tmp | ||
- | |||
- | cd / | ||
- | echo "< | ||
- | echo "< | ||
- | echo "< | ||
- | |||
- | cd / | ||
- | echo "< | ||
- | echo "< | ||
- | echo "< | ||
- | |||
- | cd / | ||
- | echo "< | ||
- | echo "< | ||
- | echo "< | ||
- | echo "< | ||
- | echo "< | ||
- | ?> | ||
- | <? footer ?> | ||
- | <!-- | ||
- | ## | ||
- | --> | ||
- | </ | ||
- | |||
- | < | ||
- | fred@Xubuntu: | ||
- | CRC8_errors: | ||
- | CRC8_tries: | ||
- | ne fonctionne pas avec 20 a la place de 2 .... | ||
- | |||
- | mieux : | ||
- | fred@Xubuntu: | ||
- | CRC8_errors: | ||
- | CRC8_tries: | ||
- | max_delay: | ||
- | |||
- | maintenant il faudrait substituer les retour chariot par des <BR> | ||
- | |||
- | </ | ||
====== misc ====== | ====== misc ====== | ||
Ligne 256: | Ligne 169: | ||
- | |||
- | ===== tracking discontinuité graphique web ===== | ||
- | |||
- | |||
- | semble lié a ces erreur syslog | ||
- | < | ||
- | May 27 19:43:06 (none) user.err openhouse[502]: | ||
- | May 27 20:12:19 (none) user.err openhouse[502]: | ||
- | </ | ||
===== temps execution ===== | ===== temps execution ===== |