개발

OpenWRT BuildRoot 빌드 방법

▤ RT305x 타겟보드를 기준으로 설명. ■ OpenWRT BuildRoot 다운로드 git clone git://git.openwrt.org/openwrt.git ▷종류 별12.09 branch (Attitude Adjustment)git clone git://git.openwrt.org/12.09/openwrt.gitgit clone git://git.openwrt.org/12.09/packages.git ■ 디렉토리를 이동한다. cd openwrt ■ feeds feeds는 OpenWRT 패키지의 업데이트/다운로드/빌드 스크립트.설정파일 : ./feeds.conf.default 최신버전으로 패키지 목록을 업데이트 한다.’-a’ 는 특정 패키지가 아닌 모든 패키지를 의미한다. ./scripts/feeds update -a./scripts/feeds install -a ■ OpenWRT 나만의 […]

OpenWRT BuildRoot 빌드 방법 더 읽기"

OpenWRT VLAN 설정

■ 가용한 포트와 상태 보기 # swconfig dev rt305x showGlobal attributes:        enable_vlan: 1        alternate_vlan_disable: 0Port 0:        disable: 0        doubletag: 0        untag: 1        led: 5        lan: 1        recv_bad: 0        recv_good: 0        pvid: 1        link: port:0 link:downPort 1:        disable: 0        doubletag: 0        untag: 1        led: 5        lan: 1        recv_bad: 0        recv_good: 21375        pvid: 1        link: port:1 link:up

OpenWRT VLAN 설정 더 읽기"

OpenWRT에 pure-ftpd 설치하기

1. libelf 설치 wget -P /tmp http://192.168.1.2/libelf_0.8.13-1_ramips.ipkopkg install /tmp/libelf_0.8.13-1_ramips.ipk 2. pure-ftpd 설치 wget -P /tmp http://192.168.1.2/pure-ftpd_1.0.32-3_ramips.ipkopkg install /tmp/pure-ftpd_1.0.32-3_ramips.ipk 3. root 패스워드 변경 passwd root이후로는 ssh로만 접속가능 4. /etc/init.d/pure-ftpd restart orpure-ftpd -B 5. /etc/init.d/pure-ftpd enable

OpenWRT에 pure-ftpd 설치하기 더 읽기"

ipTIME N604M

wget http://192.168.1.2/openwrt-ramips-rt305x-rt-g32-b1-squashfs-sysupgrade.bin -P /tmpmtd -r write /tmp/openwrt-ramips-rt305x-rt-g32-b1-squashfs-sysupgrade.bin firmwaresysupgrade -v /tmp/openwrt-ramips-rt305x-rt-g32-b1-squashfs-sysupgrade.bin make image PROFILE=”RTG32B1″ PACKAGES=” \base-files \busybox \dnsmasq \dropbear \firewall \hotplug2 \ip \iptables \iw \kernel \kmod-button-hotplug \kmod-cfg80211 \kmod-crypto-aes \kmod-crypto-arc4 \kmod-crypto-core \kmod-eeprom-93cx6 \kmod-gpio-button-hotplug \kmod-input-core \kmod-input-gpio-keys-polled \kmod-input-polldev \kmod-ipt-conntrack \kmod-ipt-core \kmod-ipt-nat \kmod-ipt-nathelper \kmod-leds-gpio \kmod-lib-crc-ccitt \kmod-lib-crc-itu-t \kmod-mac80211 \kmod-nls-base \kmod-ppp \kmod-pppoe \kmod-pppox \kmod-rt2800-lib \kmod-rt2800-pci \kmod-rt2x00-lib \kmod-rt2x00-pci \kmod-rt2x00-soc \libc \libgcc \libgcrypt \libgpg-error

ipTIME N604M 더 읽기"

TP-Link TL-WR740N

wget http://192.168.1.2/openwrt-ar71xx-generic-tl-wr740n-v4-squashfs-factory.binsysupgrade -v /tmp/openwrt-ar71xx-generic-tl-wr740n-v4-squashfs-factory.bin # origmake image PROFILE=TLWR740 PACKAGES=”base-files busybox dnsmasq dropbear firewall \hotplug2 iptables iw jshn kernel kmod-ath kmod-ath9k kmod-ath9k-common kmod-cfg80211 \kmod-crypto-aes kmod-crypto-arc4 kmod-crypto-core kmod-gpio-button-hotplug \kmod-ipt-conntrack kmod-ipt-core kmod-ipt-nat kmod-ipt-nathelper kmod-leds-gpio \kmod-ledtrig-default-on kmod-ledtrig-netdev kmod-ledtrig-timer -kmod-ledtrig-usbdev kmod-lib-crc-ccitt \kmod-mac80211 kmod-nls-base kmod-ppp kmod-pppoe kmod-pppox -kmod-usb-core -kmod-usb-ohci \-kmod-usb2 kmod-wdt-ath79 libblobmsg-json libc libgcc libip4tc libiwinfo libiwinfo-lua libjson \liblua libnl-tiny libubox

TP-Link TL-WR740N 더 읽기"

OpenWRT StrongSwan IPSec VPN 설정

■ 시험 환경 – OpenBSDWAN IP: 10.10.10.51LAN IP : 192.168.10.254LAN Network : 192.168.10.0/24Test PC : 192.168.10.2 – OpenWRT RouterWAN IP : 10.10.10.250LAN IP : 192.168.1.1LAN Network : 192.168.1.0/24Test PC : 192.168.1.2 ■ OpenWRT Router 설정 ▶ /etc/config/ipsec # /etc/config/ipsecconfig ‘ipsec’  option ‘zone’ ‘vpn’  list listen ” config ‘remote’ ‘acme’  option ‘enabled’ ‘1’  option ‘gateway’ ‘10.10.10.51’ 

OpenWRT StrongSwan IPSec VPN 설정 더 읽기"

OpenWRT Package 제작

OpenWRT SDK 경로 : /home/hasu0707/ar71xx/sdk ■ 준비 작업 $ cd /home/hasu0707/ar71xx/sdk$ make prereq —————————————————————————– ■ /home/hasu0707/ar71xx/sdk/package/hello/src/hello.c—————————————————————————– #include <stdio.h> int main(int argc, char *argv[]){    printf(“Hello, world\n”);     return 0;} —————————————————————————– ■ /home/hasu0707/ar71xx/sdk/package/hello/src/Makefile—————————————————————————– hello : hello.c        ${CC} -o hello hello.cclean :        rm -f hello —————————————————————————– ■ /home/hasu0707/ar71xx/sdk/package/hello/Makefile—————————————————————————– include $(TOPDIR)/rules.mk # Name and release number of this packagePKG_NAME:=helloPKG_RELEASE:=1PKG_VERSION:=0.0.1PKG_CAT:=zcat # This specifies

OpenWRT Package 제작 더 읽기"

OpenWRT Cross Compile

▷ O/S : CentOS 6.5 x86_64▷ 타겟시스템 : ar71xx▷ SDK 디렉토리 : /home/hasu0707/ar71xx/sdk▷ 테스트 파일 : /home/hasu0707/test/hello.c ■ 필요한 라이브러리 설치 sudo yum -y install glibc.i686sudo yum -y install libstdc++.i686 ■ SDK를 다운로드 http://downloads.openwrt.org/ http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/OpenWrt-SDK-ar71xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2.tar.bz2 ■ ~/.bash_profile 편집 (밑에 추가) export STAGING_DIR=/home/hasu0707export TOOLCHAIN_DIR=${STAGING_DIR}/toolchainexport PATH=$PATH:$HOME/bin:${TOOLCHAIN_DIR}/binexport AR=${TOOLCHAIN_DIR}/bin/mipsel-openwrt-linux-uclibc-arexport AS=${TOOLCHAIN_DIR}/bin/mipsel-openwrt-linux-uclibc-asexport LD=${TOOLCHAIN_DIR}/bin/mipsel-openwrt-linux-uclibc-ldexport NM=${TOOLCHAIN_DIR}/bin/mipsel-openwrt-linux-uclibc-nmexport CC=mipsel-openwrt-linux-uclibc-gccexport CPP=mipsel-openwrt-linux-uclibc-cppexport GCC=mipsel-openwrt-linux-uclibc-gccexport CXX=mipsel-openwrt-linux-uclibc-g++export RANLIB=mipsel-openwrt-linux-uclibc-ranlibexport LDFLAGS=”-static”export CFLAGS=”-Os

OpenWRT Cross Compile 더 읽기"

타이머 표시 예제

<!DOCTYPE html PUBLIC “-//W3C//DTD HTML 4.01//EN” “http://www.w3.org/TR/html4/strict.dtd”><html><head>    <meta content=”text/html; charset=EUC-KR” http-equiv=”content-type”>    <title>TEST</title></head> <body>    <div>남은시간:</div>    <div id=”timer_msg”></div></body></html> <script language=”javascript”>    <!–    /* lifetime을 수정하여 최초 남은시간을 정의 */    var lifetime = 60;    var hour, min, sec;     /* 초단위 시간을 시/분/초로 분리하여 계산 */    function calc_time() {        hour = Math.floor(lifetime / 3600);        min = Math.floor(lifetime / 60

타이머 표시 예제 더 읽기"

개발자를 위한 FireFox 설치 후 필수 추가도구

1. Firebug 제작자 : Joe Hewitt, Jan Odvarko, robcee, FirebugWorkingGroup 파이어버그(FireBug)는 파이어폭스 확장 모듈로 jQuery개발에 꼭 필요한 도구이다. https://getfirebug.com/ 2. Web Developer 제작자 : Chris Pederick 파이어버그의 DOM 인스펙터 기능뿐만 아니라, 쿠키 조작, 폼 상세검사, 페이지 크기 조정 등 다양한 작업들을 지원하는 도구들을 포함하고 있다. 이 툴바를 사용하여 손쉽게 자바스크립트를 비활성화시켜, 사용자 브라우저가 자바스크립트를 지원하지

개발자를 위한 FireFox 설치 후 필수 추가도구 더 읽기"

[LU2300] 한방 스크립트

원문링크 : http://hasu0707.tistory.com/471 이 스크립트는 한방설치를 좋아하시는 분들을 위한 스크립트 입니다. 커펌, 테마, lib, 기본어플추가/업글, 불필요한 기본어플 정리, 각종 소리 추가 등의 작업을 배치작업으로 한번에 할 수 있습니다. 단, 가능한 디폴트 상태가 좋으며, 주의하실 점은 루팅이 반드시 되어 있어야 합니다. 아래는 현재 이 스크립트 자료에 디폴트로 들어있는 커널/테마 및 참조한 내용 입니다. ■ PlaRis님의 MIUI

[LU2300] 한방 스크립트 더 읽기"

hasu0707 41R update5 ROM

원글 : http://hasu0707.tistory.com/454 ** 다운로드 링크 : 스카이드라이브 오픈리커버리 이미지 입니다. 서버가 외국이라 조금 느리니 양해 바랍니다. zip으로 분할압축된 hasu0707_41r_update5.z??의 3개의 파일을 다운로드 받으시고 알집이나 winrar 등으로 풀어서 사용하십시요. 이 커펌은 모토글램(XT800) 순정 프로요 41R 펌웨어 기반 입니다. hasu0707_41r_update5.z01 (52,323,328 bytes) hasu0707_41r_update5.z02 (52,323,328 bytes) hasu0707_41r_update5.zip (52,126,617 bytes) 1. 수정내용 update4에서 크게 수정된 것은 없고, 몇가지 오류만 수정하고,

hasu0707 41R update5 ROM 더 읽기"

hasu0707 41R update4 - 개별 설치용 패키지

이 파일은 “hasu0707 41R update4” 커롬을 오픈리커버리를 사용하여 설치하지 않고, 스크립트를 사용하여 직접 설치할 수 있는 설치용 패키지 입니다. 커롬과 마찬가지로 이 패키지도 사용자 영역(어플 및 설정값)은 전혀 건드리지 않습니다. 단, 폰은 루팅이 되어 있어야 하며, 순정 41R 프로요 또는 전 버전이 반드시 설치가 되어 있는 상태여야 합니다. 개별 설치는 원하지 않는 부분은 제거(파일삭제) 하여 선택적으로

hasu0707 41R update4 - 개별 설치용 패키지 더 읽기"

hasu0707 41R update4 ROM

원글 : http://hasu0707.tistory.com/440 ** 다운로드 링크 : 스카이드라이브 오픈리커버리 이미지 입니다. 서버가 외국이라 조금 느리니 양해 바랍니다. zip으로 분할압축된 hasu0707_41r_update4.z??의 3개의 파일을 다운로드 받으시고 알집이나 winrar 등으로 풀어서 사용하십시요. 이 커펌은 모토글램(XT800) 프로요 41R 펌웨어 기반 입니다. hasu0707_41r_update4.z01 (51,904,512 bytes) hasu0707_41r_update4.z02 (51,904,512 bytes) hasu0707_41r_update4.zip (43,069,492 bytes) 1. 수정내용 – 최적화 관련 패치 및 수정 모두 삭제

hasu0707 41R update4 ROM 더 읽기"

hasu0707 41R update3 ROM

** 다운로드 링크 : 스카이드라이브 오픈리커버리 이미지 입니다. 서버가 외국이라 조금 느리니 양해 바랍니다. zip으로 분할압축된 hasu0707_41r_update3.z??의 3개의 파일을 다운로드 받으시고 알집이나 winrar 등으로 풀어서 사용하십시요. 이 커펌은 모토글램(XT800) 프로요 41R 펌웨어 기반 입니다. hasu0707_41r_update3.z01 (51,904,512 bytes) hasu0707_41r_update3.z02 (51,904,512 bytes) hasu0707_41r_update3.zip (40,217,109 bytes) 1. 수정내용 – 상태바 아이콘 일부 변경 – <낭만로드>님의 모토마이져 “한방 최적화” 적용

hasu0707 41R update3 ROM 더 읽기"

위로 스크롤