U-Boot v2016.09 released

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

Re: U-Boot v2015.04 for testing

Postby BrianD » Sun Aug 02, 2015 5:50 pm

Upon further investigation, it appears the archlinuxarm kernel is not associating the ethaddr setting in uEnv.txt with the nsa310 ethernet adapter.

lspci -v
Code: Select all
...
00:01.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 03)
        Subsystem: Realtek Semiconductor Co., Ltd. RTL8111/8168 PCI Express Gigabit Ethernet controller
        Flags: bus master, fast devsel, latency 0, IRQ 9
        I/O ports at 1000 [size=256]
        Memory at e0014000 (64-bit, prefetchable) [size=4K]
        Memory at e0010000 (64-bit, prefetchable) [size=16K]
        [virtual] Expansion ROM at e0000000 [disabled] [size=64K]
        Capabilities: [40] Power Management version 3
        Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [70] Express Endpoint, MSI 01
        Capabilities: [ac] MSI-X: Enable- Count=4 Masked-
        Capabilities: [cc] Vital Product Data
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [140] Virtual Channel
        Capabilities: [160] Device Serial Number 00-00-00-00-00-00-00-00
        Kernel driver in use: r8169


dmesg | grep r8169
Code: Select all
[   16.875336] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
[   16.881012] r8169 0000:00:01.0: enabling device (0140 -> 0143)
[   16.887664] r8169 0000:00:01.0 eth0: RTL8168d/8111d at 0xd09c0000, 00:00:00:00:00:30, XID 083000c0 IRQ 9
[   16.897252] r8169 0000:00:01.0 eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko]
[   25.167669] r8169 0000:00:01.0 enp0s1: renamed from eth0


ip link
Code: Select all
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp0s1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether 00:00:00:00:00:30 brd ff:ff:ff:ff:ff:ff
BrianD
 
Posts: 14
Joined: Thu Jul 19, 2012 3:16 am

Re: U-Boot v2015.04 for testing

Postby BrianD » Sun Aug 02, 2015 9:37 pm

I can manually bring up the ethernet interface from archlinuxarm by using the following process:

Code: Select all
ip link set dev enp0s1 down
ip link set dev enp0s1 address B0:B2:DC:xx:xx:xx
ip link set dev enp0s1 up


ifconfig
Code: Select all
enp0s1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::b2b2:dcff:fexx:xxxx  prefixlen 64  scopeid 0x20<link>
        ether b0:b2:dc:xx:xx:xx  txqueuelen 1000  (Ethernet)
        RX packets 31  bytes 3255 (3.1 KiB)
        RX errors 0  dropped 11  overruns 0  frame 0
        TX packets 26  bytes 2206 (2.1 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 166  bytes 13234 (12.9 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 166  bytes 13234 (12.9 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


Finally, to get DHCP working, I had to create the /etc/systemd/network/enp0s1.network configuration file then restart the networkd daemon:

vi /etc/systemd/network/enp0s1.network
Code: Select all
[Match]
Name=enp0s1

[Network]
DHCP=ipv4


then
Code: Select all
systemctl restart systemd-networkd


and finally,
ifconfig
Code: Select all
enp0s1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.9.43  netmask 255.255.255.0  broadcast 192.168.9.255
        inet6 fe80::b2b2:dcff:fexx:xxxx  prefixlen 64  scopeid 0x20<link>
        ether b0:b2:dc:xx:xx:xx  txqueuelen 1000  (Ethernet)
        RX packets 154  bytes 14794 (14.4 KiB)
        RX errors 0  dropped 68  overruns 0  frame 0
        TX packets 51  bytes 4752 (4.6 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 178  bytes 14326 (13.9 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 178  bytes 14326 (13.9 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
BrianD
 
Posts: 14
Joined: Thu Jul 19, 2012 3:16 am

Re: U-Boot v2015.04 for testing

Postby WarheadsSE » Mon Aug 03, 2015 11:49 am

For now, you could also use a systemd.link files under /etc/systemd/network/ to set the MAC address that way.

Problem still needs solved, but it would make that less painful for the time being.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: U-Boot v2015.07 released

Postby moonman » Sun Aug 23, 2015 6:02 am

Uboot v2015.07 released and is in the repos now. OP updated.
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: 3327
Joined: Sat Jan 15, 2011 3:36 am

Re: U-Boot v2015.07 released

Postby moonman » Sun Aug 23, 2015 6:09 am

@BrianD Link section to your systemd config with the following key, it should work:MACAddress=xx:xx:xx:xx:xx
i.e.
Code: Select all
[Match]
Name=enp0s1

[Network]
DHCP=ipv4

[Link]
MACAddress=B0:B2:DC:xx:xx:xx
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: 3327
Joined: Sat Jan 15, 2011 3:36 am

Re: U-Boot v2015.07 released

Postby jbrnd » Mon Aug 31, 2015 2:30 am

Thank you to the developers for their efforts!

I just installed uboot-pogoplugv4, and on reboot my pogoplug (v4) came up with the mac address 00:11:22:33:44:55. I was able to use fw_setenv to change the mac address back to what it was.

Also, booting with attached USB storage devices (other than the drive for the rootfs) doesn't work. I tried reinstalling the new uboot package, but that didn't help. See below for the environment.

Did something go wrong with setting up the new environment? I just saw below that netconsole looks enabled. I'll try rebooting with the USB devices attached to see what it prints.

Code: Select all
bootcmd=run startboot;run bootubi
bootdir=/boot
bootfilem=uImage
bootfilez=zImage
bootubi=echo Trying to boot from NAND ...;if run mountubi; then ubifsload ${load
addr} /boot/zImage;ubifsload ${fdtaddr} /boot/dtbs/${fdtfile};ubifsumount; seten
v bootargs console=${console} ubi.mtd=1 root=ubi0:rootfs ro rootfstype=ubifs  ro
otwait ${mtdparts};bootz ${loadaddr} - ${fdtaddr};fi
console=ttyS0,115200
ethact=egiga0
fdtaddr=0x800000
fdtdir=/boot/dtbs
fdtfile=kirkwood-pogoplugv4.dtb
ipaddr=10.10.10.3
loadaddr=0x810000
loadfdt=echo loading ${fdtdir}/${fdtfile} ...; load ${devtype} ${bootpart} ${fdtaddr} ${fdtdir}/${fdtfile}
loadimage=load ${devtype} ${bootpart} ${loadaddr} ${bootdir}/${bootfilez} || load ${devtype} ${bootpart} ${loadaddr} ${bootdir}/${bootfilem}
loadrd=load ${devtype} ${bootpart} ${rdaddr} ${bootdir}/${rdfile}
mainargs=setenv bootargs console=${console} ${mtdparts} root=${root} rw rootwait  ${optargs} ${ncargs}
mountubi=ubi part rootfs; ubifsmount ubi0:rootfs
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),-(rootfs)
ncip=10.10.10.5
ncipk=10.10.10.4
netconsole=on
preboot=if env exists netconsole && test ${netconsole} = on; then if ping ${ncip}; then  setenv stdin nc; setenv stdout nc;  setenv stderr nc; version; if env exists ncargsusr; then echo ncargs has been defined by user; setenv ncargs ${ncargsusr}; else setenv ncargs ignore_loglevel netconsole=6665@${ipaddr}/eth0,6666@${ncipk}/; fi; fi; else echo Netconsole has been turned off.; echo To turn it on, set netconsole variable to on.; setenv stdin; setenv stdout; setenv stderr; setenv ncargs; fi
rdaddr=0x1100000
rdfile=initramfs-linux.img
startboot=usb start; ide reset; for devtype in mmc usb ide; do  setenv devnum 0; while ${devtype} dev ${devnum}; do  echo ${devtype} found on device ${devnum}; setenv bootpart ${devnum}:1; echo Checking for: ${bootdir}/uEnv.txt ...; if test -e ${devtype} ${bootpart} ${bootdir}/uEnv.txt; then  load ${devtype} ${bootpart} ${loadaddr} ${bootdir}/uEnv.txt; env import -t ${loadaddr} ${filesize}; echo Loaded environment from ${bootdir}/uEnv.txt; echo Checking if uenvcmd is set ...;if test -n ${uenvcmd}; then  echo Running uenvcmd ...; run uenvcmd; fi; fi; if run loadimage; then if env exists root; then echo root has been defined by user; else part uuid ${devtype} ${bootpart} uuid; setenv root PARTUUID=${uuid}; fi;  run mainargs; if run loadfdt; then  if run loadrd; then  bootz ${loadaddr} ${rdaddr}:${filesize} ${fdtaddr}; else  bootz ${loadaddr} - ${fdtaddr}; fi; else  if run loadrd; then echo Booting uImage with initrd;  bootm ${loadaddr} ${rdaddr}:${filesize}; else  bootm ${loadaddr}; fi; fi; else  echo No kernel found; fi; set expr devnum ${devnum} + 1; done; done;
ethaddr=00:25:31:XX:YY:ZZ
jbrnd
 
Posts: 17
Joined: Sun Jul 08, 2012 2:15 am

Re: U-Boot v2015.07 released

Postby moonman » Tue Sep 01, 2015 4:24 am

looks good. I was waiting for netconsole log...
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: 3327
Joined: Sat Jan 15, 2011 3:36 am

Re: U-Boot v2015.07 released

Postby jbrnd » Wed Sep 02, 2015 11:21 pm

Hmm. Booting now works reliably with other devices attached, strangely enough. The only thing I can think of was that I updated the kernel, was running an oldish one before.

But now one of the two USB3 ports on the back stopped working (nothing at all happens when I plug in a device, nothing visible in dmesg or lsusb). That could conceivably be a hardware problem, though.

EDIT: An attached 2.5" hard drive does spin up, so the port at least provides power.
jbrnd
 
Posts: 17
Joined: Sun Jul 08, 2012 2:15 am

Re: U-Boot v2015.07 released

Postby jbrnd » Thu Sep 03, 2015 3:02 am

I've played with this some more and I think I figured out what happened: I had a flash drive plugged into the functioning USB port before, and that's why it wouldn't boot. Then I switched it to the non-functioning port and it would boot again.

I guess there's something in the rootfs heuristics that gets confused by having a second USB flash drive present, so that solves that part.

But I wonder why the second USB3 port doesn't work...
jbrnd
 
Posts: 17
Joined: Sun Jul 08, 2012 2:15 am

Re: U-Boot v2015.07 released

Postby moonman » Thu Sep 03, 2015 4:57 am

All ports work on mine.
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: 3327
Joined: Sat Jan 15, 2011 3:36 am

PreviousNext

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 3 guests