Find and modify the Linux kernel files __linux

Source: Internet
Author: User

The ubuntu14.04 system is used and is installed using VMware virtual machines.

As you can see from the kernel's slightly modified content, you may later need to modify some kernel code to match the hardware.

Kernel file location for virtual machines:/usr/src/linux-headers-4.2.0-27-generic/kernel/

The HiSilicon 3519 and 3516A systems are now used for video surveillance.

The original text of the connection is as follows: Click on the Open link (3519 kernel slightly modified)

Now look for the kernel location of the 3516A Development Board, the file system already exists, but the file system can not find the kernel, the kernel file in the Development Board to the data,

xxx@ubuntu14:~/project_hi3519/linux-3.18.y/arch/arm/boot/dts$

The kernel file is in the modified directory, the link can also find the file, but the specific content is not the same.

But the files are here when you want to view the kernel later.

The links are described in the following files:

--------------------------------------------------------------------------------------------------------------- ------------------------------------------------------

Kernel:
To modify a file:
Arch/arm/boot/dts/hisi-hi3519v101-hmp-demb.dts

&higmac {
compatible = "Hisilicon,higmac-v3", "Hisilicon,higmac";
Phy-handle = <&ethphy>;
Phy-mode = "Rgmii";
};

--------------------------------------------------------------------------------------------------------------- -------------------------------------------------------

* Copyright (c) 2013-2014 Linaro Ltd.
* Copyright (c) 2015 HiSilicon Technologies Co., Ltd.
*
* This are free software; You can redistribute it and/or modify it
* Under the terms of the GNU general public License as published by the
* Free Software Foundation; Either version 2 of the License, or (at your
* option) any later version.
*
* This are distributed in the hope that it'll be useful,
* but without any WARRANTY; Without even the implied warranty of
* merchantability or FITNESS for A particular purpose. The
* GNU general public License for more details.
*
* You should have received a copy of the GNU general public License
* Along with this program. If not, *
*/


/dts-v1/;
#include "Hisi-hi3519.dtsi"


/ {
Model = "HiSilicon HI3519 DEMO Board";
compatible = "hisilicon,hi3519";


Chosen {
Bootargs = "console=ttyama0,115200 early_printk
Root=/dev/mtdblock2 rootfstype=jffs2 mtdparts=hi_sfc:1m (boot),
4M (Kernel), 11M (Rootfs) ";
};


CPUs {
#address-cells = <1>;
#size-cells = <0>;
Enable-method = "HISILICON,HI3519-SMP";


cpu@0 {
compatible = "Arm,cortex-a7";
Device_type = "CPU";
Clock-frequency = <HI3519_FIXED_792M>;
Reg = <0>;
Cci-control-port = <&cci_control0>;
};


cpu@100 {
compatible = "Arm,cortex-a17";
Device_type = "CPU";
Clock-frequency = <HI3519_FIXED_1000M>;
Reg = <0x100>;
Cci-control-port = <&cci_control1>;
};
};


Memory {
Device_type = "Memory";
Reg = <0x80000000 0x40000000>;
};
};


&uart0 {
Status = "Okay";
};
&dual_timer0 {
Status = "Okay";
};


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.