Freezed Mod Duo

looking for help here, email support has too low speed response

my unit is freezed with both screens showing the logo and “MOD DUO” text

I cant reach recovery mode except with FEL reset, then reinstalling OS makes no improvement

this is an old NAND unit and wasnt working right. it started to sound with the effects mixed with the raw signal when my pedalboard is not designed to do that. I’ve rebooted it, fixed that issue but at next reboot it hangs up like this
it had the latest firmware version

any idea how to fix this?

1 Like

Hey mate,

This sounds pretty serious. I highly recommend tagging the dev team as it sounds critical to your experience.

@falkTX I consider you to be the programming guru here based on your posts, any advice?

1 Like

I try to not get in the way of support anymore since I am usually not in the loop of all that is going on.
But assuming no reply has been sent yet, I would try to do the debugging steps again. There was another topic like this one some months ago where I posted instructions.

For more advanced usage, you can try SSH=1 ./boot-fel-restore.sh instead of running the script directly (note that this only works with the “debug” version from the link on that other topic).
The SSH mode is what we use to debug into the unit and see if anything is wrong, run tests etc.

3 Likes

Thanks @falkTX,

You’re a real champion, and I hope your suggestion helps out.

thanks man, I will tag them

1 Like

I’ve already tried FEL method. I can run the scrip, mount storage device, copy the OS, then seems everything went well. it reboots and…it’s back to the same freezed state

well… I would do it if I knew how to, lol

1 Like

Falk gave you a suggestion, hopefully it works out.

If not, I have always chatted with Jon (João) for help, and he is really great to work with.

I guarantee they will take the time to help you out when you ask.

1 Like

So to tag people put the “@“ symbol before a name. Usually you can do the “@“ symbol and the first letter of the name of the person you want to address and a list will populate.

Sounds like Falk’s suggestion isn’t working for you. Tag or DM Jon and see if maybe he has a solution.

Hope this can get figured out,
-J

I’m in! … at least now I know it’s not completely broken

not sure what to do next

1 Like

run “dmesg” inside SSH and paste the output.
that should tell us if something is wrong.
but this likely can go into support emails. there can be a lot of back and forth which sorta creates noise on the forum in a way.

1 Like

they might be busy with something else, the delay in response is like 2 to 3 days
also it might be useful for others with similar issues. anyway, here is the dmesg output:


[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.38-modduo (builder@57f7c2f6381c) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0)) #10 SMP PREEMPT Wed May 27 02:30:00 UTC 2020
[    0.000000] CPU: ARMv7 Processor [410fc074] revision 4 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: MOD Duo
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] Reserved memory: created CMA memory pool at 0x4a000000, size 96 MiB
[    0.000000] OF: reserved mem: initialized node default-pool, compatible id shared-dma-pool
[    0.000000] On node 0 totalpages: 262144
[    0.000000]   Normal zone: 1536 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 196608 pages, LIFO batch:63
[    0.000000]   HighMem zone: 65536 pages, LIFO batch:15
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: Using PSCI v0.1 Function IDs from DT
[    0.000000] percpu: Embedded 15 pages/cpu s29120 r8192 d24128 u61440
[    0.000000] pcpu-alloc: s29120 r8192 d24128 u61440 alloc=15*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 260608
[    0.000000] Kernel command line: earlyprintk=ttyS0,115200 console=ttyS0,115200 loglevel=9 panic=0 mod_restore=ssh
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 914760K/1048576K available (5027K kernel code, 198K rwdata, 1136K rodata, 18432K init, 287K bss, 35512K reserved, 98304K cma-reserved, 262144K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000]  Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] random: get_random_bytes called from start_kernel+0x2d0/0x458 with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000021] Switching to timer-based delay loop, resolution 41ns
[    0.000481] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000810] clocksource: hstimer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6370868154 ns
[    0.001020] Console: colour dummy device 80x30
[    0.001074] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.001090] pid_max: default: 32768 minimum: 301
[    0.001247] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.001264] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.002074] CPU: Testing write buffer coherency: ok
[    0.002532] CPU0: update cpu_capacity 1024
[    0.002549] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.060053] Setting up static identity map for 0x40100000 - 0x40100060
[    0.080020] rcu: Hierarchical SRCU implementation.
[    0.120088] smp: Bringing up secondary CPUs ...
[    0.210590] CPU1: update cpu_capacity 1024
[    0.210600] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.210751] smp: Brought up 1 node, 2 CPUs
[    0.210770] SMP: Total of 2 processors activated (96.00 BogoMIPS).
[    0.210777] CPU: All CPU(s) started in HYP mode.
[    0.210782] CPU: Virtualization extensions available.
[    0.211544] devtmpfs: initialized
[    0.218315] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 4
[    0.218637] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.218668] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.222152] pinctrl core: initialized pinctrl subsystem
[    0.222915] NET: Registered protocol family 16
[    0.231558] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.249784] SCSI subsystem initialized
[    0.249992] usbcore: registered new interface driver usbfs
[    0.250045] usbcore: registered new interface driver hub
[    0.250190] usbcore: registered new device driver usb
[    0.251533] clocksource: Switched to clocksource arch_sys_counter
[    0.251925] FS-Cache: Loaded
[    0.252142] CacheFiles: Loaded
[    0.258621] NET: Registered protocol family 2
[    0.259319] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.259354] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.259445] TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.259572] TCP: Hash tables configured (established 8192 bind 8192)
[    0.259716] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.259782] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.260032] NET: Registered protocol family 1
[    1.459055] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    1.464850] fuse: init (API version 7.31)
[    1.465630] bounce: pool size: 64 pages
[    1.465688] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    1.465700] io scheduler mq-deadline registered
[    1.465708] io scheduler kyber registered
[    1.466461] sun4i-usb-phy 1c13400.phy: Couldn't request ID GPIO
[    1.469868] sun4i-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    1.479022] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    1.480566] sun4i-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pb not found, using dummy regulator
[    1.481073] printk: console [ttyS0] disabled
[    1.501375] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 45, base_baud = 1500000) is a U6_16550A
[    2.053604] printk: console [ttyS0] enabled
[    2.058283] sun4i-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pi not found, using dummy regulator
[    2.088567] 1c28800.serial: ttyS1 at MMIO 0x1c28800 (irq = 46, base_baud = 1500000) is a U6_16550A
[    2.097940] sun4i-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-ph not found, using dummy regulator
[    2.128107] 1c29000.serial: ttyS2 at MMIO 0x1c29000 (irq = 47, base_baud = 1500000) is a U6_16550A
[    2.157977] 1c29400.serial: ttyS3 at MMIO 0x1c29400 (irq = 48, base_baud = 1500000) is a U6_16550A
[    2.169662] loop: module loaded
[    2.173523] sun4i-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator
[    2.184275] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0x64
[    2.190629] nand: Micron MT29F64G08CBABAWP
[    2.194765] nand: 8192 MiB, MLC, erase size: 2048 KiB, page size: 8192, OOB size: 744
[    2.203705] Bad block table found at page 1048320, version 0x01
[    2.210082] Bad block table found at page 1048064, version 0x01
[    2.216278] nand_read_bbt: bad block at 0x00000b400000
[    2.221411] nand_read_bbt: bad block at 0x00000b600000
[    2.232515] 9 fixed-partitions partitions found on MTD device 1c03000.nand-controller
[    2.240350] Creating 9 MTD partitions on "1c03000.nand-controller":
[    2.246665] 0x000000000000-0x000001000000 : "bootfiles"
[    2.262182] 0x000001000000-0x000002800000 : "restore"
[    2.272209] 0x000002800000-0x000002e00000 : "kernel"
[    2.282164] 0x000002e00000-0x000003000000 : "dtb"
[    2.302047] 0x000003000000-0x000004800000 : "restore-backup"
[    2.308717] 0x000004800000-0x000004e00000 : "kernel-backup"
[    2.322107] 0x000004e00000-0x000005000000 : "dtb-backup"
[    2.332141] 0x000005000000-0x000045000000 : "system"
[    2.352089] 0x000045000000-0x000145000000 : "data"
[    2.359357] libphy: Fixed MDIO Bus: probed
[    2.363550] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.370072] ehci-platform: EHCI generic platform driver
[    2.375836] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    2.382061] ohci-platform: OHCI generic platform driver
[    2.387731] usbcore: registered new interface driver usb-storage
[    2.394090] i2c /dev entries driver
[    2.398493] axp20x-i2c 0-0034: AXP20x variant AXP209 found
[    2.410836] axp20x-gpio axp20x-gpio: DMA mask not set
[    2.417636] axp20x-gpio axp20x-gpio: AXP209 pinctrl and GPIO driver loaded
[    2.425322] ldo1: supplied by regulator-dummy
[    2.429882] ldo2: supplied by regulator-dummy
[    2.435326] ldo3: supplied by regulator-dummy
[    2.440257] ldo4: supplied by regulator-dummy
[    2.444791] ldo5: supplied by regulator-dummy
[    2.449714] dcdc2: supplied by regulator-dummy
[    2.454796] dcdc3: supplied by regulator-dummy
[    2.459681] vdd-int-dll: Bringing 1250000uV into 1300000-1300000uV
[    2.466900] axp20x-i2c 0-0034: AXP20X driver loaded
[    2.473580] axp20x-usb-power-supply axp20x-usb-power-supply: DMA mask not set
[    2.481203] sunxi-wdt 1c20c90.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    2.489879] ledtrig-cpu: registered to indicate activity on CPUs
[    2.496253] NET: Registered protocol family 17
[    2.500791] ThumbEE CPU extension supported.
[    2.505105] Registering SWP/SWPB emulation handler
[    2.514193] ehci-platform 1c14000.usb: EHCI Host Controller
[    2.519805] ehci-platform 1c14000.usb: new USB bus registered, assigned bus number 1
[    2.538323] ehci-platform 1c14000.usb: irq 32, io mem 0x01c14000
[    2.571574] ehci-platform 1c14000.usb: USB 2.0 started, EHCI 1.00
[    2.577936] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[    2.586236] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.593469] usb usb1: Product: EHCI Host Controller
[    2.598343] usb usb1: Manufacturer: Linux 5.4.38-modduo ehci_hcd
[    2.604357] usb usb1: SerialNumber: 1c14000.usb
[    2.609572] hub 1-0:1.0: USB hub found
[    2.613403] hub 1-0:1.0: 1 port detected
[    2.617961] ehci-platform 1c1c000.usb: EHCI Host Controller
[    2.623614] ehci-platform 1c1c000.usb: new USB bus registered, assigned bus number 2
[    2.631692] ehci-platform 1c1c000.usb: irq 35, io mem 0x01c1c000
[    2.661566] ehci-platform 1c1c000.usb: USB 2.0 started, EHCI 1.00
[    2.667879] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[    2.676169] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.683399] usb usb2: Product: EHCI Host Controller
[    2.688273] usb usb2: Manufacturer: Linux 5.4.38-modduo ehci_hcd
[    2.694288] usb usb2: SerialNumber: 1c1c000.usb
[    2.699384] hub 2-0:1.0: USB hub found
[    2.703208] hub 2-0:1.0: 1 port detected
[    2.707744] ohci-platform 1c14400.usb: Generic Platform OHCI controller
[    2.714433] ohci-platform 1c14400.usb: new USB bus registered, assigned bus number 3
[    2.722592] ohci-platform 1c14400.usb: irq 33, io mem 0x01c14400
[    2.795757] usb usb3: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.04
[    2.804051] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.811266] usb usb3: Product: Generic Platform OHCI controller
[    2.817198] usb usb3: Manufacturer: Linux 5.4.38-modduo ohci_hcd
[    2.823212] usb usb3: SerialNumber: 1c14400.usb
[    2.828353] hub 3-0:1.0: USB hub found
[    2.832180] hub 3-0:1.0: 1 port detected
[    2.836721] ohci-platform 1c1c400.usb: Generic Platform OHCI controller
[    2.843411] ohci-platform 1c1c400.usb: new USB bus registered, assigned bus number 4
[    2.851357] ohci-platform 1c1c400.usb: irq 36, io mem 0x01c1c400
[    2.925750] usb usb4: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.04
[    2.934039] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.941254] usb usb4: Product: Generic Platform OHCI controller
[    2.947186] usb usb4: Manufacturer: Linux 5.4.38-modduo ohci_hcd
[    2.953199] usb usb4: SerialNumber: 1c1c400.usb
[    2.958307] hub 4-0:1.0: USB hub found
[    2.962132] hub 4-0:1.0: 1 port detected
[    2.966735] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    2.998634] Freeing unused kernel memory: 18432K
[    3.003477] Run /init as init process
[    3.094949] random: dd: uninitialized urandom read (512 bytes read)
[    3.225818] random: dnsmasq: uninitialized urandom read (128 bytes read)
[    3.233080] random: dnsmasq: uninitialized urandom read (48 bytes read)
[    3.545452] using random self ethernet address
[    3.550054] using random host ethernet address
[    3.555586] usb0: HOST MAC ba:05:9e:33:61:1c
[    3.560087] usb0: MAC a6:e3:26:8f:f8:ab
[    3.564651] using random self ethernet address
[    3.569112] using random host ethernet address
[    3.579984] g_ether gadget: Duo Ethernet, version: Duo
[    3.585677] g_ether gadget: g_ether ready
[    4.061005] g_ether gadget: high-speed config #1: CDC Ethernet (ECM)
[    4.999697] random: crng init done
[    5.003174] random: 2 urandom warning(s) missed due to ratelimiting
[   33.121578] vcc3v0: disabling
[   33.124570] vcc3v3: disabling
[   33.127535] vcc5v0: disabling

1 Like

well the good news is that the nand is read correctly, you can see all the partitions:

[    2.232515] 9 fixed-partitions partitions found on MTD device 1c03000.nand-controller
[    2.240350] Creating 9 MTD partitions on "1c03000.nand-controller":
[    2.246665] 0x000000000000-0x000001000000 : "bootfiles"
[    2.262182] 0x000001000000-0x000002800000 : "restore"
[    2.272209] 0x000002800000-0x000002e00000 : "kernel"
[    2.282164] 0x000002e00000-0x000003000000 : "dtb"
[    2.302047] 0x000003000000-0x000004800000 : "restore-backup"
[    2.308717] 0x000004800000-0x000004e00000 : "kernel-backup"
[    2.322107] 0x000004e00000-0x000005000000 : "dtb-backup"
[    2.332141] 0x000005000000-0x000045000000 : "system"
[    2.352089] 0x000045000000-0x000145000000 : "data"

so download the duo image from Factory Reset Images - MOD Wiki
scp it into the unit like scp moduo*tar root@192.168.51.1:~/ and then from within SSH run ./upgrade
this will install the local file.
hopefully all works this time.

1 Like
# ls -la
total 263624
drwx------    2 root     root           160 Jan  1 00:04 .
drwxr-xr-x   17 root     root           400 May 27  2020 ..
-rw-------    1 root     root             7 Jan  1 00:04 .ash_history
-rw-------    1 root     root     269905920 Jan  1 00:03 modduo-v1.10.2.2340.tar
-rwxr-xr-x    1 root     root           116 May  5  2020 start-fsck
-rwxr-xr-x    1 root     root           251 May  5  2020 start-ssh
-rwxr-xr-x    1 root     root         27767 May 26  2020 upgrade
-rwxr-xr-x    1 root     root           266 May  5  2020 upgrade.run
# ./upgrade
fdisk: can't open '/dev/mmcblk0'
hmi:checking file
hmi:checking file
hmi:file corrupted
hmi:file corrupted
#

I’ve tried to put the image in a pendrive and it worked but still got back to the same hang-up state. still, not sure why it didn’t install it from root directory

this worked from root directory, but again, got back to hangup state

# ./upgrade.run --debug
Running upgrade
check_for_factory_deploy()
do_upgrade()
checking_partitions()
running in full erase mode
creating_partition_table()
fdisk: can't open '/dev/mmcblk0'
format_partition()
formatting restore partition
mkfs.fat 3.0.28 (2015-05-16)
/dev/mmcblk0p1: No such file or directory
formatting system partition
mke2fs 1.42.13 (17-May-2015)
The file /dev/mmcblk0p2 does not exist and no size was specified.
formatting user data partition
mke2fs 1.42.13 (17-May-2015)
The file /dev/mmcblk0p3 does not exist and no size was specified.
check_upgrade_file()
mod tar file found: '/root/modduo-v1.10.2.2340.tar'
hmi:checking file
hmi:checking file
mod tar file '/root/modduo-v1.10.2.2340.tar' deleted in order to save space
decrypting files
checking file integrity
/root
install_bootloader()
hmi:installing bootloader
hmi:installing bootloader
2047+0 records in
2047+0 records out
305+1 records in
305+1 records out
bootloader installation finished
install_restore()
hmi:installing restore
hmi:installing restore
mounting restore partition
mount: mounting /dev/mmcblk0p1 on /mnt/restore failed: No such file or directory
extracting restore
umounting and cleaning restore files
umount: can't unmount /mnt/restore: Invalid argument
install_system()
hmi:installing system
hmi:installing system
mounting system partition
mount: mounting /dev/mmcblk0p2 on /mnt/system failed: No such file or directory
extracting system
umounting and cleaning system files
umount: can't unmount /mnt/system: Invalid argument
install_data()
hmi:installing user data
hmi:installing user data
mounting data partition
mount: mounting /dev/mmcblk0p3 on /mnt/data failed: No such file or directory
extracting data
umounting and cleaning data files
umount: can't unmount /mnt/data: Invalid argument
update_firmware()
hmi:updating controller
hmi:updating controller
Configuring HMI...
Flashing HMI...
lpc21isp version 1.97
File /root/workdir/mod-controller.bin:
        loaded...
        image size : 112052
Image size : 112052
Synchronizing (ESC to abort). OK
Read bootcode version: 2
4
Read part ID: LPC1759, 512 kiB FLASH / 64 kiB SRAM (0x25113737)
Will start programming at Sector 1 if possible, and conclude with Sector 0 to ensure that checksum is written last.
Erasing sector 0 first, to invalidate checksum. OK 
Sector 1: ...............................................................................................
Sector 2: ...............................................................................................
Sector 3: ...............................................................................................
Sector 4: ...............................................................................................
Sector 5: ...............................................................................................
Sector 6: ...............................................................................................
Sector 7: ...............................................................................................
Sector 8: ...............................................................................................
Sector 9: ...............................................................................................
Sector 10: ...............................................................................................
Sector 11: ...............................................................................................
Sector 12: ...............................................................................................
Sector 13: ...............................................................................................
Sector 14: ...............................................................................................
Sector 15: ...............................................................................................
Sector 16: ...............................................................................................|.............................................................................................|.............................................................................................|.............................................................................................|.............................................................................................|.............................................................................................|.............................................................................................|.............................................................................................
Sector 17: ...............................................................................................|.............................................................................................|.............................................................................................|.....................................
Sector 0: ..............................................................................................
Download Finished... taking 19 seconds
Now launching the brand new code
finish()
hmi:please wait
hmi:please wait
finish() done
# Connection to 192.168.51.1 closed by remote host.
Connection to 192.168.51.1 closed.

something is off, the OS is trying to use the MMC even though this unit is a NAND one.
can we setup a shared/remote session?

sure, please give me your email