OpenWrt Forum Archive

Topic: Did i destroy my Bootbase bootloader?

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

Just flashed the self compiled image "openwrt-adm5120-p-335wt-squashfs-webui.bin" on my Zyxel P334WT. Used ATUR command in Bootbase bootloader to upload and flash the image.
Now the router starts kamikaze and i am quite happy so far.

Unfortunately i am not able to access the Bootbase commands anymore.
Immediately after Bootbase finished counting the mem, the loader starts the kernel. Before flashing it gave me 5 secs. to hit any key to stop the loading process and access the Bootbase commands.

Bootbase Version: V1.05 | 04/20/2004 10:36:26
RAM: Size=16384 Kbytes
DRAM POST: Testing: 16128K

LZMA loader for ADM5120, Copyright (C) 2007 OpenWrt.org

Looking for TRX header... found at 00020000, kernel:0000001C len:000B1BE4
decompressing kernel... done!
launching kernel...

Linux version 2.6.25.10 (mario@debian) (gcc version 4.1.2) #1 Wed Jul 23 16:14:02 CEST 2008

Anybody an idea how to get this function back? Is it possible to flash a new image from the "running" OpenWRT?

Hi.... I am not an expert on this but, on the wrt devices there is something like bootwait... when is this disable it's hard to reflash the router. On redboot devices there is a simlair setting (don't know the name), but this can be set by fconfig... it set to a small value it's also hard to get into the redboot prompt.

Yes it's possible to reflash a image from a running OPENwrt device, this is done with the mtd command.

Thx.
I tried to flash another image with mtd. All i got was "Failed to erase block on mtd0 at 0x0".
But with that i bricked my router :-(

When i start up, all i get is following:

Bootbase Version: V1.05 | 04/20/2004 10:36:26
RAM: Size=16384 Kbytes
DRAM POST: Testing: 16128K

LZMA loader for ADM5120, Copyright (C) 2007 OpenWrt.org

Looking for TRX header... not found!

System halted!

Do i have to read all about JTAG now? Are there still any other options?

Hi,

Unfortunately i am not able to access the Bootbase commands anymore.
Immediately after Bootbase finished counting the mem, the loader starts the kernel. Before flashing it gave me 5 secs. to hit any key to stop the loading process and access the Bootbase commands.

Nah, the commands were BootExt commands. We replace the BootExt with our lzma loader, so the commands are not available after you flash an OpenWrt image.

Do i have to read all about JTAG now?

While the BootBase is working, you don't have to read it.

Are there still any other options?

Yes, with use of the BootBase's recovery mode (requires a working serial cable).
  - Power off the device.
  - Attach the serial cable.
  - Power on the device.
  - While BootBase performs the memory test, press 'z' to force it to go into
    recovery mode, then it will wait for a new firmware image to be uploaded
    via Xmodem protocol. If you want to speed up the transfer press 'u'
    instead of 'z', thus the BootBase will use 115200 bps instead of its default.
  - Now, you can upload an original firmware (or a new OpenWrt) image.

Regards,
Gabor

Thanks Gabor!
Fixed it and installed new build on my zyxel.

Could someone please explain how did you get to the Bootbase console on your routers without using JTAG cable? As far as I know both P334 and P335 (from your post it is not quite clear which one you used) only have 4 Ethernet ports and 1 WAN port. Did you somehow got to the console only using some of the Ethernet ports? Could you explain in some detail how did you do that? I would also like to replace original firmware from my Zyxel P335U but I'm too lazy to bother with JTAG cables etc.

Best regards and thanks in advance,
Stefan

(Last edited by shtef on 7 Jan 2009, 20:05)

A serial cable is only 3 wires and you can get Nokia cell phone cable for $4 wink  JTAG is more messy and complex.  Be happy only need serial cable.

RoundSparrow, I appreciate your answer but I don't think that you understood the issue here.
Where do you plug in the serial cable when there is no serial port on a device? None of these P334 or P335 devices have a serial port, all they have are Ethernet ports (well P335's have USP port also).

(Last edited by shtef on 7 Jan 2009, 22:30)

No, the serial "port" is typically a group of 4 small pins somewhere on the board, no rs232 connector.

Thanks RoundSparrow, I think I got it. From what I have read on the wiki page for these devices, I thought that J1 header would be the JTAG thingy but I guess I was wrong. So I think I'll try this with some Nokia cables.
I opened my router and took a hi-res picture of this board. Header in question is marked as J2, but I guess that's the same thing, right?

http://img509.imageshack.us/img509/3341/img0564ric2.th.jpg

Do P335 support USB port or even USB hub for USB memory, USB sound card and USB web cam? Was anyone successfully installed Asterisk on P335 devices?

(Last edited by nguyen on 14 Mar 2009, 12:57)

The discussion might have continued from here.