User Tools

Site Tools


toh:mikrotik:rb433

Differences

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

Link to this comparison view

toh:mikrotik:rb433 [2013/01/11 17:58]
toh:mikrotik:rb433 [2014/10/12 13:09] (current)
theoradicus tag phy->nic
Line 2: Line 2:
  
  
-==== Hardware ====+===== Hardware ​=====
  
 RB433 and RB433AH are rather similar boards, except for the microSD slot (RB433AH only), CPU frequency (300 vs. 680 MHz) and RAM size (64 vs. 128 MB). RB433 and RB433AH are rather similar boards, except for the microSD slot (RB433AH only), CPU frequency (300 vs. 680 MHz) and RAM size (64 vs. 128 MB).
 RB433UAH adds USB connector and 5V DCDC to power USB devices to RB433AH. RB433UAH adds USB connector and 5V DCDC to power USB devices to RB433AH.
  
-=== RB433 ===+==== RB433 ====
 [[http://​routerboard.com/​RB433|RB433]] [[http://​routerboard.com/​RB433|RB433]]
 [[http://​routerboard.com/​pdf/​69/​rb433.pdf|Datasheet]] [[http://​routerboard.com/​pdf/​69/​rb433.pdf|Datasheet]]
  
-=== RB433AH ===+==== RB433AH ​====
 [[http://​routerboard.com/​RB433AH|RB433AH]] [[http://​routerboard.com/​RB433AH|RB433AH]]
 [[http://​routerboard.com/​pdf/​73/​rb433ah.pdf|Datasheet]] [[http://​routerboard.com/​pdf/​73/​rb433ah.pdf|Datasheet]]
 +==== RB433UL ====
 +The Routerboard rb433ul ist currently not supportet.
 +This Board has 64MB RAM and the serial console is not supportet by uboot.
 +There are two Resets.
 +Reset 1 (Button) and Reset 2 (Pad).
 +Reset 1 is to reset the RouterOS and for force the netinstall (PXE).
 +Reset 2 is to choice the backup uboot.
 +Some times you must press both.
  
-=== RB433UAH ===+ 
 +==== RB433UAH ​====
 [[http://​routerboard.com/​RB433UAH|RB433UAH]] [[http://​routerboard.com/​RB433UAH|RB433UAH]]
 [[http://​routerboard.com/​pdf/​67/​rb433UAH.pdf|Datasheet]] [[http://​routerboard.com/​pdf/​67/​rb433UAH.pdf|Datasheet]]
Line 22: Line 31:
 Adding unpowered USB to other boards could be easy, just solder in connector or simply wires. Adding unpowered USB to other boards could be easy, just solder in connector or simply wires.
  
-=== MicroSD Slot ===+==== MicroSD Slot ====
 The MicroSD Slot needs SPI-Bus sharing support, which is not implemented in Backfire. The MicroSD Slot needs SPI-Bus sharing support, which is not implemented in Backfire.
  
 SPI-Bus sharing has been implemented in Trunk [[https://​dev.openwrt.org/​changeset/​22862|r22862]] the MicroSD Slot is usable now. SPI-Bus sharing has been implemented in Trunk [[https://​dev.openwrt.org/​changeset/​22862|r22862]] the MicroSD Slot is usable now.
-Read speed ist about 0.92 MB/s (11/13/10: I get I/O and -89 errors on the SPI bus while assessing the microSD card)+Read speed ist about 0.92 MB/s (11/13/10: I get I/O and -89 errors on the SPI bus while assessing the microSD card)
 + 
 + 
 +===== Installation overview ===== 
 + 
 +Here are the three main steps of the installation:​ 
 +  - Boot the board on OpenWrt from the network (netboot): DHCP and TFTP servers required on the host. 
 +  - Install OpenWrt to the internal flash with wget2nand: HTTP or FTP server required on the host. 
 +  - Reboot on the new installation,​ configure, etc. 
  
-==== Netboot ====+===== Netboot ​=====
  
 The bootloader of RB433 is able to load an image in elf format via BOOTP into RAM and execute it. The bootloader of RB433 is able to load an image in elf format via BOOTP into RAM and execute it.
  
-=== Build the Target ===+==== Build the Target ​====
  
 You need to get OpenWrt trunk. In menuconfig choose: You need to get OpenWrt trunk. In menuconfig choose:
-  * Target System: Atheros ​AR71xx/AR7240/AR913x/AR934x +  * Target System: ​//Atheros ​AR7xxx/AR9xxx// 
-  * Subtarget: Devices with NAND flash (mostly Mikrotik) +  * Subtarget: ​//Devices with NAND flash (mostly Mikrotik)// 
-  * Target Images: ramdisk+  * Target Images: ​//ramdisk// (and also //tar.gz// if you plan to do a permanent install with the same image)
  
 Now build the ram disk version. While it's building create the tftp-root directory if not already done and a symlink to the ram disk image Now build the ram disk version. While it's building create the tftp-root directory if not already done and a symlink to the ram disk image
Line 43: Line 61:
 sudo ln -sf $(HOME)/​openwrt/​rb433uah-netboot/​bin/​ar71xx/​openwrt-ar71xx-nand-vmlinux-initramfs.elf /​tftpboot/​openwrt.elf</​code>​ sudo ln -sf $(HOME)/​openwrt/​rb433uah-netboot/​bin/​ar71xx/​openwrt-ar71xx-nand-vmlinux-initramfs.elf /​tftpboot/​openwrt.elf</​code>​
  
-=== Setup the Host ===+==== Setup the Host ====
  
 You need a BOOTP and a TFTP server on your host machine, we use ''​dnsmasq''​ here, since it can provide both services. Install dnsmasq with: You need a BOOTP and a TFTP server on your host machine, we use ''​dnsmasq''​ here, since it can provide both services. Install dnsmasq with:
Line 68: Line 86:
 <​code>​sudo ip addr add 192.168.6.1/​24 dev eth0</​code>​ <​code>​sudo ip addr add 192.168.6.1/​24 dev eth0</​code>​
  
-=== Setup the Target ===+==== Setup the Target ​====
  
   * Connect to the serial port with a null modem cable (115200, 8N1).   * Connect to the serial port with a null modem cable (115200, 8N1).
Line 98: Line 116:
 </​code>​ </​code>​
  
-==== Permanent Installation ==== 
  
-You need a working **netboot** first, see above.+===== Permanent Installation =====
  
-=== Erase the NAND Flash ===+You need a working **netboot** first, see above. Please note also that you **cannot** reflash from a previous OpenWrt installation,​ you need the netboot in any case. 
 + 
 +==== Target Image ==== 
 + 
 +If you want to use the same trunk image as the netboot image (cf. above), you need to have the //tar.gz// target selected in the //Target Images// menu and rebuild if you didn't select it before. You can also use one of the pre-built images (tested with 12.09-rc2); in the download area, browse the ''​ar71xx/​nand/''​ directory and pick the two following files: 
 +  * ''​openwrt-ar71xx-nand-rootfs.tar.gz''​ 
 +  * ''​openwrt-ar71xx-nand-vmlinux-lzma.elf''​ 
 + 
 +If you don't have many devices to install and your netbooted system can access the Internet, you can probably pass the download URL directly to wget2nand as well, that will save you the web server configuration step (see below). 
 + 
 +==== Save your RouterOS license key ==== 
 + 
 +If you have access to the MikroTik'​s Winbox software, you can export the license file from System→Licence,​ as stated on the [[rb411|RouterBoard 411]] page. 
 + 
 +Otherwise, boot RouterOS and export the key to a file: 
 +<​code>/​system license output</​code>​ 
 + 
 +Then list the files on your device to see which file the .key file was saved: 
 +<​code>/​file print</​code>​ 
 + 
 +On a fresh install, the key file should be #1 (or #0 on a RB433UAH); to open the editor with file #1, type: 
 +<​code>/​file edit 1 value-name=contents</​code>​ 
 +Then copy-paste the text in a file on your computer. The differences between the obtained key file and a key exported with Winbox are that the //​SoftwareID//​ line is not present in the latter, and there are no empty lines, so you should probably delete all the empty lines in your file prior to import it for a new installation;​ the //​SoftwareID//​ line should not bother the installer (untested). 
 + 
 +==== Erase the NAND Flash ====
  
 If you want to install OpenWrt permanently into the NAND flash you once need to erase the NAND flash to get rid of the RouterOS stuff: If you want to install OpenWrt permanently into the NAND flash you once need to erase the NAND flash to get rid of the RouterOS stuff:
Line 110: Line 151:
   * press **e** and type **yes** to format the flash from the bootloader   * press **e** and type **yes** to format the flash from the bootloader
  
-=== Setup the Host ===+==== Setup the Host ====
  
 An HTTP web server is required on the host, e.g. mini-httpd in Ubuntu. Install the mini-httpd web server An HTTP web server is required on the host, e.g. mini-httpd in Ubuntu. Install the mini-httpd web server
Line 130: Line 171:
 <​code>​sudo /​etc/​init.d/​mini-httpd restart</​code>​ <​code>​sudo /​etc/​init.d/​mini-httpd restart</​code>​
  
-=== Build the Target === +==== Install OpenWrt into Flash ====
- +
-You need to get OpenWrt trunk. In menuconfig choose: +
- +
-  * Target System: Atheros AR71xx/​AR7240/​AR913x/​AR934x +
-  * Subtarget: Devices with NAND flash (mostly Mikrotik) +
-  * Target Images: +
-    * [*] tar.gz +
-    * [ ] jffs2 +
-    * [*] squashfs +
- +
-Build it. +
- +
-=== Install OpenWrt into Flash ===+
  
   * Start **netboot** (see above).   * Start **netboot** (see above).
Line 155: Line 183:
 The output should look like: The output should look like:
 <​code>​ <​code>​
-root@OpenWrt:/#​ wget2nand http://​192.168.6.1 +root@OpenWrt:/#​ wget2nand http://​192.168.6.254 
-killall: udhcpc: no process killed +Connecting to 192.168.6.254 (192.168.6.254:80) 
-udhcpc (v1.11.3) started +kernel ​              100% |*******************************| ​ 1041k  0:00:00 ETA 
-Sending discover... +Connecting to 192.168.6.254 (192.168.6.254:80) 
-Sending select for 192.168.6.101... +rootfs.tgz ​          100% |*******************************| ​ 4243k  0:00:00 ETA
-Lease of 192.168.6.101 obtained, lease time 3600 +
-adding router ​192.168.6.+
-deleting old routes +
-adding dns 192.168.6.1+
 Erasing filesystem... Erasing filesystem...
-Mounting /​dev/​mtdblock2 as new root and /​dev/​mtdblock1 as kernel partition +[  137.110000] nand_erase_nand:​ attempt to erase a bad block at page 0x00002240 
-yaffs: dev is 32505858 ​name is "mtdblock2+[  137.140000] nand_erase_nand:​ attempt to erase a bad block at page 0x00003ac0 
-yaffs: passed flags ""​ +[  137.180000] nand_erase_nand:​ attempt to erase a bad block at page 0x00005d40 
-yaffs: Attempting MTD mount on 31.2, "​mtdblock2"​ +[  137.620000] nand_erase_nand:​ attempt to erase a bad block at page 0x00026a80 
-yaffs: auto selecting yaffs1 +[  137.850000] nand_erase_nand:​ attempt to erase a bad block at page 0x000373c0 
-yaffs: dev is 32505857 ​name is "mtdblock1+[  137.860000] nand_erase_nand:​ attempt to erase a bad block at page 0x00037440 
-yaffs: passed flags ""​ +[  138.000000] ​yaffs: dev is 32505861 ​name is "mtdblock5" ​rw 
-yaffs: Attempting MTD mount on 31.1, "​mtdblock1"​ +[  138.000000] ​yaffs: passed flags ""​ 
-yaffs: auto selecting yaffs1 +[  138.020000] ​yaffs: dev is 32505862 ​name is "mtdblock6" ​rw 
-Erasing existing files... +[  138.020000] ​yaffs: passed flags ""​ 
-rm: cannot remove '/tmp/wget2nand-rootfs/lost+found':​ Directory not empty +Mounting ​/dev/mtdblock6 as new root and /dev/​mtdblock5 as kernel partition 
-Copying ​filesystem... +Copying ​kernel... 
-Connecting to 192.168.6.1 (192.168.6.1:​80) +Preparing filesystem... 
--                      0% |                               ​| ​    ​0 ​ --:--:-- ETA/ +./
-./jffs/+
 ./tmp/ ./tmp/
 +./usr/
 +./usr/lib/
 +./​usr/​lib/​opkg/​
 +
 +./proc/
 +./sys/
 ./www/ ./www/
-...+./root/ 
 +./var 
 +Cleaning up...
 Image written, you can now reboot. ​ Remember to change the boot source to Boot from Nand Image written, you can now reboot. ​ Remember to change the boot source to Boot from Nand
 </​code>​ </​code>​
  
-  * Power-cycle ​the RB433 and change the boot source to NAND.+  * Reboot ​the RB433 and change the boot source to NAND.
  
-==== Switch setup ==== 
  
-=== Ethernet Jacks ===+===== USB Ports ===== 
 + 
 +To have the USB ports work on the RB433UAH, you need to install the //​kmod-usb2//​ package, as explained on the [[/​doc/​howto/​usb.essentials|USB Basic Support]] page. See also the [[/​doc/​howto/​usb.overview|USB Overview]] page. 
 + 
 + 
 +===== Switch setup ===== 
 + 
 +==== Ethernet Jacks ===
 The ethernet jacks are mapped to port numbers of the IP175C switch (looking at the front of the board): The ethernet jacks are mapped to port numbers of the IP175C switch (looking at the front of the board):
 <​code>​ <​code>​
Line 196: Line 234:
 </​code>​ </​code>​
  
-=== Switch Ports (for VLANs) ===+==== Switch Ports (for VLANs) ​====
  
 ^ Interface ^ Switch port ^ ^ Interface ^ Switch port ^
Line 204: Line 242:
 Port 1 and port 2 are switched in the default config. Port 1 and port 2 are switched in the default config.
  
-==== Useful Links ====+ 
 +===== Useful Links ====
 + 
 +  * [[http://​blog.vodkamelone.de/​archives/​148-Installing-OpenWrt-on-a-Microtik-Routerboard-RB433.html|Installing OpenWrt on a Mikrotik Routerboard RB433]] 
 +  * [[http://​opensource.telkomspeedy.com/​wiki/​index.php/​OpenWRT:​_Mikrotik_RB433|OpenWRT:​ Mikrotik RB433]]
   * [[http://​rb1xx.ozo.com/​doku.php#​netboot_howto|Netboot for RB1xx]]   * [[http://​rb1xx.ozo.com/​doku.php#​netboot_howto|Netboot for RB1xx]]
   * [[http://​inst.eecs.berkeley.edu/​~pathorn/​ip175c/​|phorn'​s patches for IP175C support with kmod-switch and swconfig]]   * [[http://​inst.eecs.berkeley.edu/​~pathorn/​ip175c/​|phorn'​s patches for IP175C support with kmod-switch and swconfig]]
   * [[http://​forum.openwrt.org/​viewtopic.php?​pid=76183|a thread about RB433, IP175C and kmod-switch]]   * [[http://​forum.openwrt.org/​viewtopic.php?​pid=76183|a thread about RB433, IP175C and kmod-switch]]
  
 +
 +
 +===== Tags =====
 +{{tag> FastEthernet 3Port 2NIC PoE USB USB2.0 0USB 2USB Serial MiniPCI 64RAM 128RAM gt32Flash mips ar71xx devBoard}}
toh/mikrotik/rb433.1357923516.txt.bz2 · Last modified: 2013/01/11 17:58 (external edit)