[P.A. Semi] Does the ethernet interface work on your Electra, Chitra, Nemo, and Athena board?

Christian Zigotzky chzigotzky at xenosoft.de
Mon Dec 7 23:09:12 AEDT 2015


Michael,

Maybe a DMA issue. Please find attached an output of strace.

Cheers,

Christian

On 03 December 2015 1:37 PM, Christian Zigotzky wrote:
> Hi Michael,
>
> I checked out the Linux git till the commit 'powerpc-4.3-1'
>
> git checkout ff474e8ca8547d09cb82ebab56d4c96f9eea01ce
>
> Output:
>
> Checking out files: 100% (13843/13843), done.
> Note: checking out 'ff474e8ca8547d09cb82ebab56d4c96f9eea01ce'.
>
> You are in 'detached HEAD' state. You can look around, make experimental
> changes and commit them, and you can discard any commits you make in this
> state without impacting any branches by performing another checkout.
>
> If you want to create a new branch to retain commits you create, you may
> do so (now or later) by using -b with the checkout command again. 
> Example:
>
>   git checkout -b new_branch_name
>
> HEAD ist jetzt bei ff474e8... Merge tag 'powerpc-4.3-1' of 
> git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux
>
> ---
>
> The P.A. Semi Ethernet doesn't work with the powerpc-4.3-1 merge. I 
> reverted this merge with:
>
> git revert ff474e8ca8547d09cb82ebab56d4c96f9eea01ce -m 1
>
> Output:
>
>  Committer: christian <christian at AmigaoneX1000.lan>
> Ihr Name und E-Mail Adresse wurden automatisch auf Basis
> Ihres Benutzer- und Rechnernamens konfiguriert. Bitte prüfen Sie, dass
> diese zutreffend sind. Sie können diese Meldung unterdrücken, indem Sie
> diese explizit setzen:
>
>     git config --global user.name "Ihr Name"
>     git config --global user.email ihre at emailadresse.de
>
> Nachdem Sie das getan hast, können Sie Ihre Identität für diesen 
> Commit ändern mit:
>
>     git commit --amend --reset-author
>
>  146 files changed, 2047 insertions(+), 3609 deletions(-)
>  delete mode 100644 
> Documentation/devicetree/bindings/leds/leds-powernv.txt
>  delete mode 100644 
> Documentation/devicetree/bindings/powerpc/fsl/scfg.txt
>  delete mode 100644 arch/powerpc/boot/dts/t1040d4rdb.dts
>  delete mode 100644 arch/powerpc/boot/dts/t1042d4rdb.dts
>  delete mode 100644 arch/powerpc/boot/dts/t104xd4rdb.dtsi
>  delete mode 100644 arch/powerpc/configs/85xx-32bit.config
>  delete mode 100644 arch/powerpc/configs/85xx-64bit.config
>  delete mode 100644 arch/powerpc/configs/85xx-hw.config
>  delete mode 100644 arch/powerpc/configs/85xx-smp.config
>  delete mode 100644 arch/powerpc/configs/altivec.config
>  create mode 100644 arch/powerpc/configs/corenet32_smp_defconfig
>  rename arch/powerpc/configs/{fsl-emb-nonhw.config => 
> corenet64_smp_defconfig} (50%)
>  delete mode 100644 arch/powerpc/configs/corenet_basic_defconfig
>  delete mode 100644 arch/powerpc/configs/mpc85xx_basic_defconfig
>  create mode 100644 arch/powerpc/configs/mpc85xx_defconfig
>  create mode 100644 arch/powerpc/configs/mpc85xx_smp_defconfig
>  delete mode 100644 arch/powerpc/include/asm/trace_clock.h
>  delete mode 100644 arch/powerpc/kernel/trace_clock.c
>  rewrite arch/powerpc/platforms/powernv/opal-power.c (76%)
>  delete mode 100644 drivers/leds/leds-powernv.c
>
> ---
>
> After that the P.A. Semi Ethernet works without any problems.
>
> Cheers,
>
> Christian
>

-------------- next part --------------
execve("/sbin/ifconfig", ["ifconfig", "eth0", "up"], [/* 33 vars */]) = 0
brk(0)                                  = 0x10022000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xf7dff000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=155410, ...}) = 0
mmap(NULL, 155410, PROT_READ, MAP_PRIVATE, 3, 0) = 0xf7da9000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/powerpc-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\1\2\1\3\0\0\0\0\0\0\0\0\0\3\0\24\0\0\0\1\0\0025\240\0\0\0004"..., 512) = 512
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xf7dfe000
fstat64(3, {st_mode=S_IFREG|0755, st_size=1565776, ...}) = 0
mmap(0xfe60000, 1635768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xfe60000
mprotect(0xffd8000, 61440, PROT_NONE)   = 0
mmap(0xffe7000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x177000) = 0xffe7000
mmap(0xffed000, 9656, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xffed000
close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xf7dfd000
mprotect(0xffe7000, 20480, PROT_READ)   = 0
mprotect(0x1001f000, 4096, PROT_READ)   = 0
mprotect(0xf7e00000, 4096, PROT_READ)   = 0
munmap(0xf7da9000, 155410)              = 0
brk(0)                                  = 0x10022000
brk(0x10043000)                         = 0x10043000
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/de_DE.UTF-8/LC_IDENTIFICATION", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/de_DE.utf8/LC_IDENTIFICATION", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=363, ...}) = 0
mmap(NULL, 363, PROT_READ, MAP_PRIVATE, 3, 0) = 0xf7dfc000
close(3)                                = 0
open("/usr/lib/powerpc-linux-gnu/gconv/gconv-modules.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=26260, ...}) = 0
mmap(NULL, 26260, PROT_READ, MAP_SHARED, 3, 0) = 0xf7df5000
close(3)                                = 0
open("/usr/lib/locale/de_DE.UTF-8/LC_MEASUREMENT", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/de_DE.utf8/LC_MEASUREMENT", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=23, ...}) = 0
mmap(NULL, 23, PROT_READ, MAP_PRIVATE, 3, 0) = 0xf7df4000
close(3)                                = 0
open("/usr/lib/locale/de_DE.UTF-8/LC_TELEPHONE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/de_DE.utf8/LC_TELEPHONE", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=56, ...}) = 0
mmap(NULL, 56, PROT_READ, MAP_PRIVATE, 3, 0) = 0xf7df3000
close(3)                                = 0
open("/usr/lib/locale/de_DE.UTF-8/LC_ADDRESS", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/de_DE.utf8/LC_ADDRESS", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=155, ...}) = 0
mmap(NULL, 155, PROT_READ, MAP_PRIVATE, 3, 0) = 0xf7df2000
close(3)                                = 0
open("/usr/lib/locale/de_DE.UTF-8/LC_NAME", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/de_DE.utf8/LC_NAME", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=83, ...}) = 0
mmap(NULL, 83, PROT_READ, MAP_PRIVATE, 3, 0) = 0xf7df1000
close(3)                                = 0
open("/usr/lib/locale/de_DE.UTF-8/LC_PAPER", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/de_DE.utf8/LC_PAPER", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=34, ...}) = 0
mmap(NULL, 34, PROT_READ, MAP_PRIVATE, 3, 0) = 0xf7dce000
close(3)                                = 0
open("/usr/lib/locale/de_DE.UTF-8/LC_MESSAGES", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/de_DE.utf8/LC_MESSAGES", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
close(3)                                = 0
open("/usr/lib/locale/de_DE.utf8/LC_MESSAGES/SYS_LC_MESSAGES", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=54, ...}) = 0
mmap(NULL, 54, PROT_READ, MAP_PRIVATE, 3, 0) = 0xf7dcd000
close(3)                                = 0
open("/usr/lib/locale/de_DE.UTF-8/LC_MONETARY", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/de_DE.utf8/LC_MONETARY", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=294, ...}) = 0
mmap(NULL, 294, PROT_READ, MAP_PRIVATE, 3, 0) = 0xf7dcc000
close(3)                                = 0
open("/usr/lib/locale/de_DE.UTF-8/LC_COLLATE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/de_DE.utf8/LC_COLLATE", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=1243766, ...}) = 0
mmap(NULL, 1243766, PROT_READ, MAP_PRIVATE, 3, 0) = 0xf7c9c000
close(3)                                = 0
open("/usr/lib/locale/de_DE.UTF-8/LC_TIME", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/de_DE.utf8/LC_TIME", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=2354, ...}) = 0
mmap(NULL, 2354, PROT_READ, MAP_PRIVATE, 3, 0) = 0xf7c9b000
close(3)                                = 0
open("/usr/lib/locale/de_DE.UTF-8/LC_NUMERIC", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/de_DE.utf8/LC_NUMERIC", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=54, ...}) = 0
mmap(NULL, 54, PROT_READ, MAP_PRIVATE, 3, 0) = 0xf7c9a000
close(3)                                = 0
open("/usr/lib/locale/de_DE.UTF-8/LC_CTYPE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/de_DE.utf8/LC_CTYPE", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=256580, ...}) = 0
mmap(NULL, 256580, PROT_READ, MAP_PRIVATE, 3, 0) = 0xf7c5b000
close(3)                                = 0
uname({sysname="Linux", nodename="AmigaoneX1000", ...}) = 0
access("/proc/net", R_OK)               = 0
access("/proc/net/unix", R_OK)          = 0
socket(PF_LOCAL, SOCK_DGRAM, 0)         = 3
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 4
access("/proc/net/if_inet6", R_OK)      = 0
socket(PF_INET6, SOCK_DGRAM, IPPROTO_IP) = 5
access("/proc/net/ax25", R_OK)          = -1 ENOENT (No such file or directory)
access("/proc/net/nr", R_OK)            = -1 ENOENT (No such file or directory)
access("/proc/net/rose", R_OK)          = -1 ENOENT (No such file or directory)
access("/proc/net/ipx", R_OK)           = -1 ENOENT (No such file or directory)
access("/proc/net/appletalk", R_OK)     = -1 ENOENT (No such file or directory)
access("/proc/sys/net/econet", R_OK)    = -1 ENOENT (No such file or directory)
access("/proc/sys/net/ash", R_OK)       = -1 ENOENT (No such file or directory)
access("/proc/net/x25", R_OK)           = -1 ENOENT (No such file or directory)
open("/usr/share/locale/de_DE.UTF-8/LC_MESSAGES/net-tools.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/de_DE.utf8/LC_MESSAGES/net-tools.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/de_DE/LC_MESSAGES/net-tools.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/de.UTF-8/LC_MESSAGES/net-tools.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/de.utf8/LC_MESSAGES/net-tools.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/de/LC_MESSAGES/net-tools.mo", O_RDONLY) = 6
fstat64(6, {st_mode=S_IFREG|0644, st_size=40282, ...}) = 0
mmap(NULL, 40282, PROT_READ, MAP_PRIVATE, 6, 0) = 0xf7c51000
close(6)                                = 0
open("/usr/lib/powerpc-linux-gnu/gconv/ISO8859-1.so", O_RDONLY|O_CLOEXEC) = 6
read(6, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\24\0\0\0\1\0\0\5\0\0\0\0004"..., 512) = 512
fstat64(6, {st_mode=S_IFREG|0644, st_size=9548, ...}) = 0
mmap(0xfe3d000, 73756, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 6, 0) = 0xfe3d000
mprotect(0xfe3f000, 61440, PROT_NONE)   = 0
mmap(0xfe4e000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 6, 0x1000) = 0xfe4e000
close(6)                                = 0
mprotect(0xfe4e000, 4096, PROT_READ)    = 0
ioctl(4, SIOCGIFFLAGS, {ifr_name="eth0", ifr_flags=IFF_BROADCAST|IFF_MULTICAST}) = 0
ioctl(4, SIOCSIFFLAGS, {ifr_name="eth0", ???}) = -1 ENOMEM (Cannot allocate memory)
dup(2)                                  = 6
fcntl64(6, F_GETFL)                     = 0x10001 (flags O_WRONLY|O_LARGEFILE)
close(6)                                = 0
open("/usr/share/locale/de_DE.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/de_DE.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/de_DE/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/de.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/de.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/de/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
write(2, "SIOCSIFFLAGS: Cannot allocate me"..., 37SIOCSIFFLAGS: Cannot allocate memory
) = 37
exit_group(-1)                          = ?
+++ exited with 255 +++


More information about the Linuxppc-dev mailing list