Quantcast
Channel: Linux Device Hacking
Viewing all articles
Browse latest Browse all 3247

TerraMaster F2NAS2 u-boot program (no replies)

$
0
0
I have a TerraMaster F2-NAS2. Its a Marvell kirkwood (88F6282). The board is capable of kwboot a u-boot image.

I have constructed a .dts file and used this to build a linux uImage, which boots successfully (I have not attempted to build u-boot w/ this yet tho).

I have the original u-boot image (extracted from the mtd0) and can boot it from kwboot.
But, when i save the image into mtd0, it does not boot from it (nothing happens on the serial).

I have read back out mtd0 after programming it, and all seems well.

if i boot it w/ kwboot, i can save/restore environment variables from the other half of the space.

Does anyone have any suggestions why the board will not boot when this is programmed to flash, but will boot it from kwboot?

The original flash layout was:
mtd0: 00100000 00020000 "bootloader"
mtd1: 00400000 00020000 "data"
mtd2: 01000000 00020000 "backup-kernel"
mtd3: 06400000 00020000 "backup-system"
mtd4: 01000000 00020000 "kernel"
mtd5: 17700000 00020000 "rootfs"

The system has a single nand device (512M).

i've tried writing the u-boot back in using both itself (booted from kwboot) w/ nand write.e 0 0 0x80000 (after loading it w/ tftpboot @ 0). I've also tried writing it back in using linux (both the mfg uImage and my own). in all cases, when i apply power, nothing happens until i kwboot it.

um, suggestions?

(ps, why did it get erased, well, mea culpa as i was playing w/ the partitioning w/ my own uImage :)

Viewing all articles
Browse latest Browse all 3247

Trending Articles