Welcome! Log In Create A New Profile

Advanced

Debian on Iomega EZ Media & Backup Center

Posted by Berryshake 
Re: Debian on Iomega EZ Media & Backup Center
February 12, 2019 07:34PM
$ dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.20.6-kirkwood-tld-1 (root@tldDebian) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)) #1 PREEMPT Thu Jan 31 21:41:45 PST 2019
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: Lenovo Iomega EZ
[    0.000000] Memory policy: Data cache writeback
[    0.000000] On node 0 totalpages: 32768
[    0.000000]   Normal zone: 256 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32768 pages, LIFO batch:7
[    0.000000] random: get_random_bytes called from start_kernel+0x7c/0x4e8 with crng_init=0
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=spi_flash:0x7e000@0(u-boot),0x1000@0x7f000(env),0x1000@0x7e000(env2) :::DB88FXX81:eth0:none init=/bin/systemd
[    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: 106400K/131072K available (9216K kernel code, 806K rwdata, 2912K rodata, 1024K init, 290K bss, 24672K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
                   vector  : 0xffff0000 - 0xffff1000   (   4 kB)
                   fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
                   vmalloc : 0xc8800000 - 0xff800000   ( 880 MB)
                   lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
                   modules : 0xbf000000 - 0xc0000000   (  16 MB)
                     .text : 0x(ptrval) - 0x(ptrval)   (10208 kB)
                     .init : 0x(ptrval) - 0x(ptrval)   (1024 kB)
                     .data : 0x(ptrval) - 0x(ptrval)   ( 807 kB)
                      .bss : 0x(ptrval) - 0x(ptrval)   ( 291 kB)
[    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] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000008] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000042] Switching to timer-based delay loop, resolution 5ns
[    0.000821] Console: colour dummy device 80x30
[    0.000870] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.000894] pid_max: default: 32768 minimum: 301
[    0.001272] LSM: Security Framework initializing
[    0.001444] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001468] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.002546] CPU: Testing write buffer coherency: ok
[    0.004137] Setting up static identity map for 0x100000 - 0x100058
[    0.004407] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.004678] rcu: Hierarchical SRCU implementation.
[    0.007824] devtmpfs: initialized
[    0.014471] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.014501] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.014860] prandom: seed boundary self test passed
[    0.019066] prandom: 100 self tests passed
[    0.019080] pinctrl core: initialized pinctrl subsystem
[    0.020529] NET: Registered protocol family 16
[    0.021065] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.021841] audit: initializing netlink subsys (disabled)
[    0.023070] audit: type=2000 audit(0.020:1): state=initialized audit_enabled=0 res=1
[    0.023185] cpuidle: using governor ladder
[    0.023258] cpuidle: using governor menu
[    0.023813] Feroceon L2: Enabling L2
[    0.023855] Feroceon L2: Cache support initialised.
[    0.024201] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.029452] No ATAGs?
[    0.038193] vgaarb: loaded
[    0.038543] SCSI subsystem initialized
[    0.038745] libata version 3.00 loaded.
[    0.038996] usbcore: registered new interface driver usbfs
[    0.039056] usbcore: registered new interface driver hub
[    0.039112] usbcore: registered new device driver usb
[    0.039287] pps_core: LinuxPPS API ver. 1 registered
[    0.039298] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.039329] PTP clock support registered
[    0.040430] clocksource: Switched to clocksource orion_clocksource
[    0.145010] VFS: Disk quotas dquot_6.6.0
[    0.145102] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.154047] NET: Registered protocol family 2
[    0.154881] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[    0.154916] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.154940] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.154963] TCP: Hash tables configured (established 1024 bind 1024)
[    0.155053] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.155080] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.155290] NET: Registered protocol family 1
[    0.155914] RPC: Registered named UNIX socket transport module.
[    0.155927] RPC: Registered udp transport module.
[    0.155935] RPC: Registered tcp transport module.
[    0.155943] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.155955] PCI: CLS 0 bytes, default 32
[    0.156181] Unpacking initramfs...
[    0.865028] Freeing initrd memory: 7988K
[    0.865264] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.866479] Initialise system trusted keyrings
[    0.866531] Key type blacklist registered
[    0.866756] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    0.866852] zbud: loaded
[    0.867903] NFS: Registering the id_resolver key type
[    0.867930] Key type id_resolver registered
[    0.867939] Key type id_legacy registered
[    0.867958] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.867968] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.868259] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.868476] fuse init (API version 7.28)
[    0.868861] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.869036] orangefs_init: module version upstream loaded
[    0.869047] SGI XFS with ACLs, security attributes, realtime, scrub, no debug enabled
[    2.550437] random: fast init done
[    6.935546] Key type asymmetric registered
[    6.935564] Asymmetric key parser 'x509' registered
[    6.935632] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    6.935652] io scheduler noop registered
[    6.935661] io scheduler deadline registered
[    6.935771] io scheduler cfq registered (default)
[    6.937132] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    6.939093] mv_xor f1060800.xor: Marvell shared XOR driver
[    7.001257] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    7.001512] mv_xor f1060900.xor: Marvell shared XOR driver
[    7.061263] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    7.061750] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    7.062912] printk: console [ttyS0] disabled
[    7.062981] f1012100.serial: ttyS0 at MMIO 0xf1012100 (irq = 27, base_baud = 12500000) is a 16550A
[    7.714791] printk: console [ttyS0] enabled
[    7.726029] loop: module loaded
[    7.729488] sata_mv f1080000.sata: version 1.28
[    7.729737] sata_mv f1080000.sata: slots 32 ports 2
[    7.737197] scsi host0: sata_mv
[    7.740864] scsi host1: sata_mv
[    7.744200] ata1: SATA max UDMA/133 irq 34
[    7.748320] ata2: SATA max UDMA/133 irq 34
[    7.753967] m25p80 spi0.0: found mx25l8005, expected mx25l8006e
[    7.759927] m25p80 spi0.0: mx25l8005 (1024 Kbytes)
[    7.764832] 3 fixed-partitions partitions found on MTD device spi0.0
[    7.771239] Creating 3 MTD partitions on "spi0.0":
[    7.776052] 0x000000000000-0x00000007e000 : "u-boot"
[    7.781055] mtd: partition "u-boot" doesn't end on an erase/write block -- force read-only
[    7.790586] 0x00000007e000-0x00000007f000 : "u-boot env2"
[    7.796009] mtd: partition "u-boot env2" doesn't start on an erase/write block boundary -- force read-only
[    7.806801] 0x00000007f000-0x000000080000 : "u-boot env"
[    7.812172] mtd: partition "u-boot env" doesn't start on an erase/write block boundary -- force read-only
[    7.823937] libphy: Fixed MDIO Bus: probed
[    7.828781] libphy: orion_mdio_bus: probed
[    7.837917] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    7.845286] mv643xx_eth_port mv643xx_eth_port.0: DMA mask not set
[    7.852521] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:d0:b8:14:00:00
[    7.861486] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    7.868067] ehci-pci: EHCI PCI platform driver
[    7.872649] ehci-orion: EHCI orion driver
[    7.876866] orion-ehci f1050000.ehci: EHCI Host Controller
[    7.882461] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    7.890377] orion-ehci f1050000.ehci: irq 31, io mem 0xf1050000
[    7.920465] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    7.926741] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.20
[    7.935068] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    7.942341] usb usb1: Product: EHCI Host Controller
[    7.947242] usb usb1: Manufacturer: Linux 4.20.6-kirkwood-tld-1 ehci_hcd
[    7.953990] usb usb1: SerialNumber: f1050000.ehci
[    7.959276] hub 1-0:1.0: USB hub found
[    7.963137] hub 1-0:1.0: 1 port detected
[    7.967747] usbcore: registered new interface driver usb-storage
[    7.974223] mousedev: PS/2 mouse device common for all mice
[    7.980343] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
[    7.987491] i2c /dev entries driver
[    7.993472] hidraw: raw HID events driver (C) Jiri Kosina
[    7.999225] drop_monitor: Initializing network drop monitor service
[    8.005893] NET: Registered protocol family 17
[    8.010631] Key type dns_resolver registered
[    8.015802] registered taskstats version 1
[    8.019919] Loading compiled-in X.509 certificates
[    8.024855] zswap: loaded using pool lzo/zbud
[    8.058687] Key type big_key registered
[    8.076289] Key type encrypted registered
[    8.082391] rtc-mv f1010300.rtc: setting system clock to 2019-02-13 00:42:52 UTC (1550018572)
[    8.260507] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    8.269307] ata1.00: ATA-9: WDC WD60EFRX-68MYMN1, 82.00A82, max UDMA/133
[    8.276074] ata1.00: 11721045168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    8.285556] ata1.00: configured for UDMA/133
[    8.300359] scsi 0:0:0:0: Direct-Access     ATA      WDC WD60EFRX-68M 0A82 PQ: 0 ANSI: 5
[    8.309445] sd 0:0:0:0: [sda] 11721045168 512-byte logical blocks: (6.00 TB/5.46 TiB)
[    8.317796] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    8.323204] sd 0:0:0:0: [sda] Write Protect is off
[    8.328021] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    8.328136] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    8.337277] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    8.386391]  sda: sda1 sda2
[    8.390825] sd 0:0:0:0: [sda] Attached SCSI disk
[    8.548128] usb 1-1: New USB device found, idVendor=058f, idProduct=6387, bcdDevice= 1.03
[    8.556398] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    8.563622] usb 1-1: Product: Mass Storage
[    8.567739] usb 1-1: Manufacturer: Generic
[    8.571888] usb 1-1: SerialNumber: E10E3EE9
[    8.576805] usb-storage 1-1:1.0: USB Mass Storage device detected
[    8.583380] scsi host2: usb-storage 1-1:1.0
[    8.653930] ata2: SATA link down (SStatus 0 SControl F300)
[    8.673146] Freeing unused kernel memory: 1024K
[    8.678199] Checked W+X mappings: passed, no W+X pages found
[    8.683915] Run /init as init process
[    8.783571] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    8.801311] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    8.808614] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    9.165258] usbcore: registered new interface driver uas
[    9.602735] scsi 2:0:0:0: Direct-Access     Generic  Flash Disk       8.07 PQ: 0 ANSI: 2
[    9.618064] sd 2:0:0:0: [sdb] 8220672 512-byte logical blocks: (4.21 GB/3.92 GiB)
[    9.631062] sd 2:0:0:0: [sdb] Write Protect is off
[    9.635910] sd 2:0:0:0: [sdb] Mode Sense: 03 00 00 00
[    9.642822] sd 2:0:0:0: [sdb] No Caching mode page found
[    9.648195] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[    9.953150]  sdb: sdb1
[    9.961306] sd 2:0:0:0: [sdb] Attached SCSI removable disk
[   20.285466] EXT4-fs (sdb1): mounting ext3 file system using the ext4 subsystem
[   20.305475] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
[   21.116746] NET: Registered protocol family 10
[   21.122560] Segment Routing with IPv6
[   21.157810] systemd[1]: systemd 232 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
[   21.176593] systemd[1]: Detected architecture arm.
[   21.211653] systemd[1]: Set hostname to <Jeon-EZ>.
[   21.874006] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[   21.920992] systemd[1]: Listening on udev Control Socket.
[   21.961028] systemd[1]: Listening on Journal Socket.
[   21.990984] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[   22.030869] systemd[1]: Listening on Journal Socket (/dev/log).
[   22.070698] systemd[1]: Reached target Swap.
[   22.100838] systemd[1]: Listening on fsck to fsckd communication Socket.
[   22.650749] EXT4-fs (sdb1): re-mounted. Opts: errors=remount-ro
[   23.601445] systemd-journald[229]: Received request to flush runtime journal from PID 1
[   24.495606] random: crng init done
[   24.499040] random: 7 urandom warning(s) missed due to ratelimiting
[   24.764551] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[   25.292819] adt7475 0-002e: hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[   25.338184] orion_wdt: Initial timeout 21 sec
[   25.390844] adt7475 0-002e: ADT7473 device, revision 2
[   25.472489] adt7475 0-002e: Bypassing attenuators on: in1
[   25.608194] marvell-cesa f1030000.crypto: CESA device successfully registered
[   25.632488] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   25.703124] sd 2:0:0:0: Attached scsi generic sg1 type 0
[   28.445550] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   28.455506] mv643xx_eth_port mv643xx_eth_port.0 eth0: link down
[   28.464704] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   32.228597] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   32.238527] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   37.511508] NFSD: starting 45-second grace period (net f000001c)

$ fw_printenv
[...]
if_netconsole=ping $serverip
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
preboot=run if_netconsole start_netconsole
bootcmd1=ide read 0x40000 0x800 0x1800; ide read 0x900000 0x2000 0x1800; setenv bootargs $(console) $(bootargs_root) $(bootargs_mtd) $(bootargs_end); bootm 0x40000 0x900000; run bootcmd2
bootcmd=ide reset; run usb_bootcmd; run bootcmd1
usb_z_args=setenv bootargs $(console) root=/dev/sdb1 rootdelay=10 $(bootargs_mtd) $(bootargs_end)
usb_z_boot=ext2load usb 0:1 0x40000 /boot/zImage; bootm 0x40000
usb_u_args=setenv bootargs $(console) root=LABEL=rootfs rootdelay=10 $(bootargs_mtd) $(bootargs_end) init=/bin/systemd
usb_u_boot=ext2load usb 0:1 0x40000 /boot/uImage; ext2load usb 0:1 0x2000000 /boot/uInitrd; bootm 0x40000 0x2000000
usb_bootcmd=usb reset; run usb_z_args; run usb_z_boot; run usb_u_args; run usb_u_boot; usb stop

$ cat /proc/mtd
dev:    size   erasesize  name
mtd0: 0007e000 00010000 "u-boot"
mtd1: 00001000 00010000 "u-boot env2"
mtd2: 00001000 00010000 "u-boot env"

Unfortunately, I didn't backup stock u-boot envs. But I believe it was
[...]
bootcmd=ide reset; ide read 0x40000 0x800 0x1800; ide read 0x900000 0x2000 0x2000; setenv bootargs $(console) $(bootargs_root) $(bootargs_mtd) $(bootargs_end); bootm 0x40000 0x900000;run bootcmd2
https://forum.doozan.com/read.php?2,15887,15887#msg-15887


The result of unplugging the USB and rebooting is as follows: (lenovo firmware v4.1.406.34763)
$ dmesg
Linux version 2.6.31.8 (soho@bsoho082.iomegacorp.com) (gcc version 4.7.2 (crosstool-NG 1.20.0) ) Tue Oct 16 07:34:10 EDT 2018 v0.0.9 Tue Oct 16 07:34:10 EDT 2018
CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
CPU: VIVT data cache, VIVT instruction cache
Machine: Feroceon-KW
Using UBoot passing parameters structure
Memory policy: ECC disabled, Data cache writeback
On node 0 totalpages: 32768
free_area_init_node: node 0, pgdat c049b1d4, node_mem_map c0bdd000
  Normal zone: 256 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 32512 pages, LIFO batch:7
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 32512
Kernel command line: console=ttyS0,115200 root=/dev/ram0 mtdparts=spi_flash:0x7e000@0(u-boot),0x1000@0x7f000(env),0x1000@0x7e000(env2) :::DB88FXX81:eth0:none
PID hash table entries: 512 (order: 9, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 128MB = 128MB total
Memory: 114844KB available (4364K code, 319K data, 136K init, 0K highmem)
Hierarchical RCU implementation.
NR_IRQS:128
Console: colour dummy device 80x30
Calibrating delay loop... 1192.75 BogoMIPS (lpj=5963776)
Security Framework initialized
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
xor: measuring software checksum speed
   arm4regs  :  1085.200 MB/sec
   8regs     :   650.800 MB/sec
   32regs    :   840.400 MB/sec
xor: using function: arm4regs (1085.200 MB/sec)
NET: Registered protocol family 16
Feroceon L2: Enabling L2
Feroceon L2: Cache support initialised.

CPU Interface
-------------
SDRAM_CS0 ....base 00000000, size 128MB
SDRAM_CS1 ....disable
SDRAM_CS2 ....disable
SDRAM_CS3 ....disable
PEX0_MEM ....base e0000000, size 128MB
PEX0_IO ....base f2000000, size   1MB
PEX1_MEM ....base e8000000, size 128MB
PEX1_IO ....base f2100000, size   1MB
INTER_REGS ....base f1000000, size   1MB
NFLASH_CS ....base fa000000, size   2MB
SPI_CS ....base f4000000, size  16MB
BOOT_ROM_CS ....no such
DEV_BOOTCS ....no such
CRYPT_ENG ....base f0000000, size   2MB

  Marvell Development Board (LSP Version KW_LSP_5.1.3_patch25)-- DB-88F6282A-BP  Soc: 88F6282 A1 LE

Detected Tclk 200000000 and SysClk 400000000
MV Buttons Device Load
Marvell USB EHCI Host controller #0: c403e740
PEX0 interface detected no Link.
PEX1 interface detected no Link.
PCI: bus0: Fast back to back transfers enabled
PCI: bus1: Fast back to back transfers enabled
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
raid6: int32x1    107 MB/s
raid6: int32x2    124 MB/s
raid6: int32x4    124 MB/s
raid6: int32x8    121 MB/s
raid6: using algorithm int32x4 (124 MB/s)
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
NET: Registered protocol family 1
Trying to unpack rootfs image as initramfs...
rootfs image is not initramfs (no cpio magic); looks like an initrd
Freeing initrd memory: 2928K
rtc mv_rtc: rtc core: registered kw-rtc as rtc0
RTC registered
XOR registered 4 channels
XOR 2nd invalidate WA enabled
cesadev_init(c000ed20)
mvCesaInit: sessions=640, queue=64, pSram=f0000000
MV Buttons Driver Load
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Registering unionfs 2.5.11 (for 2.6.31.14)
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
msgmni has been set to 230
alg: No test for cipher_null (cipher_null-generic)
alg: No test for ecb(cipher_null) (ecb-cipher_null)
alg: No test for digest_null (digest_null-generic)
alg: No test for compress_null (compress_null-generic)
alg: No test for stdrng (krng)
alg: No test for hmac(digest_null) (hmac(digest_null-generic))
async_tx: api initialized (sync-only)
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
io scheduler noop registered
io scheduler anticipatory registered (default)
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xf1012100 (irq = 34) is a 16550A
console [ttyS0] enabled
brd: module loaded
loop: module loaded
Integrated Sata device found
IRQ 21/mvSata: IRQF_DISABLED is not guaranteed on shared IRQs
scsi0 : Marvell SCSI to SATA adapter
scsi1 : Marvell SCSI to SATA adapter
scsi 0:0:0:0: Direct-Access     WDC      WD60EFRX-68MYMN1 82.0 PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] Sector size 0 reported, assuming 512.
sd 0:0:0:0: [sda] 11721045168 512-byte logical blocks: (6.00 TB/5.45 TiB)
sd 0:0:0:0: [sda] 0-byte physical blocks
sd 0:0:0:0: Attached scsi generic sg0 type 0
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 23 00 10 00
Loading Marvell Ethernet Driver:
  o Cached descriptors in DRAM
  o DRAM SW cache-coherency
  o 2 Giga ports supported
  o Single RX Queue support - ETH_DEF_RXQ=0
  o Single TX Queue support - ETH_DEF_TXQ=0
  o TCP segmentation offload (TSO) supported
  o Large Receive offload (LRO) supported
  o Receive checksum offload supported
  o Transmit checksum offload supported
  o Proc tool API enabled
  o Rx descripors: q0=256
  o Tx descripors: q0=532
  o Loading network interface(s):
     o register under mv88fx_eth platform
     o eth0, ifindex = 2, GbE port = 0

Warning: Giga 1 is Powered Off

tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, supports DPO and FUA
sd 0:0:0:0: [sda] Sector size 0 reported, assuming 512.
SPI Serial flash detected @ 0xf4000000, 1024KB (256sec x 4KB)
3 cmdlinepart partitions found on MTD device spi_flash
Creating 3 MTD partitions on "spi_flash":
0x000000000000-0x00000007e000 : "u-boot"
0x00000007f000-0x000000080000 : "env"
sda:
0x00000007e000-0x00000007f000 : "env2"
Using Hamming 1-bit ECC for NAND device
No NAND device found!!!
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci_marvell ehci_marvell.70059: Marvell Orion EHCI
ehci_marvell ehci_marvell.70059: new USB bus registered, assigned bus number 1
ehci_marvell ehci_marvell.70059: irq 19, io base 0xf1050100
sda1 sda2
sd 0:0:0:0: [sda] Sector size 0 reported, assuming 512.
ehci_marvell ehci_marvell.70059: USB 2.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
sd 0:0:0:0: [sda] Attached SCSI disk
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
usbcore: registered new interface driver usblp
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver ums-datafab
usbcore: registered new interface driver ums-freecom
usbcore: registered new interface driver ums-jumpshot
usbcore: registered new interface driver ums-sddr09
usbcore: registered new interface driver ums-sddr55
usbcore: registered new interface driver ums-usbat
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
iBoard_model 1
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
md: raid10 personality registered for level 10
md: raid6 personality registered for level 6
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.15.0-ioctl (2009-04-01) initialised: dm-devel@redhat.com
dm_crypt using the OCF package.
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
NET: Registered protocol family 17
NET: Registered protocol family 5
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
rtc mv_rtc: setting system clock to 2019-02-13 02:10:11 UTC (1550023811)
md: Waiting for all devices to be available before autodetect
md: If you don't use raid, use raid=noautodetect
md: Autodetecting RAID arrays.
md: Scanned 0 and added 0 devices.
md: autorun ...
md: ... autorun DONE.
RAMDISK: bzip2 image found at block 0
VFS: Mounted root (ext2 filesystem) on device 1:0.
md: md0 stopped.
md: bind<sda1>
md0: detected capacity change from 0 to 21474828800
md0: unknown partition table
md: md0 stopped.
md: unbind<sda1>
md: export_rdev(sda1)
md0: detected capacity change from 21474828800 to 0
md: md0 stopped.
md: bind<sda1>
md0: detected capacity change from 0 to 21474828800
md0: unknown partition table
SGI XFS with ACLs, security attributes, large block/inode numbers, no debug enabled
SGI XFS Quota Management subsystem
ufsd: module license 'Commercial product' taints kernel.
Disabling lock debugging due to kernel taint
ufsd: driver 8.5 (Oct 16 2018 07:42:36) LBD=ON with delayalloc with ioctl loaded at bf102000
NTFS support included
Hfs+/HfsX support included
Built for: EMC_ix2_2
Bluetooth: Core ver 2.15
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Bluetooth: Generic Bluetooth USB driver ver 0.5
usbcore: registered new interface driver btusb
Freeing init memory: 136K
Bluetooth: L2CAP ver 2.13
Bluetooth: L2CAP socket layer initialized
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM ver 1.11
eth0: link down
eth0: started
eth0: link up, full duplex, speed 1 Gbps
md: md1 stopped.
md: bind<sda2>
raid1: raid set md1 active with 1 out of 1 mirrors
md1: detected capacity change from 0 to 5979530657792
md1: unknown partition table
EXT4-fs (dm-1): barriers enabled
kjournald2 starting: pid 3201, dev dm-1:8, commit interval 5 seconds
EXT4-fs (dm-1): internal journal on dm-1:8
EXT4-fs (dm-1): delayed allocation enabled
EXT4-fs: file extents enabled
EXT4-fs: mballoc enabled
EXT4-fs (dm-1): mounted filesystem with ordered data mode
EXT4-fs (dm-2): barriers disabled
kjournald2 starting: pid 3205, dev dm-2:8, commit interval 5 seconds
EXT4-fs (dm-2): internal journal on dm-2:8
EXT4-fs (dm-2): delayed allocation enabled
EXT4-fs: file extents enabled
EXT4-fs: mballoc enabled
EXT4-fs (dm-2): mounted filesystem with ordered data mode
Adding 524280k swap on /mnt/system/swapfile.  Priority:-1 extents:3 across:540664k

$ cat /proc/mtd
dev:    size   erasesize  name
mtd0: 0007e000 00001000 "u-boot"
mtd1: 00001000 00001000 "env"
mtd2: 00001000 00001000 "env2"

It seems the settings is in uImage or uInitrd.

Thank you for your dedication :)



Edited 5 time(s). Last edit at 02/14/2019 08:39PM by jeon.
Re: Debian on Iomega EZ Media & Backup Center
February 12, 2019 09:31PM
jeon,

>
> $ fw_printenv
> [...]
> if_netconsole=ping $serverip
> start_netconsole=setenv ncip $serverip; setenv
> bootdelay 10; setenv stdin nc; setenv stdout nc;
> setenv stderr nc; version;
> preboot=run if_netconsole start_netconsole
> bootcmd1=ide read 0x40000 0x800 0x1800; ide read
> 0x900000 0x2000 0x1800; setenv bootargs $(console)
> $(bootargs_root) $(bootargs_mtd) $(bootargs_end);
> bootm 0x40000 0x900000; run bootcmd2
> bootcmd=ide reset; run usb_bootcmd; run bootcmd1
> usb_z_args=setenv bootargs $(console)
> root=/dev/sdb1 rootdelay=10 $(bootargs_mtd)
> $(bootargs_end)
> usb_z_boot=ext2load usb 0:1 0x40000 /boot/zImage;
> bootm 0x40000
> usb_u_args=setenv bootargs $(console)
> root=LABEL=rootfs rootdelay=10 $(bootargs_mtd)
> $(bootargs_end) init=/bin/systemd
> usb_u_boot=ext2load usb 0:1 0x40000 /boot/uImage;
> ext2load usb 0:1 0x2000000 /boot/uInitrd; bootm
> 0x40000 0x2000000
> usb_bootcmd=usb reset; run usb_z_args; run
> usb_z_boot; run usb_u_args; run usb_u_boot; usb
> stop
>

What missing from the above is the mtdparts env. It was not defined correctly. It should be

mtdparts=mtdparts=spi0.0:0x7e000@0(u-boot),0x1000@0x7f000(env),0x1000@0x7e000(env2)

If you have serial console, you can fix it easily. At the u-boot prompt:
setenv mtdparts 'mtdparts=spi0.0:0x7e000@0(u-boot),0x1000@0x7f000(env),0x1000@0x7e000(env2)'

If you don't have serial console, it is a little bit harder (I can recompile the DTB for you). Because a correct mtdparts definition is what allows you to set u-boot envs in Debian, so now you can't do that. It's catch-22 situation :)

So let me know if you have serial console or can connect one.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on Iomega EZ Media & Backup Center
February 12, 2019 09:49PM
https://forum.doozan.com/read.php?2,35331,35494#msg-35494
Quote
bodhi
> OK, so looks like I need to add an entry for this
> specific chip in the spi-nor driver. The chip is
> supported as compatible with mx25l8005, but
> without 4K sector option.

https://elixir.bootlin.com/linux/v4.20.6/source/drivers/mtd/spi-nor/spi-nor.c
I wish to add this @1373 /drivers/mtd/spi-nor/spi-nor.c
{ "mx25l8006e",   INFO(0xc22014, 0, 64 * 1024,  16, SECT_4K) },

Or do you have any guide to build zImage-4.20.6-kirkwood-tld-1?

I don't have a serial console and netconsole command don't work for my EZ.
But I can modify u-boot envs with fw_setenv after stock firmware booting.



Edited 5 time(s). Last edit at 02/12/2019 10:09PM by jeon.
Re: Debian on Iomega EZ Media & Backup Center
February 13, 2019 03:36PM
jeon,

> But I can modify u-boot envs with fw_setenv after
> stock firmware booting.

Then it is easy. Boot back into stock OS, and

fw_printenv

I'll show you how to fix the mtdparts env after I see what the envs look like in u-boot.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on Iomega EZ Media & Backup Center
February 13, 2019 04:31PM
The results :
$ fw_printenv
[...]
bootcmd=ide reset; run usb_bootcmd; run bootcmd1
usb_z_args=setenv bootargs $(console) root=/dev/sdb1 rootdelay=10 $(bootargs_mtd) $(bootargs_end)
usb_z_boot=ext2load usb 0:1 0x40000 /boot/zImage; bootm 0x40000
usb_u_boot=ext2load usb 0:1 0x40000 /boot/uImage; ext2load usb 0:1 0x2000000 /boot/uInitrd; bootm 0x40000 0x2000000
usb_bootcmd=usb reset; run usb_z_args; run usb_z_boot; run usb_u_args; run usb_u_boot; usb stop
mtdparts=mtdparts=spi0.0:0x7e000@0(u-boot),0x1000@0x7f000(env),0x1000@0x7e000(env2)
usb_u_args=setenv bootargs $(console) root=LABEL=rootfs rootdelay=10 $(mtdparts) $(bootargs_end) init=/bin/systemd
$ dmesg
[...]
[    7.753757] m25p80 spi0.0: found mx25l8005, expected mx25l8006e
[    7.759717] m25p80 spi0.0: mx25l8005 (1024 Kbytes)
[    7.764605] 3 cmdlinepart partitions found on MTD device spi0.0
[    7.770576] Creating 3 MTD partitions on "spi0.0":
[    7.775389] 0x000000000000-0x00000007e000 : "u-boot"
[    7.780372] mtd: partition "u-boot" doesn't end on an erase/write block -- force read-only
[    7.789854] 0x00000007f000-0x000000080000 : "env"
[    7.794620] mtd: partition "env" doesn't start on an erase/write block boundary -- force read-only
[    7.804703] 0x00000007e000-0x00000007f000 : "env2"
[    7.809515] mtd: partition "env2" doesn't start on an erase/write block boundary -- force read-only
[...]
$ cat /proc/mtd
dev:    size   erasesize  name
mtd0: 0007e000 00010000 "u-boot"
mtd1: 00001000 00010000 "env"
mtd2: 00001000 00010000 "env2"
$ cat /proc/cmdline
console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=spi0.0:0x7e000@0(u-boot),0x1000@0x7f000(env),0x1000@0x7e000(env2) :::DB88FXX81:eth0:none init=/bin/systemd



Edited 2 time(s). Last edit at 02/13/2019 06:42PM by jeon.
Re: Debian on Iomega EZ Media & Backup Center
February 13, 2019 05:35PM
jeon,

I need the entire output of fw_printenv.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on Iomega EZ Media & Backup Center
February 13, 2019 05:54PM
$ fw_printenv
baudrate=115200
loads_echo=0
rootpath=/srv/ubuntu
netmask=255.255.255.0
run_diag=yes
MALLOC_len=1
ethprime=egiga0
bootargs_end=:::DB88FXX81:eth0:none
image_name=uImage
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000;
lcd0_enable=0
lcd0_params=640x480-16@60
ethmtu=1500
mvPhoneConfig=mv_phone_config=dev[0]:fxs,dev[1]:fxo
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
usb0Mode=host
yuk_ethaddr=00:00:00:EE:51:81
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
image_multi=yes
ethact=egiga0
console=console=ttyS0,115200
bootargs_root=root=/dev/ram0
bootargs_mtd=mtdparts=spi_flash:0x7e000@0(u-boot),0x1000@0x7f000(env),0x1000@0x7e000(env2)
kernelimage=zImage
initrdimage=mfginitrd
mfgmodel=ix1
preroot_ver=0.0.2
bootcmd2=ide dev 1;ide read 0x40000 0x800 0x1800; ide read 0x900000 0x2000 0x1800; bootm 0x40000 0x900000;
stdin=serial
stdout=serial
stderr=serial
mainlineLinux=no
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
netbsd_en=no
vxworks_en=no
bootdelay=3
disaMvPnp=no
enaAutoRecovery=yes
pcieTune=no
pcieTune1=no
uboot_ver=0.0.8
fw_ver=3.3.2.29823
serial_number=5563Z01001G3020042DJ0C1
ethaddr=00:D0:B8:14:00:00
serialNo=USAD020000
modelname=31997701
serialno=0,01Utl0i5exjfGYyixa01bI3CYAOv/w+Og++1bF14UtmFDJASIDY+jbSeGGzumxlghh,USAD020000,
runintime=10800
ftpserver=192.168.43.4
testfile=100M
mfgtest_state=system_tested_ok
pre_path=IX1/1.0.4/download_runin.sh
pre_path_conf=IX1/1.0.4/download_runin.conf
pre_serverip=192.168.32.4
pre_user=ixxrunin
pre_passwd=123
pre_dirzi=IX1/1.0.4
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
ipaddr=192.168.1.3
if_netconsole=ping $serverip
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
preboot=run if_netconsole start_netconsole
serverip=192.168.1.5
bootcmd1=ide read 0x40000 0x800 0x1800; ide read 0x900000 0x2000 0x1800; setenv bootargs $(console) $(bootargs_root) $(bootargs_mtd) $(bootargs_end); bootm 0x40000 0x900000; run bootcmd2
bootcmd=ide reset; run usb_bootcmd; run bootcmd1
usb_z_args=setenv bootargs $(console) root=/dev/sdb1 rootdelay=10 $(bootargs_mtd) $(bootargs_end)
usb_z_boot=ext2load usb 0:1 0x40000 /boot/zImage; bootm 0x40000
usb_u_boot=ext2load usb 0:1 0x40000 /boot/uImage; ext2load usb 0:1 0x2000000 /boot/uInitrd; bootm 0x40000 0x2000000
usb_bootcmd=usb reset; run usb_z_args; run usb_z_boot; run usb_u_args; run usb_u_boot; usb stop
mtdparts=mtdparts=spi0.0:0x7e000@0(u-boot),0x1000@0x7f000(env),0x1000@0x7e000(env2)
usb_u_args=setenv bootargs $(console) root=LABEL=rootfs rootdelay=10 $(mtdparts) $(bootargs_end) init=/bin/systemd



Edited 1 time(s). Last edit at 02/13/2019 05:58PM by jeon.
Re: Debian on Iomega EZ Media & Backup Center
February 13, 2019 06:12PM
jeon,

Basically, this variable was why the SPI mtds were not initialized correctly.

bootargs_mtd=mtdparts=spi_flash:0x7e000@0(u-boot),0x1000@0x7f000(env),0x1000@0x7e000(env2)

But we don't want to touch stock envs, to ensure you can boot back to stock OS.

So using your current naming scheme, we need to set these 2 vaiables in stock OS:

fw_setenv  bootargs_z_mtd 'mtdparts=spi0.0:0x7e000@0(u-boot),0x1000@0x7f000(env),0x1000@0x7e000(env2)'
fw_setenv usb_z_args 'setenv bootargs $(console) root=/dev/sdb1 rootdelay=10 $(bootargs_z_mtd) $(bootargs_end)'

And reboot with USB rootfs. See if the SPI mtds are now initialized correctly.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on Iomega EZ Media & Backup Center
February 13, 2019 06:20PM
The USB rootfs with kirkwood-tld has no /boot/zImage used for another rootfs.
So this is the result.



Edited 2 time(s). Last edit at 02/13/2019 06:25PM by jeon.
Re: Debian on Iomega EZ Media & Backup Center
February 13, 2019 06:58PM
Ah, I see.

Use the uImage to boot, then.

fw_setenv bootargs_u_mtd 'mtdparts=spi0.0:0x7e000@0(u-boot),0x1000@0x7f000(env),0x1000@0x7e000(env2)'
fw_setenv usb_u_args 'setenv bootargs $(console) root=/dev/sdb1 rootdelay=10 $(bootargs_u_mtd) $(bootargs_end)'
fw_setenv usb_u_boot 'ext2load usb 0:1 0x40000 /boot/uImage; ext2load usb 0:1 0x2000000 /boot/uInitrd; bootm 0x40000 0x2000000'
fw_setenv usb_bootcmd 'usb reset; run usb_u_args; run usb_u_boot; usb stop'

-bodhi
===========================
Forum Wiki
bodhi's corner
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: