0
0
mirror of https://github.com/Doodle3D/doodle3d-firmware.git synced 2024-09-16 16:50:07 +02:00

Add miscellaneous notes; add page on self updater.

Wouter R 2013-04-24 15:58:39 +02:00
parent a5669c9a14
commit 888322184d
5 changed files with 27 additions and 3 deletions

@ -1,6 +1,6 @@
# Building OpenWRT for the WifiBox
TODO: add steps to clone openwrt, install required software, create an image (on OSX) and fetch package feeds
_TODO_: add steps to clone openwrt, install required software, create an image (on OSX) and fetch package feeds
When changing enabled packages, make sure the image has been created (check the timestamp). If not, the contents were probably too large to fit on the device.
Luci and Python (even mini) are notable for causing this.

@ -8,4 +8,8 @@ This contains notes previously kept in several local files. Keeping notes here i
[analyzing uhttpd crashes](UhttpdCrash)
[partial original wiki content](OriginalContent)
[outline for self-update functionality](SelfUpdater)
[partial original wiki content](OriginalContent)
[Miscelanneous notes](MiscNotes)

6
MiscNotes.md Normal file

@ -0,0 +1,6 @@
# Miscellaneous notes
- [source code of iwinfo (old revision)](https://dev.openwrt.org/browser/trunk/package/iwinfo/src/iwinfo_lua.c?rev=29403)
- [Press4Connect](https://github.com/nutbolt/press4connect/tree/master/files/p4config)
- Used [urlcode.lua](from https://github.com/keplerproject/cgilua/blob/master/src/cgilua/urlcode.lua) for decoding URLs

14
SelfUpdater.md Normal file

@ -0,0 +1,14 @@
## Update mechanism
_TODO_: make this document intelligable
- create a rigid versioning system
- server-side script to report available versions (scans directory and reports back versions available in xml/json/plain)
- reported versions translate to archives and checksums (e.g. ?.tar.gz and ?.md5sum)
- all code must be contained within one directory, symlinks to place 'hooks' within the system
- updating should not only install/overwrite new files or symlinks but also remove old ones
- updater keeps at least the last-known-good version to rollback to
- the updater is part of the system; in case it gets broken accidentally there should be a command-line option (e.g. through fail-safe) to restore a previous version (or immediately fetch a new debugged one)
- (!) a fallback webupdater in case of booting trouble might be good to have
- create deploy script (included in release package; should probably work incrementally?)

@ -1,6 +1,6 @@
# Analyzing uhttpd crashes
TODO: describe when this happens (sometimes in portal mode and always when webroot does not exist?).
_TODO_: describe when this happens (sometimes in portal mode and always when webroot does not exist?).
- First, enable debug support in the binary by modifying package/network/services/uhttpd/Makefile: add `TARGET_CFLAGS += -ggdb3 -O0` below `TARGET_LDFLAGS`.
- Next, enable building the toolchain (we need a gdb which understands mips images).