meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
start:omv_auf_goflex_home [2017/10/07 22:47]
admin
start:omv_auf_goflex_home [2019/01/07 10:59] (current)
admin
Line 11: Line 11:
 All must be done on the Goflex Home with a running Linux. All must be done on the Goflex Home with a running Linux.
   - First be sure that needed utilities are installed.   - First be sure that needed utilities are installed.
-<code>+<Code:bash>
 apt-get install mtd-utils u-boot-tools apt-get install mtd-utils u-boot-tools
-</code>+</Code>
  
   - Check correct addresses of mtd0 with ''/​etc/​fw_env.config''​   - Check correct addresses of mtd0 with ''/​etc/​fw_env.config''​
-<code>+<Code:bash>
 # MTDdevicename Deviceoffset Env.size Flashsectorsize Numberofsectors ​ # MTDdevicename Deviceoffset Env.size Flashsectorsize Numberofsectors ​
 /dev/mtd0 0xc0000 0x20000 0x20000 /dev/mtd0 0xc0000 0x20000 0x20000
-</code>+</Code>
   - Check mtd table with ''​cat /​proc/​mtd''​ should show   - Check mtd table with ''​cat /​proc/​mtd''​ should show
-<code>+<Code:bash>
 dev:    size   ​erasesize ​ name dev:    size   ​erasesize ​ name
 mtd0: 00100000 00020000 "​u-boot"​ mtd0: 00100000 00020000 "​u-boot"​
Line 27: Line 27:
 mtd2: 02000000 00020000 "​rootfs"​ mtd2: 02000000 00020000 "​rootfs"​
 mtd3: 0db00000 00020000 "​data"​ mtd3: 0db00000 00020000 "​data"​
-</code>+</Code>
  
   - Check ethernet parameter.''​fw_printenv ethaddr''​ should print the MAC address:   - Check ethernet parameter.''​fw_printenv ethaddr''​ should print the MAC address:
-<code>+<Code:bash>
 ethaddr=xx:​xx:​xx:​xx:​xx:​xx ethaddr=xx:​xx:​xx:​xx:​xx:​xx
-</code>+</Code>
  
   - Backup the old bootloader image and its environment:​   - Backup the old bootloader image and its environment:​
-<code>+<Code:bash>
 nanddump --noecc --omitoob -l 0x80000 -f uboot_mtd0 /dev/mtd0 nanddump --noecc --omitoob -l 0x80000 -f uboot_mtd0 /dev/mtd0
 fw_printenv > current_envs1.txt fw_printenv > current_envs1.txt
-</code>+</Code>
  
   - Check that there is no bad block in mtd0:   - Check that there is no bad block in mtd0:
-<code>+<Code:bash>
 dmesg | grep -i '​bad'​ dmesg | grep -i '​bad'​
 [    1.729806] Scanning device for bad blocks [    1.729806] Scanning device for bad blocks
-</code>+</Code>
  
   - Download the U-boot tar file in a temporary directory.   - Download the U-boot tar file in a temporary directory.
-<code>+<Code:bash>
 mkdir tmp mkdir tmp
 cd tmp cd tmp
 wget https://​www.dropbox.com/​s/​6hzqz0wfrorb6zz/​uboot.2016.05-tld-1.goflexhome.bodhi.tar wget https://​www.dropbox.com/​s/​6hzqz0wfrorb6zz/​uboot.2016.05-tld-1.goflexhome.bodhi.tar
-</code>+</Code>
  
   - Untar the bootloader. This results in a .kwb file appropriate for the mtd-utils.   - Untar the bootloader. This results in a .kwb file appropriate for the mtd-utils.
-<code>+<Code:bash>
 tar -xf uboot.2016.05-tld-1.goflexhome.bodhi.tar tar -xf uboot.2016.05-tld-1.goflexhome.bodhi.tar
-</code>+</Code>
  
   - Erase mtd0.   - Erase mtd0.
 BE CAREFUL DO NOT SWITCH OF THE GOFLEX HOME UNTIL NEW BOOTLOADER IS FLASHED BE CAREFUL DO NOT SWITCH OF THE GOFLEX HOME UNTIL NEW BOOTLOADER IS FLASHED
-<code>+<Code:bash>
 flash_erase /dev/mtd0 0 4 flash_erase /dev/mtd0 0 4
 Erasing 128 Kibyte @ 60000 -- 100 % complete Erasing 128 Kibyte @ 60000 -- 100 % complete
-</code>+</Code>
  
   - Flash new U-boot.   - Flash new U-boot.
-<code>+<Code:bash>
 nandwrite /dev/mtd0 uboot.2016.05-tld-1.goflexhome.mtd0.kwb nandwrite /dev/mtd0 uboot.2016.05-tld-1.goflexhome.mtd0.kwb
 Writing data to block 0 at offset 0x0 Writing data to block 0 at offset 0x0
Line 72: Line 72:
 Writing data to block 2 at offset 0x40000 Writing data to block 2 at offset 0x40000
 Writing data to block 3 at offset 0x60000 Writing data to block 3 at offset 0x60000
-</code+</Code
  
   - Check if environment is still in U-boot flash   - Check if environment is still in U-boot flash
-<code>+<Code:bash>
 fw_printenv > current_envs2.txt fw_printenv > current_envs2.txt
 diff current_envs1.txt current_envs2.txt diff current_envs1.txt current_envs2.txt
-</code>+</Code>
 If diff shows a difference, you need to flash the formerly backuped environment. If diff shows a difference, you need to flash the formerly backuped environment.
  
   - Reboot the device.   - Reboot the device.
-<code>+<Code:bash>
 reboot reboot
-</code>+</Code>
  
   - **Pray!**   - **Pray!**
Line 93: Line 93:
  
 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. 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.
-<code>+<Code:bash>
 /​etc/​flash-kernel/​dtbs/​kirkwood-goflexhome.dtb /​etc/​flash-kernel/​dtbs/​kirkwood-goflexhome.dtb
-</code>+</Code>
  
 Also a configuration entry of the "​Seagate GoFlex Home" is missing in the database of the debian flash-kernel package. 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. 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. Add a machine entry in the file.
-<code>+<Code:bash>
 vi /​usr/​share/​flash-kernel/​db/​all.db vi /​usr/​share/​flash-kernel/​db/​all.db
 Machine: Seagate GoFlex Home Machine: Seagate GoFlex Home
Line 112: Line 112:
 Boot-DTB-Path:​ /boot/dtb Boot-DTB-Path:​ /boot/dtb
 Required-Packages:​ u-boot-tools Required-Packages:​ u-boot-tools
-</code>+</Code>
  
 The name followed by ''​Machine:''​ must be written into flash-kernel configuration:​ The name followed by ''​Machine:''​ must be written into flash-kernel configuration:​
-<code>+<Code:bash>
 vi /​etc/​flash-kernel/​machine vi /​etc/​flash-kernel/​machine
 Seagate GoFlex Home Seagate GoFlex Home
-</code>+</Code>
  
 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:''​. 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 ==== ==== Configuration dnsmasq ====