| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| README-3360.txt | 2016-03-03 | 7.4 kB | |
| 3360-9.0.8h0d54.tar.bz2 | 2016-03-03 | 74.0 MB | |
| Totals: 2 Items | 74.1 MB | 0 |
README for building the 3360 images.
The 3360 is built on various different flavors of Linux. The 3360
has been built on Fedora Core 11 and greater and Ubuntu 9.04 and greater.
First build the cross compiler.
1. Get the crosstool-ng package from http://crosstool-ng.org. Get version 1.17.0.
2. Make sure the following tools are installed:
- gcc
- bison
- flex
- gperf
- texinfo
- patch
- gawk
- make
- libtool
- automake
- ncurses-dev
- g++
- expat
- libexpat1-dev
3. Follow the instructions on the home page in building the cross compiler. Pick
mipsel-unknown-linux-uclibc as the sample.
-> ct-ng mipsel-unknown-linux-gnu
To tune the build for the cross compiler, do the following:
-> sudo ct-ng menuconfig
Paths and misc options ---> Do not make Experimental tools
Paths and misc options ---> Change prefix directory to /opt/x-tools/${CT_TARGET}
Toolchain options ---> Tuple's vendor string to gcc4.7.2
Operating System ---> Linux kernel version should be 3.6.3
C compiler ---> gcc version: 4.7.2
C-library ---> C library: uClibc
C-library ---> Config File is at 3360-9.0.8h0d54/vendors/Motopia/ar7/config.uClibc
(note: use the complete path)
Debug Facilities ---> Turn off GDB
Then Exit and save
4. For the next build, update your preferred wgetrc files (/etc/wgetrc,
$HOME/.getrc, ...) by making sure the following is set. This is needed due to a
change in location of uClibc:
check_certificate = off
5. With the configuration set up, now run in the local build directory:
-> sudo ct-ng build
This will download the necessary source packages, build all the tools and place them in a directory
under /opt/x-tools/ with a unique name derived from the target, vendor string, C-library, etc.
The following packages needs to be installed to make a 3360 build.
ccache
bison and flex
g++
xutils-dev
automake
zlib1g-dev
Unpacking the tarball.
1) Untar the tarball,
tar -xjf 3360-9.0.8h0d54.tar.bz2
N.B. If using Ubuntu, make sure /bin/sh points to /bin/bash. (Not /bin/dash)
Finally, to build the respective packages, type the following.
make config # select all the defaults
make linux
make tools
make lib
make user
make modules
make romfs
The last make command will create a directory called romfs in the top level directory. That
directory will contain a linux directory structure with all the compiled objects in their
respective place. The directory structure is as follows:
romfs:
bin boot dev etc lib media proc sbin sys tftpboot tmp usr var
romfs/bin:
ash dmesg getopt ip6tables mkdir ping rm tar
busybox dnsdomainname grep iptables mknod ping6 rmdir tc
cat dnsmasq gunzip iptables-restore more pppoe sed touch
chmod echo gzip iptables-save mount pppoe-relay sh umount
cp egrep hostname kill mv printenv sleep vconfig
c_rehash ez-ipupdate inetd ln ntpclient ps stat wget
date fgrep ip ls pidof pwd sync zcat
romfs/boot:
romfs/dev:
console initctl kmem mem null tty tty0 tty1 ttyS0
romfs/etc:
config.cfg fstab inetd.d passwd protocols services
dhcpd.conf group inittab pfslist rc shells
dhcpd.leases hosts iproute2 pfslist.default resolv.conf TZ
dnsmasq.conf inetd.conf modprobe.conf ppp resolv.dnsmasq udev
romfs/etc/iproute2:
ematch_map rt_dsfield rt_protos rt_realms rt_scopes rt_tables
romfs/etc/udev:
udev.conf
romfs/lib:
ld-linux.so.2 libdl-0.9.30.3.so libresolv-0.9.30.3.so libutil-0.9.30.3.so
ld.so.1 libdl.so.0 libresolv.so.0 libutil.so.0
ld-uClibc-0.9.30.3.so libm-0.9.30.3.so librt-0.9.30.3.so libz.so
ld-uClibc.so.0 libmotopia.so librt.so.0 libz.so.1
libcrypt-0.9.30.3.so libm.so.0 libssl.so libz.so.1.2.3
libcrypto.so libnsl-0.9.30.3.so libssl.so.1.0.0 modules
libcrypto.so.1.0.0 libnsl.so.0 libthread_db-0.9.30.3.so pppd
libcrypt.so.0 libpthread-0.9.30.3.so libthread_db.so.1
libc.so.0 libpthread.so.0 libuClibc-0.9.30.3.so
romfs/lib/modules:
2.6.30.10-motopia
romfs/lib/modules/2.6.30.10-motopia:
kernel modules modules.dep modules.order
romfs/lib/modules/2.6.30.10-motopia/kernel:
drivers fs lib net
romfs/lib/modules/2.6.30.10-motopia/kernel/drivers:
net scsi
romfs/lib/modules/2.6.30.10-motopia/kernel/drivers/net:
bsd_comp.ko cpmac.ko ppp_async.ko ppp_deflate.ko ppp_generic.ko pppoe.ko pppox.ko slhc.ko
romfs/lib/modules/2.6.30.10-motopia/kernel/drivers/scsi:
scsi_wait_scan.ko
romfs/lib/modules/2.6.30.10-motopia/kernel/fs:
lockd nfs
romfs/lib/modules/2.6.30.10-motopia/kernel/fs/lockd:
lockd.ko
romfs/lib/modules/2.6.30.10-motopia/kernel/fs/nfs:
nfs.ko
romfs/lib/modules/2.6.30.10-motopia/kernel/lib:
crc-ccitt.ko zlib_deflate
romfs/lib/modules/2.6.30.10-motopia/kernel/lib/zlib_deflate:
zlib_deflate.ko
romfs/lib/modules/2.6.30.10-motopia/kernel/net:
atm bridge ipv4 ipv6 netfilter sunrpc
romfs/lib/modules/2.6.30.10-motopia/kernel/net/atm:
atm.ko br2684.ko pppoatm.ko
romfs/lib/modules/2.6.30.10-motopia/kernel/net/bridge:
netfilter
romfs/lib/modules/2.6.30.10-motopia/kernel/net/bridge/netfilter:
ebtable_broute.ko
romfs/lib/modules/2.6.30.10-motopia/kernel/net/ipv4:
netfilter
romfs/lib/modules/2.6.30.10-motopia/kernel/net/ipv4/netfilter:
arptable_filter.ko arpt_mangle.ko nf_nat_ftp.ko nf_nat_pptp.ko nf_nat_sip.ko
arp_tables.ko arpt_reply.ko nf_nat_h323.ko nf_nat_proto_gre.ko nf_nat_tftp.ko
romfs/lib/modules/2.6.30.10-motopia/kernel/net/ipv6:
netfilter
romfs/lib/modules/2.6.30.10-motopia/kernel/net/ipv6/netfilter:
ip6table_filter.ko ip6table_raw.ko ip6t_ipv6header.ko ip6t_rt.ko
ip6table_mangle.ko ip6_tables.ko ip6t_LOG.ko nf_conntrack_ipv6.ko
romfs/lib/modules/2.6.30.10-motopia/kernel/net/netfilter:
nf_conntrack_ftp.ko nf_conntrack_proto_esp.ko nf_conntrack_tftp.ko xt_recent.ko xt_VLAN.ko
nf_conntrack_h323.ko nf_conntrack_proto_gre.ko xt_ethproto.ko xt_TCPMSS.ko
nf_conntrack_pptp.ko nf_conntrack_sip.ko xt_length.ko xt_vlan.ko
romfs/lib/modules/2.6.30.10-motopia/kernel/net/sunrpc:
sunrpc.ko
romfs/lib/modules/2.6.30.10-motopia/modules:
motopia portmirror prioritytag
romfs/lib/modules/2.6.30.10-motopia/modules/motopia:
motopia.ko
romfs/lib/modules/2.6.30.10-motopia/modules/portmirror:
portmirror.ko
romfs/lib/modules/2.6.30.10-motopia/modules/prioritytag:
prioritytag.ko
romfs/lib/pppd:
2.4.4
romfs/lib/pppd/2.4.4:
pppoa.so
romfs/media:
romfs/proc:
romfs/sbin:
arp depmod insmod makedevs modprobe rmmod udevd
arptables freeramdisk lsmod modinfo pivot_root udevadm udhcpc
romfs/sys:
romfs/tftpboot:
romfs/usr:
bin sbin
romfs/usr/bin:
[ basename env head logger seq telnet tr uptime
[[ cut expr killall nslookup sort test traceroute wc
arping dirname free length realpath tail tftp traceroute6
romfs/usr/sbin:
chroot pppd telnetd
romfs/var: