Re: [yocto] Assign IP address at boot time

2021-03-11 Thread Chen Qi
Try adding the following line to the match section of the 80-wired.network file. KernelCommandLine=!ip Regards, Chen Qi On 03/12/2021 02:12 AM, jchludzinski via lists.yoctoproject.org wrote: Can this be done using boot parameters? Something like(?): LABEL Arria10 SOCDK SDMMC KERNEL

Re: [yocto] Assign IP address at boot time

2021-03-11 Thread Rudolf J Streif
On 3/11/21 10:12 AM, jchludzinski wrote: Can this be done using boot parameters? Not that I know of. Why anyway? Something like(?): LABEL Arria10 SOCDK SDMMC KERNEL ../zImage FDT ../socfpga_arria10_phead.dtb APPEND root=/dev/mmcblk0p2 rw rootwait earlyprintk

Re: [yocto] Assign IP address at boot time

2021-03-11 Thread jchludzinski via lists.yoctoproject.org
Can this be done using boot parameters? Something like(?): LABEL Arria10 SOCDK SDMMC KERNEL ../zImage FDT ../socfpga_arria10_phead.dtb APPEND root=/dev/mmcblk0p2 rw rootwait earlyprintk console=ttyS0,115200n8 ip=192.168.0.101:255.255.255.0:eth0 -=-=-=-=-=-=-=-=-=-=-=- Links: You

Re: [yocto] Assign IP address at boot time

2021-03-10 Thread Rudolf J Streif
On 3/10/21 1:32 PM, jchludzinski wrote: Create the file /etc/systemd/network/eth0.conf: [Match] Name=eth0 [Network] Address= Gateway= DNS= That didn't work BUT editing /lib/systemd/network/80-wired.network [Match] Name=en* eth* KernelCommandLine=!nfsroot [Match] Name=eth0 [Network]

Re: [yocto] Assign IP address at boot time

2021-03-10 Thread jchludzinski via lists.yoctoproject.org
Create the file /etc/systemd/network/eth0.conf: [Match] Name=eth0 [Network] Address= Gateway= DNS= That didn't work BUT editing /lib/systemd/network/80-wired.network [Match] Name=en* eth* KernelCommandLine=!nfsroot [Match] Name=eth0 [Network] Address=192.168.0.101/24 #Gateway= #DNS=

Re: [yocto] Assign IP address at boot time

2021-03-10 Thread Rudolf J Streif
Create the file /etc/systemd/network/eth0.conf: [Match] Name=eth0 [Network] Address= Gateway= DNS= Restart systemd-networkd # systemctl restart systemd-networkd or reboot. :rjs On 3/10/21 11:31 AM, jchludzinski wrote: What is your startup manager? systemd or SysVInit? systemd --

Re: [yocto] Assign IP address at boot time

2021-03-10 Thread jchludzinski via lists.yoctoproject.org
What is your startup manager? systemd or SysVInit? systemd -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#52652): https://lists.yoctoproject.org/g/yocto/message/52652 Mute This Topic: https://lists.yoctoproject.org/mt/81212608/21656 Group

Re: [yocto] Assign IP address at boot time

2021-03-10 Thread Rudolf J Streif
On 3/9/21 11:34 PM, jchludzinski wrote: To start, do you have the driver required for your network interface? Yes, the network/Ethernet device is recognized by Linux and the appropriate driver is loaded. If I use: $ ip add add 192.168.9.101/24 dev eth0 I’m up and running. But I want the

Re: [yocto] Assign IP address at boot time

2021-03-10 Thread Zoran
Hello, Maybe you can stop in the U-Boot monitor, and check your environment? => => print serverip => print ipaddr => print gatewayip => print gw_ip And see what and how your bootcmd and similar env variables look like? And if you do not have defined above, to add them (according to ash script)

Re: [yocto] Assign IP address at boot time

2021-03-09 Thread jchludzinski via lists.yoctoproject.org
To start, do you have the driver required for your network interface? Yes, the network/Ethernet device is recognized by Linux and the appropriate driver is loaded. If I use: $ ip add add 192.168.9.101/24 dev eth0 I’m up and running. But I want the IP assignment to happen during boot time.

Re: [yocto] Assign IP address at boot time

2021-03-09 Thread Rudolf J Streif
Hi there, On 3/9/21 1:27 PM, jchludzinski via lists.yoctoproject.org wrote: Where do I assign a static IP address to my sole network interface? That depends on whether or not you are using a network manager and if so which one. You haven't told us much about your board and it's network

[yocto] Assign IP address at boot time

2021-03-09 Thread jchludzinski via lists.yoctoproject.org
Where do I assign a static IP address to my sole network interface? I tried using the Linux boot parameters (in extlinux.conf): LABEL Arria10 SOCDK SDMMC KERNEL ../zImage FDT ../socfpga_arria10_phead.dtb APPEND root=/dev/mmcblk0p2 rw rootwait earlyprintk console=ttyS0,115200n8