Temat: problem - instalacja openwrt na routerboard 411

Witam wszystkich serdecznie,

mam problem odnośnie instalacji openwrt na routerboard 411. Sytuacja wygląda następująco:

-> pracuje pod windows, postawiłem serwer DHCP i TFTPD (-> o taki TFTPD23 (http://tftpd32.jounin.net/), ip serwera 192.168.1.5
-> bootuje RB przez sieć
-> wskazany przeze mnie plik w ustawieniach TFTPD32 ładuje się doskonale i uruchamia mi się OpenWRT
-> terach chcę zainstalować openwrt permanentnie
-> problem jest teraz taki, że chcę wykonać coś takiego:

 scp 192.168.1.5:/nazwapliku.elf /tmp/ 

brak reakcji - tzn nic się nie ściąga (na serwerze też nic się nie dzieje). Ale jak odłączę kabel Ethernet to po jakimś czasie jest komunikat, że kabel został odłączony.  Nie wiem dlaczego sad - nie jestem specem w linuxie, spróbuje postawić jeszcze serwer WWW, oraz użyć funkcji wget2nand, ale nie wiem czy się uda wink dlatego piszę do Was.

Inna sprawa jest taka że mam ubuntu postawionego na wirtualne maszynie i ew. mógłbym spróbować to zrobić z linuxa (z grubsza mam to poustawiane), jednak nie wiem jak (i czy w ogóle się da) sprawić, żeby system wirtualny wychodził na zewnątrz.

Pozdrawiam i z góry dziękuje za odpowiedź.

2

Odp: problem - instalacja openwrt na routerboard 411

Jeżeli jest to domyślny obraz to scp może nie działać. Zaloguj się najpierw przez telnet, ustaw haslo i dopiero zobacz. Chociaż wget2nand będzie chyba lepszym wyjściem.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

3

Odp: problem - instalacja openwrt na routerboard 411

Witam ponownie,

sprawa wygląda tak:

scp - nie działa dalej  - dlaczego nie wiem (może to wina windowsowego serwera TFTPD). Choć jest tak, że jak zmienię hasło za pomocą passwd - i później próbuje podłączyć się za pomocą telnetu to "login failed". Ja łączę się za pomocą kabla RS232.

wget2nand - niby działa, ale wyświetla błąd:

root@OpenWrt:/# wget2nand 192.168.1.5
killall: udhcpc: no process killed
udhcpc: SIOCGIFINDEX: No such device
Erasing filesystem...
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: dev is 32505857 name is "mtdblock1"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.1, "mtdblock1"
yaffs: auto selecting yaffs1
Erasing existing files...
rm: cannot remove '/tmp/wget2nand-rootfs/lost+found': Directory not empty
Copying filesystem...
wget: not an http or ftp url: 192.168.1.5/openwrt-ar71xx-rootfs.tgz
tar: short read
wget: not an http or ftp url: 192.168.1.5/openwrt-ar71xx-vmlinux.elf
chmod: /tmp/wget2nand-kernel/kernel: No such file or directory
/sbin/wget2nand: line 62: cannot create /tmp/wget2nand-rootfs/etc/uci-defaults/s
et_root_permission: nonexistent directory
lost+found
lost+found
save exit: isCheckpointed 0
save exit: isCheckpointed 0
Image written, you can now reboot.  Remember to change the boot source to Boot f
rom Nand

no i w efekcie nic się nie ściąga - na stronie www są pliki ściągnięte ze strony http://downloads.openwrt.org/kamikaze/8.09.1/ar71xx/

to tyle ktoś ma jakieś pomysły - będę wdzięczny

pozdrawiam

4

Odp: problem - instalacja openwrt na routerboard 411

A masz na 192.168.1.5 wystawiony serwer www lub ftp - bo on tego oczekuje. Jak tak to podaj całą sciezkę:

wget2nand http://192.168.1.5

itd.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

5

Odp: problem - instalacja openwrt na routerboard 411

Cezary napisał/a:

A masz na 192.168.1.5 wystawiony serwer www lub ftp - bo on tego oczekuje. Jak tak to podaj całą sciezkę:

wget2nand http://192.168.1.5

itd.

Witam,

na 192.168.1.5 jest serwer www - postawiony na windowsie, jak w przegoladarce napisze http://localhost/ to wyswiatla mi te pliki, ok dzisiaj spróbuje to zrobić po pracy -  i napiszę jak poszło.

6

Odp: problem - instalacja openwrt na routerboard 411

majkelos napisał/a:
Cezary napisał/a:

A masz na 192.168.1.5 wystawiony serwer www lub ftp - bo on tego oczekuje. Jak tak to podaj całą sciezkę:

wget2nand http://192.168.1.5

itd.

Witam,

na 192.168.1.5 jest serwer www - postawiony na windowsie, jak w przegoladarce napisze http://localhost/ to wyswiatla mi te pliki, ok dzisiaj spróbuje to zrobić po pracy -  i napiszę jak poszło.


Witam, problem rozwiązany w skrócie napiszę, dla potomnych jak:

-w windows stawiam serwer dhcp oraz tftpd ( TFTPD32)
-w windows stawiam serwer www (VertrigoServ)
-ustawiam RB na boot over ethernet oraz boot protocol DHCP
-formatuje nand

-w serwerze TFTPD ustawiam plik http://wifi.ozo.com/airo/openwrt/firmwa … tramfs.elf jako ten, ktory ma być zainstalowany

-na serwerze www umieszczam http://downloads.openwrt.org/kamikaze/8 … mlinux.elf oraz http://downloads.openwrt.org/kamikaze/8 … rootfs.tgz

- po udanym logowaniu kernel trafia do mtdblock1:

mount /dev/mtdblock1 /mnt
cd /mnt/
wget http://adres.serwera/openwrt-ar71xx-vmlinux.elf
mv openwrt-ar71xx-vmlinux.elf kernel  #(-> plik musi miec nazwe kernel)
cd /
umount /mnt


-na mtdblock2 trafiają inne pliki:
mount /dev/mtdblock1 /mnt/
cd /mnt/
wget http://adres.serwera/openwrt-ar71xx-rootfs.tgz.gz
gzip -d openwrt-ar71xx-rootfs.tgz.gz
tar xvf openwrt-ar71xx-rootfs.tgz
rm openwrt-ar*
cd /
umount /mnt/
reboot

następnie można przystąpić do konfiguracji routerboarda

pozdrawiam

7 (edytowany przez tipsntrix 2011-03-06 21:37:59)

Odp: problem - instalacja openwrt na routerboard 411

witam, sknfigurowałem tftpd32 ale wywala mi :



3608 Request 2 not processed [06/03 21:33:26.921]
Rcvd BootP Msg for IP 0.0.0.0, Mac 00:0C:42:4D:1B:38 [06/03 21:33:27.015]
Client requested address 0.0.0.112 [06/03 21:33:27.015]
DHCP: proposed address 192.168.1.10 [06/03 21:33:27.015]
3608 Request 2 not processed [06/03 21:33:27.078]
3608 Request 2 not processed [06/03 21:33:27.125]
Rcvd BootP Msg for IP 0.0.0.0, Mac 00:0C:42:4D:1B:38 [06/03 21:33:27.218]
Client requested address 0.0.0.112 [06/03 21:33:27.218]
DHCP: proposed address 192.168.1.10 [06/03 21:33:27.218]
3608 Request 2 not processed [06/03 21:33:27.281]
3608 Request 2 not processed [06/03 21:33:27.328]



rozumie coś ktoś?
pozdr

8

Odp: problem - instalacja openwrt na routerboard 411

Client requested address 0.0.0.112
DHCP: proposed address 192.168.1.10

?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

9 (edytowany przez tipsntrix 2011-03-12 09:06:37)

Odp: problem - instalacja openwrt na routerboard 411

już wiem co było nie tak , nie przestawiłem protokołu bootowania.
Ale teraz natrafiłemna następny problem , a mianowicie nie mam katalogu /dev/mtdblock1

mam takie katalogi w /dev/
root@(none):/# dev/
dev/console             dev/network_throughput  dev/shm/
dev/cpu_dma_latency     dev/null                dev/tty
dev/full                dev/port                dev/ttyS0
dev/kmsg                dev/ptmx                dev/urandom
dev/mem                 dev/pts/                dev/watchdog
dev/network_latency     dev/random              dev/zero
root@(none):/# dev/

tak startuje:

RouterBOOT booter 2.23                     

RouterBoard 411Uruction cache 64

CPU frequency: 300 MHze 32 bytes.           
  Memory size:  32 MB                     

Press any key within 2 seconds to enter setup.......................... failedata cache 32kB,
trying dhcp protocol... OK linesize 32 bytes       
resolved mac address 00:18:8B:A5:10:F8                                     
Gateway: 192.168.1.1                   
transfer started ........................ transfer ok, time=1.89ster 2.23 ErrCtl register=0001f                                   
setting up elf image... OK               

CPU freq
jumping to kernel code90                   
Linux version 2.6.30.5 (alex@motard) (gcc version 4.   
NR_IRQS:56         

                       


RouterBOOT booter 2.23                     

Rout
Determined physical RAM map:

CPU frequency: 300 MHz. 19
memory: 02000000 @ 00000000 (usable)                       
  Memory siz
Initrd not found or empty - disabling initrd within 2 seconds to enter setup..s: 512   
Zone PFN ranges:               
  Normal   0x00000000 -> 0x00002000hcp protocol.......................
Movable zone start PFN for each node                                   
early_node_map[1] active PFN ranges       
MIPS: machine is Generic A
    0: 0x00000000 -> 0x00002000               
..............
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128                     


CPU frequency: 300 MHz                     
  M
Mount-cache hash table entries: 512...................................
net_namespace: 528 bytes                       
NET: Registered protocol family 16                                 
MIPS: machine is Generic AR71xx board.....................................
bio: create slab <bio-0> at 0....                         
NET: Registered protocol family 2                     
Atheros AR7
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
NET: Registered protocol family 1
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
yaffs Sep  1 2009 09:06:39 Installing.
msgmni has been set to 56
alg: No test for lzma (lzma-generic)
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
console handover: boot [early0] -> real [ttyS0]
Atheros AR71xx SPI Controller driver version 0.2.4
Atheros AR71xx hardware watchdog driver version 0.1.0
TCP westwood registered
NET: Registered protocol family 17
Freeing unused kernel memory: 716k freed
- preinit -
Press CTRL-C for failsafe

Please press Enter to activate this console.



nie zakłada mtd1, mtd2 itd

BusyBox v1.14.3 (2009-09-01 08:45:27 EEST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
|       |.-----.-----.-----.|  |  |  |.----.|  |_
|   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
|_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
KAMIKAZE (bleeding edge, r17456) -------------------
  * 10 oz Vodka       Shake well with ice and strain
  * 10 oz Triple sec  mixture into 10 shot glasses.
  * 10 oz lime juice  Salute!
---------------------------------------------------
root@OpenWrt:/#
root@OpenWrt:/#
root@OpenWrt:/#
root@OpenWrt:/#
root@OpenWrt:/# cat /proc/mtd
dev:    size   erasesize  name
root@OpenWrt:/#
root@OpenWrt:/#
root@OpenWrt:/#
root@OpenWrt:/#

10

Odp: problem - instalacja openwrt na routerboard 411

Nie wykrywa Ci flasha. Porzuć to starożytne kamiakaze i zainstaluj backfire lub trunka.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

11

Odp: problem - instalacja openwrt na routerboard 411

skompilowałem wg tego opisu http://blog.vodkamelone.de/archives/148 … RB433.html i wgrałem na rb, wiem że plik w mtdblock1 mam zamienić openwrt-ar71xx-vmlinux.elf na  "kernel" i tak też zrobiłem , natomiast w mtdblock2 nie zmieniamy nazwy?wgrałem tam openwrt-ar71xx-root.squashfs .

mam taki błąd przy starcie:


RouterBOOT booter 2.23

RouterBoard 411U

CPU frequency: 300 MHz
  Memory size:  32 MB

Press any key within 2 seconds to enter setup..
loading kernel from nand... OK
setting up elf image... not an elf header
kernel loading failed

help:)

12

Odp: problem - instalacja openwrt na routerboard 411

Zły kernel - przynajmniej wg niego. W sumie opis masz tutaj: http://wiki.openwrt.org/toh/mikrotik/rb433?s[]=rb433

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

13

Odp: problem - instalacja openwrt na routerboard 411

witam serwus mam routerboard 411 chciałbym zmienić na openwrt po hyper terminalu działa  wykonuje komendy zgodne reszte nie wiem co mam zrobić z tym tftpd  http://wiki.openwrt.org/toh/mikrotik/rb411  nic z tego linka nie pojmuje proszę mnie nakierować jak to zrobić

14

Odp: problem - instalacja openwrt na routerboard 411

Masz opisane krok po kroku - ściągnąć, uruchomić itd. Czego nie wiesz?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

15

Odp: problem - instalacja openwrt na routerboard 411

męczę sie już od wczoraj i nic z tego nie wiem jak zaladowac te pliki przez TFTPD

16

Odp: problem - instalacja openwrt na routerboard 411

Ściągnij plik, skopiuj go do katalogu który wskazałeś w tftp...

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

17

Odp: problem - instalacja openwrt na routerboard 411

heh mam tak zrobione a server interface to mam tylko ip komputera tak ma być ?  nie ładuje nic

18

Odp: problem - instalacja openwrt na routerboard 411

Ip komputera, tak.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

19

Odp: problem - instalacja openwrt na routerboard 411

openwrt-ar71xx-nand-vmlinux-initramfs.elf  openwrt-ar71xx-rootfs.tar.gz  te dwa pliki pobrałem to co tam było botuje sie robie jak pisze ale nie ładuje  nie wiem czemu co ma wgrywać

20

Odp: problem - instalacja openwrt na routerboard 411

Więc pokaż to co RB411 wyświetla podczas startu.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

21

Odp: problem - instalacja openwrt na routerboard 411

w current directory jest załadowany plik service interface ip komputera co mam więcej zrobić ? w tym tftpd  nie bardzo wiem w konsoli hyperterminalu botuje tam nie wyświetla sie z czym ma sie połaczyć

22

Odp: problem - instalacja openwrt na routerboard 411

A wybrałeś w ogóle w menu RB411 żeby się z ethernetu bootował?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

23 (edytowany przez mikros0 2015-05-20 15:47:49)

Odp: problem - instalacja openwrt na routerboard 411

................................................................ failed
kernel loading failed



RouterBOOT booter 2.23

RouterBoard 411

Authorization: Passed
CPU frequency: 300 MHz
  Memory size:  32 MB

Press any key within 2 seconds to enter setup..
trying bootp protocol........................................................................................................................................................................................................... failed
kernel loading failed



RouterBOOT booter 2.23

RouterBoard 411

Authorization: Passed
CPU frequency: 300 MHz
  Memory size:  32 MB

Press any key within 2 seconds to enter setup..
trying bootp protocol........................................................................................................................................................................................................... failed
kernel loading failed



RouterBOOT booter 2.23

RouterBoard 411

Authorization: Passed
CPU frequency: 300 MHz
  Memory size:  32 MB

Press any key within 2 seconds to enter setup..
trying bootp protocol..................

RouterBOOT booter 2.23

RouterBoard 411

Authorization: Passed
CPU frequency: 300 MHz
  Memory size:  32 MB

Press any key within 2 seconds to enter setup

RouterBOOT-2.23
What do you want to configure?
   d - boot delay
   k - boot key
   s - serial console
   o - boot device
   u - cpu mode
   f - cpu frequency
   r - reset booter configuration
   e - format nand
   g - upgrade firmware
   i - board info
   p - boot protocol
   b - booter options
   x - exit setup
your choice: o - boot device

Select boot device:
* e - boot over Ethernet
   n - boot from NAND, if fail then Ethernet
   1 - boot Ethernet once, then NAND
   o - boot from NAND only
   b - boot chosen device
your choice: refresh

Select boot device:
* e - boot over Ethernet
   n - boot from NAND, if fail then Ethernet
   1 - boot Ethernet once, then NAND
   o - boot from NAND only
   b - boot chosen device
your choice: n - boot from NAND, if fail then Ethernet

RouterBOOT-2.23
What do you want to configure?
   d - boot delay
   k - boot key
   s - serial console
   o - boot device
   u - cpu mode
   f - cpu frequency
   r - reset booter configuration
   e - format nand
   g - upgrade firmware
   i - board info
   p - boot protocol
   b - booter options
   x - exit setup
your choice: x - exit setup


writing settings to flash... OK



RouterBOOT booter 2.23

RouterBoard 411

Authorization: Passed
CPU frequency: 300 MHz
  Memory size:  32 MB

Press any key within 2 seconds to enter setup..
loading kernel from nand... OK
setting up elf image... OK
jumping to kernel code
Starting...
Starting services...
MikroTik 5.8
MikroTik Login:

RouterBOOT booter 2.23

RouterBoard 411

Authorization: Passed
CPU frequency: 300 MHz
  Memory size:  32 MB

Press any key within 2 seconds to enter setup

RouterBOOT-2.23
What do you want to configure?
   d - boot delay
   k - boot key
   s - serial console
   o - boot device
   u - cpu mode
   f - cpu frequency
   r - reset booter configuration
   e - format nand
   g - upgrade firmware
   i - board info
   p - boot protocol
   b - booter options
   x - exit setup
your choice: o - boot device

Select boot device:
   e - boot over Ethernet
* n - boot from NAND, if fail then Ethernet
   1 - boot Ethernet once, then NAND
   o - boot from NAND only
   b - boot chosen device
your choice: e - boot over Ethernet

RouterBOOT-2.23
What do you want to configure?
   d - boot delay
   k - boot key
   s - serial console
   o - boot device
   u - cpu mode
   f - cpu frequency
   r - reset booter configuration
   e - format nand
   g - upgrade firmware
   i - board info
   p - boot protocol
   b - booter options
   x - exit setup
your choice: p - boot protocol

Choose which boot protocol to use:
* 1 - bootp protocol
   2 - dhcp protocol
your choice: 2 - dhcp protocol

RouterBOOT-2.23
What do you want to configure?
   d - boot delay
   k - boot key
   s - serial console
   o - boot device
   u - cpu mode
   f - cpu frequency
   r - reset booter configuration
   e - format nand
   g - upgrade firmware
   i - board info
   p - boot protocol
   b - booter options
   x - exit setup
your choice: x - exit setup


writing settings to flash... OK



RouterBOOT booter 2.23

RouterBoard 411

Authorization: Passed
CPU frequency: 300 MHz
  Memory size:  32 MB

Press any key within 2 seconds to enter setup..
trying dhcp protocol... OK
resolved mac address F8:D1:11:05:86:17
Gateway: 192.168.5.1     to ip to mojego serwera nie wiem jak ono sie tu znalazlo tak samo mac adress
*****************************************************************************************************************************************************************************************************************

Choose which boot protocol to use:
* 1 - bootp protocol
   2 - dhcp protocol                              daje już 1 i 2 nic nie pobiera nie ładuje tylko te gwiazdki przechodzą

24

Odp: problem - instalacja openwrt na routerboard 411

"it means that the RB has found the DHCP server on your router. just press the ESCAPE key in the serial console and try again wink"

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

25

Odp: problem - instalacja openwrt na routerboard 411

na sztywno mam ustawione w kompie 192.168.5.116  tak mam  od dawna aa daje esc nic to nie zmienia startuje od poczatku i tyle