Gargoyle Pocket Router v2 on Hornet-UB x2

Report problems and success stories with Gargoyle on various hardware platforms.

Moderator: Moderators

Post Reply
megawut
Posts: 9
Joined: Tue Jul 22, 2014 7:15 am

Gargoyle Pocket Router v2 on Hornet-UB x2

Post by megawut »

hi there,

i understand the hornet-ub x2 is supported by gargoyle(gargoyle pocket router v2), i was wondering if you guys could give me any ideas on how to install this on there as i'm having issues doing so.

I currently have a USB TTL UART used to transfer firmware, and have managed to install the latest trunk of OpenWRT, but when i try the appropriate version of gargoyle, which i believe is "gargoyle pocket router v2", i get Bad Magic Number errors.

Appreciate any help you can give,

thanks in advance.

pbix
Developer
Posts: 1373
Joined: Fri Aug 21, 2009 5:09 pm

Re: Gargoyle Pocket Router v2 on Hornet-UB x2

Post by pbix »

How about giving us something to look at if you really want help? Such as the exact commands you are using and the entire contents of the resulting console so we can see exactly what is happening.

I am looking to see that you correctly transfered the image to your /tmp directory and then used sysupgrade.

This is a technical forum, please provide actual data.
Linksys WRT1900ACv2
Netgear WNDR3700v2
TP Link 1043ND v3
TP-Link TL-WDR3600 v1
Buffalo WZR-HP-G300NH2
WRT54G-TM

megawut
Posts: 9
Joined: Tue Jul 22, 2014 7:15 am

Re: Gargoyle Pocket Router v2 on Hornet-UB x2

Post by megawut »

thank you for replying,
method of transfer is tftp and putty via serial port:

here are the commands i used:

Code: Select all

setenv bootargs "board=ALFA console=ttyATH0,115200 rootfstype=squashfs,jffs2 noinitrd"
tftp 0xa0800000 gargoyle_1.6.2-ar71xx-generic-gargoyle-pocket-router-v2-squashfs-sysupgrade.bin
erase 0x9f050000 +0x790000
cp.b 0xa0800000 0x9f050000 0x790000
results in the log error:

Code: Select all

eth1 up
eth0, eth1
Hit any key to stop autoboot:  0
## Booting image at 9f050000 ...
Bad Magic Number
now if i follow the same steps above using this file "https://downloads.openwrt.org/barrier_b ... pgrade.bin"
everything works fine and OpenWRT barrier breaker is installed nicely.

I also tried another method, once i got OpenWRT installed, SSH into the router then issued these commands and got this error:

Code: Select all

root@OpenWrt:~# cd /tmp
root@OpenWrt:/tmp# wget http://www.gargoyle-router.com/downloads/images/ar71xx/gargoyle_1.6.2-ar71xx-generic-gargoyle-pocket-router-v2-squashfs-sysupgrade.bin
Connecting to www.gargoyle-router.com (69.164.213.4:80)
gargoyle_1.6.2-ar71x 100% |*******************************| 15259k  0:00:00 ETA
root@OpenWrt:/tmp# sysupgrade -v /tmp/gargoyle_1.6.2-ar71xx-generic-gargoyle-pocket-router-v2-squashfs-sysupgrade.bin
Invalid image type.
Image check 'platform_check_image' failed.
I also issued this command:

Code: Select all

mtd -r write /tmp/gargoyle_1.6.2-ar71xx-generic-gargoyle-pocket-router-v2-squashfs-sysupgrade.bin firmware
Which seemed to have forced the firmware update, rebooted the router to get the same "Bad Magic Number"

Let me know if you require more information.

Eric
Site Admin
Posts: 1443
Joined: Sat Jun 14, 2008 1:14 pm

Re: Gargoyle Pocket Router v2 on Hornet-UB x2

Post by Eric »

You've got the file size wrong. The Gargoyle images are bigger than the OpenWRT BB images. Update your cp.b and erase commands to use the full 16M file size that the gargoyle images use.

megawut
Posts: 9
Joined: Tue Jul 22, 2014 7:15 am

Re: Gargoyle Pocket Router v2 on Hornet-UB x2

Post by megawut »

Thanks for the reply, I tried updating the commands to the following:

Code: Select all

erase 0x9f050000 +0xF90000
cp.b 0xa0800000 0x9f050000 0xF90000
allowing for 16318464 bytes(F90000), but i'm still not having any luck and always seem to get the error "Bad Magic Number"
Below is a full log.

Code: Select all

U-Boot 1.1.4 (Jul 24 2013 - 15:16:09)

AP121 (ar9331) U-boot

DRAM:  64 MB
Top of RAM usable for U-Boot at: 84000000
Reserving 149k for U-Boot at: 83fd8000
Reserving 192k for malloc() at: 83fa8000
Reserving 44 Bytes for Board Info at: 83fa7fd4
Reserving 36 Bytes for Global Data at: 83fa7fb0
Reserving 128k for boot params() at: 83f87fb0
Stack Pointer at: 83f87f98
Now running in RAM - U-Boot at: 83fd8000
Flash Manuf Id 0xc2, DeviceId0 0x20, DeviceId1 0x18
flash size 16777216, sector count = 256
Flash: 16 MB
Using default environment

In:    serial
Out:   serial
Err:   serial
Net:   ag7240_enet_initialize...
Fetching MAC Address from 0x83ff0608
Fetching MAC Address from 0x83ff0608
: cfg1 0x5 cfg2 0x7114
eth0: 00:c0:ca:5e:6b:2d
eth0 up
: cfg1 0xf cfg2 0x7214
eth1: 00:c0:ca:5e:6b:2c
athrs26_reg_init_lan
ATHRS26: resetting s26
ATHRS26: s26 reset done
eth1 up
eth0, eth1
Hit any key to stop autoboot:  0
## Booting image at 9f050000 ...
Bad Magic Number
maybe once gargoyle is upgraded to BB this might work as OpenWRT BB seems to work fine with this board, i've spent far too many hours sorting this out and no avail :(

Post Reply