# \[SOLVED\] RB133 boot issue

**URL:** <https://forum.openwrt.org/t/solved-rb133-boot-issue/14419>\
**Category:** Installing and Using OpenWrt\
**Created:** [May 14, 2018, 7:55pm UTC](https://forum.openwrt.org/t/solved-rb133-boot-issue/14419 "2018-05-14T19:55:59Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![soucevit](https://forum.openwrt.org/letter_avatar/soucevit/32/5_5575768a8748004e209b776fc1b2916d.png) [@soucevit](https://forum.openwrt.org/u/soucevit)\
**Post date:** [May 14, 2018, 7:55pm UTC](https://forum.openwrt.org/t/solved-rb133-boot-issue/14419/1 "2018-05-14T19:55:59Z")

</div>

Hello,

I am new to LEDE/OpenWRT and me and my colegues found it interesting for use in our remote service routers. (Open source, custimizable, more-less HW/wendor independent...)

To start somehow, I took old Routerboard RB133, which is more less useless in todays standards (slow CPU, only 100MBit ports...) to use it as test device to look thru basic options. Nobody cares if it gets bricked, burned, tossed out of thew window in anger, etc in the proces. Later we will switch to something more powerfull.

I started going thru this manual:  
[https://wiki.openwrt.org/toh/mikrotik/rb133](https://wiki.openwrt.org/toh/mikrotik/rb133)  
and while it is missing some info i also looked thru here:  
[https://wiki.openwrt.org/oldwiki/openwrtdocs/hardware/mikrotik/rb100](https://wiki.openwrt.org/oldwiki/openwrtdocs/hardware/mikrotik/rb100)  
and build manual and serching some more in OpenWRT wiki...

And I got stuck.

As I understand I have RB with clean NAND (so RouterOS and Licences are no more) and bootloader works fine, takes DHCP, and boots images downloaded using TFTP. When I load any elf file for ADM5120 I can find in downloads of LEDE or OpenWRT, or even what I have built myself, I get into kernel panic with init missing or reboot loop with I guess similar issue showing for just split seccond before reboot.  
Only difference is, if I try to load intramfs elf file from my built binaries. This ends with kernel too big even before trying to boot it.

Does anybody know, please, how to resolve this and advance to at least bit working system?

Thanks

Vit Soucek

---

<div class="post-metadata">

**Author:** ![soucevit](https://forum.openwrt.org/letter_avatar/soucevit/32/5_5575768a8748004e209b776fc1b2916d.png) [@soucevit](https://forum.openwrt.org/u/soucevit)\
**Post date:** [May 15, 2018, 3:38pm UTC](https://forum.openwrt.org/t/solved-rb133-boot-issue/14419/2 "2018-05-15T15:38:56Z")

</div>

OK, so i searched even more, and i found this:

[https://openwrt.org/docs/techref/targets/adm5120](https://openwrt.org/docs/techref/targets/adm5120)

What means "subtarget marked as broken" ? And how can I use anything that is there on git?  
Does it mean I'm just wasting my time, while OpenWRT will never work with RB133?

Thanks

Vit Soucek

---

<div class="post-metadata">

**Author:** ![soucevit](https://forum.openwrt.org/letter_avatar/soucevit/32/5_5575768a8748004e209b776fc1b2916d.png) [@soucevit](https://forum.openwrt.org/u/soucevit)\
**Post date:** [May 15, 2018, 5:15pm UTC](https://forum.openwrt.org/t/solved-rb133-boot-issue/14419/3 "2018-05-15T17:15:33Z")

</div>

Well I found first mistake and directly get into next one.

First, switching on compression for ramfs helped quite a lot. So i can get into running openwrt from ramdisk.

But it is missing mtd2 and mtd3 blocks. So i am unable to mount and load firmware...

Any thoughts? Anybody?

I guess it is missing something in menuconfig

Thanks

---

<div class="post-metadata">

**Author:** ![lleachii](https://forum.openwrt.org/letter_avatar/lleachii/32/5_5575768a8748004e209b776fc1b2916d.png) [@lleachii](https://forum.openwrt.org/u/lleachii)\
**Post date:** [May 15, 2018, 5:38pm UTC](https://forum.openwrt.org/t/solved-rb133-boot-issue/14419/4 "2018-05-15T17:38:09Z")

</div>

The ELF is read only. The BIN file is used to flash a permanent R/W copy of OpenWRT to the device.

---

<div class="post-metadata">

**Author:** ![tmomas](https://forum.openwrt.org/letter_avatar/tmomas/32/5_5575768a8748004e209b776fc1b2916d.png) [@tmomas](https://forum.openwrt.org/u/tmomas)\
**Post date:** [May 15, 2018, 8:30pm UTC](https://forum.openwrt.org/t/solved-rb133-boot-issue/14419/5 "2018-05-15T20:30:31Z")

</div>

> [@soucevit](#):
>
> What means “subtarget marked as broken” ?

[http://lists.infradead.org/pipermail/lede-dev/2017-February/006345.html](http://lists.infradead.org/pipermail/lede-dev/2017-February/006345.html)  
[https://patchwork.ozlabs.org/patch/728206/](https://patchwork.ozlabs.org/patch/728206/)

---

<div class="post-metadata">

**Author:** ![soucevit](https://forum.openwrt.org/letter_avatar/soucevit/32/5_5575768a8748004e209b776fc1b2916d.png) [@soucevit](https://forum.openwrt.org/u/soucevit)\
**Post date:** [May 16, 2018, 7:36am UTC](https://forum.openwrt.org/t/solved-rb133-boot-issue/14419/6 "2018-05-16T07:36:24Z")

</div>

Ah OK.  
I get the point the RAM is quite the issue, while HW I'd like to play with is quite old, forgotten and obsolete...  
So the way is to take older version, compile it, while pre-compiled elf image one can download does not come with init and then it might work... or I should stop playing with old junk...

---

<div class="post-metadata">

**Author:** ![kofec](https://forum.openwrt.org/user_avatar/forum.openwrt.org/kofec/32/1510_2.png) [@kofec](https://forum.openwrt.org/u/kofec)\
**Post date:** [May 16, 2018, 3:23pm UTC](https://forum.openwrt.org/t/solved-rb133-boot-issue/14419/7 "2018-05-16T15:23:54Z")

</div>

you can compile by yourself removing as much as possible. I have nanostaion working with 16MB ram but only as AP - no iptables no LUCI but with collected for statistics - send to remote server (internal collected functionality from 5.7)

---

<div class="post-metadata">

**Author:** ![soucevit](https://forum.openwrt.org/letter_avatar/soucevit/32/5_5575768a8748004e209b776fc1b2916d.png) [@soucevit](https://forum.openwrt.org/u/soucevit)\
**Post date:** [May 17, 2018, 8:16am UTC](https://forum.openwrt.org/t/solved-rb133-boot-issue/14419/8 "2018-05-17T08:16:08Z")

</div>

Well I'm not sure how much am I able to test on this basic system then. Iptables for example are for sure needed. But whatever If I make it just AP, would be OK for very beginning, just to get in touch with how to make OpenWRT alive.

Anyway, I still have problem making mountable mtd2 and mtd3 blocks in /dev. So I can't load firmware image in anyway...

---

<div class="post-metadata">

**Author:** ![kofec](https://forum.openwrt.org/user_avatar/forum.openwrt.org/kofec/32/1510_2.png) [@kofec](https://forum.openwrt.org/u/kofec)\
**Post date:** [May 17, 2018, 1:28pm UTC](https://forum.openwrt.org/t/solved-rb133-boot-issue/14419/9 "2018-05-17T13:28:32Z")

</div>

So maybe first try older builds:  
[https://archive.openwrt.org/attitude\_adjustment/12.09/adm5120/rb1xx/](https://archive.openwrt.org/attitude_adjustment/12.09/adm5120/rb1xx/)

---

<div class="post-metadata">

**Author:** ![jtaczanowski](https://forum.openwrt.org/user_avatar/forum.openwrt.org/jtaczanowski/32/3409_2.png) [@jtaczanowski](https://forum.openwrt.org/u/jtaczanowski)\
**Post date:** [May 20, 2018, 2:33am UTC](https://forum.openwrt.org/t/solved-rb133-boot-issue/14419/10 "2018-05-20T02:33:14Z")

</div>

Hi 🙂  
A moment ago, I also tried run Openwrt on routerboard 133, with success. I followed instructions on [https://blog.jfmcorp.org/tag/rb133/](https://blog.jfmcorp.org/tag/rb133/) with only one change - I cloned repository with Openwrt version 15.05 [https://github.com/openwrt/chaos\_calmer.git](https://github.com/openwrt/chaos_calmer.git) and builded image

You can build your own image, or download my image which I currently have builded  
[https://taczanowski.net/download/openwrt/rb133/openwrt-adm5120-rb1xx-vmlinux.elf](https://taczanowski.net/download/openwrt/rb133/openwrt-adm5120-rb1xx-vmlinux.elf)  
[https://taczanowski.net/download/openwrt/rb133/openwrt-adm5120-rb1xx-RouterBoard-rootfs.tar.gz](https://taczanowski.net/download/openwrt/rb133/openwrt-adm5120-rb1xx-RouterBoard-rootfs.tar.gz)

> root@OpenWrt:/# uname -a  
> Linux OpenWrt 3.18.98 #1 Sun May 20 04:02:48 CEST 2018 mips GNU/Linux  
> root@OpenWrt:/# dmesg  
> [0.000000] Linux version 3.18.98 (taczanowski@taczanowski) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r49630) ) #1 Sun May 20 04:02:48 CEST 2018  
> [0.000000] bootconsole [early0] enabled  
> [0.000000] CPU0 revision is: 0001800b (MIPS 4Kc)  
> [0.000000] SoC : ADM5120 rev 8, running at 175.000 MHz  
> [0.000000] Bootdev : NAND flash  
> [0.000000] Prom : RouterBOOT  
> [0.000000] Determined physical RAM map:
> 
> [0.084000] MIPS: machine is Mikrotik RouterBOARD 133

Regards

---

<div class="post-metadata">

**Author:** ![jtaczanowski](https://forum.openwrt.org/user_avatar/forum.openwrt.org/jtaczanowski/32/3409_2.png) [@jtaczanowski](https://forum.openwrt.org/u/jtaczanowski)\
**Post date:** [May 20, 2018, 3:54pm UTC](https://forum.openwrt.org/t/solved-rb133-boot-issue/14419/11 "2018-05-20T15:54:14Z")

</div>

Now I tried to build Openwrt 17.01-SNAPSHOT in the same way as the previous image, and this is also working on my rb133 😃

Bellow my image (included Luci, OpenVPN and Strongswan)  
[https://taczanowski.net/download/openwrt/rb133/lede-adm5120-rb1xx-vmlinux.elf](https://taczanowski.net/download/openwrt/rb133/lede-adm5120-rb1xx-vmlinux.elf)  
[https://taczanowski.net/download/openwrt/rb133/lede-adm5120-rb1xx-routerboard-rootfs.tar.gz](https://taczanowski.net/download/openwrt/rb133/lede-adm5120-rb1xx-routerboard-rootfs.tar.gz)  
 ![openwrt_rb133](https://forum.openwrt.org/uploads/default/original/2X/3/302e0eb318ebfd6fb1fb23b7530db5d24b5b196b.png)

---

<div class="post-metadata">

**Author:** ![soucevit](https://forum.openwrt.org/letter_avatar/soucevit/32/5_5575768a8748004e209b776fc1b2916d.png) [@soucevit](https://forum.openwrt.org/u/soucevit)\
**Post date:** [May 21, 2018, 7:58am UTC](https://forum.openwrt.org/t/solved-rb133-boot-issue/14419/12 "2018-05-21T07:58:20Z")

</div>

Wow! Thanks a lot! I will try your images, If we miss some functionalities or have too little space to work with, we will do some modifications.

I'm still wondering what mistakes did I do. I will compare blog you posted with OpenWRT wiki.

Vit Soucek

---

<div class="post-metadata">

**Author:** ![soucevit](https://forum.openwrt.org/letter_avatar/soucevit/32/5_5575768a8748004e209b776fc1b2916d.png) [@soucevit](https://forum.openwrt.org/u/soucevit)\
**Post date:** [May 21, 2018, 8:19am UTC](https://forum.openwrt.org/t/solved-rb133-boot-issue/14419/13 "2018-05-21T08:19:26Z")

</div>

OK So i got a bit overexcited.

Can anyone please supply me working elf image with initramfs?

I'm having trouble building one which has all four mtd blocks in /dev after booting.  
In older builds and bulds supplied by jtaczanowski, there is no init, while these are images to be used as final image and not ad bootable firmware to set everything up.

Thanks

Vit Soucek

---

<div class="post-metadata">

**Author:** ![jtaczanowski](https://forum.openwrt.org/user_avatar/forum.openwrt.org/jtaczanowski/32/3409_2.png) [@jtaczanowski](https://forum.openwrt.org/u/jtaczanowski)\
**Post date:** [May 21, 2018, 10:34am UTC](https://forum.openwrt.org/t/solved-rb133-boot-issue/14419/14 "2018-05-21T10:34:51Z")

</div>

I booted my rb133 from network with old image [http://wifi.ozo.com/airo/openwrt/firmware/kamikaze/2.6/adm5120/latest/openwrt-adm5120-2.6-vmlinux.elf](http://wifi.ozo.com/airo/openwrt/firmware/kamikaze/2.6/adm5120/latest/openwrt-adm5120-2.6-vmlinux.elf)  
From this image I was able to mount /dev/mtdblock2 and /dev/mtdblock3.  
On /dev/mtdblock2 I puted [https://taczanowski.net/download/openwrt/rb133/lede-adm5120-rb1xx-vmlinux.elf](https://taczanowski.net/download/openwrt/rb133/lede-adm5120-rb1xx-vmlinux.elf) as kernel and on /dev/mtdblock3 I extracted [https://taczanowski.net/download/openwrt/rb133/lede-adm5120-rb1xx-routerboard-rootfs.tar.gz](https://taczanowski.net/download/openwrt/rb133/lede-adm5120-rb1xx-routerboard-rootfs.tar.gz)

> mount /dev/mtdblock2 /mnt; cd /mnt
> 
> wget [http://yourserver/kernel](http://yourserver/kernel) ([https://taczanowski.net/download/openwrt/rb133/lede-adm5120-rb1xx-vmlinux.elf](https://taczanowski.net/download/openwrt/rb133/lede-adm5120-rb1xx-vmlinux.elf))
> 
> cd /; umount /mnt; mount /dev/mtdblock3 /mnt; cd /mnt
> 
> wget [http://yourserver/lede-adm5120-rb1xx-routerboard-rootfs.tar.gz](http://yourserver/lede-adm5120-rb1xx-routerboard-rootfs.tar.gz) ([https://taczanowski.net/download/openwrt/rb133/lede-adm5120-rb1xx-routerboard-rootfs.tar.gz](https://taczanowski.net/download/openwrt/rb133/lede-adm5120-rb1xx-routerboard-rootfs.tar.gz))
> 
> gzip -d lede-adm5120-rb1xx-routerboard-rootfs.tar.gz; tar xvf lede-adm5120-rb1xx-routerboard-rootfs.tar; rm lede-adm5120-rb1xx-routerboard-rootfs.tar; cd /; umount /mnt; sync; reboot

After that I was able to boot openwrt 17.01 from nand 🙂

Another good description of this proces is here [https://www.noisebridge.net/wiki/RouterBOARD\_133](https://www.noisebridge.net/wiki/RouterBOARD_133)

---

<div class="post-metadata">

**Author:** ![soucevit](https://forum.openwrt.org/letter_avatar/soucevit/32/5_5575768a8748004e209b776fc1b2916d.png) [@soucevit](https://forum.openwrt.org/u/soucevit)\
**Post date:** [May 21, 2018, 11:36am UTC](https://forum.openwrt.org/t/solved-rb133-boot-issue/14419/15 "2018-05-21T11:36:25Z")

</div>

IT'S ALIVE!

Thanks everybody for support!

---

<div class="post-metadata">

**Author:** ![x15](https://forum.openwrt.org/user_avatar/forum.openwrt.org/x15/32/4589_2.png) [@x15](https://forum.openwrt.org/u/x15)\
**Post date:** [May 25, 2018, 8:48pm UTC](https://forum.openwrt.org/t/solved-rb133-boot-issue/14419/16 "2018-05-25T20:48:50Z")

</div>

Hello Jan,  
can You upload the last working .config?  
My config does not work somehow...

---

<div class="post-metadata">

**Author:** ![jtaczanowski](https://forum.openwrt.org/user_avatar/forum.openwrt.org/jtaczanowski/32/3409_2.png) [@jtaczanowski](https://forum.openwrt.org/u/jtaczanowski)\
**Post date:** [May 26, 2018, 12:06am UTC](https://forum.openwrt.org/t/solved-rb133-boot-issue/14419/17 "2018-05-26T00:06:26Z")

</div>

Hi @x15

This is my config for lede-17.01 shapshot  
[https://taczanowski.net/shared/.config](https://taczanowski.net/shared/.config)  
(only with configured target for rb133 and luci)

I compiled image after switch to lede-17.01 branch:

```
git clone git://github.com/openwrt/openwrt.git
cd openwrt
git checkout origin/lede-17.01
./scripts/feeds update -a
./scripts/feeds install -a
wget https://taczanowski.net/download/openwrt/rb133/.config
make -j 2

```

---

<div class="post-metadata">

**Author:** ![x15](https://forum.openwrt.org/user_avatar/forum.openwrt.org/x15/32/4589_2.png) [@x15](https://forum.openwrt.org/u/x15)\
**Post date:** [May 27, 2018, 4:32pm UTC](https://forum.openwrt.org/t/solved-rb133-boot-issue/14419/18 "2018-05-27T16:32:51Z")

</div>

Hello Jan,

Thank You! I'll test it at Monday.  
I have a 3Com 10/100 LAN card and I'd compile a module for it.

BR,  
Attila.
