diff options
author | bnewbold <bnewbold@robocracy.org> | 2012-08-16 14:40:47 -0400 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2012-08-16 14:40:47 -0400 |
commit | 12d3300eee92b06a6c4c83ddc21ded4c07fa85db (patch) | |
tree | 7a4f5250d3de577ed47b7ad5cefecb4b7428903a | |
parent | 2ce2d07a7e1d824fa7cdef397028fd348ad84661 (diff) | |
download | knowledge-12d3300eee92b06a6c4c83ddc21ded4c07fa85db.tar.gz knowledge-12d3300eee92b06a6c4c83ddc21ded4c07fa85db.zip |
minor notes
-rw-r--r-- | books/wanted-books.page | 1 | ||||
-rw-r--r-- | electronics/soekris.page | 114 | ||||
-rw-r--r-- | software/debian.page | 2 | ||||
-rw-r--r-- | software/golang.page | 1 | ||||
-rw-r--r-- | software/misc.page | 7 |
5 files changed, 120 insertions, 5 deletions
diff --git a/books/wanted-books.page b/books/wanted-books.page index 23ea80b..aabf80c 100644 --- a/books/wanted-books.page +++ b/books/wanted-books.page @@ -55,6 +55,7 @@ Novels SciFi, a language is invented to be used as a weapon * **The Mote in God's Eye** by Niven and Pournelle * **The Windup Girl** by Paolo Bacigalupi + * **A Transatlantic Tunnel, Hurrah!** by Harry Harrison Non-Fiction ----------- diff --git a/electronics/soekris.page b/electronics/soekris.page index 7ef4ff1..2daf643 100644 --- a/electronics/soekris.page +++ b/electronics/soekris.page @@ -26,12 +26,11 @@ Boot drives: 7. external USB connector (JP3) 8. internal USB connector (JP5) - Ethernet chipset is Intel 82574L, using e1000e driver on linux (not e1000). miniPCIe WiFi card I have is the Intel 4965AGN. -Kernel needs ext2 and SATA ACPHI (?) support at boot time to load root +Kernel needs ext2 and SATA ACHI (?) support at boot time to load root filesystem. ### OpenWRT installation @@ -74,6 +73,56 @@ http://superuser.com/questions/357401/how-to-install-openwrt-on-an-x86-computer- http://www.syslinux.org/wiki/index.php/SYSLINUX#SERIAL_port_.5B.5Bbaudrate.5D_flowcontrol.5D +[this part does work] + +temporary re-install instructions for soekris device: + +boot up in debian + scp openwrt-x86-generic-rootfs.tar.gz openwrt-x86-generic-vmlinuz <debian> + mount /dev/sda4 /mnt + cd /mnt + tar xvf ~/openwrt-x86-generic-rootfs.tar.gz . + cp ~/openwrt-x86-generic-vmlinuz /mnt/boot/vmlinuz # CAREFUL! + cd + umount /mnt + +after boot up openwrt, for basic network config, edit /etc/config/network: + +# Copyright (C) 2006 OpenWrt.org + +config interface loopback + option ifname lo + option proto static + option ipaddr 127.0.0.1 + option netmask 255.0.0.0 + +config interface wan + option ifname eth0 + option proto dhcp + +config interface lan + option ifname eth1 + option type bridge + option proto static + option ipaddr 192.168.5.1 + option netmask 255.255.255.0 + +edit /etc/resolve.conf and add 8.8.8.8 (google) (or, just start dnsmasq?) + +edit /etc/opkg.conf, change fetch patch to x86_generic (not x86) + +then scp over all built .ipkgs, install build-essential (which means gcc, make, +binutils, patch, diffutils). + +Add /usr/local/bin to PATH: + + #.profile: PATH=$PATH:/usr/local/bin; export PATH + source ~/.profile + +copy crap over: + scp ./staging_dir/toolchain-i386_gcc-4.1.2_uClibc-0.9.30.1/lib/uclibc_nonshared.a root@192.168.5.1: + mv ~/uclibc_nonshared.a /usr/lib/ + ##### Recompiling openwrt kernel for LXC support To enable gcc et al in OpenWRT backfire: @@ -86,7 +135,7 @@ Kernel flags (also network setup): LXC userspace tools: http://lxc.sourceforge.net/download/lxc/ -So... +So... this is all with backfire 10.03.1, kernel 2.6.32 or so in menuconfig, disable binary stripping (under global build settings). @@ -96,6 +145,42 @@ save and do: back in menuconfig, select devel/build-essentials as built-in (so don't need to do package install). +enable AHCI SATA support in kernel menu + +ended up just appending in kernel flags from above link to x86 kernel +configuration file. + +if you get errors making, try going single threaded. + +may need to apply this patch: + https://dev.openwrt.org/ticket/8646 + (apply to ./toolchain/gcc/patches/4.1.2/300-libstdc++-pic.patch) + +### Recompiling OpenWRT Attitude Adjustment for Soekris net6501 w/LXC + +make sure packages actually get updated and installed correctly + +disable stripping + +enable a bunch of stuff in menuconfig, including SATA support + +select gcc 4.7 (not some random "linaro 4.6" crap) + +if compiling build-essentials, might need: + + + bnewbold@ziggy:~/code/openwrt_trunk$ cat /home/bnewbold/code/openwrt_trunk/toolchain/gcc/patches/4.7.0/209-automake-bullshit.patch + --- a/config/override.m4 + +++ b/config/override.m4 + @@ -29,7 +29,7 @@ + + dnl Ensure exactly this Autoconf version is used + m4_ifndef([_GCC_AUTOCONF_VERSION], + - [m4_define([_GCC_AUTOCONF_VERSION], [2.64])]) + + [m4_define([_GCC_AUTOCONF_VERSION], [2.68])]) + + dnl Test for the exact version when AC_INIT is expanded. + dnl This allows to update the tree in steps (for testing) ### Debian @@ -379,7 +464,26 @@ http://www.macfreek.nl/memory/FreeBSD_9_on_Soekris_net6501 http://blog.vx.sk/archives/22-Tutorial-Debian-GNUkFreeBSD-in-a-FreeBSD-jail.html -### Random links - "m0n0deb" and how monowall got small: http://www.docunext.com/blog/2007/07/m0n0deb.html + +### LXC package notes + +edited package/lxc/Makefile + +did package update/install on just lxc + +### ERRORS (for reference) + +gcc wanted GMP? + +i486-openwrt-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I../../src -I/home/bnewbold/code/openwrt_trunk/staging_dir/target-i386_uClibc-0.9.33.2/usr/include -I/home/bnewbold/code/openwrt_trunk/staging_dir/target-i386_uClibc-0.9.33.2/include -I/home/bnewbold/code/openwrt_trunk/staging_dir/toolchain-i386_gcc-4.7.0_uClibc-0.9.33.2/usr/include -I/home/bnewbold/code/openwrt_trunk/staging_dir/toolchain-i386_gcc-4.7.0_uClibc-0.9.33.2/include -fPIC -DPIC -I../../src -O2 -pipe -march=i486 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -MT liblxc_so-utmp.o -MD -MP -MF .deps/liblxc_so-utmp.Tpo -c -o liblxc_so-utmp.o `test -f 'utmp.c' || echo './'`utmp.c +utmp.c:41:19: fatal error: utmpx.h: No such file or directory +compilation terminated. + + +====== +attr makefile and patch +lxc makefile +install perl, file, vim +debootstrap --arch=i386 wheezy /lxc/debian/ http://ftp.us.debian.org/debian diff --git a/software/debian.page b/software/debian.page index ba49a33..8b32dfd 100644 --- a/software/debian.page +++ b/software/debian.page @@ -52,6 +52,8 @@ Some gotchas from installing debian a few times: * To change time zone: ``sudo dpkg-reconfigure tzdata`` + * Might want oss-comapt for, eg, baudline? + Debian Package Tools ------------------------------ ``dkpg -S somefile`` shows what packages a given file were installed by. ``dpkg diff --git a/software/golang.page b/software/golang.page index 5104428..729b6e5 100644 --- a/software/golang.page +++ b/software/golang.page @@ -19,6 +19,7 @@ listed on the golang.org front page: - [Network Programming with Go](http://jan.newmarch.name/go/) (unread) - [http://go-lang.cat-v.org/] +- [Dr Dobbs tutorial](http://www.drdobbs.com/open-source/go-tutorial-object-orientation-and-gos-s/240005402) Other Resources ------------------ diff --git a/software/misc.page b/software/misc.page index 7429061..9639437 100644 --- a/software/misc.page +++ b/software/misc.page @@ -177,3 +177,10 @@ Forms) plugin. allows remote import of data via HTTP API call (cached) or file upload (eg, XML, csv). +"The djb Way" +-------------- +[Dan Bernstein](http://cr.yp.to/djb.html) writes a lot of network daemons in a +unique style. Eg, daemontools, ucspi-tcp, djbdns, qmail, and publicfile. + +- [The djb way](http://thedjbway.b0llix.net/readme.html) + |