-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kexec & kdump on X96Max_Plus2_T #503
Comments
https://github.com/unifreq/amlogic-boot-fip flippy introduced me to the method of making u-boot, and I also recorded it with notebooks, but I haven't practiced it, and I haven't learned how to do it. You can ask him in the group, or go to his warehouse to communicate with him on how to debug the new device . |
I prefer to skip the kdump part and look at the broken eth0 after kexec reboot:
Does anybody know where to dig further? |
I have compiled files of new u-boot:
and cannot flash u-boot.bin.sd.bin to the microsd card. Tried so
|
I have the UART connected and see only this line at the early boot stage
And this later
|
The KASLR part is not the issue now. RPI4 takes kdumps even with nokaslr kernel command liine argument is set. It's even recommended to be nokaslr. The next thought was to add /chosen/kaslr-seed into the action. I played with FDT a little (press SPACE in the u-boot loading) ->
This means 'add /chosen/kaslr-seed node to the FDT'. But it helped a bit. Something still resets value from /chosen/kaslr-seed
But even so the Ethernet part stays actual. |
His sub-projects have no Issues tabs. What is the group or his warehouse i can ask him? |
I've come with the solution. *** Ethernet part ***
was fixed by the string in ethernet-phy@0
*** kdump part *** This part was solved by increasing crashkernel=512M in the kernel command line. See it in action:
Look to kdumps:
I hope that my research will help somebody. Please close this issue after several days. |
https://github.com/unifreq/linux-5.15.y Hello, please submit your modification suggestions to the upstream kernel source library if it is convenient. |
Both fixes are very specific to my config. My primary aim is to be saved in Google's cache and help people coming from search engines. |
I can only help to attach my device tree -- X96Max+ model. |
ok, thanks for sharing |
*** 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'
kexec -l /boot/vmlinuz-5.15.60-mxdbg2 --initrd=/boot/initrd.img-5.15.60-mxdbg2 --dtb=/boot/dtb/amlogic/meson-sm1-x96-max-plus.dtb --reuse-cmdline -s
*** Ethernet part ***
The First issue is that after kexec reboot ethernet doesn't work, but wi-fi works good. The normal boot of ethernet:
After a kexec reboot:
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!
*** KASLR part ***
I suspect that it's correlated with the line in kexec -d (debug)
setup_2nd_dtb: no kaslr-seed found
There is no /chosen/kaslr-seed:
Is there any chance to rebuild u-boot with some patches like that ->
Or should i just stop to torment this tv box and buy something else? Because again RPI4 works well.
Thanks in advance.
The text was updated successfully, but these errors were encountered: