Installing OpenWrt on O2 Box 6431 (Arkadyan VGV7510KW22)

I followed the instruction by @Limer found here: Installing LEDE/u-boot via brnboot web interface (without rs232) (thank you!), but I'm stumped right at the end.

  1. Install OpenWrt via brnboot's recover web interface .
  1. Press and hold the reset button while ...
  2. Open http://192.168.1.1/ , select Firmware as target and choose the brn build .
  3. Press apply and wait ~6 minutes ...
  4. After cycling the power of the router and giving it time to boot OpenWrt should be installed and usable , but if you want up to ~9 MiB free flash space you still need to get rid of the rest of the original firmware.

Done. I do need all the free space I can, since I'm trying to set up Asterisk, so I went ahead.

  1. Backup the boot_parms / board_config MTD partition.
  1. SSH into the running OpenWrt.
  2. Identify the 128KiB MTD partition ...
  3. Copy that MTD partition: dd if=/dev/mtd? of=/tmp/board_config.dump ...
  4. Get that file into your working directory ...
  5. This is the perfect opportunity to make backups of the other remaining original partitions ...

Done, including backing up all original partitions.

  1. Create a 16MiB firmware image for a full flash just for your router (*).
  1. Copy u-boot: ...
  2. Integrate your oWRT nor image ...
  3. Finish the image with the board_config (at 0xfe0000 ) and verify it's size (exactly 16 MiB = 16777216 Byte): ...
  4. Optional step - Add a 128KiB (131.072 byte) non-empty uboot environment with correct CRC ...

Done, without the optional step at 4.

  1. Flash cImage.bin on your router via brnboot's hidden recover web interface similar to 1. - just select " Master " instead of Firmware or Bootloader .

That's where I'm stuck. When I bring up the recover web interface by pressing reset etc., I only have the choices Firmware and Bootloader - not Master.

So I have a working OpenWrt on the o2box now, but I don't know how to recover the extra space.

What should I do?

you should open http://192.168.1.1/undoc_upgrade.stm instead of just http://192.168.1.1/ - it's in the original link. Maybe a bit obscure for the reader but still :wink:
That's the only thing I can think of right now that you might have missed.

You're welcome (even more so when you "like"/"thumbs up" that post :slight_smile:).

Indeed, that was it! I'm really happy, thanks again @Limer!

Now can I safely use LuCI/sysupgrade with my own custom images? I'm going to leave out all largish packages I don't need (such as firewall, dnsmasq etc).

And of course I'll "like" your post. I actually didn't even notice these forums offer that option :slight_smile:

AFAIK yes. In the past I did build a 18.06.x image that didn't just ignore the u-boot environment. Thus I could switch between SMP and noSMP by modifying the kernel args in u-boot from within OpenWRT.
And I was able to just sysupgrade to that image (loosing the configuration of course).

What do you want to use your O2 Box for?
There is some work being done to get asterisk working with the POTS ports with SMP.
In it's usual configuration one CPU core is reserved for some kind of blob for asterisk to make the POTS ports usable.

I'd add a u-boot env. either way

HEX code of the default u-boot env.
A6 C9 88 56 61 64 64 63 6F 6E 73 6F 6C 65 3D 73 
65 74 65 6E 76 20 62 6F 6F 74 61 72 67 73 20 24 
62 6F 6F 74 61 72 67 73 20 63 6F 6E 73 6F 6C 65 
3D 24 63 6F 6E 73 6F 6C 65 64 65 76 2C 24 62 61 
75 64 72 61 74 65 00 61 64 64 65 74 68 3D 73 65 
74 65 6E 76 20 62 6F 6F 74 61 72 67 73 20 24 62 
6F 6F 74 61 72 67 73 20 65 74 68 61 64 64 72 3D 
24 65 74 68 61 64 64 72 00 61 64 64 69 70 3D 73 
65 74 65 6E 76 20 62 6F 6F 74 61 72 67 73 20 24 
62 6F 6F 74 61 72 67 73 20 69 70 3D 24 69 70 61 
64 64 72 3A 24 73 65 72 76 65 72 69 70 3A 3A 3A 
3A 24 6E 65 74 64 65 76 3A 6F 66 66 00 61 64 64 
6D 61 63 68 74 79 70 65 3D 73 65 74 65 6E 76 20 
62 6F 6F 74 61 72 67 73 20 24 62 6F 6F 74 61 72 
67 73 20 6D 61 63 68 74 79 70 65 3D 56 47 56 37 
35 31 30 4B 57 32 32 00 62 61 75 64 72 61 74 65 
3D 31 31 35 32 30 30 00 62 6F 6F 74 63 6D 64 3D 
62 6F 6F 74 6D 20 24 7B 6B 65 72 6E 65 6C 5F 61 
64 64 72 7D 00 62 6F 6F 74 64 65 6C 61 79 3D 32 
00 63 6F 6E 73 6F 6C 65 64 65 76 3D 74 74 79 4C 
54 51 31 00 65 74 68 61 64 64 72 3D 30 30 3A 30 
31 3A 30 32 3A 30 33 3A 30 34 3A 30 35 00 69 70 
61 64 64 72 3D 31 39 32 2E 31 36 38 2E 31 2E 31 
00 6B 65 72 6E 65 6C 5F 61 64 64 72 3D 30 78 42 
30 30 38 30 30 30 30 00 6C 6F 61 64 2D 75 62 6F 
6F 74 2D 6E 6F 72 3D 74 66 74 70 62 6F 6F 74 20 
75 2D 62 6F 6F 74 2E 62 69 6E 00 6C 6F 61 64 2D 
75 62 6F 6F 74 2D 6E 6F 72 73 70 6C 3D 74 66 74 
70 62 6F 6F 74 20 75 2D 62 6F 6F 74 2E 6C 74 71 
2E 6E 6F 72 73 70 6C 00 6C 6F 61 64 2D 75 62 6F 
6F 74 2D 6E 6F 72 73 70 6C 2D 6C 7A 6D 61 3D 74 
66 74 70 62 6F 6F 74 20 75 2D 62 6F 6F 74 2E 6C 
74 71 2E 6C 7A 6D 61 2E 6E 6F 72 73 70 6C 00 6C 
6F 61 64 2D 75 62 6F 6F 74 2D 6E 6F 72 73 70 6C 
2D 6C 7A 6F 3D 74 66 74 70 62 6F 6F 74 20 75 2D 
62 6F 6F 74 2E 6C 74 71 2E 6C 7A 6F 2E 6E 6F 72 
73 70 6C 00 6C 6F 61 64 61 64 64 72 3D 30 78 38 
31 30 30 30 30 30 30 00 6E 65 74 64 65 76 3D 65 
74 68 30 00 73 65 72 76 65 72 69 70 3D 31 39 32 
2E 31 36 38 2E 31 2E 32 00 77 72 69 74 65 2D 75 
62 6F 6F 74 2D 6E 6F 72 3D 70 72 6F 74 65 63 74 
20 6F 66 66 20 30 78 42 30 30 30 30 30 30 30 20 
2B 24 66 69 6C 65 73 69 7A 65 20 26 26 20 65 72 
61 73 65 20 30 78 42 30 30 30 30 30 30 30 20 2B 
24 66 69 6C 65 73 69 7A 65 20 26 26 20 63 70 2E 
62 20 24 66 69 6C 65 61 64 64 72 20 30 78 42 30 
30 30 30 30 30 30 20 24 66 69 6C 65 73 69 7A 65 

Ehm, I don't know what SMP is. I have a VoIP phone still unused (waiting for the sip key from my ISP) and several old style telephones I'd like to integrate into a cohesive system, hoping to use asterisk.

So, I'm going to use this box as an asterisk server only. Ideally, all resources on the o2 should be dedicated to that. Routing, firewalling etc. are and will be done on my regular router. That's why I was planning to remove dnsmasq etc. from the o2. I'm not sure if I should move VoIP QoS to the main router too, or keep it on the o2. Any advice is welcome!

The only reason I didn't add the default u-boot env is that I had no clue how to extract it from the original image and inject it into the newly created one. Can I do that with the hex dump you provided?

If you have pointers to the work being done on the asterisk server, please do share. I'm a total newbie at VoIP etc, but I'm willing to learn, with some help from the fine experts here :slight_smile:

By default, ubootenv on the vgv7510kw22 is empty/ invalid, so the baked-in defaults of the uboot binary take over - which is fine for 95% of all users and is definitely fine for your use case.

1 Like