Developing lightweight computation at the DSG edge

HOWTO 2.6 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



63
## alix2d2: (tested)
64
sudo dd if=bin/x86/openwrt-x86-generic-combined-squashfs.img of=/dev/sdX
65
66


Axel Neumann's avatar
Axel Neumann committed
67
## routerstation: (untested) 
68
69
70



Axel Neumann's avatar
Axel Neumann committed
71
#### POSTCONFIGURE:
72
73

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

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

77
78
. /etc/qmp_functions.sh

Axel Neumann's avatar
Axel Neumann committed
79
qmp_configure
80
81
82
83
84
85
# or configure individually:
# qmp_configure_network
# qmp_configure_olsr6
# qmp_configure_bmx6
# qmp_configure_system

86
87
88
# Load madwifi before athXk.
mv /etc/modules.d/50-madwifi /etc/modules.d/22-madwifi

89
90
91
92
93
reboot 
# or restart stuff manually:
# /etc/init.d/network restart
# /etc/init.d/olsrd restart
# /etc/init.d/bmx6 restart