No network at startup using core-image-minimal
Dear all,
I am setting up my Odroid XU with yocto using the core-image-minimal receipe. Almost done and I am able to boot the system and log in via screen (UART), but..
The network is not present at start-up. When I do lsmod I just see "Not tainted" and no modules are loaded.
The module I need to load is the smsc95xx module. When I tried to load the driver with "modpobe" it could not find the driver (although it is in /lib/modules/3.4.98-custom/kernel/drivers/net/usb) I had to manually add it to /lib/modules/3.4.98-custom/modules.dep (which was empty after the bitbake process in rootfs)
So I added "kernel/drivers/net/usb/smsc95xx.ko: " to modules.dep.
Then I could load it with modprobe. In order to load it at startup
I created a /etc/modules with the content "smsc95xx". Now my question:
Is there an easier (bitbake) way to make the modules load at startup without editing configs on the target device? Am I missing something? Does core-image-minimal not include network?
Cheers,
Markus
Signature · 35 lines
Dr.-Ing. Markus Eich Senior Researcher Marine Inspection Robotics Space Robotics Besuchsadresse der Nebengeschäftstelle: DFKI GmbH Robotics Innovation Center Robert-Hooke-Straße 5 28359 Bremen, Germany Postadresse der Hauptgeschäftsstelle Standort Bremen: DFKI GmbH Robotics Innovation Center Robert-Hooke-Straße 1 28359 Bremen, Germany Tel.: +49 421 178 45-4105 Zentrale: +49 421 178 45-0 Fax: +49 421 178 45-4150 (Faxe bitte namentlich kennzeichnen) E-Mail: [email protected] Weitere Informationen: http://www.dfki.de/robotik ----------------------------------------------------------------------- Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH Firmensitz: Trippstadter Straße 122, D-67663 Kaiserslautern Geschaeftsfuehrung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster (Vorsitzender) Dr. Walter Olthoff Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes Amtsgericht Kaiserslautern, HRB 2313 Sitz der Gesellschaft: Kaiserslautern (HRB 2313) USt-Id.Nr.: DE 148646973 Steuernummer: 19/673/0060/3 -----------------------------------------------------------------------
Hi Markus,
Please try core-image-base instead of core-image-minimal. That should provide you with the necessary network support.
Best regards,
Rudi
Quoted 74 lines · Dr. Markus Eich
Dear all,
I am setting up my Odroid XU with yocto using the core-image-minimal receipe. Almost done and I am able to boot the system and log in via screen (UART), but..
The network is not present at start-up. When I do lsmod I just see "Not tainted" and no modules are loaded.
The module I need to load is the smsc95xx module. When I tried to load the driver with "modpobe" it could not find the driver (although it is in
/lib/modules/3.4.98-custom/kernel/drivers/net/usb)
I had to manually add it to/lib/modules/3.4.98-custom/modules.dep(which was empty after the bitbake process in rootfs)So I added "
kernel/drivers/net/usb/smsc95xx.ko: " to modules.dep.Then I could load it with modprobe. In order to load it at startup
I created a
/etc/moduleswith the content "smsc95xx". Now my question:Is there an easier (bitbake) way to make the modules load at startup without editing configs on the target device? Am I missing something? Does core-image-minimal not include network?
Cheers,
Markus
--
Dr.-Ing. Markus EichSenior Researcher
Marine Inspection Robotics
Space Robotics
Besuchsadresse der Nebengeschäftstelle:
DFKI GmbH
Robotics Innovation Center Robert-Hooke-Straße 5
28359 Bremen, Germany
Postadresse der Hauptgeschäftsstelle Standort Bremen:
DFKI GmbH
Robotics Innovation Center Robert-Hooke-Straße 1
28359 Bremen, GermanyTel.: +49 421 178 45-4105
Zentrale: +49 421 178 45-0
Fax: +49 421 178 45-4150 (Faxe bitte namentlich kennzeichnen)
E-Mail: [email protected]Weitere Informationen: http://www.dfki.de/robotik
-----------------------------------------------------------------------
Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
Firmensitz: Trippstadter Straße 122, D-67663 Kaiserslautern
Geschaeftsfuehrung: Prof. Dr. Dr.h.c. mult. Wolfgang Wahlster (Vorsitzender) Dr. Walter Olthoff
Vorsitzender des Aufsichtsrats: Prof. Dr.h.c. Hans A. Aukes Amtsgericht Kaiserslautern, HRB 2313
Sitz der Gesellschaft: Kaiserslautern (HRB 2313)
USt-Id.Nr.: DE 148646973
Steuernummer: 19/673/0060/3
-------------------------------------------------------------------------
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
Hi Rudolf,
same result with the core-image-base.
It seems that depmod is not run before building the image/modules in the deploy folder. I have a custom kernel recipes. How can I make bitbake to run depmod -a on the rootfs?
My recipes inherits kernel
and requires
recipes-kernel/linux/linux-yocto.inc
Cheers,
Markus
Quoted 85 lines · Rudolf Streif
Hi Markus,
Please try core-image-base instead of core-image-minimal. That should provide you with the necessary network support.
Best regards,
RudiOn Aug 8, 2014 6:46 AM, "Dr. Markus Eich" <[email protected] <mailto:[email protected]>> wrote:
Dear all,
I am setting up my Odroid XU with yocto using the core-image-minimal receipe. Almost done and I am able to boot the system and log in via screen (UART), but..
The network is not present at start-up. When I do lsmod I just see "Not tainted" and no modules are loaded.
The module I need to load is the smsc95xx module. When I tried to load the driver with "modpobe" it could not find the driver (although it is in
/lib/modules/3.4.98-custom/kernel/drivers/net/usb) I had to manually add it to/lib/modules/3.4.98-custom/modules.dep(which was empty after the bitbake process in rootfs)So I added "
kernel/drivers/net/usb/smsc95xx.ko: " to modules.dep.Then I could load it with modprobe. In order to load it at startup
I created a
/etc/moduleswith the content "smsc95xx". Now my question:Is there an easier (bitbake) way to make the modules load at startup without editing configs on the target device? Am I missing something? Does core-image-minimal not include network?
Cheers,
Markus
--
Dr.-Ing. Markus EichSenior Researcher
Marine Inspection Robotics
Space Robotics
Besuchsadresse der Nebengeschäftstelle:
DFKI GmbH
Robotics Innovation Center Robert-Hooke-Straße 5
28359 Bremen, Germany
Postadresse der Hauptgeschäftsstelle Standort Bremen:
DFKI GmbH
Robotics Innovation Center Robert-Hooke-Straße 1
28359 Bremen, GermanyTel.: +49 421 178 45-4105 <tel:%2B49%20421%20178%2045-4105>
Zentrale: +49 421 178 45-0 <tel:%2B49%20421%20178%2045-0>
Fax: +49 421 178 45-4150 <tel:%2B49%20421%20178%2045-4150> (Faxe
bitte namentlich kennzeichnen)
E-Mail: [email protected] <mailto:[email protected]>Weitere Informationen: http://www.dfki.de/robotik
-----------------------------------------------------------------------
Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
Firmensitz: Trippstadter Straße 122, D-67663 Kaiserslautern
Geschaeftsfuehrung: Prof. Dr. Dr.h.c. mult. Wolfgang Wahlster (Vorsitzender) Dr. Walter Olthoff
Vorsitzender des Aufsichtsrats: Prof. Dr.h.c. Hans A. Aukes Amtsgericht Kaiserslautern, HRB 2313
Sitz der Gesellschaft: Kaiserslautern (HRB 2313)
USt-Id.Nr.: DE 148646973
Steuernummer: 19/673/0060/3
-------------------------------------------------------------------------
_______________________________________________
yocto mailing list
[email protected] <mailto:[email protected]>
https://lists.yoctoproject.org/listinfo/yocto
Signature · 35 lines
Dr.-Ing. Markus Eich Senior Researcher Marine Inspection Robotics Space Robotics Besuchsadresse der Nebengeschäftstelle: DFKI GmbH Robotics Innovation Center Robert-Hooke-Straße 5 28359 Bremen, Germany Postadresse der Hauptgeschäftsstelle Standort Bremen: DFKI GmbH Robotics Innovation Center Robert-Hooke-Straße 1 28359 Bremen, Germany Tel.: +49 421 178 45-4105 Zentrale: +49 421 178 45-0 Fax: +49 421 178 45-4150 (Faxe bitte namentlich kennzeichnen) E-Mail: [email protected] Weitere Informationen: http://www.dfki.de/robotik ----------------------------------------------------------------------- Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH Firmensitz: Trippstadter Straße 122, D-67663 Kaiserslautern Geschaeftsfuehrung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster (Vorsitzender) Dr. Walter Olthoff Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes Amtsgericht Kaiserslautern, HRB 2313 Sitz der Gesellschaft: Kaiserslautern (HRB 2313) USt-Id.Nr.: DE 148646973 Steuernummer: 19/673/0060/3 -----------------------------------------------------------------------
Hi Markus,
Quoted 6 lines
same result with the core-image-base.
It seems that depmod is not run before building the image/modules in the deploy folder. I have a custom kernel recipes. How can I make bitbake to run depmod -a on the rootfs?
Quoted 7 lines
My recipes inherits kernel
and requires
recipes-kernel/linux/linux-yocto.inc
Ok, in this case you want to use
module_autoload_<modname> = "modname1 modname2 modname3"
in your kernel recipe (or distro or machine configuration which is actually preferable). For example
module_autoload_smsc95xx = "smsc95xx"
The module-split class should pick it up and add the module to /etc/modules-load.d/modname.conf.
Cheers,
Rudi
Thank you for the info.
Solved it the following way:
I added
IMAGE_INSTALL += "kernel_modules" to my local.conf.
Now SMSC95xx (plus some other modules, like joydrive) are autoloaded on boot.
Cheers,
Markus
Am 12.08.2014 um 18:56 schrieb Rudolf Streif:
Quoted 23 lines
Hi Markus,
same result with the core-image-base.
It seems that depmod is not run before building the image/modules in the deploy folder. I have a custom kernel recipes. How can I make bitbake to run depmod -a on the rootfs?
My recipes inherits kernel
and requires
recipes-kernel/linux/linux-yocto.inc
Ok, in this case you want to use
module_autoload_<modname> = "modname1 modname2 modname3"
in your kernel recipe (or distro or machine configuration which is actually preferable). For examplemodule_autoload_smsc95xx= "smsc95xx"
The module-split class should pick it up and add the module to/etc/modules-load.d/modname.conf. Cheers,
Rudi
Signature · 35 lines
Dr.-Ing. Markus Eich Senior Researcher Marine Inspection Robotics Space Robotics Besuchsadresse der Nebengeschäftstelle: DFKI GmbH Robotics Innovation Center Robert-Hooke-Straße 5 28359 Bremen, Germany Postadresse der Hauptgeschäftsstelle Standort Bremen: DFKI GmbH Robotics Innovation Center Robert-Hooke-Straße 1 28359 Bremen, Germany Tel.: +49 421 178 45-4105 Zentrale: +49 421 178 45-0 Fax: +49 421 178 45-4150 (Faxe bitte namentlich kennzeichnen) E-Mail: [email protected] Weitere Informationen: http://www.dfki.de/robotik ----------------------------------------------------------------------- Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH Firmensitz: Trippstadter Straße 122, D-67663 Kaiserslautern Geschaeftsfuehrung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster (Vorsitzender) Dr. Walter Olthoff Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes Amtsgericht Kaiserslautern, HRB 2313 Sitz der Gesellschaft: Kaiserslautern (HRB 2313) USt-Id.Nr.: DE 148646973 Steuernummer: 19/673/0060/3 -----------------------------------------------------------------------