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

[TOOL] Finding address of stock envs of fw_printenv (no replies)

$
0
0
I made this simple script that will run fw_printenv sequentially on all possible flash sectors in the first two mtd partitions, to identify where are stock uboot envs even if you are not using stock firmware anymore.

To be run on different devices it might need some adjustments (it currently checks only 1 MiB of flash sectors per partition, and checks only the first two partitions, which should be enough as uboot partition is 1MiB and the uboot_env partition is 0.5MiB).

I've left in the loop I used to generate the hex values, it's commented out but will work as long as you have installed bc in your system.

#!/bin/sh

# MTD device name	Device offset	Env. size	Flash sector size	Number of sectors
#/dev/mtd0		0xc0000		0x20000		0x20000

#backing up current config
mv /etc/fw_env.config /etc/fw_env.config.backup

#list of block addresses
#128k = 131072 bytes -> 0x20000 in hexadecimal and we sum 0x20000 to it to get our addresses.

# address=180000
#
# while [ "$address" != "0" ] ; do
#
# address=$( echo "obase=16;ibase=16;$address-20000" | bc )
# echo $address
#
# done


# addresses for mtd0
# E0000
# C0000
# A0000
# 80000
# 60000
# 40000
# 20000
# 0

# addresses for mtd1
# same as above, it restarts from 0 in each mtd

#zyxel nsa310 new mtdparts, kinda
#mtdparts=orion_nand:0x100000(uboot),0x80000(uboot_env),0x100000(second_stage_uboot),0x7b80000(ubi)

for address in e0000 c0000 a0000 80000 60000 40000 20000 0; do

echo "/dev/mtd0		0x$address		0x20000		0x20000" > /etc/fw_env.config
cat /etc/fw_env.config
echo "stuff found at mtd0 $address"
fw_printenv
echo -----------------------------

done

for address in e0000 c0000 a0000 80000 60000 40000 20000 0; do

echo "/dev/mtd1		0x$address		0x20000		0x20000" > /etc/fw_env.config

echo "stuff found at mtd1 $address"
fw_printenv
echo -----------------------------

done

#restoring current config
mv /etc/fw_env.config.backup /etc/fw_env.config

Buffalo LS421DE Password for root via Serial Console/Reset root password/Boot Single User mode (1 reply)

$
0
0
I replaced PID device
dumpnf > /tmp/nas_feature
sed -i 's/PID=0x0000300С/PID=0x00002025/g' /tmp/nas_feature
setnf < /tmp/nas_feature

After restarting it disappeared in the network.
BootLog via Serial Console
BootROM 1.08
Booting from SPI flash


General initialization - Version: 1.0.0
mvBoardSerdesModulesScan: mvTwsiRead error, Using default serdes configuration ****
High speed PHY - Version: 2.1.4 (COM-PHY-V20)
Update PEX Device ID 0x67100
High speed PHY - Ended Successfully
DDR3 Training Sequence - Ver 5.7.1

DDR3 Training Sequence - Run DDR3 at 600 Mhz

########### LOG LEVEL 1 (D-UNIT SETUP)###########

Static D-UNIT Setup:
0x00001400 = 0x73014924
0x00001404 = 0x3000B808
0x00001408 = 0x56159996
0x0000140C = 0x3AD93F96
0x00001410 = 0x120F0000
0x00001414 = 0x00000000
0x00001418 = 0x00000E00
0x0000141C = 0x00000642
0x00001420 = 0x00000004
0x00001424 = 0x0100F37F
0x00001428 = 0x000F8830
0x00001454 = 0x00000000
0x00001474 = 0x00000000
0x0000142C = 0x014C4EE4
0x0000147C = 0x0000C671
0x00001494 = 0x00010000
0x00001498 = 0x00000000
0x0000149C = 0x0000030F
DDR3 Training Sequence - Run without PBS.
Cuurrent frequency is: 100MHz
Cuurrent frequency is: 444MHz
DDR3 - Write Leveling - Starting HW WL procedure
DDR3 - Write Leveling - Write Leveling Cs - 0 Results:
DDR3 - Write Leveling - PUP: 0, Phase: 0, Delay: 03
DDR3 - Write Leveling - PUP: 1, Phase: 0, Delay: 07
DDR3 - Write Leveling - HW WL Ended Successfully
DDR3 - Read Leveling - Starting HW RL procedure
DDR3 - Read Leveling - Results for CS - 0
DDR3 - Read Leveling - PUP: 0, Phase: 1, Delay: 1F
DDR3 - Read Leveling - PUP: 1, Phase: 2, Delay: 02
DDR3 - Read Leveling - Read Sample Delay: 09
DDR3 - Read Leveling - Read Ready Delay: 0D
DDR3 - Read Leveling - HW RL Ended Successfully
DDR3 - Write Leveling Hi-Freq Supplement - Starting
DDR3 - Write Leveling Hi-Freq Supplement - SW Override Enabled
COUNT = 0
DATA PUP:
04030201 08070605 0C0B0A09 100F0E0D
14131211 18171615 1C1B1A19 201F1E1D
24232221 28272625 2C2B2A29 302F2E2D
34333231 38373635 3C3B3A39 403F3E3D
44434241 48474645 4C4B4A49 504F4E4D
54535251 58575655 5C5B5A59 605F5E5D
64636261 68676665 6C6B6A69 706F6E6D
74737271 78777675 7C7B7A79 807F7E7D
CS: 0 PUP: 0
Actual Data = 21
Expected Data = 21
uiError = 00
uiErrorN = 00

CS: 0 PUP: 1
Actual Data = 22
Expected Data = 22
uiError = 00
uiErrorN = 00
COUNT = 1
DATA PUP:
04030201 08070605 0C0B0A09 100F0E0D
14131211 18171615 1C1B1A19 201F1E1D
24232221 28272625 2C2B2A29 302F2E2D
34333231 38373635 3C3B3A39 403F3E3D
44434241 48474645 4C4B4A49 504F4E4D
54535251 58575655 5C5B5A59 605F5E5D
64636261 68676665 6C6B6A69 706F6E6D
74737271 78777675 7C7B7A79 807F7E7D
CS: 0 PUP: 0
Actual Data = 21
Expected Data = 21
uiError = 00
uiErrorN = 00

CS: 0 PUP: 1
Actual Data = 22
Expected Data = 22
uiError = 00
uiErrorN = 00
DDR3 - Write Leveling Hi-Freq Supplement - Ended Successfully

########## LOG LEVEL 3(Windows margins per-DQ) ##########
DDR3 - RX  CS: 0

DATA RESULTS:

BYTE:0
  DQ's        LOW       HIGH       WIN-SIZE
============================================
DQ[ 0]     0x41       0x2D       0xED
DQ[ 1]     0x33       0x2F       0xFD
DQ[ 2]     0xE8       0x4B       0x64
DQ[ 3]     0x01       0xFA       0xFA
DQ[ 4]     0x59       0xFE       0xA6
DQ[ 5]     0x9A       0xE5       0x4C
DQ[ 6]     0x6F       0x03       0x95
DQ[ 7]     0x3B       0xAD       0x73

BYTE:1
  DQ's        LOW       HIGH       WIN-SIZE
============================================
DQ[ 8]     0x5D       0x9D       0x41
DQ[ 9]     0x4E       0x0D       0xC0
DQ[10]     0xC7       0x79       0xB3
DQ[11]     0x41       0x01       0xC1
DQ[12]     0xE2       0x40       0x5F
DQ[13]     0x7A       0x86       0x0D
DQ[14]     0xFA       0xC7       0xCE
DQ[15]     0x20       0x08       0xE9


############ LOG LEVEL 2(Windows margins) ############
DDR3 - DQS RX - Set Dqs Centralization Results - CS: 0

DQS    LOW     HIGH     WIN-SIZE      Set
==============================================
0     0x00      0x1A      0x1A       0x0D
1     0x00      0x1B      0x1B       0x0D

########## LOG LEVEL 3(Windows margins per-DQ) ##########
DDR3 - TX  CS: 0

DATA RESULTS:

BYTE:0
  DQ's        LOW       HIGH       WIN-SIZE
============================================
DQ[ 0]      0x2E        0x41        0x13
DQ[ 1]      0x30        0x33        0x03
DQ[ 2]      0x4C        0xE8        0x9C
DQ[ 3]      0xFB        0x01        0x06
DQ[ 4]      0xFF        0x59        0x5A
DQ[ 5]      0xE6        0x9A        0xB4
DQ[ 6]      0x04        0x6F        0x6B
DQ[ 7]      0xAE        0x3B        0x8D

BYTE:1
  DQ's        LOW       HIGH       WIN-SIZE
============================================
DQ[ 8]      0x9E        0x5D        0xBF
DQ[ 9]      0x0E        0x4E        0x40
DQ[10]      0x7A        0xC7        0x4D
DQ[11]      0x02        0x41        0x3F
DQ[12]      0x41        0xE2        0xA1
DQ[13]      0x87        0x7A        0xF3
DQ[14]      0xC8        0xFA        0x32
DQ[15]      0x09        0x20        0x17


############ LOG LEVEL 2(Windows margins) ############
DDR3 - DQS TX - Set Dqs Centralization Results - CS: 0

DQS    LOW     HIGH     WIN-SIZE      Set
==============================================
0     0x00      0x1B      0x1B       0x0D
1     0x00      0x1B      0x1B       0x0D
DDR3 Training Sequence - Ended Successfully
BootROM: Image checksum verification PASSED

____                            _
| __ )  _   _  ___   ___   ___  | |  ___
|  _  \| | | |/   | /   | / _  \| | / _  \
| |_) || |_| ||  __||  __| (_) || || (_) |
|____/  \___/ |_|   |_|   \__/|||_| \___/
         _   _     ____                _
        | | | |   | __ )   ___   ___  | |_
        | | | |___|  _  \ / _  \/ _  \| __|
        | |_| |___| |_) || (_) | (_) || |_
         \___/    |____/  \___/ \___/  \__|
** LOADER **


U-Boot 2011.12 (Jan 15 2015 - 21:22:47) Marvell version: v2011.12 2014_T2.0p1

Board: YANAGI
BoardID= 0
SoC:   MV6710 A1
CPU:   Marvell PJ4B v7 UP (Rev 1) LE
       CPU    @ 1200 [MHz]
       L2     @ 600 [MHz]
       TClock @ 200 [MHz]
       DDR    @ 600 [MHz]
       DDR 16Bit Width, FastPath Memory Access
DRAM:  512 MiB
PHY ID = 1d
PHY ID = 1d

Map:   Code:            0x1ff0d000:0x1ffa2b68
       BSS:             0x1ffefaa4
       Stack:           0x1f9fcef8
       Heap:            0x1f9fd000:0x1ff0d000

NAND:  512 MiB
MMC:   MRVL_MMC: 0
SF: Detected MX25L8005 with page size 64 KiB, total 1 MiB

Initialize and scan all PCI interfaces
PEX unit.port(active IF[-first bus]):
------------------------------------------
PEX 0: Root Complex Interface, Detected Link X1, GEN 1.1
PEX 0.1(1): Detected No Link.
u-boot envinit tval=f24c458d
FPU initialized to Run Fast Mode.
USB 0: Host Mode
USB 1: Host Mode
Modules/Interfaces Detected:
       RGMII0 Phy
       RGMII1 Phy
       PEX0 (Lane 0)
       PEX1 (Lane 1)
       SATA0 (Lane 2)
       SATA1 (Lane 3)
USB Power ON

Marvell Serial ATA Adapter
Integrated Sata device found

MAC Address : 10:6F:3F:XX:XX:XX
Net:   egiga0, egiga1 [PRIME]
hit any key to switch tftp boot.
Hit any key to stop autoboot:  0
Hit any key to stop autoboot:  0
Creating 1 MTD partitions on "nand0":
0x000000000000-0x000002000000 : "mtd=0"
Bad block table found at page 262080, version 0x01
Bad block table found at page 262016, version 0x01
nand_read_bbt: Bad block at 0x000001c40000
nand_read_bbt: Bad block at 0x000001c60000
nand_read_bbt: Bad block at 0x000003fa0000
nand_read_bbt: Bad block at 0x000006080000
nand_read_bbt: Bad block at 0x0000060a0000
nand_read_bbt: Bad block at 0x000008ac0000
nand_read_bbt: Bad block at 0x00000b800000
nand_read_bbt: Bad block at 0x00000efa0000
nand_read_bbt: Bad block at 0x00001a480000
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    126976 bytes
UBI: smallest flash I/O unit:    2048
UBI: VID header offset:          2048 (aligned 2048)
UBI: data offset:                4096
UBI: attached mtd1 to ubi0
UBI: MTD device name:            "mtd=0"
UBI: MTD device size:            32 MiB
UBI: number of good PEBs:        254
UBI: number of bad PEBs:         2
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     1
UBI: available PEBs:             0
UBI: total number of reserved PEBs: 254
UBI: number of PEBs reserved for bad PEB handling: 2
UBI: max/mean erase counter: 3/1
UBIFS: mounted UBI device 0, volume 1, name "boot"
UBIFS: mounted read-only
UBIFS: file system size:   30347264 bytes (29636 KiB, 28 MiB, 239 LEBs)
UBIFS: journal size:       1523712 bytes (1488 KiB, 1 MiB, 12 LEBs)
UBIFS: media format:       w4/r0 (latest is w4/r0)
UBIFS: default compressor: LZO
UBIFS: reserved for root:  1499787 bytes (1464 KiB)
Loading file '/uImage.buffalo' to addr 0x01200000 with size 2905032 (0x002c53c8)...
Done
Loading file '/initrd.buffalo' to addr 0x02600000 with size 11911739 (0x00b5c23b)...
Done
No SPI flash selected. Please run `sf probe'
## Booting kernel from Legacy Image at 01200000 ...
   Image Name:   Linux-3.3.4
   Created:      2015-06-19   9:04:10 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2904968 Bytes = 2.8 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02600000 ...
   Image Name:   initramfs.cpio
   Created:      2015-06-19   9:04:46 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    11911675 Bytes = 11.4 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...


Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0
Initializing cgroup subsys cpu
Linux version 3.3.4 (root@buildsrv1) (gcc version 4.6.2 (Linaro GCC branch-4.6.2. Marvell GCC 201201-883.01c949de) ) #1 Fri Jun 19 18:04:05 JST 2015
CPU: Marvell PJ4Bv7 Processor [561f5811] revision 1 (ARMv7), cr=10c53c7d
CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
Machine: Marvell Armada-370
Using UBoot passing parameters structure
>>>>>>>Tag MAC 45:8d:4c:XX:XX:XX
>>>>>>>Tag MAC 4c:13:cd:XX:XX:XX
Memory policy: ECC disabled, Data cache writealloc
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 130048
Kernel command line: console=ttyS0,115200 root=/dev/nfs rw BOOTVER=0.16 UBOOT_DATE=2015/01/15 mtdparts=armada-nand:0x2000000(boot),0x1e000000(rootfs) nandboot=yes
PID hash table entries: 2048 (order: 1, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 512MB = 512MB total
Memory: 498096k/498096k available, 26192k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    vmalloc : 0xe0800000 - 0xff000000   ( 488 MB)
    lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    modules : 0xbf000000 - 0xbfe00000   (  14 MB)
      .text : 0xc0008000 - 0xc0538a4c   (5315 kB)
      .init : 0xc0539000 - 0xc055e000   ( 148 kB)
      .data : 0xc055e000 - 0xc058e160   ( 193 kB)
       .bss : 0xc058e184 - 0xc05c6b50   ( 227 kB)
NR_IRQS:256
axp_time_init
Calibrating delay loop... 1196.85 BogoMIPS (lpj=5984256)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
hw perfevents: no hardware support available
Setting up static identity map for 0x3dd9c8 - 0x3dda0c
devtmpfs: initialized
xor: measuring software checksum speed
   arm4regs  :  1151.600 MB/sec
   8regs     :   816.800 MB/sec
   32regs    :  1149.200 MB/sec
xor: using function: arm4regs (1151.600 MB/sec)
NET: Registered protocol family 16
L0 cache Enabled
Speculative Prefetch Disabled
aurora_l2_init
Aurora: Enabling L2
AuroraL2: System L2 cache support initialised
Support IO coherency.
Enable DLB and DRAM write coalescing

CPU Interface
-------------
SDRAM_CS0 ....base 00000000, size 512MB
SDRAM_CS1 ....disable
SDRAM_CS2 ....disable
SDRAM_CS3 ....disable
DEVICE_CS0 ....base f2000000, size  32MB
DEVICE_CS1 ....no such
DEVICE_CS2 ....no such
DEVICE_CS3 ....no such
PEX0_MEM ....base e0000000, size  32MB
PEX0_IO ....base f1100000, size   1MB
PEX1_MEM ....base e2000000, size  32MB
PEX1_IO ....base f1200000, size   1MB
INTER_REGS ....base d0000000, size   1MB
DMA_UART ....no such
SPI_CS0 ....base f0000000, size  16MB
SPI_CS1 ....no such
SPI_CS2 ....no such
SPI_CS3 ....no such
SPI_CS4 ....no such
SPI_CS5 ....no such
SPI_CS6 ....no such
SPI_CS7 ....no such
BOOT_ROM_CS ....no such
DEV_BOOTCS ....base f5000000, size  16MB
PMU_SCRATCHPAD ....no such
CRYPT0_ENG ....base c8010000, size  64KB

  Marvell Armada370 Board-- YANAGI  Soc: MV6710 A1 LE
  LSP version: Armada370_LSP_3.1.0_p15_NQ


Detected Tclk 200000000, SysClk 600000000, FabricClk 600000000
gpiochip_add: registered GPIOs 0 to 64 on device: mv_gpio
hw-breakpoint: debug architecture 0x4 unsupported.
Marvell USB EHCI Host controller #0: d004c400
Marvell USB EHCI Host controller #1: d004c200
PCI host bridge to bus 0000:00
pci_bus 0000:00: root bus resource [io  0x0000-0xfffff]
pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe1ffffff]
PCI: bus0: Fast back to back transfers disabled
PCI host bridge to bus 0000:01
pci_bus 0000:01: root bus resource [io  0x100000-0x1fffff]
pci_bus 0000:01: root bus resource [mem 0xe2000000-0xe3ffffff]
PCI: bus1: Fast back to back transfers enabled
pci 0000:00:01.0: BAR 0: assigned [mem 0xe0000000-0xe0001fff 64bit]
bio: create slab <bio-0> at 0
raid6: int32x1    135 MB/s
raid6: int32x2    210 MB/s
raid6: int32x4    203 MB/s
raid6: int32x8    244 MB/s
raid6: using algorithm int32x8 (244 MB/s)
vgaarb: loaded
SCSI subsystem initialized
Switching to clocksource armada370_clocksource
NET: Registered protocol family 2
IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
TCP established hash table entries: 16384 (order: 5, 131072 bytes)
TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 16384 bind 16384)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 11632K
cesadev_init(c0540b7c)
mvCesaInit: channels=1, session=640, queue=64
Armada XP hwmon thermal sensor initialized.
Initializing Armada-XP CPU power management  (DISABLED)
MICON ctrl (C) BUFFALO INC. V.1.00 installed.
Buffalo Gpio Control Driver (C) BUFFALO INC. Ver.1.00 installed.
[Switch Driver]irq = -1 install
[Switch Driver] fail install irq(-1)[Switch Driver]irq = 144 install
Buffalo Switch Driver (C) BUFFALO INC. Ver.0.01 installed.
Kernel event proc (C) BUFFALO INC. V.1.00 installed.
initial_polarity_val = 0x0001f800
initial_polarity_val_high = 0x00000000
Buffalo GPIO SATA Hotplug Event Driver (C) BUFFALO INC. Ver.1.00 installed.
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
fuse init (API version 7.18)
SGI XFS with ACLs, security attributes, large block/inode numbers, no debug enabled
SGI XFS Quota Management subsystem
msgmni has been set to 995
async_tx: api initialized (async)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
Initializing ths8200_init
Initializing dove_adi9889_init
mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver
mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver
mv_xor mv_xor.0: Marvell XOR: ( xor )
mv_xor mv_xor.1: Marvell XOR: ( xor )
mv_xor mv_xor.2: Marvell XOR: ( cpy )
mv_xor mv_xor.3: Marvell XOR: ( fill cpy )
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xd0012000 (irq = 41) is a 16550A
console [ttyS0] enabled
brd: module loaded
loop: module loaded
** BUFFALO Disable Command Queuing Function [sata_mv sata_mv.0] **
sata_mv sata_mv.0: slots 32 ports 2
scsi0 : sata_mv
scsi1 : sata_mv
ata1: SATA max UDMA/133 irq 55
ata2: SATA max UDMA/133 irq 55
SPI Serial flash detected @ 0xf0000000, 1024KB (16sec x 64KB)
armada-nand armada-nand.0: Initialize HAL based NFC in 8bit mode with DMA Disabled using BCH 4bit ECC
NAND device: Manufacturer ID: 0xad, Chip ID: 0xdc (Hynix NAND 512MiB 3,3V 8-bit)
Bad block table found at page 262080, version 0x01
Bad block table found at page 262016, version 0x01
nand_read_bbt: bad block at 0x000001c40000
nand_read_bbt: bad block at 0x000001c60000
nand_read_bbt: bad block at 0x000003fa0000
nand_read_bbt: bad block at 0x000006080000
nand_read_bbt: bad block at 0x0000060a0000
nand_read_bbt: bad block at 0x000008ac0000
nand_read_bbt: bad block at 0x00000b800000
nand_read_bbt: bad block at 0x00000efa0000
nand_read_bbt: bad block at 0x00001a480000
2 cmdlinepart partitions found on MTD device armada-nand
Creating 2 MTD partitions on "armada-nand":
0x000000000000-0x000002000000 : "boot"
0x000002000000-0x000020000000 : "rootfs"
mv_eth_probe: port_mask=0x3, cpu_mask=0x1
0 - Base 0x00000000 , Size = 0x20000000.
4 - Base 0xf2000000 , Size = 0x02000000.
8 - Base 0xe0000000 , Size = 0x02000000.
9 - Base 0xf1100000 , Size = 0x00100000.
10 - Base 0xe2000000 , Size = 0x02000000.
11 - Base 0xf1200000 , Size = 0x00100000.
12 - Base 0xd0000000 , Size = 0x00100000.
14 - Base 0xf0000000 , Size = 0x01000000.
23 - Base 0xf5000000 , Size = 0x01000000.
25 - Base 0xc8010000 , Size = 0x00010000.
  o 2 Giga ports supported
  o NETA acceleration mode 1
  o RX Queue support: 1 Queues * 128 Descriptors
  o TX Queue support: 1 Queues * 512 Descriptors
  o GSO supported
  o GRO supported
  o Receive checksum offload supported
  o Transmit checksum offload supported
  o Driver ERROR statistics enabled
  o Switch support enabled

  o Loading network interface(s)

  o Port 0 is connected to Linux netdevice
        giga p=0: mtu=1500, mac=d002beec
    o eth0, ifindex = 2, GbE port = 0

  o Port 1 is connected to Linux netdevice
        giga p=1: mtu=1500, mac=d002beec
    o eth1, ifindex = 3, GbE port = 1

sky2: driver version 1.30
i2c /dev entries driver
rtc-rs5c372 0-0032: rs5c372a found, 24hr, driver version 0.6
rtc-rs5c372 0-0032: create wakealarm
rtc-rs5c372 0-0032: rtc core: registered rtc-rs5c372 as rtc0
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
md: raid10 personality registered for level 10
md: raid6 personality registered for level 6
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
cpuidle: using governor ladder
cpuidle: using governor menu
mmc0: mvsdio driver initialized, lacking card detect (fall back to polling)
TCP cubic registered
NET: Registered protocol family 17
VFP support v0.3: implementor 56 architecture 2 part 20 variant 9 rev 6
rtc-rs5c372 0-0032: setting system clock to 2007-10-31 15:07:00 UTC (1193843220)
ata1: SATA link down (SStatus 0 SControl F300)
ata2: SATA link down (SStatus 0 SControl F300)
Freeing init memory: 148K
---- in /init ---
mount: mounting devpts on /dev/pts failed: No such file or directory
mount: mounting shm on /dev/shm failed: No such file or directory
mount: mounting devpts on /dev/pts failed: No such file or directory
ldconfig: /usr/lib/libstdc++.so.6.0.16-gdb.py is not an ELF file - it has the wrong magic bytes at the start.

err:
ls: /dev/rtc: No such file or directory
libsys: /dev/rtc was updated : /dev/rtc 254 0
Thu Nov  1 00:07:02 JST 2007
*** Caution!!! /etc/fanctld.conf create failed!
ldconfig: /usr/lib/libstdc++.so.6.0.16-gdb.py is not an ELF file - it has the wrong magic bytes at the start.

modprobe: module e1000e not found in modules.dep
LibSys_GetUsbDiskStartNum : Usb device not found(/sys/block/sda/device). Returning 1
grep: /var/tmp/devlink: No such file or directory
create_devlink:Using new routine.
linuxrc:choose operation (timeout 4[s])
1:RamRoot 2:sda1 2:sda2 other:HddRoot  ? -HddRoot-
Starting :fsck_disks(boot) ...         [Failed. ]
Starting :mount(boot) ...              [Success.]
Starting :umount(boot) ...             [Success.]
touch: /rootfs/etc/melco/shareinfo: No such file or directory
touch: /rootfs/etc/melco/shareinfo.hidden: No such file or directory
touch: /rootfs/etc/melco/shareinfo.vfs: No such file or directory
grep: /rootfs/etc/linkstation_release: No such file or directory
PRODUCTID=0x00002026
** use initrd mode. **
TestRootfs failed
-RamdiskRoot-
--- rcStart (initrd) ---
mount: mounting proc on /proc failed: Device or resource busy
mount: mounting sysfs on /sys failed: Device or resource busy
mount: mounting devpts on /dev/pts failed: No such file or directory
ldconfig: /usr/lib/libstdc++.so.6.0.16-gdb.py is not an ELF file - it has the wrong magic bytes at the start.

Cannot set device ring parameters: Operation not supported
Cannot set device ring parameters: Operation not supported
Cannot set device ring parameters: Operation not supported
Cannot set device ring parameters: Operation not supported
Cannot get device ring settings: No such device
Cannot get device ring settings: No such device
Cannot get device ring settings: No such device
Cannot get device ring settings: No such device
modprobe: module e1000e not found in modules.dep
=== checkroot.sh ===
grep: /var/tmp/devlink: No such file or directory
create_devlink:Using new routine.
swapon: /dev/: Is a directory
create dir : /var/www
=== create_devlink.sh ===
create_devlink:Using new routine.
=== startSysMd.sh ===
This model doesn't support raid!!!
=== fwupdate.sh ===
umount: can't umount /boot: Invalid argument
mkdir: can't create directory '/boot': File exists
u-boot.files not found
fwupdate.sh:FW not updated
=== check_nandboot.sh ===
grep: /tmp/check_nandboot: No such file or directory
=== acpid.sh ===
/etc/init.d/rcS: line 47: /etc/init.d/acpid.sh: No such file or directory
=== closeSysMd.sh ===
=== sethostname.sh ===
configure files from Buffalo parameters.
=== restore_config.sh ===
Restore previous configuration files
tar (child): /boot/conf_save.tgz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
/bin/tar: Child returned status 2
/bin/tar: Error is not recoverable: exiting now
tar (child): /boot/conf_save.tgz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
/bin/tar: Child returned status 2
/bin/tar: Error is not recoverable: exiting now
unzip  fail.
/tmp/etc/localtime ->
BusyBox v1.19.4 (2015-06-19 17:45:55 JST) multi-call binary.

Usage: dirname FILENAME

Strip non-directory suffix from FILENAME

BusyBox v1.19.4 (2015-06-19 17:45:55 JST) multi-call binary.

Usage: mkdir [OPTIONS] DIRECTORY...

Create DIRECTORY

        -m MODE Mode
        -p      No error if exists; make parent directories as needed

mv: can't rename '/tmp/info': No such file or directory
grep: /etc/melco/iscsi_info: No such file or directory
/etc/init.d/restore_config.sh: line 58: perl: command not found
=== EnablingAutoip.sh ===
=== networking.sh ===
/etc/init.d/networking.sh : Clear /etc/dhcpc/dhcpcd-eth1.pid eth1
/etc/init.d/networking.sh : Clear /etc/dhcpc/dhcpcd-eth1.pid eth1
/etc/init.d/networking.sh : Clear /etc/dhcpc/dhcpcd-bond0.pid bond0
/etc/init.d/networking.sh : Read dhcpc file
/etc/init.d/networking.sh : configure :
create network files.. (eth0)
IP=[dhcp], netmask=[], dgw=[], dns1=[], dns2=[]
create network files.. (eth1)
IP=[dhcp], netmask=[], dgw=[]
dhcpcd: no process found
/etc/init.d/networking.sh : Delete /etc/dhcpc/dhcpcd-.pid
Configuration network interface: lo eth0 eth1
/etc/init.d/networking.sh: line 221: [: : integer expression expected
/sbin/ifconfig eth0 mtu 1500 multicast
/etc/init.d/networking.sh: line 221: [: : integer expression expected
/sbin/ifconfig eth1 mtu 1500 multicast
/sbin/ifconfig eth1  netmask
/sbin/ifconfig eth0  netmask
Checking network address for each network device
SIOCGIFADDR :No such device
SIOCGIFADDR :No such device
Warn!!!  and  has same network address!
Waiting fot linkup detection
cat: can't open '/sys/class/net//operstate': No such file or directory
cat: can't open '/sys/class/net//operstate': No such file or directory
.cat: can't open '/sys/class/net//operstate': No such file or directory
cat: can't open '/sys/class/net//operstate': No such file or directory
.cat: can't open '/sys/class/net//operstate': No such file or directory
cat: can't open '/sys/class/net//operstate': No such file or directory
.cat: can't open '/sys/class/net//operstate': No such file or directory
cat: can't open '/sys/class/net//operstate': No such file or directory
.cat: can't open '/sys/class/net//operstate': No such file or directory
cat: can't open '/sys/class/net//operstate': No such file or directory
.cat: can't open '/sys/class/net//operstate': No such file or directory
cat: can't open '/sys/class/net//operstate': No such file or directory
.cat: can't open '/sys/class/net//operstate': No such file or directory
cat: can't open '/sys/class/net//operstate': No such file or directory
.cat: can't open '/sys/class/net//operstate': No such file or directory
cat: can't open '/sys/class/net//operstate': No such file or directory
.cat: can't open '/sys/class/net//operstate': No such file or directory
cat: can't open '/sys/class/net//operstate': No such file or directory
.cat: can't open '/sys/class/net//operstate': No such file or directory
cat: can't open '/sys/class/net//operstate': No such file or directory
.cat: can't open '/sys/class/net//operstate': No such file or directory
cat: can't open '/sys/class/net//operstate': No such file or directory
networking.sh: Each network is not same in physically(or virtually).
networking.sh:         Shutting down
cat: can't open '/var/run/dhcpcd-.pid': No such file or directory
ifconfig: SIOCSIFADDR: No such device
networking.sh: arp_newip_notify_sub : Can't get ipaddr of eth0.
networking.sh: arp_newip_notify_sub : Can't get ipaddr of eth1.
add default if
route: SIOCADDRT: Network is down
configure files from Buffalo parameters.
=== syslog.sh ===
Starting system logger: load_info ItemValue = off
LoadConfFileStringEx:key=[ad_dns] not found in /etc/melco/info.
LoadConfFileOnOffEx:key=[info_visible] not found in /etc/melco/info.
LoadConfFileOnOffEx:key=[smb2] not found in /etc/melco/info.
LoadConfFileOnOffEx:key=[recycle_admin] not found in /etc/melco/info.
LoadConfFileOnOffEx:key=[recycle_macinfo] not found in /etc/melco/info.

Starting kernel logger:
=== kernelmon.sh ===
Starting kernelmon:=== fanctld.sh ===
grep: /usr/local/sbin/temprature.sh: No such file or directory
* Starting fanctld ...    [ ok ]
=== usb.sh ===
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
xhci_hcd 0000:00:01.0: xHCI Host Controller
xhci_hcd 0000:00:01.0: new USB bus registered, assigned bus number 1
xhci_hcd 0000:00:01.0: irq 58, io mem 0xe0000000
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
xhci_hcd 0000:00:01.0: xHCI Host Controller
xhci_hcd 0000:00:01.0: new USB bus registered, assigned bus number 2
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci_marvell ehci_marvell.0: Marvell Orion EHCI
ehci_marvell ehci_marvell.0: new USB bus registered, assigned bus number 3
ehci_marvell ehci_marvell.0: irq 45, io base 0xfbb50100
ehci_marvell ehci_marvell.0: USB 2.0 started, EHCI 1.00
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 1 port detected
ehci_marvell ehci_marvell.1: Marvell Orion EHCI
ehci_marvell ehci_marvell.1: new USB bus registered, assigned bus number 4
ehci_marvell ehci_marvell.1: irq 46, io base 0xfbb51100
ehci_marvell ehci_marvell.1: USB 2.0 started, EHCI 1.00
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 1 port detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver usblp
cp: can't stat '/tmp/usbshareinfo': No such file or directory
rm: can't remove '/tmp/usbshareinfo': No such file or directory
=== clientUtil_servd.sh ===
KERNELMOn (SATA 0 unplugged)
Starting clientUtil_server:
  ->Starting on eth0
  ->Starting on eth1
=== daemonwatch.sh ===
Starting daemonwatch:daemonwatch Ver.1.01
watch list file : /etc/daemonwatch.list
=== bootcomplete.sh ===
No need to run drivecheck.sh
hdd_raid_syncspeed.sh: USERLAND_MD=
=== micon_setup.sh ===
=== late_inspection_phase.sh ===
KERNELMOn (SATA 1 unplugged)
=== buffalo_rescue.sh ===
buffalo_rescue.sh: Its not a usb boot environment.
=== bootcomplete.sh(create_file) ===

BUFFALO INC. LinkStation series
LS421DE-EM148 login:

without root does not perform

admin@LS421DE-EMF73:~$ dumpnf > /tmp/nas_feature
Permission denied
admin@LS421DE-EMF73:~$

It is possible to bypass the root in the bootloader through boootargs?


BUFFALO>> printenv
CASset=min
EnableNandBoot=1
MALLOC_len=5
SerialNo=80060334XXXXXX
autoload=n
bootargs_end=:10.4.50.254:255.255.255.0:KW40:eth0:none
bootargs_root=root=/dev/nfs rw
bootcmd=for i in $bootorder; do run ${i}bootcmd; done
bootcommon=setenv bootargs $console $bootargs_root $bootargs_func $buffalo_ver $uboot_date $mtdparts $bootsystem; ;sf protect off; bootm 0x1200000 0x2600000
bootcommon-u=setenv bootargs $console $bootargs_func $buffalo_ver $uboot_date $mtdparts $bootsystem; ;sf protect off; bootm 0x1200000
bootdelay=3
bootorder=nand usb fail tftp
buffalo_ver=BOOTVER=0.16
cacheShare=no
console=console=ttyS0,115200
deviceid=_tysgkFFSEb9du4Dwukzi6HjzZXXXXXX
disL2Cache=yes
disaMvPnp=no
eeeEnable=no
enaAutoRecovery=yes
enaClockGating=no
enaFPU=yes
enaWrAllo=no
eth1addr=10:6F:3F:XX:XX:XX
eth1mtu=1500
ethact=egiga1
ethaddr=00:50:43:XX:XX:XX
ethmtu=1500
ethprime=egiga1
failbootcmd=bootfail
hdddelay=14
idebootcmd=ext2load ide 0:1 0x1200000 /$kernel; ext2load ide 0:1 0x2600000 /$initrd; setenv bootsystem hddboot=yes; run bootcommon
image_name=uImage
initrd=initrd.buffalo
initrd_name=uInitrd
ipaddr=192.168.11.150
kernel=uImage.buffalo
loadaddr=0x02000000
mtdids=nand0=armada-nand
mtdparts=mtdparts=armada-nand:0x2000000(boot),0x1e000000(rootfs)
mvNetConfig=switch_config=none
nandEcc=1bit
nandbootcmd=ubi part boot; ubifsmount boot; ubifsload 0x1200000 /$kernel; ubifsload 0x2600000 /$initrd; setenv bootsystem nandboot=yes; run bootcommon
netbsd_en=no
netmask=255.255.255.0
netretry=no
pcieTune=no
pexMode=rc
pxe_files_load=:default.arm-armada370-db:default.arm-armadaxp:default.arm
pxefile_addr_r=3100000
rcvrip=169.254.100.100
sata_delay_reset=0
sata_dma_mode=yes
serverip=192.168.11.1
sn=375910017221DXXXXXX
standalone=fsload $load_addr $image_name;setenv bootargs $console $mtdparts root=/dev/mtdblock0 rw ip=$ipaddr:$serverip$bootargs_end; bootm $load_addr;
stderr=serial
stdin=serial
stdout=serial
tftpbootcmd=tftp 0x1200000 $kernel; tftp 0x2600000 $initrd; setenv bootsystem tftpboot=yes; run bootcommon
uboot_date=UBOOT_DATE="2015/01/15"
usb0Mode=host
usb1Mode=host
usb1bootcmd=setenv usbActive 0;usb start;fatload usb 0 0x1200000 /boot/uImage370;sf protect off;run bootcommon-u
usb2Mode=device
usb2bootcmd=fatload usb 0 0x1200000 /boot/uImage.buffalo;fatload usb 0 0x2600000 /boot/initrd.buffalo;setenv bootsystem usbboot=yes;run bootcommon
usbActive=0
usbbootcmd=setenv usbActive 0;usb start;fatload usb 0 0x1200000 /uImage.buffalo;fatload usb 0 0x2600000 /initrd.buffalo;if fatIsSettingRecoveryDisk usb 0;then setenv bootsystem usbboot=yes mode=rescue; elif fatIsSettingInitializeDisk usb 0;then setenv bootsystem usbboot=yes mode=initialize; else setenv bootsystem usbboot=yes;fi;run bootcommon
vxworks_en=no

Environment size: 2863/65532 bytes
BUFFALO>>

uboot NSA310 - probably erase uboot (19 replies)

$
0
0
Hi,

I think I kill my uboot when I try test latest changes in LEDE:
I follow the procedure:
https://github.com/lede-project/source/pull/656#issuecomment-274945142

I compile the uboot:
~/openwrt/LEDEnsa310 $ ls -alh bin/targets/kirkwood/generic/u-boot-nsa310/
total 1,5M

508K Jan 25 21:28 u-boot.bin
508K Jan 25 21:28 u-boot.img
508K Jan 25 21:28 u-boot.kwb

and take u-boot.bin
then on console:
nvironment size: 2960/131068 bytes
NSA310> usb reset
resetting 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
NSA310> fatload usb 0 0x1000000 uboot.bin
reading uboot.bin
519520 bytes read in 41 ms (12.1 MiB/s)
NSA310> nand write 0x1000000 0x00000 0x100000

NAND write: device 0 offset 0x0, size 0x100000
NAND write to offset 0 failed -5
 0 bytes written: ERROR
NSA310>

SA310> mtdparts

device nand0 <orion_nand>, # parts = 9
 #: name                size            offset          mask_flags
 0: uboot               0x00100000      0x00000000      0
 1: uboot_env           0x00080000      0x00100000      0
 2: key_store           0x00080000      0x00180000      0
 3: info                0x00080000      0x00200000      0
 4: etc                 0x00a00000      0x00280000      0
 5: kernel_1            0x00a00000      0x00c80000      0
 6: rootfs1             0x02fc0000      0x01680000      0
 7: kernel_2            0x00a00000      0x04640000      0
 8: rootfs2             0x02fc0000      0x05040000      0

active partition: nand0,2 - (key_store) 0x00080000 @ 0x00180000

defaults:
mtdids  : none
mtdparts: none
NSA310>
NSA310>
NSA310>
NSA310>
NSA310>
NSA310> reset
resetting ...


And then lost communication forever :-(

Is there anything I can do ?


---
Mod edit: use code tags

[testing]Can someone with nsa325 test this uboot? (2 replies)

$
0
0
I'm adding support in LEDE for the NSA325 (basically cloning bodhi's patches and adapting them a bit to work into LEDE's build system), and as you know the NSA325 has a hardware watchdog.

I tried to make a very barebones uboot so it can be loaded with kwboot, but.... my nsa325's hardware watchdog seems to be dead for good. It does not show up and I can't trigger it in any way.

It used to reset the board just after startup, making the job of kwbooting harder, but now it does nothing.

So, is there someone out there that has a NSA325 (v1 or V2) that has a hardware watchdog that is still alive? Could you try kwbooting the uboot I attached to this post?

This is the page for kwbooting http://forum.doozan.com/read.php?3,7852,7852

Trouble booting and SSH into USB (Arch linux) with Pogo E02 (5 replies)

$
0
0
Booting and SSH-ing issues into Arch Linux in POGO....

It boots into the Pogo OS fine and provides the correct IP to ssh in, but once I plug in the USB (on the top port) and do a busybox reboot, it isn't pingable or sshable anymore.
I set up a netconsole to view the boot process, and this (see below) is what I get... I also have the output of 'fw_printenv' for you to look at. I had made some changes to the original one while trying to fix it, but none have worked so far.....

When it is booted into PogoOS, I could ssh in (192.168.11.33) and see the mounted disk in /tmp/.cment/mnt_sda1...

I would be happy to provide any additional information if you need. Thanks a lot for any help...

~ $ nc -ul 6666

U-Boot 2011.12 (Feb 20 2012 - 21:21:59)
Pogoplug E02
arm-none-linux-gnueabi-gcc (Sourcery G++ Lite 2009q3-67) 4.4.1
GNU ld (Sourcery G++ Lite 2009q3-67) 2.19.51.20090709
Hit any key to stop autoboot:  0 
(Re)start USB...
USB:   Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 3 USB Device(s) found
       scanning bus for storage devices... 1 Storage Device(s) found
Loading file "/rescueme" from usb device 0:1 (usbda1)
** File not found /rescueme
reading /rescueme.txt

** Unable to read "/rescueme.txt" from usb 0:1 **
Creating 1 MTD partitions on "nand0":
0x000002500000-0x000008000000 : "mtd=3"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    129024 bytes
UBI: smallest flash I/O unit:    2048
UBI: sub-page size:              512
UBI: VID header offset:          512 (aligned 512)
UBI: data offset:                2048
UBI: attached mtd1 to ubi0
UBI: MTD device name:            "mtd=3"
UBI: MTD device size:            91 MiB
UBI: number of good PEBs:        726
UBI: number of bad PEBs:         2
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     0
UBI: available PEBs:             715
UBI: total number of reserved PEBs: 11
UBI: number of PEBs reserved for bad PEB handling: 7
UBI: max/mean erase counter: 1/1
UBIFS error (pid 0): ubifs_get_sb: cannot open "ubi:rootfs", error -19
Error reading superblock on volume 'ubi:rootfs'!
(Re)start USB...
USB:   Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 3 USB Device(s) found
       scanning bus for storage devices... 1 Storage Device(s) found
Loading file "/boot/uImage" from usb device 0:1 (usbda1)
4028544 bytes read
Loading file "/boot/uImage" from usb device 0:1 (usbda1)
4028544 bytes read
Loading file "/boot/uInitrd" from usb device 0:1 (usbda1)
** File not found /boot/uInitrd
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-3.18.1-1-ARCH
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4028480 Bytes = 3.8 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...


Output of fw_printenv
-bash-4.3# fw_printenv               
ethact=egiga0
bootdelay=3
baudrate=115200
mainlineLinux=yes
console=ttyS0,115200
led_init=green blinking
led_exit=green off
led_error=orange blinking
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
mtdids=nand0=orion_nand
partition=nand0,2
stdin=serial
stdout=serial
stderr=serial
rescue_installed=0
rescue_set_bootargs=setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts $rescue_custom_params
rescue_bootcmd=if test $rescue_installed -eq 1; then run rescue_set_bootargs; nand read.e 0x800000 0x100000 0x400000; bootm 0x800000; else run pogo_bootcmd; fi
pogo_bootcmd=if fsload uboot-original-mtd0.kwb; then go 0x800200; fi
force_rescue=0
force_rescue_bootcmd=if test $force_rescue -eq 1 || ext2load usb 0:1 0x1700000 /rescueme 1 || fatload usb 0:1 0x1700000 /rescueme.txt 1; then run rescue_bootcmd; fi
ubifs_mtd=3
ubifs_set_bootargs=setenv bootargs console=$console ubi.mtd=$ubifs_mtd root=ubi0:rootfs rootfstype=ubifs $mtdparts $ubifs_custom_params
ubifs_bootcmd=run ubifs_set_bootargs; if ubi part data && ubifsmount rootfs && ubifsload 0x800000 /boot/uImage && ubifsload 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; fi
usb_scan=usb_scan_done=0;for scan in $usb_scan_list; do run usb_scan_$scan; if test $usb_scan_done -eq 0 && ext2load usb $usb 0x800000 /boot/uImage 1; then usb_scan_done=1; echo "Found bootable drive on usb $usb"; setenv usb_device $usb; setenv usb_root /dev/$dev; fi; done
usb_scan_list=1 2 3 4
usb_scan_1=usb=0:1 dev=sda1
usb_scan_2=usb=1:1 dev=sdb1
usb_scan_3=usb=2:1 dev=sdc1
usb_scan_4=usb=3:1 dev=sdd1
usb_device=0:1
usb_root=/dev/sda1
usb_rootdelay=10
usb_set_bootargs=setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts $usb_custom_params
usb_bootcmd=run usb_init; run usb_set_bootargs; run usb_boot
usb_boot=mw 0x800000 0 1; ext2load usb $usb_device 0x800000 /boot/uImage; if ext2load usb $usb_device 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
bootcmd=usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd; usb stop; run rescue_bootcmd; run pogo_bootcmd; reset
ethaddr=00:25:31:04:A1:A6
arcNumber=2097
usb_init=usb start; if ext2load usb 0:1 0x800000 /boot/uImage; then setenv usb_device 0:1; setenv usb_root /dev/sda1; elif ext2load usb 1:1 0x800000 /boot/uImage; then setenv usb_device 1:1; setenv usb_root /dev/sdb1; elif ext2load usb 2:1 0x800000 /boot/uImage; then setenv usb_device 2:1; setenv usb_root /dev/sdc1; elif ext2load usb 3:1 0x800000 /boot/uImage; then setenv usb_device 3:1;setenv usb_root /dev/sdd1;fi;
serverip=192.168.11.19
ipaddr=192.168.11.33
if_netconsole=ping $serverip
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
preboot=run if_netconsole start_netconsole
usb_rootfstype=ext2

Forgot to erase flash before writting uboot. Bricked? (12 replies)

$
0
0
Hello.

I was upgrading my uboot to last version, but I forgot to erase the flash, i.e., to do:

flash_erase /dev/mtd0 0 4

I did all the following steps.

Now I can not boot. Is my dockstar bricked?

Thanks.

How to see version of uBoot? (2 replies)

$
0
0
Simple question: how can I find out which version of uBoot I am using? I lost track which Pogolug has which version and have forgotten if I installed the new version.

Thanks,

Rainer

Problem booting with Arch U-Boot 2016.09.01-1 (2 replies)

$
0
0
Hello all, and firts, sorry for my english

I have a Pogoplug E02 device running perfect for 2 or more years,(Archlinux installed) suddenly, in a very clever move from my ingenius brain, decide to update uBoot

Pacman uboot-pogo_e02

Why you ask? well, for take advantage from the rescue system, etc etc

Now, the device is not booting, but after read and read, (my knowlege of linux is pathetic) have netconsole running:

U-Boot 2016.09.01-1 (Oct 10 2016 - 23:12:58 -0600) Arch Linux ARM
Pogo E02
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... 3 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found

USB device 0:
    Device 0: Vendor: Ext Hard Rev:  Prod:  Disk
            Type: Hard Disk
            Capacity: 305245.3 MB = 298.0 GB (625142448 x 512)
... is now current device
usb found on device 0
Checking for: /boot/uEnv.txt ...
** File not found /boot/zImage **
4603360 bytes read in 545 ms (8.1 MiB/s)
loading /boot/dtbs/kirkwood-pogo_e02.dtb ...
** File not found /boot/dtbs/kirkwood-pogo_e02.dtb **
4352795 bytes read in 554 ms (7.5 MiB/s)
Booting uImage with initrd
## Booting kernel from Legacy Image at 00810000 ...
   Image Name:   Linux-4.4.28-1-ARCH
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4603296 Bytes = 4.4 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK

I assume that one is from the Uboot himself, and have another one from the Kernel, much more large.

[    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.28-1-ARCH (builduser@leming) (gcc version 6.2.120160830 (GCC) ) #1 PREEMPT Sat Oct 29 00:27:49 MDT 2016
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: Pogoplug E02
[    0.000000] debug: ignoring loglevel setting.
[    0.000000] Memory policy: Data cache writeback
[    0.000000] On node 0 totalpages: 65536
[    0.000000] free_area_init_node: node 0, pgdat c0918bd4, node_mem_map cfdba000
[    0.000000]   Normal zone: 576 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 65536 pages, LIFO batch:15
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 64960
[    0.000000] Kernel command line: console=ttyS0,115200 mtdparts=orion_nand:1M(u-boot),-(rootfs) root=PARTUUID=4131cea8-01 rw rootwait ignore_loglevel netconso       le=6665@10.10.10.3/eth0,6666@10.10.10.4/
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Memory: 245264K/262144K available (6597K kernel code, 547K rwdata, 1876K rodata, 300K init, 725K bss, 16880K 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 : 0xd0800000 - 0xff800000   ( 752 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc084e9a4   (8475 kB)
[    0.000000]       .init : 0xc084f000 - 0xc089a000   ( 300 kB)
[    0.000000]       .data : 0xc089a000 - 0xc0922e0c   ( 548 kB)
[    0.000000]        .bss : 0xc0922e0c - 0xc09d83d8   ( 726 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:114
[    0.000013] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[   10.814887] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[   10.815077] Console: colour dummy device 80x30
[   10.815106] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[   10.904972] pid_max: default: 32768 minimum: 301
[   10.905068] Security Framework initialized
[   10.905146] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[   10.905164] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[   10.905907] Initializing cgroup subsys io
[   10.905939] Initializing cgroup subsys memory
[   10.905991] Initializing cgroup subsys devices
[   10.906017] Initializing cgroup subsys freezer
[   10.906037] Initializing cgroup subsys net_cls
[   10.906054] Initializing cgroup subsys perf_event
[   10.906076] Initializing cgroup subsys net_prio
[   10.906159] CPU: Testing write buffer coherency: ok
[   10.906621] Setting up static identity map for 0x81e0 - 0x8238
[   10.908577] devtmpfs: initialized
[   10.910994] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[   10.911433] pinctrl core: initialized pinctrl subsystem
[   10.912224] NET: Registered protocol family 16
[   10.912763] DMA: preallocated 256 KiB pool for atomic coherent allocations
[   10.934975] cpuidle: using governor ladder
[   10.964974] cpuidle: using governor menu
[   10.965187] Kirkwood: MV88F6281-A0, TCLK=200000000.
[   10.965212] Feroceon L2: Enabling L2
[   10.965250] Feroceon L2: Cache support initialised.
[   10.966000] initial MPP regs: 01111111 11113322 00001111 00100000 00000000 00 000000 00000000
[   10.966027]   final MPP regs: 01111111 11113322 00001111 00000000 00000000 00000000 00000000
[   11.006484] vgaarb: loaded
[   11.006816] SCSI subsystem initialized
[   11.007003] libata version 3.00 loaded.
[   11.007302] usbcore: registered new interface driver usbfs
[   11.007377] usbcore: registered new interface driver hub
[   11.007438] usbcore: registered new device driver usb
[   11.007610] pps_core: LinuxPPS API ver. 1 registered
[   11.007619] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[   11.007653] PTP clock support registered
[   11.008757] clocksource: Switched to clocksource orion_clocksource
[   11.047473] FS-Cache: Loaded
[   11.060697] NET: Registered protocol family 2
[   11.061522] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[   11.061560] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[   11.061591] TCP: Hash tables configured (established 2048 bind 2048)
[   11.061664] UDP hash table entries: 256 (order: 0, 4096 bytes)
[   11.061687] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[   11.061876] NET: Registered protocol family 1
[   11.062202] RPC: Registered named UNIX socket transport module.
[   11.062214] RPC: Registered udp transport module.
[   11.062221] RPC: Registered tcp transport module.
[   11.062227] RPC: Registered tcp NFSv4.1 backchannel transport module.
[   11.062248] PCI: CLS 0 bytes, default 32
[   11.062518] Trying to unpack rootfs image as initramfs...
[   11.435303] Freeing initrd memory: 4252K (c1100000 - c1527000)
[   11.437191] futex hash table entries: 256 (order: -1, 3072 bytes)
[   11.450062] VFS: Disk quotas dquot_6.6.0
[   11.450319] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[   11.452372] FS-Cache: Netfs 'nfs' registered for caching
[   11.453483] NFS: Registering the id_resolver key type
[   11.453545] Key type id_resolver registered
[   11.453554] Key type id_legacy registered
[   11.453638] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[   11.454953] fuse init (API version 7.23)
[   11.457186] aufs 4.4-20160912
[   11.462612] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[   11.462637] io scheduler noop registered
[   11.462653] io scheduler deadline registered
[   11.462929] io scheduler cfq registered
[   11.463197] io scheduler bfq registered (default)
[   11.463206] BFQ I/O-scheduler: v7r11
[   11.463403] mv_xor mv_xor.0: Marvell shared XOR driver
[   11.500056] mv_xor mv_xor.0: Marvell XOR (Registers Mode): ( xor cpy )
[   11.500305] mv_xor mv_xor.1: Marvell shared XOR driver
[   11.540019] mv_xor mv_xor.1: Marvell XOR (Registers Mode): ( xor cpy )
[   11.545695] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[   11.546820] console [ttyS0] disabled
[   11.566954] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33, base_baud = 12500000) is a 16550A
[   12.200472] console [ttyS0] enabled
[   12.219879] brd: module loaded
[   12.230721] loop: module loaded
[   12.234675] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[   12.241167] nand: Samsung NAND 128MiB 3,3V 8-bit
[   12.245809] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[   12.253442] Scanning device for bad blocks
[   12.305811] Bad eraseblock 636 at 0x000004f80000
[   12.311336] Bad eraseblock 648 at 0x000005100000
[   12.344388] 2 cmdlinepart partitions found on MTD device orion_nand
[   12.350698] Creating 2 MTD partitions on "orion_nand":
[   12.355859] 0x000000000000-0x000000100000 : "u-boot"
[   12.361344] 0x000000100000-0x000008000000 : "rootfs"
[   12.379832] libphy: orion_mdio_bus: probed
[   12.384067] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   13.469710] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address    00:25:31:02:24:78
[   13.478592] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   13.485182] ehci-pci: EHCI PCI platform driver
[   13.489733] ehci-orion: EHCI orion driver
[   13.493837] orion-ehci orion-ehci.0: EHCI Host Controller
[   13.499319] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[   13.507065] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[   13.528788] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[   13.535717] hub 1-0:1.0: USB hub found
[   13.539583] hub 1-0:1.0: 1 port detected
[   13.544232] usbcore: registered new interface driver uas
[   13.549763] usbcore: registered new interface driver usb-storage
[   13.555851] usbcore: registered new interface driver ums-alauda
[   13.561900] usbcore: registered new interface driver ums-cypress
[   13.567987] usbcore: registered new interface driver ums-datafab
[   13.574096] usbcore: registered new interface driver ums_eneub6250
[   13.580381] usbcore: registered new interface driver ums-freecom
[   13.586465] usbcore: registered new interface driver ums-isd200
[   13.592485] usbcore: registered new interface driver ums-jumpshot
[   13.598655] usbcore: registered new interface driver ums-karma
[   13.604589] usbcore: registered new interface driver ums-onetouch
[   13.610809] usbcore: registered new interface driver ums-realtek
[   13.616898] usbcore: registered new interface driver ums-sddr09
[   13.622920] usbcore: registered new interface driver ums-sddr55
[   13.628944] usbcore: registered new interface driver ums-usbat
[   13.635254] mousedev: PS/2 mouse device common for all mice
[   13.858789] usb 1-1: new high-speed USB device number 2 using orion-ehci
[   14.011333] hub 1-1:1.0: USB hub found
[   14.015451] hub 1-1:1.0: 4 ports detected
[   14.298780] usb 1-1.1: new high-speed USB device number 3 using orion-ehci
[   14.412253] usb-storage 1-1.1:1.0: USB Mass Storage device detected
[   14.418902] scsi host0: usb-storage 1-1.1:1.0
[   14.648781] rtc-mv rtc-mv: internal RTC not ticking
[   14.653828] i2c /dev entries driver
[   14.657912] sdhci: Secure Digital Host Controller Interface driver
[   14.664143] sdhci: Copyright(c) Pierre Ossman
[   14.668584] sdhci-pltfm: SDHCI platform and OF driver helper
[   14.674793] ledtrig-cpu: registered to indicate activity on CPUs
[   14.680997] usbcore: registered new interface driver r8712u
[   14.686843] gre: GRE over IPv4 demultiplexor driver
[   14.691811] NET: Registered protocol family 17
[   14.696403] Key type dns_resolver registered
[   14.701743] registered taskstats version 1
[   14.726635] Key type encrypted registered
[   14.731352] netpoll: netconsole: local port 6665
[   14.735996] netpoll: netconsole: local IPv4 address 10.10.10.3
[   14.742062] netpoll: netconsole: interface 'eth0'
[   14.746790] netpoll: netconsole: remote port 6666
[   14.751573] netpoll: netconsole: remote IPv4 address 10.10.10.4
[   14.757516] netpoll: netconsole: remote ethernet address ff:ff:ff:ff:ff:ff
[   14.764470] netpoll: netconsole: device eth0 not up yet, forcing it
[   15.429412] scsi 0:0:0:0: Direct-Access     Ext Hard  Disk                 PQ0 ANSI: 4
[   15.438988] sd 0:0:0:0: [sda] 625142448 512-byte logical blocks: (320 GB/298GiB)
[   15.458781] sd 0:0:0:0: [sda] Write Protect is off
[   15.463615] sd 0:0:0:0: [sda] Mode Sense: 10 00 00 00
[   15.469349] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   15.478822] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   15.527671]  sda: sda1 sda2
[   15.541226] sd 0:0:0:0: [sda] Attached SCSI disk
[   17.558659] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 100 Mb/s, fullduplex, flow control disabled
[   17.571608] console [netcon0] enabled
[   17.575307] netconsole: network logging started
[   17.580010] hctosys: unable to open rtc device (rtc0)
[   17.587044] Freeing unused kernel memory: 300K (c084f000 - c089a000)
[   17.656568] random: systemd-tmpfile: uninitialized urandom read (16 bytes read, 24 bits of entropy available)
[   17.688403] random: udevadm: uninitialized urandom read (16 bytes read, 24 bits of entropy available)
[   17.700369] random: systemd-udevd: uninitialized urandom read (16 bytes read,24 bits of entropy available)
[   17.710699] random: systemd-udevd: uninitialized urandom read (16 bytes read,24 bits of entropy available)
[   17.837882] random: udevadm: uninitialized urandom read (16 bytes read, 24 bits of entropy available)
[   17.868645] random: udevadm: uninitialized urandom read (16 bytes read, 24 bits of entropy available)
[   17.898130] random: udevadm: uninitialized urandom read (16 bytes read, 25 bits of entropy available)
[   17.927046] random: udevadm: uninitialized urandom read (16 bytes read, 25 bits of entropy available)
[   17.956580] random: udevadm: uninitialized urandom read (16 bytes read, 25 bits of entropy available)
[   17.986119] random: udevadm: uninitialized urandom read (16 bytes read, 25 bits of entropy available)
[   19.346124] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   19.378213] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts:(null)
[   20.939703] systemd[1]: System time before build time, advancing clock.
[   21.207620] NET: Registered protocol family 10
[   21.265233] ip_tables: (C) 2000-2006 Netfilter Core Team
[   21.354915] systemd[1]: systemd 231 running in system mode. (+PAM -AUDIT -SELINUX -IMA -APPARMOR +SMACK -SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
[   21.373536] systemd[1]: Detected architecture arm.
[   21.421336] systemd[1]: Set hostname to <alarm>.
[   22.859494] random: nonblocking pool is initialized
[   23.009946] systemd[1]: Reached target Remote File Systems.
[   23.041898] systemd[1]: Created slice System Slice.
[   23.069904] systemd[1]: Created slice system-serial\x2dgetty.slice.
[   23.099906] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[   23.129311] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[   23.159203] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[   23.190075] systemd[1]: Created slice system-netctl\x2difplugd.slice.
[   23.219232] systemd[1]: Listening on LVM2 metadata daemon socket.
[   23.249251] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[   23.278985] systemd[1]: Reached target Paths.
[   23.299157] systemd[1]: Listening on Device-mapper event daemon FIFOs.
[   23.328986] systemd[1]: Reached target Encrypted Volumes.
[   23.359197] systemd[1]: Listening on udev Control Socket.
[   23.395280] systemd[1]: Listening on Process Core Dump Socket.
[   23.465238] systemd[1]: Listening on Journal Socket.
[   23.492778] systemd[1]: Mounting POSIX Message Queue File System...
[   23.539416] systemd[1]: Mounting Debug File System...
[   23.615381] systemd[1]: Starting Create list of required static device nodesfor the current kernel...
[   23.663141] systemd[1]: Starting Remount Root and Kernel File Systems...
[   23.713542] systemd[1]: Starting Setup Virtual Console...
[   23.799431] systemd[1]: Starting Apply Kernel Variables...
[   23.823981] systemd[1]: Mounting FUSE Control File System...
[   23.865678] EXT4-fs (sda1): re-mounted. Opts: (null)
[   23.885705] systemd[1]: Listening on Journal Socket (/dev/log).
[   23.963361] systemd[1]: Starting Journal Service...
[   23.989433] systemd[1]: Listening on udev Kernel Socket.
[   24.003694] systemd[1]: Created slice User and Session Slice.
[   24.059124] systemd[1]: Reached target Slices.
[   24.080009] systemd[1]: Created slice system-getty.slice.
[   24.129291] systemd[1]: Mounted Debug File System.
[   24.149215] systemd[1]: Mounted FUSE Control File System.
[   24.179118] systemd[1]: Mounted POSIX Message Queue File System.
[   24.211566] systemd[1]: Started Create list of required static device nodes for the current kernel.
[   24.241247] systemd[1]: Started Remount Root and Kernel File Systems.
[   24.270676] systemd[1]: Started Setup Virtual Console.
[   24.315413] systemd-journald[176]: File /var/log/journal/e4b5dad211aa4a41920893d218a05e68/system.journal corrupted or uncleanly shut down, renaming and replacing.
[   24.344412] systemd[1]: Starting Load/Save Random Seed...
[   24.499649] systemd[1]: Starting udev Coldplug all Devices...
[   24.534434] systemd[1]: Starting Create Static Device Nodes in /dev...
[   24.680358] systemd[1]: Started Load/Save Random Seed.
[   25.116204] systemd[1]: Started udev Coldplug all Devices.
[   25.208272] systemd[1]: Started Create Static Device Nodes in /dev.
[   25.264499] systemd[1]: Starting udev Kernel Device Manager...
[   25.297265] systemd[1]: Reached target Local File Systems (Pre).
[   25.491368] systemd[1]: Started Journal Service.
[   25.700643] systemd-journald[176]: Received request to flush runtime journal from PID 1
[   26.244712] MV-CESA:Could not register sha1 driver
[   26.265748] MV-CESA:Could not register hmac-sha1 driver
[   27.518991] EXT4-fs (sda2): mounting ext3 file system using the ext4 subsystem
[   27.614092] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts:(null)
[   30.329090] Adding 1048572k swap on /media/usb/swapfile.img.  Priority:-1 extents:265 across:1082584k


Maybe this two files are in some way related to the boot enviroment:

kirkwood-pogo_e02.dtb
zImage-4.9.0-kirkwood-tld-1

the first one, was copied to a boot/dtbs folder, and wen i do that, kernel do not load, and my terminal shows:

PogoE02: (i can write here some commands)

if i copy the zImage, the Uboot show something about a magic error

Thanks a lot in advance

Goflex upgrade uboot auto-script fail! (1 reply)

$
0
0
Dear friends,

While I'm upgrading u-boot on Goflex Home I get error

"
HTTP request sent, awaiting response... 404 Not Found
10:11:07 ERROR 404: Not Found.
"

See log file attached for detail. I think there is a problem with uboot file location on server.

Please help me to correct this issue.

Many thanks.

Help unbricking Pogo E02 (no replies)

$
0
0
Hello guys.. I managed to restore uboot image after a wrong installation in a Pogoplug e02. I have serial access and this is part of the output of printenv:
PogoE02> printenv
arcNumber=3960
baudrate=115200
bootcmd=run bootcmd_usb; run bootcmd_mmc; run bootcmd_sata; run bootcmd_pogo; reset
bootcmd_mmc=run mmc_init; run set_bootargs_mmc; run mmc_boot
bootcmd_pogo=if ubi part root 2048 && ubifsmount ubi:rootfs && ubifsload 0x800000 uboot.mtd0.dockstar.original.kwb ; then go 0x800200; fi
bootcmd_sata=run sata_init; run set_bootargs_sata; run sata_boot;
bootcmd_usb=run usb_init; run set_bootargs_usb; run usb_boot;
bootdelay=10
console=ttyS0,115200
device=0:1
ethact=egiga0
ethaddr=00:25:31:00:5d:10
if_netconsole=ping $serverip
ipaddr=192.168.1.10
led_error=orange blinking
led_exit=green off
led_init=green blinking
machid=F78
mainlineLinux=yes
mmc_boot=mw 0x800000 0 1; run mmc_load_uimage; if run mmc_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
mmc_init=mmc rescan
mmc_load_uimage=ext2load mmc $device 0x800000 /boot/uImage
mmc_load_uinitrd=ext2load mmc $device 0x1100000 /boot/uInitrd
mmc_root=/dev/mmcblk0p1
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:2M(u-boot),3M(uImage),3M(uImage2),8M(failsafe),112M(root)
partition=nand0,2
preboot=run if_netconsole start_netconsole
preboot_nc=run if_netconsole start_netconsole
rootdelay=10
rootfstype=ext3
sata_boot=mw 0x800000 0 1; run sata_load_uimage; if run sata_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
sata_init=ide reset
sata_load_uimage=ext2load ide $device 0x800000 /boot/uImage
sata_load_uinitrd=ext2load ide $device 0x1100000 /boot/uInitrd
sata_root=/dev/sda1
serverip=192.168.1.100
set_bootargs_mmc=setenv bootargs console=$console root=$mmc_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts
set_bootargs_sata=setenv bootargs console=$console root=$sata_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts
set_bootargs_usb=setenv bootargs console=$console root=$usb_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
usb_boot=mw 0x800000 0 1; run usb_load_uimage; if run usb_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
usb_init=usb start
usb_load_uimage=ext2load usb $device 0x800000 /boot/uImage
usb_load_uinitrd=ext2load usb $device 0x1100000 /boot/uInitrd
usb_root=/dev/sda1
usb_rootfstype=ext3

Environment size: 2459/131068 bytes
Can you link me a tutorial to install debian 8 from this startpoint please? thank you in advance. Marco

Problem booting NSA325v2 on HDD (1 reply)

$
0
0
Dear bodhi,

first of all a big thank you for your great work!

I used your 2016.05 U-Boot on my NSA325v2 and everything went fine so far.
I am also using your Debian-4.4.0-kirkwood-tld-1-rootfs-bodhi.tar.bz2 on my USB-Stick which is also working well.

As this new U-Boot should be able to boot ext4 rootfs i wanted to switch to an ext4 rootfs on the left sata disk which becomes sda when i remove the usbstick.

Because the harddisk is 3TB i made a clean GPT partition table and created partition 1 with 50GB and formatted it with ext4 and labeled it rootfs.
Then i followed your instructions for installing the rootfs on the stick by using the partition i just created on the disk.
After removing the stick it starts to boot but then gives kernel panic.

Here is the end of the output before it stops

[    1.253586] usb usb2: Product: xHCI Host Controller
[    1.258482] usb usb2: Manufacturer: Linux 4.4.0-kirkwood-tld-1 xhci-hcd
[    1.265138] usb usb2: SerialNumber: 0000:01:00.0
[    1.270348] hub 2-0:1.0: USB hub found
[    1.274179] hub 2-0:1.0: 2 ports detected
[    1.278648] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    1.283951] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 3
[    1.291442] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.299690] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    1.306521] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.313853] usb usb3: Product: xHCI Host Controller
[    1.318755] usb usb3: Manufacturer: Linux 4.4.0-kirkwood-tld-1 xhci-hcd
[    1.325414] usb usb3: SerialNumber: 0000:01:00.0
[    1.330584] hub 3-0:1.0: USB hub found
[    1.334405] hub 3-0:1.0: 2 ports detected
[    1.339173] mousedev: PS/2 mouse device common for all mice
[    1.345090] i2c /dev entries driver
[    1.349188] rtc-pcf8563 0-0051: chip found, driver version 0.4.4
[    1.359673] rtc rtc0: invalid alarm value: 2017-2-29 22:74:0
[    1.365547] rtc-pcf8563 0-0051: rtc core: registered rtc-pcf8563 as rtc0
[    1.374822] hidraw: raw HID events driver (C) Jiri Kosina
[    1.380545] drop_monitor: Initializing network drop monitor service
[    1.387065] NET: Registered protocol family 17
[    1.391744] Key type dns_resolver registered
[    1.396649] registered taskstats version 1
[    1.400798] Loading compiled-in X.509 certificates
[    1.405679] zswap: loaded using pool lzo/zbud
[    1.410881] Key type encrypted registered
[    1.416726] rtc-pcf8563 0-0051: setting system clock to 2017-02-21 09:53:50 UTC (1487670830)
[    1.427005] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    1.434691] Please append a correct "root=" boot option; here are the available partitions:
[    1.443297] 1f00          131072 mtdblock0  (driver?)
[    1.448378] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    1.456681] CPU: 0 PID: 1 Comm: swapper Not tainted 4.4.0-kirkwood-tld-1 #1
[    1.463670] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[    1.469983] [<c0016784>] (unwind_backtrace) from [<c00129f8>] (show_stack+0x10/0x14)
[    1.477761] [<c00129f8>] (show_stack) from [<c00c2200>] (panic+0x80/0x214)
[    1.484669] [<c00c2200>] (panic) from [<c07d9280>] (mount_block_root+0x204/0x24c)
[    1.492182] [<c07d9280>] (mount_block_root) from [<c07d93b4>] (mount_root+0xec/0x118)
[    1.500047] [<c07d93b4>] (mount_root) from [<c07d9504>] (prepare_namespace+0x124/0x184)
[    1.508086] [<c07d9504>] (prepare_namespace) from [<c07d8e9c>] (kernel_init_freeable+0x208/0x258)
[    1.517002] [<c07d8e9c>] (kernel_init_freeable) from [<c05b16b4>] (kernel_init+0x8/0xe4)
[    1.525127] [<c05b16b4>] (kernel_init) from [<c000f090>] (ret_from_fork+0x14/0x24)
[    1.532730] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

Unfortunately i am not able to get all output as i am using my raspi with "sudo screen /dev/ttyAMA0 115200" to get to the console and the first parts are no longer available.

Something i must be doing wrong but couldnt find it yet.

Here is my printenv output:

U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:48:40 -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
NSA325> printenv
ide_rootfstype ext4
arcNumber=4495
baudrate=115200
bootargs=root=/dev/nfs nfsroot=: ip=::::::off
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=10
bootdev=usb ide
device=0:1
devices=usb ide mmc
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-nsa325.dtb
ethact=egiga0
ethaddr=00:00:00:00:00:00
ide_rootfstype=ext4
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_dtb_addr=0x1c00000
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x1100000
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
load_uimage_addr=0x800000
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
partition=nand0,2
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
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
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

Environment size: 2715/131068 bytes

Thanks in advance for any hint on that failure.

sascha

PogoPlug serial troubleshooting (3 replies)

$
0
0
First, big thanks to all of the work and information put out there by the community. I've really enjoyed being able to learn and hack on my PogoPlug with just reading everything out there.

I was recently decided it was time to upgrade my old ArchLinux install to Debian. Based on what I was reading, the easiest path forward from where I was at was to update the uBoot and use the latest kernel and rootfs from here:

http://forum.doozan.com/read.php?2,16044

I prepped a new USB drive and went about updating the uBoot according these instructions: http://forum.doozan.com/read.php?3,16017. Before I started I tried connecting my serial cable, but I realized I had bought the wrong wiring harness. I decided to proceed anyway, and now realize that may have been foolish as the device didn't come back up.

I had purchased the USB to Serial bodhi recommended here: http://www.ebay.com/itm/USB-2-0-to-TTL-UART-6PIN-Module-Serial-Converter-CP2102-STC-PRGMR-Free-cable-/170895253016?pt=LH_DefaultDomain_0&hash=item27ca269e18 and it seems to be recognized by Windows. I'm using Windows 10. I just received a new Soundblaster wiring harness to connect the adapter and flipped the TX\RX to align based on the qnology blog post. When I open up PuTTy and put in the settings, I'm not getting any output when the device boots. I'm rather new to this so there may be something obvious I'm doing wrong.

Are there any recommended ways of troubleshooting that the serial adapter is functioning properly? I open PuTTy and follow the recommend settings then open the serial connection. I then power on the PogoPlug. It appears to be booting at some level as the lights come on and flash and the USB drive even flashes for a bit, but there is no output sent to the screen. Is there a certain order of operations I need to follow? Or did I brick my device to the point the serial console isn't outputing information.

Any help or recommended next steps would be appreciated. Looking to from my mistakes.

-Beavel

how to set env to realize sd card boot for pogo v4? (1 reply)

$
0
0
how to set env to realize sd card boot for pogo v4?

How do I get out of my Pogoplug Mobile rathole? (3 replies)

$
0
0
I began my journey looking for an inexpensive device to use as a DDNS client. I stumbled on Qui's blog and it sounded like an easy way to go. I bought a Pogoplug Mobile (POGO-V4-A1-01) and away I went.

Things did not start well. After finding out the Qui's files were no longer available, I ended up installing Arch on a USB stick from the Arch site and it sort of worked, but the cheap, trade show USB stick I used had issues. After many failed efforts, my Plug no longer boots and I know that my environment variables are majorly hosed.

I currently have access to my Plug through a soldered cable. It has U-Boot v 2016.05-tld-1 for Pogoplug V4 installed, but will not boot from either my new USB stick (SanDisk 16GB) or my SD Card (SanDisk 16 GB), most likely due in a large part to the environment variables. I have a Raspberry Pi running Arch that I can use to play with my USB stick and SD Card.

Ultimately, I still want to use my Plug as a DDNS client and have it booting from the SD Card. I do have to stay with Arch and will go to Debian or whatever I can get working. I think OpenWrt might suit my needs, but I did not find a lot of information beyond another Qui blog on using it on the version of Plug that I have. Rather than try to troubleshoot the mess I created, I think it may be easier to start over - if some kind soul could point me to some instructions to follow.

Does anyone have any suggestions on where to go from here?

Many thanks in advance!

Pogo V3 - No boot, no serial communication (2 replies)

$
0
0
1st time on this board with the following situation here.

It seems that I have a "dead" pogoplug V3 here. Tried to contact this with a JTAG/Serial connection, but no positive results. Reading this SATA Boot I now hope that I can make some progress. Links in that post are no longer working and therefore my SATA is not ready yet.
Planning to prepare a SATA SSD via a Linux computer but I'm lacking expert skills on bit level ;-)

My goal is to get this pogoplug up and running again and later see if I want to do more with it (most likely yes)..

Anyone any idea if my goals is feasible and how this is achieved.... Some help in initial steps is welcome.

Thnx in advance

Thinking about upgrading my Pogo E02 U-Boot. (5 replies)

$
0
0
When I got this Pogoplug, I followed the Qnology blog to modify the U-Boot. Using netconsole I got version of U-Boot that is currently installed:

U-Boot 2011.12 (Feb 20 2012 - 21:21:59)
Pogoplug E02


The Pogoplug works fine and I am running the latest Debian from this site on a hdd. Some of the features of the latest U-Boot like using >2TB drives would be nice. So can I do this procedure directly from Debian?

I did do a check for bad blocks using dmesg scan and got this:

[     5.781933] Scanning device for bad blocks
[     5.790715] Bad eraseblock 43 at 0x000000560000


Will this bad eraseblock be an issue? I don't want to brick it.

Thank you for the help.

how to upgrade ram on marvell a38x nas (2 replies)

$
0
0
I replace original 512mb ram chip with 1gb ram chip,
and read f1001410, f1001504... original ram register value.

disassemble u-boot.bin, search for initializing code.
I can't find any related code to modify.
It's different from old armada xp chip.

anyone could give me a hint to find and modify it?

thanks a lot!


sorry for my poor english.

Pogo Oxnas V3 with 256MB RAM modding (15 replies)

$
0
0
I have enlarged mem to 256MB, the original u
boot only recognize 128M does your uboot
support all 256M?

NSA310 Installation Problems (4 replies)

$
0
0
Greetings,

I am trying to get Debian on a Zyxel NSA310. I have flashed u-boot to 2016.05 but haven't had success in getting this to boot off of a USB flash drive. Below is my POST and printenv.

Any help is appreciated!


U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:59:20 -0700)
ZyXEL NSA310 1-Bay Power Media Server


SoC:   Kirkwood 88F6281_A1
DRAM:  256 MiB
WARNING: Caches not enabled
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
PHY reset timed out
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... 1 Storage Device(s) found

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

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            2040832         1bfa0115-01     83
loading envs from usb 0 ...
** File not found /boot/uEnv.txt **
3302440 bytes read in 623 ms (5.1 MiB/s)
7414190 bytes read in 1032 ms (6.9 MiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.10.0-kirkwood-tld-1
   Created:      2017-03-09   1:48:04 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3302376 Bytes = 3.1 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.10.0-kirkwood-tld-1
   Created:      2017-03-09   1:48:36 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7414126 Bytes = 7.1 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

Error: unrecognized/unsupported machine ID (r1 = 0x00000fb6).

Available machine support:

ID (hex)        NAME
ffffffff        Generic DT based system
ffffffff        Marvell Kirkwood (Flattened Device Tree)

Please check your kernel config and/or bootloader.


NSA310> printenv
arcNumber=4022
baudrate=115200
bootcmd=run bootcmd_uenv; run bootcmd_usb; usb stop; run bootcmd_sata; reset
bootcmd_sata=run sata_init; run set_bootargs_sata; run sata_boot
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootcmd_usb=run usb_init; run set_bootargs_usb; run usb_boot
bootdelay=10
console=ttyS0,115200
device=0:1
ethact=egiga0
ethaddr=b6:d0:5e:0f:a1:17
led_error=orange blinking
led_exit=green off
led_init=green blinking
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:0x100000(uboot),0x80000(stock_uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2)
partition=nand0,2
rootdelay=10
rootfstype=ext2
sata_boot=mw 0x800000 0 1; run sata_load_uimage; if run sata_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
sata_init=ide reset
sata_load_uimage=ext2load ide $device 0x800000 /boot/uImage
sata_load_uinitrd=ext2load ide $device 0x1100000 /boot/uInitrd
sata_root=/dev/sda1
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=usb_rootfs rootdelay=10 $mtdparts $custom_params
set_bootargs_sata=setenv bootargs console=$console root=$sata_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts
set_bootargs_usb=setenv bootargs console=$console root=$usb_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts
stderr=serial
stdin=serial
stdout=serial
uenv_import=echo importing envs ...; env import -t 0x810000
uenv_load=ide reset; setenv uenv_loaded 0; for devtype in ide; do for disknum in 0; do run uenv_read_disk; done; done
uenv_loaded=0
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 0x810000 /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if $devtype part $disknum; then run uenv_read; fi
usb_boot=mw 0x800000 0 1; run usb_load_uimage; if run usb_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
usb_init=usb start
usb_load_uimage=ext2load usb $device 0x800000 /boot/uImage
usb_load_uinitrd=ext2load usb $device 0x1100000 /boot/uInitrd
usb_root=/dev/sda1

Tutorial of pure sata boot pogoplug pro (1 reply)

$
0
0
I summed up the old post about sata boot for pogoplug pro and fixed some broken links

Just for reference to others, I made a very detailed summary.

Please revise my comment are there right in technical aspect. (?? if I have doubt - I will revise based on your comment)

Synopsys:
My device Pogo Plug P24 - V3 (nonpci) - oxnas 820
I have serial connection,

I Screw up UBoot in NAND - Therefore no boot from USB,
and NOTHING appears on Serial console!!!

Only way to boot is well prepared SATA because oxnas tries to boot Uboot on SATA then Uboot on NAND then USB. (?? is that right??)

Steps

1. Get a SATA HDD. You have to delete all partition from it. Sorry :(
2. Put it to USB HDD frame. Attache to PC. Umount all partition if automount happened.
3. remove partitions, and create new.

fdisk /dev/sdb
o - create a new empty DOS partition table
n - Create part 1 (start with 2048 ; size: +2G )
w - write
q - exit



4. mkext4 fs.

mkfs.ext4 /dev/sdb1




( If you have problems with "mkfs.ext4 /dev/sdb is not a block special device."
Detach USB _and_ reboot your PC. and attache again - will solve the problem...)

5 Labell it:

tune2fs -L "rootfs" /dev/sdb1




6.Mount rootfs

mount /dev/sdb1 /media/rootfs




7. Prepare Sata uboot file on PC :
a.) Extract the content Shv made ox820-sata-uboot.tar.gz to your PC

cd /yourpath
tar -xjf ox820-sata-uboot.tar.gz


(It is only a boot directory on your PC)
Navigate to /yourpath/boot/dts directory and rename this files:
-it is only needed in case noPCI devices like P24.

mv ox820-pogoplug-pro.dtb ox820-pogoplug-pro.dtb.ori
cp ox820-pogoplug-classic.dtb ox820-pogoplug-pro.dtb




b.) and copy modified /yourpath/boot directory to the rootfs partition.

c.)Modify 2 lines in disk create script on your PC:

c1.) disk=/dev/sdb
c2.) workarea="/yourpath"
d.) save changes

8. Now you have to run Sata uboot SCRIPT on your PC.
It will write U-Boot SPL to Sata disk on the beginning (in the first 2048 sector) on the disk.

8a.) Umount - Just to be safe side: Not write to disk which is mounted... - skip if brave.

umount rootfs



8b.) Run Sata uboot SCRIPT

./disk_create_shv




Prepare Debian Rootfs files.
9.) Mount rootfs again:

mount /dev/sdb1 /media/rootfs



10.) Extract debian files to your PC /yourpath directory. Debian-3.17.0-oxnas-tld-1-rootfs-bodhi.tar.bz2

tar -xjf Debian-3.17.0-oxnas-tld-1-rootfs-bodhi.tar.bz2




11. Copy all directory from PC to your rootfs partition BUT /boot . (It means do not overwrite the existing /boot on rootfs!!)

detach from PC and attache to Pogo.
Attache serial TTL connector and see output. Trust Bodhi, Picocom is better than GNU Screen. I learned :)

picocom -b 115200 /dev/ttyUSB0




Power on your POGO.

Debian will not boot because Uboot env not well set for this configuration. try it but for sure it will freeze. :) then power on - and - of again.

Now Stop the counter by press a key:

Hit any key to stop autoboot: 3


Now set the environment to this setup:


Looks like your V3 is trying to boot from ide. If what you posted is your complete printenv, you are missing some stuff.

Here is my ide boot setenv's (partial) for a frame of reference:

setenv uinitrd_addr '0x60e00000'
setenv uimage_addr '0x60500000'
setenv dtb_addr '0x62c00000'
setenv ide_set_bootargs 'setenv bootargs console=ttyS0,115200 root=/dev/sda1 rootdelay=10'
setenv dt_bootm 'bootm $uimage_addr $uinitrd_addr $dtb_addr'
setenv dt_load_dtb 'ext2load ide 0:1 $dtb_addr /boot/dts/ox820-pogoplug-pro.dtb'
setenv dt_load_initrd 'ext2load ide 0:1 $uinitrd_addr /boot/uInitrd'
setenv dt_load_uimage 'ext2load ide 0:1 $uimage_addr /boot/uImage'
setenv dt_ide_boot 'run dt_load_uimage; run dt_load_initrd; run dt_load_dtb; run dt_bootm'
setenv dt_ide_bootcmd 'run ide_set_bootargs; run dt_ide_boot'
setenv dt_bootcmd_ide 'ide reset; run dt_ide_bootcmd; reset'
setenv bootcmd 'run dt_bootcmd_ide'


And for usb booting it's this (complete):

setenv autoload no
setenv baudrate 115200
setenv bootargs console=ttyS0,115200n8
setenv bootdelay 10
setenv console console=ttyS0,115200n8
setenv ethact mii0
setenv ethaddr (removed for security)
setenv ipaddr 192.168.1.100
setenv mtdids nand0=41000000.nand
setenv mtdparts mtdparts=41000000.nand:14m(boot),-(data)
setenv serverip 192.168.1.110
setenv stderr serial
setenv stdin serial
setenv stdout serial
setenv usb_device 0:1
setenv if_netconsole ping $serverip
setenv preboot_nc run if_netconsole start_netconsole
setenv start_netconsole setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version
setenv usb_set_bootargs setenv bootargs console=ttyS0,115200 root=/dev/sda1 rootdelay=10
setenv uinitrd_addr 0x60e00000
setenv uimage_addr 0x60500000
setenv dtb_addr 0x62c00000
setenv dt_load_dtb ext2load usb 0:1 $dtb_addr /boot/dts/ox820-pogoplug-pro.dtb
setenv dt_load_initrd ext2load usb 0:1 $uinitrd_addr /boot/uInitrd
setenv dt_load_uimage ext2load usb 0:1 $uimage_addr /boot/uImage
setenv dt_bootm bootm $uimage_addr $uinitrd_addr $dtb_addr
setenv dt_usb_boot run dt_load_uimage; run dt_load_initrd; run dt_load_dtb; run dt_bootm
setenv dt_usb_bootcmd run usb_set_bootargs; run dt_usb_boot
setenv dt_bootcmd_usb usb start; run dt_usb_bootcmd; usb stop; reset
setenv bootcmd run dt_bootcmd_usb



Do a printenv and try to determine what you are missing based on what I have posted. Note that my boot env's are pretty simple compared to some of the really complicated netconsole / tftp ones I have seen on the forum so you might want to take a look at some of those if you wanna get funky.





Boot success!!


I hope -you Masters (Bodhi, SHV, Morph) - find my guide is useful. :) and it is a little benefit give back to community. Respect.


To be continued
Viewing all 903 articles
Browse latest View live