Differences

This shows you the differences between two versions of the page.

toh:mikrotik:rb951g_2hnd [2013/04/18 15:03]
toh:mikrotik:rb951g_2hnd [2014/07/01 23:08] (current)
intellijean Error in a filename
Line 1: Line 1:
-====== MikroTik RouterBOARD 951G 2HnD ======+==== MikroTik RouterBOARD 951G 2HnD ====
-===== Bord Layout Images =====+=== TFTP Boot OpenWrt manually ==
 +  - boot the RouterOS Image and connect to one of ports 2-5 
 +  - acquire DHCP IP and telnet to the router (192.168.88.1 for me) user is "admin" password empty (hit enter) 
 +  - Set RouterOS to boot from DHCP once\\ /system routerboard settings set boot-device=try-ethernet-once-then-nand 
 +  - switch to port 1 
 +  - configure and start DHCP and TFTP daemons (dnsmasq see next topic) 
 +  - reboot router (router should download and boot OpenWrt by TFTP) 
 +  - plug your PC to one of ports 2-5 again and ask for DHCP 
 +  - telnet to 192.168.1.1 
 +  - enable SSH by changing root password (run passwd) 
 + 
 +=== manually start dnsmasq as DHCP and TFTP server only === 
 +Give yourself an IP within the range subnet 192.168.1.0/24, then start dnsmasq: 
 + 
 +  dnsmasq -i eth0 --dhcp-range=192.168.1.100,192.168.1.200 \ 
 +  --dhcp-boot=openwrt-ar71xx-nand-vmlinux-initramfs.elf \ 
 +  --enable-tftp --tftp-root=/tftp/ -d -u test -p0 -K --log-dhcp --bootp-dynamic 
 + 
 + 
 +=== Create images for flashing === 
 +  $ mkdir /home/user/mikrotik/ 
 +  $ cd /home/user/mikrotik/ 
 +  $ svn co -r 40867 svn://svn.openwrt.org/openwrt/trunk/ 
 +  $ cd trunk/ 
 +  $ ./scripts/feeds update -a 
 +  $ ./scripts/feeds install luci 
 +  $ make menuconfig 
 +  Subtarget (Mikrotik devices with NAND flash)  --->  (X) Mikrotik devices with NAND flash 
 +  Target Profile (Default Profile (no WiFi)) ---> (X) Default Profile (no WiFi) ----- dont worry, WIFI WORKS OK even if you select this option 
 +  Target Images ---> [*] tar.gz (all other targets deselect) 
 +  Global build settings  ---> [*] Select all packages by default 
 +  exit -> save config 
 +  warning: if you want openvpn, go into Network  ---> VPN  ---> <M> openvpn-openssl 
 +  $ make -j 4 
 + 
 +=== Result images: === 
 +  kernel ----> bin/ar71xx/openwrt-ar71xx-mikrotik-vmlinux-lzma.elf 
 +  rootfs ----> bin/ar71xx/openwrt-ar71xx-mikrotik-DefaultNoWifi-rootfs.tar.gz 
 +   
 +=== SCP images to 192.168.1.1:/tmp === 
 +  $ scp bin/ar71xx/openwrt-ar71xx-mikrotik-vmlinux-lzma.elf root@192.168.1.1:/tmp 
 +  $ scp bin/ar71xx/openwrt-ar71xx-mikrotik-DefaultNoWifi-rootfs.tar.gz root@192.168.1.1:/tmp 
 + 
 +=== Flash kernel & rootfs === 
 +  root@OpenWrt:/# mtd erase /dev/mtd1 
 +  root@OpenWrt:/# mtd erase /dev/mtd2 
 +  root@OpenWrt:/# mkdir /mnt/kernel 
 +  root@OpenWrt:/# mkdir /mnt/rootfs 
 +  root@OpenWrt:/# mount /dev/mtdblock1 /mnt/kernel 
 +  root@OpenWrt:/# mount /dev/mtdblock2 /mnt/rootfs 
 +  root@OpenWrt:/# mv /tmp/openwrt-ar71xx-mikrotik-vmlinux-lzma.elf /mnt/kernel/kernel 
 +  root@OpenWrt:/# chmod +x /mnt/kernel/kernel 
 +  root@OpenWrt:/# umount /mnt/kernel 
 +  root@OpenWrt:/# cd /mnt/rootfs 
 +  root@OpenWrt:/# tar -xvzf /tmp/openwrt-ar71xx-mikrotik-DefaultNoWifi-rootfs.tar.gz 
 +  root@OpenWrt:/# cd / 
 +  root@OpenWrt:/# umount /mnt/rootfs 
 + 
 +reboot and it should boot correctly 
 + 
 +=== Board Layout Images ===
{{:media:rb951g2hnd-01.jpg|}} {{:media:rb951g2hnd-01.jpg|}}
{{:media:rb951g2hnd-02.jpg|}} {{:media:rb951g2hnd-02.jpg|}}
{{:media:rb951g2hnd-03.jpg|}} {{:media:rb951g2hnd-03.jpg|}}

Back to top

toh/mikrotik/rb951g_2hnd.1366290186.txt.bz2 · Last modified: 2013/04/18 15:03 (external edit)