
۴۴٬۰۰۰تومان
نوع فایل دانلود: EPUB
پس از خرید، یک فایل EPUB دریافت میکنید.
این فایل با Calibre، Apple Books و سایر کتابخوانهای دیجیتال مناسب است.
کتاب تسلط بر برنامهنویسی لینوکس توکار شما را در طول چرخهٔ تولید محصول همراهی میکند و اجزا و گزینههای موجود در هر مرحله را بهصورت عمیق توضیح میدهد. ابتدا با زنجیرههای ابزار، بوتلودرها، هستهٔ لینوکس و نحوهٔ پیکربندی یک فایلسیستم ریشه برای ساخت یک دستگاه ساده و کارآمد آشنا میشوید. سپس یاد میگیرید چگونه از دو سیستم ساخت پرکاربرد، یعنی Buildroot و Yocto، برای سریعتر و سادهتر کردن فرایند توسعه استفاده کنید. بر پایهٔ همین بنیاد محکم، بخش بعدی به بهترین استفاده از حافظهٔ فلش خام NAND/NOR و تراشههای فلش مدیریتشدهٔ eMMC میپردازد؛ از جمله سازوکارهایی برای افزایش عمر دستگاهها و انجام بهروزرسانیهای قابلاعتماد در میدان. سپس باید ببینید کدام تکنیکها برای نوشتن برنامههای دستگاه شما مناسبترند. بعد از آن میبینیم چگونه کارکردها بین فرایندها تقسیم میشوند و چگونه از نخهای POSIX استفاده میشود؛ موضوعاتی که تأثیر زیادی بر پاسخگویی و کارایی دستگاه نهایی دارند. بخشهای پایانی تکنیکهایی را بررسی میکنند که توسعهدهندگان با ابزارهایی مثل perf و ftrace برای پروفایل و ردگیری برنامهها و کد هسته بهکار میگیرند.
آنچه یاد میگیرید:
نقش هستهٔ لینوکس را بفهمید و نقش مناسب را برای برنامهٔ خود انتخاب کنید
با Buildroot و Yocto سیستمهای لینوکس توکار را سریع و کارآمد بسازید
با U-Boot بوتلودرهای سفارشی بسازید
با perf و ftrace گلوگاههای کارایی را پیدا کنید
درختهای دستگاه را بفهمید و برای پشتیبانی از سختافزار جدید روی دستگاه خود تغییر ایجاد کنید
برنامههایی بنویسید که با درایورهای دستگاه لینوکس تعامل دارند
برنامههای چندنخی را با نخهای POSIX طراحی و بنویسید
تأخیرهای بیدرنگ را اندازه بگیرید و هستهٔ لینوکس را طوری تنظیم کنید که این تأخیرها به حداقل برسند
Mastering Embedded Linux Programming takes you through the product cycle and gives you an in-depth description of the components and options that are available at each stage. You will begin by learning about toolchains, bootloaders, the Linux kernel, and how to configure a root filesystem to create a basic working device. You will then learn how to use the two most commonly used build systems, Buildroot and Yocto, to speed up and simplify the development process. Building on this solid base, the next section considers how to make best use of raw NAND/NOR flash memory and managed flash eMMC chips, including mechanisms for increasing the lifetime of the devices and to perform reliable in-field updates. Next, you need to consider what techniques are best suited to writing applications for your device. We will then see how functions are split between processes and the usage of POSIX threads, which have a big impact on the responsiveness and performance of the final device The closing sections look at the techniques available to developers for profiling and tracing applications and kernel code using perf and ftrace.What you will learnUnderstand the role of the Linux kernel and select an appropriate role for your applicationUse Buildroot and Yocto to create embedded Linux systems quickly and efficientlyCreate customized bootloaders using U-BootEmploy perf and ftrace to identify performance bottlenecksUnderstand device trees and make changes to accommodate new hardware on your deviceWrite applications that interact with Linux device driversDesign and write multi-threaded applications using POSIX threadsMeasure real-time latencies and tune the Linux kernel to minimize them