Giter Club home page Giter Club logo

kernel's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kernel's Issues

REF_CLKO don't have output

I have config the dts as below:
pinctrl-names = "default";
pinctrl-0 = <&npu_ref_clk>;

npu_clk {
	npu_ref_clk: npu-ref-clk {
	     rockchip,pins =
		     <0 RK_PA2 1 &pcfg_pull_none>;
     };
};

But the REF_CLKO has not any signal?

Failed to cross-compile kernel to arm64 architecture (undefined symbol usbnet_xxx)

Repository revision: 56b9639
OS version: Ubuntu 18.04
compiler version: aarch64-linux-gnu-gcc (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04) 7.5.0
linker verion: aarch64-linux-gnu-ld GNU ld (GNU Binutils for Ubuntu) 2.30
make verion: GNU Make 4.1

Commands to reproduce:

git clone https://github.com/rockchip-toybrick/kernel.git
cd kernel
make distclean                                                   
make ARCH=arm64 defconfig                                        
ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- make all V=1 -j10 all

Error message:

+ aarch64-linux-gnu-ld -EL --no-undefined -X --build-id -o .tmp_vmlinux1 -T ./arch/arm64/kernel/vmlinux.lds arch/arm64/kernel/head.o init/built-in.o --start-group usr/built-in.o arch/arm64/kernel/built-in.o arch/arm64/mm/built-in.o a
arm64/net/built-in.o arch/arm64/kvm/built-in.o arch/arm64/crypto/built-in.o ./drivers/firmware/efi/libstub/lib.a kernel/built-in.o certs/built-in.o mm/built-in.o fs/built-in.o ipc/built-in.o security/built-in.o crypto/built-in.o bloc
ilt-in.o arch/arm64/lib/lib.a lib/lib.a arch/arm64/lib/built-in.o lib/built-in.o drivers/built-in.o sound/built-in.o firmware/built-in.o net/built-in.o virt/built-in.o --end-group                                                      
drivers/built-in.o: In function `GobiSuspend':                                                                                                                                                                                           
/data/home/fjc/workspace/toybrick-kernel/drivers/net/usb/GobiUSBNet.c:451: undefined reference to `usbnet_suspend'                                                                                                                       
/data/home/fjc/workspace/toybrick-kernel/drivers/net/usb/GobiUSBNet.c:451:(.text+0x12c428): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `usbnet_suspend'                                                      
drivers/built-in.o: In function `GobiResume':                                                                                                                                                                                            
/data/home/fjc/workspace/toybrick-kernel/drivers/net/usb/GobiUSBNet.c:510: undefined reference to `usbnet_resume'                                                                                                                        
/data/home/fjc/workspace/toybrick-kernel/drivers/net/usb/GobiUSBNet.c:510:(.text+0x12c600): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `usbnet_resume'                                                       
drivers/built-in.o: In function `GobiUSBNetStartXmit':                                                                                                                                                                                   
/data/home/fjc/workspace/toybrick-kernel/drivers/net/usb/GobiUSBNet.c:1189: undefined reference to `usbnet_start_xmit'                                                                                                                   
/data/home/fjc/workspace/toybrick-kernel/drivers/net/usb/GobiUSBNet.c:1189:(.text+0x12cd40): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `usbnet_start_xmit'                                                  
drivers/built-in.o: In function `GobiUSBNetProbe':                                                                                                                                                                                       
/data/home/fjc/workspace/toybrick-kernel/drivers/net/usb/GobiUSBNet.c:1454: undefined reference to `usbnet_probe'                                                                                                                        
/data/home/fjc/workspace/toybrick-kernel/drivers/net/usb/GobiUSBNet.c:1454:(.text+0x12daa8): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `usbnet_probe'                                                       
/data/home/fjc/workspace/toybrick-kernel/drivers/net/usb/GobiUSBNet.c:1533: undefined reference to `usbnet_tx_timeout'                                                                                                                   
/data/home/fjc/workspace/toybrick-kernel/drivers/net/usb/GobiUSBNet.c:1533:(.text+0x12db90): relocation truncated to fit: R_AARCH64_ADR_PREL_PG_HI21 against undefined symbol `usbnet_tx_timeout'                                        
/data/home/fjc/workspace/toybrick-kernel/drivers/net/usb/GobiUSBNet.c:1533: undefined reference to `usbnet_tx_timeout'                                                                                                                   
/data/home/fjc/workspace/toybrick-kernel/drivers/net/usb/GobiUSBNet.c:1578: undefined reference to `usbnet_disconnect'                                                                                                                   
/data/home/fjc/workspace/toybrick-kernel/drivers/net/usb/GobiUSBNet.c:1578:(.text+0x12dc98): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `usbnet_disconnect'                                                  
/data/home/fjc/workspace/toybrick-kernel/drivers/net/usb/GobiUSBNet.c:1474: undefined reference to `usbnet_disconnect'                                                                                                                   
/data/home/fjc/workspace/toybrick-kernel/drivers/net/usb/GobiUSBNet.c:1474:(.text+0x12dd34): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `usbnet_disconnect'                                                  
/data/home/fjc/workspace/toybrick-kernel/drivers/net/usb/GobiUSBNet.c:1482: undefined reference to `usbnet_disconnect'                                                                                                                   
/data/home/fjc/workspace/toybrick-kernel/drivers/net/usb/GobiUSBNet.c:1482:(.text+0x12dd54): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `usbnet_disconnect'                                                  
drivers/built-in.o: In function `qmi_sync_thread':                                                                                                                                                                                       
/data/home/fjc/workspace/toybrick-kernel/drivers/net/usb/QMIDevice.c:2882: undefined reference to `usbnet_disconnect'                                                                                                                    
/data/home/fjc/workspace/toybrick-kernel/drivers/net/usb/QMIDevice.c:2882:(.text+0x1344d8): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `usbnet_disconnect'                                                   
drivers/built-in.o:(.data+0x26a20): undefined reference to `usbnet_disconnect'                                                                                                                                                           
+ on_exit                                                                                                                                                                                                                                
+ '[' 1 -ne 0 ']'                                                                                                                                                                                                                        
+ cleanup                                                                                                                                                                                                                                
+ rm -f .old_version                                                                                                                                                                                                                     
+ rm -f .tmp_System.map                                                                                                                                                                                                                  
+ rm -f '.tmp_kallsyms*'                                                                                                                                                                                                                 
+ rm -f .tmp_version                                                                                                                                                                                                                     
+ rm -f '.tmp_vmlinux*'                                                                                                                                                                                                                  
+ rm -f System.map                                                                                                                                                                                                                       
+ rm -f vmlinux                                                                                                                                                                                                                          
+ rm -f vmlinux.o                                                                                                                                                                                                                        
Makefile:1033: recipe for target 'vmlinux' failed                                                                                                                                                                                        
make: *** [vmlinux] Error 1                                                                                                                                                                                                              

The RK3588 uses TechPoint TP2855 to decode how the device tree is configured

Hello, I would like to ask, I use the image decoding chip TechPoint TP2855 external four cameras in RK3588, do I use your tp2855.C driver file? How do I configure the device tree? What is my device tree configuration? Can you help me correct it? Thank you.

&csi2_dphy0_hw {
	status = "okay";
};

&csi2_dphy0 {
	status = "okay";
	ports {
		#address-cells = <1>;
		#size-cells = <0>;
		port@0 {
			reg = <0>;
			#address-cells = <1>;
			#size-cells = <0>;
			mipi_in_ucam0: endpoint@1 {
				reg = <1>;
				remote-endpoint = <&ucam_out0>;
				data-lanes = <1 2 3 4>;
			};
		};
		port@1 {
			reg = <1>;
			#address-cells = <1>;
			#size-cells = <0>;
			csidphy0_out: endpoint@0 {
				reg = <0>;
				remote-endpoint = <&mipi2_csi2_input>;
			};
		};
	};
};

&i2c3 {
	status = "okay";

	techpoint: tp2855_a@44 {
	     compatible = "techbotify,tp2855";
             // compatible = "techpoint,tp2855";
            status = "okay";
		reg = <0x44>;
		clocks = <&cru CLK_MIPI_CAMARAOUT_M3>;
		clock-names = "xvclk";
		// pinctrl-names = "default";
                pinctrl-names = "rockchip,camera_default";
		pinctrl-0 = <&mipim0_camera3_clk>;
		power-domains = <&power RK3588_PD_VI>;
                // avdd-supply = <&vcc_avdd>;
		// dovdd-supply = <&vcc_dovdd>;
		// dvdd-supply = <&vcc_dvdd>;

		dovdd-supply = <&vcc_mipicsi1>;
                avdd-supply = <&vcc_mipicsi0>;
                dvdd-supply = <&vcc_mipicsi1>;
		// pwdn-gpios = <&gpio1 RK_PB0 GPIO_ACTIVE_LOW>;
		pwdn-gpios = <&gpio1 RK_PB0 GPIO_ACTIVE_HIGH>;
		reset-gpios = <&gpio4 RK_PC6 GPIO_ACTIVE_LOW>;
		rockchip,camera-module-index = <0>;
		rockchip,camera-module-facing = "back";
		rockchip,camera-module-name = "tp2855";
		rockchip,camera-module-lens-name = "tp2855";
		port {
			ucam_out0: endpoint {
				remote-endpoint = <&mipi_in_ucam0>;
				data-lanes = <1 2 3 4>;
			};
		};
	};
};

&mipi2_csi2 {
	status = "okay";
	ports {
		#address-cells = <1>;
		#size-cells = <0>;
		port@0 {
			reg = <0>;
			#address-cells = <1>;
			#size-cells = <0>;
			mipi2_csi2_input: endpoint@1 {
				reg = <1>;
				remote-endpoint = <&csidphy0_out>;
			};
		};
		port@1 {
			reg = <1>;
			#address-cells = <1>;
			#size-cells = <0>;
			mipi2_csi2_output: endpoint@0 {
				reg = <0>;
				remote-endpoint = <&cif_mipi_in2>;
			};
		};
	};
};

&rkcif {
	status = "okay";
};

&rkcif_mipi_lvds2 {
	status = "okay";
	port {
		cif_mipi_in2: endpoint {
			remote-endpoint = <&mipi2_csi2_output>;
		};
	};
};

&rkcif_mmu {
	status = "okay";
};
&rkisp0 {
	status = "okay";
};

&isp0_mmu {
	status = "okay";
};

&rkisp0_vir0 {
	status = "okay";
	port {
		#address-cells = <1>;
		#size-cells = <0>;
		isp0_vir0: endpoint@0 {
			reg = <0>;
			remote-endpoint = <&mipi_lvds_sditf>;
		};
	};
};

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.