Zyxel NAS542 can't boot

Hello all,

I have from a friend one Zyxel NAS542 which can't boot OS after a OMV installation on it.


After I connect a serial this is the boot load:


uloader 2011.06.0 (May 20 2014 - 16:36:41)

Board: Mindspeed C2000
c2k_spi_probe

Copying Barebox from SPI Flash(bootopt=0)
BB Copying Done
## Starting Barebox at 0x01000000 ...


barebox 2011.06.0-svn44305-dirty6 (Aug 28 2014 - 22:25:22)

Board: Mindspeed C2000
c2k_spi_probe
c2k_otp_probe.
cbus_baseaddr: 9c000000, ddr_baseaddr: 03800000, ddr_phys_baseaddr: 03800000
class init complete
tmu init complete
bmu1 init: done
bmu2 init: done
util init complete
GPI1 init complete
GPI2 init complete
HGPI init complete
HIF rx desc: base_va: 03e80000, base_pa: 03e80000
HIF tx desc: base_va: 03e80400, base_pa: 03e80400
HIF init complete
bmu1 enabled
bmu2 enabled
pfe_hw_init: done
pfe_firmware_init
pfe_load_elf
pfe_load_elf no of sections: 10
pfe_firmware_init: class firmware loaded
pfe_load_elf
pfe_load_elf no of sections: 10
pfe_firmware_init: tmu firmware loaded
pfe_load_elf
pfe_load_elf no of sections: 14
pfe_firmware_init: util firmware loaded
eth_port: 0
NAS540_phy_reg_setting[eth_port].phyaddr: 0x4
miidev_restart_aneg for PHY4
eth_port: 1
NAS540_phy_reg_setting[eth_port].phyaddr: 0x6
miidev_restart_aneg for PHY6
cfi_probe: cfi_flash base: 0xc0000000 size: 0x04000000
## Unknown FLASH on Bank at 0xc0000000 - Size = 0x00000000 = 0 MB
bootopt = 0x0
Using ENV from SPI Flash.
nand_probe: comcerto_nand base: 0xc8300000 size: 0x256 MB
NAND device: Manufacturer ID: 0x98, Chip ID: 0xda (Toshiba NAND 256MiB 3,3V 8-bit), page size: 2048, OOB size: 64
Using default values
Bad block table not found for chip 0
Bad block table not found for chip 0
Scanning device for bad blocks
Bad eraseblock 1536 at 0x0c000000
Bad eraseblock 1537 at 0x0c020000
Bad block table written to 0x0ffe0000, version 0x01
Bad block table written to 0x0ffc0000, version 0x01
Malloc space: 0x00600000 -> 0x01000000 (size 10 MB)
Stack space : 0x005f8000 -> 0x00600000 (size 32 kB)
running /env/bin/init...
Unknown command 'export' - try 'help'
Disabling eee function of phy 4 ...
Disabling eee function of phy 6 ...

Hit any key to stop autoboot:  1
booting kernel of type uimage from /dev/nand0.kernel1.bb
Bad Magic Number
 Failed.
booting kernel of type uimage from /dev/nand0.kernel2.bb
Bad Magic Number
warning: No MAC address set. Using random address 26:DE:4B:C3:E1:58
T T T T T T T host 192.168.1.70 is alive

erasing partition /dev/nand0.kernel1.bb


flashing uImage_MFG to /dev/nand0.kernel1.bb

TFTP from server 192.168.1.70 ('uImage_MFG' -> '/dev/nand0.kernel1.bb')

tftp failed: No such file or directory

!!!Probable use of old NAND layout.!!!
Use erase_old_nand_fmt command to clean NAND.



Any ideas what to do in this situation. I have try to load the uImage.520ABAG1C0.bin and that is the result...



Here you are the printenv:

Barebox-C2K >/ printenv
locals:
PATH=/env/bin
kernel_loc=nand
rootfs_loc=nand
uloaderimage=microloader-c2kevm.bin
bareboximage=barebox-c2kevm.bin
mfg_kernel_img=uImage_MFG
mfg_rootfs_img=rootfs_ubi.img_MFG
rootfs_type=ubifs
rootfsimage=root.ubifs-128k
kernelimage_type=uimage
kernelimage=uImage
spi_parts=256k(uloader)ro,512k(barebox)ro,256k(env)
spi_device=spi0.0
nand_device=comcertonand
nand_parts=10M(config),10M(kernel1),110M(rootfs1),10M(kernel2),110M(rootfs2),-(reserved)
rootfs_mtdblock_nand=2
autoboot_timeout=3
usb3_internal_clk=yes
bootargs=console=ttyS0,115200n8, init=/etc/preinit pcie_gen1_only=yes  mac_addr=,,
next_bootfrom=1
curr_bootfrom=1
kernel_mtd_1=4
sysimg_mtd_1=5
kernel_mtd_2=6
sysimg_mtd_2=7
MODEL_ID=B403
fwversion_1=V5.21(ABAG.5)
revision_1=51181
modelid_1=B403
core_checksum_1=8656509367ee12a59840ba4883163966
zld_checksum_1=7fb4eade4aaac0bb78d61939f4c8ae7a
romfile_checksum_1=FB1A
img_checksum_1=cac0e147f330acfced6fe7db4c3d7425
fwversion_2=V5.21(ABAG.5)
revision_2=51181
modelid_2=B403
core_checksum_2=8656509367ee12a59840ba4883163966
zld_checksum_2=7fb4eade4aaac0bb78d61939f4c8ae7a
romfile_checksum_2=FB1A
img_checksum_2=cac0e147f330acfced6fe7db4c3d7425
ethaddr=98:0D:67:E4:9B:AC
eth2addr=98:0D:67:E4:9B:AD
mcu_lock=1
serial_number=S190Z51000075
change_boot_part=0
globals:


Any ideas what to do in this situation. I have try to load the uImage.520ABAG1C0.bin and that is the result...


Thank you and regards.








All Replies

  • Mijzelf
    Mijzelf Posts: 2,136
    100 Answers 1000 Comments Friend Collector Fifth Anniversary
     Guru Member
    Here we go again. There are a handful of threads in this forum about this problem. When I remember well some people succeeded in repairing their firmware. Use the search function. Keywords barebox omv bootloop tftp

Consumer Product Help Center