读书笔记《Building embedded linux systems》Chapter 1

一直都将计算机,包括上面的软件作为工具,工具者,只求甚用,不求甚解。越到问题的时候就到网上共产主义一把。现在开始想定制linux操作系统,希望能在MID和手机这类手持移动设备中使用。必须提高理论水平。

网上一搜,发现太多linux bible,比如这位O'REILLY老兄。不知道能看完他老人家多少本书。格物致知,只好先格准备Building Embedded Linux Systems,先从第一章 介绍开始格起。

这里面看GPL最绕来绕去,兼且英文有不太好。合法的license想了解一下。大致是如果你只是使用(不改动),那么你不会受到GPL的限制,如果你改动了,就要受到GPL的限制,不能对外发布,你的程序必须具有GPL,也就是需公布你的source code等等。但如果在linux kernel的app是不受GPL的限制。但是对二进制的module目前虽没有被监控,但是趋势是不能容忍,需要谨慎。『记得以前有个项目进行高速的voip检测,就是使用module的方式,不过因为只在公司内部使用,不会涉及什么问题。这就是运营商的好处,头次发现比厂家方便的地方。organization覆盖范围大。』

如果我们希望有很高的控制权新,想建立我们自己的target,我们就需要长期地进行维护,这中方式需要和采用公开的或者社区的方式进行取舍。『考虑选择哪些』

创建一个target linux系统包括以下四步:
一、确定系统的组成:linux中有大量的东西并非你的目标系统需要,可以列一下你需要的组成部分。硬件部分也可以作为嵌入式系统的一个组成部分。在选择相关软件版本时,应避免不断地升级这些软件。当你要升级这些软件时,需要检查是否对你的系统造成影响。
二、配置和build内核:我们需要选择合适的稳定的内核版本,出现问题的时候可能需要更新或者回退版本;
三、建立root文件系统;
四、set up启动软件和配置。


There's a great deal of excitement surrounding the use of Linux in embedded systems -- for everything from cell phones to car ABS systems and water-filtration plants -- but not a lot of practical information. Building Embedded Linux Systems offers an in-depth, hard-core guide to putting together embedded systems based on Linux. Updated for the latest version of the Linux kernel, this new edition gives you the basics of building embedded Linux systems, along with the configuration, setup, and use of more than 40 different open source and free software packages in common use. The book also looks at the strengths and weaknesses of using Linux in an embedded system, plus a discussion of licensing issues, and an introduction to real-time, with a discussion of real-time options for Linux. This indispensable book features arcane and previously undocumented procedures for: * Building your own GNU development toolchain * Using an efficient embedded development framework * Selecting, configuring, building, and installing a target-specific kernel * Creating a complete target root filesystem * Setting up, manipulating, and using solid-state storage devices * Installing and configuring a bootloader for the target * Cross-compiling a slew of utilities and packages * Debugging your embedded system using a plethora of tools and techniques * Using the uClibc, BusyBox, U-Boot, OpenSSH, thttpd, tftp, strace, and gdb packages By presenting how to build the operating system components from pristine sources and how to find more documentation or help, Building Embedded Linux Systems greatly simplifies the task of keeping complete control over your embedded operating system.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值