summaryrefslogtreecommitdiffstats
path: root/electronics
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2012-08-16 14:40:47 -0400
committerbnewbold <bnewbold@robocracy.org>2012-08-16 14:40:47 -0400
commit12d3300eee92b06a6c4c83ddc21ded4c07fa85db (patch)
tree7a4f5250d3de577ed47b7ad5cefecb4b7428903a /electronics
parent2ce2d07a7e1d824fa7cdef397028fd348ad84661 (diff)
downloadknowledge-12d3300eee92b06a6c4c83ddc21ded4c07fa85db.tar.gz
knowledge-12d3300eee92b06a6c4c83ddc21ded4c07fa85db.zip
minor notes
Diffstat (limited to 'electronics')
-rw-r--r--electronics/soekris.page114
1 files changed, 109 insertions, 5 deletions
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