robotrokers / rokers-yocto-distro

A Yocto Distro for robot enabler embedded Linux!
MIT License
0 stars 1 forks source link

Add layer "meta-rokers" #6

Closed gmacario closed 7 years ago

gmacario commented 7 years ago

Create and activate layer meta-rokers.

At the moment the layer contains a couple of example recipes, plus one to build rokers-image-base.

Signed-off-by: Gianpaolo Macario gmacario@gmail.com

gmacario commented 7 years ago

Please do not merge the PR yet, I will first test it locally and report here.

gmacario commented 7 years ago

Testing image rokers-image-base-raspberrypi3-20170629134936.rootfs.rpi-sdimg built from http://mv-linux-powerhorse.solarma.it:9080/job/gmacario/job/genivi-dev-platform/job/feat-add-meta-rokers/

At least the image seems to behave quite like core-image-minimal

...
[  OK  ] Started Getty on tty1.
[  OK  ] Reached target Login Prompts.
[  OK  ] Started Login Service.
[  OK  ] Reached target Multi-User System.
         Starting Update UTMP about System Runlevel Changes...
[  OK  ] Started Update UTMP about System Runlevel Changes.

Yocto GENIVI Baseline (Poky/meta-ivi) 12.0.0 raspberrypi3 ttyS0

raspberrypi3 login:

After logging in with user root (default password: root)

root@raspberrypi3:~# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root               193.5M    103.6M     79.7M  57% /
devtmpfs                302.3M         0    302.3M   0% /dev
tmpfs                   430.5M         0    430.5M   0% /dev/shm
tmpfs                   430.5M      9.2M    421.3M   2% /run
tmpfs                   430.5M         0    430.5M   0% /sys/fs/cgroup
tmpfs                   430.5M         0    430.5M   0% /tmp
tmpfs                   430.5M      8.0K    430.5M   0% /var/volatile
tmpfs                    86.1M         0     86.1M   0% /run/user/0
root@raspberrypi3:~#

You may get an IP address by typing udhcpc eth0

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

root@raspberrypi3:~# udhcpc eth0
udhcpc (v1.24.1) started
[   42.263056] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   42.270386] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
Sending discover...
[   43.890114] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   43.897392] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1
Sending discover...
Sending select for 192.168.12.102...
Lease of 192.168.12.102 obtained, lease time 86400
/etc/udhcpc.d/50default: Adding DNS 130.192.3.21
/etc/udhcpc.d/50default: Adding DNS 130.192.16.17
/etc/udhcpc.d/50default: Adding DNS 8.8.8.8
root@raspberrypi3:~# ping -c 2 www.cisco.com
PING www.cisco.com (23.1.72.182): 56 data bytes
64 bytes from 23.1.72.182: seq=0 ttl=56 time=13.133 ms
64 bytes from 23.1.72.182: seq=1 ttl=56 time=10.819 ms

--- www.cisco.com ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 10.819/11.976/13.133 ms
root@raspberrypi3:~#
gmacario commented 7 years ago

LGTM, merging.

@ludusrusso if you want to test the image, you may find it under Dropbox/share-ludusrusso/feat-add-meta-rokers