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

Re: rtl8192eu driver on GoFLEX Net (4.17.2)

$
0
0
ElMariachi,

> because the driver
> might need some patches for working with the
> current kernel.

I have not tried comple it to see for myself, but looks like this is the case.


> Why
> are the header files not matching each other,
> regarding their search pathes?

It is typical to see problem like this when header files are not found because the driver build did not set up correctly with the kernel headers and libraries you are building with.The best approach to track this down by yourself (if there is no active supports) is to try building with an older kernel that you know working and go from there forward.

Re: U-Boot 2015.10 for Iomega HMNHDCE

$
0
0
If I recall correctly the OX820 will try to boot from SATA first, although it appears that OpenWRT uses a chain-loaded U-Boot to boot the current kernel on this hardware. You may find some useful information at https://github.com/olderzeus/Iomega-HMNHDCE that would help get a newer U-Boot.

Ray

Re: How to use systemd using uEnv.txt

$
0
0
bodhi Wrote:
> It is systemd-ready. You just need to start it as
> the init system using uEnv.txt
>
>
> root@debian:~# cat /boot/uEnv.txt 
> custom_params=init=/bin/systemd
>
>
> The possible issue is whether in the latest Debian
> upgrade, /bin/systemd was moved to a different
> location in the rootfs. You need to research that
> potentilal issue.

The debian recommended way to switch to booting with systemd is as follows:

sudo apt-get install systemd systemd-sysv

This will create a symbolic link from /sbin/init -> /lib/systemd/systemd, or at least it did for me on Debian stretch.

Ray

Re: Replace ArchLinuxARM with Debian on GoFlexHome

$
0
0
Alright, here we go again...
U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:21:31 -0700)
Seagate GoFlex Home
gcc (Debian 6.3.0-18) 6.3.0 20170516
GNU ld (GNU Binutils for Debian) 2.28
Hit any key to stop autoboot:  0
GoFlexHome> setenv devices ide
GoFlexHome> setenv bootdev ide
GoFlexHome> boot

Reset IDE: Bus 0: OK Bus 1: not available
  Device 0: Model: ST1000DM000-9TS15E Firm: CC92 Ser#: 5YA0FYGY
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)

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

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            41943040        00000000-01     83
  2     41945088        1911580080      00000000-02     83
running scan_disk ...
Scan device ide

Reset IDE: Bus 0: OK Bus 1: not available
  Device 0: Model: ST1000DM000-9TS15E Firm: CC92 Ser#: 5YA0FYGY
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)
device ide 0:1
1 bytes read in 399 ms (0 Bytes/s)
Found bootable drive on ide 0
loading uImage ...
3821592 bytes read in 771 ms (4.7 MiB/s)
loading uInitrd ...
7706670 bytes read in 1498 ms (4.9 MiB/s)
loading DTB /boot/dts/kirkwood-goflexhome.dtb ...
10603 bytes read in 1451 ms (6.8 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.12.1-kirkwood-tld-1
   Created:      2017-07-20   8:11:24 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3821528 Bytes = 3.6 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.12.1-kirkwood-tld-1
   Created:      2018-08-09   7:38:25 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7706606 Bytes = 7.3 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
   Booting using the fdt blob at 0x1c00000


Starting kernel ...

Unfortunately, same result.

spinldles7

Re: Replace ArchLinuxARM with Debian on GoFlexHome

$
0
0
Alright, here we go again:
U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:21:31 -0700)
Seagate GoFlex Home
gcc (Debian 6.3.0-18) 6.3.0 20170516
GNU ld (GNU Binutils for Debian) 2.28
Hit any key to stop autoboot:  0
GoFlexHome> setenv devices ide
GoFlexHome> setenv bootdev ide
GoFlexHome> boot

Reset IDE: Bus 0: OK Bus 1: not available
  Device 0: Model: ST1000DM000-9TS15E Firm: CC92 Ser#: 5YA0FYGY
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)

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

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            41943040        00000000-01     83
  2     41945088        1911580080      00000000-02     83
running scan_disk ...
Scan device ide

Reset IDE: Bus 0: OK Bus 1: not available
  Device 0: Model: ST1000DM000-9TS15E Firm: CC92 Ser#: 5YA0FYGY
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)
device ide 0:1
1 bytes read in 399 ms (0 Bytes/s)
Found bootable drive on ide 0
loading uImage ...
3821592 bytes read in 771 ms (4.7 MiB/s)
loading uInitrd ...
7706670 bytes read in 1498 ms (4.9 MiB/s)
loading DTB /boot/dts/kirkwood-goflexhome.dtb ...
10603 bytes read in 1451 ms (6.8 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.12.1-kirkwood-tld-1
   Created:      2017-07-20   8:11:24 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3821528 Bytes = 3.6 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.12.1-kirkwood-tld-1
   Created:      2018-08-09   7:38:25 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7706606 Bytes = 7.3 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
   Booting using the fdt blob at 0x1c00000


Starting kernel ...

Unfortunately the result is the same - ie not working:-(

Re: Replace ArchLinuxARM with Debian on GoFlexHome

$
0
0
oops, sorry didn't realise the first one had gone onto a 2nd page so sent it again in error.

Re: U-Boot 2015.10 for Iomega HMNHDCE

$
0
0
rayknight Wrote:
-------------------------------------------------------
> If I recall correctly the OX820 will try to boot
> from SATA first, although it appears that OpenWRT
> uses a chain-loaded U-Boot to boot the current
> kernel on this hardware. You may find some useful
> information at
> https://github.com/olderzeus/Iomega-HMNHDCE that
> would help get a newer U-Boot.
>
> Ray

Apparently, DaveP installed my released uboot and rootfs, not ones from other source.

Re: Replace ArchLinuxARM with Debian on GoFlexHome

$
0
0
Try

setenv devices ide
setenv bootdev ide
printenv
boot

Re: Replace ArchLinuxARM with Debian on GoFlexHome

$
0
0
OK, here's the session capture log:
U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:21:31 -0700)
Seagate GoFlex Home
gcc (Debian 6.3.0-18) 6.3.0 20170516
GNU ld (GNU Binutils for Debian) 2.28
Hit any key to stop autoboot:  0
GoFlexHome> setenv devices ide
GoFlexHome> setenv bootdev ide
GoFlexHome> printenv
arcNumber=3338
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi; sleep 3
bootdelay=10
bootdev=ide
device=0:1
devices=ide
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-goflexhome.dtb
ethact=egiga0
ethaddr=00:10:75:29:8A:30
if_netconsole=ping $serverip
ipaddr=192.168.1.40
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_dtb_addr=0x1c00000
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x1100000
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
load_uimage_addr=0x800000
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts orion_nand:1M(u-boot),-(rootfs)
nc_ready=1
ncip=192.168.1.2
partition=nand0,2
preboot=run preboot_nc
preboot_nc=setenv nc_ready 0; for pingstat in 1 2 3 4 5; do; sleep 1; if run if_netconsole; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then run start_netconsole; fi
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
serverip=192.168.1.2
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=nc
stdin=nc
stdout=nc
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
usb_ready_retry=15

Environment size: 3004/131068 bytes
GoFlexHome> boot

Reset IDE: Bus 0: OK Bus 1: not available
  Device 0: Model: ST1000DM000-9TS15E Firm: CC92 Ser#: 5YA0FYGY
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)

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

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            41943040        00000000-01     83
  2     41945088        1911580080      00000000-02     83
running scan_disk ...
Scan device ide

Reset IDE: Bus 0: OK Bus 1: not available
  Device 0: Model: ST1000DM000-9TS15E Firm: CC92 Ser#: 5YA0FYGY
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)
device ide 0:1
1 bytes read in 400 ms (0 Bytes/s)
Found bootable drive on ide 0
loading uImage ...
3821592 bytes read in 771 ms (4.7 MiB/s)
loading uInitrd ...
7706670 bytes read in 1499 ms (4.9 MiB/s)
loading DTB /boot/dts/kirkwood-goflexhome.dtb ...
10603 bytes read in 1450 ms (6.8 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.12.1-kirkwood-tld-1
   Created:      2017-07-20   8:11:24 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3821528 Bytes = 3.6 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.12.1-kirkwood-tld-1
   Created:      2018-08-09   7:38:25 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7706606 Bytes = 7.3 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
   Booting using the fdt blob at 0x1c00000


Starting kernel ...
Again, not working...

Re: U-Boot 2015.10 for Iomega HMNHDCE

$
0
0
bodhi Wrote:
-------------------------------------------------------
> mari8b,
>
> > Starting kernel ...
>
> There should be more after this (the kernel boot
> log).


There is much more... didn't know it's important, it's about starting Debian...

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 elevator=cfq mem=256M poweroutage=yes mac_adr=0x00,0xd0,0xb8,0x19,0x34,0x6b
[    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.000268] Calibrating delay loop... 239.61 BogoMIPS (lpj=1198080)
[    0.069939] pid_max: default: 32768 minimum: 301
[    0.070272] Mount-cache hash table entries: 512
[    0.071672] CPU: Testing write buffer coherency: ok
[    0.072215] Setting up static identity map for 0xc03f3338 - 0xc03f3370
[    0.074101] CPU1: Booted secondary processor
[    0.140172] Brought up 2 CPUs
[    0.140206] SMP: Total of 2 processors activated.
[    0.141765] devtmpfs: initialized
[    0.145756] pinctrl core: initialized pinctrl subsystem
[    0.146250] NET: Registered protocol family 16
[    0.146956] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.150894] gpio-oxnas 44000000.gpio: at address d0846000
[    0.151170] gpio-oxnas 44100000.gpio: at address d0848000
[    0.151823] pinctrl-oxnas pinctrl.5: initialized OX820 pinctrl driver
[    0.158694] bio: create slab <bio-0> at 0
[    0.160015] vgaarb: loaded
[    0.160524] SCSI subsystem initialized
[    0.161400] usbcore: registered new interface driver usbfs
[    0.161507] usbcore: registered new interface driver hub
[    0.161786] usbcore: registered new device driver usb
[    0.161971] pps_core: LinuxPPS API ver. 1 registered
[    0.161991] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.162035] PTP clock support registered
[    0.164794] Switched to clocksource rps_clocksource_timer
[    0.175936] cfg80211: Calling CRDA to update world regulatory domain
[    0.180846] NET: Registered protocol family 2
[    0.181872] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    0.181962] TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
[    0.182033] TCP: Hash tables configured (established 2048 bind 2048)
[    0.182138] TCP: reno registered
[    0.182167] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.182220] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.182658] NET: Registered protocol family 1
[    0.183068] Unpacking initramfs...
[    0.637496] Freeing initrd memory: 2996K (c1001000 - c12ee000)
[    0.668492] fuse init (API version 7.22)
[    0.669329] msgmni has been set to 496
[    0.671915] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.671946] io scheduler noop registered
[    0.671959] io scheduler deadline registered
[    0.672289] io scheduler cfq registered (default)
[    0.672791] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.674170] 44200000.uart: ttyS0 at MMIO 0x44200000 (irq = 55, base_baud = 390625) is a 16550A
[    1.097003] console [ttyS0] enabled
[    1.102456] scsi0 : sata_oxnas
[    1.105948] ata1: SATA max UDMA/133 irq 50
[    1.110156] ox820sata: reseting SATA core
[    1.111457] stmmac - user ID: 0x12, Synopsys ID: 0x35
[    1.111462]  Ring mode enabled
[    1.111472]  DMA HW capability register supported
[    1.111472]  Enhanced/Alternate descriptors
[    1.111475]  Enabled extended descriptors
[    1.111482]  RX Checksum Offload Engine supported (type 2)
[    1.111485]  TX Checksum insertion supported
[    1.111488]  Wake-Up On Lan supported
[    1.111493]  Enable RX Mitigation via HW Watchdog Timer
[    1.181043] libphy: stmmac: probed
[    1.184512] eth0: PHY ID 001cc914 at 0 IRQ 0 (stmmac-0:00) active
[    1.190592] eth0: PHY ID 001cc914 at 2 IRQ 0 (stmmac-0:02)
[    1.196167] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.202670] ehci-pci: EHCI PCI platform driver
[    1.207610] oxnas-ehci 40200100.ehci: EHCI Host Controller
[    1.213120] oxnas-ehci 40200100.ehci: new USB bus registered, assigned bus number 1
[    1.220922] oxnas-ehci 40200100.ehci: irq 39, io mem 0x40200100
[    1.244277] oxnas-ehci 40200100.ehci: USB 2.0 started, EHCI 1.00
[    1.250688] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.257502] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.264732] usb usb1: Product: EHCI Host Controller
[    1.269593] usb usb1: Manufacturer: Linux 3.12.6_OXNAS+ ehci_hcd
[    1.275589] usb usb1: SerialNumber: 40200100.ehci
[    1.281256] hub 1-0:1.0: USB hub found
[    1.285140] hub 1-0:1.0: 2 ports detected
[    1.289879] usbcore: registered new interface driver usb-storage
[    1.296663] input: gpio-keys.6 as /devices/gpio-keys.6/input/input0
[    1.305036] usbcore: registered new interface driver usbhid
[    1.310589] usbhid: USB HID core driver
[    1.314800] TCP: cubic registered
[    1.319480] NET: Registered protocol family 10
[    1.325621] sit: IPv6 over IPv4 tunneling driver
[    1.332336] ip6_gre: GRE over IPv6 tunneling driver
[    1.338257] NET: Registered protocol family 17
[    1.604293] usb 1-2: new high-speed USB device number 2 using oxnas-ehci
[    1.669995] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[    1.681940] ata1.00: ATA-8: SAMSUNG HD103SJ, 1AJ100E4, max UDMA/133
[    1.688192] ata1.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 0/32)
[    1.700751] ata1.00: configured for UDMA/133
[    1.705748] scsi 0:0:0:0: Direct-Access     ATA      SAMSUNG HD103SJ  1AJ1 PQ: 0 ANSI: 5
[    1.715192] sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
[    1.723555] sd 0:0:0:0: [sda] Write Protect is off
[    1.728673] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    1.765611] usb 1-2: New USB device found, idVendor=0951, idProduct=168a
[    1.772377] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    1.779509] usb 1-2: Product: DT Micro
[    1.783316] usb 1-2: Manufacturer: Kingston
[    1.787507] usb 1-2: SerialNumber: 50E549C20280BC31700001F5
[    1.793653]  sda: sda1 sda2
[    1.794280] usb-storage 1-2:1.0: USB Mass Storage device detected
[    1.803415] scsi1 : usb-storage 1-2:1.0
[    1.805416] sd 0:0:0:0: [sda] Attached SCSI disk
[    1.805729] Freeing unused kernel memory: 148K (c0521000 - c0546000)
Loading, please wait...
[    1.960110] udevd[67]: starting version 175
Begin: Loading essential drivers ... [    2.790466] md: raid0 personality registered for level 0
[    2.815267] md: raid1 personality registered for level 1
[    2.838264] md: linear personality registered for level -1
[    2.880409] device-mapper: ioctl: 4.26.0-ioctl (2013-08-15) initialised: dm-devel@redhat.com
[    2.889582] scsi 1:0:0:0: Direct-Access     Kingston DT Micro         PMAP PQ: 0 ANSI: 0 CCS
[    2.931591] md: raid10 personality registered for level 10
[    2.940180] xor: measuring software checksum speed
[    3.039933]    arm4regs  :   831.200 MB/sec
[    3.139919]    8regs     :   421.200 MB/sec
[    3.239920]    32regs    :   513.200 MB/sec
[    3.244090] xor: using function: arm4regs (831.200 MB/sec)
[    3.420454] raid6: int32x1     26 MB/s
[    3.590272] raid6: int32x2     46 MB/s
[    3.760174] raid6: int32x4     47 MB/s
[    3.930237] raid6: int32x8     48 MB/s
[    3.933969] raid6: using algorithm int32x8 (48 MB/s)
[    3.938910] raid6: using intx1 recovery algorithm
[    3.956280] md: raid6 personality registered for level 6
[    3.961774] md: raid5 personality registered for level 5
[    3.967078] md: raid4 personality registered for level 4
[    3.974466] 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
[    4.277708] sd 1:0:0:0: [sdb] 15356160 512-byte logical blocks: (7.86 GB/7.32 GiB)
[    4.285934] sd 1:0:0:0: [sdb] Write Protect is off
[    4.291302] sd 1:0:0:0: [sdb] No Caching mode page found
[    4.296640] sd 1:0:0:0: [sdb] Assuming drive cache: write through
[    4.309040] sd 1:0:0:0: [sdb] No Caching mode page found
[    4.314439] sd 1:0:0:0: [sdb] Assuming drive cache: write through
[    4.358289]  sdb: sdb1
[    4.365972] sd 1:0:0:0: [sdb] No Caching mode page found
[    4.371397] sd 1:0:0:0: [sdb] Assuming drive cache: write through
[    4.377484] sd 1:0:0:0: [sdb] Attached SCSI removable disk
[   10.277624] EXT2-fs (sda1): error: couldn't mount because of unsupported optional features (4)
[   10.288015] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   10.946918] EXT4-fs (sda1): 1 orphan inode deleted
[   10.951792] EXT4-fs (sda1): recovery complete
[   11.130631] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[   11.166853] EXT2-fs (sdb1): warning: mounting ext3 filesystem as ext2
[   11.319063] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   11.334128] 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[   13.314365] udevd[280]: 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.959751] EXT4-fs (sda1): re-mounted. Opts: (null)
[....] Checking root file system...fsck from util-linux 2.25.2
/dev/sda1: clean, 12284/524288 files, 197129/2097152 blocks
done.
[   16.424650] 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.
[   21.059340] eth0: device MAC address da:0d:10:ca:8b:57
[....] 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/da:0d:10:ca:8b:57
Sending on   LPF/eth0/da:0d:10:ca:8b:57
Sending on   Socket/fallback
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
No DHCPOFFERS received.
Trying recorded lease 192.168.8.130
PING 192.168.8.48 (192.168.8.48) 56(84) bytes of data.

--- 192.168.8.48 ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms

No working leases in persistent database - sleeping.
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...
1336 (syslogd)
. ok
[ ok ] Starting system message bus: dbus.
[ ok ] Starting NFS common utilities: statd.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1339 (klogd)
. ok

Debian GNU/Linux 8 debian ttyS0

debian login:


------
Moderator edit: please use code tags (formatted code button) to post log

Re: U-Boot 2015.10 for Iomega HMNHDCE

$
0
0
Ok so it is a Pogoplug Pro V3 clone.

You can proceed to install uboot.2015.10-tld-2:
https://forum.doozan.com/read.php?3,16017

and if desired, a new rootfs Debian-4.4.54-oxnas-tld-1-rootfs-bodhi.tar.bz2:
https://forum.doozan.com/read.php?2,16044

Note: the current rootfs you have is OK to use, and you can upgrade the kernel to linux-4.4.133-oxnas-tld-1 (tarball linux-4.4.133-oxnas-tld-1.bodhi.tar.bz2), if you don't want to upgrade rootfs becasue you have insalled too many packages.

==============


One thing to pay attention to before installing new u-boot is olderzeus' rootfs and setup do not have the MTD partition defined. These are needed before new u-boot can be installed.

1. uBoot envs config and mtd partitions must be defined as followed in your rootfs 

cat /etc/fw_env.config 
# pogoplug v3
  /dev/mtd0               0x00100000      0x20000         0x20000

cat /proc/mtd 
dev:    size   erasesize  name
mtd0: 00e00000 00020000 "boot"
mtd1: 07200000 00020000 "data"

But do take a look at the 2 threads I posted above to see if you are comfortable with performing these procedures. And come back and let me know you want to proceed.

Re: Replace ArchLinuxARM with Debian on GoFlexHome

$
0
0
spindles7,

For whatever reason, the bootcmd_unenv was never executed before the scandisk

bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi; sleep 3


GoFlexHome> boot

Reset IDE: Bus 0: OK Bus 1: not available
  Device 0: Model: ST1000DM000-9TS15E Firm: CC92 Ser#: 5YA0FYGY
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)

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

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            41943040        00000000-01     83
  2     41945088        1911580080      00000000-02     83
running scan_disk ...

So your SATA partition 1 is the suspect. What is in it and why do you have 2 partitions on this SATA disk? (Note the rootfs installation requirement of a single Ext3 partition).

Re: orange pi one $11.03 inlcluding shipping

$
0
0
asterix Wrote:
-------------------------------------------------------
> habibie Wrote:
> -------------------------------------------------------
> > Even though if it comes with a free S/H to US,
> I
> > definitely will pass.
>
> I had some raspberry pi and orange pi, no
> significant difference when running debian on
> orange pi. the only complain is lack of official
> support ( official images terrible) and community
> contribution, however debian images from
> armbian.com works very well on orange pi.


+1

Re: U-Boot 2015.10 for Iomega HMNHDCE

$
0
0
bodhi Wrote:
-------------------------------------------------------

> One thing to pay attention to before installing
> new u-boot is olderzeus' rootfs and setup do not
> have the MTD partition defined. These are needed
> before new u-boot can be installed.


How should I define MTD partitions? There is a /etc/fw_env.config in the rootfs...

Re: U-Boot 2015.10 for Iomega HMNHDCE

$
0
0
Note the 1st step


Quote

1. uBoot envs config and mtd partitions must be defined as followed in your rootfs

cat /etc/fw_env.config
# pogoplug v3
/dev/mtd0 0x00100000 0x20000 0x20000

cat /proc/mtd
dev: size erasesize name
mtd0: 00e00000 00020000 "boot"
mtd1: 07200000 00020000 "data"

If you don't have /etc/fw_env.config file in your system, then you are running either stock Pogo OS, or earlier version of Arch Linux ARM. Go ahead and create this file with the above content.

The mtdpart definition needs to be passed into the kernel bootargs with u-boot env. So we nned to look at your current mtdparts (if any) and u-boot env.

1. In Debian

cat /proc/mtd


2. Power up interrupt serial console and

printenv

Re: U-Boot 2015.10 for Iomega HMNHDCE

$
0
0
1. cat /proc/mtd (none MTD partitions)
root@debian:~# cat /proc/mtd
dev:    size   erasesize  name

2. printenv (is it what you need?)
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 elevator=cfq mem=256M poweroutage=yes mac_adr=0x00,0xd0,0xb8,0x19,0x34,0x6b

Re: U-Boot 2015.10 for Iomega HMNHDCE

$
0
0
mari8b,

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

Ok. That's what I expected.

> 2. printenv (is it what you need?)

Yes, it is.

> bootargs=root=/dev/sda1 console=ttyS0,115200
> elevator=cfq mem=256M poweroutage=yes
> mac_adr=0x00,0xd0,0xb8,0x19,0x34,0x6b

The bootargs need to have mtdparts env in it.


Power up, interrupt serial console, and execute:

setenv mtdparts 'mtdparts=41000000.nand:14m(boot),-(data)'
setenv bootargs 'root=/dev/sda1 console=ttyS0,115200  elevator=cfq mem=256M poweroutage=yes mac_adr=0x00,0xd0,0xb8,0x19,0x34,0x6b $(mtdparts)'
boot

Let it boot into Debian, login and check:

cat /proc/mtd

If it shows the mtdparts as below, then you are ready to install u-boot.
dev: size erasesize name 
mtd0: 00e00000 00020000 "boot" 
mtd1: 07200000 00020000 "data"

Re: How to unbrick GoFlex Home?

$
0
0
Just to explain why I want to do this.. I've broken into the GFH unit which has the original Stock system installed and I have a good connector for the pins which makes all the difference for using serial connections. This does make a hell of a difference because I previously used three badly fitting wires and had to keep holding them in place whilst using a serial connection. The slightest movement would cause a hang or some other disruption. Basically using a serial connector became a PITA. So, I want to use this unit for testing/learning, but I also want a unit which can be used as a simple NAS with an embedded OS. The other unit is still intact (physically) although it has ArchLinux installed which I want to restore to its original state.

In order to do

- boot the stock GFHome. Log into stock OS, dump the stock mtds using nanddump.
- Copy those nand-dumped files to a USB drive.

Presumably this is what I should run:-

cd /tmp 
mkdir usb 
mount /dev/sda1 /tmp/usb 
wget http://plugapps.com/os/pogoplug/uboot/nanddump 
chmod +x nanddump 
./nanddump -nf usb/mtd0 /dev/mtd0 
./nanddump -nf usb/mtd1 /dev/mtd1 
./nanddump -nf usb/mtd2 /dev/mtd2 
umount /dev/sda1

Just for clarification, should I (a) ssh into the system or (b) access it via the serial port and if (b) do I stop it during the boot process, or should I login at the login prompt?

Also is the version of nanddump mentioned above the correct one?

Re: orange pi one $11.03 inlcluding shipping

$
0
0
For you guys who have the means to order, don't forget the world trade situation and the direction its going.

I have $14.50 on my Bluebird debit (Amex) and if it worked beyond US borders I'd be on this ASAP.

Re: Replace ArchLinuxARM with Debian on GoFlexHome

$
0
0
The SATA partition 1 is the rootfs (newly created), formatted as ext4 (as I am using the latest uBoot) but now has additional software installed etc. Partition 2 is for data eg where samba shares will reside, as I intend to run it as a fileserver. You will recall in an earlier post I asked if it was OK to create additional partitions on the SATA drive. It doesn't seem to have changed anything - ie this didn't work before I added the 2nd partition.

So, I tried a new HDD plugged into the SATA port, deleted all existing partitions, created a new ext3 partition and copied the rootfs onto it. I edited /boot/uEnv.txt and rebooted. This is the sessions log before re-boot:

Script started on Fri Aug 10 14:15:04 2018
root@debian:~# fdisk /dev/sda
Welcome to fdisk (util-linux 2.29.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): d
Selected partition 1
Partition 1 has been deleted.

Command (m for help): p
Disk /dev/sda: 232.9 GiB, 250059350016 bytes, 488397168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xefb7e0e2

Command (m for help): n
Partition type
   p   primary (0 primary, 0 extended, 4 free)
   e   extended (container for logical partitions)
Select (default p): p
Partition number (1-4, default 1): 
First sector (2048-488397167, default 2048): 
Last sector, +sectors or +size{K,M,G,T,P} (2048-488397167, default 488397167): +20G

Created a new partition 1 of type 'Linux' and of size 20 GiB.
Partition #1 contains a ext3 signature.

Do you want to remove the signature? [Y]es/[N]o: y

The signature will be removed by a write command.

Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.

root@debian:~# mkfs.ext3 /dev/sda1
mke2fs 1.43.4 (31-Jan-2017)
Creating filesystem with 5242880 4k blocks and 1310720 inodes
Filesystem UUID: bfbeac84-d882-4277-a6c5-fd91d2977da1
Superblock backups stored on blocks: 
	32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 
	4096000

Allocating group tables:   0/160???????       ???????done                            
Writing inode tables:   0/160??????? 32/160??????? 59/160??????? 85/160???????109/160???????133/160???????158/160???????       ???????done                            
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information:   0/160???????       ???????done

root@debian:~# e2label /dev/sda1 rootfs
root@debian:~# mount /dev/sda1 /mnt/sata
root@debian:~# cp /Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2 /mnt/sata
root@debian:~# cd /mnt/sata
root@debian:/mnt/sata# ls -l
total 191960
-rw-r--r-- 1 root root 196352036 Aug 10 14:23 Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2
drwx------ 2 root root     16384 Aug 10 14:17 lost+found
root@debian:/mnt/sata# tar -xjf Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz 
root@debian:/mnt/sata# ls -l
total 192032
-rw-r--r--  1 root root 196352036 Aug 10 14:23 Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2
drwxr-xr-x  2 root root      4096 Jul 23  2017 bin
drwxr-xr-x  3 root root      4096 Dec 31  1969 boot
drwxr-xr-x  5 root root      4096 Feb 24  2012 dev
drwxr-xr-x 57 root root      4096 Dec 31  1969 etc
drwxr-xr-x  2 root root      4096 Jan 22  2012 home
drwxr-xr-x 14 root root      4096 Jul 20  2017 lib
drwx------  2 root root     16384 Feb 24  2012 lost+found
drwxr-xr-x  2 root root      4096 Feb 24  2012 media
drwxr-xr-x  2 root root      4096 Feb 10  2015 mnt
drwxr-xr-x  2 root root      4096 Feb 24  2012 opt
drwxr-xr-x  2 root root      4096 Jan 22  2012 proc
drwx------  5 root root      4096 Jul 23  2017 root
drwxr-xr-x  2 root root      4096 Feb  7  2013 run
drwxr-xr-x  2 root root      4096 Jul 23  2017 sbin
drwxr-xr-x  2 root root      4096 Feb 24  2012 srv
drwxr-xr-x  2 root root      4096 Dec 31  2010 sys
drwxrwxrwt  2 root root      4096 Dec 31  1969 tmp
drwxr-xr-x 10 root root      4096 Feb 24  2012 usr
drwxr-xr-x 11 root root      4096 Dec 31  1969 var
echo "custom_params=init=/bin/systemd" > /boot/uEnv.txt
exit

Script done on Fri Aug 10 14:30:21 2018

And this is the session log after logging on 1st boot:
Script started on Fri Aug 10 14:34:01 2018
root@debian:~# cat /proc/cmdline
console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts orion_nand:1M(u-boot),-(rootfs)
root@debian:~# cat /boot/uEnv.txt
custom_params=init=/bin/systemd
root@debian:~# exit
exit

Script done on Fri Aug 10 14:35:18 2018

As you can see it didn't work.

Interestingly I repeated the above on a fresh usb memory stick and, lo and behold it works!
(I have the session log if you need it, but essentially it's the same as above).

So my conclusion is that:
a) it works OK if booting from a USB device
b) it doesn't work if booting from the drive in the SATA interface.

I have a supplementary question:
I have noticed that if I disconnect the netconsole, the GFH will not boot, or at least it will wait until the netconsole is connected. Is that expected behaviour?

Many thanks,
Viewing all 47104 articles
Browse latest View live


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