VAR-SOM-MX6 Ubuntu Customize linux-variscite: Difference between revisions
No edit summary |
|||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{PageHeader|VAR-SOM-MX6 - Customize linux-variscite}} {{DocImage|category1=VAR-SOM-MX6|category2=Alip}} __toc__ | {{PageHeader|VAR-SOM-MX6 - Customize linux-variscite}} {{DocImage|category1=VAR-SOM-MX6|category2=Alip}} __toc__ | ||
{{note|Note:<br/>Under Construction|info}} | {{note|Note:<br/>Under Construction|info}} | ||
= | = Overview = | ||
Ubuntu Linaro Alip is pre built file system. For more information [https://wiki.linaro.org/Platform/DevPlatform/Rootfs Ubuntu based Rootfs provided by Linaro]. | |||
Variscite used linaro-vivid-alip-20151215-714 image added Vivante Graphic acceleration and compile the GStreamer with i.MX6 support. | |||
[[VAR-SOM-MX6_Ubuntu_Build_Ubuntu_Alip_NFS | Build Ubuntu Alip NFS]] is prerequisite step. Please make sure you run it and have a complete NFS build directory as described in the linked WIKI. Also make sure you target is booted from NFS. | |||
We deliver a complete Linux in source code adopted to our development platforms. Our customers may require additional changes. | We deliver a complete Linux in source code adopted to our development platforms. Our customers may require additional changes. | ||
You can change and adopt the Linux kernel and/or the device tree's to your requirements. | |||
= Linux Changes = | = Linux Changes = | ||
<pre> | |||
$ cd ~/var-som-mx6-alip | |||
$ export PATH=/opt/gcc-linaro-arm-linux-gnueabihf-4.9-2014.05_linux/bin/:$PATH | |||
</pre> | |||
Make your kernel changes and test them. Most of the changes will be in Linux kernel configuration. | Make your kernel changes and test them. Most of the changes will be in Linux kernel configuration. | ||
For example: | For example: | ||
<pre> | <pre> | ||
Add a printer gadget | Add a printer gadget | ||
$ make -j6 ARCH=arm CROSS_COMPILE= | $ make -j6 ARCH=arm CROSS_COMPILE=aarm-linux-gnueabihf- menuconfig | ||
</pre> | </pre> | ||
[[File:Add_module.png]] | [[File:Add_module.png]] | ||
Line 21: | Line 25: | ||
Changes made: | Changes made: | ||
<pre> | <pre> | ||
diff .config arch/arm/configs/ | diff .config arch/arm/configs/imx_v7_var_ubuntu_defconfig | ||
3359c3359 | 3359c3359 | ||
< CONFIG_USB_G_PRINTER=m | < CONFIG_USB_G_PRINTER=m | ||
Line 40: | Line 44: | ||
$ git add arch/arm/configs/imx_v7_var_custom_defconfig | $ git add arch/arm/configs/imx_v7_var_custom_defconfig | ||
$ git commit -a -m "Custom" | $ git commit -a -m "Custom" | ||
</pre> | </pre> | ||
Latest revision as of 16:35, 7 January 2016
Under Construction
Overview
Ubuntu Linaro Alip is pre built file system. For more information Ubuntu based Rootfs provided by Linaro. Variscite used linaro-vivid-alip-20151215-714 image added Vivante Graphic acceleration and compile the GStreamer with i.MX6 support.
Build Ubuntu Alip NFS is prerequisite step. Please make sure you run it and have a complete NFS build directory as described in the linked WIKI. Also make sure you target is booted from NFS. We deliver a complete Linux in source code adopted to our development platforms. Our customers may require additional changes. You can change and adopt the Linux kernel and/or the device tree's to your requirements.
Linux Changes
$ cd ~/var-som-mx6-alip $ export PATH=/opt/gcc-linaro-arm-linux-gnueabihf-4.9-2014.05_linux/bin/:$PATH
Make your kernel changes and test them. Most of the changes will be in Linux kernel configuration. For example:
Add a printer gadget $ make -j6 ARCH=arm CROSS_COMPILE=aarm-linux-gnueabihf- menuconfig
Changes made:
diff .config arch/arm/configs/imx_v7_var_ubuntu_defconfig 3359c3359 < CONFIG_USB_G_PRINTER=m --- > # CONFIG_USB_G_PRINTER is not set
Create a new config file
$ cp .config arch/arm/configs/imx_v7_var_custom_defconfig $ git status On branch imx_3.14.38_6qp_ga_var01 Untracked files: (use "git add <file>..." to include in what will be committed) arch/arm/configs/imx_v7_var_custom_defconfig nothing added to commit but untracked files present (use "git add" to track) $ git add arch/arm/configs/imx_v7_var_custom_defconfig $ git commit -a -m "Custom"
Build and run the system
On target:
root@var-som-mx6:~# find /lib/modules/ -name *.ko | grep print /lib/modules/3.14.38-6QP+g5b28091/kernel/drivers/usb/gadget/g_printer.ko