Developing lightweight computation at the DSG edge

HOWTO 2.91 KB
Newer Older
1

Axel Neumann's avatar
Axel Neumann committed
2
######## HOWTO:
3
4


Axel Neumann's avatar
Axel Neumann committed
5
#### BUILD:
6

Axel Neumann's avatar
Axel Neumann committed
7
mkdir -p 13f # or however you want to name your working directory
8
9
cd 13f

Axel Neumann's avatar
Axel Neumann committed
10
git clone ssh://gitosis@qmp.cat:221/qmp.git; cd qmp; git checkout --track origin/ipv6-routing-prototype; cd ..
11
12
13
14
15
16
svn co svn://svn.openwrt.org/openwrt/branches/backfire
git clone git://gitorious.org/eigennet/packages.git eigennet/packages


cd backfire
rm -rf feeds/
17
[ ! -d ../../dl ] && mkdir ../../dl # Create download directory if it don't exists.
18
19
20
21
ln -s ../../dl # wherever you already have some openwrt downloads...
ln -s ../qmp/files
ln -s ../qmp/feeds.conf

Axel Neumann's avatar
Axel Neumann committed
22
nano feeds.conf  # adapt path to .../13f/packages
23
24
25
26
27
28
29

./scripts/feeds update -a
./scripts/feeds install -a

make menuconfig
* Target System  (BCM947xxx, x86, atheros,...)
* Target Profile (WGT634u, wrap, alix, routerstation,...) 
Simó Albert i Beltran's avatar
Typo.    
Simó Albert i Beltran committed
30
(* Global build-settings -> Compile the kernel with profiling enabled )
31
32
33
34
35
36
(* Advanced configuration options for developers -> Toolchain options -> Build gdb )
* Base system ->
    qmp-big-node # for 8Mbyte flash devices  
    qmp-small-node # for 4MByte flash devices STILL TO BIG due to ipv6calc!!! Dont TEST
(* LuCI -> Freifunk -> luci-mod-freifunk-community  )

Axel Neumann's avatar
Axel Neumann committed
37
38
39
* remove for 4MByte-flash devices: network -> ppp
* remove for 4MByte-flash devices: network -> ppad-mini

40
make kernel_menuconfig 
41
42
(* General Setup -> Configure standard kernel features (for small systems) -> Enable ELF core dumps )
(* Networking support -> Networking options -> The IPv6 protocol -> IPv6: Multiple Routing Tables )
43

Axel Neumann's avatar
Axel Neumann committed
44
time make V=99
45
46
47



Axel Neumann's avatar
Axel Neumann committed
48
#### INSTALL:
49

Axel Neumann's avatar
Axel Neumann committed
50
## wgt634u: (tested)
51
52
53
54
scp bin/brcm47xx/openwrt-brcm47xx-squashfs.trx root@192.168.1.1:/tmp/
ssh root@192.168.1.1
mtd -r write /tmp/openwrt-brcm47xx-squashfs.trx linux # do not reboot for a while to let filesystem cleanup

55
56
57
58
59
60
61
62
## fonera: (tested)
scp bin/atheros/openwrt-atheros-vmlinux.lzma bin/atheros/openwrt-atheros-root.squashfs root@192.168.1.1:/tmp/
ssh root@192.168.1.1
mtd -e vmlinux.bin.l7 write /tmp/openwrt-atheros-vmlinux.lzma vmlinux.bin.l7
mtd -r -e rootfs write /tmp/openwrt-atheros-root.squashfs rootfs



Axel Neumann's avatar
Axel Neumann committed
63
## alix: (untested)
64
sudo dd if=bin/x86/openwrt-x86-generic-combined-squashfs.img of=/dev/sdX
65
66


67
68
69
70
71
72
73
74
## routerstation: (tested)
ETH="eth0"
ROUTER_IP="192.168.1.20"
BIN_FILE="openwrt-ar71xx-ubnt-rs-squashfs-factory.bin"
sudo ip addr add 192.168.1.254/24 brd 192.168.1.255 dev $ETH
cd bin/ar71xx
echo -e "binary\nrexmt 1\ntimeout 60\ntrace\nput $BIN_FILE\n" | sudo tftp $ROUTER_IP
# Plug the POE and holding down the button of the RouterStation.
75
76
77



Axel Neumann's avatar
Axel Neumann committed
78
#### POSTCONFIGURE:
79
80

ssh root@192.168.1.1
Axel Neumann's avatar
Axel Neumann committed
81

82
vi /etc/config/qmp # adapt to your hardware (only tested for fonera, wgt634u yet!)
Axel Neumann's avatar
Axel Neumann committed
83

84
85
. /etc/qmp_functions.sh

Axel Neumann's avatar
Axel Neumann committed
86
qmp_configure
87
88
89
90
91
92
# or configure individually:
# qmp_configure_network
# qmp_configure_olsr6
# qmp_configure_bmx6
# qmp_configure_system

93
94
95
# Load madwifi before athXk.
mv /etc/modules.d/50-madwifi /etc/modules.d/22-madwifi

96
97
98
99
100
reboot 
# or restart stuff manually:
# /etc/init.d/network restart
# /etc/init.d/olsrd restart
# /etc/init.d/bmx6 restart