annotate AXIS-README @ 316:dc6173e09ff7 ucc-axis-hack

smaller yet again
author Matt Johnston <matt@ucc.asn.au>
date Tue, 28 Mar 2006 16:04:11 +0000
parents 24056a5eb75b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
312
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
1 Running it:
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
2
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
3 For normally (just vfork(), no inetd):
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
4
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
5 ./dropbear -F -E
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
6
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
7 (add -v for verbose). Note that since it's vforking, only one connection
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
8 will reliably work at a time.
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
9
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
10 For inetd-server mode, which will execv() a new dropbear inetd child each time:
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
11
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
12 ./dropbear -x /path/to/dropbear -F -E
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
13
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
14 ---------------------
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
15
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
16 From: Bernard Blackham <[email protected]>
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
17 To: [email protected]
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
18 Subject: [tech] axis building
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
19 Date: Mon, 6 Mar 2006 20:05:15 +0800
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
20 Message-ID: <[email protected]>
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
21
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
22 Notes for archiving... this is what you need to build dropbear 0.47.
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
23
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
24 export PATH=/usr/local/cris:$PATH
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
25 export CFLAGS="-melinux -O3 -s -symbolic -D__uClinux__"
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
26
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
27 ./configure --prefix=/mnt/flash/dropbear --disable-zlib --host=cris
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
28
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
29 make MULTI="1" STATIC="1" PROGRAMS="dropbear dbclient scp"
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
30
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
31 cris-gcc -melinux -s -symbolic -static -o dropbearmulti dbmulti.o atomicio.o
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
32 bignum.o buffer.o circbuffer.o cli-algo.o cli-auth.o cli-authinteract.o
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
33 cli-authpasswd.o cli-authpubkey.o cli-channel.o cli-chansession.o cli-kex.o
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
34 cli-main.o cli-runopts.o cli-service.o cli-session.o cli-tcpfwd.o common-algo.o
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
35 common-channel.o common-chansession.o common-kex.o common-runopts.o
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
36 common-session.o compat.o dbutil.o dss.o fake-rfc2553.o listener.o loginrec.o
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
37 packet.o process-packet.o progressmeter.o queue.o random.o rsa.o scp.o scpmisc.o
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
38 signkey.o sshpty.o svr-agentfwd.o svr-algo.o svr-auth.o svr-authpam.o
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
39 svr-authpasswd.o svr-authpubkey.o svr-chansession.o svr-kex.o svr-main.o
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
40 svr-runopts.o svr-service.o svr-session.o svr-tcpfwd.o svr-x11fwd.o tcp-accept.o
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
41 termcodes.o libtomcrypt/libtomcrypt.a libtommath/libtommath.a -L
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
42 /usr/local/cris/lib/gcc-lib/cris/2.96/elinux/ uccrt/*.o
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
43
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
44 [ paste the multiline cris-gcc command with `xargs` - MSH ]
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
45
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
46 There's custom stuff in uccrt/ which should also be archived
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
47 somewhere.
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
48
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
49 Doesn't work quite yet - needs some hacking to get around a buggy
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
50 libc.
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
51
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
52
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
53 -------------------
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
54
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
55
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
56 Or for just dropbear without multi:
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
57
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
58 make STATIC=1
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
59
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
60 cris-gcc -o dropbear dbutil.o buffer.o dss.o bignum.o signkey.o rsa.o
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
61 random.o queue.o atomicio.o compat.o fake-rfc2553.o common-session.o packet.o
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
62 common-algo.o common-kex.o common-channel.o common-chansession.o termcodes.o
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
63 loginrec.o tcp-accept.o listener.o process-packet.o common-runopts.o
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
64 circbuffer.o svr-kex.o svr-algo.o svr-auth.o sshpty.o svr-authpasswd.o
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
65 svr-authpubkey.o svr-session.o svr-service.o svr-chansession.o svr-runopts.o
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
66 svr-agentfwd.o svr-main.o svr-x11fwd.o svr-tcpfwd.o svr-authpam.o
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
67 libtomcrypt/libtomcrypt.a libtommath/libtommath.a -melinux -s -symbolic
24056a5eb75b serial works better. enable DSS.
matt-ucc@ucc.asn.au
parents:
diff changeset
68 -static -L /usr/local/cris/lib/gcc-lib/cris/2.96/elinux/ uccrt/*.o
316
dc6173e09ff7 smaller yet again
Matt Johnston <matt@ucc.asn.au>
parents: 312
diff changeset
69
dc6173e09ff7 smaller yet again
Matt Johnston <matt@ucc.asn.au>
parents: 312
diff changeset
70
dc6173e09ff7 smaller yet again
Matt Johnston <matt@ucc.asn.au>
parents: 312
diff changeset
71 ---------------
dc6173e09ff7 smaller yet again
Matt Johnston <matt@ucc.asn.au>
parents: 312
diff changeset
72
dc6173e09ff7 smaller yet again
Matt Johnston <matt@ucc.asn.au>
parents: 312
diff changeset
73
dc6173e09ff7 smaller yet again
Matt Johnston <matt@ucc.asn.au>
parents: 312
diff changeset
74 Saner again:
dc6173e09ff7 smaller yet again
Matt Johnston <matt@ucc.asn.au>
parents: 312
diff changeset
75
dc6173e09ff7 smaller yet again
Matt Johnston <matt@ucc.asn.au>
parents: 312
diff changeset
76 Get http://developer.axis.com/download/old/devboard/R1_1_0/devboard-R1_1_0.tgz
dc6173e09ff7 smaller yet again
Matt Johnston <matt@ucc.asn.au>
parents: 312
diff changeset
77 And the cris-dist debian package (we're using 1.16-1).
dc6173e09ff7 smaller yet again
Matt Johnston <matt@ucc.asn.au>
parents: 312
diff changeset
78
dc6173e09ff7 smaller yet again
Matt Johnston <matt@ucc.asn.au>
parents: 312
diff changeset
79 PATH=/usr/local/cris:$PATH
dc6173e09ff7 smaller yet again
Matt Johnston <matt@ucc.asn.au>
parents: 312
diff changeset
80
dc6173e09ff7 smaller yet again
Matt Johnston <matt@ucc.asn.au>
parents: 312
diff changeset
81 Build the axis dev env thing with
dc6173e09ff7 smaller yet again
Matt Johnston <matt@ucc.asn.au>
parents: 312
diff changeset
82 "prefix=/space/axis/matt/R1_1_0-prefix ./install"
dc6173e09ff7 smaller yet again
Matt Johnston <matt@ucc.asn.au>
parents: 312
diff changeset
83
dc6173e09ff7 smaller yet again
Matt Johnston <matt@ucc.asn.au>
parents: 312
diff changeset
84 You'll actually end up with some images which could be flashed, I haven't tried
dc6173e09ff7 smaller yet again
Matt Johnston <matt@ucc.asn.au>
parents: 312
diff changeset
85 them.
dc6173e09ff7 smaller yet again
Matt Johnston <matt@ucc.asn.au>
parents: 312
diff changeset
86
dc6173e09ff7 smaller yet again
Matt Johnston <matt@ucc.asn.au>
parents: 312
diff changeset
87 PATH=/space/axis/matt/devboard-R1_1_0/devboard/tools:$PATH
dc6173e09ff7 smaller yet again
Matt Johnston <matt@ucc.asn.au>
parents: 312
diff changeset
88 (includes /usr/local/cris too)
dc6173e09ff7 smaller yet again
Matt Johnston <matt@ucc.asn.au>
parents: 312
diff changeset
89
dc6173e09ff7 smaller yet again
Matt Johnston <matt@ucc.asn.au>
parents: 312
diff changeset
90 In dropbear dir:
dc6173e09ff7 smaller yet again
Matt Johnston <matt@ucc.asn.au>
parents: 312
diff changeset
91 ./configure CC=gcc_cris CFLAGS="-melinux -muclibc=/space/axis/matt/R1_1_0-prefix -Wall -O2 -DELINUX" --disable-zlib --disable-syslog --host=cris LDFLAGS="-melinux -muclibc=/space/axis/matt/R1_1_0-prefix"
dc6173e09ff7 smaller yet again
Matt Johnston <matt@ucc.asn.au>
parents: 312
diff changeset
92
dc6173e09ff7 smaller yet again
Matt Johnston <matt@ucc.asn.au>
parents: 312
diff changeset
93 make, it should work.
dc6173e09ff7 smaller yet again
Matt Johnston <matt@ucc.asn.au>
parents: 312
diff changeset
94
dc6173e09ff7 smaller yet again
Matt Johnston <matt@ucc.asn.au>
parents: 312
diff changeset
95 If you strip it, it won't work. -Os should work.