目录

Kernel Compile

命令

驱动

摄像头(ov5640.ko vfl2.ko )

需要修改vfe.c

//linux-3.10/drivers/media/platform/sunxi-vfe/vfe.c
static int vidioc_g_input(struct file *file, void *priv, unsigned int *i)  {
        struct vfe_dev *dev = video_drvdata(file);

        //*i = dev->input;
        *i = 0;
        return 0;
}
//linux-3.10/drivers/media/platform/sunxi-vfe/vfe.c
static int vidioc_enum_input(struct file *file, void *priv, struct v4l2_input *inp) {
         struct vfe_dev *dev = video_drvdata(file);
         if (inp->index > dev->dev_qty-1) {
                 vfe_err("input index(%d) > dev->dev_qty(%d)-1 invalid!\n", inp->index, dev->dev_qty);
                 return -EINVAL;
         }
         vidioc_s_input(file,priv,inp->index);
         if (0 == dev->device_valid_flag[inp->index]) {
                 vfe_err("input index(%d) > dev->dev_qty(%d)-1 invalid!, device_valid_flag[%d] = %d\n",
                         inp->index, dev->dev_qty,inp->index, dev->device_valid_flag[inp->index]);
                 return -EINVAL;
         }
         inp->type = V4L2_INPUT_TYPE_CAMERA;
         return 0;
 }

Device Drivers > Multimedia support > V4L platform devices

v4l2 编译选项

GPIO libc(built in)

Device Drivers > GPIO Support

GPIO 支持

SMT32 I2C& 开机动画(stm_s103.ko)

Device Drivers > Staging drivers > Support for MXJ private driver

梦想加私有驱动

USB Net(usbnet.ko asix.ko)

Device Drivers > Network device support > USB Network Adapters

同时直接干掉无线网卡支持。

oui mac 和基于sid md5计算mac地址。

并且需要使能system info driver

Device Drivers > Character devices

系统信息

显示(built-in)

Device Drivers > Graphics support > Support for frame buffer devices > Video support for sunxi

STM32&I2C更新

19:27 2018/7/31

更新为源码自带i2c通用驱动,并且更新速率为100k

Device Drivers > I2C support

fex