PacktPublishing / Mastering-Embedded-Linux-Programming-Third-Edition

Mastering Embedded Linux Programming Third Edition, published by Packt
MIT License
532 stars 151 forks source link

RE: Rebuilding Ramdisk #55

Closed silver2row closed 2 years ago

silver2row commented 2 years ago

Hello,

Please view my second question below. I am updating this error/issue to handle the below text instead of what was previously stated in this issue. Please forgive me.

Seth

silver2row commented 2 years ago

Sorry...I took the correct notes.

It seems I just did not understand my notes. It works.

I have another question actually. Does BusyBox work with other toolchains outside of crosstool-ng/x-tools?

Seth

P.S. The reason I ask is b/c I tried linaro and could not get BusyBox to compile correctly. I am also getting some errors about m and resolv needing to be available. Have you come across this issue compiling BusyBox with crosstool-ng/x-tools?

fvasquez commented 2 years ago

Does BusyBox work with other toolchains outside of crosstool-ng/x-tools?

Absolutely. I typically use Buildroot to cross-compile BusyBox for a target board. Buildroot lets you select a toolchain to build with including Linaro's. Chapters 6 and 14 of the book cover Buildroot in detail.

Have you come across this issue compiling BusyBox with crosstool-ng/x-tools?

I haven't run into compilation errors you mention but I have to say that I don't normally cross-compile BusyBox outside of an embedded Linux build system like Buildroot and Yocto. Building BusyBox with crosstool-ng toolchain manually as described in Chapter 5 is just an exercise to show you it can be done. Normally, you would use a tool like Buildroot or Yocto to build the entire contents of your root filesystem including BusyBox.

fvasquez commented 2 years ago

Closing this due to inactivity. @silver2row please open a new issue[s] for any subsequent questions.

silver2row commented 2 years ago

Thank you for making me understand. I will use Buildroot or Yocto instead.