Jump to content

Banana Pi M3


Recommended Posts

Armbian & Khadas are rewarding contributors

Poweroff (hirsute, image 5.15.18-sunxi) shows this and freezes/halts:

 

//----> 

[ OK ] Finished Power-Off
[ OK ] Reached target: Power-Off
reboot: Power down
Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000000
CPU: 0 PID: 1 Comm: systemd-shutdow Not tainted 5.15.18-sunxi #trunk.0023
Hardware name: Allwinner A83t board
[<c010cdc9>] (unwind_backtrace) from [<c010956d>] (show_stack+0x11/0x14)
[<c010956d>] (show_stack) from [<c09c9a25>] (dump_stack_lvl+0x2b/0x34)
[<c09c9a25>] (dump_stack_lvl) from [<c09c3481>] (panic+0xc1/0x238)
[<c09c3481>] (panic) from [<c011fa8d>] (complete_and_exit+0x1/0x18)
[<c011fa8d>] (complete_and_exit) from [<fee1dead>] (0xfee1dead)
---{ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000000 ]---
_

 

 

Link to comment
Share on other sites

Hello,

 

is anyone here, who knows, how enable i2c on gpio pin5 and pin3 on M3?

I spend many days looking for solution, but without result.

 

in dtb file, I now have:


i2c2_ph_pins: i2c2-ph-pins {
                                pins = "PH4","PH5";
                                function = "i2c2";
                        };

i2c@1c2b400 {
                        compatible = "allwinner,sun8i-a83t-i2c\0allwinner,sun6i>
                        reg = <0x1c2b400 0x400>;
                        interrupts = <0x00 0x07 0x04>;
                        clocks = <0x02 0x34>;
                        resets = <0x02 0x27>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&i2c2_ph_pins>;
                        status = "okay";
                        #address-cells = <0x01>;
                        #size-cells = <0x00>;
                };

i2cdetect: (with connected i2c device)

spravce@bananapim3:~$ sudo i2cdetect -l
i2c-0	i2c       	DesignWare HDMI                 	I2C adapter
i2c-1	i2c       	mv64xxx_i2c adapter             	I2C adapter
i2c-2	i2c       	mv64xxx_i2c adapter             	I2C adapter

spravce@bananapim3:~$ sudo i2cdetect -y 2
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:                         -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- --  

 

Hardware is ok, when I tried UBUNTU image, i2c worked normaly, but I need armbian.

 

pls help, I have 7pcs of Bpi M3, and without i2c, I can put it in the trash.

 

Link to comment
Share on other sites

8 часов назад, Smartyn34 сказал:

Hardware is ok, when I tried UBUNTU image, i2c worked normaly, but I need armbian.

Do you need an Armbian image for you?

 

Did you take this from Ubuntu?

 

8 часов назад, Smartyn34 сказал:

in dtb file, I now have:


i2c2_ph_pins: i2c2-ph-pins {
                                pins = "PH4","PH5";
                                function = "i2c2";
                        };

i2c@1c2b400 {
                        compatible = "allwinner,sun8i-a83t-i2c\0allwinner,sun6i>
                        reg = <0x1c2b400 0x400>;
                        interrupts = <0x00 0x07 0x04>;
                        clocks = <0x02 0x34>;
                        resets = <0x02 0x27>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&i2c2_ph_pins>;
                        status = "okay";
                        #address-cells = <0x01>;
                        #size-cells = <0x00>;
                };
Link to comment
Share on other sites

Thank for reply,

 

now i2c is working, I compared dts file from other dist (where i2c works) , and changed:

i2c0-pins {
				pins = "PH0\0PH1";
				function = "i2c0";
				phandle = <0x30>;
			};

			i2c1-pins {
				pins = "PH2\0PH3";
				function = "i2c1";
				phandle = <0x31>;
			};

i2c2-ph-pins {
				pins = "PH4\0PH5";
				function = "i2c2";
				phandle = <0x69>;
			};
                  
i2c@1c2ac00 {
			compatible = "allwinner,sun8i-a83t-i2c\0allwinner,sun6i-a31-i2c";
			reg = <0x1c2ac00 0x400>;
			interrupts = <0x00 0x06 0x04>;
			clocks = <0x02 0x32>;
			resets = <0x02 0x25>;
			pinctrl-names = "default";
			pinctrl-0 = <0x30>;
			status = "okay";
			#address-cells = <0x01>;
			#size-cells = <0x00>;
			phandle = <0x78>;
		};

i2c@1c2b000 {
			compatible = "allwinner,sun8i-a83t-i2c\0allwinner,sun6i-a31-i2c";
			reg = <0x1c2b000 0x400>;
			interrupts = <0x00 0x07 0x04>;
			clocks = <0x02 0x33>;
			resets = <0x02 0x26>;
			pinctrl-names = "default";
			pinctrl-0 = <0x31>;
			status = "okay";
			#address-cells = <0x01>;
			#size-cells = <0x00>;
			phandle = <0x79>;
		};

i2c@1c2b400 {
			compatible = "allwinner,sun8i-a83t-i2c\0allwinner,sun6i-a31-i2c";
			reg = <0x1c2b400 0x400>;
			interrupts = <0x00 0x08 0x04>;
			clocks = <0x02 0x34>;
			resets = <0x02 0x27>;
			pinctrl-names = "default";
                        pinctrl-0 = <0x69>;
			status = "okay";
			#address-cells = <0x01>;
			#size-cells = <0x00>;
			phandle = <0x7a>;
		};

 

spravce@bananapim3:~$ sudo i2cdetect -y 3
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:                         -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: 20 21 -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- --  

 

Link to comment
Share on other sites

Dear all,
probably my question is answered somewhere else, but I couldn't find it:

I'd like to under clock to 500MHz or 1 GHZ for example my M3.
This should be done to let it work longtime without overheating and also to reduce power consumption.....

Any clue how to do this?

Btw: I can't compile kernels or do things like that 🙂

Cheers
Thomas

Link to comment
Share on other sites

Does anyone know how to extract (old) Allwinner eGON files from the BPI M3 with dumpimage (or other Linux software?) To change the HDMI screen resolution. (720P is too big for TV/monitor, need 1360x768).

 

dumpimage -l BPI_M3_720P.img
Allwinner eGON image, size: 32768 bytes

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines