GithubHelp home page GithubHelp logo

unifreq / linux-5.15.y Goto Github PK

View Code? Open in Web Editor NEW
32.0 32.0 85.0 307.13 MB

clone from https://github.com/chewitt/linux branch amlogic-5.15.y, And will add some patches that I have collected, which can be used for the aarch64 openwrt firmware, or for general occasions such as armbian.

License: Other

Makefile 0.24% Roff 0.02% C 98.28% Assembly 0.88% Shell 0.30% Perl 0.11% C++ 0.03% Awk 0.01% Python 0.11% sed 0.01% Yacc 0.01% Lex 0.01% UnrealScript 0.01% SmPL 0.01% Gherkin 0.01% XS 0.01% Raku 0.01% Clojure 0.01% M4 0.01%

linux-5.15.y's Issues

about uwe5622 driver in orangepi-zero2!

Have you verified this driver in orangepi-zero2?After I compiled, I found that I did not find that the device when linux booting,and driver was not running。
my dts:
&mmc1 {
vmmc-supply = <&reg_aldo2>;
mmc-pwrseq = <&wifi_pwrseq>;
bus-width = <4>;
non-removable;
status = "okay";

uwe-bsp {
	compatible = "unisoc,uwe_bsp";
	keep-power-on;
	data-irq;
	//adma-tx;
	adma-rx;
	//blksz-512;
	status = "okay";
};

};

my config
CONFIG_SPARD_WLAN_SUPPORT=y
CONFIG_SC23XX=y

CONFIG_UMW2653 is not set

CONFIG_SC2342_INTEG is not set

CONFIG_SC2355 is not set

CONFIG_SC2366 is not set

CONFIG_WCN_BSP_DRIVER_BUILDIN is not set

CONFIG_RK_WIFI_DEVICE_UWE5621 is not set

CONFIG_RK_WIFI_DEVICE_UWE5622 is not set

CONFIG_AW_WIFI_DEVICE_UWE5622=y
CONFIG_AW_BIND_VERIFY=y
CONFIG_WLAN_UWE5622=m
CONFIG_SPRDWL_NG=m
CONFIG_UNISOC_WIFI_PS=y

CONFIG_TTY_OVERY_SDIO is not set

kexec & kdump on X96Max_Plus2_T

*** Preface ***

A friend of mine brought this tv box "X96 Max+" complaining of kernel panics the device catches when runs in the pure Linux mode not Android. I successfully used kdump on my Raspberry Pi 4 to debug kernel panics. But i still cannot run kdump & kexec on this Amlogic device, but first things first.

*** Main part ***

The full name of the tv box is Droidlogic X96Max_Plus2_T and the ethernet chip is Realtek RTL8211F as it's seen on Android by Device Info HW app. Device is Amlogic s905x3, kernel 5.15.60 (compiled with debug info)

I used meson-sm1-x96-max-plus-100m.dtb after installation and the triple of:

*meson-sm1-hk1box-vontar-x3.dtb
*meson-sm1-x96-max-plus-100m.dtb
*meson-sm1-x96-max-plus.dtb

and

dd if=/tmp/hk1box-bootloader.img of=/dev/mmcblk0 bs=1 count=442
dd if=/tmp/hk1box-bootloader.img of=/dev/mmcblk0 bs=512 skip=1 seek=1

and after all meson-sm1-x96-max-plus.dtb from flippy's post at ->

https://forum.armbian.com/topic/15376-methods-to-fix-x96-max-pluss905x3-gigabit-ethernet-problem.

Now that the device enters kexec reboot only with the flag 'kexec -s'

root@armbian:~# ls -l /var/lib/kdump/
drwxr-xr-x 5 root root    4096 Aug  7 08:05 initramfs-tools
lrwxrwxrwx 1 root root      39 Aug 25 16:29 initrd.img -> /var/lib/kdump/initrd.img-5.15.59-mxdbg
-rw-r--r-- 1 root root 8695258 Aug 22 19:07 initrd.img-5.15.59-mxdbg
-rw-r--r-- 1 root root     234 Aug 25 16:29 latest_sysctls-5.15.59-mxdbg
lrwxrwxrwx 1 root root      27 Aug 25 16:29 vmlinuz -> /boot/vmlinuz-5.15.59-mxdbg

kexec -l /var/lib/kdump/vmlinuz --initrd=/var/lib/kdump/initrd.img --dtb=/boot/dtb/amlogic/meson-sm1-x96-max-plus.dtb --reuse-cmdline -s

arch_process_options:178: command_line: root=LABEL=ROOTFS rootflags=data=writeback rw rootfstype=ext4 console=ttyAML0,115200n8 console=tty0 no_console_suspend consoleblank=0 fsck.fix=yes fsck.repair=yes net.ifnames=0 cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory swapaccount=1 nr_cpus=1 mac=9a:29:43:2d:ba:16
arch_process_options:180: initrd: /var/lib/kdump/initrd.img
arch_process_options:182: dtb: (ignored)
arch_process_options:185: console: (null)

*** Ethernet part ***

The First issue is that after kexec reboot ethernet doesn't work, but wi-fi works good. The normal boot of ethernet:

root@armbian:~# dmesg | grep ethernet
[    7.905241] meson8b-dwmac ff3f0000.ethernet: IRQ eth_wake_irq not found
[    7.906442] meson8b-dwmac ff3f0000.ethernet: IRQ eth_lpi not found
[    7.912687] meson8b-dwmac ff3f0000.ethernet: PTP uses main clock
[    7.920641] meson8b-dwmac ff3f0000.ethernet: User ID: 0x11, Synopsys ID: 0x37
[    7.925539] meson8b-dwmac ff3f0000.ethernet:         DWMAC1000
[    7.931505] meson8b-dwmac ff3f0000.ethernet: DMA HW capability register supported
[    7.938112] meson8b-dwmac ff3f0000.ethernet: RX Checksum Offload Engine supported
[    7.946270] meson8b-dwmac ff3f0000.ethernet: COE Type 2
[    7.950694] meson8b-dwmac ff3f0000.ethernet: TX Checksum insertion supported
[    7.957686] meson8b-dwmac ff3f0000.ethernet: Wake-Up On Lan supported
[    7.964124] meson8b-dwmac ff3f0000.ethernet: Normal descriptors
[    7.969932] meson8b-dwmac ff3f0000.ethernet: Ring mode enabled
[    7.975706] meson8b-dwmac ff3f0000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[   23.555361] meson8b-dwmac ff3f0000.ethernet eth0: PHY [0.0:00] driver [RTL8211F Gigabit Ethernet] (irq=40)
[   23.570472] meson8b-dwmac ff3f0000.ethernet eth0: Register MEM_TYPE_PAGE_POOL RxQ-0
[   23.595648] meson8b-dwmac ff3f0000.ethernet eth0: No Safety Features support found
[   23.602691] meson8b-dwmac ff3f0000.ethernet eth0: PTP not supported by HW
[   23.619891] meson8b-dwmac ff3f0000.ethernet eth0: configuring for phy/rgmii link mode
[   25.290397] meson8b-dwmac ff3f0000.ethernet eth0: Link is Up - 100Mbps/Full - flow control off

After a kexec reboot:

root@armbian:~# dmesg | grep ethernet
[    5.826678] meson8b-dwmac ff3f0000.ethernet: IRQ eth_wake_irq not found
[    5.827894] meson8b-dwmac ff3f0000.ethernet: IRQ eth_lpi not found
[    5.834149] meson8b-dwmac ff3f0000.ethernet: PTP uses main clock
[    5.841912] meson8b-dwmac ff3f0000.ethernet: User ID: 0x11, Synopsys ID: 0x37
[    5.847004] meson8b-dwmac ff3f0000.ethernet:         DWMAC1000
[    5.852981] meson8b-dwmac ff3f0000.ethernet: DMA HW capability register supported
[    5.859557] meson8b-dwmac ff3f0000.ethernet: RX Checksum Offload Engine supported
[    5.867705] meson8b-dwmac ff3f0000.ethernet: COE Type 2
[    5.872141] meson8b-dwmac ff3f0000.ethernet: TX Checksum insertion supported
[    5.879138] meson8b-dwmac ff3f0000.ethernet: Wake-Up On Lan supported
[    5.885575] meson8b-dwmac ff3f0000.ethernet: Normal descriptors
[    5.891376] meson8b-dwmac ff3f0000.ethernet: Ring mode enabled
[    5.897156] meson8b-dwmac ff3f0000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    5.905088] meson8b-dwmac ff3f0000.ethernet: device MAC address 9e:61:9f:bd:1e:aa
[   20.959437] meson8b-dwmac ff3f0000.ethernet eth0: no phy at addr -1
[   20.967352] meson8b-dwmac ff3f0000.ethernet eth0: stmmac_open: Cannot attach to PHY (error: -19)
[   32.808649] meson8b-dwmac ff3f0000.ethernet eth0: no phy at addr -1
[   32.819560] meson8b-dwmac ff3f0000.ethernet eth0: stmmac_open: Cannot attach to PHY (error: -19)
[   33.142282] meson8b-dwmac ff3f0000.ethernet eth0: no phy at addr -1
[   33.163931] meson8b-dwmac ff3f0000.ethernet eth0: stmmac_open: Cannot attach to PHY (error: -19)
[   33.281170] meson8b-dwmac ff3f0000.ethernet eth0: no phy at addr -1
[   33.287109] meson8b-dwmac ff3f0000.ethernet eth0: stmmac_open: Cannot attach to PHY (error: -19)
[   33.331279] meson8b-dwmac ff3f0000.ethernet eth0: no phy at addr -1
[   33.334375] meson8b-dwmac ff3f0000.ethernet eth0: stmmac_open: Cannot attach to PHY (error: -19)
[   33.417977] meson8b-dwmac ff3f0000.ethernet eth0: no phy at addr -1
[   33.427303] meson8b-dwmac ff3f0000.ethernet eth0: stmmac_open: Cannot attach to PHY (error: -19)

The second issue is that the second kernel for kdump doesn't start, it just stops after these lines:

armbian login:
[ 234.915496] kvm: exiting hardware virtualization
[ 234.952516] pwrseq_simple sdio-pwrseq: Turning off mmc
[ 234.955323] kexec_core: Starting new kernel
[ 234.971860] Bye!

I think this post belongs to the topic of kernel debugging. Thanks in advance.

Add LED Support on HK1 Box (S905x3)

Hi, could you add LED module support on HK1 Box (S905x3). I have seen a modified dtb on the post (https://www.znds.com/tv-1200939-1-1.html) by adding following codes.

leds {
    compatible = "gpio-leds";
    status = "okay";
    sys_led {
        label = "sys_led";
        gpios = <0x75 0x0b 0x00>; //0x75是bank@14的phandle,注意修改自己的
        default-state = "on";
        linux,default-trigger = "default-on";
    };
};

zvfd {
    compatible = "z,vfd";
    dev_name = "zvfd";
    status = "okay";
};

It works.

I know the LED display can be controlled by armbian-led or openwrt-led provided by ophub/amlogic-s9xxx-armbian. But it does not work for the Bule LED at the left of the display.

请问老大s905x,刷armbian 启动后,没有插网线时,连接指示灯亮起,插上网线指示灯熄灭,请怎么更改dts中的设置,使其正常显示?

盒子s905x,p212.dts
原电视系统,安卓3.14内核心中显示正常,设置如下:
internal_eth_pins {
amlogic,setmask = <0x4 0x3000000>;
amlogic,clrmask = <0x3 0x300000>;
amlogic,pins = "GPIOZ_14", "GPIOZ_15";
linux,phandle = <0x2e>;
phandle = <0x2e>;
};

armbian dts设置如下:

&internal_phy {
pinctrl-0 = <&eth_link_led_pins>, <&eth_act_led_pins>;
pinctrl-names = "default";
};

刷armbian 选p212.dtb启动后,没有插网线时,网络连接指示灯亮起,插上网线指示灯熄灭,请怎么更改dts中的设置,使其显示正常?

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.