Diferenças

Esta página mostra as diferenças entre as duas revisões da página.

Links para esta vista de comparação

Próxima revisão
Revisão anterior
routerboard433 [2009/04/12 22:50]
jm Criação deste novo documento.
routerboard433 [2020/09/16 01:35] (Atual)
Linha 1: Linha 1:
 +==== Mikrotik Routerboard 433 ====
 +
 +
 +  * [[http://www.routerboard.com/pricelist.php?showProduct=43|datasheet e software original]]
 +
 +Esta board vem pré-instalada com "MikroTik RouterOS v3, Level4 license".
 +
 +Para passar a correr OpenWRT, é necessário [[routerboard433-kbuild|construir]] um kernel específico para o "Atheros AR7130".
 +
 +O kernel é carregado por tftp, e é necessário um dhcpd para configurar o acesso ao tftp pela board e indicar o kernel.
 +
 +uma dhcpd.conf possível é:
 +
 +<code>
 +subnet 10.0.1.0 netmask 255.255.255.0 {
 +    interface eth0;
 +    range 10.0.1.30 10.0.1.40;
 +    default-lease-time 6000;
 +    max-lease-time 7200;
 +    option subnet-mask 255.255.255.0;
 +    option time-offset -3600;
 +}
 +host routerboard {
 +    hardware ethernet 00:0c:42:FF:FF:FF;
 +    fixed-address 10.0.1.29;
 +    next-server 10.0.1.21;
 +    filename "openwrt-ar71xx-vmlinux-initramfs.elf";
 +    default-lease-time 7200;
 +}
 +</code>
 +
 +Com o dhcpd configurado e o kernel certo acessível por tftp, escolhemos como "boot device" a ethernet. Boot inicial (consola 115200-8N1):
 +
 <code> <code>
 RouterBOOT booter 2.16 RouterBOOT booter 2.16
Linha 11: Linha 44:
 trying bootp protocol.... OK trying bootp protocol.... OK
 Got IP address: 10.0.1.29 Got IP address: 10.0.1.29
-resolved mac address 00:01:80:60:9E:2D+resolved mac address 00:01:80:FF:FF:FF
 transfer started .............................. transfer ok, time=3.29s transfer started .............................. transfer ok, time=3.29s
 setting up elf image... OK setting up elf image... OK
Linha 143: Linha 176:
   * 10 oz lime juice  Salute!   * 10 oz lime juice  Salute!
  ---------------------------------------------------  ---------------------------------------------------
 +root@OpenWrt:/# 
 +</code>
 +=== Carregar OpenWRT para o NAND ===
 +
 +<code>
 +cd /tftpboot
 +wget http://sinesis.unimos.net/ipkg/routerboard/openwrt-ar71xx-rootfs.tgz
 +wget http://sinesis.unimos.net/ipkg/routerboard/openwrt-ar71xx-vmlinux.elf
 +</code>
 +
 +Com o kernel e o arquivo do root filesystem acessiveis por http:
 +
 +<code>
 +root@OpenWrt:/# wget2nand http://10.0.1.21
 +udhcpc (v1.11.3) started
 +Sending discover...
 +Sending select for 10.0.1.29...
 +Lease of 10.0.1.29 obtained, lease time 7200
 +Erasing filesystem...
 +nand_erase: attempt to erase a bad block at page 0x00010f20
 +nand_erase: attempt to erase a bad block at page 0x00019320
 +Mounting /dev/mtdblock2 as new root and /dev/mtdblock1 as kernel partition
 +yaffs: dev is 32505858 name is "mtdblock2"
 +yaffs: passed flags ""
 +yaffs: Attempting MTD mount on 31.2, "mtdblock2"
 +yaffs: auto selecting yaffs1
 +yaffs: block 1913 is marked bad
 +block 1914 is bad
 +yaffs: block 2969 is marked bad
 +block 2970 is bad
 +yaffs_read_super: isCheckpointed 0
 +yaffs: dev is 32505857 name is "mtdblock1"
 +yaffs: passed flags ""
 +yaffs: Attempting MTD mount on 31.1, "mtdblock1"
 +yaffs: auto selecting yaffs1
 +yaffs_read_super: isCheckpointed 0
 +Erasing existing files...
 +rm: cannot remove '/tmp/wget2nand-rootfs/lost+found': Directory not empty
 +Copying filesystem...
 +Connecting to 10.0.1.21 (10.0.1.21:80)
 +-                      0% |                                    --:--:-- ETA./
 +./sys/
 +./tmp/
 +
 +...<snip>...
 +
 +./lib/libcrypt.so.0
 +./root/
 +Connecting to 10.0.1.21 (10.0.1.21:80)
 +kernel               100% |*******************************|  2289k 00:00:00 ETA
 +save exit: isCheckpointed 0
 +save exit: isCheckpointed 0
 +kernel      lost+found
 +bin         jffs        mnt         root        tmp      save exit: isCheckpointed 0
 +   www
 +dev         lib         proc        sbin        usr
 +etc         lost+found  rom         sysave exit: isCheckpointed 0
 +0m         var
 +Image written, you can now reboot.  Remember to change the boot source to Boot from Nand
 root@OpenWrt:/#  root@OpenWrt:/# 
 </code> </code>
Print/export
QR Code
QR Code routerboard433 (generated for current page)