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

GoFlexHome RIP (4 replies)

$
0
0
After attempting to update the environment on my GoFlexHome today I ran reboot from the Debian command prompt hoping to see the new environment when it restarted.... but it never did...the green LED never restarted flashing so I guess the unit is dead.

Any ideas on whether it is salvageable?

Seagate Personal Cloud (1 reply)

Pogoplug eo2 not showing in router (1 reply)

$
0
0
Hello all, I've browsed this forum a few times when I ran into issues with my pogo plug about a year ago, and now I need your help again.

Recently I tried to gain access to my device through the serial port. However, I burnt out my usb converter by using the wires in wrong place on the port itself. Hopefully I didn't damage anything, but my device no longer shows in the router. It powers on, and the ethernet port lights up, but the main LED doesn't come on anymore. It did have arch on it before I lost the usb that contained it, I'm not sure if that helps or not.

Any ideas would be greatly appreciated.

Pogoplug V4 not booting (1 reply)

$
0
0
Greetings,

Please help....
apparently I've made my Pogoplug V4 unable to boot. Front Led always off all the time, not blinking at all, not even the green one.

Serial connection status are connected, but no booting text coming on screen. Only blank screen appear. Also unable to send command on serial.

Ok, so before this thing happen. I'm trying to use my pogoplug as NAS server and media server, but also some other function like download manager, etc. Plan to load OpenWRT/Lede or Arch. This is due to Pogoplug not able to share USB drive. So I decide to switch to Lede/Archlinux.

Right after I register my device on pogoplug website, I'm unable to activate SSH on the pogoplug website, and all USB thumbdrive on all port were not able to shared, like no drive attached even I've attached the drive. I can't read the share folder on Pogoplug.

So, I end up try to get SSH by Serial... And after some gooling I've managed to access to serial and enable dropbear and I'm able to get SSH to pogo. But, it was not permanent, after reboot, dropbear back to disable mode and I've to enable again using serial cable. I can't change root password also, it says /etc/passwd write protected.

Then, I try to upgrade U-boot. And then this happen... I think I'm using wrong command and wrong uboot image. The pogoplug seem unusable for me now after I messed up with Uboot...

Please help guide me how to recover my pogo...


my command log attached...

**) Sorry for my bad english

goflex randomly stops showing files (2 replies)

$
0
0
My seagate goflex home works "some" of the time. if it loses wifi connectivity or has to be restarted it will often startup without any files in the file system. after restarting several times in a row or letting it sit overnight, it suddenly works again. Handy feature. I was able to capture one instance on boot where nothing showed up and then another boot cycles where ALL the files appeared again. Here is the section in /var/log/dmesg where it is different. Something to do with the Marvell SCSI to SATA adapter not finding the drive. When it does boot up with files, it works great: no issues.

boot when files didn't show up:

Integrated Sata device found
scsi0 : Marvell SCSI to SATA adapter
scsi1 : Marvell SCSI to SATA adapter
NFTL driver: nftlcore.c $Revision: 1.98 $, nftlmount.c $Revision: 1.41 $
NAND device: Manufacturer ID: 0x98, Chip ID: 0xda (Toshiba NAND 256MiB 3,3V 8-bit)

boot when files showed up.

Integrated Sata device found
scsi0 : Marvell SCSI to SATA adapter
scsi1 : Marvell SCSI to SATA adapter
scsi 0:0:0:0: Direct-Access     Seagate  ST2000DL001-9VT1 CC97 PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 3907029168 512-byte hardware sectors (2000399 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sd 0:0:0:0: [sda] 3907029168 512-byte hardware sectors (2000399 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
 sda: sda1
sd 0:0:0:0: [sda] Attached SCSI disk
sd 0:0:0:0: Attached scsi generic sg0 type 0
NFTL driver: nftlcore.c $Revision: 1.98 $, nftlmount.c $Revision: 1.41 $

Question about 2017.07 U-Boot Kirkwood for Dockstar (1 reply)

$
0
0
I have a dockstar and had an older version of your uboot - I assume from 2011.
I installed this version.
All steps worked including the writing of the environment except setting ethaddr
root@nas:~/tmp# fw_setenv ethaddr '00:10:75:1A:DD:17'
Can't overwrite "ethaddr"
What can I do?
Is it possible to set it with the /boot/uEnv.txt?

google customer service (no replies)

$
0
0
We are providing best service to our customer and our team serves satisfactory service to our customer. Contact with our team Google customer service

Installing new U-Boot for Pogoplug V3 - from Arch u-boot (15 replies)

$
0
0
I hope this is the right place to post this - I'm mostly concerned about U-Boot issues...

I have an old Pogo-Classic (B01) running ArchLinux that I installed years ago. It was my first Pogoplug (almost my first linux experience) - I installed Samba, got it booting from a 3TB SATA drive, and used the rest of the drive as a server for my home network (mostly without problems, kind of miraculous given all the hoops I had to stumble through with all the Oxnas/Arch/Deprecated stuff). I pretty much never touched it out of fear it would break down on me, hence:

[root@alarm hd-sda4]# uname -a
Linux alarm 2.6.31.6_SMP_820 #6 SMP Thu Jun 14 19:49:57 CDT 2012 armv6l GNU/Linux

(No idea what version of U-Boot it's running)

Now I have a Pogo V4 running Debian and serving my network and am in the process of getting 4(!) other Pogos up and running, and I thought it might be time to update the old Pogo Classic and switch it to Debian. I don't currently have either Serial access or Netconsole running, so I want to be careful about how I do things so that I don't reboot and immediately end up with a brick.

Is this the right order in which I should proceed?:

1. Try to get NetConsole working (I've started working on this - is there any way to test nc without rebooting?)

2. Update U-boot as instructed in this thread, maintaining boot-from-SATA

3. Install the Debian rootfs & kernel onto the SATA drive boot partition (same version and process as with a Mobile or V4 or E02, right?)

Thanks for any guidance...

Pogoplug V4 Troubleshooting Help (1 reply)

$
0
0
I'm having issues with my Pogoplug not always booting and I would appreciate some help/advice on the boot issues I'm having.
It will not boot at all with the usb removed, just a green flashing light, it takes several attempts to boot with the usb attached, usually my ssh commands are rejected and I know it finally boots OK when I login using alarm/alarm.

I'm using it to mount network drives and a printer, but I can't access it all other than by ssh. There is definately a mount issue.

My system consists of the following:

PogoPlug V4_A3_01
[alarm@pogoplug ~]$ uname -a
Linux pogoplug 4.4.47-1-ARCH #1 PREEMPT Sat Feb 4 21:22:22 MST 2017 armv5tel GNU/Linux

I have the following dmesg issues that I don't know how to fix

[ 13.956487] systemd-fstab-generator[117]: Checking was requested for "\xffffffd2LABEL=ROOTFS", but it is not a device.
[ 13.987456] systemd-fstab-generator[117]: Mount point is not a valid path, ignoring.
[ 14.581156] systemd[1]: local-fs.target: Cannot add dependency job, ignoring: Unit -.mount is not loaded properly: Bad message.
[ 16.109798] systemd-journald[146]: File /var/log/journal/3c32b83380384c598b0687f3a7f01a67/system.journal corrupted or uncleanly shut down, renaming and replacing.
[ 17.623424] MV-CESA:Could not register sha1 driver
[ 17.673465] MV-CESA:Could not register hmac-sha1 driver
[ 22.776525] hbwd (245): /proc/245/oom_adj is deprecated, please use /proc/245/oom_score_adj instead.

I have attached the whole file if that helps.

I'm trying to fix without going back to stock and starting from scratch.

Any help would be appreciated thanks

Not the correct encoding? (1 reply)

$
0
0
Hi

I an using a CP2102 USB to UART bridge, and it connects correctly.

I am using "serial" on my mac, but something is wrong with the encoding (?) as I get the following:

U-B⎺⎺├ 2011.12 (F␊␉ 20 2012 - 21:21:59)
P⎺±⎺⎻┌┤± E02

S⎺C:   K␋⎼┐┬⎺⎺␍ 88F6281_A0
DRAM:  256 M␋B
WARNING: C▒␌␤␊⎽ ┼⎺├ ␊┼▒␉┌␊␍
NAND:  128 M␋B
I┼:    ⎽␊⎼␋▒┌
O┤├:   ⎽␊⎼␋▒┌
E⎼⎼:   ⎽␊⎼␋▒┌
N␊├:   ␊±␋±▒0
88E1116 I┼␋├␋▒┌␋≥␊␍ ⎺┼ ␊±␋±▒0
H␋├ ▒┼≤ ┐␊≤ ├⎺ ⎽├⎺⎻ ▒┤├⎺␉⎺⎺├:  0
(R␊)⎽├▒⎼├ USB...
USB:   R␊±␋⎽├␊⎼ 10011 N␉⎼P⎺⎼├⎽ 1
USB EHCI 1.00
⎽␌▒┼┼␋┼± ␉┤⎽ °⎺⎼ ␍␊┴␋␌␊⎽... 3 USB D␊┴␋␌␊(⎽) °⎺┤┼␍
       ⎽␌▒┼┼␋┼± ␉┤⎽ °⎺⎼ ⎽├⎺⎼▒±␊ ␍␊┴␋␌␊⎽... 1 S├⎺⎼▒±␊ D␊┴␋␌␊(⎽) °⎺┤┼␍
L⎺▒␍␋┼± °␋┌␊ "/⎼␊⎽␌┤␊└␊" °⎼⎺└ ┤⎽␉ ␍␊┴␋␌␊ 0:1 (┤⎽␉␍▒1)
** F␋┌␊ ┼⎺├ °⎺┤┼␍ /⎼␊⎽␌┤␊└␊
⎼␊▒␍␋┼± /⎼␊⎽␌┤␊└␊.├│├

** U┼▒␉┌␊ ├⎺ ⎼␊▒␍ "/⎼␊⎽␌┤␊└␊.├│├" °⎼⎺└ ┤⎽␉ 0:1 **
C⎼␊▒├␋┼± 1 MTD ⎻▒⎼├␋├␋⎺┼⎽ ⎺┼ "┼▒┼␍0":
0│000002500000-0│000008000000 : "└├␍=3"

[    0.000000] I┼␋├␋▒┌␋≥␋┼± ␌±⎼⎺┤⎻ ⎽┤␉⎽≤⎽ ␌⎻┤⎽␊├
[    0.000000] I┼␋├␋▒┌␋≥␋┼± ␌±⎼⎺┤⎻ ⎽┤␉⎽≤⎽ ␌⎻┤
[    0.000000] L␋┼┤│ ┴␊⎼⎽␋⎺┼ 2.6.32.18-␍⎺␌┐⎽├▒⎼ (⎼⎺⎺├@⎽├°┤.├␌␉┼␊├) (±␌␌ ┴␊⎼⎽␋⎺┼ 4.3.5 (B┤␋┌␍⎼⎺⎺├ 2010.08) ) #1 T␤┤ F␊␉ 17 03:09:57 EST 2011
[    0.000000] CPU: F␊⎼⎺␌␊⎺┼ 88FR131 [56251311] ⎼␊┴␋⎽␋⎺┼ 1 (ARM┴5TE), ␌⎼=00053977
[    0.000000] CPU: VIVT ␍▒├▒ ␌▒␌␤␊, VIVT ␋┼⎽├⎼┤␌├␋⎺┼ ␌▒␌␤␊
[    0.000000] M▒␌␤␋┼␊: M▒⎼┴␊┌┌ S␤␊␊┴▒P┌┤± R␊°␊⎼␊┼␌␊ B⎺▒⎼␍
[    0.000000] M␊└⎺⎼≤ ⎻⎺┌␋␌≤: ECC ␍␋⎽▒␉┌␊␍, D▒├▒ ␌▒␌␤␊ ┬⎼␋├␊␉▒␌┐


So some characters are not correct. The Baudrate is set to 115200, 8 data bits, no parity, 1 stop bit.

Terminal emulation xterm, text encoding UTF-8.

Any ideas?

Rainer

Wrong U-boot Envs on Pogo Pro ? (no replies)

$
0
0
Hi Folks,

As i tried to install LEDE into the flash of my POGO Pro, i messed up my Uboot ENvs and cannot boot into debian anymore. At the moment, i can only get access to my pogo via serial cable.

Her are the Logs
U-Boot SPL 2013.10-tld-4 (Sep 07 2014 - 14:10:12)
  Boot device: NAND
Attempting to set PLLA to 850 MHz ...
  plla_ctrl0 : 0000020a
  plla_ctrl1 : 00330000
  plla_ctrl2 : 0065008b
  plla_ctrl3 : 000000f1

PLLA Set


U-Boot 2015.10-tld-2 (Oct 21 2017 - 22:00:02 -0700)
OXNAS OX820

DRAM:  128 MiB
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   dwmac.40400000
dwmac.40400000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
dwmac.40400000: No link.
ping failed; host 192.168.0.2 is not alive
dwmac.40400000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
dwmac.40400000: No link.
ping failed; host 192.168.0.2 is not alive
dwmac.40400000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
dwmac.40400000: No link.
ping failed; host 192.168.0.2 is not alive
dwmac.40400000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
dwmac.40400000: No link.
ping failed; host 192.168.0.2 is not alive
dwmac.40400000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
dwmac.40400000: No link.
ping failed; host 192.168.0.2 is not alive
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
## Error: "dt_usb_bootcmd" not defined
stopping USB..
Trying to boot from NAND ...
UBI: attaching mtd1 to ubi0
UBI: scanning is finished
UBI: attached mtd1 (name "mtd=1", size 114 MiB) to ubi0
UBI: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes
UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 512
UBI: VID header offset: 512 (aligned 512), data offset: 2048
UBI: good PEBs: 911, bad PEBs: 1, corrupted PEBs: 0
UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
UBI: max/mean erase counter: 4/1, WL threshold: 4096, image sequence number: 352667282
UBI: available PEBs: 0, total reserved PEBs: 911, PEBs reserved for bad PEB handling: 19
Loading file '/boot/zImage' to addr 0x60500000 with size 1678672 (0x00199d50)...
Done
** File not found /boot/ox820-pogoplug-pro.dtb **
Unmounting UBIFS volume rootfs!
Booting from nand ...
Kernel image @ 0x60500000 [ 0x000000 - 0x199d50 ]
ERROR: Did not find a cmdline Flattened Device Tree
Could not find a valid device tree
resetting ...

OX820> printenv
bootcmd=run dt_bootcmd_usb; run loadubi; reset
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm 0x60500000 0x60e00000 0x62c00000; else bootm 0x60500000 0x60e00000; fi; else if run load_dtb; then bootm 0x60500000 - 0x62c00000; else bootm 0x60500000; fi; fi
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
bootzubi=echo Booting from nand ...; run setargsubi; bootz ${loadaddr} - ${fdt_addr};
device=0:1
devices=usb ide
disks=0 1 2 3
dt_bootcmd_usb=usb start; run dt_usb_bootcmd; usb stop
dt_load_dtb=ext2load usb 0:1 $dtb_addr $fdt_file
dtb_file=/boot/dts/ox820-pogoplug-pro.dtb
ethact=dwmac.40400000
ethaddr=00:25:31:01:e4:d4
fdt_addr=0x62c00000
fdt_file=/boot/dts/ox820-pogoplug-pro.dtb
fdt_file_ubi=/boot/ox820-pogoplug-classic.dtb
if_netconsole=ping $serverip
ipaddr=192.168.0.199
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device 0x62c00000 $dtb_file
load_initrd=echo loading uInitrd ...; load $bootdev $device 0x60e00000 /boot/uInitrd
load_uimage=echo loading uImage ...; load $bootdev $device 0x60500000 /boot/uImage
loadaddr=0x60500000
loadubi=echo Trying to boot from NAND ...;if run mountubi; then run loadubizimage;run loadubifdt;ubifsumount;run bootzubi;fi
loadubifdt=ubifsload ${fdt_addr} ${fdt_file_ubi}
loadubizimage=ubifsload ${loadaddr} ${zimage}
mainlineLinux=yes
mountubi=ubi part data; ubifsmount ubi0:rootfs
mtdids=nand0=41000000.nand
mtdparts=mtdparts=41000000.nand:14m(boot),-(data)
nc_ready=0
pogo_bootcmd=run pogo_set_bootargs; nand read 0x2000000 0x100000 0x400000 ; bootm 0x2000000
pogo_set_bootargs=setenv bootargs console=ttyS0,115200 root=/dev/mtdblock2 rootfstype=jffs2 panic=10
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 0x60500000 /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
serverip=192.168.0.2
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
setargsubi=setenv bootargs console=ttyS0,115200n8 ubi.mtd=1 root=ubi0:rootfs rw rootfstype=ubifs rootwait ${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
uenv_import=echo importing envs ...; env import -t 0x60510000  $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 0x60500000 /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_custom_params=zswap.enabled=1
usb_ready_retry=15
zimage=/boot/zImage

Environment size: 3666/131068 bytes

Does anybody have an idea, what i have to change in order to boot debian from my USB again?

THX!

Problem booting with 2017.07 U-Boot Kirkwood NSA325 (1 reply)

$
0
0
I have lost my serial connection just before

8. Flashing default u-boot envs image (if you are upgrading from 2016.05-tld-1 u-boot, you can skip this step 8).

the U-Boot was flashed successfully to

NSA325> version

U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:42:03 -0700)
ZyXEL NSA325 2-Bay Power Media Server
gcc (Debian 6.3.0-18) 6.3.0 20170516
GNU ld (GNU Binutils for Debian) 2.28
NSA325>


Here my printenv output
NSA325> printenv
arcNumber=4495
baudrate=115200
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; 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
bootdelay=10
bootdev=usb
console=console=ttyS0,115200
device=0:1
devices=usb ide
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-nsa325.dtb
ethact=egiga0
ethaddr=52:3b:20:9c:11:51
if_netconsole=ping $serverip
ipaddr=192.168.0.231
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_dtb_addr=0x1c00000
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x1100000
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
load_uimage_addr=0x800000
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
preboot_nc=run if_netconsole start_netconsole
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
serverip=192.168.0.220
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_read=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: 3016/131068 bytes
NSA325>

My Linux Kernel is on an SSD

NSA325> boot
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: SSD Firm: bla  Ser#: bla
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 15272.0 MB = 14.9 GB (31277232 x 512)
## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0
loading envs from usb 0 ...
** Bad device usb 0 **

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

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            204800          d477d704-01     83 Boot
  2     206848          30717952        d477d704-02     83
running scan_disk ...
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: V2 SII SSD Firm: 1002_0.4 Ser#: blablabla
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 15272.0 MB = 14.9 GB (31277232 x 512)
device ide 0:1
** File not found /boot/uImage **
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 0 **
loading uInitrd ...
** Bad device usb 0 **
loading DTB /boot/dts/kirkwood-nsa325.dtb ...
** Bad device usb 0 **
Unknown command 'bootm0x800000' - try 'help'
resetting ...


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

SoC:   Kirkwood 88F6282_A1
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  128 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   egiga0
MV88E1318 PHY initialized on egiga0
Hit any key to stop autoboot:  0
NSA325>

how to boot the kernel from my SSD to proceed with the settings?

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

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

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

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

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

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

Here is the output I get in Putty:


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

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

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

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

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

Streaming disabled
Write allocate disabled


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

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

Starting kernel ...

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

Akitio Mycloud Duo with 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) (2 replies)

$
0
0
Hello please help.

I try to flash new u-boot on Iconbit I-STOR IS608 clone of Akitio Mycloud Duo .
reboot after success flash u-boot:

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

And nothing happens. The device freezes.
I correctly understand that the image uboot.2015.10-tld-2.ox820.mtd0.img is written to the wrong place?

output of cat /proc/mtd:

-bash-4.0# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 10000000 00020000 "NAND 256MiB 3,3V 8-bit"
mtd1: 026c0000 00020000 "Boot partition"
mtd2: 0d940000 00020000 "Data Partition"

what am I doing wrong?

Update uboot from 2016.05 (no replies)

$
0
0
A list of only 6 checked items, that is what I need to do:

☐ Check /etc/fw_env.config and /proc/mtd
☐ Set ethaddr
☑ Dump NAND mtd0 and Save envs
☑ No bad block
────────────
☑ Extract the archive
☑ Erase mtd0
☑ Write image to NAND
────────────
☐ Flashing default u-boot envs image
────────────
☑ Double check uBoot envs 
☐ Set up netconsole

I think I can skip the task of flashing default envs image, below is a diff of my current envs and the uboot.2016.05-tld-1.environment
1d0
< arcNumber=2097
11d9
< ethaddr=52:3b:20:9c:11:51
13d10
< ipaddr=192.168.0.231
17d13
< dtb_file=/boot/dts/kirkwood-pogo_e02.dtb
24d19
< machid=0x831
27d21
< mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
29d22
< preboot_nc=run if_netconsole start_netconsole
31d23
< serverip=192.168.0.220
43a36,44
> arcNumber=3960
> machid=f78
> mtdparts=mtdparts=orion_nand:2M(u-boot),3M(uImage),3M(uImage2),8M(failsafe),112M(root)
> ethaddr=**:**:**:**:**:**
> dtb_file=/boot/dts/kirkwood-pogoplug_v4.dtb
> 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
> preboot=run preboot_nc
> ipaddr=172.16.16.117
> serverip=172.16.16.118

Use uEnv.txt for Testing (no replies)

$
0
0
My Pogo server have run on the NFS for more than 1 year, and I never worry about the lifespan of the SD card. An old IDE hard disk is attached to the Openwrt router by USB 2.0 and provide a stable rootfs for the Pogo.
Several months ago I got a new ASUS-merlin router, I am going to move the rootfs to the new one. This time, I'll try using uEnv.txt to test the NFS booting.

I put all tsunulukai's envs in uEnv.txt
cat /boot/uEnv.txt
net_dhcp_c=1
net_dhcp_s=1
net_c_ipaddr=
net_c_netmask=
net_c_gatewayip=
net_nfs_path=/srv/nfs/hosts/dockstar
net_nfs_dtb=boot/dts/kirkwood-dockstar.dtb
net_nfs_initrd=boot/uInitrd
net_nfs_kernel=boot/uImage
console=ttyS0,115200
autoload=no
net_check_dhcp_c=if test $net_dhcp_c -eq 1 ; then run net_set_c_ip_dhcp; else run net_set_c_ip_stat; fi;echo ** IP Address:  $ipaddr; echo ** Subnet Mask: $netmask; echo ** Def Gateway: $gatewayip
net_set_c_ip_dhcp=dhcp; echo; echo ** Getting IP Settings by DHCP (net_dhcp_c = 1):
net_set_c_ip_stat=setenv ipaddr $net_c_ipaddr; setenv netmask $net_c_netmask; setenv gatewayip $net_c_gatewayip; echo; echo ** Using static IP Settings (net_dhcp_c = 0):
net_check_dhcp_s=if test $net_dhcp_s -eq 1 && test $net_dhcp_c -eq 1 ; then run net_set_s_ip_dhcp; else run net_set_s_ip_stat; fi; echo ** NFS Boot Server: $net_nfs_server; echo
net_set_s_ip_dhcp=setenv net_nfs_server $serverip;echo; echo ** Getting NFS Boot Server by DHCP (net_dhcp_s and net_dhcp_c = 1):
net_set_s_ip_stat=echo; echo ** Using static NFS Boot Server (net_dhcp_s or net_dhcp_c = 0) :
net_load_dtb=echo NFS loading DTB     :$net_nfs_server:$net_nfs_path/$net_nfs_dtb ...   ; nfs $load_dtb_addr    $net_nfs_server:$net_nfs_path/$net_nfs_dtb; echo
net_load_initrd=echo NFS loading uInitrd :$net_nfs_server:$net_nfs_path/$net_nfs_initrd ...; nfs $load_initrd_addr $net_nfs_server:$net_nfs_path/$net_nfs_initrd; echo
net_load_uimage=echo NFS loading uImage  :$net_nfs_server:$net_nfs_path/$net_nfs_kernel ...; nfs $load_uimage_addr $net_nfs_server:$net_nfs_path/$net_nfs_kernel; echo
net_bootcmd=run net_check_dhcp_c; run net_check_dhcp_s; run net_set_bootargs; run net_bootcmd_exec
net_set_bootargs=setenv serverip $net_nfs_server; setenv bootargs console=$console root=/dev/nfs rw rootfstype=nfs rootwait nfsroot=$net_nfs_server:$net_nfs_path/,rsize=32768,wsize=32768,hard,intr,udp,v3 ip=$ipaddr:$net_nfs_server:$gatewayip:$netmask:dockstar:eth0:off $mtdparts $custom_params; echo ** Kernel Boot Arguments:; echo ** $bootargs; echo
net_bootcmd_exec=run net_load_uimage; if run net_load_initrd; then if run net_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

In netconsole:
run bootcmd_uenv

The envs are successfully imported
loading envs from mmc 0 ...
2346 bytes read in 15 ms (152.3 KiB/s)
importing envs ...

U-Boot for PogoPlug E01 (no replies)

$
0
0
The Pogoplug E01 is essentially a re-branded GlobalScale Sheevaplug even sharing the 003-SPL1001 model number. The most apparent difference is that the Pogoplug E01 has only 256MB of memory where the Sheevaplug has 512MB. Previously I tried using the Sheevaplug U-Boot to update one of my PogoPlug E01 units, but it hangs at this point:

U-Boot 2016.05-tld-1 (Jun 12 2016 - 14:02:47 -0700)
Marvell-Sheevaplug

SoC:   Kirkwood 88F6281_A0
DRAM:

I assume this is because its trying to initialize 512MB of memory and there is only 256MB. I'm guessing I need to make a modification somewhere in the board/Marvell/sheevaplug/kwbimage.cfg file to indicate that there is only 256MB memory but I'm having difficulty understanding how the memory is defined. I'm guessing it has something to do with these lines:

DATA 0xFFD01500 0x00000000	# CS[0]n Base address to 0x0
DATA 0xFFD01504 0x0FFFFFF1	# CS[0]n Size
# bit0:    1,  Window enabled
# bit1:    0,  Write Protect disabled
# bit3-2:  00, CS0 hit selected
# bit23-4: ones, required
# bit31-24: 0x0F, Size (i.e. 256MB)

DATA 0xFFD01508 0x10000000	# CS[1]n Base address to 256Mb
DATA 0xFFD0150C 0x0FFFFFF5	# CS[1]n Size 256Mb Window enabled for CS1

But I'm not clear on what the comments are trying to tell me! Can anyone explain how to define the correct amount of RAM for the Pogoplug E01.

Thanks,
Ray

No serial output (no replies)

$
0
0
I gave up on one of my GoFlex Home docks a few months ago because nothing was being output to the serial connection... Now after revisiting it, I see that the green LED has stopped flashing and become steady. My DHCP server indicated it was online, and I've just managed to ssh in.

Is there any way I can find out why it isn't outputting to the serial port?

I want to get back to my GoFlex Home FreeBSD project which stalled a while ago.

The current state of the dock is:-

root@debian:~# uname -a
Linux debian 4.12.1-kirkwood-tld-1 #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017 armv5tel GNU/Linux

fw_printenv:-
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
device=0:1
devices=usb ide mmc
disks=0 1 2 3
ethact=egiga0
if_netconsole=ping $serverip
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb_addr=0x1c00000
load_initrd_addr=0x1100000
load_uimage_addr=0x800000
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
mainlineLinux=yes
mtdids=nand0=orion_nand
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
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
usb_ready_retry=15
arcNumber=3338
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
ethaddr=00:10:75:2e:ae:0f
dtb_file=/boot/dts/kirkwood-goflexhome.dtb
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
preboot=run preboot_nc
ipaddr=192.168.1.22
serverip=192.168.1.43

FreeBSD adventure continues (no replies)

$
0
0
I managed to get one GoFlexHome dock to boot up FreeBSD but in the process of tidying up the environment managed to brick it... Still looking at trying to JTAG it, but getting nowhere.

I have another dock but think I have managed to damage one of the pins so serial communications don't work, so I assume using kwboot is out of the question.

In my tests so far it seems that I need an image that supports bootelf, but I'm not sure which image is available and whether I can use it without kwboot.

Please advise.

Hacking into a stock GoFlexHome unit (no replies)

Viewing all 901 articles
Browse latest View live