D-Link DIR-685 after sysupgrade hangs

Hi

I'm trying to install openwrt on my d-link Dir-685.

I followed the wiki

In the wiki they recommend to install first the image

https://dflund.se/~triad/krad/dlink-dir-685/openwrt-gemini-dlink_dir-685-squashfs-factory.bin

run this image, copy the sysupgrade image to temp

http://downloads.openwrt.org/releases/19.07.5/targets/gemini/generic/openwrt-19.07.5-gemini-dlink_dir-685-squashfs-sysupgrade.bin

If this one is installed and it reboots, than it hangs on Waiting for root device /dev/sda1.

Is the problem that the first image is a newer kernel? Do i need another sysupgrade image?

root@OpenWrt:/# sysupgrade /tmp/openwrt-19.07.5-gemini-dlink_dir-685-squashfs-sy
supgrade.bin
Saving config files...
Commencing upgrade. Closing all shell sessions.
Watchdog handover: fd=3
- watchdog -
killall: telnetd: no process killed
Sending TERM to remaining processes ... urngd logd mdadm netifd odhcpd dnsmasq ntpd ubusd
Sending KILL to remaining processes ...
Switching to ramdisk...
Performing system upgrade...
Unlocking firmware ...

Writing from <stdin> to firmware ...
Appending jffs2 data from /tmp/sysupgrade.tgz to firmware..

Upgrade completed
Rebooting system...
umount: can't unmount /dev: Resource busy
[ 1161.384269] reboot: Restarting system


ILI9322_init......
Enabling TVE controller
@@===in gpio0_16high value 110000




Storlink SL351x Boot Loader [Linux2], version 1.0.9
Built by linux, 11:45:14, Jun 30 2009

Alpha version v0.5 SVN Revision  147

Processor: SL3516c3
CPU Rate: 300000000
AHB Bus Clock:150MHz    Ratio:2/1
MAC 1 Address: 00:50:C2:11:11:11
MAC 2 Address: 00:50:C2:22:22:22
inet addr: 192.168.0.1/255.255.255.0
==> enter ^C to abort booting within 1 seconds ......
Load kernel from 0x30040000 to 0x1600000 size 2359296
v3 check
Image header (0x00000024):
  magic  : 0x20080321
  size   : 2359136 (0x23ff60)
  offset : 0x00000000
  devname: '/dev/mtdblock/1'
  digest : Advance to next block : offset=2359296(0x240000), size=2359296(0x240000)
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.209 (builder@buildhost) (gcc version 7.5.0 (OpenWrt GCC 7.5.0 r11257-5090152ae3)) #0 PREEMPT Sun Dec 6 07:31:03 2020
[    0.000000] CPU: FA526 [66015261] revision 1 (ARMv4), cr=0000397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: D-Link DIR-685 Xtreme N Storage Router
[    0.000000] Memory policy: Data cache writeback
[    0.000000] random: get_random_bytes called from start_kernel+0x74/0x3e0 with crng_init=0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,19200n8 root=/dev/sda1 rw rootwait
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 122228K/131072K available (4671K kernel code, 160K rwdata, 1212K rodata, 1024K init, 224K bss, 8844K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc8800000 - 0xff800000   ( 880 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc058fe00   (5664 kB)
[    0.000000]       .init : 0xc0700000 - 0xc0800000   (1024 kB)
[    0.000000]       .data : 0xc0800000 - 0xc0828100   ( 161 kB)
[    0.000000]        .bss : 0xc082cc90 - 0xc0864f94   ( 225 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]     Tasks RCU enabled.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] clocksource: FTTMR010-TIMER2: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.000026] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
[    0.000119] Switching to timer-based delay loop, resolution 40ns
[    0.000847] Console: colour dummy device 80x30
[    0.000995] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.001059] pid_max: default: 32768 minimum: 301
[    0.001673] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001763] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.003494] CPU: Testing write buffer coherency: ok
[    0.006331] Setting up static identity map for 0x100000 - 0x100048
[    0.006865] Hierarchical SRCU implementation.
[    0.022952] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.023026] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.023303] pinctrl core: initialized pinctrl subsystem
[    0.026615] NET: Registered protocol family 16
[    0.029425] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.044485] No ATAGs?
[    0.051344] pinctrl-gemini 40000000.syscon:pinctrl: detected 3516 chip variant
[    0.051421] pinctrl-gemini 40000000.syscon:pinctrl: GLOBAL MISC CTRL at boot: 0x83c22237
[    0.051463] pinctrl-gemini 40000000.syscon:pinctrl: pad group DRAM enabled
[    0.051502] pinctrl-gemini 40000000.syscon:pinctrl: pad group IDE enabled
[    0.051539] pinctrl-gemini 40000000.syscon:pinctrl: pad group PCI enabled
[    0.051576] pinctrl-gemini 40000000.syscon:pinctrl: pad group TVC enabled
[    0.051613] pinctrl-gemini 40000000.syscon:pinctrl: pad group PCI CLK enabled
[    0.051653] pinctrl-gemini 40000000.syscon:pinctrl: flash pin is not set
[    0.052887] pinctrl-gemini 40000000.syscon:pinctrl: ACTIVATE function "dram" with group "dramgrp"
[    0.052958] pinctrl-gemini 40000000.syscon:pinctrl: padgroup DRAM enabled
[    0.053019] pinctrl-gemini 40000000.syscon:pinctrl: ACTIVATE function "system" with group "systemgrp"
[    0.053083] pinctrl-gemini 40000000.syscon:pinctrl: ACTIVATE function "vcontrol" with group "vcontrolgrp"
[    0.053422] pinctrl-gemini 40000000.syscon:pinctrl: initialized Gemini pin control driver
[    0.194868] pl08xdmac 67000000.dma-controller: FTDMAC020 1.16 rel 1
[    0.194928] pl08xdmac 67000000.dma-controller: FTDMAC020 4 channels, has built-in bridge, AHB0 and AHB1, supports linked lists
[    0.195179] pl08xdmac 67000000.dma-controller: initialized 4 virtual memcpy channels
[    0.198199] pl08xdmac 67000000.dma-controller: DMA: PL080 rev0 at 0x67000000 irq 27
[    0.199297] Gemini SoC 3516 revision c3, set arbitration 00200030
[    0.203738] vgaarb: loaded
[    0.206527] SCSI subsystem initialized
[    0.225867] clocksource: Switched to clocksource FTTMR010-TIMER2
[    0.310366] NET: Registered protocol family 2
[    0.313344] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.313458] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.313538] TCP: Hash tables configured (established 1024 bind 1024)
[    0.314019] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.314124] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.314852] NET: Registered protocol family 1
[    0.322513] Crashlog allocated RAM at address 0x3f00000
[    0.325112] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    0.399162] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.399213] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.427013] io scheduler noop registered
[    0.427066] io scheduler deadline registered
[    0.428941] io scheduler cfq registered (default)
[    0.428998] io scheduler mq-deadline registered
[    0.429028] io scheduler kyber registered
[    0.430196] pinctrl-gemini 40000000.syscon:pinctrl: ACTIVATE function "gpio0" with group "gpio0bgrp"
[    0.430284] pinctrl-gemini 40000000.syscon:pinctrl: ACTIVATE function "gpio0" with group "gpio0cgrp"
[    0.430340] pinctrl-gemini 40000000.syscon:pinctrl: padgroup LPC disabled
[    0.430382] pinctrl-gemini 40000000.syscon:pinctrl: padgroup SSP disabled
[    0.430430] pinctrl-gemini 40000000.syscon:pinctrl: ACTIVATE function "gpio0" with group "gpio0egrp"
[    0.430482] pinctrl-gemini 40000000.syscon:pinctrl: padgroup LCD disabled
[    0.430531] pinctrl-gemini 40000000.syscon:pinctrl: ACTIVATE function "gpio0" with group "gpio0fgrp"
[    0.430583] pinctrl-gemini 40000000.syscon:pinctrl: padgroup NAND flash disabled
[    0.430639] pinctrl-gemini 40000000.syscon:pinctrl: ACTIVATE function "gpio0" with group "gpio0ggrp"
[    0.430692] pinctrl-gemini 40000000.syscon:pinctrl: padgroup parallel flash disabled
[    0.430743] pinctrl-gemini 40000000.syscon:pinctrl: ACTIVATE function "gpio0" with group "gpio0hgrp"
[    0.430797] pinctrl-gemini 40000000.syscon:pinctrl: padgroup serial flash disabled
[    0.433185] ftgpio010-gpio 4d000000.gpio: FTGPIO010 @c889d000 registered
[    0.434009] pinctrl-gemini 40000000.syscon:pinctrl: ACTIVATE function "gpio1" with group "gpio1bgrp"
[    0.434087] pinctrl-gemini 40000000.syscon:pinctrl: padgroup IDE disabled
[    0.435252] ftgpio010-gpio 4e000000.gpio: FTGPIO010 @c889f000 registered
[    0.438058] ftgpio010-gpio 4f000000.gpio: FTGPIO010 @c88a1000 registered
[    0.440588] pinctrl-gemini 40000000.syscon:pinctrl: ACTIVATE function "pci" with group "pcigrp"
[    0.440664] pinctrl-gemini 40000000.syscon:pinctrl: padgroup PCI enabled
[    0.440707] pinctrl-gemini 40000000.syscon:pinctrl: padgroup PCI CLK enabled
[    0.448436] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.472281] pinctrl-gemini 40000000.syscon:pinctrl: ACTIVATE function "uart" with group "uartrxtxgrp"
[    0.474942] console [ttyS0] disabled
[    0.475220] 42000000.serial: ttyS0 at MMIO 0x42000000 (irq = 18, base_baud = 3000000) is a 16550A
[    4.729352] console [ttyS0] enabled
[    4.757043] pinctrl-gemini 40000000.syscon:pinctrl: ACTIVATE function "sata" with group "satagrp"
[    4.811581] gemini_sata_bridge 46000000.sata: SATA ID 00000e00, PHY ID: 01000100
[    4.856378] gemini_sata_bridge 46000000.sata: set up the Gemini IDE/SATA nexus
[    4.901704] pata_ftide010 63000000.ata: set up Gemini PATA0
[    4.936269] pata_ftide010 63000000.ata: device ID 00000500, irq 26, reg [mem 0x63000000-0x63000fff]
[    4.990826] pata_ftide010 63000000.ata: SATA0 (master) start
[    6.156014] gemini_sata_bridge 46000000.sata: SATA0 PHY not ready
[    6.192608] pata_ftide010 63000000.ata: brought 0 bridges online
[    6.228672] pata_ftide010 63000000.ata: failed to start port 0 (errno=-22)
[    6.270112] pata_ftide010: probe of 63000000.ata failed with error -22
[    6.321241] libphy: Fixed MDIO Bus: probed
[    6.359099] pinctrl-gemini 40000000.syscon:pinctrl: ACTIVATE function "gmii" with group "gmii_gmac0_grp"
[    6.416492] pinctrl-gemini 40000000.syscon:pinctrl: set group gmii_gmac0_grp to 16 mA drive strength mask 00030000 val 00030000
[    6.486151] gmac-gemini 60000000.ethernet: Ethernet device ID: 0x000, revision 0x1
[    6.533297] gemini-ethernet-port 60008000.ethernet-port: probe 60008000.ethernet-port ID 0
[    6.584198] gemini-ethernet-port 60008000.ethernet-port: using a random ethernet address
[    6.635796] gemini-ethernet-port 60008000.ethernet-port eth0: irq 31, DMA @ 0x0x60008000, GMAC @ 0x0x6000a000
[    6.696256] gemini-ethernet-port 60008000.ethernet-port eth0: PHY init failed, deferring to ifup time
[    6.753770] gemini-ethernet-port 6000c000.ethernet-port: probe 6000c000.ethernet-port ID 1
[    6.805170] gemini-ethernet-port 6000c000.ethernet-port: using a random ethernet address
[    6.857042] gemini-ethernet-port 6000c000.ethernet-port eth1: irq 32, DMA @ 0x0x6000c000, GMAC @ 0x0x6000e000
[    6.917414] gemini-ethernet-port 6000c000.ethernet-port eth1: PHY init failed, deferring to ifup time
[    6.974874] pinctrl-gemini 40000000.syscon:pinctrl: ACTIVATE function "rtc" with group "rtcgrp"
[    7.029207] rtc-ftrtc010 45000000.rtc: rtc core: registered 45000000.rtc as rtc0
[    7.075693] pinctrl-gemini 40000000.syscon:pinctrl: ACTIVATE function "power" with group "powergrp"
[    7.131178] gemini-poweroff 4b000000.power-controller: other power management IRQ
[    7.176350] gemini-poweroff 4b000000.power-controller: Gemini poweroff driver registered
[    7.231166] gpio-fan gpio-fan: GPIO fan initialized
[    7.264596] ftwdt010-wdt 41000000.watchdog: FTWDT010 watchdog driver enabled
[    7.317291] NET: Registered protocol family 10
[    7.350709] Segment Routing with IPv6
[    7.373409] NET: Registered protocol family 17
[    7.400584] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    7.479586] 8021q: 802.1Q VLAN Support v1.8
[    7.515033] pinctrl-gemini 40000000.syscon:pinctrl: ACTIVATE function "pci" with group "pcigrp"
[    7.569603] pinctrl-gemini 40000000.syscon:pinctrl: padgroup PCI enabled
[    7.610025] pinctrl-gemini 40000000.syscon:pinctrl: padgroup PCI CLK enabled
[    7.652743] OF: PCI: host bridge /soc/pci@50000000 ranges:
[    7.686287] OF: PCI:    IO 0x50000000..0x500fffff -> 0x00000000
[    7.721989] OF: PCI:   MEM 0x58000000..0x5fffffff -> 0x58000000
[    7.758632] ftpci100 50000000.pci: 33MHz bus is 66MHz capable
[    7.793266] ftpci100 50000000.pci: DMA MEM1 BASE: 0x0000000000000000 -> 0x0000000007ffffff config 00070000
[    7.851232] ftpci100 50000000.pci: DMA MEM2 BASE: 0x0000000000000000 -> 0x0000000003ffffff config 00060000
[    7.909177] ftpci100 50000000.pci: DMA MEM3 BASE: 0x0000000000000000 -> 0x0000000003ffffff config 00060000
[    7.967996] ftpci100 50000000.pci: PCI host bridge to bus 0000:00
[    8.004927] pci_bus 0000:00: root bus resource [bus 00-ff]
[    8.038011] pci_bus 0000:00: root bus resource [io  0x0000-0xfffff]
[    8.075745] pci_bus 0000:00: root bus resource [mem 0x58000000-0x5fffffff]
[    8.119662] PCI: bus0: Fast back to back transfers disabled
[    8.153864] pci 0000:00:0c.0: BAR 0: assigned [mem 0x58000000-0x580fffff pref]
[    8.197399] pci 0000:00:0c.0: BAR 1: assigned [mem 0x58100000-0x5810ffff pref]
[    8.241937] rtc-ftrtc010 45000000.rtc: setting system clock to 1970-01-01 00:00:00 UTC (0)
[    8.292590] display-power: disabling
[    8.315290] Waiting for root device /dev/sda1...
[    8.995922] random: fast init done

You could try to bypass it by temp putting a HDD in the disk drawer.
Make sure there's at least one partition on it, and perhaps format it to ext4.

Full instruction from the source of the initial image:

1 Like

I don't have a harddisk cradle or PC to prepare it. Is an harddisk in the device required to install openwrt on it?

Should it work to with an usb thumb drive?, If no harddisk is present maybe usb thumb drive is /dev/sda?

Don't know, it was just a way to get around the "error" :wink:

Thumb drive might work, they're usually presented in the same way as regular drive in the OS.

Are you sure the device is "hanging" ?
just because the serial console is in a wait state, doesn't mean the rest doesn't work as it's supposed to.

I tried the USB and formatted as ext4 and placed the files on it, and waited 30 minutes but can't get console acccess, and aslo netwokring is not starting

I get one message more.after 3 min. (random: crng init done)

    8.291402] display-power: disabling
[    8.314114] Waiting for root device /dev/sda1...
[    9.084409] random: fast init done
[  218.174554] random: crng init done

I can try later today the snaphots, and I see that there is a difference for squashfs and for ext4

Did the initial openwrt image you used work ?

The one from dflund.se, or did you just boot it, and did a sysupgrade from the serial console straight away?

1 Like

The first image (form dflund factory image, works) from there I copied de sysupgrade image (19.0.7.5) to the device, en did a sysupgrade in the console, and then it hangs

If you're able to flash back the dflund image, you could try a sysupgrade with -n, to wipe the current settings.

2 Likes

I can try that. I can with TFTP flash the dflund image back and that and than a sysupgrade with -n

I tried different options and it works with the development build

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.