OpenMediaVault on a Seagate Goflex Home

Update/Configuration of U-boot

Update guide from Bodhi. The latest U-boot on device is needed because newer Linux-Kernel have the flattened device tree included in their image. U-boot image as of June 2016.


All must be done on the Goflex Home with a running Linux.

  1. First be sure that needed utilities are installed.
apt-get install mtd-utils u-boot-tools
  1. Check correct addresses of mtd0 with /etc/fw_env.config
# MTDdevicename Deviceoffset Env.size Flashsectorsize Numberofsectors 
/dev/mtd0 0xc0000 0x20000 0x20000
  1. Check mtd table with cat /proc/mtd should show
dev:    size   erasesize  name
mtd0: 00100000 00020000 "u-boot"
mtd1: 00400000 00020000 "uImage"
mtd2: 02000000 00020000 "rootfs"
mtd3: 0db00000 00020000 "data"
  1. Check ethernet parameter.fw_printenv ethaddr should print the MAC address:
  1. Backup the old bootloader image and its environment:
nanddump --noecc --omitoob -l 0x80000 -f uboot_mtd0 /dev/mtd0
fw_printenv > current_envs1.txt
  1. Check that there is no bad block in mtd0:
dmesg | grep -i 'bad'
[    1.729806] Scanning device for bad blocks
  1. Download the U-boot tar file in a temporary directory.
mkdir tmp
cd tmp
  1. Untar the bootloader. This results in a .kwb file appropriate for the mtd-utils.
tar -xf uboot.2016.05-tld-1.goflexhome.bodhi.tar
  1. Erase mtd0.


flash_erase /dev/mtd0 0 4
Erasing 128 Kibyte @ 60000 -- 100 % complete
  1. Flash new U-boot.
nandwrite /dev/mtd0 uboot.2016.05-tld-1.goflexhome.mtd0.kwb
Writing data to block 0 at offset 0x0
Writing data to block 1 at offset 0x20000
Writing data to block 2 at offset 0x40000
Writing data to block 3 at offset 0x60000
  1. Check if environment is still in U-boot flash
fw_printenv > current_envs2.txt
diff current_envs1.txt current_envs2.txt

If diff shows a difference, you need to flash the formerly backuped environment.

  1. Reboot the device.
  1. Pray!

Installing Linux Kernel

This instruction is apart from Bodhis way of installing his customised kernel. This is the approach to install the debian standard kernel for marvell kirkwood SoC's.

Because of a missing dtb file for the GoFlexHome in the standard debian 4.6 kernel, it must be taken from Bodhi's 4.6 kernel and moved into the etc dir of the package flash-kernel.


Also a configuration entry of the “Seagate GoFlex Home” is missing in the database of the debian flash-kernel package. For this a manipulation of the packaged file /usr/share/flash-kernel/db/all.db is necessary. Please note that after a reinstall or update of the package flash-kernel this is overwritten. Add a machine entry in the file.

vi /usr/share/flash-kernel/db/all.db
Machine: Seagate GoFlex Home
Kernel-Flavors: kirkwood marvell
DTB-Id: kirkwood-goflexhome.dtb
DTB-Append: yes
U-Boot-Kernel-Address: 0x00008000
U-Boot-Initrd-Address: 0x0
Boot-Kernel-Path: /boot/uImage
Boot-Initrd-Path: /boot/uInitrd
Boot-DTB-Path: /boot/dtb
Required-Packages: u-boot-tools

The name followed by Machine: must be written into flash-kernel configuration:

vi /etc/flash-kernel/machine
Seagate GoFlex Home

When flash-kernel is called while installing kernel the machine name is compared with entries in /usr/share/flash-kernel/db/all.db and when found, the corresponding dtb file is copied from /etc/flash-kernel/dtbs into the file behind the label Boot-DTB-Path:.

Configuration dnsmasq