Welcome! Log In Create A New Profile

Advanced

Pogoplug v4 Mobile uboot issue.

Posted by umd 
umd
Pogoplug v4 Mobile uboot issue.
April 26, 2017 12:13PM
Prior to flashing I entered ethaddr:

fw_printenv ethaddr 
Warning: Bad CRC, using default environment.
## Error: "ethaddr" not defined


I ignored it since I'd be flashing the envs anyway per the instructions.

I flashed the new u-boot successfully changed all the corresponding envs except ethaddr. This time it said,

Can't overwrite "ethaddr"


I figured I'd reboot the box into linux and then adjust it. The Pogo successfully booted into Debian with the default ethaddr from the flashed envs and changed the ethaddr to the one on the bottom of the case (I assume that is the right one). When I reboot, I am not able to access the device. It only works with the default ethaddr that I flashed from uboot.2016.05-tld-1.environment.bodhi.tar.

Is that fixable?
Re: Pogoplug v4 Mobile uboot issue.
April 26, 2017 03:31PM
umd,


Quote

and changed the ethaddr to the one on the bottom of the case (I assume that is the right one).

You meant you changed it to the correct MAC at Debian prompt, using fw_setenv ?

Quote

When I reboot, I am not able to access the device. It only works with the default ethaddr that I flashed from uboot.2016.05-tld-1.environment.bodhi.tar.

If you use dynamic IP (as default in the released Debian 4.4 rootfs), then the new MAC address will cause the router to assign a different one. Did you look for a different IP? or did you try to ping the box?

I assume the hostname is still debian:
ping debian.local

And do you have netconsole or serial console?

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



Edited 1 time(s). Last edit at 04/26/2017 03:32PM by bodhi.
umd
Re: Pogoplug v4 Mobile uboot issue.
April 27, 2017 09:53AM
bodhi,

Ok I think I figured it out. I also have a Pogo E02 that wasn't turned on. For some reason my router was taking the same IP address that was assigned to the E02. So I first booted up the E02 and it took its IP address. Then booted up the Pogoplug Mobile with the MAC on the bottom of the case and now my router assigned it a new IP address and it shows the correct MAC. Wacky and doesn't make much sense, but at least I figured it out. :-)

Quote

> You meant you changed it to the correct MAC at Deb
> ian prompt, using fw_setenv ?
>

Correct.


Quote

> If you use dynamic IP (as default in the released
> Debian 4.4 rootfs), then the new MAC address will
> cause the router to assign a different one. Did yo
> u look for a different IP? or did you try to ping
> the box?


I would have my router console open watching for new devices and it wouldn't show up. The router would show the netconsole IP for a few seconds then I'd wait for a new IP, but nothing would appear.


Quote

> And do you have netconsole or serial console?

I have both now. I used UART through serial for initial flashing of the Uboot.
Re: Pogoplug v4 Mobile uboot issue.
April 27, 2017 04:23PM
umd Wrote:
-------------------------------------------------------
> bodhi,
>
> Ok I think I figured it out. I also have a Pogo E0
> 2 that wasn't turned on. For some reason my router
> was taking the same IP address that was assigned t
> o the E02. So I first booted up the E02 and it too
> k its IP address. Then booted up the Pogoplug Mobi
> le with the MAC on the bottom of the case and now
> my router assigned it a new IP address and it show
> s the correct MAC. Wacky and doesn't make much sen
> se, but at least I figured it out. :-)
>
>
Quote

> > You meant you changed it to the correct MAC at D
> eb
> > ian prompt, using fw_setenv ?
> >
>
>
> Correct.
>
>
>
Quote

> > If you use dynamic IP (as default in the release
> d
> > Debian 4.4 rootfs), then the new MAC address wil
> l
> > cause the router to assign a different one. Did
> yo
> > u look for a different IP? or did you try to pin
> g
> > the box?
>
>
>
> I would have my router console open watching for n
> ew devices and it wouldn't show up. The router wou
> ld show the netconsole IP for a few seconds then I
> 'd wait for a new IP, but nothing would appear.
>
>
>
Quote

> > And do you have netconsole or serial console?
>
>
> I have both now. I used UART through serial for in
> itial flashing of the Uboot.

Cool! Glad you have figured it out. When in doubt, use static IP.

You have reminded me to make it better in the next release, or add more instruction, thanks!

-bodhi
===========================
Forum Wiki
bodhi's corner
umd
Re: Pogoplug v4 Mobile uboot issue.
April 28, 2017 12:42PM
No problem!

One last question for you. I have a 4TB external drive. I was looking to create a 4GB boot partition and a second partition for data. I figured out that I need to use parted, but for some reason it is not booting and giving me this error in netconsole:

loading uImage ...
GPT: first_usable_lba incorrect: 22 > 0
part_get_info_efi: *** ERROR: Invalid GPT ***
GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645
part_get_info_efi: *** ERROR: Invalid Backup GPT ***
** Invalid partition 1 **
loading uInitrd ...
GPT: first_usable_lba incorrect: 22 > 0
part_get_info_efi: *** ERROR: Invalid GPT ***
GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645
part_get_info_efi: *** ERROR: Invalid Backup GPT ***
** Invalid partition 1 **
loading DTB /boot/dts/kirkwood-pogo_e02.dtb ...
GPT: first_usable_lba incorrect: 22 > 0
part_get_info_efi: *** ERROR: Invalid GPT ***
GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645
part_get_info_efi: *** ERROR: Invalid Backup GPT ***
** Invalid partition 1 **
Wrong Image Format for bootm command
ERROR: can't get kernel image!

here is what i typed in parted:

parted /dev/sdb
mklabel gpt
mkpart primary 0GB 4GB
mkpart primary 4GB 4001GB <---4001GB was what print outputed
quit

mkfs.ext4 -L ROOTFS -j /dev/sdb1
mkfs.ext4 -L USB /dev/sdb2

I then mounted and extracted the Debian tar into sdb1 and powered down. And booted with only the new drive. I seem to be missing something. My first time using Parted. Fdisk was a bit more straightforward. Thanks.



Edit:

Just had a thought. Can I create a 4GB partition with Fdisk and then created the 2nd partition with Parted? I don't know if that would work or cause a conflict?



Edited 3 time(s). Last edit at 04/28/2017 01:03PM by umd.
Re: Pogoplug v4 Mobile uboot issue.
April 28, 2017 05:48PM
umd Wrote:
-------------------------------------------------------
> No problem!
>
> One last question for you. I have a 4TB external d
> rive. I was looking to create a 4GB boot partition
> and a second partition for data. I figured out tha
> t I need to use parted, but for some reason it is
> not booting and giving me this error in netconsole
> :
>
>
> loading uImage ...
> GPT: first_usable_lba incorrect: 22 > 0
> part_get_info_efi: *** ERROR: Invalid GPT ***
> GUID Partition Table Header signature is wrong: 0x
> 0 != 0x5452415020494645
> part_get_info_efi: *** ERROR: Invalid Backup GPT *
> **
> ** Invalid partition 1 **
> loading uInitrd ...
> GPT: first_usable_lba incorrect: 22 > 0
> part_get_info_efi: *** ERROR: Invalid GPT ***
> GUID Partition Table Header signature is wrong: 0x
> 0 != 0x5452415020494645
> part_get_info_efi: *** ERROR: Invalid Backup GPT *
> **
> ** Invalid partition 1 **
> loading DTB /boot/dts/kirkwood-pogo_e02.dtb ...
> GPT: first_usable_lba incorrect: 22 > 0
> part_get_info_efi: *** ERROR: Invalid GPT ***
> GUID Partition Table Header signature is wrong: 0x
> 0 != 0x5452415020494645
> part_get_info_efi: *** ERROR: Invalid Backup GPT *
> **
> ** Invalid partition 1 **
> Wrong Image Format for bootm command
> ERROR: can't get kernel image!
>
>
> here is what i typed in parted:
>
> parted /dev/sdb
> mklabel gpt
> mkpart primary 0GB 4GB
> mkpart primary 4GB 4001GB <---4001GB wa
> s what print outputed
> quit
>
> mkfs.ext4 -L ROOTFS -j /dev/sdb1
> mkfs.ext4 -L USB /dev/sdb2
>
> I then mounted and extracted the Debian tar into s
> db1 and powered down. And booted with only the new
> drive. I seem to be missing something. My first ti
> me using Parted. Fdisk was a bit more straightforw
> ard. Thanks.
>
>
>
> Edit:
>
> Just had a thought. Can I create a 4GB partition w
> ith Fdisk and then created the 2nd partition with
> Parted? I don't know if that would work or cause a
> conflict?i


umd,

1. The rootfs label is in lower case rootfs
2. But gpt part errors indicates the partitions are incorrect any way. I am not at home so afraid that I cant help, you will need google this instruction.
3. It needs to be formatted with gparted or parted. Fdisk will not wok.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Pogoplug v4 Mobile uboot issue.
April 28, 2017 09:31PM
Better don't put system on the 4tb drive. It won't be able to spin down with system on it.
Re: Pogoplug v4 Mobile uboot issue.
April 29, 2017 02:44AM
daviddyer Wrote:
-------------------------------------------------------
> Better don't put system on the 4tb drive. It won't
> be able to spin down with system on it.

That's a very good point. But sometimes, taking the easy approach (having one partition, one disk) makes things so much simpler.

-bodhi
===========================
Forum Wiki
bodhi's corner
umd
Re: Pogoplug v4 Mobile uboot issue.
April 29, 2017 12:20PM
bodhi Wrote:
-------------------------------------------------------
> daviddyer Wrote:
> --------------------------------------------------
> -----
> > Better don't put system on the 4tb drive. It won
> 't
> > be able to spin down with system on it.
>
> That's a very good point. But sometimes, taking t
> he easy approach (having one partition, one disk)
> makes things so much simpler.


bodhi and daviddyer,

I might have to do that and leave the system on my other drive. I tried GParted this morning created a 4gb primary partition. Still getting the same error. Not sure if I'm doing something wrong when I create partition. Seems pretty straight forward. Oh well. Thanks.
Re: Pogoplug v4 Mobile uboot issue.
April 29, 2017 11:04PM
umd,

This error is quite common. You just need to use parted to wipe out everything and start fresh. And create onlty one 1 partition.

- Post the actual log of what you did to create the 4TB partition.
- Post the serial boot log.

-bodhi
===========================
Forum Wiki
bodhi's corner
umd
Re: Pogoplug v4 Mobile uboot issue.
April 30, 2017 07:43AM
bodhi,

I just went ahead and made the entire drive a samba drive and used my existing rootfs. Easier that way and the drive will be able to spin down like Dave said. It's funny, when I was trying to get the new drive to boot, one time it actually did boot but I also had my thumb drive with the working rootfs in the 1st usb slot. So the Pogo must have got the necessary initial boot info from the thumb drive then jumped over to my new hard drive rootfs that I just created. It took me a few tries logging in with the wrong password to realize that is what happened. This new drive is a Western Digital and we know how quirky they can be. Thanks for your help.
Re: Pogoplug v4 Mobile uboot issue.
April 30, 2017 08:41AM
umd,

That's actually normal. Because the 4TB drive partition is labeled rootfs. Once the kernel booted, it will find the first partition that has the label rootfs and mount that (we set it up that way in bootargs). So to make sure the rootfs on USB is selected, you need to relabel the 4TB partition to something else.

-bodhi
===========================
Forum Wiki
bodhi's corner
umd
Re: Pogoplug v4 Mobile uboot issue.
May 26, 2017 04:33PM
Bodhi,

I had the same issue crop up after flashing the newest uboot on a Pogo v4 Mobile. I flashed the envs and it wouldn't allow me to change the ethaddr initially. When I eventually changed it to the correct MAC from withing debian, then booted the device, it didn't receive an IP (the back lights on the ethernet port, only the orange is lit). When it has the default MAC from the flashed uboot.2016.05-tld-1.environment.img, it will receive an IP (both orange and green lights on).

Not sure if this is a solution, but you had mentioned a static IP. How exactly would I do that? Oh and I have net console on this box, no serial.



EDIT:

It looks like a new Debian stick seems to have fixed it. It booted with the correct MAC.



Edited 1 time(s). Last edit at 05/27/2017 12:10PM by umd.
Re: Pogoplug v4 Mobile uboot issue.
May 28, 2017 03:03AM
umd,

> It looks like a new Debian stick seems to have fix
> ed it. It booted with the correct MAC.

Cool!

It is a good solution to use static IP.

Add in /etc/network/interfaces, like:

auto lo eth0
iface lo inet loopback
iface eth0 inet static
        address 192.168.0.xx
        netmask 255.255.255.0
        gateway 192.168.0.1
where 192.168.0.1 is your router IP. xx is any number from 2-255.

Update:

Note: if you use netconsole, then the IP 192.168.0.xx should be the same one as defined in u-boot env for ipaddr.

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



Edited 1 time(s). Last edit at 05/29/2017 10:02AM by bodhi.
umd
Re: Pogoplug v4 Mobile uboot issue.
May 29, 2017 09:43AM
Thanks! Good to know. I had a couple plugs that I setup as mjpg streamer security cams for family and I thought I could make a couple sdcards ahead of time with everything setup. They didn't want to boot. Long story short, started with a fresh usb Debian stick and then created sdcard Debian and worked fine. Little more time to install everything over, but it worked.

I had mjpg-streamer running on the older Debian 3.14. On Debian 4.4 I had trouble getting it to run until I used -y (yuv) in the command. I guess this means it runs an uncompressed image, uses more cpu. Still trying to figure out if there is a way to get it running under mjpg.



Edited 1 time(s). Last edit at 05/29/2017 09:50AM by umd.
Re: Pogoplug v4 Mobile uboot issue.
May 29, 2017 10:01AM
bodhi Wrote:
-------------------------------------------------------
> umd,
>
> > It looks like a new Debian stick seems to have f
> ix
> > ed it. It booted with the correct MAC.
>
> Cool!
>
> It is a good solution to use static IP.
>
> Add in /etc/network/interfaces, like:
>
>
> auto lo eth0
> iface lo inet loopback
> iface eth0 inet static
> address 192.168.0.xx
> netmask 255.255.255.0
> gateway 192.168.0.1
>
> where 192.168.0.1 is your router IP. xx is any num
> ber from 2-255.

I've updated the instruction to add a note.

-bodhi
===========================
Forum Wiki
bodhi's corner
umd
Re: Pogoplug v4 Mobile uboot issue.
May 29, 2017 12:03PM
>Update:

>Note: if you use netconsole, then the IP 192.168.0.xx should be the same one as defined in u-boot env for ipaddr.

>-bodhi


Makes sense. Would you recommend choosing a static IP somewhere within the DHCP range?
Re: Pogoplug v4 Mobile uboot issue.
May 29, 2017 12:48PM
umd Wrote:
-------------------------------------------------------
> >Update:
>
> >Note: if you use netconsole, then the IP 192.168.
> 0.xx should be the same one as defined in u-boot e
> nv for ipaddr.
>
> >-bodhi
>
>
> Makes sense. Would you recommend choosing a static
> IP somewhere within the DHCP range?

I would not use one in the range. I always use a higher number so that it stands out, and easier to remember too.

-bodhi
===========================
Forum Wiki
bodhi's corner
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: