Welcome! Log In Create A New Profile

Advanced

OpenWRT on Pogoplug Pro / V3 - Need Help Making U-boot Work

Posted by LeggoMyEggo 
Re: OpenWRT on Pogoplug Pro / V3 - Need Help Making U-boot Work
April 07, 2015 10:45PM
@habibie - You've got serial console and you have a stock Pogoplug so load the OpenWRT u-boot and firmware file (rootfs, same thing) following the instructions over at the OpenWRT forum. If it doesn't work out, you can easily overwrite the OpenWRT u-boot file with bodhi's latest u-boot and then go from there.
Re: OpenWRT on Pogoplug Pro / V3 - Need Help Making U-boot Work
April 08, 2015 04:35PM
@LeggoMyEggo

I had that thought too.
Re: OpenWRT on Pogoplug Pro / V3 - Need Help Making U-boot Work
April 09, 2015 10:40PM
FYI - I managed to boot OpenWRT using bodhi's uboot.

I'll try to post some instructions later tonight or tomorrow.
Re: OpenWRT on Pogoplug Pro / V3 - Need Help Making U-boot Work
April 09, 2015 11:43PM
grayman4hire Wrote:
-------------------------------------------------------
> FYI - I managed to boot OpenWRT using bodhi's
> uboot.
>
> I'll try to post some instructions later tonight
> or tomorrow.

Were you able to "upgrade the firmware" (in OpenWRT speak) as well?
Re: OpenWRT on Pogoplug Pro / V3 - Need Help Making U-boot Work
April 10, 2015 03:31PM
No "upgrade firmware" needed.

Figured out how to extract the rootfs and went with my original idea. Wi-fi isn't working though (maybe I don't have the right driver).

grayman4hire Wrote:
-------------------------------------------------------
> @LeggoMyEggo,
>
> I looked into OpenWRT on the Pogoplug Pro (OXNAS)
> last night and the current instructions is crazy
> complex.
>
> My thought is that we should be able to boot
> directly into OpenWRT using only bodhi's uboot,
> similar to how it's done on the Pogoplug V4 -
> http://blog.qnology.com/2015/02/openwrt-on-pogoplu
> g-mobile.html.
>
> The issue is there is no prebuilt openwrt oxnas
> rootfs tarball provided -
> https://downloads.openwrt.org/snapshots/trunk/oxna
> s/generic/.
>
> I'm not familar with some of the files provided,
> but I'm wondering if we can extract the rootfs
> from one of those files.
Re: OpenWRT on Pogoplug Pro / V3 - Need Help Making U-boot Work
April 10, 2015 04:29PM
grayman4hire Wrote:
-------------------------------------------------------
> Wi-fi isn't working though
> (maybe I don't have the right driver).

You are talking about the stock RT3090? Not surprised. If you post your blog tutorial soon, I'll test it with my Ath9k compatible wifi module (AR9485) and I would think it would work but won't know till I try.
Re: OpenWRT on Pogoplug Pro / V3 - Need Help Making U-boot Work
April 10, 2015 04:52PM
Yes, the stock RT3090. I have the right driver loaded - kmod-rt2x00-pci - but not working. My RT5730 USB works fine though.

Here you go - http://blog.qnology.com/2015/04/openwrt-on-pogoplug-v3oxnas-proclassic.html


LeggoMyEggo Wrote:
-------------------------------------------------------
> grayman4hire Wrote:
> --------------------------------------------------
> -----
> > Wi-fi isn't working though
> > (maybe I don't have the right driver).
>
> You are talking about the stock RT3090? Not
> surprised. If you post your blog tutorial soon,
> I'll test it with my Ath9k compatible wifi module
> (AR9485) and I would think it would work but won't
> know till I try.
Re: OpenWRT on Pogoplug Pro / V3 - Need Help Making U-boot Work
April 10, 2015 05:28PM
grayman4hire Wrote:
-------------------------------------------------------
0> Here you go -
> http://blog.qnology.com/2015/04/openwrt-on-pogoplu
> g-v3oxnas-proclassic.html

Awesome! Just confirming, with your setup, if you want to boot Debian you leave the Debian rootfs drive plugged in and if you wanna boot OpenWRT you make sure you don't have a USB disk labeled rootfs connected at boot time. Is that right? Of course you could always adjust the boot env's accordingly but this is your default right?



Edited 1 time(s). Last edit at 04/10/2015 05:29PM by LeggoMyEggo.
Re: OpenWRT on Pogoplug Pro / V3 - Need Help Making U-boot Work
April 10, 2015 07:02PM
Some preliminary feedback:

These commands wouldn't work for me when I telneted to the OpenWRT CLI:

#Reconfigure Network to DHCP Client
#disable dhcp server on lan
uci set dhcp.lan.ignore=1
uci commit dhcp
/etc/init.d/dnsmasq restart

#set wired ethernet interface to dhcp client
uci set network.lan.proto=dhcp
uci commit network

So I had to manually edit /etc/config/network with vi and comment change the settings for DHCP on eth0. Rebooted and the Pro showed up with dhcp address on my LAN. Then I could update and add all the packages you suggested. I could also login to LuCI.

Work In Progress: I bricked it.......I screwed up setting up the WAN/LAN/eth0/radio0 bridging in LuCI so I can't get a dhcp address on my LAN now. I've got to break out the serial console and correct the network stuff......................
Re: OpenWRT on Pogoplug Pro / V3 - Need Help Making U-boot Work
April 10, 2015 08:57PM
What issues did you have with the uci commands?

You can mount the ubi partition from Debian to correct any network config issues versus using a serial connection.

LeggoMyEggo Wrote:
-------------------------------------------------------
> Some preliminary feedback:
>
> These commands wouldn't work for me when I
> telneted to the OpenWRT CLI:
>
>
> #Reconfigure Network to DHCP Client
> #disable dhcp server on lan
> uci set dhcp.lan.ignore=1
> uci commit dhcp
> /etc/init.d/dnsmasq restart
> 
> #set wired ethernet interface to dhcp client
> uci set network.lan.proto=dhcp
> uci commit network
>
>
> So I had to manually edit /etc/config/network with
> vi and comment change the settings for DHCP on
> eth0. Rebooted and the Pro showed up with dhcp
> address on my LAN. Then I could update and add
> all the packages you suggested. I could also
> login to LuCI.
>
> Work In Progress: I bricked it.......I screwed up
> setting up the WAN/LAN/eth0/radio0 bridging in
> LuCI so I can't get a dhcp address on my LAN now.
> I've got to break out the serial console and
> correct the network stuff......................
Re: OpenWRT on Pogoplug Pro / V3 - Need Help Making U-boot Work
April 10, 2015 09:14PM
I can't get my Atheros AR9485 card to work. When I go to enable it in the LuCi interface, for some reason the system crashes and I have to reboot. Now I am going to try a Edimax EW-7811UN usb adapter and see how it goes.

Edit: Dabbled with the EW-7811UN. Bad sign, entered 'lsusb' and the terminal spewed about 5000 lines of every possible device I think you could connect to the thing. Sample below. This is still beyond my skill level. Gave up for the night :(

Duplicate product spec at line 6860 product 000e:000a C2o45C-Bter
Duplicate product spec at line 6861 product 000e:0a1a raParadiseo2K46riBter
Duplicate product spec at line 6862 product 000e:0a13 BluetL2r47riBter
Duplicate product spec at line 6863 product 000e:0a13 BluetL2r5eriBter
Duplicate product spec at line 6864 product 000e:0a13 BluetL2100 CBter
Duplicate product spec at line 6866 product 000e:000a C2132ReANYCOM Bter vic-2og/2aito2110
Duplicate product spec at line 6870 product 0ebc:000a C2122 CBter
Duplicate product spec at line 6872 product 0ebc:000a d Cglet   2130 c2e45dBter
Duplicate product spec at line 6873 product 0ebc:000a 2.0rKVM-UHE 3 Bluem33 KetrtwoWfiltheto213n C2e45dBter
Duplicate product spec at line 6874 product 0ebc:000a 2.0r3 Bluem33 KetrtwoWfiltheto2145
Duplicate vendor spec at line 6875 vendor 0ebc M2e45B (BDC-2.1) [Bter
Duplicate product spec at line 6876 product 0ebc:0a1a raParadis]to2148 FBCM92K46DG-CL1ROM Bter
Duplicate product spec at line 6877 product 0ebc:000a 2.15gn Wire A21aiceBCM2e46iBter
Duplicate product spec at line 6879 product 0ebc:000a tL2154 FBCM92K46DG-CL1ROM Bter
Duplicate product spec at line 6880 product 0ebc:000a 2.15UHE 3 Cglet   217d rHP Bter
Unknown line at line 6881
Duplicate vendor spec at line 6882 vendor 0ebc M2e45B (BDC-2.1) A2198icBter
Duplicate product spec at line 6883 product 0ebc:000a 3.0r3 Blue A219b  Bter
Duplicate product spec at line 6884 product 0ebc:000a 2.153 Blue A21b1 rHP Bter
Duplicate product spec at line 6885 product 0ebc:000a i u4 to21b4
Duplicate vendor spec at line 6886 vendor 0ebc M2e70 Bter
Duplicate product spec at line 6887 product 0ebc:000a 2.15+ EDRto21b9
Duplicate vendor spec at line 6888 vendor 0ebc M2e70 Bter
Duplicate product spec at line 6889 product 0ebc:000a 2.15+ EDRto21ba
Duplicate vendor spec at line 6890 vendor 0ebc M2e70 Bter
Duplicate product spec at line 6891 product 0ebc:000a 2.15+ EDRto21bb
Duplicate vendor spec at line 6892 vendor 0ebc M2e70 Bter
Duplicate product spec at line 6893 product 0ebc:000a 2.15+ EDRto21bc
Duplicate vendor spec at line 6894 vendor 0ebc M2e70 Bter
Duplicate product spec at line 6895 product 0ebc:000a 2.15+ EDRto21bd
Duplicate vendor spec at line 6896 vendor 0ebc M2e70 Bter
Duplicate product spec at line 6897 product 0ebc:000a 2.15+ EDRto21d7 bBCM43142 Bter
Duplicate product spec at line 6898 product 0ebc:000a 4.ito21e1 rHP vmot0c4  SoftSail  gto21e3 rHP vmot0c4  Valbntin to21e6riBCM2e702 Bter
Duplicate product spec at line 6899 product 0ebc:000a 4.i [ThinkPed] A21e8riBCM2e702A0 Bter
Duplicate product spec at line 6900 product 0ebc:000a 4.ito21f1 rHP vmot0c4  Bumc4  Beed422be
Duplicate vendor spec at line 6901 vendor 0ebc M2e70 Bter
Duplicate product spec at line 6902 product 0ebc:000a 3.0r+ HS
Duplicate vendor spec at line 6904 vendor 0ebc M2e46B1 USMM2.0rHub (pK.
Unknown line at line 6905
Duplicate product spec at line 6906 product 0ebc:000a )
Duplicate product spec at line 6907 product 0ebc:0045 g2  12  KU-8 (B   00IIem NetwoWSubc Cos)
Duplicate product spec at line 6908 product 0ebc:0045 g3rioiuse (B      00IIem NetwoWSubc Cos)
Duplicate vendor spec at line 6910 vendor 0ebc M588PrSecure
Duplicate vendor spec at line 6911 vendor 000a pplisual Ceberoc11acr F583SysBCM588PrSecure
Duplicate vendor spec at line 6912 vendor 000a pplisual Ceberoc11acrm33 Kefm 5thpeuchiswip  senacr F5832ysBCM588PrSecure
Duplicate vendor spec at line 6913 vendor 000a pplisual Ceberoc11acrm33 Kefm 5thpeuchitouch senacr F5833ysBCM588PrSecure
Duplicate vendor spec at line 6914 vendor 000a pplisual Ceberoc11acrm33 Kesecure
Unknown line at line 6915
Duplicate vendor spec at line 6916 vendor 000e ZebDigiuog9
Duplicate vendor spec at line 6917 vendor 000e LP2844Wceuch Le  og81icGK420t LabalWceuch Le     og8bdeHC130 wristbc.
Unknown line at line 6918
Duplicate vendor spec at line 6919 vendor 000e uch Lela6h, MPMannsl
Duplicate vendor spec at line 6920 vendor 0001 priMPManMMd-F4icMP3
Duplicate vendor spec at line 6922 vendor 000e Tdaide-08echn0a69ic hrTda atestar Sy a6briGreeCohous 50lectronics C1 MCodBact Z Connt/Wm33 KeMde)p       1003ap0ogf MZ Conreskn a6c
Duplicate vendor spec at line 6923 vendor 000e Iem grated Circuit-  Northstar Sy0a6dicUPS Manuetwiur  gt0a6eicBenwih la6f M50 ePb9  Rainbep TechnL0400 CXanbo  0a70icIem Ntronic I(Gam  b9  Rainbea0a71 MVIP Tlor Te  Rainbow bUSATechnolcs C1 MVP485M
Duplicate vendor spec at line 6924 vendor 000e uch Lela72t      anwa Denahiela73
Duplicate vendor spec at line 6925 vendor 000e Mdckie5Desighsto og2riXD-2 [Spike]l0a7d rNSTLstar Sy0a7eSDOctag  -  North-08echn0a8 deRexo -  MicrochexElechctroni0a81ic hesencE2  Chicony ElectnCa13Sys12  KU-8an0133ys12  KU-8an02g3rioiuse L02g5riPS/2P12  KU-8+oiuse 00 Ethetol701 CUSMMMiosile Launchhetoffh1 s 802.11abMiosile Launchhet0a82 sSyscanns46g0
Duplicate vendor spec at line 6926 vendor 000e TravedS MF 46g/464t0a83icNext onystar Sy0a84reMdui Innovaalve Perip0B  Isl0a85trIdexx Labst0a86deNITGen  Tectroni0a8ddePiwiureraly0a8e eJapaniAviaal CoE2  Chicony 70  Broy, laria2c11icFiltheMCADSL  ForcJAE XMCnt/Wy0a90 CCandy b9  Rainbex T  Clarioa91 CGlobi        0c2b9  Rainbep TechnL38o1 rT0rgus PAKPar3ibiuseloa92icEGO SYSorthstar Sypoc11icSYSIWaveTermin I(U2Anslo21riGIGAemoteCar31riGIGAemotAGics 53riA01  Taakr8  op    10 A0061 s avetermin I(U24to0o71 MMAYA EX7tol091 CMaya 44to0ob1 MMAYA EX5ic1aC0icMIDI Maaeto1
Duplicate vendor spec at line 6927 vendor 0001 priRoMI/Oto1r20icM4U A1 3 reM8U A1 90 C12 araPara49io10a0ri12 araPara25l0a93riC Te  Rainbow bABlCarg2ReC-eenc10 Caec5 -oyeencLightto0r/dicInputcPennsl
Duplicate vendor spec at line 6928 vendor 0001 priC-eenc20 A0a93riPayeenl0a94
Duplicate vendor spec at line 6929 vendor 000e Iem Nsensel0aa3caLava EldBes MxMfg.star Sy0aa4De3 BelcooE2 kChicokn aa5ri mrstcIem Ntronic I(DePix SnLorg2Reirock! 500 S 1632to08o1 rMP3
Duplicate product spec at line 6930 product 000e:ffffffff M
Duplicate vendor spec at line 6931 vendor 000e rcepal CoDePix Sctronics1gn Chercu4 s Jukeboxto15g1ic    153e 'n' Go HDcrct3D 0aa7
Duplicate vendor spec at line 6932 vendor 000e WincorcNixdorfcIem Ntronic I(GmbH        l130icPOSP12  KU-8, TA58P-KVMics1gn CPOSP12  KU-8, TA85P-KVMics1g2icPOSP12  KU-8, TA59-KVMics1g3icPOSP12  KU-8, TA60-KVMics1g4
Duplicate vendor spec at line 6933 vendor 000e SNIkey 12  KU-8, SNI12 -KB-KVMics2C0icOpe33aornresp      10, BA63-KVMics2C1icOpe33aornresp       10, BA66-KVMics2C2icOpe33aornresp       10 &rS MFnss, Xi heck-BA63an02g3riOpe33aornresp 10 &rS MFnss, Xi heck-BA66 L02g4riGraphony Ope33aornresp        10, BA63GVnsl300 CPOSPPeuch L (peuch L c Cos ass S, TH210nLo301 CvOSPPeuch L (naalve ass S, TH210nLo302 CPOSPPeuch L (peuch L c Cos ass S, TH220 Ca3h3icvOSPPeuch L (naalve ass S, TH220 Ca3h4icvOSPPeuch L, TH230nLo305-8LotterexPeuch L, XiPeuch04f8ta 3c6 M
Unknown line at line 6934
Duplicate vendor spec at line 6935 vendor 000e vOSPPeuch L (naalve ass S, TH32p F0308 M
Unknown line at line 6936
Duplicate vendor spec at line 6937 vendor 000e vOSPPeuch L (naalve ass S, TH42p F030aicvOSPPeuch L, TH2i0Bgi0400 CLotterexS MFnss, Xiscan Stoa4 1deLotterexS MFnss, Xiscan 3eoo402 M0rogrammac4  bagnealc Swip   SmartMedia, MSRP-KVMics5g0
Duplicate vendor spec at line 6938 vendor 000e IDE100 Etheg     05 n ChubPPeuch L Iem Netwolsl5g2  hubPSNI12 s12  KU-8an43h4icBankingxPeuch L TP07an43h5icBankingxPeuch L TP07c
Duplicate vendor spec at line 6940 vendor 000e WNeCent  I(Spectb  E Elan Mons laa8DeTriGem EldBes Mstar Sypoc6icmTG 11Mbps WLk Wbea  00 Etheg   1aCSysDream TdboM410C L3og2riInkJetrColor ceuch Le      8og1 0TG_iMON A8og2ReTG_KLOSS Far/1 0TG_X2SLaog2icTGVFD_KLOSS FffdariiMON_VFD laa9riBarTdt cD TSypfh1brio-20chMbD 6242 MP3



Edited 3 time(s). Last edit at 04/10/2015 09:57PM by LeggoMyEggo.
Re: OpenWRT on Pogoplug Pro / V3 - Need Help Making U-boot Work
April 12, 2015 04:54PM
@grayman4hire - FYI, while I couldn't get mpci-e wifi working yet, it does appear that a TP-LINK TL-WN823N USB 300M adapter (kmod-rtl8192cu) does work and is recognized by OpenWRT. I had to remove the RT2800 associated packages to get it recognized. Beyond that, I am struggling with all the OpenWRT quirks so I am having to reboot frequently because networking keeps breaking on me. I'm sure if I knew more about OpenWRT it wouldn't be so bad. Unfortunately there aren't as many resources for OpenWRT newbie help it seems so it's learning by 'breaking and bricking' or in other words the hard way.
Re: OpenWRT on Pogoplug Pro / V3 - Need Help Making U-boot Work
April 23, 2015 01:13AM
I tried Gray's tutorial for OpenWRT installing off Debian stick on Pogoplug Pro, and it doesn't seem to work. Lights flash, but i can't get into it.
I'm real grateful for the obvious safeguards you have in place, as Debian stick will still boot. But i don't know where I went wrong at the tutorial.

The second time trying, I copied most of the page, from the command after "cat /proc/mtd" to the Pro wireless, as that's what I have on board. I had no additional wireless adapters plugged in or anything.

But yeah, super cool you have it rigged to boot Debian if USB stick is plugged-in, saved the day. I still don't know my u-boot terminology. But it's strange the lights act like something intelligent is going on in there. The thought just occurred to me, maybe it would be a troubleshooter if I unplug the stock Pogoplug wireless adapter from the mpcie.

There's a lot of weak points at my end here though, my Windows had that alert it couldn't find internet when hooking my PC directly up to the OpenWRT reboot, and I used both Windows Telnet and PuTTY with Telnet in various schemes such as straight cable, through Rosewill router with DHCP turned off (but Rosewill's IP is set to 192.168.178.1 [that usually feeds into the DSL modem which is 192.168.1.1 - that was turned off when doing the Telnet) and of course I was trying to get into 192.168.1.1

No hurry if you know of a solution or something - again that alternative boot you got in there is crazy cool. :-)

=========
-= Cloud 9 =-



Edited 1 time(s). Last edit at 04/23/2015 01:16AM by JoeyPogoPlugE02.
Re: OpenWRT on Pogoplug Pro / V3 - Need Help Making U-boot Work
April 23, 2015 09:20PM
JoeyPogoPlugE02 Wrote:
-------------------------------------------------------
> I tried Gray's tutorial for OpenWRT installing off
> Debian stick on Pogoplug Pro, and it doesn't seem
> to work. Lights flash, but i can't get into it.
> I'm real grateful for the obvious safeguards you
> have in place, as Debian stick will still boot.
> But i don't know where I went wrong at the
> tutorial.
>
> The second time trying, I copied most of the page,
> from the command after "cat /proc/mtd" to
> the Pro wireless, as that's what I have on board.
> I had no additional wireless adapters plugged in
> or anything.
>
> But yeah, super cool you have it rigged to boot
> Debian if USB stick is plugged-in, saved the day.
> I still don't know my u-boot terminology. But it's
> strange the lights act like something intelligent
> is going on in there. The thought just occurred to
> me, maybe it would be a troubleshooter if I unplug
> the stock Pogoplug wireless adapter from the
> mpcie.
>
> There's a lot of weak points at my end here
> though, my Windows had that alert it couldn't find
> internet when hooking my PC directly up to the
> OpenWRT reboot, and I used both Windows Telnet and
> PuTTY with Telnet in various schemes such as
> straight cable, through Rosewill router with DHCP
> turned off (but Rosewill's IP is set to
> 192.168.178.1 [that usually feeds into the DSL
> modem which is 192.168.1.1 - that was turned off
> when doing the Telnet) and of course I was trying
> to get into 192.168.1.1
>
> No hurry if you know of a solution or something -
> again that alternative boot you got in there is
> crazy cool. :-)

@JoeyPogoPlugE02,

First question would be, did you use my Debian tutorial referenced in the OpenWRT tutorial? Just want to understand your starting point.

Also, did you understand the below statement? During initial setup of OpenWRT, your computer and the Pogoplug should be directly connected. Your existing router and/or cable modem configuration does not come into play. When directly connected with the Pogoplug, your computer (assuming your using DHCP) should receive and IP Address from the OpenWRT Pogoplug. If you want to use static IP, set your computer to a 192.168.1.x IP Address.You then should be able to telnet into the Pogoplug at 192.168.1.1 and reconfigure the Pogoplug to act as a DHCP client. At which point your can now reconnect the Pogoplug and your computer to your router.

Quote

At this point, we're ready to boot into OpenWRT. Note that by default, OpenWRT will default to 192.168.1.1 and will act as a DHCP Server. Plug a network cable from your computer directly into the Pogoplug and power it on. You should now be able to Telnet into the Pogoplug at 192.168.1.1 (username and password not required). Note that SSH is disabled and will automatically start after a root password is set.

Post your uboot env (fw_printenv) and netconsole (setup if needed) output. A serial connection would be even better.

And/or post your complete OpenWRT installation log to make sure all the commands completed ok.

-grayman4hire
======================================
Pogoplug V2 and V3 Serial Connection
Tutorial - Pogoplug v4 (Series 4 and Mobile) with Linux (Debian or Arch)

OpenWRT on Pogoplug Mobile
Tutorial - Pogoplug E02/V4 with Arch Linux ARM
Hacking the Pogoplug v3/Oxnas (Pro/Classic) with Debian

OpenWRT on Pogoplug v3/Oxnas (Pro/Classic)




Edited 1 time(s). Last edit at 04/23/2015 11:34PM by grayman4hire.
Re: OpenWRT on Pogoplug Pro / V3 - Need Help Making U-boot Work
April 24, 2015 12:18AM
I just copy-pasted the whole works up to the wireless, and avoided the Pro part, opting for the classic. Then copy-pasted to poweroff.
This might work for all I know, but if not I'll try again tomorrow. I have this habit of doing the wrong things after bedtime lol

-update- no, almost seems like I need a crossover cable when direct connecting. Says it's trying to connect, then seems like it does, then the restless icon moves around trying to network. I've tried setting iv4 to "obtain IP automatically" as well as setting my Windows IP manually. As for telnet, I'm trying the built-in Microsoft Telnet as well at PuTTY set to Telnet on port 23, trying for 192.168.1.1
It wouldn't' surprise me if it actually installed, as the lights blink "intelligently". I may be days away from getting the proper cable for serial port, and forgive me if I have to attend to life's other demands for a day or so. Anyway here's the cut and paste from copy pasting:

login as: root
root@192.168.178.102's password:
Linux DebianPlug 3.18.5-oxnas-tld-1 #2 SMP PREEMPT Thu Feb 12 11:17:40 PST 2015 armv6l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Apr 24 00:00:35 2015 from 192.168.178.100
root@DebianPlug:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00e00000 00020000 "boot"
mtd1: 07200000 00020000 "data"
root@DebianPlug:~# #Verify MTD partition
root@DebianPlug:~# cat /proc/mtd
#root@debian:~# cat /proc/mtd
#dev: size erasesize name
#mtd0: 00e00000 00020000 "boot"
#mtd1: 07200000 00020000 "data"

dev:    size   erasesize  name
mtd0: 00e00000 00020000 "boot"
mtd1: 07200000 00020000 "data"
#download firmware/nand utilities
root@DebianPlug:~# #root@debian:~# cat /proc/mtd
root@DebianPlug:~# #dev: size erasesize name
root@DebianPlug:~# #mtd0: 00e00000 00020000 "boot"
root@DebianPlug:~# #mtd1: 07200000 00020000 "data"
apt-get install squashfs-tools
root@DebianPlug:~#
root@DebianPlug:~# #download firmware/nand utilities
mv openwrt-oxnas-zImage zImage
root@DebianPlug:~# cd /tmp
wget http://download.qnology.com/pogoplug/oxnas/ox820-pogoplug-classic.dtb

sync
cd /
root@DebianPlug:/tmp# wget http://download.qnology.com/pogoplug/v4/fw_printenv
/tmp/fw_setenv mountubi 'ubi part data; ubifsmount ubi0:rootfs'
/tmp/fw_setenv loadubizimage 'ubifsload ${loadaddr} ${zimage}'
/tmp/fw_setenv loadubifdt 'ubifsload ${fdt_addr} ${fdt_file_ubi}'
/tmp/fw_setenv bootzubi 'echo Booting from nand ...; run setargsubi; bootz ${loadaddr} - ${fdt_addr};'
/tmp/fw_setenv setargsubi 'setenv bootargs console=ttyS0,115200n8 ubi.mtd=1 root=ubi0:rootfs rw rootfstype=ubifs rootwait ${mtdparts}'
--2015-04-24 01:13:14--  http://download.qnology.com/pogoplug/v4/fw_printenv
Resolving download.qnology.com (download.qnology.com)... 162.252.240.221
Connecting to download.qnology.com (download.qnology.com)|162.252.240.221|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 668497 (653K) [text/plain]
Saving to: `fw_printenv'

100%[======================================>] 668,497     81.5K/s   in 8.3s

2015-04-24 01:13:24 (78.5 KB/s) - `fw_printenv' saved [668497/668497]

root@DebianPlug:/tmp# wget http://download.qnology.com/pogoplug/v4/fw_setenv
--2015-04-24 01:13:24--  http://download.qnology.com/pogoplug/v4/fw_setenv
Resolving download.qnology.com (download.qnology.com)... 162.252.240.221
Connecting to download.qnology.com (download.qnology.com)|162.252.240.221|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 668497 (653K) [text/plain]
Saving to: `fw_setenv'

100%[======================================>] 668,497     79.4K/s   in 8.7s

2015-04-24 01:13:34 (75.2 KB/s) - `fw_setenv' saved [668497/668497]

root@DebianPlug:/tmp# wget http://download.qnology.com/pogoplug/v4/ubiattach
--2015-04-24 01:13:34--  http://download.qnology.com/pogoplug/v4/ubiattach
Resolving download.qnology.com (download.qnology.com)... 162.252.240.221
Connecting to download.qnology.com (download.qnology.com)|162.252.240.221|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 18192 (18K) [text/plain]
Saving to: `ubiattach'

100%[======================================>] 18,192      85.0K/s   in 0.2s

2015-04-24 01:13:35 (85.0 KB/s) - `ubiattach' saved [18192/18192]

root@DebianPlug:/tmp# wget http://download.qnology.com/pogoplug/v4/ubimkvol
--2015-04-24 01:13:35--  http://download.qnology.com/pogoplug/v4/ubimkvol
Resolving download.qnology.com (download.qnology.com)... 162.252.240.221
Connecting to download.qnology.com (download.qnology.com)|162.252.240.221|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 21652 (21K) [text/plain]
Saving to: `ubimkvol'

100%[======================================>] 21,652      86.0K/s   in 0.2s

2015-04-24 01:13:37 (86.0 KB/s) - `ubimkvol' saved [21652/21652]

root@DebianPlug:/tmp# wget http://download.qnology.com/pogoplug/v4/ubiformat
--2015-04-24 01:13:37--  http://download.qnology.com/pogoplug/v4/ubiformat
Resolving download.qnology.com (download.qnology.com)... 162.252.240.221
Connecting to download.qnology.com (download.qnology.com)|162.252.240.221|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 54332 (53K) [text/plain]
Saving to: `ubiformat'

100%[======================================>] 54,332      81.0K/s   in 0.7s

2015-04-24 01:13:39 (81.0 KB/s) - `ubiformat' saved [54332/54332]

root@DebianPlug:/tmp#
root@DebianPlug:/tmp# #make executable
root@DebianPlug:/tmp# chmod +x fw_printenv fw_setenv ubiattach ubimkvol ubiformat
root@DebianPlug:/tmp#
root@DebianPlug:/tmp# #format mtd1 (data)
root@DebianPlug:/tmp# /tmp/ubiformat /dev/mtd1
ubiformat: mtd1 (nand), size 119537664 bytes (114.0 MiB), 912 eraseblocks of 131072 bytes (128.0 KiB), min. I/O size 2048 bytes
libscan: scanning eraseblock 911 -- 100 % complete
ubiformat: 912 eraseblocks have valid erase counter, mean value is 2
ubiformat: formatting eraseblock 911 -- 100 % complete
root@DebianPlug:/tmp#
root@DebianPlug:/tmp# #attach
root@DebianPlug:/tmp# /tmp/ubiattach /dev/ubi_ctrl -m 1
UBI device number 0, total 912 LEBs (117669888 bytes, 112.2 MiB), available 888 LEBs (114573312 bytes, 109.3 MiB), LEB size 129024 bytes (126.0 KiB)
root@DebianPlug:/tmp# /tmp/ubimkvol /dev/ubi0 -m -N rootfs
Set volume size to 114573312
Volume ID 0, size 888 LEBs (114573312 bytes, 109.3 MiB), LEB size 129024 bytes (126.0 KiB), dynamic, name "rootfs", alignment 1
root@DebianPlug:/tmp#
root@DebianPlug:/tmp# #mount ubi rootfs to /tmp/ubi
root@DebianPlug:/tmp# mkdir /tmp/ubi
root@DebianPlug:/tmp# mount -t ubifs ubi0:rootfs /tmp/ubi
root@DebianPlug:/tmp#
root@DebianPlug:/tmp# #We're using the snapshot trunk release.
root@DebianPlug:/tmp# #There is no rootfs tarball, so we'll extract
root@DebianPlug:/tmp# #it from the squashfs sysupgrade tar
root@DebianPlug:/tmp# cd /tmp
root@DebianPlug:/tmp# wget http://downloads.openwrt.org/snapshots/trunk/oxnas/generic/openwrt-oxnas-pogoplug-pro-squashfs-sysupgrade.tar
--2015-04-24 01:13:42--  http://downloads.openwrt.org/snapshots/trunk/oxnas/generic/openwrt-oxnas-pogoplug-pro-squashfs-sysupgrade.tar
Resolving downloads.openwrt.org (downloads.openwrt.org)... 78.24.191.177
Connecting to downloads.openwrt.org (downloads.openwrt.org)|78.24.191.177|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3624960 (3.5M) [application/octet-stream]
Saving to: `openwrt-oxnas-pogoplug-pro-squashfs-sysupgrade.tar'

100%[======================================>] 3,624,960   72.0K/s   in 64s

2015-04-24 01:14:47 (55.4 KB/s) - `openwrt-oxnas-pogoplug-pro-squashfs-sysupgrade.tar' saved [3624960/3624960]

root@DebianPlug:/tmp#
root@DebianPlug:/tmp# #extract
root@DebianPlug:/tmp# tar -xvf openwrt-oxnas-pogoplug-pro-squashfs-sysupgrade.tar
sysupgrade-pogoplug-pro/
sysupgrade-pogoplug-pro/CONTROL
sysupgrade-pogoplug-pro/kernel
sysupgrade-pogoplug-pro/root
root@DebianPlug:/tmp#
root@DebianPlug:/tmp# #unsquashfs
root@DebianPlug:/tmp# apt-get install squashfs-tools
Reading package lists... Done
Building dependency tree
Reading state information... Done
squashfs-tools is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@DebianPlug:/tmp# unsquashfs sysupgrade-pogoplug-pro/root
Parallel unsquashfs: Using 2 processors
584 inodes (583 blocks) to write

[===============================================================\] 583/583 100%
created 346 files
created 58 directories
created 237 symlinks
created 1 devices
created 0 fifos
root@DebianPlug:/tmp#
root@DebianPlug:/tmp# #move extracted rootfs to ubi
root@DebianPlug:/tmp# mv squashfs-root/* /tmp/ubi
root@DebianPlug:/tmp#
root@DebianPlug:/tmp# #download kernel zImage
root@DebianPlug:/tmp# mkdir -p /tmp/ubi/boot
root@DebianPlug:/tmp# cd /tmp/ubi/boot
root@DebianPlug:/tmp/ubi/boot# wget http://downloads.openwrt.org/snapshots/trunk/oxnas/generic/openwrt-oxnas-zImage
--2015-04-24 01:14:53--  http://downloads.openwrt.org/snapshots/trunk/oxnas/generic/openwrt-oxnas-zImage
Resolving downloads.openwrt.org (downloads.openwrt.org)... 78.24.191.177
Connecting to downloads.openwrt.org (downloads.openwrt.org)|78.24.191.177|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1694408 (1.6M) [application/octet-stream]
Saving to: `openwrt-oxnas-zImage'

100%[======================================>] 1,694,408   74.7K/s   in 30s

2015-04-24 01:15:25 (54.3 KB/s) - `openwrt-oxnas-zImage' saved [1694408/1694408]

root@DebianPlug:/tmp/ubi/boot#
root@DebianPlug:/tmp/ubi/boot# #rename zImage file
root@DebianPlug:/tmp/ubi/boot# mv openwrt-oxnas-zImage zImage
root@DebianPlug:/tmp/ubi/boot#
root@DebianPlug:/tmp/ubi/boot#
root@DebianPlug:/tmp/ubi/boot# #download fdt
root@DebianPlug:/tmp/ubi/boot# wget http://downloads.openwrt.org/snapshots/trunk/oxnas/generic/openwrt-oxnas-pogoplug-pro.dtb
--2015-04-24 01:15:25--  http://downloads.openwrt.org/snapshots/trunk/oxnas/generic/openwrt-oxnas-pogoplug-pro.dtb
Resolving downloads.openwrt.org (downloads.openwrt.org)... 78.24.191.177
Connecting to downloads.openwrt.org (downloads.openwrt.org)|78.24.191.177|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6993 (6.8K) [application/octet-stream]
Saving to: `openwrt-oxnas-pogoplug-pro.dtb'

100%[======================================>] 6,993       --.-K/s   in 0.07s

2015-04-24 01:15:26 (95.9 KB/s) - `openwrt-oxnas-pogoplug-pro.dtb' saved [6993/6993]

root@DebianPlug:/tmp/ubi/boot# wget http://download.qnology.com/pogoplug/oxnas/ox820-pogoplug-classic.dtb
--2015-04-24 01:15:26--  http://download.qnology.com/pogoplug/oxnas/ox820-pogoplug-classic.dtb
Resolving download.qnology.com (download.qnology.com)... 162.252.240.221
Connecting to download.qnology.com (download.qnology.com)|162.252.240.221|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7033 (6.9K) [text/plain]
Saving to: `ox820-pogoplug-classic.dtb'

100%[======================================>] 7,033       --.-K/s   in 0.07s

2015-04-24 01:15:28 (101 KB/s) - `ox820-pogoplug-classic.dtb' saved [7033/7033]

root@DebianPlug:/tmp/ubi/boot#
root@DebianPlug:/tmp/ubi/boot# sync
root@DebianPlug:/tmp/ubi/boot# cd /
root@DebianPlug:/# umount /tmp/ubi
root@DebianPlug:/#
root@DebianPlug:/# #Setup uBoot Environment
root@DebianPlug:/# #Cut and Paste this whole section
root@DebianPlug:/# /tmp/fw_setenv zimage '/boot/zImage'
root@DebianPlug:/# /tmp/fw_setenv loadaddr '0x60500000'
root@DebianPlug:/# /tmp/fw_setenv fdt_addr '0x62c00000'
root@DebianPlug:/# /tmp/fw_setenv loadubi 'echo Trying to boot from NAND ...;if run mountubi; then run loadubizimage;run loadubifdt;ubifsumount;run bootzubi;fi'
root@DebianPlug:/# /tmp/fw_setenv mountubi 'ubi part data; ubifsmount ubi0:rootfs'
root@DebianPlug:/# /tmp/fw_setenv loadubizimage 'ubifsload ${loadaddr} ${zimage}'
root@DebianPlug:/# /tmp/fw_setenv loadubifdt 'ubifsload ${fdt_addr} ${fdt_file_ubi}'
root@DebianPlug:/# /tmp/fw_setenv bootzubi 'echo Booting from nand ...; run setargsubi; bootz ${loadaddr} - ${fdt_addr};'
root@DebianPlug:/# /tmp/fw_setenv setargsubi 'setenv bootargs console=ttyS0,115200n8 ubi.mtd=1 root=ubi0:rootfs rw rootfstype=ubifs rootwait ${mtdparts}'
root@DebianPlug:/# #Non-Pro (use this if unsure)
root@DebianPlug:/# /tmp/fw_setenv fdt_file_ubi '/boot/ox820-pogoplug-classic.dtb'

#Setup boot order.
#USB first, then UBI/NAND
/tmp/fw_setenv dt_bootcmd_usb 'usb start; run dt_usb_bootcmd; usb stop'

/tmp/fw_setenv bootcmd 'run dt_bootcmd_usb; run loadubi; reset'

#poweroff Pogoplug and then remove USB flash drive.
poweroff
root@DebianPlug:/#
root@DebianPlug:/# #Setup boot order.
root@DebianPlug:/# #USB first, then UBI/NAND
root@DebianPlug:/# /tmp/fw_setenv dt_bootcmd_usb 'usb start; run dt_usb_bootcmd; usb stop'
root@DebianPlug:/#
root@DebianPlug:/# /tmp/fw_setenv bootcmd 'run dt_bootcmd_usb; run loadubi; reset'
root@DebianPlug:/#
root@DebianPlug:/# #poweroff Pogoplug and then remove USB flash drive.
root@DebianPlug:/# poweroff

Broadcast message from root@DebianPlug (pts/0) (Fri Apr 24 01:15:54 2015):
The system is going down for system halt NOW!
root@DebianPlug:/#

=========
-= Cloud 9 =-



Edited 1 time(s). Last edit at 04/24/2015 12:33AM by JoeyPogoPlugE02.
Re: OpenWRT on Pogoplug Pro / V3 - Need Help Making U-boot Work
April 24, 2015 11:20AM
JoeyPogoPlugE02 Wrote:
-------------------------------------------------------
> It wouldn't' surprise me if it actually installed,
> as the lights blink "intelligently". I may be days
> away from getting the proper cable for serial
> port, and forgive me if I have to attend to life's
> other demands for a day or so. Anyway here's the
> cut and paste from copy pasting:

The LED light will blink during bootup, but will shut off completely once booted into OpenWRT.

Post your uboot environment and netconsole logs. I think that is the best way to troubleshoot.

Also, probably best to run through the tutorial line by line and verify things are working properly versus cutting/pasting the whole thing blindly.

Lastly, try using the pogoplug pro dtb file (assuming that is what you have).

-grayman4hire
======================================
Pogoplug V2 and V3 Serial Connection
Tutorial - Pogoplug v4 (Series 4 and Mobile) with Linux (Debian or Arch)

OpenWRT on Pogoplug Mobile
Tutorial - Pogoplug E02/V4 with Arch Linux ARM
Hacking the Pogoplug v3/Oxnas (Pro/Classic) with Debian

OpenWRT on Pogoplug v3/Oxnas (Pro/Classic)
# fw_printenv
April 24, 2015 04:16PM
Here's the first one, and I'll go check details on netconsole, thanks Gray

root@DebianPlug:~# fw_printenv
autoload=no
baudrate=115200
bootargs=console=ttyS0,115200n8
bootdelay=10
console=console=ttyS0,115200n8
ethact=mii0
mtdids=nand0=41000000.nand
mtdparts=mtdparts=41000000.nand:14m(boot),-(data)
stderr=serial
stdin=serial
stdout=serial
usb_device=0:1
if_netconsole=ping $serverip
preboot_nc=run if_netconsole start_netconsole
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version
usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=/dev/sda1 rootdelay=10
uinitrd_addr=0x60e00000
uimage_addr=0x60500000
dtb_addr=0x62c00000
dt_load_initrd=ext2load usb 0:1 $uinitrd_addr /boot/uInitrd
dt_load_uimage=ext2load usb 0:1 $uimage_addr /boot/uImage
dt_bootm=bootm $uimage_addr $uinitrd_addr $dtb_addr
dt_usb_boot=run dt_load_uimage; run dt_load_initrd; run dt_load_dtb; run dt_bootm
dt_usb_bootcmd=run usb_set_bootargs; run dt_usb_boot
ethaddr=00:25:31:01:c4:f4
dt_load_dtb=ext2load usb 0:1 $dtb_addr $fdt_file
preboot=run preboot_nc
ipaddr=192.168.1.10
serverip=192.168.1.100
fdt_file=/boot/dts/ox820-pogoplug-pro.dtb
zimage=/boot/zImage
loadaddr=0x60500000
fdt_addr=0x62c00000
loadubi=echo Trying to boot from NAND ...;if run mountubi; then run loadubizimage;run loadubifdt;ubifsumount;run bootzubi;fi
mountubi=ubi part data; ubifsmount ubi0:rootfs
loadubizimage=ubifsload ${loadaddr} ${zimage}
loadubifdt=ubifsload ${fdt_addr} ${fdt_file_ubi}
bootzubi=echo Booting from nand ...; run setargsubi; bootz ${loadaddr} - ${fdt_addr};
setargsubi=setenv bootargs console=ttyS0,115200n8 ubi.mtd=1 root=ubi0:rootfs rw rootfstype=ubifs rootwait ${mtdparts}
fdt_file_ubi=/boot/ox820-pogoplug-classic.dtb
dt_bootcmd_usb=usb start; run dt_usb_bootcmd; usb stop
bootcmd=run dt_bootcmd_usb; run loadubi; reset
root@DebianPlug:~#

=========
-= Cloud 9 =-
Re: OpenWRT on Pogoplug Pro / V3 - Need Help Making U-boot Work
April 24, 2015 05:30PM
I don't see any issues, so not completely sure what's going wrong.

I'm fairly positive I tested the Pro with the non-pro dtb, but just incase, I would suggest trying the Pro dtb.

#Pogoplug Pro
/tmp/fw_setenv fdt_file_ubi '/boot/openwrt-oxnas-pogoplug-pro.dtb'

The other possibility is that the OpenWRT snapshot build is broken (new bug) which is possible since it's built nightly. I can give it a quick test this tonight or this weekend.

netconsole or serial connection can tell us more.

-grayman4hire
======================================
Pogoplug V2 and V3 Serial Connection
Tutorial - Pogoplug v4 (Series 4 and Mobile) with Linux (Debian or Arch)

OpenWRT on Pogoplug Mobile
Tutorial - Pogoplug E02/V4 with Arch Linux ARM
Hacking the Pogoplug v3/Oxnas (Pro/Classic) with Debian

OpenWRT on Pogoplug v3/Oxnas (Pro/Classic)
Re: OpenWRT on Pogoplug Pro / V3 - Need Help Making U-boot Work
April 25, 2015 12:27AM
It said "couldn't' find directory" something like that when I ran the Pro dtb. Netconsole seems to not like Windows accessing it. sorry my vagueness but I can't stay awake and wish i'd ordered proper cables with my TTL thing. Still boots Debian so nothing's lost here. Also i might have an Intel Pro wireless mpcie (though b/g) to experiment on soon. Get the stock wireless out of Pogoplug so that's eliminated as a suspect maybe.

=========
-= Cloud 9 =-
Re: OpenWRT on Pogoplug Pro / V3 - Need Help Making U-boot Work
April 25, 2015 12:24PM
I just re-verified the OpenWRT installation on the Pogoplug Pro.

Here is my console installation log and uboot env for comparison:
http://blog.qnology.com/p/openwrt-on-pogoplug-v3oxnas-proclassic.html

I also updated my tutorial as I notices that the dhcp server on OpenWRT isn't started as I expected, so make sure to set your computer using a static ip address of 192.168.1.2 before trying to telnet into it.

-grayman4hire
======================================
Pogoplug V2 and V3 Serial Connection
Tutorial - Pogoplug v4 (Series 4 and Mobile) with Linux (Debian or Arch)

OpenWRT on Pogoplug Mobile
Tutorial - Pogoplug E02/V4 with Arch Linux ARM
Hacking the Pogoplug v3/Oxnas (Pro/Classic) with Debian

OpenWRT on Pogoplug v3/Oxnas (Pro/Classic)
very close
April 25, 2015 08:47PM
SUCCESS! Gray the first time I tried this, did everything right except made an error making a password.
2nd attempt: paid attention to password and I'm in!

Wow! In with browser and have a GUI... wow when I look at the packages you included, even LuCI that's SO brilliant.

I sure thank you Gray and of course bodhi, leggo Gravelrash and pretty sure another I'll have to lookup.

Wow is this nice...For now I'll poke around the GUI indicators and eventually settle on a stable wireless. No big hurry on the wireless, but this kind of begs a couple. Wow and a half...

UPDATE -WHA? The LEDs work with OpenWRT support!! Blue makes the blue light up, green/green, I'm not going to push my luck trying orange ;-p
-more update- I see, you'd have to enable every time, but still... your choice of decor :-p

This is crazy cool, earth shattering. A 5-watt, 5-dollar masterpiece of ingenuity!

=========
-= Cloud 9 =-



Edited 5 time(s). Last edit at 04/25/2015 11:50PM by JoeyPogoPlugE02.
Re: OpenWRT on Pogoplug Pro / V3 - Need Help Making U-boot Work
April 27, 2015 10:22AM
@joey,

Glad to hear you got it working. What was the original issue/confusion? Just curious so that I can improve the tutorial for future readers. Thanks

-grayman4hire
======================================
Pogoplug V2 and V3 Serial Connection
Tutorial - Pogoplug v4 (Series 4 and Mobile) with Linux (Debian or Arch)

OpenWRT on Pogoplug Mobile
Tutorial - Pogoplug E02/V4 with Arch Linux ARM
Hacking the Pogoplug v3/Oxnas (Pro/Classic) with Debian

OpenWRT on Pogoplug v3/Oxnas (Pro/Classic)
Re: OpenWRT on Pogoplug Pro / V3 - Need Help Making U-boot Work
April 27, 2015 04:55PM
grayman4hire Wrote:
-------------------------------------------------------
> @joey,
>
> Glad to hear you got it working. What was the
> original issue/confusion? Just curious so that I
> can improve the tutorial for future readers.
> Thanks

Gray I don't really know. First tries went with: 1. cut and pasted each line, didn't work, then 2. copied one large block up to the wireless part (then the second block of code), same result.

After whatever you did (?), I did the first method line-by-line and it worked, until I might have inputted conflicting passwords. It rebooted into Telnet but password locked me out. Second try, copied whole major block (sorry) up to wireless, and for kicks tried the second wireless option, the classic.

Super cool. I still have hardware chores like getting SATA port and pull the old wireless out of the mpcie slot, but will try that ASAP with my 2nd PogoPro. THANKs MAN! It's all magic to me, you know.

=========
-= Cloud 9 =-
Re: OpenWRT on Pogoplug Pro / V3 - Need Help Making U-boot Work
May 04, 2015 09:00AM
grayman4hire Wrote:
-------------------------------------------------------
> I just re-verified the OpenWRT installation on the
> Pogoplug Pro.
>
grayman4hire,

I have a question for you if you don't mind.

I was trying to build OpenWRT firmware for my PogoPlug Pro 02. When I did a make menuconfig, I noticed the kernel module for the wireless RT2x00 driver isn't enabled by default. I wonder if you did build your own OpenWRT firmware for your PogoPlug Pro and had to manually enable the RT2x00 driver.
 .config - OpenWrt Configuration
 > Kernel modules > Wireless Drivers ────────────────────────────────────────────────────
  ┌──────────────────────────────── Wireless Drivers ─────────────────────────────────┐
  │  Arrow keys navigate the menu.  <Enter> selects submenus ---> (or empty submenus  │  
  │  ----).  Highlighted letters are hotkeys.  Pressing <Y> includes, <N> excludes,   │  
  │  <M> modularizes features.  Press <Esc><Esc> to exit, <?> for Help, </> for       │  
  │  Search.  Legend: [*] built-in  [ ] excluded  <M> module  < > module capable      │  
  │ ┌───────────────────────────────────────────────────────────────────────────────┐ │  
  │ │    < > kmod-adm8211......................................... ADMTek 8211 suppo│ │  
  │ │    < > kmod-ath...................................... Atheros common driver pa│ │  
  │ │    < > kmod-ath10k...................... Atheros 802.11ac wireless cards suppo│ │  
  │ │    < > kmod-ath5k........................... Atheros 5xxx wireless cards suppo│ │  
  │ │    < > kmod-ath9k.................... Atheros 802.11n PCI wireless cards suppo│ │  
  │ │    < > kmod-ath9k-common                                                      │ │  
  │ │    < > kmod-ath9k-htc........................ Atheros 802.11n USB device suppo│ │  
  │ │    < > kmod-b43.................................. Broadcom 43xx wireless suppo│ │  
  │ │    < > kmod-b43legacy..................... Broadcom 43xx-legacy wireless suppo│ │  
  │ │    < > kmod-brcmfmac............... Broadcom IEEE802.11n USB FullMAC WLAN driv│ │  
  │ │    < > kmod-brcmsmac.............. Broadcom IEEE802.11n PCIe SoftMAC WLAN driv│ │  
  │ │    < > kmod-brcmutil................... Broadcom IEEE802.11n common driver par│ │  
  │ │    < > kmod-carl9170....................... Driver for Atheros AR9170 USB stic│ │  
  │ │    < > kmod-cfg80211...................... cfg80211 - wireless configuration A│ │  
  │ │    < > kmod-hostap............................. Host AP support for Prism2/2.5│ │  
  │ │    < > kmod-hostap-pci.......................... Host AP driver for PCI adapto│ │  
  │ │    < > kmod-hostap-plx............ Host AP driver for PLX9052 based PCI adapto│ │  
  │ │    < > kmod-iwl-legacy............................ Intel legacy Wireless suppo│ │  
  │ │    < > kmod-iwl3945.............................. Intel iwl3945 Wireless suppo│ │  
  │ │    < > kmod-iwl4965.............................. Intel iwl4965 Wireless suppo│ │  
  │ │    < > kmod-iwlagn................................... Intel AGN Wireless suppo│ │  
  │ │    < > kmod-lib80211.................................... 802.11 Networking sta│ │  
  │ │    < > kmod-libertas-sdio....................... Marvell 88W8686 Wireless Driv│ │  
  │ │    < > kmod-libertas-usb........................ Marvell 88W8015 Wireless Driv│ │  
  │ │    < > kmod-mac80211..................... Linux 802.11 Wireless Networking Sta│ │  
  │ │    < > kmod-mac80211-hwsim........................ mac80211 HW simulation devi│ │  
  │ │    < > kmod-mt76................................ MediaTek MT76x2 wireless driv│ │  
  │ │    < > kmod-mwifiex-pcie                                                      │ │  
  │ │    < > kmod-mwl8k............... Driver for Marvell TOPDOG 802.11 Wireless car│ │  
  │ │    < > kmod-net-airo....................................... Cisco Aironet driv│ │  
  │ │    < > kmod-net-hermes........................... Hermes 802.11b chipset suppo│ │  
  │ │    < > kmod-net-hermes-pci....................... Intersil Prism 2.5 PCI suppo│ │  
  │ │    < > kmod-net-hermes-plx............................ PLX9052 based PCI adapt│ │  
  │ │    < > kmod-net-ipw2100.................................... Intel IPW2100 driv│ │  
  │ │    < > kmod-net-ipw2200.................................... Intel IPW2200 driv│ │  
  │ │    < > kmod-net-libipw........................... libipw for ipw2100 and ipw22│ │  
  │ │    < > kmod-net-prism54................................ Intersil Prism54 suppo│ │  
  │ │    < > kmod-net-rtl8188eu........................... RTL8188EU support (stagin│ │  
  │ │    < > kmod-net-rtl8192su........................... RTL8192SU support (stagin│ │  
  │ │    < > kmod-net-rtl8723au........................... RTL8723AU support (stagin│ │  
  │ │    < > kmod-p54-common................................. Prism54 Drivers (COMMO│ │  
  │ │    < > kmod-p54-pci....................................... Prism54 Drivers (PC│ │  
  │ │    < > kmod-p54-usb....................................... Prism54 Drivers (US│ │  
  │ │    < > kmod-rt2400-pci............. Ralink Drivers for RT2x00 cards (RT2400 PC│ │  
  │ │    < > kmod-rt2500-pci............. Ralink Drivers for RT2x00 cards (RT2500 PC│ │  
  │ │    < > kmod-rt2500-usb............. Ralink Drivers for RT2x00 cards (RT2500 US│ │  
  │ │    < > kmod-rt2800-pci............. Ralink Drivers for RT2x00 cards (RT2860 PC│ │  
  │ │    < > kmod-rt2800-usb............. Ralink Drivers for RT2x00 cards (RT2870 US│ │  
  │ │    < > kmod-rt2x00-lib.................... Ralink Drivers for RT2x00 cards (LI│ │  
  │ │    < > kmod-rt61-pci............... Ralink Drivers for RT2x00 cards (RT2x61 PC│ │  
  │ │    < > kmod-rt73-usb................. Ralink Drivers for RT2x00 cards (RT73 US│ │  
  │ │    < > kmod-rtl8180........... Realtek Drivers for RTL818x devices (RTL8180 PC│ │  
  │ │    < > kmod-rtl8187........... Realtek Drivers for RTL818x devices (RTL8187 US│ │  
  │ │    < > kmod-rtl8192ce....................... Realtek RTL8192CE/RTL8188CE suppo│ │  
  │ │    < > kmod-rtl8192cu....................... Realtek RTL8192CU/RTL8188CU suppo│ │  
  │ │    < > kmod-rtl8192de....................... Realtek RTL8192DE/RTL8188DE suppo│ │  
  │ │    < > kmod-rtl8192se....................... Realtek RTL8192SE/RTL8191SE suppo│ │  
  │ │    < > kmod-zd1211rw....................................... Zydas ZD1211 suppo│ │  
  │ └───────────────────────────────────────────────────────────────────────────────┘ │  
  ├───────────────────────────────────────────────────────────────────────────────────┤  
  │             <Select>    < Exit >    < Help >    < Save >    < Load >              │  
  └───────────────────────────────────────────────────────────────────────────────────┘  

Re: OpenWRT on Pogoplug Pro / V3 - Need Help Making U-boot Work
May 04, 2015 01:55PM
@habibie.

Sorry, I have no experience building OpenWRT for the Pogoplug Pro. I don't think OpenWRT on the Pogoplug Pro is well supported (not many people using it and improving on it). Regardless if you add the wi-fi driver or not, I don't think it will work. There isn't a difference with having the drivers baked into the firmware versus installing it using opkg.

-grayman4hire
======================================
Pogoplug V2 and V3 Serial Connection
Tutorial - Pogoplug v4 (Series 4 and Mobile) with Linux (Debian or Arch)

OpenWRT on Pogoplug Mobile
Tutorial - Pogoplug E02/V4 with Arch Linux ARM
Hacking the Pogoplug v3/Oxnas (Pro/Classic) with Debian

OpenWRT on Pogoplug v3/Oxnas (Pro/Classic)
Re: OpenWRT on Pogoplug Pro / V3 - Need Help Making U-boot Work
May 04, 2015 06:59PM
@grayman4hire - IC your point. Thanks.
Re: OpenWRT on Pogoplug Pro / V3 - Need Help Making U-boot Work
April 24, 2016 10:26AM
I have successfully installed OpenWRT on the Pogoplug Pro NAND using grayman4hire's guide:
http://blog.qnology.com/2015/04/openwrt-on-pogoplug-v3oxnas-proclassic.html

However, the snapshot trunk release no longer includes the zImage kernel:
https://downloads.openwrt.org/snapshots/trunk/oxnas/generic/

So I used files from Chaos Calmer instead:
https://downloads.openwrt.org/chaos_calmer/15.05.1/oxnas/generic/

After guessing where to insert loadubi; (just before reset;) in bootcmd, it booted OpenWRT and set a static ip address of 192.168.1.1 and after connecting to my raspberry pi and setting it to 192.168.1.2, I was able to telnet in and set a root password. Switched to ssh and noticed uhttpd running and was able to log in to the LuCI GUI and switch to dhcp. Rebooted and connected to network, all is good. I can download and install packages using opkg or LuCI.

However, usb does not work. Nothing detected.

root@OpenWrt:~# lsusb
unable to initialize libusb: -99
root@OpenWrt:~# lsusb -t
Segmentation fault
root@OpenWrt:~#

These packages are installed:
usbutils - 007-1
kmod-usb-core - 3.18.17-1
kmod-usb-hid - 3.18.17-1
kmod-usb-ohci - 3.18.17-1
kmod-usb-ohci-pci - 3.18.17-1
kmod-usb-serial - 3.18.17-1
kmod-usb-serial-pl2303 - 3.18.17-1
kmod-usb-storage - 3.18.17-1
kmod-usb2 - 3.18.17-1
kmod-usb2-oxnas - 3.18.17-1
kmod-usb2-pci - 3.18.17-1

What could be wrong?
Thanks
Re: OpenWRT on Pogoplug Pro / V3 - Need Help Making U-boot Work
April 24, 2016 03:46PM
dexter,

Which u-boot do have installed? and is that the only one you boot with (i.e. no chainload)?

And since you are using a different zImage, look for the kernel config file matching that image from where you've downloaded.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 04/24/2016 03:55PM by bodhi.
Re: OpenWRT on Pogoplug Pro / V3 - Need Help Making U-boot Work
April 24, 2016 09:10PM
>Which u-boot do have installed? and is that the only one you boot with (i.e. no chainload)?

uboot.2015.10-tld-1.ox820.bodhi.tar
Yes, only one, no chainload.

>And since you are using a different zImage, look for the kernel config file matching that image from where you've downloaded.

I downloaded zImage from here:
http://downloads.openwrt.org/chaos_calmer/15.05.1/oxnas/generic/
openwrt-15.05.1-oxnas-zImage 1671992 15-Mar-2016 18:09
openwrt-15.05.1-oxnas-pogoplug-pro.dtb 6993 15-Mar-2016 18:09
openwrt-15.05.1-oxnas-pogoplug-v3-squashfs-sysupgrade.tar

What kernel config file should I be looking for? Is it the fdt or dtb file?

Output of fw_printenv is below:

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
usb_custom_params=zswap.enabled=1
device=0:1
devices=usb ide
disks=0 1 2 3
ethact=mii0
if_netconsole=ping $serverip
dtb_file=/boot/dts/ox820-pogoplug-pro.dtb
load_dtb=echo loading DTB $dtb_file ...; ext2load $bootdev $device 0x62c00000 $dtb_file
load_initrd=echo loading uInitrd ...; ext2load $bootdev $device 0x60e00000 /boot/uInitrd
load_uimage=echo loading uImage ...; ext2load $bootdev $device 0x60500000 /boot/uImage
mainlineLinux=yes
mtdids=nand0=41000000.nand
mtdparts=mtdparts=41000000.nand:14m(boot),-(data)
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 ext2load $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
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_import=echo importing envs ...; env import -t 0x60500000
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 0x60500000 /boot/uEnv.txt; then setenv uenv_loaded 1; fi
usb_ready_retry=15
ethaddr=00:25:31:01:DB:3B
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.3.145
serverip=192.168.3.119
bootcmd_stock=setenv autoload n; setenv 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"; setenv poweroutage yes; setenv boot "bootm 60500000"; setenv bootcmd_stock_fw "run set_bootargs_stock; run boot_nand"; setenv boot bootm 60500000; setenv boot_nand "run load_nand boot || run load_nand2 boot"; setenv kernflmode s; setenv load_nand2 "nboot 60500000 0 800000"; setenv load_nand "nboot 60500000 0 200000"; setenv set_bootargs_stock "setenv bootargs $bootargs_stock"; setenv mainlinelinux no; run bootcmd_stock_fw
zimage=/boot/zImage
loadaddr=0x60500000
fdt_addr=0x62c00000
loadubi=echo Trying to boot from NAND ...;if run mountubi; then run loadubizimage;run loadubifdt;ubifsumount;run bootzubi;fi
mountubi=ubi part data; ubifsmount ubi0:rootfs
loadubizimage=ubifsload ${loadaddr} ${zimage}
loadubifdt=ubifsload ${fdt_addr} ${fdt_file_ubi}
bootzubi=echo Booting from nand ...; run setargsubi; bootz ${loadaddr} - ${fdt_addr};
setargsubi=setenv bootargs console=ttyS0,115200n8 ubi.mtd=1 root=ubi0:rootfs rw rootfstype=ubifs rootwait ${mtdparts}
fdt_file_ubi=/boot/openwrt-15.05-rc2-oxnas-pogoplug-pro.dtb
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; run loadubi; reset
Re: OpenWRT on Pogoplug Pro / V3 - Need Help Making U-boot Work
April 25, 2016 12:18AM
dexter,

> What kernel config file should I be looking for?
> Is it the fdt or dtb file?

Actually, neither. That kernel config file should be named something like config-xxx, and is in somewhere under:
http://downloads.openwrt.org/chaos_calmer/15.05.1/oxnas/

Try this if you have serial console, or have setup netconsole: plug in the USB drive, power up, and interrupt the console and do
usb start
usb part
see if the drive is recognized in u-boot. If it is not, then chance is that will not be recognized in Linux either.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
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: