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

PogoPlug E02 Pink Factory Firmware Link (1 reply)


POGO E02 NAND reflash over serial? (12 replies)

$
0
0
First of all, I'm not native english user and I'm sorry for my poor english.

I used POGO E02(black) rescue system V2 and Debian in stick usb.
But power outrage cause boot failure, and i decided reinstall system.

After some idiot things happen, my POGO E02 bricked.


I have serial connection. No ssh. <- that's the ploblem.
The last thing I do is recover nand to docstar original.
(because my uboot env is messed, and I can't boot)
( https://archlinuxarm.org/forum/viewtopic.php?p=2713#p2713 )

Then booting is OK. But ssh is not active.
For ssh enalbe, I visit pogoplug.com, but they can't recognize my pogo.
IMAO, mtd0 is original, but other NANDs are not original so pogoplug services do not work.

I wonder the reason that I can't access ssh
1. my pogo's ssh is blocked or
2. just because no OS loaded


And I need the way that back my past setting.
For this, anything doesn't matter.
1. Can I find img file to reflash NANDs?
2. Update uboot first?
3. And what??

I googled 'pogo e02 serial ssh enable' and some other topic, and I don't know how I do next.



Here's my boot log

U-Boot 1.1.4 (Jul 16 2009 - 21:02:16) Cloud Engines (3.4.16)

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 00690D60

Soc: 88F6281 A0 (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
Flash:  0 kB
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:128 MB

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

Streaming disabled
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
Net:   egiga0 [PRIME], egiga1
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


And printenv

baudrate=115200
loads_echo=0
rootpath=/mnt/ARM_FS/
run_diag=yes
CASset=min
MALLOC_len=1
ethprime=egiga0
ceboardver=REDSTONE:0.1
ethmtu=1500
usb0Mode=host
nandEcc=1bit
ethact=egiga0
ipaddr=192.168.0.6
netmask=255.255.255.0
serverip=192.168.0.8
ethaddr=***************
cesvcid=******************************
console=console=ttyS0,115200
bootargs_root=root=/dev/mtdblock2 ro
bootcmd=nand read.e 0x800000 0x100000 0x300000; setenv bootargs $(console)
bootcmd_stock=setenv autoload n
bootargs_stock="root=ubi0:rootfs ubi.mtd=2,512 rootfstype=ubifs console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 mem=128M"
poweroutage=yes
bootcmd_stock_fw="run set_bootargs_stock
boot=bootm 60500000
boot_nand="run load_nand boot || run load_nand2 boot"
kernflmode=s
load_nand2="nboot 60500000 0 800000"
load_nand="nboot 60500000 0 200000"
set_bootargs_stock="setenv bootargs $bootargs_stock"
mainlinelinux=no
stdin=serial
stdout=serial
stderr=serial
mainlineLinux=no
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
netbsd_en=no
vxworks_en=no
bootdelay=3
disaMvPnp=no
bootargs=console=ttyS0,115200

Environment size: 1198/131068 bytes

ip and id is inputed properly.

After boot CE>> prompt is in the screen, no linux command, just like uboot prompt.

CE>> help
?       - alias for 'help'
base    - print or set address offset
boot    - boot default, i.e., run 'bootcmd'
bootd   - boot default, i.e., run 'bootcmd'
bootext2    dev:boot_part1,boot_part2 addr boot_image linux_dev_name
bootm   - boot application image from memory
bootp   - boot image via network using BootP/TFTP protocol
bubt    - Burn an image on the Boot Nand Flash.
chpart  - change active partition
cmp     - memory compare
cmpm    - Compare Memory
cp      - memory copy
cpumap - Display CPU memory mapping settings.
crc32   - checksum calculation
date    - get/set/reset date & time
dclk    - Display the MV device CLKs.
dhcp    - invoke DHCP client to obtain IP/boot params
diskboot- boot from IDE device
echo    - echo args to console
eeprom  - EEPROM sub-system
erase   - erase FLASH memory
ext2load- load binary file from a Ext2 filesystem
ext2ls  - list files in a directory (default /)
fi      - Find value in the memory.
flinfo  - print FLASH memory information
fsinfo  - print information about filesystems
fsload  - load binary file from a filesystem image
g       - start application at cached address 'addr'(default addr 0x40000)
go      - start application at address 'addr'
help    - print online help
icrc32  - checksum calculation
ide     - IDE sub-system
iloop   - infinite loop on address range
imd     - i2c memory display
imm[.b, .s, .w, .l]     - i2c memory modify (auto-incrementing)
imw     - memory write (fill)
inm     - memory modify (constant address)
iprobe  - probe to discover valid I2C chip addresses
ir      - reading and changing MV internal register values.
loop    - infinite loop on address range
ls      - list files in a directory (default /)
map     - Diasplay address decode windows
md      - memory display
me      - PCI master enable
mm      - memory modify (auto-incrementing)
mp      - map PCI BAR
mtdparts- define flash/nand partitions
mtest   - simple RAM test
mv_diag - perform board diagnostics
mw      - memory write (fill)
nand                   - NAND sub-system
nboot   - boot from NAND device
nbubt   - Burn a boot loader image on the Boot Nand Flash.
nm      - memory modify (constant address)
pci     - list and access PCI Configuration Space
phyRead - Read PCI-E Phy register
pciePhyWrite    - Write PCI-E Phy register
phyRead - Read Phy register
phyWrite        - Write Phy register
ping    - send ICMP ECHO_REQUEST to network host
printenv- print environment variables
protect - enable or disable FLASH write protection
rarpboot- boot image via network using RARP/TFTP protocol
reset   - Perform RESET of the CPU
resetenv        - Return all environment variable to default.
run     - run commands in an environment variable
saveenv - save environment variables to persistent storage
se      - PCI Slave enable
setenv  - set environment variables
sflash  - read, write or erase the external SPI Flash.
sg      - scanning the PHYs status
sp      - Scan PCI bus.
tftpboot- boot image via network using TFTP protocol
version - print monitor version
CE>>

Is uBoot OS specific? (108 replies)

$
0
0
I don'know anything about uBoot, and I'm not sure if my understanding of it as a Universal boot loader for embedded ARM systems is correct. If that is the case, then presumably the same uBoot can load any OS which works on the platform, not just Debian, but also ArchLinux and even (God forbid) Windows.

Is my understanding correct?

Pogo 02 not booting correctly (7 replies)

$
0
0
Hi,

I wanted to update to the latest u-boot via http://forum.doozan.com/read.php?3,12381
but it seems I messed up in the B. Flashing default u-boot envs image part...

The serial console states:
U-Boot 2016.05-tld-1 ...
...
Hit any key to stop autoboot: Timer from 10 to 0

When I don't abort it the last lines in the console are
loading uImage ...
** Bad device usb 0 **
loading uInitrd ...
** Bad device usb 0 **
loading DTB /boot/dts/kirkwood-pogo_e02.dtb ...
** Bad device usb 0 **
Wrong Image Format for bootm command
ERROR: can't get kernel image!
PogoE02>

With no stick attached.

When I abort the autoboot I get directly
to
PogoE02>

How do I get into recovery mode, fix what's wrong and install
debian from scratch now?

The rescue system should be this: http://forum.doozan.com/read.php?4,3896

[Solved] EHCI timed out on TD - token=XXXX (12 replies)

$
0
0
Many people have run into the problem on a Pogoplug with a USB disk that refuses to boot. If you can see the U-Boot console, either with a serial cable or netconsole, the error message is "EHCI timed out on TD - token=0x{something}" repeated over and over again. A related problem is a drive which randomly fails to be detected by uboot, but without any error message.

Frustratingly, once the Pogoplug is running Linux, the same disk works perfectly ok, it is only U-boot that has problems with it. Ugh

I have found the problem and fixed it.

It has sometimes been suggested that two environment variables, "usb_pgood_delay" and "usb_ready_retry" be set. These can be removed. They had nothing to do with the problem and did nothing to fix or resolve it.

Pending the time until the fix gets pulled in to the "official" U-Boot code, I have created u-boot firmware and made it available for download.

This is a fixed version of the bodhi "U-Boot 2016.05 (May 20 2017 - 12:42:17 -0500)"
filename: "uboot.2016.05-tld-1.pogo_e02.mtd0.kwb"

The versions I created are for Pogoplug_E02 (pink pogoplug) and Pogoplug_V4. I can build versions for other pogoplugs, just ask.

Link to the folder containing the files:
https://www.dropbox.com/sh/nwjwxzdy0ifd1aq/AADcduZlnF9psWjRBpMB-cMja?dl=0

Link to the patch file. (It is also in the above folder.)
https://www.dropbox.com/s/nrkrd1no63viuu8/uboot-bodhi-2016.05-timeoutTD.patch?dl=0

For your convenience, there is also a script to install the firmware.
Usage: install-new-uboot.sh {filename.kwb}

tftpboot (2 replies)

$
0
0
How do I go about initiating a boot via tftp from a GoFlexHome dock?

Debian root password (2 replies)

$
0
0
I can't remember if I changed the root password for Debian on my GoFlexHome dock... In any case I can't login. Is there a root password I can try or can how can I reset it?

"Hello World" Demo (3 replies)

$
0
0
According to https://www.denx.de/wiki/view/DULG/UBootStandalone

there is a "Hello World" Demo which can be run like this:-

=> loads
## Ready for S-Record download ...
~>examples/hello_world.srec
1 2 3 4 5 6 7 8 9 10 11 ...
[file transfer complete]
[connected]
## Start Addr = 0x00040000

I'm trying to work through some of the examples at https://www.denx.de/wiki/view/DULG/UBootCommandLineInterface just to get some idea about what u-Boot can actually do, but the above example didn't work for me. Did I do something wrong?

Oxnas Box bricked? (1 reply)

$
0
0
Hello,

my STG212-Box became rather hot with 850Mhz SPL-Uboot.
So i tried a "downgrade" to 700Mhz , flashing uboot.spl.2013.10.ox820.mtd0.img.
After a reboot the system shows the following output:

U-Boot SPL 2013.10 (Apr 27 2014 - 19:08:27)
  Boot device: NAND
Attempting to set PLLA to 800 MHz ...
  plla_ctrl0 : 0000030a
  plla_ctrl1 : 00400000
  plla_ctrl2 : 007f0068
  plla_ctrl3 : 00000193

PLLA Set

Then nothing happens.

The first question is: has the spl stage finished succesfully - or is this a problem of the SPL stage itself?

BR
dietgert

Booting arch (3 replies)

$
0
0
Using the U-boot posted here is it possible to boot another linux distro (e.g. Arch) by having a single partition labeled rootfs?

ls, cat, vi (7 replies)

$
0
0
I'm trying to get a better idea about the way uBoot works and have yet to figure out how the filesystem works. Hopefully some can give me some guidance.... For instance, how can I see what devices or files are available and how to view them. Are there uBoot versions of Unix commands like ls,cat, vi, lsblk?

ext4 booting problems Debian Stretch ( metadata_csum ) (1 reply)

$
0
0
I just setup a GFN boot onto rootfs RAID on Debian Stretch (which requires a seperate /boot partition for initramfs, kernel and device tree nonsense). uBoot reported that it couldn't find the .dtb file - /boot/dts/kirkwood-goflexhome.dtb, although it found and loaded kernel and initramfs.

I checked and double checked everything, tried recopying the dts files from my other machine. uBoot wasn't going to boot, nothing worked.

Also, on my Jessie laptop, fsck.ext4 reported that my fsck version is too old, mentioning "metadata_csum" (for the ext4 partition I was trying to boot from)

My solution - reformat the partition on a Jessie machine (ext4) and the problem went away.

From what I can gather, ext4 has been changed in Stretch ("Ext4 with new features"), and I think this is why uBoot wouldn't boot from my ext4 /boot partition.

I found a workaround here - https://openvz.org/Installation_on_Debian_9#Ext4 ... although I haven't personally tested anything they are suggesting.

Also potentially worrying is the possibility that ext4 backward compatibility may be broken Stretch -> previous Debian releases, and presumably other linux distros ...

ZyXEL NSA325 booting problem with 2016.05 U-Boot Kirkwood (9 replies)

$
0
0
Dear bodhi,
can you take a minute and look at my printenv. Since few days I am trying to boot my NSA325 (Debian 4.4.0 (Jessie) , Kernel 4.12.1 , latest u-boot) from hdd-sata instead USB but It didnt work. Booting from usb works fine. My test HDD is 160GB ext3 single partition labeld rootfs with working files from my usb-stick. I added also devices=mmc usb ide to uEnv.txt but without success.

Here my envirements:

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
Using egiga0 device

ARP Retry count exceeded; starting again
ping failed; host 192.168.178.41 is not alive
Using egiga0 device

ARP Retry count exceeded; starting again
ping failed; host 192.168.178.41 is not alive
Using egiga0 device

ARP Retry count exceeded; starting again
ping failed; host 192.168.178.41 is not alive
Using egiga0 device

ARP Retry count exceeded; starting again
ping failed; host 192.168.178.41 is not alive
Using egiga0 device

ARP Retry count exceeded; starting again
ping failed; host 192.168.178.41 is not alive
Hit any key to stop autoboot:  0
NSA325> printenv
arcNumber=4495
bootargs=console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 orion_nand
bootcmd=run bootcmd_uenv; sleep 3; run scan_disk; run set_bootargs; run bootcmd_exec; run bootcmd_pogo; reset
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi; sleep 3
bootdelay=10
device=ide
devices=mmc usb ide
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-nsa325.dtb
ethact=egiga0
ethaddr=52:3b:20:9c:11:51
fileaddr=810000
filesize=4d
if_netconsole=ping $serverip
init=/bin/systemd
init_ide=ide reset
init_mmc=mmc rescan
init_usb=usb start
ipaddr=192.168.178.63
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=orion_nand
nc_ready=0
partition=nand0,2
preboot=run preboot_nc
preboot_nc=setenv nc_ready 0; for pingstat in 1 2 3 4 5; do; sleep 1; if run if_netconsole; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then run start_netconsole; fi
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
scan_ide=ide reset
scan_mmc=mmc rescan
scan_usb=usb start
serverip=192.168.178.41
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_loaded=1
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: 3266/131068 bytes

My logs:

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
Using egiga0 device

ARP Retry count exceeded; starting again
ping failed; host 192.168.178.41 is not alive
Using egiga0 device

ARP Retry count exceeded; starting again
ping failed; host 192.168.178.41 is not alive
Using egiga0 device

ARP Retry count exceeded; starting again
ping failed; host 192.168.178.41 is not alive
Using egiga0 device

ARP Retry count exceeded; starting again
ping failed; host 192.168.178.41 is not alive
Using egiga0 device

ARP Retry count exceeded; starting again
ping failed; host 192.168.178.41 is not alive
Hit any key to stop autoboot:  0
Unknown command 'mmc' - try 'help'
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

Reset IDE: Bus 0: OK Bus 1: not available
  Device 0: Model: Hitachi HTS541616J9SA00  Firm: SB4OC70P Ser#: SB2441SJCZ941E
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 152627.8 MB = 149.0 GB (312581808 x 512)
Unknown command 'mmc' - try 'help'

no USB devices available

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

Part    Start Sector    Num Sectors     UUID            Type
  1     256             512000          17ae7992-01     83 Boot
loading envs from ide 0 ...
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
running scan_disk ...
Scan device mmc
Unknown command 'mmc' - try 'help'
device mmc 0:1
** Bad device mmc 0 **
device mmc 1:1
** Bad device mmc 1 **
device mmc 2:1
** Bad device mmc 2 **
device mmc 3:1
** Bad device mmc 3 **
Scan device usb
device usb 0:1
** Bad device usb 0 **
device usb 1:1
** Bad device usb 1 **
device usb 2:1
** Bad device usb 2 **
device usb 3:1
** Bad device usb 3 **
Scan device ide

Reset IDE: Bus 0: OK Bus 1: not available
  Device 0: Model: Hitachi HTS541616J9SA00  Firm: SB4OC70P Ser#: SB2441SJCZ941E
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 152627.8 MB = 149.0 GB (312581808 x 512)
device ide 0:1
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
device ide 1:1
** Bad device ide 1 **
device ide 2:1
** Bad device ide 2 **
device ide 3:1
** Bad device ide 3 **
loading uImage ...
** Bad device usb 0x800000 **
loading uInitrd ...
** Bad device usb 0x1100000 **
loading DTB /boot/dts/kirkwood-nsa325.dtb ...
** Bad device usb 0x1c00000 **
Wrong Image Format for bootm command
Error occured, error code = 112
ERROR: can't get kernel image!
## Error: "bootcmd_pogo" not defined
resetting ...

Thank you

Unbricking Pogoplug E02 using Jtag. Help with pinout? (1 reply)

$
0
0
In a desperate attempt to revert to original factory Pogoplug firmware, I flashed the "original" mtd0, mtd1, etc files provided from a user on this forum. (Newbie maneuver, I know.) I don't recall which thread the files were from, but that no longer matters.

Consequently, the device has become a paperweight. The only thing that lights up on the device is the Ethernet port. Otherwise, there is no activity light on the main LED nor when a USB drive is plugged in. I've also attempted to establish a serial connection with the device by following instructions from Qui's techNOLOGY Blog. No dice; nothing pops up on my Putty screen. (Yes, my USB to TTL connector works just fine as I've just recently successfully established a connection with a Pogoplug Mobile V4).

As a last resort, before I throw the darn thing in the recycling bin, has anyone tried using an Altera JTag device to successfully unbrick an E02? The device is very affordable and can be had for around $3 USD. Looking at the pinouts from both devices, most pins do seem to match up between the E02 and Altera Jtag device with the exception of the RES pin.

So, has anyone successfully restored a Pogoplug using an Altera JTag USB blaster? I've also read up on joerg_999's Jtag thread, but cannot seem to find an answer to my question. Does anyone have a clue on where I'd connect the "RES" pin from the Pogoplug to the Altera? I've provided the pinout from the Altera for reference, which is attached to this post.

Pogoplug --> Altera Jtag USB Blaster pinout:

(1) GND --> GND
(2) TDI --> TDI
(3) SRST (not used, according to joerg_999)
(4) TDO --> TDO
(5) CLK --> TCK
(6) TMS --> TMS
(7) RES --> ???
(8) 3.3V (not used, according to joerg_999)

Thanks!

uboot doesn't pass bootargs to kernel (7 replies)

$
0
0
Hi, I'm fighting half of the day and slowly giving up.
Nsa320 with latest debian and kernel on usb stick and latest uboot with default settings (env default -a). When booting I get an error:

[    7.268011] NET: Registered protocol family 17
[    7.272551] Key type dns_resolver registered
[    7.276898] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl F300)
[    7.284314] registered taskstats version 1
[    7.288536] ata1.00: ATA-8: ST3500312CS, SC13, max UDMA/133
[    7.288543] ata1.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    7.301440] Loading compiled-in X.509 certificates
[    7.306346] ata1.00: configured for UDMA/133
[    7.310872] zswap: loaded using pool lzo/zbud
[    7.316568] scsi 0:0:0:0: Direct-Access     ATA      ST3500312CS      SC13 PQ: 0 ANSI: 5
[    7.326019] sd 0:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/466 GiB)
[    7.334578] sd 0:0:0:0: [sda] Write Protect is off
[    7.340585] Key type big_key registered
[    7.345054] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    7.355665] Key type encrypted registered
[    7.361099] rtc-mv f1010300.rtc: setting system clock to 2013-01-02 01:55:49 UTC (1357091749)
[    7.424427]  sda: sda1
[    7.428526] sd 0:0:0:0: [sda] Attached SCSI disk
[    7.566164] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    7.757882] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[    7.764632] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    7.771841] usb 1-1: Product: USB2.0 Hub
[    7.776681] hub 1-1:1.0: USB hub found
[    7.780756] hub 1-1:1.0: 4 ports detected
[    7.836182] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    7.876216] ata2.00: ATA-8: ST31500341AS, CC1H, max UDMA/133
[    7.881904] ata2.00: 2930277168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    7.946219] ata2.00: configured for UDMA/133
[    7.961060] scsi 1:0:0:0: Direct-Access     ATA      ST31500341AS     CC1H PQ: 0 ANSI: 5
[    7.970309] sd 1:0:0:0: [sdb] 2930277168 512-byte logical blocks: (1.50 TB/1.36 TiB)
[    7.978536] sd 1:0:0:0: [sdb] Write Protect is off
[    7.983473] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    8.022020]  sdb: sdb1
[    8.025810] sd 1:0:0:0: [sdb] Attached SCSI disk
[    8.030712] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    8.038332] Please append a correct "root=" boot option; here are the available partitions:
[    8.046844] 1f00            1024 mtdblock0
[    8.046850]  (driver?)
[    8.053454] 1f01             512 mtdblock1
[    8.053459]  (driver?)
[    8.060073] 1f02             512 mtdblock2
[    8.060077]  (driver?)
[    8.066683] 1f03             512 mtdblock3
[    8.066687]  (driver?)
[    8.073255] 1f04           10240 mtdblock4
[    8.073258]  (driver?)
[    8.079848] 1f05           10240 mtdblock5
[    8.079852]  (driver?)
[    8.086450] 1f06           48896 mtdblock6
[    8.086454]  (driver?)
[    8.093022] 1f07           10240 mtdblock7
[    8.093026]  (driver?)
[    8.099608] 1f08           48896 mtdblock8
[    8.099612]  (driver?)
[    8.106201] 0800       488386584 sda
[    8.106206]  driver: sd
[    8.112348]   0801       488385560 sda1 00006160-01
[    8.112351]
[    8.117290] usb 1-1.4: new high-speed USB device number 3 using orion-ehci
[    8.125797] 0810      1465138584 sdb
[    8.125803]  driver: sd
[    8.131976]   0811      1465137560 sdb1 0009472b-01
[    8.131980]
[    8.138413] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    8.146712] CPU: 0 PID: 1 Comm: swapper Not tainted 4.12.1-kirkwood-tld-1 #1
[    8.153788] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[    8.160108] [<c010ea54>] (unwind_backtrace) from [<c010ab48>] (show_stack+0x10/0x14)
[    8.167897] [<c010ab48>] (show_stack) from [<c01dba9c>] (panic+0xb0/0x250)
[    8.174816] [<c01dba9c>] (panic) from [<c0c01274>] (mount_block_root+0x204/0x27c)
[    8.182337] [<c0c01274>] (mount_block_root) from [<c0c013d8>] (mount_root+0xec/0x118)
[    8.190201] [<c0c013d8>] (mount_root) from [<c0c01528>] (prepare_namespace+0x124/0x184)
[    8.198242] [<c0c01528>] (prepare_namespace) from [<c0c00e90>] (kernel_init_freeable+0x210/0x260)
[    8.207160] [<c0c00e90>] (kernel_init_freeable) from [<c0833200>] (kernel_init+0x8/0x10c)
[    8.215380] [<c0833200>] (kernel_init) from [<c01070f0>] (ret_from_fork+0x14/0x24)
[    8.222995] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    8.347378] usb 1-1.4: New USB device found, idVendor=8644, idProduct=8005
[    8.354305] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    8.376154] usb 1-1.4: Product: USB Flash Disk
[    8.382022] usb 1-1.4: Manufacturer: General
[    8.406153] usb 1-1.4: SerialNumber: 2E515D00000011D9
[    8.412091] usb-storage 1-1.4:1.0: USB Mass Storage device detected
[    8.436180] scsi host2: usb-storage 1-1.4:1.0
[    9.457339] scsi 2:0:0:0: Direct-Access     General  USB Flash Disk   1.00 PQ: 0 ANSI: 2
[    9.477695] sd 2:0:0:0: [sdc] 31299584 512-byte logical blocks: (16.0 GB/14.9 GiB)
[    9.496191] sd 2:0:0:0: [sdc] Write Protect is off
[    9.501031] sd 2:0:0:0: [sdc] Mode Sense: 03 00 00 00
[    9.516534] sd 2:0:0:0: [sdc] No Caching mode page found
[    9.521875] sd 2:0:0:0: [sdc] Assuming drive cache: write through
[    9.550659]  sdc: sdc1
[    9.556413] sd 2:0:0:0: [sdc] Attached SCSI removable disk
[  102.316188] random: crng init done


[    8.029417] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    8.037037] Please append a correct "root=" boot option; here are the available partitions:
I understand it so that the kernel doesn't get the root parameter in commandline
thats my env
NSA320> printenv
arcNumber=3956
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
machid=118f
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=2
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_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=usb start; setenv uenv_loaded 0; for devtype in usb; 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 0x810000 /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if $devtype part $disknum; then run uenv_read; fi
usb_boot=run usb_load_dtb; run usb_load_uimage; if run usb_load_uinitrd; then bootm 0x800000 0x1100000 0x1c00000; else bootm 0x800000 - 0x1c00000; fi
usb_init=usb start
usb_load_dtb=ext2load usb $device 0x1c00000 /boot/dts/kirkwood-nsa320.dtb
usb_load_uimage=ext2load usb $device 0x800000 /boot/uImage
usb_load_uinitrd=ext2load usb $device 0x1100000 /boot/uInitrd
usb_root=LABEL=USBROOT

Environment size: 2188/131068 bytes
I edited it a bit so it shows the bootargs before booting the kernel and it seems ok.

NSA320> setenv bootcmd_usb 'run usb_init; run set_bootargs_usb; printenv bootargs;  run usb_boot'
NSA320> saveenv
Saving Environment to NAND...
Erasing NAND...
Erasing at 0xc0000 -- 100% complete.
Writing to NAND... OK
NSA320> boot
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     32              31299552        583ec236-01     83
loading envs from usb 0 ...
73 bytes read in 284 ms (0 Bytes/s)
importing envs ...
## Warning: Input data exceeds 1048576 bytes - truncated
## Info: input data size = 1048578 = 0x100002
bootargs=console=ttyS0,115200 root=LABEL=USBROOT rootdelay=2 rootfstype=ext2 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)
13691 bytes read in 936 ms (13.7 KiB/s)
3835283 bytes read in 430 ms (8.5 MiB/s)
7245696 bytes read in 558 ms (12.4 MiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.12.1-kirkwood-tld-1
   Created:      2017-08-14   1:30:51 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3835219 Bytes = 3.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.12.1-kirkwood-tld-1
....................
and still the same error:
I tried it on ext4 and ext2, usb and sd card, different root parameters root=LABEL=USBROOT , root=LABEL=rootfs (changed label of course), root=/dev/sdb1, sdc1, updated uboof from 15.10 to 16.05, downgraded kernel to 4.10.9, created /boot/uEnv.txt with bootargs and manually set bootargs from commandline before run bootcmd_usb command and always the same error.
One thing which I see now is

73 bytes read in 284 ms (0 Bytes/s)
importing envs ...
## Warning: Input data exceeds 1048576 bytes - truncated
## Info: input data size = 1048578 = 0x100002
but I don't have any Idea where it's from

Trying to restore to Original Firmware Pogoplug E02 (1 reply)

$
0
0
Some years ago I replaced the original firmware of 1 of the pogoplugs. I used the usb stick for something else and that resulted in a non booting Pogoplug.

During the years this kept bugging me, so I'm now putting some effort in restoring it to the unboxing condition.

Many, many hours have been burned to get to the following result below (which was interesting to achieve).

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

Reset IDE: Bus 0: OK
Device 0: Model: STM3250318AS Firm: CC38 Ser#: 9VY5LZFJ
Type: Hard Disk
Supports 48-bit addressing
Capacity: 238475.1 MB = 232.8 GB (488397168 x 512)
3676848 bytes read in 606 ms (5.8 MiB/s)
2103272 bytes read in 464 ms (4.3 MiB/s)
7029 bytes read in 61 ms (112.3 KiB/s)
## Booting kernel from Legacy Image at 60500000 ...
Image Name: Linux-3.12.13-oxnas-tld-5
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3676784 Bytes = 3.5 MiB
Load Address: 60008000
Entry Point: 60008000
Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 60e00000 ...
Image Name: initramfs-3.12.13-oxnas-tld-5
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 2103208 Bytes = 2 MiB
Load Address: 60000000
Entry Point: 60000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 62c00000
Booting using the fdt blob at 0x62c00000
Loading Kernel Image ... OK
Loading Ramdisk to 67c26000, end 67e277a8 ... OK
Loading Device Tree to 67c21000, end 67c25b74 ... OK

Led: GREEN

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 3.12.13-oxnas-tld-5 (root@tldDebian) (gcc version 4.6.3 (Debian 4.6.3-14) ) #3 SMP PREEMPT Mon May 12 17:42:03 PDT 2014
[ 0.000000] CPU: ARMv6-compatible processor [410fb025] revision 5 (ARMv7), cr=00c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine: PLXTECH NAS782X SoC (Flattened Device Tree), model: Pogoplug Pro
[ 0.000000] Memory policy: ECC disabled, Data cache writealloc
[ 0.000000] DT missing boot CPU MPIDR[23:0], fall back to default cpu_logical_map
[ 0.000000] Start Ox820 platform
[ 0.000000] PERCPU: Embedded 7 pages/cpu @c0826000 s6656 r8192 d13824 u32768
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
[ 0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1 rootdelay=10
[ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Memory: 120492K/131072K available (5186K kernel code, 234K rwdata, 1460K rodata, 158K init, 223K bss, 10580K reserved)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] vmalloc : 0xc8800000 - 0xff000000 ( 872 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0685b90 (6647 kB)
[ 0.000000] .init : 0xc0686000 - 0xc06ada00 ( 159 kB)
[ 0.000000] .data : 0xc06ae000 - 0xc06e8aa0 ( 235 kB)
[ 0.000000] .bss : 0xc06e8aac - 0xc0720868 ( 224 kB)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] NR_IRQS:160
[ 0.000000] sched_clock: 24 bits at 390kHz, resolution 2560ns, wraps every 42949ms
[ 0.000000] Console: colour dummy device 80x30
[ 0.000181] Calibrating delay loop... 339.14 BogoMIPS (lpj=1695744)
[ 0.050014] pid_max: default: 32768 minimum: 301
[ 0.050252] Mount-cache hash table entries: 512
[ 0.052797] CPU: Testing write buffer coherency: ok
[ 0.053196] Setting up static identity map for 0xc04ee9e8 - 0xc04eea20
[ 0.110356] CPU1: Booted secondary processor
[ 0.170170] Brought up 2 CPUs
[ 0.170191] SMP: Total of 2 processors activated.
[ 0.171284] devtmpfs: initialized
[ 0.174543] pinctrl core: initialized pinctrl subsystem
[ 0.174917] NET: Registered protocol family 16
[ 0.175390] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.178265] gpio-oxnas 44000000.gpio: at address c8846000
[ 0.178465] gpio-oxnas 44100000.gpio: at address c8848000
[ 0.178959] pinctrl-oxnas pinctrl.5: initialized OX820 pinctrl driver
[ 0.185640] bio: create slab <bio-0> at 0
[ 0.296414] oxnas-pcie 47c0: PCIe version/deviceID 0x82510b5
[ 0.296529] oxnas-pcie 47c0: link up
[ 0.296721] oxnas-pcie 47c0: PCI host bridge to bus 0000:00
[ 0.296747] pci_bus 0000:00: root bus resource [mem 0x48000000-0x49ffffff]
[ 0.296762] pci_bus 0000:00: root bus resource [mem 0x4a000000-0x4bdfffff pref]
[ 0.296778] pci_bus 0000:00: root bus resource [io 0x4be00000-0x4befffff]
[ 0.296796] pci_bus 0000:00: root bus resource [bus 00-7f]
[ 0.297144] PCI: bus0: Fast back to back transfers disabled
[ 0.297213] pci 0000:00:00.0: BAR 0: assigned [mem 0x48000000-0x4800ffff]
[ 0.297546] vgaarb: loaded
[ 0.297920] SCSI subsystem initialized
[ 0.298580] usbcore: registered new interface driver usbfs
[ 0.298654] usbcore: registered new interface driver hub
[ 0.298831] usbcore: registered new device driver usb
[ 0.298923] pps_core: LinuxPPS API ver. 1 registered
[ 0.298933] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.298969] PTP clock support registered
[ 0.299998] cfg80211: Calling CRDA to update world regulatory domain
[ 0.301196] Switched to clocksource rps_clocksource_timer
[ 0.312911] NET: Registered protocol family 2
[ 0.313653] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.313702] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.313735] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.313817] TCP: reno registered
[ 0.313840] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.313879] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.314216] NET: Registered protocol family 1
[ 0.314690] RPC: Registered named UNIX socket transport module.
[ 0.314708] RPC: Registered udp transport module.
[ 0.314718] RPC: Registered tcp transport module.
[ 0.314731] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.315036] Unpacking initramfs...
[ 0.527505] Freeing initrd memory: 2052K (c7c26000 - c7e27000)
[ 0.541255] NFS: Registering the id_resolver key type
[ 0.541314] Key type id_resolver registered
[ 0.541327] Key type id_legacy registered
[ 0.541355] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[ 0.542021] fuse init (API version 7.22)
[ 0.542960] msgmni has been set to 239
[ 0.607682] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[ 0.607703] io scheduler noop registered
[ 0.607715] io scheduler deadline registered
[ 0.607971] io scheduler cfq registered (default)
[ 0.608386] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[ 0.609489] 44200000.uart: ttyS0 at MMIO 0x44200000 (irq = 55, base_baud = 390625) is a 16550A
[ 1.122895] console [ttyS0] enabled
[ 1.127802] scsi0 : sata_oxnas
[ 1.131130] ata1: SATA max UDMA/133 irq 50
[ 1.135326] ox820sata: reseting SATA core
[ 1.136583] NAND device: Manufacturer ID: 0xad, Chip ID: 0xf1 (Hynix NAND 128MiB 3,3V 8-bit), 128MiB, page size: 2048, OOB size: 64
[ 1.136601] Scanning device for bad blocks
[ 1.218035] 2 ofpart partitions found on MTD device 41000000.nand
[ 1.224120] Creating 2 MTD partitions on "41000000.nand":
[ 1.229496] 0x000000000000-0x000000e00000 : "boot"
[ 1.235494] 0x000000e00000-0x000008000000 : "data"
[ 1.241871] stmmac - user ID: 0x12, Synopsys ID: 0x35
[ 1.246899] Ring mode enabled
[ 1.249937] DMA HW capability register supported
[ 1.254466] Enhanced/Alternate descriptors
[ 1.258803] Enabled extended descriptors
[ 1.262804] RX Checksum Offload Engine supported (type 2)
[ 1.268259] TX Checksum insertion supported
[ 1.272512] Wake-Up On Lan supported
[ 1.276152] Enable RX Mitigation via HW Watchdog Timer
[ 1.298854] libphy: stmmac: probed
[ 1.302274] eth0: PHY ID 001cc914 at 0 IRQ 0 (stmmac-0:00) active
[ 1.308339] eth0: PHY ID 001cc914 at 3 IRQ 0 (stmmac-0:03)
[ 1.313953] PCI: enabling device 0000:00:00.0 (0140 -> 0142)
[ 1.319738] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 3090, rev 3213 detected
[ 1.330946] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 0005 detected
[ 1.339256] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.345789] ehci-pci: EHCI PCI platform driver
[ 1.350535] oxnas-ehci 40200100.ehci: EHCI Host Controller
[ 1.356032] oxnas-ehci 40200100.ehci: new USB bus registered, assigned bus number 1
[ 1.363791] oxnas-ehci 40200100.ehci: irq 39, io mem 0x40200100
[ 1.380441] oxnas-ehci 40200100.ehci: USB 2.0 started, EHCI 1.00
[ 1.386680] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 1.393464] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.400665] usb usb1: Product: EHCI Host Controller
[ 1.405519] usb usb1: Manufacturer: Linux 3.12.13-oxnas-tld-5 ehci_hcd
[ 1.412032] usb usb1: SerialNumber: 40200100.ehci
[ 1.417377] hub 1-0:1.0: USB hub found
[ 1.421219] hub 1-0:1.0: 2 ports detected
[ 1.425738] usbcore: registered new interface driver usb-storage
[ 1.432015] mousedev: PS/2 mouse device common for all mice
[ 1.438371] usbcore: registered new interface driver usbhid
[ 1.443965] usbhid: USB HID core driver
[ 1.448064] TCP: cubic registered
[ 1.452369] NET: Registered protocol family 10
[ 1.458140] sit: IPv6 over IPv4 tunneling driver
[ 1.463569] NET: Registered protocol family 17
[ 1.468131] Key type dns_resolver registered
[ 1.669990] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[ 1.677265] ata1.00: ATA-8: STM3250318AS, CC38, max UDMA/133
[ 1.682931] ata1.00: 488397168 sectors, multi 0: LBA48 NCQ (depth 0/32)
[ 1.690772] ata1.00: configured for UDMA/133
[ 1.710440] scsi 0:0:0:0: Direct-Access ATA STM3250318AS CC38 PQ: 0 ANSI: 5
[ 1.719426] sd 0:0:0:0: [sda] 488397168 512-byte logical blocks: (250 GB/232 GiB)
[ 1.727377] sd 0:0:0:0: [sda] Write Protect is off
[ 1.732377] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 1.750510] usb 1-1: new high-speed USB device number 2 using oxnas-ehci
[ 1.754362] sda: sda1
[ 1.755893] sd 0:0:0:0: [sda] Attached SCSI disk
[ 1.764339] Freeing unused kernel memory: 156K (c0686000 - c06ad000)
Loading, please wait...
[ 1.901322] udev[73]: starting version 164
[ 1.922368] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[ 1.929052] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 1.936176] usb 1-1: Product: USB2.0 Hub
[ 1.976609] hub 1-1:1.0: USB hub found
[ 2.018424] hub 1-1:1.0: 4 ports detected
[ 2.330360] usb 1-1.1: new high-speed USB device number 3 using oxnas-ehci
[ 2.446108] usb 1-1.1: New USB device found, idVendor=13fe, idProduct=3600
[ 2.452989] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2.460262] usb 1-1.1: Product: USB DISK 2.0
[ 2.464550] usb 1-1.1: Manufacturer:
[ 2.468887] usb 1-1.1: SerialNumber: 07B61707C5A01222
[ 2.474895] usb-storage 1-1.1:1.0: USB Mass Storage device detected
[ 2.486110] usb-storage 1-1.1:1.0: Quirks match for vid 13fe pid 3600: 4000
[ 2.493201] scsi1 : usb-storage 1-1.1:1.0
[ 3.516958] scsi 1:0:0:0: Direct-Access USB DISK 2.0 PMAP PQ: 0 ANSI: 0 CCS
[ 5.552529] sd 1:0:0:0: [sdb] 31277056 512-byte logical blocks: (16.0 GB/14.9 GiB)
[ 5.561269] sd 1:0:0:0: [sdb] Write Protect is off
[ 5.567139] sd 1:0:0:0: [sdb] No Caching mode page found
[ 5.572480] sd 1:0:0:0: [sdb] Assuming drive cache: write through
[ 5.584765] sd 1:0:0:0: [sdb] No Caching mode page found
[ 5.590067] sd 1:0:0:0: [sdb] Assuming drive cache: write through
[ 5.617315] sdb: sdb1
[ 5.625172] sd 1:0:0:0: [sdb] No Caching mode page found
[ 5.630584] sd 1:0:0:0: [sdb] Assuming drive cache: write through
[ 5.636664] sd 1:0:0:0: [sdb] Attached SCSI removable disk
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
[ 12.649313] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
Begin: Running /scripts/local-bottom ... done.
done.
Begin: Running /scripts/init-bottom ... mount: mounting /dev on /root/dev failed: No such file or directory
done.
mount: mounting /sys on /root/sys failed: No such file or directory
mount: mounting /proc on /root/proc failed: No such file or directory
Target filesystem doesn't have requested /sbin/init.
No init found. Try passing init= bootarg.


BusyBox v1.17.1 (Debian 1:1.17.1-8) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/bin/sh: can't access tty; job control turned off
(initramfs)


I think I created a backup of an original Pogoplug E02 nand (backup is 128mb).


But I need some help, because I'm stuck due to a lack of "communication" towards the pogoplug.
- No wget Ip connection
- Can't mount usb stick (FAT-fs (sdb1): codepage cp437 not found)
- TFTP solution does not work (no IP)

Only the serial connection is "solid" ;-)

What can be done to make a next step. Currently booting from SATA drive, to access the HW,

accidently delete mtd0 0 5 (4 replies)

$
0
0
While install u-boot, I accidently erase /dev/mtd0 0 5.
Then I installed u-boot that fill /dev/mtd0 0 4 I guess, but I dont know what to do with 5.
Help Please.

Yet another bricked DockStar (2 replies)

$
0
0
Hi,
I don't know how, but I have bricked my DockStar when trying to update uBoot.
I have tried to unbrick it using JTAG port.

First using my RaspBerry Pi, unsuccessfully, then buying a Bus Pirate.
I've used OpenOCD, and tried to follow several explanations.
I was unable to access nand correctly with given explanations.


I have succeeded doing this :
> soft_reset_halt
(wait about 1/2 sec)
> soft_reset_halt
> nand probe 0
NAND flash device 'NAND 256MiB 3.3V 8-bit (Micron)' found

Then run manually arm mcr and all mww instructions (in place of dockstar_init command).
> arm mcr 15 0 0 1 0 0x00052078
> mww 0xD0001400 0x43000C30
> mww 0xD0001404 0x39543000
(and so on...)

Then, I run several checks :
> nand probe 0
NAND flash device 'NAND 256MiB 3.3V 8-bit (Micron)' found

> nand list
#0: NAND 256MiB 3.3V 8-bit (Micron) pagesize: 2048, buswidth: 8,
        blocksize: 131072, blocks: 2048

> nand check_bad_blocks 0
bad block: 1656
checked NAND flash device for bad blocks, use "nand info" command to list blocks
> nand info 0
(...)
        #1654: 0x0cec0000 (128kB) erase state unknown
        #1655: 0x0cee0000 (128kB) erase state unknown
        #1656: 0x0cf00000 (128kB) erase state unknown (marked bad)
        #1657: 0x0cf20000 (128kB) erase state unknown
I have 1 bad block.

Everything seems OK, so I try to reflash uboot file :
> nand erase 0 0x0 0xa0000
erased blocks 0 to 4 on NAND flash device #0 'NAND 256MiB 3.3V 8-bit'

> nand write 0 uboot.kwb 0 oob_softecc_kw
wrote file uboot.kwb to NAND flash 0 up to offset 0x00080000 in 638.884583s (0.801 KiB/s)
But... I was unable to restart my Dockstar.

So, I have tried the load_image method :
> load_image uboot.kwb 0x800000
524288 bytes written at address 0x00800000
downloaded 524288 bytes in 249.925323s (2.049 KiB/s)

> dump_image uboot_NAND.kwb 0x800000 0x80000
dumped 524288 bytes in 250.210892s (2.046 KiB/s)
--> Compare this image with original one --> OK.

> resume 0x800200
But... nothing happens.

Using a FDTI serial/usb connector, I have nothing.
DockStar LED is permanently off.

Do you think my DocStar is definitively bricked ?
Maybe I'm doing something wrong ?
Do you know a magical trick ?

thanks.

Can you please help me to unbrick my nas (Iomega ix2-dl) (no replies)

$
0
0
Hi, i can not find the right place to write, but seems like you can help me with my issue. I have Iomega ix2-dl by accident i wiped my u boot from my device (bricked). As i read on this forum it is possible to restore uboot using UART cable and kwboot (maybe it should be aslo modifyed?) I have UART cable and linux machine running debian9 x64. I also know how to connect it to my device etc... As i understand i need to launch kwboot and in sec switch on my ix2-dl to load uboot to memory,then write it to nand. The problem is i can not find correct uboot image for my device. Can you help me with that? And maybe i missed something?
Thanks a lot.

New U-Boot - GoFlex Home (GFH) Envs Issues (from previous installed Arch u-boot ) (1 reply)

$
0
0
I followed your "installation" instructions for both the new U-boot and Kernel on a "stock" Goflex Home. All went great and the box booted fine.

Pressing my luck, I tried repeating the same installation using the same installation files and repeating the same instructions on a GFH I'd installed Arch on some years ago. U-Boot works, however the U-Boot environment variables seemed to load the kernal and ramfs but the box would hang at ".....Starting Kernel."

Over the next several days my thinking was that either one the load addresses or the kernel commandline MUST be off. It dawned on me to reset/erase all of the env variables on the broken GFH and replace with the env variables from the working box.

In case someone runs into this, my working env variables are

NOTE: Though collision is unlikely you shoud change the MAC/ethaddr to the one printed on the label of your box.

root@debian:~# fw_printenv
baudrate=115200
bootcmd=ide reset; usb start; setenv letter 9;for type in ide usb; do for disk in 0; do if ${type} part ${disk};then setexpr letter $letter + 1;run load;fi;done;done;
bootdelay=3
bootm=echo Booting from ${disk} ...; run setargs; bootm ${loadaddr};
bootz=echo Booting from ${disk} ...; run setargs; bootz ${loadaddr} - ${fdt_addr};
console=ttyS0
ethact=egiga0
fdt_addr=0x800000
fdt_file=/boot/dtbs/kirkwood-goflexnet.dtb
importbootenv=echo Importing environment (uEnv.txt)...; env import -t $loadaddr $filesize
load=echo Attempting to boot from ${type} ${disk}:1...;if run loadbootenv; then run importbootenv;fi;echo Checking if uenvcmd is set ...;if test -n $uenvcmd; then echo Running uenvcmd ...;run uenvcmd;fi;echo Running default loadzimage ...;if run loadzimage; then run loadfdt;run bootz;fi;echo Running default loaduimage ...;if run loaduimage; then run bootm;fi;
loadaddr=0x810000
loadbootenv=load ${type} ${disk}:1 ${loadaddr} /boot/uEnv.txt
loadfdt=load ${type} ${disk}:1 ${fdt_addr} ${fdt_file}
loaduimage=load ${type} ${disk}:1 ${loadaddr} ${uimage}
loadzimage=load ${type} ${disk}:1 ${loadaddr} ${zimage}
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),-(rootfs)
setargs=setenv bootargs console=${console},${baudrate} ${optargs} root=/dev/sd${letter}1 rw rootwait ${mtdparts}
uimage=/boot/uImage
zimage=/boot/zImage
ethaddr=00:10:75:28:99:13



BINGO, two working GFH boxes.


Again, thank you for sharing your work.


Jazzoo
Viewing all 903 articles
Browse latest View live