OpenWrt Forum Archive

Topic: The Bullet, Ubiquiti

The content of this topic has been archived on 25 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

anyone tried to install kamikaze on this one?

http://www.ubnt.com/img/products_bullet_diagram.jpg  <-- Click me

anyone playing with this toy yet?

I have a bullet since few days... i'm looking for some information about putting OpenWRT on this lovely device.
Maybe someone has already done this...

Yeah OK now it's done here :-)

It works perfectly with the "openwrt-atheros-ubnt2-squashfs.bin" file, with the TFTP at boot method (pressing the RESET button for ~ 10 sec)

It rocks!

cool !!  hope to see this work merged on the openwrt main tree or is it already here :-)

Edit: just show this.  good news.

(Last edited by acoul on 8 Feb 2009, 14:17)

Any further news on this topic? Is it possible to flash the Bullet 5 with this firm?

i dont have a bullet 5, but try building openwrt, then use the mkfwimage from the ubnt sdk and throw this in a text file...

kernel        0x01    0xBE030000    0x000D0000    0x80010000    0x80010000      openwrt-atheros-vmlinux.lzma
rootfs        0x02    0xBE100000    0x002C0000    0x00000000    0x00000000      openwrt-atheros-root.squashfs

mkfwimage -v XS5.ar2313.Openwrt.xxx -i test.txt -o test5.bin


see if that builds you a working image

also make sure that your rootfs is not to big..for testing, id just leave everything stock except the ip..so you can at least find it if it does work....

Thanks I'll give it a try.
That memory addres os for XS5 right? SO what is the point in remaking the image?

(Last edited by lagosta on 23 Mar 2009, 17:43)

yeh however it looks like the openwrt mkfwimage uses oxbe0e ...difference of 2..but maby thats what the issue is as everything else is the same

Somebody please help, I tried what aliosa27 said and still nothing:

----------------------------------------------------------------------------------------

Build your openwrt images, or download some from the openwrt site

you need openwrt-atheros-root.squashfs and openwrt-atheros-vmlinux.lzma

i dont have a bullet 5, but try building openwrt, then use the mkfwimage from the ubnt sdk and throw this in a text file...

kernel 0x01 0xBE030000 0x000D0000 0x80010000 0x80010000 openwrt-atheros-vmlinux.lzma
rootfs 0x02 0xBE100000 0x002C0000 0x00000000 0x00000000 openwrt-atheros-root.squashfs

mkfwimage -v XS5.ar2313.Openwrt.xxx -i test.txt -o test5.bin
-------------------------------------------------------------------------------------------

I wasn't able to successfully compile my image, it gave me an error like this:
ERROR: Invalid part count '0'
ERROR: Failed validating firmware layout - error code: -1


Can someone tell me what am I doing wrong?

(Last edited by lagosta on 9 Apr 2009, 12:28)

your files are missing ...are they in the same directory your running mkfwimage in

yes, the files are in the same directory as the txt and the mkfwimage executable.
I have even verified the names and they are set correctly.

Well, i think I've managed to create a valid image, the problem was that my descriptor file add the values separated by SPACES and they should be TAB saparated.

Now I uploaded the image to my bullet5 and I can't connect to it anymore. The default ip address is the 192.168.1.1 right?

Hi,

this "text file" worked for me on the bullet5; it's part of the mkfwimage tool from ubnt.com!
cat ../../../mkfwimage-1.2/ls5-openwrt.txt
kernel          0x01    0xBE030000      0x000D0000      0x80041000      0x80041000      openwrt-atheros-2.6-vmlinux.lzma
rootfs          0x02    0xBE100000      0x002C0000      0x00000000      0x00000000      openwrt-atheros-2.6-root.jffs2-64k

-Florian

I'm trying to build some custom images for a Bullet 2.

I have download the Ubnt's SDK but i cannot find the mkfwimage tool. Where it is?

If you downloaded Ubnt SDK you should have the mkfwimage inside the tools folder, but I think you still have to compile it.

But if you want an openWRT image, just download it from SVN and compile it the way you like with 'make menuconfig'.
I'm working with Bullet 5 and Pico5 just fine.

I have already built an opewrt image, but i have not a openwrt-atheros-ubnt2-squashfs.bin file.

As someone mentioned above you need openwrt-atheros-root.squashfs and openwrt-atheros-vmlinux.lzma,  that i have after building the image and the mkfwimage from the ubnt sdk, that i'm asking about.

If you compile the openWRt image and select the proper chip on the menuconfig (I think it is Atheros 231x/5312) you will get an openwrt-atheros-ubnt2-squashfs.bin image ready to tftp to your equipment. You don't need any mkfwimage to do that.

On the menuconfig verify that you have 'Target Images' -> 'squashfs (NEW) ' selected, if not... you will not have the squashfs.bin compiled for you.

(Last edited by lagosta on 7 Feb 2010, 00:08)

That was what i expected.

I select as "Target System" Atheros 231x/5312, "Target Profile" Default and "Target Images" jffs2, squashfs.

The building completes without errors and i have the following files in my bin folder:

-rw-r--r-- 1 strzol users     922 2010-02-07 01:03 md5sums
-rw-r--r-- 1 strzol users 5963776 2010-02-07 01:03 openwrt-atheros-combined.jffs2-128k.img
-rw-r--r-- 1 strzol users 5832704 2010-02-07 01:03 openwrt-atheros-combined.jffs2-64k.img
-rw-r--r-- 1 strzol users 4128768 2010-02-07 01:03 openwrt-atheros-combined.squashfs.img
-rw-r--r-- 1 strzol users 5111808 2010-02-07 01:03 openwrt-atheros-root.jffs2-128k
-rw-r--r-- 1 strzol users 4980736 2010-02-07 01:03 openwrt-atheros-root.jffs2-64k
-rw-r--r-- 1 strzol users 3276800 2010-02-07 01:03 openwrt-atheros-root.squashfs
-rw-r--r-- 1 strzol users 5898648 2010-02-07 01:03 openwrt-atheros-ubnt2-pico2-jffs2-128k.bin
-rw-r--r-- 1 strzol users 5767576 2010-02-07 01:03 openwrt-atheros-ubnt2-pico2-jffs2-64k.bin
-rw-r--r-- 1 strzol users 4063640 2010-02-07 01:03 openwrt-atheros-ubnt2-pico2-squashfs.bin
-rwxr-xr-x 1 strzol users 2315492 2010-02-07 01:03 openwrt-atheros-vmlinux.elf
-rw-r--r-- 1 strzol users 1048576 2010-02-07 01:03 openwrt-atheros-vmlinux.gz
-rw-r--r-- 1 strzol users  786432 2010-02-07 01:03 openwrt-atheros-vmlinux.lzma
drwxr-xr-x 3 strzol users    4096 2010-02-06 20:30 packages

As you can see there is no openwrt-atheros-ubnt2-squasfs.bin

The same happens when i build the image from trunk.

That's why i'm confused.

I have just compiled the new trunk r19541 and the squashfs was compiled with it, I don't know what you are doing wrong.

When you select the "Target System (Atheros AR231x/AR5312)", try to verify that the kernel module for madwifi driver is selected:
'Kernel modules'->'Wireless Drivers'->'kmod-madwifi'- 'Combine driver and net80211 into a single module'.

this is the content I got from my bin/directory:
`-- atheros
    |-- md5sums
    |-- openwrt-atheros-combined.jffs2-128k.img
    |-- openwrt-atheros-combined.jffs2-64k.img
    |-- openwrt-atheros-combined.squashfs.img
    |-- openwrt-atheros-np25g-jffs2-128k.bin
    |-- openwrt-atheros-np25g-jffs2-64k.bin
    |-- openwrt-atheros-np25g-squashfs.bin
    |-- openwrt-atheros-root.jffs2-128k
    |-- openwrt-atheros-root.jffs2-64k
    |-- openwrt-atheros-root.squashfs
    |-- openwrt-atheros-ubnt2-jffs2-128k.bin
    |-- openwrt-atheros-ubnt2-jffs2-64k.bin
    |-- openwrt-atheros-ubnt2-pico2-jffs2-128k.bin
    |-- openwrt-atheros-ubnt2-pico2-jffs2-64k.bin
    |-- openwrt-atheros-ubnt2-pico2-squashfs.bin
    |-- openwrt-atheros-ubnt2-squashfs.bin
    |-- openwrt-atheros-ubnt5-jffs2-128k.bin
    |-- openwrt-atheros-ubnt5-jffs2-64k.bin
    |-- openwrt-atheros-ubnt5-squashfs.bin
    |-- openwrt-atheros-vmlinux.elf
    |-- openwrt-atheros-vmlinux.gz
    |-- openwrt-atheros-vmlinux.lzma
    |-- openwrt-atheros-wpe53g-jffs2-128k.bin
    |-- openwrt-atheros-wpe53g-jffs2-64k.bin
    |-- openwrt-atheros-wpe53g-squashfs.bin
    `-- packages
        |-- Packages
.
.
.
.

I have "cleared" my build environment and recreated the config from start. After the building i have now the necessary file.

It seems that adding extra packages in the building process (with ./scripts/feeds install package) breaks something. The "NEW" label on the squasfs was not visible and appeared after selecting a different target and select the right one again.

Strange....

I'm still missing the np25g, wpe and several jffs files, but openwrt-atheros-ubnt2-squashfs.bin appears now.

(Last edited by baskin on 7 Feb 2010, 16:44)

I did:
./scripts/feeds update packages luci
./scripts/feeds install -a -p luci

with no problems, but ok. Since you have already your image... try it on smile

The discussion might have continued from here.