From 64b49bc4b4700fe574f0fd70e4819cb519fea715 Mon Sep 17 00:00:00 2001 From: Wouter R Date: Wed, 26 Jun 2013 00:43:42 +0200 Subject: [PATCH] First attempt at resturcturing wiki. --- 1.-The-Doodle3D-Wifibox/1.1-Introduction.md | 0 .../1.2-Planning-Overview.md | 1 + 1.-The-Doodle3D-Wifibox/1.3-Resources.md | 1 + .../2.1-Overview.md | 2 + 2.-Firmware/2.2-RESTful-API.md | 0 ...1-Outline-For-Self-update-Functionality.md | 0 .../3.2-Notes-On-Packaging-The-Code.md | 0 ...nterfaces-For-Sending-And-Viewing-Gcode.md | 0 .../3.3.2-Various-Firmware-Implementations.md | 0 .../4.1-Miscellaneous-Notes.md | 0 .../4.2-Analyzing-Uhttpd-Crashes.md | 0 Appendices/A1.-Building-OpenWrt.md | 58 +++++++++++++++++++ .../A2.-Preparing-OpenWrt-For-Wifibox.md | 0 Home.md | 13 +---- _Sidebar.md | 40 +++++++++++++ 15 files changed, 103 insertions(+), 12 deletions(-) create mode 100644 1.-The-Doodle3D-Wifibox/1.1-Introduction.md create mode 100644 1.-The-Doodle3D-Wifibox/1.2-Planning-Overview.md create mode 100644 1.-The-Doodle3D-Wifibox/1.3-Resources.md rename ProjectOutline.md => 2.-Firmware/2.1-Overview.md (95%) create mode 100644 2.-Firmware/2.2-RESTful-API.md rename SelfUpdater.md => 3.-Research/3.1-Outline-For-Self-update-Functionality.md (100%) rename Packaging.md => 3.-Research/3.2-Notes-On-Packaging-The-Code.md (100%) rename GcodeSenders.md => 3.-Research/3.3-3D-Printing/3.3.1-Webinterfaces-For-Sending-And-Viewing-Gcode.md (100%) rename Firmwares.md => 3.-Research/3.3-3D-Printing/3.3.2-Various-Firmware-Implementations.md (100%) rename MiscNotes.md => 4.-Everything-Else/4.1-Miscellaneous-Notes.md (100%) rename UhttpdCrash.md => 4.-Everything-Else/4.2-Analyzing-Uhttpd-Crashes.md (100%) create mode 100644 Appendices/A1.-Building-OpenWrt.md rename BuildOpenwrt.md => Appendices/A2.-Preparing-OpenWrt-For-Wifibox.md (100%) create mode 100644 _Sidebar.md diff --git a/1.-The-Doodle3D-Wifibox/1.1-Introduction.md b/1.-The-Doodle3D-Wifibox/1.1-Introduction.md new file mode 100644 index 0000000..e69de29 diff --git a/1.-The-Doodle3D-Wifibox/1.2-Planning-Overview.md b/1.-The-Doodle3D-Wifibox/1.2-Planning-Overview.md new file mode 100644 index 0000000..978b292 --- /dev/null +++ b/1.-The-Doodle3D-Wifibox/1.2-Planning-Overview.md @@ -0,0 +1 @@ +(functionality breakdown / milestones) diff --git a/1.-The-Doodle3D-Wifibox/1.3-Resources.md b/1.-The-Doodle3D-Wifibox/1.3-Resources.md new file mode 100644 index 0000000..efb79aa --- /dev/null +++ b/1.-The-Doodle3D-Wifibox/1.3-Resources.md @@ -0,0 +1 @@ +(repo, wiki, general resources like openwrt website etc.) diff --git a/ProjectOutline.md b/2.-Firmware/2.1-Overview.md similarity index 95% rename from ProjectOutline.md rename to 2.-Firmware/2.1-Overview.md index f8b1c34..d53b07e 100644 --- a/ProjectOutline.md +++ b/2.-Firmware/2.1-Overview.md @@ -1,5 +1,7 @@ # Outline of the WifiBox project +*TO ADD*: (openwrt-based, components:luacgi(+uci)+www-iface+init.d) + Consider this a sketch, including some ideas which might never end up in the final application. * Printer driver interface diff --git a/2.-Firmware/2.2-RESTful-API.md b/2.-Firmware/2.2-RESTful-API.md new file mode 100644 index 0000000..e69de29 diff --git a/SelfUpdater.md b/3.-Research/3.1-Outline-For-Self-update-Functionality.md similarity index 100% rename from SelfUpdater.md rename to 3.-Research/3.1-Outline-For-Self-update-Functionality.md diff --git a/Packaging.md b/3.-Research/3.2-Notes-On-Packaging-The-Code.md similarity index 100% rename from Packaging.md rename to 3.-Research/3.2-Notes-On-Packaging-The-Code.md diff --git a/GcodeSenders.md b/3.-Research/3.3-3D-Printing/3.3.1-Webinterfaces-For-Sending-And-Viewing-Gcode.md similarity index 100% rename from GcodeSenders.md rename to 3.-Research/3.3-3D-Printing/3.3.1-Webinterfaces-For-Sending-And-Viewing-Gcode.md diff --git a/Firmwares.md b/3.-Research/3.3-3D-Printing/3.3.2-Various-Firmware-Implementations.md similarity index 100% rename from Firmwares.md rename to 3.-Research/3.3-3D-Printing/3.3.2-Various-Firmware-Implementations.md diff --git a/MiscNotes.md b/4.-Everything-Else/4.1-Miscellaneous-Notes.md similarity index 100% rename from MiscNotes.md rename to 4.-Everything-Else/4.1-Miscellaneous-Notes.md diff --git a/UhttpdCrash.md b/4.-Everything-Else/4.2-Analyzing-Uhttpd-Crashes.md similarity index 100% rename from UhttpdCrash.md rename to 4.-Everything-Else/4.2-Analyzing-Uhttpd-Crashes.md diff --git a/Appendices/A1.-Building-OpenWrt.md b/Appendices/A1.-Building-OpenWrt.md new file mode 100644 index 0000000..fd5431e --- /dev/null +++ b/Appendices/A1.-Building-OpenWrt.md @@ -0,0 +1,58 @@ +Set up OpenWRT on OSX +--------------------- + +Building was relatively easy in my case (Snow Leopard), but this might differ depending on OS/versions/etc. The guide I followed (roughly) is . I got along fine with only following these steps+notes: + +- Install required macports dependencies...for me, Xcode's gcc worked just fine...so maybe that step can be left out. +- However, the longer list of ports just below must be installed or you will get missing dependencies during 'make prereq'. +- Create a case-sensitive HFS+ sparse image (10GB will do nicely). +- Fetch openwrt through svn and update feeds (aka packages). +- If you'd like all packages available for building in 'make menuconfig', run: 'scripts/feeds install -a'. +- build! (e2fsprogs worked fine for me but I'm not using Lion so...?) + +Further notes: + +- deselect everything but SquashFS under 'Target images' (e.g. jffs2 is not needed) +- under 'Target profile', for the TP-Link box, only select your specific model (scroll way down) +- I think luci must be enabled in menuconfig (under 'Luci'->Collections...) +- when flashing a new image, the sysupgrade one will do fine except the very first time (according to openwrt docs) +- enabling some drivers can only be done by modifying the kernel? (make kernelconfig) +- keep track of packages and features (de)selected in menuconfig (or modify by hand...) +- prefix path with macports path: 'export PATH=/opt/local/bin:$PATH' +- If the make system keeps complaining about outdated svn repo/executable versions, this seems not to be a problem +- wr703n reverse engineered +- To get the new image on a device, follow this guide after getting the image on the device (copy it to /tmp). A warning 'Error fixing up TRX header' seems quite harmless. +- In case you end up with a broken ssh session, don't forget you can quit ssh by typing '~.' (on an empty line so hit enter before to be sure). + + +Various guides / links +====================== +- WR703N openWRT setup: +- WR703N wlan config: +- (osx cross-compile) +- (osx cross-compile) +- (cross compile eigen code) +- (cross compile eigen code) +- (eclipse setup) +- Hardware extension (2 more USB ports) +- Mouse support (not a solution to the USB1 issue) +- (GENERAL) run make using CPU idle time only, found here: http://wiki.openwrt.org/doc/howto/build + $ ionice -c 3 nice -n19 make -j 2 + + +Build environment +================= +A script (possibly buggy) to set appropiate variables for cross-compiling openwrt code for the tp-link wr703n router. It assumes your image is called 'openWRT-build-fs-10GB'. +Source the script to modify current shell environment (using regular execution runs it in a temporary subshell). + + cat<set-openwrt-build-env + #!/bin/sh + + export PATH=/opt/local/bin:$PATH:/Volumes/openWRT-build-fs-10GB/trunk/staging_dir/toolchain- mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/bin + export STAGING_DIR=/Volumes/openWRT-build-fs-10GB/trunk/staging_dir + export CC=mips-openwrt-linux-uclibc-gcc + export LD=mips-openwrt-linux-uclibc-ld + + #this is used to pass to configure --target + export TGT_MIPS=mips-openwrt-linux-uclibc + EOF diff --git a/BuildOpenwrt.md b/Appendices/A2.-Preparing-OpenWrt-For-Wifibox.md similarity index 100% rename from BuildOpenwrt.md rename to Appendices/A2.-Preparing-OpenWrt-For-Wifibox.md diff --git a/Home.md b/Home.md index 7126085..99b6e03 100644 --- a/Home.md +++ b/Home.md @@ -10,15 +10,4 @@ A number of milestones have been created in the issue tracker. Bitbucket sorts t - (0_IP_2) Second development milestone, same as 0_IP_1 but in a larger scope. - (0_IP_n) Nth development milestone, at some point one has to be defined at which all core functionality is present and working reasonably well. - (1.0) First release version. -- (Later) Indeterminate, but nonetheless wirthwhile implementing at some point. - -## Pages on this wiki - -[Building OpenWrt](wiki/BuildOpenwrt) -[Analyzing uhttpd crashes](wiki/UhttpdCrash) -[Outline for self-update functionality](wiki/SelfUpdater) -[Miscellaneous notes](wiki/MiscNotes) -[An outline of the project structure](wiki/ProjectOutline) -[Webinterfaces for sending/viewing gcode](wiki/GcodeSenders) -[Various firmware implementations](wiki/Firmwares) -[Notes on packaging the code](wiki/Packaging) +- (Later) Indeterminate, but nonetheless worthwhile implementing at some point. diff --git a/_Sidebar.md b/_Sidebar.md new file mode 100644 index 0000000..ba6c1b7 --- /dev/null +++ b/_Sidebar.md @@ -0,0 +1,40 @@ +## Table of contents + +1. The Doodle3D Wifibox +1.1 Introduction +1.2 Planning overview +1.3 Resources + +2. Firmware +[2.1 Overview](2.-Firmware/2.1-Overview.md) +2.2 RESTful API + +3. Research +3.1 Outline for self-update functionality +3.2 Notes on packaging the code +3.3 3D printing related +3.3.1 Webinterfaces for sending/viewing gcode +3.3.2 Various firmware implementations + +4. Everything else +4.1 Miscellaneous notes +4.2 Analyzing uhttpd crashes + +A1 Building OpenWrt +A2 Preparing OpenWrt for Wifibox + + +## ---old--- + +[Building OpenWrt](wiki/BuildOpenwrt) +[Analyzing uhttpd crashes](wiki/UhttpdCrash) +[Outline for self-update functionality](wiki/SelfUpdater) +[Miscellaneous notes](wiki/MiscNotes) +[An outline of the project structure](wiki/ProjectOutline) +[Webinterfaces for sending/viewing gcode](wiki/GcodeSenders) +[Various firmware implementations](wiki/Firmwares) +[Notes on packaging the code](wiki/Packaging) + + + +## ---aanpassen---