2011年8月30日 星期二

OpenWrt for CNS3XXX

apt-get install subversion build-essential libncurses5-dev zlib1g-dev gawk git ccache gettext libssl-dev xsltproc

./scripts/feeds update -a
./scripts/feeds install -a
make defconfig
make menuconfig
(chose cns3xxx....etc)
make

make V=s

Output in ./bin

bin/
`-- cns3xxx
|-- md5sums
|-- openwrt-cns3xxx-rootfs.tar.gz
|-- openwrt-cns3xxx-uImage
|-- OpenWrt-SDK-cns3xxx-for-Linux-i686-gcc-linaro_uClibc-0.9.32.tar.bz2
|-- OpenWrt-Toolchain-cns3xxx-for-arm_v6k-gcc-linaro_uClibc-0.9.32_eabi.tar.bz2
`-- packages
|-- base-files_79-r28007_cns3xxx.ipk
|-- busybox_1.18.5-1_cns3xxx.ipk
(.............)
|-- iptables_1.4.10-4_cns3xxx.ipk
|-- iptables-mod-conntrack_1.4.10-4_cns3xxx.ipk
|-- iptables-mod-nat_1.4.10-4_cns3xxx.ipk
|-- kernel_2.6.39.2-1_cns3xxx.ipk
|-- kmod-crc-ccitt_2.6.39.2-1_cns3xxx.ipk
(.............)
|-- libc_0.9.32-79_cns3xxx.ipk
|-- libgcc_linaro-79_cns3xxx.ipk
(.............)


./target/linux/cns3xxx/
./target/linux/cns3xxx/config-default
./target/linux/cns3xxx/config-3.8

./build_dir/linux-cns3xxx/
./build_dir/linux-cns3xxx/linux-2.6.39.2

host related: ./build_dir/linux-cns3xxx/host/
kernel related: ./build_dir/linux-cns3xxx/linux-cns3xxx/
userspace application: ./build_dir/linux-cns3xxx/target-arm_v6k_uClibc-0.9.32_eabi/
cross toolchain related: ./build_dir/linux-cns3xxx/toolchain-arm_v6k_gcc-linaro_uClibc-0.9.32_eabi/


./build_dir/target-arm_v6k_uClibc-0.9.32_eabi/OpenWrt-SDK-cns3xxx-for-Linux-i686-gcc-linaro_uClibc-0.9.32/
./toolchain/uClibc/uClibc.config
./toolchain/uClibc/uClibc.config-locale


staging_dir/
Final toolchain is at
staging_dir/toolchain-arm_v6k_gcc-linaro_uClibc-0.9.32_eabi/bin/arm-openwrt-linux-uclibcgnueabi-gcc



OpenWrt
https://openwrt.org/

OpenWrt Wiki
http://wiki.openwrt.org/

[OpenWrt] platforms
https://dev.openwrt.org/wiki/platforms

TOC
[OpenWrt Wiki] Welcome Advanced User!
http://wiki.openwrt.org/doc/howto/user.advanced

[OpenWrt Wiki] Documentation - Developing
http://wiki.openwrt.org/doc/start#developing

[OpenWrt Wiki] Documentation - Technical references
http://wiki.openwrt.org/doc/start#technical.references

[OpenWrt Wiki] Documentation - Building
http://wiki.openwrt.org/doc/start#building


[OpenWrt Wiki] OpenWrt Buildroot – Installation
http://wiki.openwrt.org/doc/howto/buildroot.exigence

[OpenWrt Wiki] Image Generator
http://wiki.openwrt.org/doc/howto/obtain.firmware.generate
If you do not want to download a prebuild image but you do not want to go through the entire compilation process either, the alternative is to use the Image Generator (former called Image Builder). This is an already precompiled OpenWrt build environment suitable to create custom images without compiling anything.


[OpenWrt Wiki] Using the SDK
http://wiki.openwrt.org/doc/howto/obtain.firmware.sdk
The SDK is a relocatable, precompiled OpenWrt toolchain suitable to cross compile single userspace packages for a specific target without compiling the whole system from scratch.


OpenWrt Buildroot
http://downloads.openwrt.org/docs/buildroot-documentation.html

Web Interface Overview - OpenWrt Wiki
http://wiki.openwrt.org/doc/howto/webinterface.overview

沒有留言: