If you care about your current kernel, move or rename it, don't delete it.
- Remove old kernel.img from Raspberry Pi
- Run build.sh
- Move built kernel.img onto Raspberry Pi
- Boot, see ACT/OK LED blinking!
| backlog switchmode 1; poweronstate 0; TelePeriod 10; | |
| Rule1 | |
| on tele-SI7021#humidity>60 do backlog RuleTimer1 1200; power 1 endon | |
| on power1#state do RuleTimer1 1200 endon | |
| on Rules#Timer=1 do backlog RuleTimer1 0; power 0 endon | |
| Rule1 1 |
| # The part .data=0x08000000 should be replaced with the correct base offset of the ROM. | |
| # The value 0x08000000 is valid for STM32. | |
| arm-none-eabi-objcopy -I binary -O elf32-little --change-section-address .data=0x08000000 input.bin output.elf |
| #!/usr/bin/ruby | |
| DATA.each_line do |line| | |
| puts line | |
| end | |
| __END__ | |
| Doom | |
| Quake | |
| Diablo |
If you care about your current kernel, move or rename it, don't delete it.
| git config --global diff.tool bbdiff | |
| git config --global difftool.bbdiff.cmd 'bbdiff --wait --resume "$LOCAL" "$REMOTE"' | |
| git config --global difftool.prompt false | |
| git config --global merge.tool bbdiff | |
| git config --global mergetool.bbdiff.cmd 'bbdiff --wait --resume "$LOCAL" "$REMOTE"' | |
| Double check ~/.gitconfig |
| --- mosquitto.py.orig 2013-11-12 11:41:17.000000000 +0100 | |
| +++ mosquitto.py 2013-11-13 08:44:31.000000000 +0100 | |
| @@ -45,6 +45,11 @@ | |
| import sys | |
| import threading | |
| import time | |
| +HAVE_DNS = True | |
| +try: | |
| + import dns.resolver | |
| +except ImportError: |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| # Build OpenSSL 1.0.1e (or whichever) | |
| $ ./Configure darwin64-x86_64-cc --prefix=/usr/local/stow/openssl-1.0.1e/ | |
| $ make install | |
| # Obtain and build Mosquitto | |
| $ hg clone https://bitbucket.org/oojah/mosquitto | |
| $ hg up -r 1.2 |
| # /usr/bin/notify-site-is-down.rb | |
| require "rubygems" | |
| require "twilio-ruby" | |
| account_sid = ENV["TWILIO_ACCOUNT_SID"] | |
| auth_token = ENV["TWILIO_AUTH_TOKEN"] | |
| @client = Twilio::REST::Client.new account_sid, auth_token |