Quantcast
Channel: Linux Device Hacking - uBoot
Viewing all 901 articles
Browse latest View live

Changing boot sequence for making stubborn SSD (bad firmware?) boot. (no replies)

$
0
0
Hi Bodhi!
It's me again, with that annoying Transcend SSD.
The problem is, that this SSD doesn't work reliably after the IDE reset. Sometimes it's working and some times it's timing out. This is not solved by increasing the time span between the ide resets, it seems just completely random.
So what I need is a boot sequence that repeats the ide reset until the SSD is in working condition.

As far as I understood, that's what
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi; sleep 5
is doing already.

But of course there are consecutive ide resets in the general boot sequence, like for example in:
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


And as the result of those additional ide resets is random for this SSD again, it will not work for booting from this SSD.

So I wonder, what the additional ide resets are actually needed for, while scanning for the boot drive. Shouldn't all connected devices be already available from the initial
 bootcmd_uenv 
on?


I now have the time for fiddling a bit again and I wanted to get this to work.

Thak you! :)

How to convert zImage to Image for GoFLEX Home (1 reply)

$
0
0
Bodhi,

Looks like ARCH Linux ARM (ALARM) has this ArchLinuxARM-armv5-latest.tar.gz and this ArchLinuxARM-kirkwood-latest.tar.gz. I am not sure what are differences between the two. I use the later one and that gives me problems, i.e. no SSH, can't detect SATA HDD, etc. Its /boot directory also contains no kirkwood-goflexhome.dtb file. OTOH, the former (ArchLinuxARM-armv5-latest.tar.gz) does contain the dtbs/kirkwood-goflexhome.dtb file with zImage (no uImage) file in its /boot directory. At any rate, I tried to boot my GoFLEX Home with the former. In that, I have to generate the uImage file from the available zImage as shown below. However, my GoFLEX Home just boots with a solid red LED. Perhaps, I did something incorrect in uImage generation. Can you please help?
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n "Arch Linux ARM" -d zImage uImage

I don't have a serial console setup, but just netconsole which is shown below.
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 
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found

Reset IDE: ide_preinit failed
Unknown command 'mmc' - try 'help'

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

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            7890944         04dd5721-01     83 Boot

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0
loading envs from usb 0 ...
82 bytes read in 384 ms (0 Bytes/s)

no IDE devices available
Unknown command 'mmc' - try 'help'
importing envs ...
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 416 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
4143952 bytes read in 617 ms (6.4 MiB/s)
loading uInitrd ...
** File not found /boot/uInitrd **
loading DTB /boot/dtbs/kirkwood-goflexhome.dtb ...
10271 bytes read in 2922 ms (2.9 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Arch Linux ARM
   Created:      2018-04-24  17:03:36 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4143888 Bytes = 4 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
   Booting using the fdt blob at 0x1c00000


Starting kernel ...

Below is the output from printenv.
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:  3 
 0 
GoFlexHome> printenv
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
bootdelay=3
bootdev=usb
device=0:1
devices=usb ide mmc
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-goflexhome.dtb
ethact=egiga0
ethaddr=52:3b:20:9c:11:51
if_netconsole=ping $serverip
ipaddr=192.168.1.89
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
machid=0x831
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
ncip=192.168.1.87
partition=nand0,2
preboot=run if_netconsole start_netconsole
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.87
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
start_netconsole=setenv ncip $serverip; setenv bootdelay 3; 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: 2863/131068 bytes
GoFlexHome>

My /boot/uEnv.txt is shown below. Note, unlike debian ARM, ALARM stores its dtb files under /boot/dtbs directory.
dtb_file=/boot/dtbs/kirkwood-goflexhome.dtb
devices=usb ide
disks=0 1 2 3 4 5 6 7

NAND errors - BAD eraseblocks - how to fix it? NSA310, Archlinux 4.4.97-1-ARCH, no chance for a new uBoot? (3 replies)

$
0
0
Hello members.

This is part of my dmesg:
[   12.438580] Bad eraseblock 0 at 0x000000000000
[   12.443121] Bad eraseblock 1 at 0x000000020000
[   12.447626] Bad eraseblock 2 at 0x000000040000
[   12.452143] Bad eraseblock 3 at 0x000000060000
[   12.456641] Bad eraseblock 4 at 0x000000080000
[   12.461157] Bad eraseblock 5 at 0x0000000a0000
[   12.465658] Bad eraseblock 6 at 0x0000000c0000
[   12.470174] Bad eraseblock 7 at 0x0000000e0000
[   12.474675] Bad eraseblock 8 at 0x000000100000
[   12.479189] Bad eraseblock 9 at 0x000000120000
...
fw_printenv lesults this:
Too few good blocks within range

Printenv from console:
NSA310>> printenv
bootargs=console=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2) root=/dev/nfs rw init=/init
bootdelay=2
baudrate=115200
loads_echo=0
eth1addr=00:19:CB:00:51:82
ipaddr=10.4.50.165
serverip=10.4.50.5
rootpath=/mnt/ARM_FS/
netmask=255.255.255.0
nandEcc=1bit
MODEL_ID=A203
PRODUCT_NAME=NSA-310
FEATURE_BIT=00
CONTRY_TYPE=FF
VENDOR_NAME=ZyXEL Communications Corp.
run_diag=yes
console=100000
=ttyS0,115200 mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x7f00000@0x100000(root)
CASset=min
ethprime=egiga1
bootargs_root=root=/dev/nfs rw
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;
ethmtu=1500
eth1mtu=1500
mvPhoneConfig=mv_phone_config=dev0:fxs,dev1:fxs
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
arcNumber=4022
bootargs_stock=console=ttyS0,115200 mtdparts=orion_nand:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2) root=/dev/nfs rw init=/init
bootcmd_linux=setenv bootargs $(bootargs_linux); ide reset; ext2load ide 0:1 $(loadaddr) /uImage; bootm $(loadaddr)
bootargs_linux=console=ttyS0,115200 mtdparts=orion_nand:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2) root=/dev/sda2 rw rootwait loglevel=8
to_stock="setenv mainlineLinux no
MALLOC_len=3
to_linux="setenv mainlineLinux yes
bootcmd='run bootcmd_linux'
ethaddr=CC:5D:4E:C9:F5:4A
stdin=serial
stdout=serial
stderr=serial
nandEnvBase=100000
mainlineLinux=yes
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
disaMvPnp=no
hddPowerCtrl=no
enaAutoRecovery=yes
kernel_addr=0xc80000
pcieTune=no
ethact=egiga1

Environment size: 2241/131068 bytes
I cant install uboot from arch repos (the too few good blocks error).
Is it because of a wrong NAND chip timing in the DTS? How to fix it?

mainline kirkwood uboot (no replies)

$
0
0
Sorry for what may be taken as a political first question ...

Is there a reason why the kirkwood uboot isn't mainlined on the denx site, instead maintained by bodhi?

Just thinking if mainlined, would stay in line with other set up, e.g. the change the scripting uboot, over environmental variables.

Just wondering if there was some politics behind it ...

What version of Rescue am I running? (no replies)

$
0
0
I recently pulled my GoFlex Home out of the closet to start working with it again. It's running an installation of the rescue provided on these forums, but I installed it so long ago that I can't recall the details.

I'd like to update it to the most recent version of the rescue and then install Debian/Arch onto a thumbdrive. I know that the details are important, so I'm trying to determine what version of the rescue I installed before I proceed.

Could you anyone help me determine the version and/or provide some guidance on installing Debian/Arch onto a thumbdrive?

Need help with a brand new Pogoplug Mobile (4 replies)

$
0
0
I actually have two of these with the same issue. These are brand new out of box Pogoplug Mobile devices that I finally had time to open and try and set up, hoping to enable SSH and eventually install Samba. I have been scouring these forums but I can't seem to get past this first hurdle, Sorry if I am missing something obvious.

Problem: Both Pogoplugs just start up and eventually go to a solid red LED. I realize that this is probably because Pogo's servers are now offline and the devices can't call home.
I never get a # prompt after the kernel loads, it just ends with XCE: XCE: LED -> DISCONNECTED.

So I thought I would try to interrupt u-boot at the "Hit any key to stop autoboot:" line but I can't seem to interrupt the boot no matter what key I press. I never get the u-boot prompt so I can't print out the environment variables.

I have attached a serial connection (soldered to board) and am using a PL2303HX TTL to USB adapter purchased on ebay. In Putty and I am getting output so I know the TXD and RXD lines are not reversed.

Does anyone have an idea what might be happening here? I have verified via multimeter that the TX and RX and Ground from the USB adapter are making a good connection. I have set Baud rate to 115200, N,8,1 No flow control.

Here is the output I get in Putty:


U-Boot 1.1.4 (Oct  1 2011 - 12:21:35) Cloud Engines 1.1.2 (3.4.27) PHYADDR=0

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006918B4

Soc: 88F6192 A1 (DDR2)
CPU running @ 800Mhz L2 running @ 400Mhz
SysClock = 200Mhz , TClock = 166Mhz

DRAM CAS Latency = 3 tRP = 3 tRAS = 8 tRCD=3
DRAM CS[0] base 0x00000000   size 128MB
DRAM Total size 128MB  16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:128 MB
Flash:  0 kB

CPU : Marvell Feroceon (Rev 1)
CLOUD ENGINES BOARD: PPV4A1

Streaming disabled
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
Net:   egiga0 [PRIME]
Hit any key to stop autoboot:  0

Loading from NAND 128MB 3,3V 8-bit, offset 0x200000
   Image Name:   Linux-2.6.31.8
   Created:      2011-08-23  20:00:55 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2080956 Bytes =  2 MB
   Load Address: 00008000
   Entry Point:  00008000
## Booting image at 00800000 ...
   Image Name:   Linux-2.6.31.8
   Created:      2011-08-23  20:00:55 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2080956 Bytes =  2 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux..................................................................................................................................... done, booting the kernel.
[    0.000000] Linux version 2.6.31.8 (afenn@kt) (gcc version 4.3.2 (sdk3.3-ct-ng-1.4.1) ) #4 Tue Aug 23 13:00:50 PDT 2011
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: Feroceon-KW
[    0.000000] Using UBoot passing parameters structure
[    0.000000] Ignoring unrecognised tag 0x41004345
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200 root=ubi0:rootfs ubi.mtd=4,2048 rootfstype=ubifs
[    0.000000] PID hash table entries: 512 (order: 9, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 128MB = 128MB total
[    0.000000] Memory: 118356KB available (3852K code, 261K data, 124K init, 0K highmem)
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS:128
[    0.000000] Console: colour dummy device 80x30
[    0.000000] Calibrating delay loop... 799.53 BogoMIPS (lpj=3997696)
[    0.230000] Mount-cache hash table entries: 512
[    0.230000] CPU: Testing write buffer coherency: ok
[    0.230000] NET: Registered protocol family 16
[    0.230000] Feroceon L2: Enabling L2
[    0.230000] Feroceon L2: Cache support initialised.
[    0.230000]
[    0.230000] CPU Interface
[    0.230000] -------------
[    0.230000] SDRAM_CS0 ....base 00000000, size 128MB
[    0.230000] SDRAM_CS1 ....disable
[    0.230000] SDRAM_CS2 ....disable
[    0.230000] SDRAM_CS3 ....disable
[    0.230000] PEX0_MEM ....base e0000000, size 128MB
[    0.230000] PEX0_IO ....base f2000000, size   1MB
[    0.230000] PEX1_MEM ....no such
[    0.230000] PEX1_IO ....no such
[    0.230000] INTER_REGS ....base f1000000, size   1MB
[    0.230000] NFLASH_CS ....base fa000000, size   2MB
[    0.230000] SPI_CS ....base f4000000, size  16MB
[    0.230000] BOOT_ROM_CS ....no such
[    0.230000] DEV_BOOTCS ....no such
[    0.230000] CRYPT_ENG ....base f0000000, size   2MB
[    0.230000]
[    0.230000]   Marvell Development Board (LSP Version KW_LSP_5.1.3_patch18)-- RD-88F6192A-NAS  Soc: 88F6192 A1 LE
[    0.230000]
[    0.230000]  Detected Tclk 166666667 and SysClk 200000000
[    0.230000] Marvell USB EHCI Host controller #0: c403e740
[    0.730000] PEX0 interface detected no Link.
[    0.730000] PCI: bus0: Fast back to back transfers enabled
[    0.730000] mvPexLocalBusNumSet: ERR. Invalid PEX interface 1
[    0.750000] bio: create slab <bio-0> at 0
[    0.750000] SCSI subsystem initialized
[    0.750000] usbcore: registered new interface driver usbfs
[    0.750000] usbcore: registered new interface driver hub
[    0.750000] usbcore: registered new device driver usb
[    0.750000] NET: Registered protocol family 2
[    0.750000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.750000] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[    0.750000] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.750000] TCP: Hash tables configured (established 4096 bind 4096)
[    0.750000] TCP reno registered
[    0.750000] NET: Registered protocol family 1
[    0.750000] cpufreq: Init kirkwood cpufreq driver
[    0.760000] XOR registered 4 channels
[    0.760000] XOR 2nd invalidate WA enabled
[    0.760000] cesadev_init(c000d7fc)
[    0.760000] mvCesaInit: sessions=640, queue=64, pSram=f0000000
[    0.760000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.770000] msgmni has been set to 231
[    0.770000] alg: No test for cipher_null (cipher_null-generic)
[    0.770000] alg: No test for ecb(cipher_null) (ecb-cipher_null)
[    0.770000] alg: No test for digest_null (digest_null-generic)
[    0.770000] alg: No test for compress_null (compress_null-generic)
[    0.780000] alg: No test for stdrng (krng)
[    0.780000] alg: No test for hmac(digest_null) (hmac(digest_null-generic))
[    0.790000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[    0.790000] io scheduler noop registered
[    0.790000] io scheduler anticipatory registered (default)
[    0.790000] Initializing ths8200_init
[    0.790000] Initializing dove_adi9889_init
[    0.810000] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.810000] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
[    0.810000] console [ttyS0] enabled
[    0.820000] Integrated Sata device found
[    0.830000] IRQ 21/mvSata: IRQF_DISABLED is not guaranteed on shared IRQs
[    0.850000] scsi0 : Marvell SCSI to SATA adapter
[    0.860000] scsi1 : Marvell SCSI to SATA adapter
[    0.870000] Loading Marvell Ethernet Driver:
[    0.870000]   o Cached descriptors in DRAM
[    0.880000]   o DRAM SW cache-coherency
[    0.880000]   o 1 Giga ports supported
[    0.880000]   o Single RX Queue support - ETH_DEF_RXQ=0
[    0.890000]   o Single TX Queue support - ETH_DEF_TXQ=0
[    0.890000]   o TCP segmentation offload (TSO) supported
[    0.900000]   o Large Receive offload (LRO) supported
[    0.900000]   o Receive checksum offload supported
[    0.910000]   o Transmit checksum offload supported
[    0.910000]   o Network Fast Processing (Routing) supported - (Disabled)
[    0.920000]   o Driver ERROR statistics enabled
[    0.930000]   o Proc tool API enabled
[    0.930000]   o SKB Reuse supported - (Disabled)
[    0.930000]   o SKB Recycle supported - (Disabled)
[    0.940000]   o Rx descripors: q0=128
[    0.940000]   o Tx descripors: q0=532
[    0.950000]   o Loading network interface(s):
[    0.950000]      o register under mv88fx_eth platform
[    0.960000]      o eth0, ifindex = 2, GbE port = 0
[    0.960000]
[    0.960000] mvFpRuleDb (c45b2000): 1024 entries, 4096 bytes
[    0.970000] Counter=0, opIdx=6, overhead=16
[    0.970000] Counter=1, opIdx=2, overhead=0
[    0.980000] Counter=2, opIdx=1, overhead=18
[    0.980000] Counter=3, opIdx=2, overhead=0
[    0.990000] tun: Universal TUN/TAP device driver, 1.6
[    0.990000] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[    1.000000] NAND device: Manufacturer ID: 0xad, Chip ID: 0xf1 (Hynix NAND 128MiB 3,3V 8-bit)
[    1.010000] Scanning device for bad blocks
[    1.030000] Bad eraseblock 541 at 0x0000043a0000
[    1.040000] Bad eraseblock 604 at 0x000004b80000
[    1.070000] Using static partition definition
[    1.070000] Creating 5 MTD partitions on "nand_mtd":
[    1.070000] 0x000000000000-0x000000200000 : "u-boot"
[    1.080000] 0x000000200000-0x000000500000 : "uImage"
[    1.090000] 0x000000500000-0x000000800000 : "uImage2"
[    1.090000] 0x000000800000-0x000001000000 : "failsafe"
[    1.100000] 0x000001000000-0x000008000000 : "root"
[    1.100000] UBI: attaching mtd4 to ubi0
[    1.110000] UBI: physical eraseblock size:   131072 bytes (128 KiB)
[    1.110000] UBI: logical eraseblock size:    126976 bytes
[    1.120000] UBI: smallest flash I/O unit:    2048
[    1.120000] UBI: sub-page size:              512
[    1.130000] UBI: VID header offset:          2048 (aligned 2048)
[    1.140000] UBI: data offset:                4096
[    1.360000] UBI: attached mtd4 to ubi0
[    1.360000] UBI: MTD device name:            "root"
[    1.370000] UBI: MTD device size:            112 MiB
[    1.370000] UBI: number of good PEBs:        894
[    1.380000] UBI: number of bad PEBs:         2
[    1.380000] UBI: max. allowed volumes:       128
[    1.390000] UBI: wear-leveling threshold:    4096
[    1.390000] UBI: number of internal volumes: 1
[    1.400000] UBI: number of user volumes:     1
[    1.400000] UBI: available PEBs:             0
[    1.410000] UBI: total number of reserved PEBs: 894
[    1.410000] UBI: number of PEBs reserved for bad PEB handling: 8
[    1.420000] UBI: max/mean erase counter: 1/0
[    1.420000] UBI: image sequence number: 0
[    1.420000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.430000] ehci_marvell ehci_marvell.70059: Marvell Orion EHCI
[    1.440000] ehci_marvell ehci_marvell.70059: new USB bus registered, assigned bus number 1
[    1.450000] UBI: background thread "ubi_bgt0d" started, PID 451
[    1.480000] ehci_marvell ehci_marvell.70059: irq 19, io base 0xf1050100
[    1.500000] ehci_marvell ehci_marvell.70059: USB 2.0 started, EHCI 1.00
[    1.500000] usb usb1: configuration #1 chosen from 1 choice
[    1.510000] hub 1-0:1.0: USB hub found
[    1.510000] hub 1-0:1.0: 1 port detected
[    1.520000] Initializing USB Mass Storage driver...
[    1.520000] usbcore: registered new interface driver usb-storage
[    1.530000] USB Mass Storage support registered.
[    1.530000] usbcore: registered new interface driver ums-datafab
[    1.540000] usbcore: registered new interface driver ums-freecom
[    1.540000] usbcore: registered new interface driver ums-jumpshot
[    1.550000] usbcore: registered new interface driver ums-sddr09
[    1.560000] usbcore: registered new interface driver ums-sddr55
[    1.560000] usbcore: registered new interface driver ums-usbat
[    1.570000] mice: PS/2 mouse device common for all mice
[    1.570000] i2c /dev entries driver
[    1.590000] sdhci: Secure Digital Host Controller Interface driver
[    1.590000] sdhci: Copyright(c) Pierre Ossman
[    1.600000] mmc0: mvsdio driver initialized, using GPIO 27 for card detection
[    1.610000] usbcore: registered new interface driver usbhid
[    1.610000] usbhid: v2.6:USB HID core driver
[    1.620000] TCP cubic registered
[    1.620000] NET: Registered protocol family 17
[    1.630000] RPC: Registered udp transport module.
[    1.630000] RPC: Registered tcp transport module.
[    1.640000] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[    1.780000] UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[    1.780000] UBIFS: file system size:   110596096 bytes (108004 KiB, 105 MiB, 871 LEBs)
[    1.790000] UBIFS: journal size:       9023488 bytes (8812 KiB, 8 MiB, 72 LEBs)
[    1.800000] UBIFS: media format:       w4/r0 (latest is w4/r0)
[    1.800000] UBIFS: default compressor: lzo
[    1.810000] UBIFS: reserved for root:  0 bytes (0 KiB)
[    1.810000] VFS: Mounted root (ubifs filesystem) on device 0:11.
[    1.820000] Freeing init memory: 124K
[    1.890000] usb 1-1: new high speed USB device using ehci_marvell and address 2
[    2.050000] usb 1-1: configuration #1 chosen from 1 choice
[    2.070000] scsi2 : SCSI emulation for USB Mass Storage devices
[    3.930000] eth0: link up, full duplex, speed 100 Mbps
[    3.940000] eth0: started
udhcpc (v1.16.1) started
HWADDR 00 0x25 0x31 0x03 0xe5 0xbb
PIP0 229
PIP1 187
cat: can't open '/etc/resolv.conf': No such file or directory
route: SIOCDELRT: No such process
grep: /etc/resolv.conf: No such file or directory
Sending discover...
Sending select for 192.168.0.109...
Lease of 192.168.0.109 obtained, lease time 86400
HWADDR 00 0x25 0x31 0x03 0xe5 0xbb
PIP0 229
PIP1 187
route: SIOCDELRT: No such process
modprobe: module 'vfat' not found
[    5.630000] ufsd: module license 'Commercial product' taints kernel.
[    5.630000] Disabling lock debugging due to kernel taint
[    5.670000] ufsd: driver 8.5 (NTFS4LINUX_U85_017_S[2011-08-17-16:51:48]) LBD=ON with delayalloc with ioctl loaded at bf000000
[    5.670000] NTFS support included
[    5.670000] Hfs+/HfsX support included
[    5.670000] For 'CloudEngines_PogoPlug_2011-08-03'
Loading rt3070sta.ko:        [    6.000000] rtusb init rt2870 --->
[    6.010000] usbcore: registered new interface driver rt2870
Success
Loading xce.ko:              [    6.040000] Cloud Engines XCE Init [Version: 3.1.99.12]
[    6.040000] XCE: CPU MEMORY MAP:
[    6.050000] XCE:   -- 0x00001000 - 0xbeffffff (3055 MB)  User Space Mappings
[    6.050000] XCE:   -- 0xbf000000 - 0xbfffffff (  16 MB)  Kernel module space
[    6.060000] XCE:   -- 0xc0000000 - 0xc7ffffff ( 128 MB)  Kernel direct-mapped ram
[    6.070000] XCE:   -- 0xc8800000 - 0xe7ffffff ( 504 MB)  Kernel vmalloc space
[    6.080000] XCE:   -- 0xe8000000 - 0xfeffffff ( 367 MB)  Kernel platform space
[    6.080000] XCE: CPU FEATURES:
[    6.090000] XCE:   -- I Cache:         enabled
[    6.090000] XCE:   -- D Cache:         enabled
[    6.090000] XCE:   -- Branch Predict:  disabled
[    6.100000] XCE:   -- MMU:             enabled
[    6.100000] XCE:   -- Alignment Abort: enabled
[    6.110000] XCE: BLPARAMS:   -- Loading properties [c4d13efc].
[    6.120000] XCE: BLPARAMS:   -- MTD @ [c45c0c00].
[    6.120000] XCE: BLPARAMS: Locating parameter block...
[    6.130000] XCE: BLPARAMS: reading 2048 bytes @ a0000
[    6.140000] XCE: Loaded Property Size: 2048
[    6.140000] XCE:    - 'cesvcid' -> 'GLGJDZZTT6SG5TJFSYQR5ZXLCJ'
[    6.150000] XCE:    - 'ceboardver' -> 'PPV4A1'
[    6.150000] XCE:   -- ICache Prefetch: enabled
[    6.150000] XCE:   -- DCache Prefetch: enabled
[    6.160000] XCE:   -- L2 Cache:        enabled
[    6.160000] XCE:   -- L2 Prefetch:     disabled
[    6.170000] XCE:   -- L2 Writethrough: disabled
[    6.170000] XCE:   -- Write Allocate:  disabled
[    6.180000] XCE:   -- Streaming:       disabled
[    6.180000] XCE: Current GPIO State:
[    6.180000] XCE:  GPIO L OUT:    0x01e18400
[    6.190000] XCE:  GPIO L OE:     0xfe004800
[    6.190000] XCE:  GPIO L BLINK:  0x00000000
[    6.200000] XCE:  GPIO L POL:    0x08000000
[    6.200000] XCE:  GPIO L IN:     0x31e00000
[    6.210000] XCE:  GPIO H OUT:    0x00000008
[    6.210000] XCE:  GPIO H OE:     0x00000005
[    6.210000] XCE:  GPIO H BLINK:  0x00000000
[    6.220000] XCE:  GPIO H POL:    0x00000000
[    6.220000] XCE:  GPIO H IN:     0x00000008
Success
Starting hbplug:             Success
/ # [    6.310000] XCE: BLPARAMS:   -- Loading properties [c4c37ecc].
[    6.320000] XCE: BLPARAMS:   -- MTD @ [c45c0c00].
[    6.320000] XCE: BLPARAMS: Locating parameter block...
[    6.330000] XCE: BLPARAMS: reading 2048 bytes @ a0000
[    6.330000] XCE: BLPARAMS: reading 2048 bytes @ a0800
[    6.340000] XCE: BLPARAMS: reading 2048 bytes @ a1000
[    6.350000] XCE: BLPARAMS: reading 2048 bytes @ a1800
[    7.290000] scsi 2:0:0:0: Direct-Access     ADATA    USB Flash Drive  1100 PQ: 0 ANSI: 6
[    7.310000] sd 2:0:0:0: [sda] 15155200 512-byte logical blocks: (7.75 GB/7.22 GiB)
[    7.310000] sd 2:0:0:0: [sda] Write Protect is off
[    7.320000] sd 2:0:0:0: [sda] Assuming drive cache: write through
[    7.330000] sd 2:0:0:0: [sda] Assuming drive cache: write through
[    7.340000]  sda: sda1
[    7.350000] sd 2:0:0:0: Attached scsi generic sg0 type 0
[    7.410000] sd 2:0:0:0: [sda] Assuming drive cache: write through
[    7.420000] sd 2:0:0:0: [sda] Attached SCSI removable disk
[   11.620000] XCE: XCE: LED -> DISCONNECTED

Issues with Cisco ON100 booting (6 replies)

$
0
0
Hi,

First post here so sorry if I seem vague.

I've been working on getting OpenWRT running on my Cisco ON100 which is a Marvell Kirkwood based device.

I'll preface this by saying my experience with this stuff is lacking, the only other device kind of like this I've messed with was a PC Engines AMD Geode box that I wanted to use for the same purpose.

I got it all working, booted into OpenWRT and then for whatever reason I issued
nand erase
Can't remember why! But then I did
reset

And nothing happened, now I'm stuck with a device that doesn't boot. I get Power and both LAN and MON Link/ACT lights on solid.

I fired up my ThinkPad with Debian on it and tried kwboot, following the progress bodhi made in 2016 with the u-boot KWB files and managed to get it to boot over the UART.

Great! So then what did I do wrong? Wiped the partitions from the NAND. I was pretty tired at this point.

I have no idea why I've done this but I have a tendency to break things after they're all working.

Could anyone assist? I think I could sort this by writing someone's NAND dump from a ON100.

Thanks,

EDIT: May be worth noting I remember it finding a bad block on the NAND, that's probably why I ran the erase command

NSA325 uboot does not detect hdd (no replies)

$
0
0
hello,

I am trying to configure a NSA325 however it does not seem to be able to detect my sata drives (hdd).
I plugged a HDD in the left slot (but on the right slot it does not detect it either...)

any idea?

thanks in advance!

I can see this in the logs but no idea what it means...

[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ 243.892488] ata2: SRST failed (errno=-16)
[ 243.896546] ata2: reset failed, giving up
[ 243.900588] ata2: exception Emask 0x10 SAct 0x0 SErr 0x180000 action 0x6 frozen t1
[ 243.908518] ata2: edma_err_cause=00000020 pp_flags=00000000, SError=00180000
[ 243.915623] ata2: SError: { 10B8B Dispar }
[ 243.919745] ata2: hard resetting link
[....] Starting busybox' klogd implementation



U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:42:03 -0700)
ZyXEL NSA325 2-Bay Power Media Server

SoC:   Kirkwood 88F6282_A1
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
MV88E1318 PHY initialized on egiga0
Hit any key to stop autoboot:  0
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices...
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found

Reset IDE: ide_preinit failed
Unknown command 'mmc' - try 'help'

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

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            15630336        ae535dd1-01     83

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0
loading envs from usb 0 ...
** File not found /boot/uEnv.txt **

no IDE devices available
Unknown command 'mmc' - try 'help'
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 661 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
3154896 bytes read in 892 ms (3.4 MiB/s)
loading uInitrd ...
7179935 bytes read in 965 ms (7.1 MiB/s)
loading DTB /boot/dts/kirkwood-nsa325.dtb ...
14528 bytes read in 1476 ms (8.8 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.4.0-kirkwood-tld-1
   Created:      2016-02-19   5:55:25 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3154832 Bytes = 3 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.4.0-kirkwood-tld-1
   Created:      2016-02-19   7:33:04 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7179871 Bytes = 6.8 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
   Booting using the fdt blob at 0x1c00000
   Loading Kernel Image ... OK
   Loading Ramdisk to 1f434000, end 1fb0ce5f ... OK
   Loading Device Tree to 1f42d000, end 1f4338bf ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 4.4.0-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Mon Jan 25 20:35:24 PST 2016
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine model: ZyXEL NSA325
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 503452K/524288K available (6007K kernel code, 573K rwdata, 1992K rodata, 296K init, 312K bss, 20836K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc07d7ef4   (8000 kB)
[    0.000000]       .init : 0xc07d8000 - 0xc0822000   ( 296 kB)
[    0.000000]       .data : 0xc0822000 - 0xc08b169c   ( 574 kB)
[    0.000000]        .bss : 0xc08b169c - 0xc08ff9d0   ( 313 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000007] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000281] Console: colour dummy device 80x30
[    0.000307] Calibrating delay loop... 1594.16 BogoMIPS (lpj=7970816)
[    0.090070] pid_max: default: 32768 minimum: 301
[    0.090163] Security Framework initialized
[    0.090225] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090242] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090887] Initializing cgroup subsys io
[    0.090915] Initializing cgroup subsys devices
[    0.090935] Initializing cgroup subsys freezer
[    0.090963] Initializing cgroup subsys net_cls
[    0.091034] CPU: Testing write buffer coherency: ok
[    0.091428] Setting up static identity map for 0x8200 - 0x8258
[    0.091700] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.094744] devtmpfs: initialized
[    0.099561] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.099955] prandom: seed boundary self test passed
[    0.102806] prandom: 100 self tests passed
[    0.102836] pinctrl core: initialized pinctrl subsystem
[    0.103992] NET: Registered protocol family 16
[    0.104322] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.130090] cpuidle: using governor ladder
[    0.160088] cpuidle: using governor menu
[    0.160442] Feroceon L2: Enabling L2
[    0.160476] Feroceon L2: Cache support initialised.
[    0.160798] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.165062] No ATAGs?
[    0.191230] vgaarb: loaded
[    0.191514] usbcore: registered new interface driver usbfs
[    0.191574] usbcore: registered new interface driver hub
[    0.191621] usbcore: registered new device driver usb
[    0.192463] clocksource: Switched to clocksource orion_clocksource
[    0.234683] NET: Registered protocol family 2
[    0.235324] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.235380] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.235432] TCP: Hash tables configured (established 4096 bind 4096)
[    0.235482] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.235502] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.235661] NET: Registered protocol family 1
[    0.235975] RPC: Registered named UNIX socket transport module.
[    0.235984] RPC: Registered udp transport module.
[    0.235990] RPC: Registered tcp transport module.
[    0.235995] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.236211] Unpacking initramfs...
[    0.714110] Freeing initrd memory: 7012K (df434000 - dfb0d000)
[    0.714212] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.715090] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.715148] audit: initializing netlink subsys (disabled)
[    0.715194] audit: type=2000 audit(0.710:1): initialized
[    0.715468] Initialise system trusted keyring
[    0.715787] zbud: loaded
[    0.716014] VFS: Disk quotas dquot_6.6.0
[    0.716061] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.716478] NFS: Registering the id_resolver key type
[    0.716508] Key type id_resolver registered
[    0.716515] Key type id_legacy registered
[    0.716535] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.716545] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.716724] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.717124] Key type big_key registered
[    0.732181] Key type asymmetric registered
[    0.732199] Asymmetric key parser 'x509' registered
[    0.732280] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.732296] io scheduler noop registered
[    0.732307] io scheduler deadline registered
[    0.732356] io scheduler cfq registered (default)
[    0.733483] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    0.734012] irq: Cannot allocate irq_descs @ IRQ33, assuming pre-allocated
[    0.734324] irq: Cannot allocate irq_descs @ IRQ65, assuming pre-allocated
[    0.734924] mvebu-pcie mbus:pcie-controller: PCI host bridge to bus 0000:00
[    0.734939] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.734950] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    0.734960] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.735248] PCI: bus0: Fast back to back transfers disabled
[    0.735267] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.752532] PCI: bus1: Fast back to back transfers disabled
[    0.752673] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[    0.752687] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe0001fff 64bit]
[    0.752707] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.752719] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    0.752785] pcieport 0000:00:01.0: enabling device (0140 -> 0142)
[    0.752868] pci 0000:01:00.0: enabling device (0140 -> 0142)
[    0.753106] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.792976] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    0.793163] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.832974] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    0.833350] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.834432] console [ttyS0] disabled
[    0.834484] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[    1.516296] console [ttyS0] enabled
[    1.520834] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[    1.527248] nand: Samsung NAND 128MiB 3,3V 8-bit
[    1.531887] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.539509] Scanning device for bad blocks
[    1.549021] Bad eraseblock 56 at 0x000000700000
[    1.584596] Bad eraseblock 382 at 0x000002fc0000
[    1.608149] Bad eraseblock 581 at 0x0000048a0000
[    1.654927] 4 cmdlinepart partitions found on MTD device orion_nand
[    1.661221] Creating 4 MTD partitions on "orion_nand":
[    1.666392] 0x000000000000-0x000000100000 : "u-boot"
[    1.672364] 0x000000100000-0x000000500000 : "uImage"
[    1.678319] 0x000000500000-0x000002500000 : "rootfs"
[    1.684280] 0x000002500000-0x000008000000 : "data"
[    1.690933] libphy: Fixed MDIO Bus: probed
[    1.695365] libphy: orion_mdio_bus: probed
[    1.703272] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    1.710547] mv643xx_eth: Set the PHY to fix link down
[    1.716039] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address XX:XX:XX:XX:XX:XX
[    1.725146] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.731725] ehci-pci: EHCI PCI platform driver
[    1.736276] ehci-orion: EHCI orion driver
[    1.740444] orion-ehci f1050000.ehci: EHCI Host Controller
[    1.746014] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    1.753845] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[    1.772488] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    1.778690] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.785528] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.792794] usb usb1: Product: EHCI Host Controller
[    1.797691] usb usb1: Manufacturer: Linux 4.4.0-kirkwood-tld-1 ehci_hcd
[    1.804347] usb usb1: SerialNumber: f1050000.ehci
[    1.809618] hub 1-0:1.0: USB hub found
[    1.813447] hub 1-0:1.0: 1 port detected
[    1.817866] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    1.823171] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    1.830887] xhci_hcd 0000:01:00.0: hcc params 0x014042c3 hci version 0x96 quirks 0x00000004
[    1.839494] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.846332] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.853599] usb usb2: Product: xHCI Host Controller
[    1.858495] usb usb2: Manufacturer: Linux 4.4.0-kirkwood-tld-1 xhci-hcd
[    1.865151] usb usb2: SerialNumber: 0000:01:00.0
[    1.870312] hub 2-0:1.0: USB hub found
[    1.874140] hub 2-0:1.0: 2 ports detected
[    1.878559] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    1.883856] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 3
[    1.891353] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.899600] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    1.906437] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.913771] usb usb3: Product: xHCI Host Controller
[    1.918672] usb usb3: Manufacturer: Linux 4.4.0-kirkwood-tld-1 xhci-hcd
[    1.925332] usb usb3: SerialNumber: 0000:01:00.0
[    1.930506] hub 3-0:1.0: USB hub found
[    1.934339] hub 3-0:1.0: 2 ports detected
[    1.939119] mousedev: PS/2 mouse device common for all mice
[    1.945047] i2c /dev entries driver
[    1.949187] rtc-pcf8563 0-0051: chip found, driver version 0.4.4
[    1.961047] rtc-pcf8563 0-0051: rtc core: registered rtc-pcf8563 as rtc0
[    1.970379] hidraw: raw HID events driver (C) Jiri Kosina
[    1.976282] drop_monitor: Initializing network drop monitor service
[    1.982806] NET: Registered protocol family 17
[    1.987489] Key type dns_resolver registered
[    1.992419] registered taskstats version 1
[    1.996595] Loading compiled-in X.509 certificates
[    2.001455] zswap: loaded using pool lzo/zbud
[    2.012428] Key type encrypted registered
[    2.018350] rtc-pcf8563 0-0051: setting system clock to 2018-05-17 16:36:47 UTC (1526575007)
[    2.029388] Freeing unused kernel memory: 296K (c07d8000 - c0822000)
Loading, please wait...
[    2.093179] systemd-udevd[83]: starting version 215
[    2.099637] random: systemd-udevd urandom read with 4 bits of entropy available
[    2.132557] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    2.269743] SCSI subsystem initialized
[    2.314240] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[    2.320995] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    2.337814] sata_mv f1080000.sata: slots 32 ports 2
[    2.342831] usb 1-1: Product: USB2.0 Hub
[    2.349691] hub 1-1:1.0: USB hub found
[    2.357624] hub 1-1:1.0: 4 ports detected
[    2.385518] scsi host0: sata_mv
[    2.401648] scsi host1: sata_mv
[    2.412372] ata1: SATA max UDMA/133 irq 32
[    2.430224] ata2: SATA max UDMA/133 irq 32
[    2.642484] usb 1-1.2: new high-speed USB device number 3 using orion-ehci
[    2.753472] usb 1-1.2: New USB device found, idVendor=0781, idProduct=5567
[    2.760389] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.767770] usb 1-1.2: Product: Cruzer Blade
[    2.772054] usb 1-1.2: Manufacturer: SanDisk
[    2.776350] usb 1-1.2: SerialNumber: 200515362111244120BB
[    2.783851] ata1: SATA link down (SStatus 0 SControl F300)
[    2.795228] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[    2.801831] scsi host2: usb-storage 1-1.2:1.0
[    2.807779] usbcore: registered new interface driver usb-storage
[    2.816256] usbcore: registered new interface driver uas
[    3.803422] scsi 2:0:0:0: Direct-Access     SanDisk  Cruzer Blade     1.26 PQ: 0 ANSI: 5
[    3.818906] sd 2:0:0:0: [sda] 15633408 512-byte logical blocks: (8.00 GB/7.45 GiB)
[    3.828382] sd 2:0:0:0: [sda] Write Protect is off
[    3.833996] sd 2:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    3.849203]  sda: sda1
[    3.854749] sd 2:0:0:0: [sda] Attached SCSI removable disk
[    8.412482] ata2: link is slow to respond, please be patient (ready=0)
[   12.852478] ata2: SRST failed (errno=-16)
[   23.372479] ata2: SRST failed (errno=-16)
[   40.072511] ata2: link is slow to respond, please be patient (ready=0)
[   58.432476] ata2: SRST failed (errno=-16)
[   58.436508] ata2: limiting SATA link speed to 1.5 Gbps
[   63.442478] ata2: SRST failed (errno=-16)
[   63.446525] ata2: reset failed, giving up
[   63.450560] ata2: exception Emask 0x10 SAct 0x0 SErr 0x180000 action 0x6 frozen t4
[   63.458179] ata2: edma_err_cause=00000020 pp_flags=00000000, SError=00180000
[   63.465274] ata2: SError: { 10B8B Dispar }
[   63.469393] ata2: hard resetting link
[   69.022478] ata2: link is slow to respond, please be patient (ready=0)
[   73.522478] ata2: SRST failed (errno=-16)
[   73.526511] ata2: hard resetting link
[   79.072479] ata2: link is slow to respond, please be patient (ready=0)
[   83.572478] ata2: SRST failed (errno=-16)
[   83.576502] ata2: hard resetting link
[   89.122478] ata2: link is slow to respond, please be patient (ready=0)
[  116.403497] random: nonblocking pool is initialized
[  118.582478] ata2: SRST failed (errno=-16)
[  118.586510] ata2: hard resetting link
[  123.592478] ata2: SRST failed (errno=-16)
[  123.596523] ata2: reset failed, giving up
[  123.600561] ata2: exception Emask 0x10 SAct 0x0 SErr 0x10180000 action 0x6 frozen t3
[  123.608353] ata2: edma_err_cause=00000020 pp_flags=00000000, SError=00180000
[  123.615440] ata2: SError: { 10B8B Dispar }
[  123.619559] ata2: hard resetting link
[  129.172478] ata2: link is slow to respond, please be patient (ready=0)
[  133.672478] ata2: SRST failed (errno=-16)
[  133.676512] ata2: hard resetting link
[  139.222479] ata2: link is slow to respond, please be patient (ready=0)
[  143.722479] ata2: SRST failed (errno=-16)
[  143.726503] ata2: hard resetting link
[  149.272477] ata2: link is slow to respond, please be patient (ready=0)
[  178.732478] ata2: SRST failed (errno=-16)
[  178.736512] ata2: hard resetting link
[  183.742478] ata2: SRST failed (errno=-16)
[  183.746523] ata2: reset failed, giving up
[  183.750561] ata2: exception Emask 0x10 SAct 0x0 SErr 0x180000 action 0x6 frozen t2
[  183.758180] ata2: edma_err_cause=00000020 pp_flags=00000000, SError=00180000
[  183.765269] ata2: SError: { 10B8B Dispar }
[  183.769386] ata2: hard resetting link
[  189.322487] ata2: link is slow to respond, please be patient (ready=0)
[  193.822480] ata2: SRST failed (errno=-16)
[  193.826516] ata2: hard resetting link
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
modprobe: module ext3 not found in modules.dep
Begin: Checking root file system ... fsck from util-linux 2.25.2
fsck: error 2 (No such file or directory) while executing fsck.ext3 for /dev/sda1
fsck exited with status code 8
done.
Warning: File system check failed but did not detect errors
[  199.330914] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[  199.348661] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /[  199.372545] ata2: link is slow to respond, please be patient (ready=0)
scripts/init-bottom ... [  203.872483] ata2: SRST failed (errno=-16)
[  203.876518] ata2: hard resetting link
[  209.422480] ata2: link is slow to respond, please be patient (ready=0)
done.
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[....] Starting the hotplug events dispatcher: udevd[  230.483254] systemd-udevd[297]: starting version 215
. ok
[....] Synthesizing the initial hotplug events...[  230.729430] input: gpio_keys as /devices/platform/gpio_keys/input/input0
[ ok                                             done.
[....] Waiting for /dev to be fully populated...[  231.005618] marvell-cesa: probe of f1030000.crypto failed with error -524
[  231.060239] orion_wdt: Initial timeout 21 sec
[  231.098075] sd 2:0:0:0: Attached scsi generic sg0 type 0
done.
[ ok ] Activating swap...done.
[  232.479646] EXT4-fs (sda1): re-mounted. Opts: (null)
[....] Checking root file system...fsck from util-linux 2.25.2
rootfs: clean, 14521/488640 files, 148676/1953792 blocks
done.
[  232.651307] 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.
[  234.708278] NET: Registered protocol family 10
[  234.801514] mv643xx_eth: Set the PHY back to auto-negotiation mode
[  234.807907] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.1
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/XX:XX:XX:XX:XX:XX
Sending on   LPF/eth0/XX:XX:XX:XX:XX:XX
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
[  238.523727] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[  238.533635] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[  238.882480] ata2: SRST failed (errno=-16)
[  238.887138] ata2: hard resetting link
[  240.192492] INFO: task kworker/u2:1:43 blocked for more than 120 seconds.
[  240.199310]       Not tainted 4.4.0-kirkwood-tld-1 #1
[  240.204398] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[  240.212257] kworker/u2:1    D c05b245c     0    43      2 0x00000000
[  240.218667] Workqueue: events_unbound async_run_entry_fn
[  240.224030] [<c05b245c>] (__schedule) from [<c05b2778>] (schedule+0xac/0xc4)
[  240.231183] [<c05b2778>] (schedule) from [<bf050088>] (ata_port_wait_eh+0xa4/0x110 [libata])
[  240.239836] [<bf050088>] (ata_port_wait_eh [libata]) from [<bf04af14>] (ata_port_probe+0x28/0x30 [libata])
[  240.249616] [<bf04af14>] (ata_port_probe [libata]) from [<bf04af60>] (async_port_probe+0x44/0x60 [libata])
[  240.259364] [<bf04af60>] (async_port_probe [libata]) from [<c003a9e0>] (async_run_entry_fn+0x8c/0x1d0)
[  240.268741] [<c003a9e0>] (async_run_entry_fn) from [<c00332f0>] (process_one_work+0x260/0x450)
[  240.277407] [<c00332f0>] (process_one_work) from [<c0034278>] (worker_thread+0x314/0x470)
[  240.285638] [<c0034278>] (worker_thread) from [<c003846c>] (kthread+0xc4/0xd8)
[  240.292928] [<c003846c>] (kthread) from [<c000f090>] (ret_from_fork+0x14/0x24)
[  240.300186] INFO: task systemd-udevd:85 blocked for more than 120 seconds.
[  240.307103]       Not tainted 4.4.0-kirkwood-tld-1 #1
[  240.312170] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[  240.320091] systemd-udevd   D c05b245c     0    85      1 0x00000001
[  240.326508] [<c05b245c>] (__schedule) from [<c05b2778>] (schedule+0xac/0xc4)
[  240.333609] [<c05b2778>] (schedule) from [<c003ae84>] (async_synchronize_cookie_domain+0xc0/0x160)
[  240.342625] [<c003ae84>] (async_synchronize_cookie_domain) from [<c00c2740>] (do_init_module+0xc0/0x370)
[  240.352154] [<c00c2740>] (do_init_module) from [<c007f8c8>] (load_module+0x19d0/0x1e90)
[  240.360226] [<c007f8c8>] (load_module) from [<c007ff80>] (SyS_finit_module+0x88/0x9c)
[  240.368115] [<c007ff80>] (SyS_finit_module) from [<c000efe0>] (ret_fast_syscall+0x0/0x38)
[  240.376342] INFO: task systemd-udevd:86 blocked for more than 120 seconds.
[  240.383258]       Not tainted 4.4.0-kirkwood-tld-1 #1
[  240.388330] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[  240.396886] systemd-udevd   D c05b245c     0    86      1 0x00000001
[  240.403346] [<c05b245c>] (__schedule) from [<c05b2778>] (schedule+0xac/0xc4)
[  240.410436] [<c05b2778>] (schedule) from [<c003ae84>] (async_synchronize_cookie_domain+0xc0/0x160)
[  240.419475] [<c003ae84>] (async_synchronize_cookie_domain) from [<c00c2740>] (do_init_module+0xc0/0x370)
[  240.429702] [<c00c2740>] (do_init_module) from [<c007f8c8>] (load_module+0x19d0/0x1e90)
[  240.438750] [<c007f8c8>] (load_module) from [<c007ff80>] (SyS_finit_module+0x88/0x9c)
[  240.452555] [<c007ff80>] (SyS_finit_module) from [<c000efe0>] (ret_fast_syscall+0x0/0x38)
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPOFFER from 192.168.178.1
DHCPACK from 192.168.178.1
bound to 192.168.178.24 -- renewal in 427291 seconds.
ifup: interface eth0 already configured
done.
[ ok ] Starting rpcbind daemon....
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1305 (syslogd)
. ok
[ ok ] Starting system message bus: dbus.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[  243.892488] ata2: SRST failed (errno=-16)
[  243.896546] ata2: reset failed, giving up
[  243.900588] ata2: exception Emask 0x10 SAct 0x0 SErr 0x180000 action 0x6 frozen t1
[  243.908518] ata2: edma_err_cause=00000020 pp_flags=00000000, SError=00180000
[  243.915623] ata2: SError: { 10B8B Dispar }
[  243.919745] ata2: hard resetting link
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1303 (klogd)
. ok
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting OpenBSD Secure Shell server: sshd.

Debian GNU/Linux 8 debian ttyS0

debian login: [  249.472503] ata2: link is slow to respond, please be patient (ready=0)
[  253.972482] ata2: SRST failed (errno=-16)
[  253.976513] ata2: hard resetting link
[  259.522481] ata2: link is slow to respond, please be patient (ready=0)
[  264.022483] ata2: SRST failed (errno=-16)
[  264.026522] ata2: hard resetting link
[  269.572482] ata2: link is slow to respond, please be patient (ready=0)

Debian GNU/Linux 8 debian ttyS0

debian login: [  299.032484] ata2: SRST failed (errno=-16)
[  299.036521] ata2: hard resetting link
root
Password:
Last login: Thu May 17 09:34:52 PDT 2018 on ttyS0
Linux debian 4.4.0-kirkwood-tld-1 #1 PREEMPT Mon Jan 25 20:35:24 PST 2016 armv5tel

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:~# fdisk -l

Disk /dev/mtdblock0: 1 MiB, 1048576 bytes, 2048 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
Disk /dev/mtdblock1: 4 MiB, 4194304 bytes, 8192 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
Disk /dev/mtdblock2: 32 MiB,[  304.042488] ata2: SRST failed (errno=-16)
 33554432 bytes,[  304.046670] ata2: reset failed, giving up
 65536 sectors
[  304.052072] ata2: EH pending after 5 tries, giving up
Units: sectors o[  304.058859] ata2: EH complete
f 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mtdblock3: 91 MiB, 95420416 bytes, 186368 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
Disk /dev/sda: 7.5 GiB, 8004304896 bytes, 15633408 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: 0xae535dd1

Device     Boot Start      End  Sectors  Size Id Type
/dev/sda1        2048 15632383 15630336  7.5G 83 Linux



root@debian:~# fw_printenv
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=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
bootdelay=10
bootdev=usb
device=0:1
devices=usb ide mmc
disks=0 1 2 3
ethact=egiga0
ethaddr=XXXXXXXXXXXXXXXXXX
if_netconsole=ping $serverip
ipaddr=192.168.0.231
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb_addr=0x1c00000
load_initrd_addr=0x1100000
load_uimage_addr=0x800000
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
partition=nand0,2
preboot_nc=run if_netconsole start_netconsole
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.0.220
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=serial
stdin=serial
stdout=serial
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_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
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
usb_ready_retry=15
dtb_file=/boot/dts/kirkwood-nsa325.dtb
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi; sleep 3
arcNumber=4495
root@debian:~#


Pogoplug 4 uboot update won't boot (2 replies)

$
0
0
Bodhi ,

I have a Pogo4 with Arch updated Uboot and Arch and now it won't boot with SD card. I have an old flash drive with Arch on it and it will boot from that but not from the
SD card with the updated arch.

Can you look at the netconsole output and see if anything sticks out to you.

Thank you,
Looker

U-Boot 2016.09.01-1 (Oct 10 2016 - 23:13:37 -0600) Arch Linux ARM
Pogoplug V4
gcc (GCC) 6.2.1 20160830
GNU ld (GNU Binutils) 2.27
Hit any key to stop autoboot:   0 
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 6
1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

Reset IDE: ide_preinit failed
switch to partitions #0, OK
mmc0 is current device
mmc found on device 0
Checking for: /boot/uEnv.txt ...
** File not found /boot/zImage **
4600064 bytes read in 127 ms (34.5 MiB/s)
loading /boot/dtbs/kirkwood-pogoplug-series-4.dtb ...
** File not found /boot/dtbs/kirkwood-pogoplug-series-4.dtb **
5615605 bytes read in 154 ms (34.8 MiB/s)
Booting uImage with initrd
## Booting kernel from Legacy Image at 00810000 ...
   Image Name:   Linux-4.4.97-1-ARCH
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4600000 Bytes = 4.4 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK

Above is how far it gets in netconsole


This is the printenv output

U-Boot 2016.09.01-1 (Oct 10 2016 - 23:13:37 -0600) Arch Linux ARM
Pogoplug V4
gcc (GCC) 6.2.1 20160830
GNU ld (GNU Binutils) 2.27
Hit any key to stop autoboot:  3 6
 0 
Pogoplugv4> 
Pogoplugv4> printenv
printenv
bootcmd=run startboot;run bootubi
bootdir=/boot
bootfilem=uImage
bootfilez=zImage
bootubi=echo Trying to boot from NAND ...;if run mountubi; then ubifsload ${loadaddr} /boot/zImage;ubifsload ${fdtaddr} /boot/dtbs/kirkwood-pogoplugv4.dtb; ubifsumount; setenv bootargs console=${console} ubi.mtd=1 root=ubi0:rootfs ro rootfstype=ubifs  rootwait ${mtdparts};bootz ${loadaddr} - ${fdtaddr};fi
console=ttyS0,115200
ethact=egiga0
ethaddr=00:25:31:05:09:c6
fdtaddr=0x800000
fdtdir=/boot/dtbs
fdtfile=kirkwood-pogoplug-series-4.dtb
ipaddr=10.10.10.3
loadaddr=0x810000
loadfdt=echo loading ${fdtdir}/${fdtfile} ...; load ${devtype} ${bootpart} ${fdtaddr} ${fdtdir}/${fdtfile}
loadimage=load ${devtype} ${bootpart} ${loadaddr} ${bootdir}/${bootfilez} || load ${devtype} ${bootpart} ${loadaddr} ${bootdir}/${bootfilem}
loadrd=load ${devtype} ${bootpart} ${rdaddr} ${bootdir}/${rdfile}
mainargs=setenv bootargs console=${console} ${mtdparts} root=${root} rw rootwait ${optargs} ${ncargs}
mountubi=ubi part rootfs; ubifsmount ubi0:rootfs
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),-(rootfs)
ncargs=ignore_loglevel netconsole=6665@10.10.10.3/eth0,6666@10.10.10.4/
ncip=10.10.10.5
ncipk=10.10.10.4
netconsole=on
preboot=if env exists netconsole && test ${netconsole} = on; then if ping ${ncip}; then  setenv stdin nc; setenv stdout nc;  setenv stderr nc; version; if env exists ncargsusr; then echo ncargs has been defined by user; setenv ncargs ${ncargsusr}; else setenv ncargs ignore_loglevel netconsole=6665@${ipaddr}/eth0,6666@${ncipk}/; fi; fi; else echo Netconsole has been turned off.; echo To turn it on, set netconsole variable to on.; setenv stdin; setenv stdout; setenv stderr; setenv ncargs; fi
rdaddr=0x1100000
rdfile=initramfs-linux.img
startboot=usb start; ide reset; for devtype in mmc usb ide; do  setenv devnum 0; while ${devtype} dev ${devnum}; do  echo ${devtype} found on device ${devnum}; setenv bootpart ${devnum}:1; echo Checking for: ${bootdir}/uEnv.txt ...; if test -e ${devtype} ${bootpart} ${bootdir}/uEnv.txt; then  load ${devtype} ${bootpart} ${loadaddr} ${bootdir}/uEnv.txt; env import -t ${loadaddr} ${filesize}; echo Loaded environment from ${bootdir}/uEnv.txt; echo Checking if uenvcmd is set ...; if test -n ${uenvcmd}; then  echo Running uenvcmd ...; run uenvcmd; fi; fi; if run loadimage; then if env exists root; then echo root has been defined by user; else part uuid ${devtype} ${bootpart} uuid; setenv root PARTUUID=${uuid}; fi;  run mainargs; if run loadfdt; then  if run loadrd; then  bootz ${loadaddr} ${rdaddr}:${filesize} ${fdtaddr}; else  bootz ${loadaddr} - ${fdtaddr}; fi; else  if run loadrd; then echo Booting uImage with initrd;  bootm ${loadaddr} ${rdaddr}:${filesize}; else  bootm ${loadaddr}; fi; fi; else  echo No kernel found; fi; setexpr devnum ${devnum} + 1; done; done;
stderr=nc
stdin=nc
stdout=nc

Environment size: 2928/131068 bytes
Pogoplugv4> 

OpenWrt on GoFlex Home (no replies)

$
0
0
Apparently OpenWrt can be installed on a GoFlex Home unit....

Does anyone have experience of this and pointers about how to do this?

How to unbrick GoFlex Home? (1 reply)

$
0
0
I have a GoFlex Home that won't boot. I've connected it to a terminal via a USB to UART, but I can't get any output from the device.

(I've tested that the CP2102 interface works, because messing with the TxD and RxD gives me junk values on the screen. Also, all the indicators on my CP2102 interface are active so there's nothing wrong with the physical connection.)

The GoFlex however, just keeps blinking the green light forever, with no output to the serial console. I think my GoFlex is bricked.

What created this problem? Probably when I accidentally typed the commands:
fw_setenv help
fw_setenv -help
Neither of these gave me any output and when I rebooted it just got stuck on the infinite blinking green light.

Is my GoFlex actually bricked?

In reply to https://forum.doozan.com/read.php?3,12381,12381#msg-12381

uBoot version (2 replies)

$
0
0
How do I identify the uBoot version I have installed on my GoFlex Home unit?

Reading uEnv.txt from uBoot prompt (2 replies)

$
0
0
How do I load environment variables from uEnv.txt once I have booted up from kwboot and am at the uBoot prompt?

kwboot (2 replies)

$
0
0
Apologies if this off-topic, but I thought someone here might be able to give me some insight on my problem...

I've been trying to get kwboot working on FreeBSD for a while without any success and wondered if anyone familiar with serial port programming could suggest what I might need to change to get it working...

The program compiles without any problem, but won't write to the serial port. I believe it uses standard C code rather than any Linuxisms so in theory it should be platform independent, although there might possibly be something in the header file - kwbimage.h which is not compatible between Linux and FreeBSD.

I use the following to build kwboot:-

wget https://github.com/LeMaker/u-boot/raw/master/tools/kwboot.c
wget https://github.com/LeMaker/u-boot/raw/master/tools/kwbimage.h
gcc -o kwboot kwboot.c

https://shopdumps101.com/Sell dumps, Shop dumps 101, 201,dumps with pin, Atm skimmer (no replies)

$
0
0
https://shopdumps101.com/sell dumps,dumps with pin track1&2,sell dumps online. valid rate 98%.....!!!!!
Selling dumps - shop dumps - dumps with pin - sell dumps online

Contact me
- ICQ : 690616620
- Skype: maryabbate128
- Gmail : maryabbate128@gmail.com
- My shop : https://shopdumps101.com/
https://www.youtube.com/watch?v=lf1r29md42s

Shop dumps, dumps with pin + track 1& 2 https://shopdumps101.com/login.html
https://shopdumps101.com/ Selling dumps, shop dumos, dumps shop, fresh dumps, dumps sale
https://shopdumps101.com/ update dumps good daily . price cheap, rate work 98%
https://shopdumps101.com/ if order payment westernu union and money gram Min 100$
https://shopdumps101.com/ have Good Base and vaild rate 98% bulk dumps with Pin and code 101,201, and more Country
https://shopdumps101.com/ dumps shop, good dumps,shop dumps,dumps valid,dumps with pin,


Prices:
FOR USA DUMPS:
CLASSIC/STANDARD:$50
GOLD/PLAT:$50
SIGN/CORP/BIZ/WORLD/PURCH:$50
DISCO:$50




EU
classic/standart -70$
discover/amex -70$
gold/business/platinum -70$
corporate/signature/world -70$
Infinite -70$




Prices:
FOR CA DUMPS:
CLASSIC/STANDARD:$50
GOLD/PLAT:$50
SIGN/CORP/BIZ/WORLD/PURCH:50$
AMEX/DISCO:$50 >>>>:BULK BUYER CONTACT ON ICQ WE HAVE GOOD OFFER FOR BULK BUYER AND RESELLER




We sell USA AND CANADA tr2, tr1+tr2, tr2+name DUMPS
ATTENTION GUYS !CANADA REPLACEMNT TIME IS BEFORE 12HOURS !USA REPLACEMNT TIME BEFORE 24HOURS!




Peculiarities of our service:




===========================
>High-percent valid.
>Weekly update.
>We're not resellers of somebody else's dumps - that's why all articles sold to you will stay only with you.
Payment and Guarantees:
==========================


>MoneyGram WU MINUMUM 100$
>WMZ,BITCOINS no minumum
>Instant Delivery with WMZ,BTC
Substitution and replacements:
===============================


>We NEVER make REFUND, ONLY REPLACE!
>No replacements for Region Lock DUMPS.
>We only replace hold/stolen/decline dumps.
Our rules
======================




ATM SKIMMERS PRICE LIST




Wincor Nixdorf : 1200 $




Wincor : 1000 $




Slimm : 1000 $




NCR : 1000 $




NCR With Wireles 1200 $




Diebold Opteva : 1000 $




Diebold : 1000 $




Universal : 1500 $




Small : 1000 $




Chip POS ingenico&amigo : 600 $




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




Sell cvv random ..cvv with dob ..us ssn .. fullz info . . good balance - 100% live




i don't sell 1 .. all cvv have been check live b4 send




us 40$ for 10 ccs




uk 40$ for 5 ccs




ca 40$ for 5 ccs




Eu 60$ for 5 ccs


and more country . contact to know


ICQ : 690616620
Skype : maryabbate128
Gmail : maryabbate128@gmail.com
Shop dumps online : https://shopdumps101.com/

Hacking into a stock GoFlexHome unit (24 replies)

Help Pogoplug e02 uboot won't boot (4 replies)

$
0
0
here is console :
U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:13:18 -0700)
Pogo E02
SoC:   Kirkwood 88F6281_A0
DRAM:  256 MiB
WARNING: Caches not enabled
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
Using egiga0 device
host 192.168.1.105 is alive
Using egiga0 device
ARP Retry count exceeded; starting again
ping failed; host 192.168.1.105 is not alive
Using egiga0 device
ARP Retry count exceeded; starting again
ping failed; host 192.168.1.105 is not alive
Using egiga0 device
ARP Retry count exceeded; starting again
ping failed; host 192.168.1.105 is not alive
Using egiga0 device
host 192.168.1.105 is alive

NSA320 u-boot installation problem 1 (3 replies)

$
0
0
I'm trying to update a couple of NSA320 servers and find that the "environlent" files give me errors when it try to un-tar them.
Are the default environment (without specific entries ethaddr etc.) available in the u-boot image that can be modified and then saved via serial command??

Herb

Pogo V4 - 2017.07 U-Boot Kirkwood installation problem (1 reply)

$
0
0
So I installed -according to me- the latest uboot (uboot.2017.07-tld-1.pogo_v4.bodhi + uboot.2016.05-tld-1.environment.bodhi) and a pretty new debian kirkwood (Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi) on my pogoplug v4.

Problem is despite finiding on several guides that it should be possible to boot from sata HDD or SD card I never managed to get that working.
It only works when I boot from a USB flash drive in the top USB 2.0 port
on the sata drive I created a primary partition of 4GB which is ext3 and labeled rootfs and set as active (and same thing on an SD card).

This is printenv from uboot

Pogov4> printenv
arcNumber=3960
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_addri
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi; sleep 3
bootdelay=10
bootdev=usb
device=0:1
devices=usb ide mmc
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-pogo_e02.dtb
ethact=egiga0
ethaddr=00:25:31:05:07:78
if_netconsole=ping $serverip
ipaddr=192.168.0.231
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
machid=F78
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:2M(u-boot),3M(uImage),3M(uImage2),8M(failsafe),112M(root)
partition=nand0,2
preboot_nc=run if_netconsole start_netconsole
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; fore
serverip=192.168.0.220
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=serial
stdin=serial
stdout=serial
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
usb_rootfstype=ext3

Environment size: 2905/131068 bytes

When I only insert the sata drive or SD card it actually loads the kernel but then it always ends with:

Loading, please wait...
starting version 232
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Waiting for root file system ... Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
done.
Gave up waiting for root file system device.  Common problems:
 - Boot args (cat /proc/cmdline)
   - Check rootdelay= (did the system wait long enough?)
 - Missing modules (cat /proc/modules; ls /dev)
ALERT!  LABEL=rootfs does not exist.  Dropping to a shell!


BusyBox v1.22.1 (Debian 1:1.22.0-19+b3) built-in shell (ash)
Enter 'help' for a list of built-in commands.

(initramfs)

see the full boot logs and printenv here:
printenv and bootlog pogoplug v4

Anyone has the link to show me the process of update in a pogoplug pro? (2 replies)

$
0
0
Hi , i am a little lost here.
my device say model:pogoplug pro
fccid:vuipogoplug

what process i have to follow to update uboot ?

Thanks in advance
Martin
Viewing all 901 articles
Browse latest View live