multiple hostname issue for pogoplue E02

Ask questions about Arch Linux ARM. Please search before making a new topic.

multiple hostname issue for pogoplue E02

Postby momentum » Mon May 09, 2016 7:50 pm

I tried to search the forum and didn't find a similar issue...

I have two pogoplug E02. I set up arch Linux for each of them and had them working for a long time. I set the hostname of them as pogo_a and pogo_b respectively. One day the flash drive in pogo_a seemed broken and I cound't find the backup image for that in my computer. So I clone the system from pogo_b to a new flash drive and put it in pogo_a, then ssh into it to change the hostname. Everything works fine, except that when I look in the active device from my router interface, I can find the ip of pogo_a, pogo_b. I can also see a device as '*' with a separated ip, sometimes associated with the MAC of pogo_a and sometimes associated with the MAC of pogo_b. Before the old flash drive was broken, I remember there were two '*', each of which was associated with pogo_a and pogo_b respectively, so there were no conflicts at that moment.

I have my.pogoplug.com service installed in pogo_b so that I can upload my photos/videos to my device. But due to above issue, the service seems to be interrupted if '*' is taken over by pogo_b. Besides changing the hostname of these devices, I also specify the hostnames in /etc/hosts, and also make sure the ip configuration is set as dhcp by netctl. But none of these steps seem working. The hostname '*' is still 'assigned' to a fixed IP and taken over by the two devices alternatively.

Is there any step to diagnose what's going on here? Really appreciate it!
momentum
 
Posts: 22
Joined: Mon Jan 09, 2012 2:09 am

Re: multiple hostname issue for pogoplue E02

Postby WarheadsSE » Mon May 09, 2016 8:14 pm

Confirm your uboot environments are not seeing them as the same MAC address?
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: multiple hostname issue for pogoplue E02

Postby momentum » Mon May 09, 2016 8:38 pm

$this->bbcode_second_pass_quote('WarheadsSE', 'C')onfirm your uboot environments are not seeing them as the same MAC address?


Sorry but how can I check it?
momentum
 
Posts: 22
Joined: Mon Jan 09, 2012 2:09 am

Re: multiple hostname issue for pogoplue E02

Postby moonman » Mon May 09, 2016 9:05 pm

Use fw_printenv
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: multiple hostname issue for pogoplue E02

Postby momentum » Wed May 11, 2016 12:25 am

$this->bbcode_second_pass_quote('moonman', 'U')se fw_printenv


Just check and it returns

Cannot parse config file: Invalid argument
momentum
 
Posts: 22
Joined: Mon Jan 09, 2012 2:09 am

Re: multiple hostname issue for pogoplue E02

Postby moonman » Wed May 11, 2016 12:37 am

Uncomment the line in /etc/fw_env.config that reads
$this->bbcode_second_pass_code('', '/dev/mtd0 0xc0000 0x20000 0x20000')
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: multiple hostname issue for pogoplue E02

Postby momentum » Wed May 11, 2016 12:50 am

$this->bbcode_second_pass_quote('moonman', 'U')ncomment the line in /etc/fw_env.config that reads
$this->bbcode_second_pass_code('', '/dev/mtd0 0xc0000 0x20000 0x20000')


Thanks! Now for the pogo_a it reads

$this->bbcode_second_pass_code('', '
ethact=egiga0
bootdelay=3
baudrate=115200
mainlineLinux=yes
console=ttyS0,115200
led_init=green blinking
led_exit=green off
led_error=orange blinking
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
mtdids=nand0=orion_nand
partition=nand0,2
stdin=serial
stdout=serial
stderr=serial
rescue_installed=0
rescue_set_bootargs=setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts $rescue_custom_params
rescue_bootcmd=if test $rescue_installed -eq 1; then run rescue_set_bootargs; na nd read.e 0x800000 0x100000 0x400000; bootm 0x800000; else run pogo_bootcmd; fi
pogo_bootcmd=if fsload uboot-original-mtd0.kwb; then go 0x800200; fi
force_rescue=0
force_rescue_bootcmd=if test $force_rescue -eq 1 || ext2load usb 0:1 0x1700000 / rescueme 1 || fatload usb 0:1 0x1700000 /rescueme.txt 1; then run rescue_bootcmd ; fi
ubifs_mtd=3
ubifs_set_bootargs=setenv bootargs console=$console ubi.mtd=$ubifs_mtd root=ubi0 :rootfs rootfstype=ubifs $mtdparts $ubifs_custom_params
ubifs_bootcmd=run ubifs_set_bootargs; if ubi part data && ubifsmount rootfs && u bifsload 0x800000 /boot/uImage && ubifsload 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; fi
usb_scan=usb_scan_done=0;for scan in $usb_scan_list; do run usb_scan_$scan; if t est $usb_scan_done -eq 0 && ext2load usb $usb 0x800000 /boot/uImage 1; then usb_ scan_done=1; echo "Found bootable drive on usb $usb"; setenv usb_device $usb; se tenv usb_root /dev/$dev; fi; done
usb_scan_list=1 2 3 4
usb_scan_1=usb=0:1 dev=sda1
usb_scan_2=usb=1:1 dev=sdb1
usb_scan_3=usb=2:1 dev=sdc1
usb_scan_4=usb=3:1 dev=sdd1
usb_init=run usb_scan
usb_device=0:1
usb_root=/dev/sda1
usb_rootdelay=10
usb_set_bootargs=setenv bootargs console=$console root=$usb_root rootdelay=$usb_ rootdelay rootfstype=$usb_rootfstype $mtdparts $usb_custom_params
usb_bootcmd=run usb_init; run usb_set_bootargs; run usb_boot
usb_boot=mw 0x800000 0 1; ext2load usb $usb_device 0x800000 /boot/uImage; if ext 2load usb $usb_device 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; el se bootm 0x800000; fi
ethaddr=00:25:31:04:7A:9A
arcNumber=2097
bootcmd=usb start; usb stop; usb start; run force_rescue_bootcmd; run ubifs_boot cmd; run usb_bootcmd; usb stop; run rescue_bootcmd; run pogo_bootcmd; reset
usb_rootfstype=ext3
machid=dd6
')

It looks like the MAC is correct here. And for the pogo_b the MAC is shown correctly in the config file as well.
momentum
 
Posts: 22
Joined: Mon Jan 09, 2012 2:09 am
Top

Re: multiple hostname issue for pogoplue E02

Postby momentum » Sun May 15, 2016 2:51 am

Any possible reason that might cause this issue?
momentum
 
Posts: 22
Joined: Mon Jan 09, 2012 2:09 am

Re: multiple hostname issue for pogoplue E02

Postby momentum » Sun May 15, 2016 3:22 am

@moonman

Is the my.pogoplug.com service still working? That's the only reason I want to solve this issue. I saw the last update for the software is sometime last year:
https://archlinuxarm.org/forum/viewtopic.php?f=18&t=3343


I have been using it for quite a while until one of my flash drive on my pogoplug is broken. Now I remember last year I received an email from pogoplug.com, saying that they no longer support free account like mine, but somehow I could still use it after that deadline. Now even I turn my pogo_a off, I can't see my pogo_b from my.pogoplug.com. Several days ago I can still see my service is switching between on and off, due to the IP conflict issue between my pogo_a and pogo_b.
momentum
 
Posts: 22
Joined: Mon Jan 09, 2012 2:09 am

Re: multiple hostname issue for pogoplue E02

Postby moonman » Sun May 15, 2016 5:27 am

I haven't used the service in a while and have been updating it for other people only. You can try changing tcpport in pogoplug.conf to something else on one of the devices.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am


Return to User Questions

Who is online

Users browsing this forum: No registered users and 8 guests