Welcome! Log In Create A New Profile

Advanced

my netgear stora has stopped loading from the built-in HDD

Posted by Dmitriy 
my netgear stora has stopped loading from the built-in HDD
April 05, 2018 03:55PM
Hello! Bodhi

I have a problem after updating uboot.2017.07-tld-1.netgear_ms2110.bodhi.tar my netgear stora has stopped loading from the built-in HDD

The USB disk is loaded well.

help please understand the problem

Thank you!


Netgear Stora> printenv
printenv
arcNumber=2743
bootargs=console=ttyS0,115200 root=LABEL=rootfs rootdelay=0
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi; sleep 3
bootdelay=5
devices=usb ide
ethact=egiga0
ethaddr=C0:3F:0E:B0:E6:EC
if_netconsole=ping $serverip
init_ide=ide reset
init_mmc=mmc rescan
init_usb=usb start
ipaddr=192.168.1.141
led_error=orange blinking
led_exit=green off
led_init=white blinking
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_dtb_addr=0x1c00000
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x1100000
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
load_uimage_addr=0x800000
mainlineLinux=yes
nc_ready=1
ncip=192.168.1.27
preboot=run preboot_nc
preboot_nc=setenv nc_ready 0; for pingstat in 1 2 3 4 5; do; sleep 1; if run if_netconsole; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then run start_netconsole; fi
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
scan_ide=ide reset
scan_mmc=mmc rescan
scan_usb=usb start
serverip=192.168.1.27
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=0
start_netconsole=setenv ncip $serverip; setenv bootdelay 5; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=nc
stdin=nc
stdout=nc
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_loaded=0
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
usb_ready_retry=15

Environment size: 3003/131068 bytes
Netgear Stora>



Netgear Stora> boot
boot

Reset IDE: Bus 0: OK Bus 1: OK 
  Device 0: Model: ST3500320AS  Firm: SD1A Ser#: 9QM62ZZS
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 476938.9 MB = 465.7 GB (976771055 x 512)
  Device 1: Model: Hitachi HDS721010CLA332  Firm: JP4OA3EA Ser#: JP2911HD00GTPC
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)
** First descriptor is NOT a primary desc on 1:1 **
## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0
loading envs from usb 0 ...
** Bad device usb 0 **

Partition Map for IDE device 0  --   Partition Type: DOS

Part	Start Sector	Num Sectors	UUID		Type
  1	10487808  	8388608   	9f9b604e-01	83 Boot
  2	2048      	10485760  	9f9b604e-02	82
  3	18876416  	957894639 	9f9b604e-03	8e
running scan_disk ...
Scan device usb
Scan device ide

Reset IDE: Bus 0: OK Bus 1: OK 
  Device 0: Model: ST3500320AS  Firm: SD1A Ser#: 9QM62ZZS
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 476938.9 MB = 465.7 GB (976771055 x 512)
  Device 1: Model: Hitachi HDS721010CLA332  Firm: JP4OA3EA Ser#: JP2911HD00GTPC
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)
** First descriptor is NOT a primary desc on 1:1 **
loading uImage ...
** Bad device specification 0x800000 /boot/uImage **
loading uInitrd ...
** Bad device specification 0x1100000 /boot/uInitrd **
loading DTB ...
** No device specified **
Wrong Image Format for bootm command
ERROR: can't get kernel image!
Netgear Stora>



Netgear Stora> usb reset
usb reset
resetting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found
Netgear Stora> boot
boot

Reset IDE: Bus 0: OK Bus 1: OK 
  Device 0: Model: ST3500320AS  Firm: SD1A Ser#: 9QM62ZZS
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 476938.9 MB = 465.7 GB (976771055 x 512)
  Device 1: Model: Hitachi HDS721010CLA332  Firm: JP4OA3EA Ser#: JP2911HD00GTPC
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)
** First descriptor is NOT a primary desc on 1:1 **

Partition Map for USB device 0  --   Partition Type: DOS

Part	Start Sector	Num Sectors	UUID		Type
  1	2048      	62978048  	0022902e-01	83

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0
loading envs from usb 0 ...
86 bytes read in 569 ms (0 Bytes/s)

Partition Map for IDE device 0  --   Partition Type: DOS

Part	Start Sector	Num Sectors	UUID		Type
  1	10487808  	8388608   	9f9b604e-01	83 Boot
  2	2048      	10485760  	9f9b604e-02	82
  3	18876416  	957894639 	9f9b604e-03	8e
importing envs ...
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 507 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
3926040 bytes read in 635 ms (5.9 MiB/s)
loading uInitrd ...
7858105 bytes read in 625 ms (12 MiB/s)
loading DTB /boot/dts/kirkwood-netgear_stora_ms2000.dtb ...
11499 bytes read in 2306 ms (3.9 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.15.2-kirkwood-tld-1
   Created:      2018-04-05  10:13:15 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3925976 Bytes = 3.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.15.2-kirkwood-tld-1
   Created:      2018-04-05  10:15:35 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7858041 Bytes = 7.5 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
   Booting using the fdt blob at 0x1c00000


Starting kernel ...
Re: my netgear stora has stopped loading from the built-in HDD
April 05, 2018 04:04PM
Dmitriy ,

Quote

Device 1: Model: Hitachi HDS721010CLA332 Firm: JP4OA3EA Ser#: JP2911HD00GTPC
Type: Hard Disk
Supports 48-bit addressing
Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)
** First descriptor is NOT a primary desc on 1:1 **
loading uImage ...
** Bad device specification 0x800000 /boot/uImage **
loading uInitrd ...
** Bad device specification 0x1100000 /boot/uInitrd **

Does the Hitachi disk contain to rootfs that you want to boot from? And what's inside the Seagate HDD (is it a data drive)?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: my netgear stora has stopped loading from the built-in HDD
April 05, 2018 04:54PM
Seagate has 3 sections, the first EXT4 has a label called rootfs,
The second is swap and the third is the start of the tanker LVM
Hitachi continuation of the LVM tanker

The LVM tanker is assembled from partition 3 of the seagate disk and the Hitachi disk partition 1



Edited 1 time(s). Last edit at 04/05/2018 05:32PM by Dmitriy.
Re: my netgear stora has stopped loading from the built-in HDD
April 05, 2018 05:10PM
everything starts to work if

I give commands through nc

setenv bootdev ide
setenv device 0: 1
setenv dtb_file /boot/dts/kirkwood-netgear_stora_ms2000.dtb
boot

but before that everything worked without it

I think now uboot can not determine the partition of the rootfs on the seagate drive



Edited 2 time(s). Last edit at 04/05/2018 05:15PM by Dmitriy.
Re: my netgear stora has stopped loading from the built-in HDD
April 05, 2018 06:08PM
Quote

but before that everything worked without it

Which u-boot version was installed before this uboot.2017.07-tld-1?


I suspect that the Hitachi disk partition was not well done. Try this to see if u-boot can see it.

Power up, interrupt serial console and,

setenv devices 'ide usb'
boot
post the entire serial console log here.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: my netgear stora has stopped loading from the built-in HDD
April 06, 2018 02:40AM
bodhi Wrote:
-------------------------------------------------------
>
Quote

but before that everything worked without
> it
>
> Which u-boot version was installed before this
> uboot.2017.07-tld-1?

2016.05-tld-1

> I suspect that the Hitachi disk partition was not
> well done. Try this to see if u-boot can see it.
>
> Power up, interrupt serial console and,

unfortunately I do not have an opportunity to use the serial console I do everything through nc

>
> setenv devices 'ide usb'
> boot
>
> post the entire serial console log here.

root@Service:/home/service# nc -l -u -p 6666

U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:38:05 -0700)
Netgear Stora MS2110
gcc (Debian 6.3.0-18) 6.3.0 20170516
GNU ld (GNU Binutils for Debian) 2.28
Hit any key to stop autoboot:  4 
 0 
Netgear Stora> setenv devices 'ide usb'
setenv devices 'ide usb'
Netgear Stora> boot
boot

Reset IDE: Bus 0: OK Bus 1: OK 
  Device 0: Model: ST3500320AS  Firm: SD1A Ser#: 9QM62ZZS
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 476938.9 MB = 465.7 GB (976771055 x 512)
  Device 1: Model: Hitachi HDS721010CLA332  Firm: JP4OA3EA Ser#: JP2911HD00GTPC
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)
** First descriptor is NOT a primary desc on 1:1 **
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

Partition Map for IDE device 0  --   Partition Type: DOS

Part	Start Sector	Num Sectors	UUID		Type
  1	10487808  	8388608   	9f9b604e-01	83 Boot
  2	2048      	10485760  	9f9b604e-02	82
  3	18876416  	957894639 	9f9b604e-03	8e
## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0
loading envs from usb 0 ...
** Bad device usb 0 **
running scan_disk ...
Scan device ide

Reset IDE: Bus 0: OK Bus 1: OK 
  Device 0: Model: ST3500320AS  Firm: SD1A Ser#: 9QM62ZZS
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 476938.9 MB = 465.7 GB (976771055 x 512)
  Device 1: Model: Hitachi HDS721010CLA332  Firm: JP4OA3EA Ser#: JP2911HD00GTPC
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)
** First descriptor is NOT a primary desc on 1:1 **
Scan device usb
loading uImage ...
** Bad device specification 0x800000 /boot/uImage **
loading uInitrd ...
** Bad device specification 0x1100000 /boot/uInitrd **
loading DTB ...
** No device specified **
Wrong Image Format for bootm command
ERROR: can't get kernel image!
Netgear Stora>
Re: my netgear stora has stopped loading from the built-in HDD
April 06, 2018 02:44AM
Dmitriy,

Somehow the Hitachi drive partition was not good.

Power up, interrupt netconsole and

setenv devices 'ide usb'
ide reset
ide part

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: my netgear stora has stopped loading from the built-in HDD
April 06, 2018 02:59AM
bodhi Wrote:
-------------------------------------------------------
> Dmitriy,
>
> Somehow the Hitachi drive partition was not good.
>
> Power up, interrupt netconsole and
>
>
> setenv devices 'ide usb'
> ide reset
> ide part
>


I disabled hitachi hdd

Netgear Stora> setenv devices 'ide usb'
setenv devices 'ide usb'
Netgear Stora> ide reset
ide reset

Reset IDE: Bus 0: OK Bus 1: not available  
  Device 0: Model: ST3500320AS  Firm: SD1A Ser#: 9QM62ZZS
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 476938.9 MB = 465.7 GB (976771055 x 512)
Netgear Stora> ide part
ide part

Partition Map for IDE device 0  --   Partition Type: DOS

Part	Start Sector	Num Sectors	UUID		Type
  1	10487808  	8388608   	9f9b604e-01	83 Boot
  2	2048      	10485760  	9f9b604e-02	82
  3	18876416  	957894639 	9f9b604e-03	8e
Netgear Stora> boot
boot

Reset IDE: Bus 0: OK Bus 1: not available  
  Device 0: Model: ST3500320AS  Firm: SD1A Ser#: 9QM62ZZS
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 476938.9 MB = 465.7 GB (976771055 x 512)

Partition Map for IDE device 0  --   Partition Type: DOS

Part	Start Sector	Num Sectors	UUID		Type
  1	10487808  	8388608   	9f9b604e-01	83 Boot
  2	2048      	10485760  	9f9b604e-02	82
  3	18876416  	957894639 	9f9b604e-03	8e
## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0
loading envs from usb 0 ...
** Bad device usb 0 **
running scan_disk ...
Scan device ide

Reset IDE: Bus 0: OK Bus 1: not available  
  Device 0: Model: ST3500320AS  Firm: SD1A Ser#: 9QM62ZZS
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 476938.9 MB = 465.7 GB (976771055 x 512)
Scan device usb
loading uImage ...
** Bad device specification 0x800000 /boot/uImage **
loading uInitrd ...
** Bad device specification 0x1100000 /boot/uInitrd **
loading DTB ...
** No device specified **
Wrong Image Format for bootm command
ERROR: can't get kernel image!
Netgear Stora>
Re: my netgear stora has stopped loading from the built-in HDD
April 06, 2018 03:07AM
I'll try to return uboot 2016.05-tld-1 in order to make sure that it's in the new uboot
Re: my netgear stora has stopped loading from the built-in HDD
April 06, 2018 03:14AM
can not download uboot.2016.05-tld-1.netgear_ms2110.bodhi.tar please correct the link

Sorry all downloaded



Edited 1 time(s). Last edit at 04/06/2018 03:16AM by Dmitriy.
Re: my netgear stora has stopped loading from the built-in HDD
April 06, 2018 03:26AM
U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:45:22 -0700)
Netgear-MS2110
gcc (Debian 4.9.2-10) 4.9.2
GNU ld (GNU Binutils for Debian) 2.25
Hit any key to stop autoboot:  5 
 0 
Netgear Stora> boot
boot
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

Reset IDE: Bus 0: OK Bus 1: OK 
  Device 0: Model: ST3500320AS  Firm: SD1A Ser#: 9QM62ZZS
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 476938.9 MB = 465.7 GB (976771055 x 512)
  Device 1: Model: Hitachi HDS721010CLA332  Firm: JP4OA3EA Ser#: JP2911HD00GTPC
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)
** First descriptor is NOT a primary desc on 1:1 **

no USB devices available

Partition Map for IDE device 0  --   Partition Type: DOS

Part	Start Sector	Num Sectors	UUID		Type
  1	10487808  	8388608   	9f9b604e-01	83 Boot
  2	2048      	10485760  	9f9b604e-02	82
  3	18876416  	957894639 	9f9b604e-03	8e
loading envs from ide 0 ...
94 bytes read in 52 ms (1000 Bytes/s)
importing envs ...
running scan_disk ...
Scan device usb
device usb 0:1
** Bad device usb 0 **
device usb 1:1
** Bad device usb 1 **
device usb 2:1
** Bad device usb 2 **
device usb 3:1
** Bad device usb 3 **
device usb 4:1
** Bad device usb 4 **
device usb 5:1
** Bad device usb 5 **
device usb 6:1
** Bad device usb 6 **
device usb 7:1
** Bad device usb 7 **
Scan device mmc
Unknown command 'mmc' - try 'help'
device mmc 0:1
** Bad device mmc 0 **
device mmc 1:1
** Bad device mmc 1 **
device mmc 2:1
** Bad device mmc 2 **
device mmc 3:1
** Bad device mmc 3 **
device mmc 4:1
** Bad device mmc 4 **
device mmc 5:1
** Bad device mmc 5 **
device mmc 6:1
** Bad device mmc 6 **
device mmc 7:1
** Bad device mmc 7 **
Scan device ide

Reset IDE: Bus 0: OK Bus 1: OK 
  Device 0: Model: ST3500320AS  Firm: SD1A Ser#: 9QM62ZZS
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 476938.9 MB = 465.7 GB (976771055 x 512)
  Device 1: Model: Hitachi HDS721010CLA332  Firm: JP4OA3EA Ser#: JP2911HD00GTPC
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)
** First descriptor is NOT a primary desc on 1:1 **
device ide 0:1
1 bytes read in 336 ms (0 Bytes/s)
Found bootable drive on ide 0
loading uImage ...
3804408 bytes read in 913 ms (4 MiB/s)
loading uInitrd ...
9346318 bytes read in 2426 ms (3.7 MiB/s)
loading DTB /boot/dts/kirkwood-netgear_stora_ms2000.dtb ...
11929 bytes read in 268 ms (43 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.12.8-kirkwood-tld-1
   Created:      2017-09-23  13:09:13 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3804344 Bytes = 3.6 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.12.8-kirkwood-tld-1
   Created:      2017-09-28  12:29:33 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9346254 Bytes = 8.9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
   Booting using the fdt blob at 0x1c00000


Starting kernel ...
Re: my netgear stora has stopped loading from the built-in HDD
April 06, 2018 03:27AM
As we see everything is good
Re: my netgear stora has stopped loading from the built-in HDD
April 06, 2018 04:15AM
I'm ready to continue trying to run my stora with a new uboot

Any tests thanks!
Re: my netgear stora has stopped loading from the built-in HDD
April 06, 2018 04:52PM
Dmitriy,

The new u-boot 2017 and old u-boot 2016 are not much different. However, the new code size and new driver would probably results in a slightly different timing and behavior (especially with EXT4 rootfs). I believe this has brought up some problem in your configuration.

Quote

I disabled hitachi hdd

Netgear Stora> setenv devices 'ide usb'
setenv devices 'ide usb'
Netgear Stora> ide reset
ide reset

Reset IDE: Bus 0: OK Bus 1: not available
Device 0: Model: ST3500320AS Firm: SD1A Ser#: 9QM62ZZS
Type: Hard Disk
Supports 48-bit addressing
Capacity: 476938.9 MB = 465.7 GB (976771055 x 512)
Netgear Stora> ide part
ide part

Partition Map for IDE device 0 -- Partition Type: DOS

Part Start Sector Num Sectors UUID Type
1 10487808 8388608 9f9b604e-01 83 Boot
2 2048 10485760 9f9b604e-02 82
3 18876416 957894639 9f9b604e-03 8e
Netgear Stora> boot
boot

Reset IDE: Bus 0: OK Bus 1: not available
Device 0: Model: ST3500320AS Firm: SD1A Ser#: 9QM62ZZS
Type: Hard Disk
Supports 48-bit addressing
Capacity: 476938.9 MB = 465.7 GB (976771055 x 512)

Partition Map for IDE device 0 -- Partition Type: DOS

Part Start Sector Num Sectors UUID Type
1 10487808 8388608 9f9b604e-01 83 Boot
2 2048 10485760 9f9b604e-02 82
3 18876416 957894639 9f9b604e-03 8e
## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0
loading envs from usb 0 ...
** Bad device usb 0 **
running scan_disk ...
Scan device ide

Reset IDE: Bus 0: OK Bus 1: not available
Device 0: Model: ST3500320AS Firm: SD1A Ser#: 9QM62ZZS
Type: Hard Disk
Supports 48-bit addressing
Capacity: 476938.9 MB = 465.7 GB (976771055 x 512)
Scan device usb

---- right here it should have found your /boot/uImage

loading uImage ...
** Bad device specification 0x800000 /boot/uImage **
loading uInitrd ...
** Bad device specification 0x1100000 /boot/uInitrd **
loading DTB ...
** No device specified **
Wrong Image Format for bootm command
ERROR: can't get kernel image!
Netgear Stora>

In the run above, with only the Seagate disk attached, u-boot did not find your /boot/uImage.

----

1. How is your Seagate rootfs created, with Ext3 or Ext4 file system?
2. Also, there are 3 partitions on it. You should have a single Ext3 or Ext4 partition. And use a swap file instead of swap partition.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: my netgear stora has stopped loading from the built-in HDD
April 07, 2018 03:05AM
disk with bad blocks, so at the beginning of the disk allocated 5 GB for swap partition.
This is the second section

the first partition was formatted with the command mkfs.ext4 -L rootfs / dev / sda1.

The third section is the space under the LVM partition for the data.

the whole disk was split using fdisk



Edited 2 time(s). Last edit at 04/07/2018 03:08AM by Dmitriy.
Re: my netgear stora has stopped loading from the built-in HDD
April 07, 2018 03:15AM
Dmitriy Wrote:
-------------------------------------------------------
> everything starts to work if
>
> I give commands through nc
>
> setenv bootdev ide
> setenv device 0: 1
> setenv dtb_file
> /boot/dts/kirkwood-netgear_stora_ms2000.dtb
> boot
>
> but before that everything worked without it
>
> I think now uboot can not determine the partition
> of the rootfs on the seagate drive

these commands help me to boot with a new uboot, but then I think the usb ide auto-detection mechanism is lost.



Edited 1 time(s). Last edit at 04/07/2018 03:16AM by Dmitriy.
Re: my netgear stora has stopped loading from the built-in HDD
April 07, 2018 03:34AM
the first partition was formatted with the command mkfs.ext4 -L rootfs / dev / sda1.

1. Try reformat this partition with Ext3.
2. Make sure the Hitachi disk does not contain rootfs.

See this post, it might be related to your problem:
https://forum.doozan.com/read.php?2,51369

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 04/07/2018 03:35AM by bodhi.
Re: my netgear stora has stopped loading from the built-in HDD
April 07, 2018 03:46AM
Well I'll try to format in ext3.

As for the Hitachi disk, I disabled it physically, but it did not solve the problem.
Re: my netgear stora has stopped loading from the built-in HDD
April 07, 2018 03:50AM
bodhi Wrote:
-------------------------------------------------------
> See this post, it might be related to your
> problem:
> https://forum.doozan.com/read.php?2,51369


I'll format the drive directly into the netgear stora, I do not think there's a 64bit system.
Re: my netgear stora has stopped loading from the built-in HDD
April 07, 2018 04:27AM
nothing came out, formatted in ext3 the same.

U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:38:05 -0700)
Netgear Stora MS2110
gcc (Debian 6.3.0-18) 6.3.0 20170516
GNU ld (GNU Binutils for Debian) 2.28
Hit any key to stop autoboot:  0 
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

Reset IDE: Bus 0: OK Bus 1: not available  
  Device 0: Model: ST3500320AS  Firm: SD1A Ser#: 9QM62ZZS
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 476938.9 MB = 465.7 GB (976771055 x 512)
## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0
loading envs from usb 0 ...
** Bad device usb 0 **

Partition Map for IDE device 0  --   Partition Type: DOS

Part	Start Sector	Num Sectors	UUID		Type
  1	10487808  	8388608   	9f9b604e-01	83 Boot
  2	2048      	10485760  	9f9b604e-02	82
  3	18876416  	957894639 	9f9b604e-03	8e
running scan_disk ...
Scan device usb
Scan device ide

Reset IDE: Bus 0: OK Bus 1: not available  
  Device 0: Model: ST3500320AS  Firm: SD1A Ser#: 9QM62ZZS
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 476938.9 MB = 465.7 GB (976771055 x 512)
loading uImage ...
** Bad device specification 0x800000 /boot/uImage **
loading uInitrd ...
** Bad device specification 0x1100000 /boot/uInitrd **
loading DTB ...
** No device specified **
Wrong Image Format for bootm command
ERROR: can't get kernel image!
Netgear Stora> 
Re: my netgear stora has stopped loading from the built-in HDD
April 07, 2018 04:29AM
maybe the problem is in the envs?

Netgear Stora> printenv
printenv
arcNumber=2743
bootargs=console=ttyS0,115200 root=LABEL=rootfs rootdelay=0
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi; sleep 3
bootdelay=5
devices=usb ide
ethact=egiga0
ethaddr=C0:3F:0E:B0:E6:EC
if_netconsole=ping $serverip
init_ide=ide reset
init_mmc=mmc rescan
init_usb=usb start
ipaddr=192.168.1.141
led_error=orange blinking
led_exit=green off
led_init=white blinking
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_dtb_addr=0x1c00000
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x1100000
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
load_uimage_addr=0x800000
mainlineLinux=yes
nc_ready=1
ncip=192.168.1.27
preboot=run preboot_nc
preboot_nc=setenv nc_ready 0; for pingstat in 1 2 3 4 5; do; sleep 1; if run if_netconsole; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then run start_netconsole; fi
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
scan_ide=ide reset
scan_mmc=mmc rescan
scan_usb=usb start
serverip=192.168.1.27
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=0
start_netconsole=setenv ncip $serverip; setenv bootdelay 5; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=nc
stdin=nc
stdout=nc
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_loaded=0
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
usb_ready_retry=15

Environment size: 3003/131068 bytes
Netgear Stora>
Re: my netgear stora has stopped loading from the built-in HDD
April 07, 2018 04:43AM
Dmitriy,

Your envs were somehow messed up. There is no disks env. That's why the scan did not work.

Interrupt console and

setenv disks '0 1 2 3 4 5 6 7'
boot

Note: if you have used uEnv.txt before to define some envs, once it works you need to set them permanently to avoid this type of problem. Did you use uEnv.txt in the USB rootfs? if you did, that uEnv.txt file needs to be in the Seagate HDD rootfs, too :)

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 3 time(s). Last edit at 04/07/2018 04:47AM by bodhi.
Re: my netgear stora has stopped loading from the built-in HDD
April 07, 2018 05:02AM
bodhi Wrote:
-------------------------------------------------------
> Dmitriy,
>
> Your envs were somehow messed up. There is no
> disks env. That's why the scan did not
> work.
>
> Interrupt console and
>
>
> setenv disks '0 1 2 3 4 5 6 7'
> boot
>

Now, everything is fine.

but for some reason it does not find the DTB file

as I understand it in the file Uenv.txt it is clearly registered.

Netgear Stora> setenv disks '0 1 2 3'
setenv disks '0 1 2 3'
Netgear Stora> boot
boot

Reset IDE: Bus 0: OK Bus 1: not available  
  Device 0: Model: ST3500320AS  Firm: SD1A Ser#: 9QM62ZZS
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 476938.9 MB = 465.7 GB (976771055 x 512)
## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0
loading envs from usb 0 ...
** Bad device usb 0 **

Partition Map for IDE device 0  --   Partition Type: DOS

Part	Start Sector	Num Sectors	UUID		Type
  1	10487808  	8388608   	9f9b604e-01	83 Boot
  2	2048      	10485760  	9f9b604e-02	82
  3	18876416  	957894639 	9f9b604e-03	8e
running scan_disk ...
Scan device usb
device usb 0:1
** Bad device usb 0 **
device usb 1:1
** Bad device usb 1 **
device usb 2:1
** Bad device usb 2 **
device usb 3:1
** Bad device usb 3 **
Scan device ide

Reset IDE: Bus 0: OK Bus 1: not available  
  Device 0: Model: ST3500320AS  Firm: SD1A Ser#: 9QM62ZZS
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 476938.9 MB = 465.7 GB (976771055 x 512)
device ide 0:1
1 bytes read in 325 ms (0 Bytes/s)
Found bootable drive on ide 0
loading uImage ...
3804408 bytes read in 745 ms (4.9 MiB/s)
loading uInitrd ...
9346318 bytes read in 2301 ms (3.9 MiB/s)
loading DTB ...
** No boot file defined **
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.12.8-kirkwood-tld-1
   Created:      2017-09-23  13:09:13 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3804344 Bytes = 3.6 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.12.8-kirkwood-tld-1
   Created:      2017-09-28  12:29:33 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9346254 Bytes = 8.9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK


Starting kernel ...

> Note: if you have used uEnv.txt before to define
> some envs, once it works you need to set them
> permanently to avoid this type of problem. Did you
> use uEnv.txt in the USB rootfs? if you did, that
> uEnv.txt file needs to be in the Seagate HDD
> rootfs, too :)

yes it is both on the IDE and on the USB in the folder / boot /

but for some reason the new uboot does not find or does not look for the uEnv.txt file on the IDE



Edited 1 time(s). Last edit at 04/07/2018 05:09AM by Dmitriy.
Re: my netgear stora has stopped loading from the built-in HDD
April 07, 2018 05:35AM
In general, the situation was corrected by 3 teams

setenv dtb_file /boot/dts/kirkwood-netgear_stora_ms2000.dtb
setenv disks '0 1 2 3 4 5 6 7'
saveenv

now the envs list looks like this

printenv
arcNumber=2743
bootargs=console=ttyS0,115200 root=LABEL=rootfs rootdelay=0
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi; sleep 3
bootdelay=5
devices=usb ide
disks=0 1 2 3 4 5 6 7
dtb_file=/boot/dts/kirkwood-netgear_stora_ms2000.dtb
ethact=egiga0
ethaddr=C0:3F:0E:B0:E6:EC
if_netconsole=ping $serverip
init_ide=ide reset
init_mmc=mmc rescan
init_usb=usb start
ipaddr=192.168.1.141
led_error=orange blinking
led_exit=green off
led_init=white blinking
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_dtb_addr=0x1c00000
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x1100000
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
load_uimage_addr=0x800000
mainlineLinux=yes
nc_ready=1
ncip=192.168.1.27
preboot=run preboot_nc
preboot_nc=setenv nc_ready 0; for pingstat in 1 2 3 4 5; do; sleep 1; if run if_netconsole; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then run start_netconsole; fi
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
scan_ide=ide reset
scan_mmc=mmc rescan
scan_usb=usb start
serverip=192.168.1.27
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=0
start_netconsole=setenv ncip $serverip; setenv bootdelay 5; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=nc
stdin=nc
stdout=nc
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_loaded=0
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
usb_ready_retry=15
Re: my netgear stora has stopped loading from the built-in HDD
April 07, 2018 05:38AM
It turns out that with the new Uboot, the uEnv.txt file is valid only on the USB drive
?
Re: my netgear stora has stopped loading from the built-in HDD
April 07, 2018 05:44AM
Dmitriy Wrote:
-------------------------------------------------------
> It turns out that with the new Uboot, the uEnv.txt
> file is valid only on the USB drive
> ?

Try loading it directly in u-boot console.

With only the Seagate HDD attached, power up and interrupt console, and

run bootcmd_uenv

if there was no error, list the envs to check what were set in uEnv.tx:

printenv

If there was error in running bootcmd_uenv, then see if the boot folder can be listed:
ext4ls ide 0:1 /boot

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: my netgear stora has stopped loading from the built-in HDD
April 07, 2018 05:56AM
Netgear Stora> run bootcmd_uenv
run bootcmd_uenv
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

Reset IDE: Bus 0: OK Bus 1: OK 
  Device 0: Model: ST3500320AS  Firm: SD1A Ser#: 9QM62ZZS
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 476938.9 MB = 465.7 GB (976771055 x 512)
  Device 1: Model: Hitachi HDS721010CLA332  Firm: JP4OA3EA Ser#: JP2911HD00GTPC
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)
** First descriptor is NOT a primary desc on 1:1 **
## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0
loading envs from usb 0 ...
** Bad device usb 0 **

Partition Map for IDE device 0  --   Partition Type: DOS

Part	Start Sector	Num Sectors	UUID		Type
  1	10487808  	8388608   	9f9b604e-01	83 Boot
  2	2048      	10485760  	9f9b604e-02	82
  3	18876416  	957894639 	9f9b604e-03	8e
Netgear Stora>
Netgear Stora> printenv
printenv
arcNumber=2743
bootargs=console=ttyS0,115200 root=LABEL=rootfs rootdelay=0
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi; sleep 3
bootdelay=5
devices=usb ide
ethact=egiga0
ethaddr=C0:3F:0E:B0:E6:EC
if_netconsole=ping $serverip
init_ide=ide reset
init_mmc=mmc rescan
init_usb=usb start
ipaddr=192.168.1.141
led_error=orange blinking
led_exit=green off
led_init=white blinking
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_dtb_addr=0x1c00000
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x1100000
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
load_uimage_addr=0x800000
mainlineLinux=yes
nc_ready=1
ncip=192.168.1.27
preboot=run preboot_nc
preboot_nc=setenv nc_ready 0; for pingstat in 1 2 3 4 5; do; sleep 1; if run if_netconsole; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then run start_netconsole; fi
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
scan_ide=ide reset
scan_mmc=mmc rescan
scan_usb=usb start
serverip=192.168.1.27
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=0
start_netconsole=setenv ncip $serverip; setenv bootdelay 5; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=nc
stdin=nc
stdout=nc
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_loaded=0
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
usb_ready_retry=15

Netgear Stora> ext4ls ide 0:1 /boot
ext4ls ide 0:1 /boot
<DIR>       4096 .
<DIR>       4096 ..
<DIR>       4096 dts
          153512 config-4.12.8-kirkwood-tld-1
         8588292 linux-headers-4.12.8-kirkwood-tld-1_1.0_armel.deb
              94 uEnv.txt
         9346318 uInitrd
         3804408 uImage
         3804344 vmlinuz-4.12.8-kirkwood-tld-1
         3804344 zImage-4.12.8-kirkwood-tld-1
         2508981 System.map-4.12.8-kirkwood-tld-1
         9346254 initrd.img-4.12.8-kirkwood-tld-1
        18443814 linux-image-4.12.8-kirkwood-tld-1_1.0_armel.deb
          146602 linux-4.12.8-kirkwood-tld-1.patch
         1300480 linux-dtb-4.12.8-kirkwood-tld-1.tar
        31095943 linux-4.12.8-kirkwood-tld-1-bodhi.tar.bz2
Netgear Stora> 
Re: my netgear stora has stopped loading from the built-in HDD
April 07, 2018 06:25AM
something that I'm confused in envs

here's something in your uboot.2016.05-tld-1.environment

arcNumber=2097
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
device=0:1
devices=usb ide mmc
disks=0 1 2 3
ethact=egiga0
ethaddr=52:3b:20:9c:11:51
if_netconsole=ping $serverip
ipaddr=192.168.0.231
led_error=orange blinking
led_exit=green off
led_init=green blinking
dtb_file=/boot/dts/kirkwood-pogo_e02.dtb
load_dtb_addr=0x1c00000
load_initrd_addr=0x1100000
load_uimage_addr=0x800000
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
machid=0x831
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
partition=nand0,2
preboot_nc=run if_netconsole start_netconsole
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
serverip=192.168.0.220
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
usb_ready_retry=15

but my

Netgear Stora> printenv
printenv
arcNumber=2743
bootargs=console=ttyS0,115200 root=LABEL=rootfs rootdelay=0
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi; sleep 3
bootdelay=5
devices=usb ide
ethact=egiga0
ethaddr=C0:3F:0E:B0:E6:EC
if_netconsole=ping $serverip
init_ide=ide reset
init_mmc=mmc rescan
init_usb=usb start
ipaddr=192.168.1.141
led_error=orange blinking
led_exit=green off
led_init=white blinking
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_dtb_addr=0x1c00000
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x1100000
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
load_uimage_addr=0x800000
mainlineLinux=yes
nc_ready=1
ncip=192.168.1.27
preboot=run preboot_nc
preboot_nc=setenv nc_ready 0; for pingstat in 1 2 3 4 5; do; sleep 1; if run if_netconsole; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then run start_netconsole; fi
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
scan_ide=ide reset
scan_mmc=mmc rescan
scan_usb=usb start
serverip=192.168.1.27
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=0
start_netconsole=setenv ncip $serverip; setenv bootdelay 5; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=nc
stdin=nc
stdout=nc
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_loaded=0
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
usb_ready_retry=15
Re: my netgear stora has stopped loading from the built-in HDD
April 07, 2018 08:58AM
Red highlighted the lines with which it all worked,
earlier it was written in the file uEnv.txt, now I think the new uboot does not look for this file on the IDE disk but only on USB.

Strange, it used to work ...

maybe the topic can be closed, I achieved what I wanted to thank bodhi!

arcNumber=2743
bootargs=console=ttyS0,115200 root=LABEL=rootfs rootdelay=0
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi; sleep 3
bootdelay=5
bootdev=usb
device=0:1
devices=usb ide mmc
disks=0 1 2 3 4 5 6 7
dtb_file=/boot/dts/kirkwood-netgear_stora_ms2000.dtb
ethact=egiga0
ethaddr=C0:3F:0E:B0:E6:EC
if_netconsole=ping $serverip
init_ide=ide reset
init_mmc=mmc rescan
init_usb=usb start
ipaddr=192.168.1.141
led_error=orange blinking
led_exit=green off
led_init=white blinking
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_dtb_addr=0x1c00000
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x1100000
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
load_uimage_addr=0x800000
mainlineLinux=yes
nc_ready=1
ncip=192.168.1.27
preboot=run preboot_nc
preboot_nc=setenv nc_ready 0; for pingstat in 1 2 3 4 5; do; sleep 1; if run if_netconsole; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then run start_netconsole; fi
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
scan_ide=ide reset
scan_mmc=mmc rescan
scan_usb=usb start
serverip=192.168.1.27
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=0
start_netconsole=setenv ncip $serverip; setenv bootdelay 5; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=nc
stdin=nc
stdout=nc
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_loaded=0
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
usb_ready_retry=15
Re: my netgear stora has stopped loading from the built-in HDD
April 07, 2018 04:07PM
Dmitriy,

> earlier it was written in the file uEnv.txt, now I
> think the new uboot does not look for this file on
> the IDE disk but only on USB.

That is exactly the reason. Thanks for testing Dmitriy! I'll take a look to confirm if I need to improve the envs script in this case.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: