Welcome! Log In Create A New Profile

Advanced

Pogo V3 Pro internal Dual SD Card (USB 2.0) using mPCIe slot

Posted by echowarrior108 
Re: Pogo V3 Pro internal Dual SD Card (USB 2.0) using mPCIe slot
November 16, 2020 08:17PM
Still using this setup on my daily plug, I have had a new issue arise which causes some concern, 3 times over the last week I have had to reboot to access over ssh, I have not had it go to the point of not starting back up but I am considering adding a better backup plan for this one as it may be on the verge of failing, Kinda weighing the options but have a backup ready in case of failure of the sd.

learning is living! Echowarrior108



device pogoplug-pro v3

Debian GNU/Linux bullseye/sid \n \l
Linux version 4.14.180-oxnas-tld-1 (root@tldDebian) (gcc version 8.3.0 (Debian 8.3.0-6) ) #1 SMP PREEMPT Fri Nov 15 04:12:45 PST 2019
Re: Pogo V3 Pro internal Dual SD Card (USB 2.0) using mPCIe slot
November 17, 2020 04:55AM
echowarrior108,

It would be good to know exactly why, using serial console. This box is so easy to install serial console. I just have 3 wires sticking out of the box through the small gap in the front (below the case edge).

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



Edited 1 time(s). Last edit at 11/17/2020 04:56AM by bodhi.
Re: Pogo V3 Pro internal Dual SD Card (USB 2.0) using mPCIe slot
November 17, 2020 09:12AM
Hi bodhi, I have 3 boxes actually and all have serial wire drilled out back for easy connection this box is in a location that I have to move it out of to plug in which is no problem really. I will move it and print out the printenv also one problem I have with all my boxes is the fw_printenv does not work, am I missing something?

fw_printenv 
-bash: fw_printenv: command not found

learning is living! Echowarrior108



device pogoplug-pro v3

Debian GNU/Linux bullseye/sid \n \l
Linux version 4.14.180-oxnas-tld-1 (root@tldDebian) (gcc version 8.3.0 (Debian 8.3.0-6) ) #1 SMP PREEMPT Fri Nov 15 04:12:45 PST 2019
Re: Pogo V3 Pro internal Dual SD Card (USB 2.0) using mPCIe slot
November 17, 2020 01:34PM
did some mods on this while I had it open, replaced the serial cable, mounted a plug for the sata wiring, replaced rubberbands for external drives with velcro, added a usb wifi because of location( usually its hardwired ethernet cable)

first printenv:
OX820> printenv
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 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
bootcmd_uenvetenv=bootcmd_uenv usb start
bootdelay=10
bootdev=usb
device=0:1
devices=usb ide
disks=0 1 2 3
dtb_file=/boot/dts/ox820-pogoplug-pro.dtb
ethact=dwmac.40400000
ethaddr=00:25:31:01:28:06
if_netconsole=ping $serverip
init_ide=ide reset
init_mmc=mmc rescan
init_usb=usb start
ipaddr=10.10.5.100
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
mainlineLinux=yes
mtdids=nand0=41000000.nand
mtdparts=mtdparts=41000000.nand:14m(boot),-(data)
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=10.10.5.72
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=20 mtdparts=41000000.nand:14m(boot),-(data)
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
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=0
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
uimage_addr=0x60500000
uinitrd_addr=0x60e00000
usb_custom_params=zswap.enabled=1
usb_ready=usb_set_bootargs setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10
usb_ready_retry=15

Environment size: 2897/131068 bytes

going to add pics (will post later) with new layout as this is my working box and it is always more difficult doing major upgrades in case I mess it up!

learning is living! Echowarrior108



device pogoplug-pro v3

Debian GNU/Linux bullseye/sid \n \l
Linux version 4.14.180-oxnas-tld-1 (root@tldDebian) (gcc version 8.3.0 (Debian 8.3.0-6) ) #1 SMP PREEMPT Fri Nov 15 04:12:45 PST 2019
Re: Pogo V3 Pro internal Dual SD Card (USB 2.0) using mPCIe slot
November 17, 2020 03:44PM
Echowarrior108,

Quote

Debian GNU/Linux bullseye/sid \n \l
Linux version 4.14.180-oxnas-tld-1 (root@tldDebian) (gcc version 8.3.0 (Debian 8.3.0-6) ) #1 SMP PREEMPT Fri Nov 15 04:12:45 PST 2019

Running this rootfs (Debian-4.14.180-oxnas-tld-1-rootfs-bodhi.tar.bz2), you should aleady have fw_printenv. For whatever reason if it is not then:

apt-get install u-boot-tools

And when you have trouble logging in throug SSH, lthen connect serial wires and log in through serial console. dmesg or logread might show some info why SSH is not available.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Pogo V3 Pro internal Dual SD Card (USB 2.0) using mPCIe slot
November 17, 2020 04:38PM
ok thanks!

learning is living! Echowarrior108



device pogoplug-pro v3

Debian GNU/Linux bullseye/sid \n \l
Linux version 4.14.180-oxnas-tld-1 (root@tldDebian) (gcc version 8.3.0 (Debian 8.3.0-6) ) #1 SMP PREEMPT Fri Nov 15 04:12:45 PST 2019
Re: Pogo V3 Pro internal Dual SD Card (USB 2.0) using mPCIe slot
November 17, 2020 04:41PM
echowarrior108 Wrote:
-------------------------------------------------------
> did some mods on this while I had it open,
> replaced the serial cable, mounted a plug for the
> sata wiring, replaced rubberbands for external
> drives with velcro, added a usb wifi because of
> location( usually its hardwired ethernet cable)
>
> first printenv:
>
> OX820> printenv
> 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 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
> bootcmd_uenvetenv=bootcmd_uenv usb start
> bootdelay=10
> bootdev=usb
> device=0:1
> devices=usb ide
> disks=0 1 2 3
> dtb_file=/boot/dts/ox820-pogoplug-pro.dtb
> ethact=dwmac.40400000
> ethaddr=00:25:31:01:28:06
> if_netconsole=ping $serverip
> init_ide=ide reset
> init_mmc=mmc rescan
> init_usb=usb start
> ipaddr=10.10.5.100
> 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
> mainlineLinux=yes
> mtdids=nand0=41000000.nand
> mtdparts=mtdparts=41000000.nand:14m(boot),-(data)
> 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=10.10.5.72
> set_bootargs=setenv bootargs console=ttyS0,115200
> root=LABEL=rootfs rootdelay=20
> mtdparts=41000000.nand:14m(boot),-(data)
> 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
> 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=0
> 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
> uimage_addr=0x60500000
> uinitrd_addr=0x60e00000
> usb_custom_params=zswap.enabled=1
> usb_ready=usb_set_bootargs setenv bootargs
> console=ttyS0,115200 root=LABEL=rootfs
> rootdelay=10
> usb_ready_retry=15
> 
> Environment size: 2897/131068 bytes
> 
>
>
> going to add pics (will post later) with new
> layout as this is my working box and it is always
> more difficult doing major upgrades in case I mess
> it up!

Ok got some pics of this monster:)

first pic is the plug I robbed from my old security cam board, the next is the plug location before installing, third is the plug installed, more to come.

learning is living! Echowarrior108



device pogoplug-pro v3

Debian GNU/Linux bullseye/sid \n \l
Linux version 4.14.180-oxnas-tld-1 (root@tldDebian) (gcc version 8.3.0 (Debian 8.3.0-6) ) #1 SMP PREEMPT Fri Nov 15 04:12:45 PST 2019
Attachments:
open | download - securitymotherboard1.jpg (231 KB)
open | download - backofboardpreinstall1.jpg (339.9 KB)
open | download - backofboardinstalled1.jpg (282.3 KB)
Re: Pogo V3 Pro internal Dual SD Card (USB 2.0) using mPCIe slot
November 17, 2020 04:48PM
this is a continuation, the first is the power lead plugged in.
note: it is crucial that the red is 5v, the yellow is 12v and the black are both ground!


The third pic is of the back with the wiring coming out as well as the 2 5tb hdds attached, I did test the sata with an ssd drive which worked hyperfast!
but for now I have my original setup with the duel mpcie setup for rootfs.

Just wanted to make note on this little side project on my main box:)

learning is living! Echowarrior108



device pogoplug-pro v3

Debian GNU/Linux bullseye/sid \n \l
Linux version 4.14.180-oxnas-tld-1 (root@tldDebian) (gcc version 8.3.0 (Debian 8.3.0-6) ) #1 SMP PREEMPT Fri Nov 15 04:12:45 PST 2019
Attachments:
open | download - SATApowerpluggedin1.jpg (263.4 KB)
open | download - top of boardwired1.jpg (336.2 KB)
open | download - back complete1.jpg (151 KB)
Re: Pogo V3 Pro internal Dual SD Card (USB 2.0) using mPCIe slot
November 17, 2020 10:11PM
bodhi, u-boot tools shows as already installed, tried fw_printenv and still the same issue. not sure how to get it to work:)

learning is living! Echowarrior108



device pogoplug-pro v3

Debian GNU/Linux bullseye/sid \n \l
Linux version 4.14.180-oxnas-tld-1 (root@tldDebian) (gcc version 8.3.0 (Debian 8.3.0-6) ) #1 SMP PREEMPT Fri Nov 15 04:12:45 PST 2019
Re: Pogo V3 Pro internal Dual SD Card (USB 2.0) using mPCIe slot
November 17, 2020 11:06PM
echowarrior108,

> bodhi, u-boot tools shows as already installed,
> tried fw_printenv and still the same issue. not
> sure how to get it to work:)

Perhaps your shell PATH env was messed up. See if the binary is there:

ls -l /usr/bin/fw_printenv

And then execute it using full path:

/usr/bin/fw_printenv

And to check if you shell PATH is OK or was it corrupted by something:

echo $PATH

The PATH variable should include /usr/bin/. Something like this:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Pogo V3 Pro internal Dual SD Card (USB 2.0) using mPCIe slot
November 18, 2020 03:58AM
here is what I got:


# ls -l /usr/bin/fw_printenv      
ls: cannot access '/usr/bin/fw_printenv': No such file or directory                                                         


# echo $PATH
/root/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

learning is living! Echowarrior108



device pogoplug-pro v3

Debian GNU/Linux bullseye/sid \n \l
Linux version 4.14.180-oxnas-tld-1 (root@tldDebian) (gcc version 8.3.0 (Debian 8.3.0-6) ) #1 SMP PREEMPT Fri Nov 15 04:12:45 PST 2019
Re: Pogo V3 Pro internal Dual SD Card (USB 2.0) using mPCIe slot
November 18, 2020 04:47PM
So for whatever reason, the binary was deleted after you've installed u-boot-tools. Reinstall it as,

apt-get remove u-boot-tools
apt-get install u-boot-tools

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Pogo V3 Pro internal Dual SD Card (USB 2.0) using mPCIe slot
November 18, 2020 06:56PM
Probably something I did early on when I first started, just hadn't had a need to try it for a long time mainly because I mostly use serial for almost everything, in fact all my devices have same issue and since they were copies of the original I bet I screwed it up when you first helped me get it up and running and I never tried it again,lol

will I need to reboot to make it work?
I got something running that is taking forever to get done...:)

learning is living! Echowarrior108



device pogoplug-pro v3

Debian GNU/Linux bullseye/sid \n \l
Linux version 4.14.180-oxnas-tld-1 (root@tldDebian) (gcc version 8.3.0 (Debian 8.3.0-6) ) #1 SMP PREEMPT Fri Nov 15 04:12:45 PST 2019
Re: Pogo V3 Pro internal Dual SD Card (USB 2.0) using mPCIe slot
November 18, 2020 07:17PM
No need to reboot when you install a Debian package. It should work right away.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Pogo V3 Pro internal Dual SD Card (USB 2.0) using mPCIe slot
November 19, 2020 08:14AM
it was still a no go, same issue.However no crash since last week!The crash may be router related:)

learning is living! Echowarrior108



device pogoplug-pro v3

Debian GNU/Linux bullseye/sid \n \l
Linux version 4.14.180-oxnas-tld-1 (root@tldDebian) (gcc version 8.3.0 (Debian 8.3.0-6) ) #1 SMP PREEMPT Fri Nov 15 04:12:45 PST 2019



Edited 2 time(s). Last edit at 11/19/2020 09:47AM by echowarrior108.
Re: Pogo V3 Pro internal Dual SD Card (USB 2.0) using mPCIe slot
November 19, 2020 05:24PM
Since your system is on SD card and your system has been running for so long, I guess your SD card is corrupt already. When I ran debian on my dockstar / kingston 1GB flash drive, the usb flash drive could last for about one year...Since I played with Raspberry pi since 2015(?), I had about 5 or 6 corrupt micro SD cards.

Last time when I had similar error on my dockstar / kingston flash drive, I shut it down and took the kingston flash drive to a Linux computer to fsck. Linux told me it was fixed and I was never able to boot the dockstar with the flash drive . :P



Edited 1 time(s). Last edit at 11/19/2020 05:31PM by daviddyer.
Re: Pogo V3 Pro internal Dual SD Card (USB 2.0) using mPCIe slot
November 19, 2020 05:45PM
I agreed with David. Could be the SD card has errors that must be fsck'ed.

And using the SD card for rootfs, one must follow the same precaution as using USB rootfs (see Wiki thread).

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Pogo V3 Pro internal Dual SD Card (USB 2.0) using mPCIe slot
November 19, 2020 06:04PM
I'm gonna run a fresh install from the sata setup and then boot from that and test the sd fsck the original card and see if it shows any issues, thanks for feedback!

learning is living! Echowarrior108



device pogoplug-pro v3

Debian GNU/Linux bullseye/sid \n \l
Linux version 4.14.180-oxnas-tld-1 (root@tldDebian) (gcc version 8.3.0 (Debian 8.3.0-6) ) #1 SMP PREEMPT Fri Nov 15 04:12:45 PST 2019
Re: Pogo V3 Pro internal Dual SD Card (USB 2.0) using mPCIe slot
November 20, 2020 09:23PM
Just did an fsck as suggested :


~# fsck /dev/sda1
fsck from util-linux 2.36
e2fsck 1.45.6 (20-Mar-2020)
rootfs: clean, 177162/3899392 files, 4713678/15591680 blocks

also went deeper with:

sudo badblocks -nsv /dev/sda1
Checking for bad blocks in non-destructive read-write mode
From block 0 to 62366719
Checking for bad blocks (non-destructive read-write test)
Testing with random pattern: done                                                 
Pass completed, 0 bad blocks found. (0/0/0 errors)


took 6 hours ....

all is still good with the drive. I highly recommend Sandisk:)

Still no fw-printenv though, started new topic regarding this issue.
https://forum.doozan.com/read.php?3,111469


thanks guys!

learning is living! Echowarrior108



device pogoplug-pro v3

Debian GNU/Linux bullseye/sid \n \l
Linux version 4.14.180-oxnas-tld-1 (root@tldDebian) (gcc version 8.3.0 (Debian 8.3.0-6) ) #1 SMP PREEMPT Fri Nov 15 04:12:45 PST 2019



Edited 2 time(s). Last edit at 11/21/2020 10:17AM by echowarrior108.
Re: Pogo V3 Pro internal Dual SD Card (USB 2.0) using mPCIe slot
November 22, 2020 08:34PM
No crashes since re installing uboot. glad to get past the issue and see how long this will run till the drive actually quits. I am now running a backup straight to an sata drive which is my new failsafe, if the mpcie quits I can quickly get up and running on sata without losing anything. So for now all is good again!!

learning is living! Echowarrior108



device pogoplug-pro v3

Debian GNU/Linux bullseye/sid \n \l
Linux version 4.14.180-oxnas-tld-1 (root@tldDebian) (gcc version 8.3.0 (Debian 8.3.0-6) ) #1 SMP PREEMPT Fri Nov 15 04:12:45 PST 2019
Author:

Your Email:


Subject:


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