Welcome! Log In Create A New Profile

Advanced

Can't interrupt U-boot loading - goflex net

Posted by vertycall 
Can't interrupt U-boot loading - goflex net
November 04, 2017 04:32AM
First of all, thanks ,Bodhi , for your great work on providing regular update for our aging Kirkwood devices. I've been using this forum for years as a main knowledge source for tweaking my pogoplugs.
I recently acquired goflexnet with a locked ssh access and currently I am facing serious difficulties trying to flash tld u-boot over serial console.
The problem is that I can not interrupt u-boot no matter what I do. I use the latest debian rootfs on sd card plugged in device with uEnv.txt in boot directory.
I tried pretty much everything that I can think of - different usb2serial converters, switching tx – rx , different wires, tried over 3 platforms – linux, win10, winXP – same story over and over. The device boots , I see the messages, when the part comes – press any key to stop u-boot appears – I cant interrupt and get access to console to “GoFlexNet>” prompt.
The kwboot method doesn’t seem to work either.
Since I am out of ideas – any help is highly appreciated.
Thanks in advance!
Re: Can't interrupt U-boot loading - goflex net
November 04, 2017 04:50AM
vertycall,

1. With serial console connected, when you let it boot all the way, do you see the stock OS login prompt? if yes, what happen when you try to enter "root" at the login prompt? Can you login?

2. If you can login or enter something at the stock login prompt, then your stock u-boot envs probably has something wrong in it that disabled the serial consol input.

3. If you cannot login or even get the login prompt to repond to anything, then either:
- Your serial converter has problem. Check this converter on a different Kirkwood box , if you have serial console on one.
or
- Your GoFlex Net serial RX pin is faulty. This would be bad, because you would have to hope that by looking at the pin connection using a magnifier you will see something wrong.

Bottom line: if you can login into stock OS then you will be able to fix it: you can flash new u-boot from stock OS. After that, you will be able to gain full control of serial console.

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 1 time(s). Last edit at 11/04/2017 04:51AM by bodhi.
Re: Can't interrupt U-boot loading - goflex net
November 04, 2017 07:51AM
Hi Bodhi and thanks for your quick response.
Unfortunately I cant see login prompt during the boot. N
I provide a full log of the u-boot screen with rootfs in sd attached.

I will try to establish uboot session to my pogoplug v 4 to check if everything is ok with the usb-ttl adapter.


-----------------------------------------------------------------
U-Boot 1.1.4  Cloud Engines 1.1.2 (3.4.22) SATA PHYADDR=0

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 00691750

Soc: 88F6281 A1 (DDR2)
CPU running @ 1200Mhz L2 running @ 400Mhz
SysClock = 400Mhz , TClock = 200Mhz

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
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:256 MB
Flash:  0 kB

CPU : Marvell Feroceon (Rev 1)
CLOUD ENGINES BOARD: DISCOVERY:0.1

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

NAND read: device 0 offset 0x100000, size 0x300000

Reading data from 0x3ff800 -- 100% complete.
 3145728 bytes read: OK
## Booting image at 00800000 ...
   Image Name:   Linux-2.6.22.18
   Created:      2010-02-08  23:13:14 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1978884 Bytes =  1.9 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.22.18 (bdietrich@brad-ux) (gcc version 4.2.1) #    76 Mon Feb 8 15:13:08 PST 2010
[    0.000000] CPU: ARM926EJ-S [56251311] revision 1 (ARMv5TE), cr=00053977
[    0.000000] Machine: Feroceon-KW
[    0.000000] Using UBoot passing parameters structure
[    0.000000] CE: Received CE uboot parameters:
[    0.000000] CE:    BOARDID: DISCOVERY:0.1
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] CPU0: D VIVT write-back cache
[    0.000000] CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 s         ets
[    0.000000] CPU0: D cache: 16384 bytes, associativity 4, 32 byte lines, 128 s        ets
[    0.000000] Built 1 zonelists.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/mtdblock2 ro
[    0.000000] PID hash table entries: 512 (order: 9, 2048 bytes)
[    0.000000] Console: colour dummy device 80x30
[    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 0MB 0MB 0MB = 128MB total
[    0.000000] Memory: 125824KB available (3592K code, 253K data, 124K init)
[    0.240000] Mount-cache hash table entries: 512
[    0.240000] CPU: Testing write buffer coherency: ok
[    0.240000] NET: Registered protocol family 16
[    0.240000]
[    0.240000] CPU Interface
[    0.240000] -------------
[    0.240000] SDRAM_CS0 ....base 00000000, size 128MB
[    0.240000] SDRAM_CS1 ....disable
[    0.240000] SDRAM_CS2 ....disable
[    0.240000] SDRAM_CS3 ....disable
[    0.240000] PEX0_MEM ....base e8000000, size 128MB
[    0.240000] PEX0_IO ....base f2000000, size   1MB
[    0.240000] INTER_REGS ....base f1000000, size   1MB
[    0.240000] NFLASH_CS ....base fa000000, size   2MB
[    0.240000] SPI_CS ....base f4000000, size  16MB
[    0.240000] BOOT_ROM_CS ....no such
[    0.240000] DEV_BOOTCS ....no such
[    0.240000] CRYPT_ENG ....base f0000000, size   2MB
[    0.240000]
[    0.240000]  Marvell Development Board (LSP Version KW_LSP_4.2.7_patch21_with_rx_desc_tuned)-- SHEEVA PLUG  Soc: 88F6281 A1 LE
[    0.240000]
[    0.240000]  Detected Tclk 200000000 and SysClk 400000000
[    0.240000] MV Buttons Device Load
[    0.240000] Marvell USB EHCI Host controller #0: c0539600
[    0.740000] PEX0 interface detected no Link.
[    0.740000] PCI: bus0: Fast back to back transfers enabled
[    0.740000] SCSI subsystem initialized
[    0.740000] usbcore: registered new interface driver usbfs
[    0.740000] usbcore: registered new interface driver hub
[    0.740000] usbcore: registered new device driver usb
[    0.740000] NET: Registered protocol family 2
[    0.750000] Time: kw_clocksource clocksource has been installed.
[    0.840000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.840000] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[    0.840000] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.840000] TCP: Hash tables configured (established 4096 bind 4096)
[    0.840000] TCP reno registered
[    0.870000] RTC has been updated!!!
[    0.870000] RTC registered
[    0.870000] Use the XOR engines (acceleration) for enhancing the following functions:
[    0.870000]   o RAID 5 Xor calculation
[    0.870000]   o kernel memcpy
[    0.870000]   o kenrel memzero
[    0.870000] Number of XOR engines to use: 4
[    0.870000] cesadev_init(c00117b0)
[    0.870000] mvCesaInit: sessions=640, queue=64, pSram=f0000000
[    0.870000] MV Buttons Driver Load
[    0.870000] squashfs: version 3.3 (2007/10/31) Phillip Lougher
[    0.870000] squashfs: LZMA suppport for slax.org by jro
[    0.870000] JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.870000] io scheduler noop registered
[    0.870000] io scheduler anticipatory registered (default)
[    0.880000] Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing  disabled
[    0.890000] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
[    0.910000] RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize
[    0.910000] Loading Marvell Ethernet Driver:
[    0.920000]   o Cached descriptors in DRAM
[    0.920000]   o DRAM SW cache-coherency
[    0.930000]   o Single RX Queue support - ETH_DEF_RXQ=0
[    0.930000]   o Single TX Queue support - ETH_DEF_TXQ=0
[    0.940000]   o TCP segmentation offload enabled
[    0.940000]   o Receive checksum offload enabled
[    0.950000]   o Transmit checksum offload enabled
[    0.950000]   o Network Fast Processing (Routing) supported
[    0.960000]   o Driver ERROR statistics enabled
[    0.960000]   o Driver INFO statistics enabled
[    0.970000]   o Proc tool API enabled
[    0.970000]   o Rx descripors: q0=128
[    0.970000]   o Tx descripors: q0=532
[    0.980000]   o Loading network interface(s):
[    0.980000]     o eth0, ifindex = 1, GbE port = 0
[    0.990000]
[    0.990000] Warning: Giga 1 is Powered Off
[    0.990000]
[    0.990000] mvFpRuleDb (c7f13000): 1024 entries, 4096 bytes
[    1.000000] Intel(R) PRO/1000 Network Driver - version 7.3.20-k2-NAPI
[    1.010000] Copyright (c) 1999-2006 Intel Corporation.
[    1.010000] e100: Intel(R) PRO/100 Network Driver, 3.5.17-k4-NAPI
[    1.020000] e100: Copyright(c) 1999-2006 Intel Corporation
[    1.020000] Integrated Sata device found
[    1.050000] scsi0 : Marvell SCSI to SATA adapter
[    1.050000] scsi1 : Marvell SCSI to SATA adapter
[    1.060000] NFTL driver: nftlcore.c $Revision: 1.98 $, nftlmount.c $Revision:  1.41 $
[    1.070000] NAND device: Manufacturer ID: 0x98, Chip ID: 0xda (Toshiba NAND 256MiB 3,3V 8-bit)
[    1.080000] Scanning device for bad blocks
[    1.170000] Using static partition definition
[    1.170000] Creating 4 MTD partitions on "nand_mtd":
[    1.180000] 0x00000000-0x00100000 : "u-boot"
[    1.180000] 0x00100000-0x00500000 : "uImage"
[    1.190000] 0x00500000-0x02500000 : "root"
[    1.190000] 0x02500000-0x10000000 : "data"
[    1.200000] ehci_marvell ehci_marvell.70059: Marvell Orion EHCI
[    1.200000] ehci_marvell ehci_marvell.70059: new USB bus registered, assigned                                                                                         bus number 1
[    1.240000] ehci_marvell ehci_marvell.70059: irq 19, io base 0xf1050100
[    1.260000] ehci_marvell ehci_marvell.70059: USB 2.0 started, EHCI 1.00, driv                                                                                        er 10 Dec 2004
[    1.260000] usb usb1: configuration #1 chosen from 1 choice
[    1.270000] hub 1-0:1.0: USB hub found
[    1.270000] hub 1-0:1.0: 1 port detected
[    1.390000] USB Universal Host Controller Interface driver v3.0
[    1.670000] usb 1-1: new high speed USB device using ehci_marvell and address                                                                                         2
[    1.820000] usb 1-1: configuration #1 chosen from 1 choice
[    1.820000] usbcore: registered new interface driver usblp
[    1.830000] drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
[    1.840000] Initializing USB Mass Storage driver...
[    1.840000] scsi2 : SCSI emulation for USB Mass Storage devices
[    1.850000] usbcore: registered new interface driver usb-storage
[    1.850000] USB Mass Storage support registered.
[    1.860000] mice: PS/2 mouse device common for all mice
[    1.860000] i2c /dev entries driver
[    1.870000] Linux telephony interface: v1.00
[    1.870000] md: linear personality registered for level -1
[    1.880000] md: raid0 personality registered for level 0
[    1.880000] md: raid1 personality registered for level 1
[    2.060000] raid6: int32x1     98 MB/s
[    2.230000] raid6: int32x2    114 MB/s
[    2.400000] raid6: int32x4    122 MB/s
[    2.570000] raid6: int32x8    110 MB/s
[    2.570000] raid6: using algorithm int32x4 (122 MB/s)
[    2.570000] md: raid6 personality registered for level 6
[    2.580000] md: raid5 personality registered for level 5
[    2.580000] md: raid4 personality registered for level 4
[    2.590000] raid5: measuring checksumming speed
[    2.640000]    arm4regs  :  1084.400 MB/sec
[    2.690000]    8regs     :   755.200 MB/sec
[    2.740000]    32regs    :   900.000 MB/sec
[    2.740000] raid5: using function: arm4regs (1084.400 MB/sec)
[    2.750000] device-mapper: ioctl: 4.11.0-ioctl (2006-10-12) initialised: dm-devel@redhat.com
[    2.750000] dm_crypt using the OCF package.
[    2.760000] sdhci: Secure Digital Host Controller Interface driver
[    2.760000] sdhci: Copyright(c) Pierre Ossman
[    2.770000] usbcore: registered new interface driver usbhid
[    2.770000] drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
[    2.780000] TCP cubic registered
[    2.780000] NET: Registered protocol family 1
[    2.790000] NET: Registered protocol family 17
[    2.790000] md: Autodetecting RAID arrays.
[    2.800000] md: autorun ...
[    2.800000] md: ... autorun DONE.
[    5.960000] Empty flash at 0x00e55270 ends at 0x00e55800
[    6.060000] VFS: Mounted root (jffs2 filesystem) readonly.
[    6.060000] Freeing init memory: 124K
[    6.890000] scsi 2:0:0:0: Direct-Access              USB Flash Drive  5.00 PQ                                                                                        : 0 ANSI: 2
[    7.030000] sd 2:0:0:0: [sda] 4055040 512-byte hardware sectors (2076 MB)
[    7.100000] sd 2:0:0:0: [sda] Write Protect is off
[    7.110000] sd 2:0:0:0: [sda] Assuming drive cache: write through
init started: BusyBox v1.7.0 (2008-02-26 19:25:[    7.160000] sd 2:0:0:0: [sda]                                                                                         4055040 512-byte hardware sectors (2076 MB)
17 IST)
starting pid 276, tty '': '/etc/init.d[    7.170000] sd 2:0:0:0: [sda] Write Pro                                                                                        tect is off
/rcS'
[    7.170000] sd 2:0:0:0: [sda] Assuming drive cache: write through
[    7.180000]  sda: sda1
[    7.200000] sd 2:0:0:0: [sda] Attached SCSI removable disk
[    7.200000] sd 2:0:0:0: Attached scsi generic sg0 type 0
[    7.610000] eth0: started
udhcpc (v1.7.0) started
HWADDR 00 0x10 0x75 0x26 0x8e 0x5a
PIP0 142
PIP1 90
Sending discover...
Sending discover...
Sending discover...
HWADDR 00 0x10 0x75 0x26 0x8e 0x5a
PIP0 142
PIP1 90
Unexpected Argument: leasefail
interface=eth0
PATH=/sbin:/usr/sbin:/bin:/usr/bin
PWD=/
SHLVL=1
HOME=/
_=/bin/printenv
No lease, forking to background
Loading fs modules:          [   17.250000] fuse init (API version 7.8)
Success
[   17.530000] ufsd: module license 'Commercial product' taints kernel.
[   17.700000] ufsd: driver 8.1 (011_A) LBD=ON with ioctl loaded at bf040000
[   17.700000] NTFS read/write support included
[   17.700000] Hfs+/HfsX read/write support included
Loading tun.ko:              [   17.720000] tun: Universal TUN/TAP device driver  , 1.6
[   17.730000] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
Success
Loading xce.ko:              [   17.750000] Cloud Engines XCE Init [Version: 2.0.5.10]
[   17.760000] XCE: CPU MEMORY MAP:
[   17.760000] XCE:   -- 0x00001000 - 0xbeffffff (3055 MB)  User Space Mappings
[   17.770000] XCE:   -- 0xbf000000 - 0xbfffffff (  16 MB)  Kernel module space
[   17.780000] XCE:   -- 0xc0000000 - 0xc7ffffff ( 128 MB)  Kernel direct-mapped ram
[   17.780000] XCE:   -- 0xc8800000 - 0xe7ffffff ( 504 MB)  Kernel vmalloc space
[   17.790000] XCE:   -- 0xe8000000 - 0xfeffffff ( 367 MB)  Kernel platform space
[   17.800000] XCE: CPU FEATURES:
[   17.800000] XCE:   -- I Cache:         enabled
[   17.810000] XCE:   -- D Cache:         enabled
[   17.810000] XCE:   -- Branch Predict:  disabled
[   17.810000] XCE:   -- MMU:             enabled
[   17.820000] XCE:   -- Alignment Abort: enabled
[   17.820000] XCE:   -- ICache Prefetch: enabled
[   17.830000] XCE:   -- DCache Prefetch: enabled
[   17.830000] XCE:   -- L2 Cache:        enabled
[   17.840000] XCE:   -- L2 Prefetch:     disabled
[   17.840000] XCE:   -- L2 Writethrough: disabled
[   17.850000] XCE:   -- Write Allocate:  disabled
[   17.850000] XCE:   -- Streaming:       disabled
[   17.860000] XCE: BLPARAMS: reading 2048 bytes @ a0000
[   17.860000] XCE: Loaded Property Size: 2048
[   17.870000] XCE:    - 'cesvcid' -> 'XS2CF67WQKRULEMGU2VUEGJ5LN'
[   17.870000] XCE:    - 'ceserialno' -> 'NA1Y10FA'
[   17.880000] XCE:    - 'ceboardver' -> 'DISCOVERY:0.1'
[   17.880000] XCE: Current GPIO State:
[   17.890000] XCE:  GPIO L OUT:    0xeff00000
[   17.890000] XCE:  GPIO L OE:     0xffffffff
[   17.890000] XCE:  GPIO L BLINK:  0x00000000
[   17.900000] XCE:  GPIO L POL:    0x00000000
[   17.900000] XCE:  GPIO L IN:     0xfff00080
[   17.910000] XCE:  GPIO H OUT:    0xfffcc00f
[   17.910000] XCE:  GPIO H OE:     0xfffc000f
[   17.910000] XCE:  GPIO H BLINK:  0x00000000
[   17.920000] XCE:  GPIO H POL:    0x00000000
[   17.920000] XCE:  GPIO H IN:     0x0000c00d
[   17.930000] XCE: Kernel thread starting PID: 341
Success
Starting hbplug:             Success
starting pid 343, tty '': '/bin/sh'
-sh-3.2# [   18.790000] XCE: BLPARAMS: reading 2048 bytes @ a0000
[   18.800000] XCE: BLPARAMS: reading 2048 bytes @ a0800
[   18.810000] XCE: BLPARAMS: reading 2048 bytes @ a1000
[   18.810000] XCE: BLPARAMS: reading 2048 bytes @ a1800
[   24.130000] XCE: XCE: LED -> DISCONNECTED
[   25.740000] kjournald starting.  Commit interval 5 seconds
[   25.750000] EXT3 FS on sda1, internal journal
[   25.750000] EXT3-fs: recovery complete.
[   25.760000] EXT3-fs: mounted filesystem with ordered data mode.
Re: Can't interrupt U-boot loading - goflex net
November 04, 2017 02:53PM
vertycall,

> -sh-3.2# [   18.790000] XCE: BLPARAMS: reading


Right here. You are in stock OS. Try typing something here to see if serial console input is working.

You can also do a quick loop back test to check your serial converter: disconnect the serial wire going to your GFNet, and connect your serial converter TX to RX, and type something to see if it echos back.

-bodhi
===========================
Forum Wiki
bodhi's corner
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: