jubinson / debian-rootfs

Generation of Debian rootfs for multiple architectures
MIT License
88 stars 45 forks source link

How to setup networks (use ethernet) #1

Open Srrbli-23 opened 3 years ago

Srrbli-23 commented 3 years ago

I use Cyclone V SoC that has an Arm Cortex-A9 core

I'm sure that my linux kernel and device tree are correct But I can't get the board ip address when it power up

root@armhf:~# ifconfig
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

It seems to lack dhcp service...

root@armhf:~# ls /etc/init.d/   
README          checkroot.sh  killprocs          mountdevsubfs.sh       procps    rmnologin  udev          urandom
bootlogs        dbus          kmod           mountkernfs.sh     rc        sendsigs   udev-finish
bootmisc.sh     halt          motd           mountnfs-bootclean.sh  rc.local  single     umountfs
checkfs.sh      hostname.sh   mountall-bootclean.sh  mountnfs.sh        rcS       skeleton   umountnfs.sh
checkroot-bootclean.sh  hwclock.sh    mountall.sh        networking         reboot    ssh    umountroot

Should I recompile rootfs again? Thanks

AyHa1810 commented 2 years ago

use my rootfs generator jk

You can simply install it in the environment using the following command:

# apt-get install isc-dhcp-server

Or you can add the isc-dhcp-server package in your multistrap*.conf file and then build the rootfs