前言/背景
之前做的是单片机板块的,并且长达三年之久,刚毕业本来就想找linux驱动方面的额工作的,奈何了解的不深,没什么工作经验,基础不是很扎实,所以在这期间也浪费了不少时间,还好没有忘记初衷,最后用了一年的时间,因为平时工作比较忙,所以就只能利用周末的时间看视频学习,平时就翻翻有关kernel和uboot的文章来加强这方面的认识
面试流程
面试肯定少不了对C语言的考察,建议多刷题,还是就是指针很重要,uboot和kernel启动过程等等
资料总结/刷题指南
这里我是花了钱买了一块正点原子的阿尔法板子回来跟着视频学习,正点原子的资料也是开源的可以去开源电子网,跟着做了一遍,最主要是形成一个驱动的概念,这种区别与以前的单片机中驱动的概念。
还有就是驱动源码中也有大量的别人写好的驱动,这其实也相当于一份免费的资料的
其次就是源码中 Documentation里面也有很多的说明,前提是有耐心去仔细阅读英文,其实都是一些浅显易懂的英文,实在不懂可以上翻译
比如Documentation/devicetree/bindings/leds,就有关于led设备树怎么配的一些说明
equired properties:
- compatible : should be "gpio-leds".
Each LED is represented as a sub-node of the gpio-leds device. Each
node's name represents the name of the corresponding LED.
LED sub-node properties:
- gpios : Should specify the LED's GPIO, see "gpios property" in
Documentation/devicetree/bindings/gpio/gpio.txt. Active low LEDs should be
indicated using flags in the GPIO specifier.
- label : (optional)
see Documentation/devicetree/bindings/leds/common.txt
- linux,default-trigger : (optional)
see Documentation/devicetree/bindings/leds/common.txt
- default-state: (optional) The initial state of the LED.
see Documentation/devicetree/bindings/leds/common.txt
- retain-state-suspended: (optional) The suspend state can be retained.Such
as charge-led gpio.
- retain-state-shutdown: (optional) Retain the state of the LED on shutdown.
Useful in BMC systems, for example when the BMC is rebooted while the host
remains up.
- panic-indicator : (optional)
see Documentation/devicetree/bindings/leds/common.txt
其实都是描述一些设备树的属性
个人经验总结
反正要静下心来才行,三分钟热度是不行的,其次就是面试了,面试无非就是考察你简历上的东西是不是该公司需要的,即便你会的很多但都不是公司需要的还是会被pass掉,所以在写简历的时候一定要慎重,简历上的东西自己一定要会,多去巩固简历上存在的的东西,如果面试官问简历上的东西自己又不知道就会让你的身价掉的很低
寄语
希望大家也能早点找到自己心仪的工作