Ethernet not working on LS1012A FRWY board

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Ethernet not working on LS1012A FRWY board

Jump to solution
2,128 Views
henrique_m
Contributor I

Hi,

I installed the pre-build Linux images on a new LS1012A FRWY board, and the network interfaces are not showing on Linux. They do show and work inside u-boot.

I tried stopping pfe before booting linux ("pfe stop") and copied the PFE firmware to /lib/firmware/, but that did not help.

This is the error message I get for PFE firmware loading during boot:

[ 2.887456] pfe_hif_lib_init
[ 2.890541] pfe_hif_init
[ 2.893084] pfe_hif_alloc_descr
[ 2.896268] pfe_hif_init_buffers
[ 2.900244] pfe_firmware_init
[ 2.903298] Failed to find the node
[ 2.906798] pfe_firmware_init:PFE firmware not found in FDT.
[ 2.912484] pfe_firmware_init:Trying to load firmware from filesystem...!
[ 2.919376] pfe 4000000.pfe: Direct firmware load for ppfe_class_ls1012a.elf failed with error -2
[ 2.928315] pfe 4000000.pfe: Falling back to sysfs fallback for: ppfe_class_ls1012a.elf
[ 64.605213] pfe_firmware_init: request firmware ppfe_class_ls1012a.elf failed
[ 64.612394] pfe_hif_exit
[ 64.615032] pfe_hif_release_buffers
[ 64.618759] pfe_hif_free_descr
[ 64.621838] pfe_hif_lib_exit
[ 64.624841] pfe_hw_exit
[ 64.627332] pfe: probe of 4000000.pfe failed with error -110

Tags (1)
0 Kudos
1 Solution
2,092 Views
ufedor
NXP Employee
NXP Employee

Please try composite firmware image 'firmware_ls1012afrwy_uboot_qspiboot.img' available at:

https://lsdk.github.io/components.html

section LSDK IMAGES

View solution in original post

0 Kudos
5 Replies
1,888 Views
OzTheWizard
Contributor III

Having the exact same problem but proposed solution didn't work out for me.

[ 2.911895] pfe_firmware_init
[ 2.914956] Failed to find the node
[ 2.918471] pfe_firmware_init:PFE firmware not found in FDT.
[ 2.924144] pfe_firmware_init:Trying to load firmware from filesystem...!
[ 2.931060] pfe 4000000.pfe: Direct firmware load for ppfe_class_ls1012a.elf failed with error -2
[ 2.940000] pfe 4000000.pfe: Falling back to sysfs fallback for: ppfe_class_ls1012a.elf

Downloaded flex-installer for LSDK2012.

wget https://www.nxp.com/lgfiles/sdk/lsdk2012/flex-installer && chmod +x flex-installer && sudo mv flex-installer /usr/bin

Deploy command used:

flex-installer -i auto -m ls1012afrwy -d /dev/sda

Under U-boot I'm able to see both ports and are active (ping command passed).

After login into NXP LSDK2012 I don't see eth ports:

root@localhost:~# ifconfig -a
docker0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255
ether 02:42:cc:1e:34:82 txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
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 1000 (Local Loopback)
RX packets 960 bytes 68160 (68.1 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 960 bytes 68160 (68.1 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

sit0: flags=128<NOARP> mtu 1480
sit txqueuelen 1000 (IPv6-in-IPv4)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

0 Kudos
2,109 Views
ufedor
NXP Employee
NXP Employee

Which exactly "pre-build Linux images" are in question?

How exactly (log) they were installed?

0 Kudos
2,105 Views
henrique_m
Contributor I

I used the following command to install the pre-compiled images:

flex-installer -i auto -m ls1012afrwy -d /dev/sdc
/dev/sdc: 31 GB

Downloading http://www.nxp.com/lgfiles/sdk/lsdk2012/bootpartition_LS_arm64_lts_5.4.tgz ...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 598M 100 598M 0 0 3843k 0 0:02:39 0:02:39 --:--:-- 2427k
rootfs_lsdk2012_ubuntu_main_arm64.tgz already exists
Downloaded distro images [Done]
Cleaning the existing data in /dev/sdc2
Installing bootpartition_LS_arm64_lts_5.4.tgz to /dev/sdc2, waiting ...
Install bootpartition_LS_arm64_lts_5.4.tgz in /dev/sdc2 [Done]

NOTICE: Appears /mnt/sdc4 contains the existing data
Are you sure to drop the data in /mnt/sdc4 partition to proceed now? [y/n] y
Cleaning data in /mnt/sdc4
Installing rootfs_lsdk2012_ubuntu_main_arm64.tgz to /dev/sdc4, waiting ...
Install rootfs_lsdk2012_ubuntu_main_arm64.tgz in /dev/sdc4 [Done]
setting PARTUUID for boot partition /dev/sdc2 ...
Installation completed successfully

 

 

I also tried building the images locally using the following command:

flex-builder -m ls1012afrwy

Then wrote them to the sd card using:

flex-installer -b build/images/bootpartition_LS_arm64_lts_5.4.tgz -r build/images/rootfs_lsdk2012_ubuntu_main_arm64.tgz -f build/images/firmware_ls1012afrwy_uboot_qspiboot.img -m ls1012afrwy -d /dev/sdg -F

3884+1 records in
3884+1 records out
1989086 bytes (2.0 MB, 1.9 MiB) copied, 4.33302 s, 459 kB/s
Program build/images/firmware_ls1012afrwy_uboot_qspiboot.img into /dev/sdg startblock=8 [Done]
Cleaning the existing data in /dev/sdg2
Installing build/images/bootpartition_LS_arm64_lts_5.4.tgz to /dev/sdg2, waiting ...
Install build/images/bootpartition_LS_arm64_lts_5.4.tgz in /dev/sdg2 [Done]
Installing build/images/rootfs_lsdk2012_ubuntu_main_arm64.tgz to /dev/sdg4, waiting ...
Install build/images/rootfs_lsdk2012_ubuntu_main_arm64.tgz in /dev/sdg4 [Done]
setting PARTUUID for boot partition /dev/sdg2 ...
Installation completed successfully

Thanks!

0 Kudos
2,093 Views
ufedor
NXP Employee
NXP Employee

Please try composite firmware image 'firmware_ls1012afrwy_uboot_qspiboot.img' available at:

https://lsdk.github.io/components.html

section LSDK IMAGES

0 Kudos
2,089 Views
henrique_m
Contributor I

That solved the issue! Thanks very much for your help!

0 Kudos