Jump to content

mantouboji

Members
  • Posts

    161
  • Joined

  • Last visited

1 Follower

Recent Profile Visitors

4333 profile views
  1. Zero3 root on NFS ,pxlinux cfg: LABEL linux KERNEL /zero3/vmlinuz-6.15.4-edge-sunxi64 FDTDIR /zero3/dtb-6.15.4-edge-sunxi64 DEVICETREE-OVERLAY /zero3/dtb-6.15.4-edge-sunxi64/allwinner/overlay/sun50i-h616-uart5.dtbo /zero3/dtb-6.15.4-edge-sunxi64/allwinner/overlay/sun50i-h616-spi-spidev.dtbo /zero3/overlay-user/spidev1_1.dtbo APPEND root=/dev/nfs initrd=/zero3/initrd.img-6.15.4-edge-sunxi64 nfsroot=192.168.20.20:/mnt/mass/data/linux/zero3/zero31 ip=dhcp rw rootwait DEFAULT linux
  2. pps-gpio.dts /* * PPS-GPIO for H616/618 * * for Zero2, use PC9 * for Zero3, use PC11 * for Zero2W, use PI5, not success * * feiyao@me.com */ /dts-v1/; /plugin/; / { compatible = "allwinner,sun50i-h616"; fragment@0 { target = <&pio>; __overlay__ { pps_pins: pps_pins { pins = "PC11"; /* Zero3 */ function = "gpio_in"; }; }; }; fragment@1 { target-path = "/"; __overlay__ { pps@0 { compatible = "pps-gpio"; pinctrl-names = "default"; /* pinctrl-0 = <&pps_pins>; */ gpios = <&pio 2 11 0>; /* PC11 @ Zero3 */ status = "okay"; }; }; }; }; compile and install: armbian-add-overlay pps-gpio.dts
  3. This is my config, maybe it will help you a little. use UART5 to attach a GPS module, PPS connect to PC11 /boot/armbianEnv.txt overlay_prefix=sun50i-h616 overlays=uart5 user_overlays=pps-gpio param_pps_pin=PC11 /etc/default/gpsd # Devices gpsd should collect to at boot time. # They need to be read/writeable, either by user gpsd or the group dialout. DEVICES="/dev/ttyS1" # Other options you want to pass to gpsd GPSD_OPTIONS="-n -G" # Automatically hot add/remove USB GPS devices via gpsdctl USBAUTO="false" /etc/chrony/conf.d/gpstime.conf # for GPSD refclock SHM 0 refid GPS precision 1e-1 offset 0.120 delay 0.2 # for GPSD PPS , worka refclock PPS /dev/pps0 refid PPS allow all pps-gpio.dts: /* * PPS-GPIO for H616 * * for Zero2, use PC9 * for Zero3, use PC11 * for Zero2W, use PI5, not success * * feiyao@me.com */ /dts-v1/; /plugin/; / { compatible = "allwinner,sun50i-h616"; fragment@0 { target = <&pio>; __overlay__ { pps_pins: pps_pins { pins = "PC11"; /* Zero3 */ function = "gpio_in"; }; }; }; fragment@1 { target-path = "/"; __overlay__ { pps@0 { compatible = "pps-gpio"; pinctrl-names = "default"; /* pinctrl-0 = <&pps_pins>; */ gpios = <&pio 2 11 0>; /* PC11 @ Zero3 */ status = "okay"; }; }; }; }; build and install pps-gpio.dts: sudo armbian-add-overlay pps-gpio.dts
  4. Here: https://forum.armbian.com/topic/28425-spi-problem-with-orange-pi-3-lts/#findComment-222557
  5. Please use Zero2, not Zero3, and use my DTS overlay, you can find it in other posts.
  6. follow the official instructions, change these dts to user overlay, simplicifed deployment just use `sudo make install` h616.tar.xz
  7. spi1-cs0-pin and etc are defined in .dtsi file , since they are physical pins of the H616/H618 chip. But they are assigned to different pins of 26-PIN and 40-PIN of Zero3 and zero2w
  8. download all files attenmented . sudo cp *.dtbo /boot/dtb/allwinner/overlay open /boot/armbianEnv.txt , add this line: overlays=spi-spidev spidev1_1 and reboot, you should find and use /dev/spidev1.1 sun50i-h616-spidev1_0.dtbo sun50i-h616-spidev1_0.dtso sun50i-h616-spidev1_1.dtbo sun50i-h616-spidev1_1.dtso
  9. what is this? [code] [ 20.585289] ------------[ cut here ]------------ [ 20.585313] memcpy: detected field-spanning write (size 16) of single field "vif->key[pairwise][key_index]" at drivers/net/wireless/uwe5622/unisocwifi/cfg80211.c:714 (size 0) [ 20.585442] WARNING: CPU: 0 PID: 863 at drivers/net/wireless/uwe5622/unisocwifi/cfg80211.c:714 sprdwl_cfg80211_add_key+0x124/0x138 [sprdwl_ng] [ 20.585498] Modules linked in: overlay sprdwl_ng sunxi_addr cfg80211 sunrpc zram snd_soc_hdmi_codec sunxi_cedrus(C) v4l2_mem2mem videobuf2_dma_contig polyval_ce videobuf2_memops videobuf2_v4l2 polyval_generic binfmt_misc videodev snd_soc_sunxi_machine dw_hdmi_i2s_audio panfrost dw_hdmi_cec sun50i_h6_prcm_ppu snd_soc_sunxi_ahub videobuf2_common gpu_sched snd_soc_sunxi_ahub_dam mc drm_shmem_helper display_connector dump_reg cpufreq_dt sch_fq_codel sprdbt_tty uwe5622_bsp_sdio rfkill fuse motorcomm dwmac_sun8i mdio_mux sun6i_rtc_ccu [ 20.585645] CPU: 0 UID: 0 PID: 863 Comm: wpa_supplicant Tainted: G C 6.15.0-edge-sunxi64 #1 NONE [ 20.585657] Tainted: [C]=CRAP [ 20.585661] Hardware name: OrangePi Zero3 (DT) [ 20.585667] pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--) [ 20.585675] pc : sprdwl_cfg80211_add_key+0x124/0x138 [sprdwl_ng] [ 20.585701] lr : sprdwl_cfg80211_add_key+0x124/0x138 [sprdwl_ng] [ 20.585725] sp : ffff80008494b740 [ 20.585730] x29: ffff80008494b740 x28: ffff0000c1d32180 x27: ffff0000c08fb080 [ 20.585745] x26: 0000000000000000 x25: ffff0000c4600a40 x24: ffff0000c4600000 [ 20.585758] x23: 0000000000000004 x22: 0000000000000004 x21: 0000000000000010 [ 20.585772] x20: 0000000000000000 x19: ffff80008494b790 x18: 00000000ffffffff [ 20.585785] x17: 0000000000000000 x16: 0000000000000000 x15: 7269772f74656e2f [ 20.585799] x14: 7372657669726420 x13: 30386766632f6966 x12: ffff8000823482d0 [ 20.585813] x11: 0000000000000001 x10: 0000000000000001 x9 : ffff8000800df178 [ 20.585826] x8 : c0000000ffffefff x7 : ffff8000822f00e8 x6 : 0000000000000001 [ 20.585840] x5 : ffff0000ff734708 x4 : 0000000000000000 x3 : 0000000000000027 [ 20.585853] x2 : 0000000000000000 x1 : 0000000000000000 x0 : ffff0000c1d32180 [ 20.585868] Call trace: [ 20.585874] sprdwl_cfg80211_add_key+0x124/0x138 [sprdwl_ng] (P) [ 20.585901] nl80211_new_key+0x1c4/0x320 [cfg80211] [ 20.586017] genl_family_rcv_msg_doit+0xe8/0x160 [ 20.586032] genl_rcv_msg+0x218/0x298 [ 20.586040] netlink_rcv_skb+0x68/0x140 [ 20.586053] genl_rcv+0x40/0x60 [ 20.586060] netlink_unicast+0x2f4/0x358 [ 20.586071] netlink_sendmsg+0x1b0/0x408 [ 20.586082] __sock_sendmsg+0x64/0xc0 [ 20.586093] ____sys_sendmsg+0x24c/0x2c0 [ 20.586101] ___sys_sendmsg+0xb8/0x118 [ 20.586110] __sys_sendmsg+0xa4/0x110 [ 20.586119] __arm64_sys_sendmsg+0x2c/0x40 [ 20.586128] invoke_syscall+0x50/0x120 [ 20.586142] el0_svc_common.constprop.0+0x48/0xf0 [ 20.586153] do_el0_svc+0x24/0x38 [ 20.586163] el0_svc+0x30/0xd0 [ 20.586175] el0t_64_sync_handler+0x10c/0x138 [ 20.586185] el0t_64_sync+0x198/0x1a0 [ 20.586195] ---[ end trace 0000000000000000 ]--- [/code]
  10. sun50i-h616-spidev1_1.dtso /dts-v1/; /plugin/; / { compatible = "allwinner,sun50i-h616"; fragment@0 { target-path = "/aliases"; __overlay__ { spi1 = "/soc/spi@5011000"; }; }; fragment@1 { target = <&spi1>; __overlay__ { status = "okay"; #address-cells = <1>; #size-cells = <0>; pinctrl-names = "default"; pinctrl-0 = <&spi1_pins>,<&spi1_cs1_pin>; spidev1_1: spidev@1 { compatible = "armbian,spi-dev"; status = "okay"; reg = <1>; spi-max-frequency = <1000000>; }; }; }; };
  11. /dts-v1/; /plugin/; / { compatible = "allwinner,sun50i-h616"; fragment@0 { target-path = "/aliases"; __overlay__ { spi1 = "/soc/spi@5011000"; }; }; fragment@1 { target = <&spi1>; __overlay__ { status = "okay"; #address-cells = <1>; #size-cells = <0>; pinctrl-names = "default"; pinctrl-0 = <&spi1_pins>,<&spi1_cs1_pin>; spidev1_1: spidev@1 { compatible = "armbian,spi-dev"; status = "okay"; reg = <1>; spi-max-frequency = <1000000>; }; }; }; }; sun50i-h616-spidev1_1.dtso
  12. /* * PPS-GPIO for H616 */ /dts-v1/; /plugin/; / { compatible = "allwinner,sun50i-h616"; fragment@0 { target = <&pio>; __overlay__ { pps_pins: pps_pins { pins = "PC9"; // Zero2 & 3 // pins = "PI5"; // Zero2w function = "pps"; }; }; }; fragment@1 { target-path = "/"; __overlay__ { pps@0 { compatible = "pps-gpio"; pinctrl-names = "default"; pinctrl-0 = <&pps_pins>; gpios = <&pio 2 9 0>; /* PC9 */ // Zero2 & 3 //gpios = <&pio 8 5 0>; /* PI5 */ // Zero2w status = "okay"; }; }; }; };
  13. Yes, you removed this patch in 6.13: - patches.armbian/arm64-dts-sun50i-h618-orangepi-zero2w-Add-missing-nodes.patch
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines