Quantcast
Channel: Linux Device Hacking
Viewing all 47098 articles
Browse latest View live

Re: Changes in SD Card access in U-Boot 2017.07-tld-1?

$
0
0
bodhi Wrote:
-------------------------------------------------------
> Derek,
>
> > I hope this is not an unresonable request...
> :)
> > Is it possible to have an option in future
> version
> > of uBoot to switch back to the previous version
> of
> > MMC driver
>
> It is indeed unreasonable :) usually I try to use
> mainline version if possible, since it is widely
> used and tested. My testing on a Sandisk SD card
> with Pogo V4 and Sheevaplug was without problem.
> Rayknight also tested this on a Sheevaplug (not
> sure which SD brand). So I think your problemmight
> be with the Kingston SD brand.
>
My SheevaPlug is using a 32GB Sandisk Ultra Plus SD Card.

Ray

Re: How to unbrick GoFlex Home?

$
0
0
balanga Wrote:
-------------------------------------------------------
> bodhi Wrote:
> -------------------------------------------------------
> >
> > And your script looks OK
> >
> >
> > cd /mnt/usb/tools
> > ./flash_erase /dev/mtd0
> > ./nandwrite -on /dev/mtd0 /mnt/usb/mtd/mtd0
> > ./flash_erase /dev/mtd1
> > ./nandwrite -on /dev/mtd1 /mnt/usb/mtd/mtd1
> > ./flash_erase /dev/mtd2
> > ./nandwrite -on /dev/mtd2 /mnt/usb/mtd/mtd2
> >
>
>
> flash_erase: error!: no start erase block
> specified
> flash_erase: error!: no erase block count
> specified
> flash_erase: error!: Try `--help' for more
> information
> Input file is not page-aligned. Use the padding
> option.
> nandwrite: error!: Data was only partially written
> due to error
>

My bad! Try

cd /mnt/usb/tools
./flash_erase /dev/mtd0 0 0
./nandwrite -on /dev/mtd0 /mnt/usb/mtd/mtd0
./flash_erase /dev/mtd1 0 0
./nandwrite -on /dev/mtd1 /mnt/usb/mtd/mtd1
./flash_erase /dev/mtd2 0 0
./nandwrite -on /dev/mtd2 /mnt/usb/mtd/mtd2

Re: U-Boot 2015.10 for Iomega HMNHDCE

$
0
0
Hi bodhi,

thank you very much for your support, but no MTD partitions was created...
Now it looks like this:

1.
root@debian:~# cat /proc/mtd
dev:    size   erasesize  name

2.
PLX>>printenv
bootcmd=run select0 load1 load_rd1 boot || run lightled select0 load2 load_rd2 extinguishled boot || lightled
bootdelay=3
baudrate=115200
ethaddr=00:30:e0:00:00:01
ipaddr=172.31.0.128
serverip=172.31.0.100
autoload=n
netmask=255.255.0.0
bootfile="uImage"
select0=ide dev 0
load1=ide read 0x60500000 50a 1800
load2=ide read 0x60500000 e3e8 1800
load_rd1=ide read 0x61000000 4122 1800
load_rd2=ide read 0x61000000 7d3a 1800
lightled=ledfail 1
extinguishled=ledfail 0
boot=bootm 60500000 61000000
mtdparts=mtdparts=41000000.nand:14m(boot),-(data)
stdin=serial
stdout=serial
stderr=serial
bootargs=root=/dev/sda1 console=ttyS0,115200 elevator=cfq $(mtdparts) mem=256M poweroutage=yes mac_adr=0x00,0xd0,0xb8,0x19,0x34,0x6b

Environment size: 718/8188 bytes

Did I forget something?
(There is no 'boot' command like you mentioned in your code, but I think, this is not important...)

Re: How to unbrick GoFlex Home?

$
0
0
Script started on 2018-08-13 07:24:14+00:00
^[]0;root@alarm:/mnt/smb/gfh^G[root@alarm gfh]# sh restore
Erasing 128 Kibyte @ 0 --  0 % complete Erasing 128 Kibyte @ 20000 -- 12 % complete Erasing 128 Kibyte @ 40000 -- 25 % complete Erasing 128 Kibyte @ 60000 -- 37 % comple
Input file is not page-aligned. Use the padding option.
nandwrite: error!: Data was only partially written due to error
           error 0 (Success)
Erasing 128 Kibyte @ 0 --  0 % complete Erasing 128 Kibyte @ 20000 --  2 % complete Erasing 128 Kibyte @ 40000 --  4 % complete Erasing 128 Kibyte @ 60000 --  6 % comple
Input file is not page-aligned. Use the padding option.
nandwrite: error!: Data was only partially written due to error
           error 0 (Success)
Erasing 128 Kibyte @ 0 --  0 % complete Erasing 128 Kibyte @ 20000 --  0 % complete Erasing 128 Kibyte @ 40000 --  0 % complete Erasing 128 Kibyte @ 60000 --  0 % comple
Input file is not page-aligned. Use the padding option.
nandwrite: error!: Data was only partially written due to error
           error 0 (Success)
^[]0;root@alarm:/mnt/smb/gfh^G[root@alarm gfh]# exit
exit

Script done on 2018-08-13 07:24:33+00:00

Does this look OK? Can I expect to be back in Stock when I reboot?

Re: How to unbrick GoFlex Home?

$
0
0
balanga Wrote:
-------------------------------------------------------
>
> Script started on 2018-08-13 07:24:14+00:00
> ^[]0;root@alarm:/mnt/smb/gfh^G[root@alarm gfh]# sh
> restore
> Erasing 128 Kibyte @ 0 --  0 % complete Erasing
> 128 Kibyte @ 20000 -- 12 % complete Erasing 128
> Kibyte @ 40000 -- 25 % complete Erasing 128 Kibyte
> @ 60000 -- 37 % comple
> Input file is not page-aligned. Use the padding
> option.
> nandwrite: error!: Data was only partially written
> due to error
>            error 0 (Success)
> Erasing 128 Kibyte @ 0 --  0 % complete Erasing
> 128 Kibyte @ 20000 --  2 % complete Erasing 128
> Kibyte @ 40000 --  4 % complete Erasing 128 Kibyte
> @ 60000 --  6 % comple
> Input file is not page-aligned. Use the padding
> option.
> nandwrite: error!: Data was only partially written
> due to error
>            error 0 (Success)
> Erasing 128 Kibyte @ 0 --  0 % complete Erasing
> 128 Kibyte @ 20000 --  0 % complete Erasing 128
> Kibyte @ 40000 --  0 % complete Erasing 128 Kibyte
> @ 60000 --  0 % comple
> Input file is not page-aligned. Use the padding
> option.
> nandwrite: error!: Data was only partially written
> due to error
>            error 0 (Success)
> ^[]0;root@alarm:/mnt/smb/gfh^G[root@alarm gfh]#
> exit
> exit
> 
> Script done on 2018-08-13 07:24:33+00:00
> 
>
>
> Does this look OK? Can I expect to be back in
> Stock when I reboot?

Not successful. Let me take a close look. Dont reboot.

Re: U-Boot 2015.10 for Iomega HMNHDCE

$
0
0
Power up, interrupt serial console, and execute:

setenv bootargs 'root=/dev/sda1 console=ttyS0,115200 mtdparts=41000000.nand:14m(boot),-(data)'
run bootcmd

Login into Debian, and

cat /proc/mtd


and post the entired log (from u-boot banner until the last line you see in your terminal) here.

Re: U-Boot 2015.10 for Iomega HMNHDCE

$
0
0
Nothing has changed - no MTD partitions...

setenv bootargs 'root=/dev/sda1 console=ttyS0,115200 mtdparts=41000000.nand:14m(boot),-(data)'
PLX>>printenv
bootcmd=run select0 load1 load_rd1 boot || run lightled select0 load2 load_rd2 extinguishled boot || lightled
bootdelay=3
baudrate=115200
ethaddr=00:30:e0:00:00:01
ipaddr=172.31.0.128
serverip=172.31.0.100
autoload=n
netmask=255.255.0.0
bootfile="uImage"
select0=ide dev 0
load1=ide read 0x60500000 50a 1800
load2=ide read 0x60500000 e3e8 1800
load_rd1=ide read 0x61000000 4122 1800
load_rd2=ide read 0x61000000 7d3a 1800
lightled=ledfail 1
extinguishled=ledfail 0
boot=bootm 60500000 61000000
stdin=serial
stdout=serial
stderr=serial
bootargs=root=/dev/sda1 console=ttyS0,115200 mtdparts=41000000.nand:14m(boot),-(data)

Environment size: 621/8188 bytes
PLX>>run bootcmd

IDE device 0: Model: SAMSUNG HD103SJ  Firm: 1AJ100E4 Ser#: S246J90Z193866
            Type: Hard Disk
            Capacity: 131071.9 MB = 127.9 GB (268435455 x 512)
... is now current device

IDE read: device 0 block # 1290, count 6144 ... 6144 blocks read: OK

IDE read: device 0 block # 16674, count 6144 ... 6144 blocks read: OK
## Booting image at 60500000 ...
   Image Name:   Linux-3.12.6
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2982328 Bytes =  2.8 MB
   Load Address: 60008000
   Entry Point:  60008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 61000000 ...
   Image Name:
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    3073589 Bytes =  2.9 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 3.12.6_OXNAS+ (root@PogoplugPro) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 SMP Sun Jan 12 08:07:56 CST 2014
[    0.000000] CPU: ARMv6-compatible processor [410fb025] revision 5 (ARMv7), cr=00c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine: PLXTECH NAS782X SoC (Flattened Device Tree), model: Iomega Home Media Network Hard Drive, Cloud Edition
[    0.000000] Memory policy: ECC disabled, Data cache writealloc
[    0.000000] DT missing boot CPU MPIDR[23:0], fall back to default cpu_logical_map
[    0.000000] PERCPU: Embedded 7 pages/cpu @c07b7000 s6464 r8192 d14016 u32768
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: root=/dev/sda1 console=ttyS0,115200 mtdparts=41000000.nand:14m(boot),-(data)
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Memory: 250960K/262144K available (4149K kernel code, 208K rwdata, 1068K rodata, 150K init, 208K bss, 11184K reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xd0800000 - 0xff000000   ( 744 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc05206f4   (5218 kB)
[    0.000000]       .init : 0xc0521000 - 0xc0546940   ( 151 kB)
[    0.000000]       .data : 0xc0548000 - 0xc057c020   ( 209 kB)
[    0.000000]        .bss : 0xc057c028 - 0xc05b0158   ( 209 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS:160
[    0.000000] sched_clock: 24 bits at 390kHz, resolution 2560ns, wraps every 42949ms
[    0.000000] Console: colour dummy device 80x30
[    0.000273] Calibrating delay loop... 239.61 BogoMIPS (lpj=1198080)
[    0.069941] pid_max: default: 32768 minimum: 301
[    0.070269] Mount-cache hash table entries: 512
[    0.071687] CPU: Testing write buffer coherency: ok
[    0.072235] Setting up static identity map for 0xc03f3338 - 0xc03f3370
[    0.074137] CPU1: Booted secondary processor
[    0.140167] Brought up 2 CPUs
[    0.140198] SMP: Total of 2 processors activated.
[    0.141754] devtmpfs: initialized
[    0.145879] pinctrl core: initialized pinctrl subsystem
[    0.146362] NET: Registered protocol family 16
[    0.147010] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.151042] gpio-oxnas 44000000.gpio: at address d0846000
[    0.151344] gpio-oxnas 44100000.gpio: at address d0848000
[    0.152084] pinctrl-oxnas pinctrl.5: initialized OX820 pinctrl driver
[    0.159239] bio: create slab <bio-0> at 0
[    0.160570] vgaarb: loaded
[    0.161064] SCSI subsystem initialized
[    0.161920] usbcore: registered new interface driver usbfs
[    0.162030] usbcore: registered new interface driver hub
[    0.162321] usbcore: registered new device driver usb
[    0.162501] pps_core: LinuxPPS API ver. 1 registered
[    0.162519] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.162565] PTP clock support registered
[    0.165171] Switched to clocksource rps_clocksource_timer
[    0.166220] cfg80211: Calling CRDA to update world regulatory domain
[    0.181189] NET: Registered protocol family 2
[    0.182182] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    0.182279] TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
[    0.182353] TCP: Hash tables configured (established 2048 bind 2048)
[    0.182464] TCP: reno registered
[    0.182499] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.182561] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.183009] NET: Registered protocol family 1
[    0.183457] Unpacking initramfs...
[    0.637647] Freeing initrd memory: 2996K (c1001000 - c12ee000)
[    0.654005] fuse init (API version 7.22)
[    0.655019] msgmni has been set to 496
[    0.657625] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.657653] io scheduler noop registered
[    0.657666] io scheduler deadline registered
[    0.658009] io scheduler cfq registered (default)
[    0.658511] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.659909] 44200000.uart: ttyS0 at MMIO 0x44200000 (irq = 55, base_baud = 390625) is a 16550A
[    1.079825] console [ttyS0] enabled
[    1.085363] scsi0 : sata_oxnas
[    1.088737] ata1: SATA max UDMA/133 irq 50
[    1.094440] stmmac - user ID: 0x12, Synopsys ID: 0x35
[    1.099476]  Ring mode enabled
[    1.099993] ox820sata: reseting SATA core
[    1.106562]  DMA HW capability register supported
[    1.111075]  Enhanced/Alternate descriptors
[    1.115453]  Enabled extended descriptors
[    1.119452]  RX Checksum Offload Engine supported (type 2)
[    1.124925]  TX Checksum insertion supported
[    1.129172]  Wake-Up On Lan supported
[    1.132815]  Enable RX Mitigation via HW Watchdog Timer
[    1.167001] libphy: stmmac: probed
[    1.170408] eth0: PHY ID 001cc914 at 0 IRQ 0 (stmmac-0:00) active
[    1.176535] eth0: PHY ID 001cc914 at 2 IRQ 0 (stmmac-0:02)
[    1.182103] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.188672] ehci-pci: EHCI PCI platform driver
[    1.193646] oxnas-ehci 40200100.ehci: EHCI Host Controller
[    1.199196] oxnas-ehci 40200100.ehci: new USB bus registered, assigned bus number 1
[    1.207016] oxnas-ehci 40200100.ehci: irq 39, io mem 0x40200100
[    1.234298] oxnas-ehci 40200100.ehci: USB 2.0 started, EHCI 1.00
[    1.240696] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.247508] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.254727] usb usb1: Product: EHCI Host Controller
[    1.259589] usb usb1: Manufacturer: Linux 3.12.6_OXNAS+ ehci_hcd
[    1.265589] usb usb1: SerialNumber: 40200100.ehci
[    1.271188] hub 1-0:1.0: USB hub found
[    1.275082] hub 1-0:1.0: 2 ports detected
[    1.279879] usbcore: registered new interface driver usb-storage
[    1.286661] input: gpio-keys.6 as /devices/gpio-keys.6/input/input0
[    1.295004] usbcore: registered new interface driver usbhid
[    1.300559] usbhid: USB HID core driver
[    1.304778] TCP: cubic registered
[    1.309501] NET: Registered protocol family 10
[    1.315676] sit: IPv6 over IPv4 tunneling driver
[    1.322465] ip6_gre: GRE over IPv6 tunneling driver
[    1.328384] NET: Registered protocol family 17
[    1.594324] usb 1-2: new high-speed USB device number 2 using oxnas-ehci
[    1.620019] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[    1.631979] ata1.00: ATA-8: SAMSUNG HD103SJ, 1AJ100E4, max UDMA/133
[    1.638236] ata1.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 0/32)
[    1.650821] ata1.00: configured for UDMA/133
[    1.655825] scsi 0:0:0:0: Direct-Access     ATA      SAMSUNG HD103SJ  1AJ1 PQ: 0 ANSI: 5
[    1.665546] sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
[    1.673815] sd 0:0:0:0: [sda] Write Protect is off
[    1.678876] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    1.721692]  sda: sda1 sda2
[    1.727032] sd 0:0:0:0: [sda] Attached SCSI disk
[    1.732044] Freeing unused kernel memory: 148K (c0521000 - c0546000)
Loading, please wait...
[    1.759290] usb 1-2: New USB device found, idVendor=0951, idProduct=168a
[    1.766087] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    1.773222] usb 1-2: Product: DT Micro
[    1.777044] usb 1-2: Manufacturer: Kingston
[    1.781237] usb 1-2: SerialNumber: 50E549C20280BC31700001F5
[    1.788239] usb-storage 1-2:1.0: USB Mass Storage device detected
[    1.795143] scsi1 : usb-storage 1-2:1.0
[    1.920143] udevd[65]: starting version 175
Begin: Loading essential drivers ... [    2.758620] md: raid0 personality registered for level 0
[    2.783541] md: raid1 personality registered for level 1
[    2.796989] scsi 1:0:0:0: Direct-Access     Kingston DT Micro         PMAP PQ: 0 ANSI: 0 CCS
[    2.810539] sd 1:0:0:0: [sdb] 15356160 512-byte logical blocks: (7.86 GB/7.32 GiB)
[    2.819151] sd 1:0:0:0: [sdb] Write Protect is off
[    2.830156] sd 1:0:0:0: [sdb] No Caching mode page found
[    2.835481] sd 1:0:0:0: [sdb] Assuming drive cache: write through
[    2.845388] md: linear personality registered for level -1
[    2.859361] sd 1:0:0:0: [sdb] No Caching mode page found
[    2.864747] sd 1:0:0:0: [sdb] Assuming drive cache: write through
[    2.893207]  sdb: sdb1
[    2.901760] sd 1:0:0:0: [sdb] No Caching mode page found
[    2.907197] sd 1:0:0:0: [sdb] Assuming drive cache: write through
[    2.913297] sd 1:0:0:0: [sdb] Attached SCSI removable disk
[    2.952230] device-mapper: ioctl: 4.26.0-ioctl (2013-08-15) initialised: dm-devel@redhat.com
[    2.995932] md: raid10 personality registered for level 10
[    3.007180] xor: measuring software checksum speed
[    3.109952]    arm4regs  :   827.200 MB/sec
[    3.209955]    8regs     :   407.200 MB/sec
[    3.309928]    32regs    :   513.200 MB/sec
[    3.314101] xor: using function: arm4regs (827.200 MB/sec)
[    3.492116] raid6: int32x1     26 MB/s
[    3.661050] raid6: int32x2     47 MB/s
[    3.830440] raid6: int32x4     47 MB/s
[    4.000791] raid6: int32x8     48 MB/s
[    4.004546] raid6: using algorithm int32x8 (48 MB/s)
[    4.009487] raid6: using intx1 recovery algorithm
[    4.029808] md: raid6 personality registered for level 6
[    4.035210] md: raid5 personality registered for level 5
[    4.040522] md: raid4 personality registered for level 4
[    4.047774] device-mapper: raid: Loading target version 1.5.2
done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... Begin: Assembling all MD arrays ... mdadm: No arrays found in config file or automatically
Failure: failed to assemble all arrays.
done.
done.
Begin: Running /scripts/local-premount ... done.
modprobe: module ext3 not found in modules.dep
[   10.369057] EXT2-fs (sda1): warning: mounting ext3 filesystem as ext2
[   10.409697] EXT2-fs (sdb1): warning: mounting ext3 filesystem as ext2
[   10.451563] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   10.466749] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
Begin: Running /scripts/local-bottom ... done.
done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[....] Starting the hotplug events dispatcher: udevd[   12.542492] udevd[276]: starting version 175
. ok
[ ok ] Synthesizing the initial hotplug events...done.
[ ok ] Waiting for /dev to be fully populated...done.
[ ok ] Activating swap...done.
[   15.179253] EXT4-fs (sda1): re-mounted. Opts: (null)
[....] Checking root file system...fsck from util-linux 2.25.2
/dev/sda1: clean, 12308/524288 files, 250958/2097152 blocks
done.
[   15.643970] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[ ok ] Activating lvm and md swap...done.
[....] Checking file systems...fsck from util-linux 2.25.2
done.
[ ok ] Loading kernel modules...done.
[ ok ] Cleaning up temporary files... /tmp.
[ ok ] Mounting local filesystems...done.
[ ok ] Activating swapfile swap...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables ...done.
[   20.229719] eth0: device MAC address b6:58:aa:ea:3b:0e
[   22.230177] libphy: stmmac-0:00 - Link is Up - 100/Full
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/b6:58:aa:ea:3b:0e
Sending on   LPF/eth0/b6:58:aa:ea:3b:0e
Sending on   Socket/fallback
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPNAK from 192.168.8.48
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPOFFER from 192.168.8.48
DHCPACK from 192.168.8.48
bound to 192.168.8.142 -- renewal in 35835 seconds.
done.
[ ok ] Starting rpcbind daemon....
[ ok ] Starting NFS common utilities: statd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting rpcbind daemon...[....] Already running..
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1345 (syslogd)
. ok
[ ok ] Starting system message bus: dbus.
[ ok ] Starting NFS common utilities: statd.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1352 (klogd)
. ok

Debian GNU/Linux 8 debian ttyS0

debian login: root
Password:
Last login: Mon Aug 13 02:18:50 PDT 2018 on ttyS0
Linux debian 3.12.6_OXNAS+ #1 SMP Sun Jan 12 08:07:56 CST 2014 armv6l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@debian:~# cat /proc/mtd
dev:    size   erasesize  name
root@debian:~#

Re: How to unbrick GoFlex Home?

$
0
0
Take a look at the MTD dumps again:

cd /mnt/usb/mtd
ls -larth mtd*

And see what option this nandwrite provides

cd /mnt/usb/tools
./nandwrite --help

Re: U-Boot 2015.10 for Iomega HMNHDCE

$
0
0
So the kernel on your rootfs is not good. No NAND mtd support.

[    0.000000] Linux version 3.12.6_OXNAS+ (root@PogoplugPro) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 SMP Sun Jan 12 08:07:56 CST 2014

Time to try booting with Debian-4.4.54-oxnas-tld-1-rootfs-bodhi.tar.bz2, as I mentioned:

https://forum.doozan.com/read.php?3,64624,64754#msg-64754

Re: How to unbrick GoFlex Home?

$
0
0
bodhi Wrote:
-------------------------------------------------------
> Take a look at the MTD dumps again:
>
>
> cd /mnt/usb/mtd
> ls -larth mtd*
>

[root@alarm /]# cd /mnt/usb/mtd
[root@alarm mtd]# ls -larth mtd*
-rw-r--r-- 1 nobody nobody 1.0M Aug 11 12:15 mtd0
-rw-r--r-- 1 nobody nobody 6.0M Aug 11 12:15 mtd1
-rw-r--r-- 1 nobody nobody 249M Aug 11 12:17 mtd2

> And see what option this nandwrite provides
>
>
> cd /mnt/usb/tools
> ./nandwrite --help
>

[root@alarm mtd]# cd /mnt/usb/tools
[root@alarm tools]# ./nandwrite --help
Usage: nandwrite [OPTION] MTD_DEVICE [INPUTFILE|-]
Writes to the specified MTD device.

  -a, --autoplace         Use auto OOB layout
  -m, --markbad           Mark blocks bad if write fails
  -n, --noecc             Write without ecc
  -N, --noskipbad         Write without bad block skipping
  -o, --oob               Input contains oob data
  -O, --onlyoob           Input contains oob data and only write the oob part
  -s addr, --start=addr   Set output start address (default is 0)
  -p, --pad               Pad writes to page size
  -b, --blockalign=1|2|4  Set multiple of eraseblocks to align to
      --input-skip=length Skip |length| bytes of the input file
      --input-size=length Only read |length| bytes of the input file
  -q, --quiet             Don't display progress messages
  -h, --help              Display this help and exit
      --version           Output version information and exit

Re: U-Boot 2015.10 for Iomega HMNHDCE

$
0
0
bodhi Wrote:
-------------------------------------------------------
> ...
> Time to try booting with
> Debian-4.4.54-oxnas-tld-1-rootfs-bodhi.tar.bz2, as
> I mentioned...

But I think, that booting another kernel is not possible without new U-boot...
On my device are the 'uImage' (kernel) and 'initrd' image written in the first 32MB on the HDD. These newer kernels are much bigger as the old one (4.4MB vs 2.8MB), so it can't be written to the first 32MB...
So what do you think is the procedure for booting with Debian-4.4.54-oxnas-tld-1-rootfs-bodhi.tar.bz2?

Preparation of the first 32MB of the HDD looks like this:
	dd if=bootrom.warpped of=$1 bs=512
	dd if=stage1.wrapped of=$1 seek=34
	dd if=u-boot.sd.wrapped of=$1 seek=154
	dd if=u-boot.sd.env of=$1 seek=558
	dd if=uImage.wrapped of=$1 seek=1290
	dd if=initrd.wrapped of=$1 seek=16674
	dd if=serial.warpped of=$1 seek=57080
	dd if=stage1.wrapped of=$1 seek=57088
	dd if=u-boot.sd.wrapped of=$1 seek=57208
	dd if=uImage.wrapped of=$1 seek=58344

Maybe can be the boot command changed to boot kernel and initrd from rootfs/boot directory, but I really don't know how...

Re: How to unbrick GoFlex Home?

$
0
0
balanga,

Quote

[root@alarm /]# cd /mnt/usb/mtd
[root@alarm mtd]# ls -larth mtd*
-rw-r--r-- 1 nobody nobody 1.0M Aug 11 12:15 mtd0
-rw-r--r-- 1 nobody nobody 6.0M Aug 11 12:15 mtd1
-rw-r--r-- 1 nobody nobody 249M Aug 11 12:17 mtd2

This told us the dumps were fine. Without OOB data.

So change your commands to the following. And execute it one by one by copy/paste these commands. Don't run them in a script. Stop if the first command gives out error.

cd /mnt/usb/tools
./flash_erase /dev/mtd0
./nandwrite -n /dev/mtd0 /mnt/usb/mtd/mtd0
./flash_erase /dev/mtd1
./nandwrite -n /dev/mtd1 /mnt/usb/mtd/mtd1
./flash_erase /dev/mtd2
./nandwrite -n /dev/mtd2 /mnt/usb/mtd/mtd2

And please post the log of these commands execution here.

Re: U-Boot 2015.10 for Iomega HMNHDCE

$
0
0
mari8b,

I meant to create the Debian-4.4.54-oxnas-tld-1-rootfs-bodhi.tar.bz2 rootfs on USB.

And then in serial console, enter a set of new u-boot envs to boot with USB rootfs. This will be a little slow (I don't have my old notes with me so I will need to either find the instruction in forum old threads, or write them from scratch).

But booting from USB is safer, so that you can avoid touching your current HDD rootfs.

So take a look at the kernel/rootfs thread.

Re: How to unbrick GoFlex Home?

$
0
0
bodhi Wrote:
-------------------------------------------------------
>
> So change your commands to the following. And
> execute it one by one by copy/paste these
> commands. Don't run them in a script. Stop if the
> first command gives out error.
>
>
> cd /mnt/usb/tools
> ./flash_erase /dev/mtd0
> ./nandwrite -n /dev/mtd0 /mnt/usb/mtd/mtd0
> ./flash_erase /dev/mtd1
> ./nandwrite -n /dev/mtd1 /mnt/usb/mtd/mtd1
> ./flash_erase /dev/mtd2
> ./nandwrite -n /dev/mtd2 /mnt/usb/mtd/mtd2
>
>
> And please post the log of these commands
> execution here.

Looks like the typo crept in again. I take it that should have been

./flash_erase /dev/mtd0 0 0

The mtd0 worked OK, so I wrote mtd1 which also worked OK, then I got this at the end of mtd2

Writing data to block 1160 at offset 0x9100000
Writing data to block 1161 at offset 0x9120000
File I/O error on input: Input/output error
nandwrite: error!: Data was only partially written due to error
           error 5 (Input/output error)
[root@alarm tools]# exit
exit
Script done, file is typescript
script: write failed: typescript: Input/output error

Typescript got truncated so dont know how far it got. Should I try again with:-
./nandwrite -n /dev/mtd2 /mnt/usb/mtd/mtd2

Re: How to unbrick GoFlex Home?

$
0
0
balanga,

> Looks like the typo crept in again. I take it that
> should have been
>
>
> ./flash_erase /dev/mtd0 0 0
>

Right!

>
> The mtd0 worked OK, so I wrote mtd1 which also
> worked OK,

For mtd2.

Execute each command at command line, not in a script:
./flash_erase /dev/mtd2 0 0
./nandwrite -n /dev/mtd2 /mnt/usb/mtd/mtd2

If the error occur again, post output of your dmesg

dmesg

Re: U-Boot 2015.10 for Iomega HMNHDCE

$
0
0
I have an empty HDD, so I don't care about touching my current HDD rootfs, I don't need to boot from USB now, but if it's necessary, I would do it.
I have read many threads, but didn't find instructions to boot the Iomega HMNHDCE another way than the first 32MB.

Here is described, what is stored in the first 32MB of the HDD

Re: U-Boot 2015.10 for Iomega HMNHDCE

$
0
0
mari8b,

> I have an empty HDD, so I don't care about
> touching my current HDD rootfs, I don't need to
> boot from USB now, but if it's necessary, I would
> do it.

> I have read many threads, but didn't find instructions to boot the Iomega HMNHDCE another way than the first 32MB.

Once you've installed the new u-boot, this particular HDD scheme is no longer needed. You can boot with Debian rootfs on HDD or USB, as a normal system. So I would not waste time making it work now. I would just go straight to booting USB rootfs, get it booting, install new u-boot, and create a new HDD rootfs.

It is more convenient to have a booting system while you work on installing stuff, so keeping the stock HDD rootfs intact is a good idea.

Re: How to unbrick GoFlex Home?

$
0
0
bodhi Wrote:
-------------------------------------------------------
> balanga,
> For mtd2.
>
> Execute each command at command line, not in a
> script:
>
> ./flash_erase /dev/mtd2 0 0
> ./nandwrite -n /dev/mtd2 /mnt/usb/mtd/mtd2
>
>
> If the error occur again, post output of your
> dmesg
>
>
> dmesg
>

Script started on 2018-08-13 17:04:05+00:00
^[]0;root@alarm:/mnt/smb/gfh^G[root@alarm gfh]# restore^M
bash: restore: command not found^M
^[]0;root@alarm:/mnt/smb/gfh^G[root@alarm gfh]# restore^H^H^H^H^H^H^H^G^G^G^G^G^[[1@.^[[1@/^M
^MErasing 128 Kibyte @ 0 --  0 % complete ^MErasing 128 Kibyte @ 20000 --  0 % complete ^MErasing 128 Kibyte @ 40000 --  0 % complete ^MErasing 128 Kibyte @ 60000 --  0
Input file is not page-aligned. Use the padding option.^M
nandwrite: error!: Data was only partially written due to error^M
           error 0 (Success)^M
^[]0;root@alarm:/mnt/smb/gfh^G[root@alarm gfh]# exit^M
exit^M

Script done on 2018-08-13 17:04:37+00:00

dmesg did not display anything significant.

Re: Dell Wyse T10 / T50

$
0
0
Reply from Dell about GPL sources:

Quote
Dell legal person
Hi Koen,



Linux variant of T50 has EOL a long time back and we don’t provide any kind of support. Also the T50 (and T series thinclients) were not using u-boot. They had W-boot (Wyse boot), our proprietary bios.



For Linux base OS, canonical maintained a separate repository for the project Triton and Janus. If you open the T50 terminal and check /etc/apt/sources.list.orig (it may contain the canonical repository name and source location details).



Regards,

Dimitra

So logged back in to the machine and checked out the file as described:

root@debian:/mnt/sda3/etc/apt# cat sources.list.orig 
deb http://ports.ubuntu.com lucid main restricted universe multiverse

deb http://oem.archive.canonical.com/updates lucid-hedley public
root@debian:/mnt/sda3/etc/apt#

Did a quick scan of those websites and the following 2 links seem to be the most interesting since they show stuff related to hedley which is referenced in the kernel name of the original system. There may be more info but it is difficult to know unless you go and check all sub directories which will take a while.

http://oem.archive.canonical.com/updates/dists/lucid-hedley/

http://oem.archive.canonical.com/updates/pool/public/h/

I'm no programmer but will download copies of the files related to hedley and start looking through them to see if there is anything that may be useful.

Koen

Re: Dell Wyse T10 / T50

Viewing all 47098 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>