Developing lightweight computation at the DSG edge

HOWTO 3.82 KB
Newer Older
hitz's avatar
hitz committed
1
## Creating files and directories
2

Axel Neumann's avatar
Axel Neumann committed
3
mkdir -p 13f # or however you want to name your working directory
4
5
cd 13f

hitz's avatar
hitz committed
6
git clone ssh://gitosis@qmp.cat:221/qmp.git; cd qmp; git checkout --track origin/autoconfig; cd ..
7
svn co -r 27617 svn://svn.openwrt.org/openwrt/branches/backfire
8
git clone git://gitorious.org/eigennet/packages.git eigennet/packages
9
svn co -r 27617 svn://svn.openwrt.org/openwrt/packages packages
10
11
12

cd backfire
rm -rf feeds/
13
[ ! -d ../../dl ] && mkdir ../../dl # Create download directory if it don't exists.
14
15
ln -s ../../dl # wherever you already have some openwrt downloads...
ln -s ../qmp/files
Axel Neumann's avatar
Axel Neumann committed
16
cp ../qmp/feeds.conf . # to not conflict with example qmp/feeds.conf version which is managed by git
17

18
19
#nano feeds.conf  # adapt path to .../13f/packages
cd ..
hakais's avatar
hakais committed
20
sed -i -e "s|PATH|`pwd`|" backfire/feeds.conf
21
22
cd backfire

23
24
25
26

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

hitz's avatar
hitz committed
27
## Configuring system
28
29
make menuconfig
* Target System  (BCM947xxx, x86, atheros,...)
30
* Target Profile (WGT634u, wrap, alix, routerstation,...)
Axel Neumann's avatar
Axel Neumann committed
31
(* Global build-settings -> Compile the kernel with profiling enabled )
32
33
(* Advanced configuration options for developers -> Toolchain options -> Build gdb )
* Base system ->
34
    qmp-big-node # for 8Mbyte flash devices
Axel Neumann's avatar
Axel Neumann committed
35
    qmp-small-node # for 4MByte flash devices STILL TO BIG ?? Needs testing on 4MB flash devices !!!
36

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
41
42
43
HT40 is supported since backfire revision 27441
#### Optional, to have HT40 in IBSS mode: Patching files
## cp ../qmp/patches/004-ibss.patch package/mac80211/patches/
## cp ../qmp/patches/002-ibss_ht40.patch package/iw/patches/
44
## patch -p1 -i ../qmp/patches/mac80211.sh_ht40.patch package/mac80211/files/lib/wifi/mac80211.sh
45
## rm package/mac80211/patches/542-mac80211_enable_iftype_wds_aggregation.patch
hitz's avatar
hitz committed
46

hitz's avatar
hitz committed
47
## Kernel configuration
Axel Neumann's avatar
Axel Neumann committed
48
# sometimes you have to run make (build backfire with default kernel) once before you can continue with make kernel_menuconfig
49
make kernel_menuconfig
hitz's avatar
hitz committed
50
(* File systems -> Dnotify support && Inotify file change notification support && Inotify support for userspace )
Axel Neumann's avatar
Axel Neumann committed
51
(* General setup -> Configure standard kernel features (for small systems) -> Enable ELF core dumps )
52

hitz's avatar
hitz committed
53
## Compiling
Axel Neumann's avatar
Axel Neumann committed
54
time make V=99
55

hitz's avatar
hitz committed
56
#### INSTALL ####
57

Axel Neumann's avatar
Axel Neumann committed
58
## wgt634u: (tested)
59
60
61
62
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

63
64
65
66
67
68
## 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

69
70
71
## PC-Engines WRAP board: (tested backfire rev 27441)
sudo dd if=bin/x86/openwrt-x86-generic-combined-squashfs.img of=/dev/sdX

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

hitz's avatar
hitz committed
75
76
77
78
79
## routerstation:
tftp 192.168.1.20
 mode octet
 trace on
 put openwrt*ubnt*.bin
80
81


82
## Routerstation PRO: (tested backfire rev 27441)
Axel Neumann's avatar
Axel Neumann committed
83
84
85
86
87
88
89
http://wiki.openwrt.org/toh/ubiquiti/routerstation.pro
apt-get install tftp-hpa
# screen -S serial115200 /dev/ttyUSB0 115200 # connect with usb-serial + female-female adapter straight to rspro
ifconfig eth2 192.168.1.1
ping 192.168.1.20 # in another shell
press rspro reset button (for some seconds) while connecting power! Once ping replies do:
tftp 192.168.1.20 -m binary -c put openwrt-ar71xx-ubnt-rspro-squashfs-factory.bin
90
or flashing from inside:
91
sysupgrade -n /tmp/openwrt-ar71xx-ubnt-rspro-squashfs-sysupgrade.bin
92

Axel Neumann's avatar
Axel Neumann committed
93
94
95
96
97





98
#### POSTCONFIGURE:
Axel Neumann's avatar
Axel Neumann committed
99
100
101
102
103

after a second reboot (better wait a while) the system should be autoconfigured

ssh root@192.168.1.1

104
to enforce a reconfiguration remove /qmp_configured
Axel Neumann's avatar
Axel Neumann committed
105
106
107
108
109

TODO: Which further options exist here???