Skip to content
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

Battery Support not working on SP6 #21

Closed
therealjbenam opened this issue Jan 4, 2022 · 76 comments
Closed

Battery Support not working on SP6 #21

therealjbenam opened this issue Jan 4, 2022 · 76 comments

Comments

@therealjbenam
Copy link

Hi,

I have just installed the latest Kext along with the supplied SSDT.

It seems that it's not working as it's stuck in "charging" mode.

Please let me know if you need anything from me to help you support the SP6.

Thanks,
Best Regards

@therealjbenam
Copy link
Author

My bad, I missed the new VoodooSerial kext.

@Xiashangning
Copy link
Owner

Good, it should work on SP6 :)

@therealjbenam
Copy link
Author

Good, it should work on SP6 :)

Sadly it's not working :( After disabling SMCBatteryManager (BigSurface couldn't assign a battery class since it had the same name) I just don't get any battery.

@therealjbenam therealjbenam reopened this Jan 4, 2022
@Xiashangning
Copy link
Owner

Xiashangning commented Jan 4, 2022

I will need sudo dmesg | grep UART output and ioreg
Also, what version of macOS you are running? Big Sur or Monterey?

@therealjbenam
Copy link
Author

therealjbenam commented Jan 4, 2022

I will need sudo dmesg | grep UART output and ioreg Also, what version of macOS you are running? Big Sur or Monterey?

sudo dmesg | grep UART returns empty.

Monterey - I have found something interesting in the kernel logs:

2022-01-04 17:21:27.327958+0100  localhost kernel[0]: (VoodooI2CServices) <compose failure [UUID]>
2022-01-04 17:21:27.327965+0100  localhost kernel[0]: (VoodooI2CServices) <compose failure [UUID]>
2022-01-04 17:21:27.327969+0100  localhost kernel[0]: (VoodooI2CServices) <compose failure [UUID]>
2022-01-04 17:21:27.327971+0100  localhost kernel[0]: (VoodooI2CServices) <compose failure [UUID]>
2022-01-04 17:21:27.327992+0100  localhost kernel[0]: IOCommandGate::disable() called when not gated
Backtrace 0x0 0x0 0xffffff8000a2ec2a 0xffffff8000a2e795 0xffffff8000a2d790 0xffffff8000a30839 0xffffff800022718e
2022-01-04 17:21:27.327995+0100  localhost kernel[0]:       Kernel Extensions in backtrace:
2022-01-04 17:21:27.328003+0100  localhost kernel[0]:          com.xavier.BigSurface(1.0.4)[79A27E32-31E7-38FF-B421-86DFD70E2246]@0x0->0x2cfff
2022-01-04 17:21:27.328010+0100  localhost kernel[0]:             dependency: as.vit9696.Lilu(1.5.7)[E42A54DC-9082-35EC-93BC-08AD09861180]@0x0->0x2afff
2022-01-04 17:21:27.328015+0100  localhost kernel[0]:             dependency: as.vit9696.VirtualSMC(1.2.7)[9DAADEEB-D155-3EEC-AFDF-2F05E221EA01]@0x0->0x16fff
2022-01-04 17:21:27.328021+0100  localhost kernel[0]:             dependency: com.alexandred.VoodooI2CServices(1)[8DAB890A-4FBF-3727-96FB-076E476E3AF6]@0x0->0x7fff
2022-01-04 17:21:27.328027+0100  localhost kernel[0]:             dependency: com.apple.iokit.IOACPIFamily(1.4)[B750EC9D-D224-309C-8C32-3F32C6257F1E]@0xffffff800293f000->0xffffff8002940fff
2022-01-04 17:21:27.328034+0100  localhost kernel[0]:             dependency: com.apple.iokit.IOHIDFamily(2.0.0)[4773BB64-73AE-3283-8DE4-D10459C90231]@0xffffff8002a7d000->0xffffff8002adafff
2022-01-04 17:21:27.328040+0100  localhost kernel[0]:             dependency: com.apple.iokit.IOSMBusFamily(1.1)[FBCF7261-2104-3F79-ADCD-C3DDD5B63986]@0xffffff8002eb0000->0xffffff8002eb1fff
2022-01-04 17:21:27.328058+0100  localhost kernel[0]:             dependency: com.xavier.VoodooSerial(1.0.0)[42FF04CF-69AE-3219-9FE6-5647DEAB01C8]@0x0->0x2ffff
2022-01-04 17:21:27.328067+0100  localhost kernel[0]:             dependency: org.coolstar.VoodooGPIO(1.2.0)[F3ED6FA0-F8A5-3384-8367-C3D3E1BE802D]@0x0->0x17fff
2022-01-04 17:21:27.352168+0100  localhost kernel[0]: (Sandbox) <Sandbox`is_release_type> release type: User
2022-01-04 17:21:27.352631+0100  localhost kernel[0]: (ALF) <ALF`sockwall_cntl_updaterules> ALF, old data swfs_pid_entry <private>, updaterules_msg <private>, updaterules_state <private>

Looks like it's crashing.

EDIT: ioreg attached

SP6.ioreg.zip

@Xiashangning
Copy link
Owner

Well, you need keepsyms=1 to get the location of error

@therealjbenam
Copy link
Author

Well, you need keepsyms=1 to get the location of error

I do have it already in my bootargs :(

@Xiashangning
Copy link
Owner

Interesting... I will look at it tomorrow.

@Xiashangning
Copy link
Owner

UART driver seems to load fine but logs have to be checked. SurfaceSerialHub failed to load and that is the problem.
I'll need you to enable the verbose mode -v and take some screen shots when booting. Specifically, the early booting prints contains UART and Surface at the very beginning of macOS booting sequence.
This is due to Monterey breaks early boot logs so you cannot find them in dmesg
PS: I hope you have a Big Sur operating system so it will be a lot easier. If so, then sudo dmesg | grep UART and sudo dmesg | grep Surface will return sth.

@therealjbenam
Copy link
Author

UART driver seems to load fine but logs have to be checked. SurfaceSerialHub failed to load and that is the problem. I'll need you to enable the verbose mode -v and take some screen shots when booting. Specifically, the early booting prints contains UART and Surface at the very beginning of macOS booting sequence. This is due to Monterey breaks early boot logs so you cannot find them in dmesg PS: I hope you have a Big Sur operating system so it will be a lot easier. If so, then sudo dmesg | grep UART and sudo dmesg | grep Surface will return sth.

Sadly I don't, this is my only SP6 system. I guess I can just load a Big Sur installer from USB and use the terminal from there?

@Xiashangning
Copy link
Owner

Yes, you can, and send me output of sudo dmesg | grep UART and sudo dmesg | grep Surface

@therealjbenam
Copy link
Author

Yes, you can, and send me output of sudo dmesg | grep UART and sudo dmesg | grep Surface

Sorry for the late reply, creating the installer for Big Sur took far longer than expected.

sudo dmesg | grep UART

Jan  5 16:01:32 localhost kernel[0]: [    4.010070]: SurfaceSerialHubDriver::Found valid UART Bus!
Jan  5 16:01:32 localhost kernel[0]: [    5.613421]: VoodooUARTController::UA00 Set PCI power state D0
Jan  5 16:01:32 localhost kernel[0]: [    5.613458]: VoodooUARTController::UA00 Designware UART version 3.14
Jan  5 16:01:32 localhost kernel[0]: [    5.613714]: SurfaceSerialHubDriver::Got UART Controller! VoodooUARTController
Jan  5 16:01:32 localhost kernel[0]: [    5.714334]: VoodooUARTController::UA00 Warning: baudrate should be 4000000, 3000000

sudo dmesg | grep Surface

Jan  5 16:01:32 localhost kernel[0]: [    4.010070]: SurfaceSerialHubDriver::Found valid UART Bus!
Jan  5 16:01:32 localhost kernel[0]: [    4.010075]: SurfaceSerialHubDriver::Surface Serial Hub found!
Jan  5 16:01:32 localhost kernel[0]: [    4.013046]: SurfaceButtonDriver::Found valid GPIO interrupts
Jan  5 16:01:32 localhost kernel[0]: [    4.013059]: SurfaceButtonDriver::Surface ACPI button device found!
Jan  5 16:01:32 localhost kernel[0]: [    4.048911]: SurfaceButtonDriver::Got GPIO Controller! VoodooGPIOSunrisePointLP
Jan  5 16:01:32 localhost kernel[0]: [    4.106503]: IOSurfaceRoot::installMemoryRegions()
Jan  5 16:01:32 localhost kernel[0]: [    4.106515]: IOSurface allowing global lookups (with warnings)
Jan  5 16:01:32 localhost kernel[0]: [    4.150176]: SurfaceButtonHIDDevice:0x1000002f0 start
Jan  5 16:01:32 localhost kernel[0]: [    4.150212]: SurfaceButtonHIDDevice:0x1000002f0 message: 0xe0000230 from: 0x1000002b5 0
Jan  5 16:01:32 localhost kernel[0]: [    4.151619]: SurfaceButtonDriver::started
Jan  5 16:01:32 localhost kernel[0]: [    4.151814]: SurfaceButtonHIDDevice:0x1000002f0 creating interfaces
Jan  5 16:01:32 localhost kernel[0]: [    5.613714]: SurfaceSerialHubDriver::Got UART Controller! VoodooUARTController
Jan  5 16:01:36 MacBook-Pro kernelmanagerd[55]: Error occurred while handling request LoadNotification(arguments: Optional(["CFBundleIdentifier": com.xavier.BigSurface])): System policy error: System policy is unavailable.
Jan  5 16:01:36 MacBook-Pro kernel[0]: [   46.083013]: SurfaceButtonHIDDevice:0x1000002f0 open by AppleUserHIDEventDriver 0x1000003f9 (0x0)
Jan  5 16:01:36 MacBook-Pro kernel[0]: [   46.083498]: [AppleUserHIDEventDriver.cpp:93][0x1000003f9] Surface Button HID Device usagePage: 12 usage: 1 vid: 1452 pid: 630
Jan  5 16:01:37 MacBook-Pro kernel[0]: [   46.104012]: AppleUserUSBHostHIDDevice:0x10000040c open by SurfaceTypeCoverDriver 0x10000044d (0x0)
Jan  5 16:01:37 MacBook-Pro kernel[0]: [   46.104119]: SurfaceTypeCoverDriver::Surface Type Cover Putting device into Precision Touchpad Mode
Jan  5 16:01:37 MacBook-Pro kernel[0]: [   46.127447]: SurfaceTypeCoverDriver::Magic Trackpad 2 Could not parse multitouch elements
Jan  5 16:01:38 MacBook-Pro kernel[0]: [   47.721419]: SurfaceButtonHIDDevice:0x1000002f0 message: 0xe0000101 from: 0x1000002b5 1

Thanks again, I hope this will help you in finding the issue.

@Xiashangning
Copy link
Owner

well, as far as i can tell, there are two problems here. We should first handle the UART one(the last output of grep UART)
And that is very tricky, in fact the baudrate is calculated from uart clk, and it seems that it has a different clk than the one on SP7, you have to install linux-surface kernel and modify it a little to find out the proper clk for UART
Check the linux-surface repo, install ubuntu and compile the kernel yourself. I will tell you where to modify tomorrow(it is already midnight here), and you can first do the preliminary things today

@therealjbenam
Copy link
Author

therealjbenam commented Jan 5, 2022

Sure, I will gladly help. Need to sort out triple-booting first (that should be easy) and why Ubuntu hangs and crashes on startup... Once upon in a time (before hackitoshing) I dualbooted with Fedora and the linux-surface kernel, so I know my way around.

The LiveCD works well, but the installed Ubuntu hangs. Weird.

@Xiashangning
Copy link
Owner

Indeed weird, but Opencore can recognise Linux distro and directly boot them. You can try that
You can use any Linux distribution as you like, as long as you can compile and install custom kernel.

@Xiashangning
Copy link
Owner

Once you succeed, go to drivers/tty/serial/8250/8250_port.c and in serial8250_do_set_divisor add these codes

dev_err(port->dev, "----mydebug uartclk: %u\n", port->uartclk);
dev_err(port->dev, "----mydebug baudrate: %u\n", baud);
dev_err(port->dev, "----mydebug quot: %u\n", quot);
dev_err(port->dev, "----mydebug 0x200: %lu\n", readl(port->membase+0x200));
dev_err(port->dev, "----mydebug 0x204: %lu\n", readl(port->membase+0x204));
dev_err(port->dev, "----mydebug 0x208: %lu\n", readl(port->membase+0x208));
dev_err(port->dev, "----mydebug 0x800: %lu\n", readl(port->membase+0x800));
dev_err(port->dev, "----mydebug 0x804: %lu\n", readl(port->membase+0x804));

compile and boot this kernel
in terminal sudo dmesg | grep mydebug and tell me the output

@therealjbenam
Copy link
Author

Hi @Xiashangning

Since I knew I had done everything right last time, I have just reinstalled Ubuntu and it worked this time. Go figure.

I have edited the source and added the required comment, but it seems that it stops here

...other stuff
  BTF [M] sound/x86/snd-hdmi-lpe-audio.ko
  BTF [M] sound/xen/snd_xen_front.ko
make KERNELRELEASE=5.13.19-linux-surface ARCH=x86 	KBUILD_BUILD_VERSION=4 -f ./Makefile intdeb-pkg
sh ./scripts/package/builddeb
arch/x86/Makefile:148: CONFIG_X86_X32 enabled but no binutils support
arch/x86/Makefile:148: CONFIG_X86_X32 enabled but no binutils support
  INSTALL debian/linux-image/lib/modules/5.13.19-linux-surface/kernel/arch/x86/crypto/aegis128-aesni.ko
  INSTALL debian/linux-image/lib/modules/5.13.19-linux-surface/kernel/arch/x86/crypto/aesni-intel.ko
  INSTALL debian/linux-image/lib/modules/5.13.19-linux-surface/kernel/arch/x86/crypto/blake2s-x86_64.ko
  INSTALL debian/linux-image/lib/modules/5.13.19-linux-surface/kernel/arch/x86/crypto/blowfish-x86_64.ko
  INSTALL debian/linux-image/lib/modules/5.13.19-linux-surface/kernel/arch/x86/crypto/cast5-avx-x86_64.ko
  INSTALL debian/linux-image/lib/modules/5.13.19-linux-surface/kernel/arch/x86/crypto/cast6-avx-x86_64.ko
  INSTALL debian/linux-image/lib/modules/5.13.19-linux-surface/kernel/arch/x86/crypto/chacha-x86_64.ko
  INSTALL debian/linux-image/lib/modules/5.13.19-linux-surface/kernel/arch/x86/crypto/crc32-pclmul.ko
  SIGN    debian/linux-image/lib/modules/5.13.19-linux-surface/kernel/arch/x86/crypto/blake2s-x86_64.ko
  SIGN    debian/linux-image/lib/modules/5.13.19-linux-surface/kernel/arch/x86/crypto/blowfish-x86_64.ko
  SIGN    debian/linux-image/lib/modules/5.13.19-linux-surface/kernel/arch/x86/crypto/cast5-avx-x86_64.ko
  SIGN    debian/linux-image/lib/modules/5.13.19-linux-surface/kernel/arch/x86/crypto/aegis128-aesni.ko
  SIGN    debian/linux-image/lib/modules/5.13.19-linux-surface/kernel/arch/x86/crypto/chacha-x86_64.ko
  SIGN    debian/linux-image/lib/modules/5.13.19-linux-surface/kernel/arch/x86/crypto/crc32-pclmul.ko
  SIGN    debian/linux-image/lib/modules/5.13.19-linux-surface/kernel/arch/x86/crypto/cast6-avx-x86_64.ko
At main.c:160:
- SSL error:02001002:system library:fopen:No such file or directory: ../crypto/bio/bss_file.c:69
- SSL error:2006D080:BIO routines:BIO_new_file:no such file: ../crypto/bio/bss_file.c:76
sign-file: : No such file or directory
At main.c:160:
- SSL error:02001002:system library:fopen:No such file or directory: ../crypto/bio/bss_file.c:69
- SSL error:2006D080:BIO routines:BIO_new_file:no such file: ../crypto/bio/bss_file.c:76
sign-file: : No such file or directory
At main.c:160:
- SSL error:02001002:system library:fopen:No such file or directory: ../crypto/bio/bss_file.c:69
- SSL error:2006D080:BIO routines:BIO_new_file:no such file: ../crypto/bio/bss_file.c:76
sign-file: : No such file or directory
make[6]: *** [scripts/Makefile.modinst:83: debian/linux-image/lib/modules/5.13.19-linux-surface/kernel/arch/x86/crypto/cast5-avx-x86_64.ko] Error 1
make[6]: *** Deleting file 'debian/linux-image/lib/modules/5.13.19-linux-surface/kernel/arch/x86/crypto/cast5-avx-x86_64.ko'
make[6]: *** Waiting for unfinished jobs....
  SIGN    debian/linux-image/lib/modules/5.13.19-linux-surface/kernel/arch/x86/crypto/aesni-intel.ko
make[6]: *** [scripts/Makefile.modinst:83: debian/linux-image/lib/modules/5.13.19-linux-surface/kernel/arch/x86/crypto/blake2s-x86_64.ko] Error 1
make[6]: *** Deleting file 'debian/linux-image/lib/modules/5.13.19-linux-surface/kernel/arch/x86/crypto/blake2s-x86_64.ko'
At main.c:160:
- SSL error:02001002:system library:fopen:No such file or directory: ../crypto/bio/bss_file.c:69
- SSL error:2006D080:BIO routines:BIO_new_file:no such file: ../crypto/bio/bss_file.c:76
sign-file: : No such file or directory
make[6]: *** [scripts/Makefile.modinst:83: debian/linux-image/lib/modules/5.13.19-linux-surface/kernel/arch/x86/crypto/blowfish-x86_64.ko] Error 1
make[6]: *** Deleting file 'debian/linux-image/lib/modules/5.13.19-linux-surface/kernel/arch/x86/crypto/blowfish-x86_64.ko'
At main.c:160:
- SSL error:02001002:system library:fopen:No such file or directory: ../crypto/bio/bss_file.c:69
- SSL error:2006D080:BIO routines:BIO_new_file:no such file: ../crypto/bio/bss_file.c:76
sign-file: : No such file or directory
make[6]: *** [scripts/Makefile.modinst:83: debian/linux-image/lib/modules/5.13.19-linux-surface/kernel/arch/x86/crypto/chacha-x86_64.ko] Error 1
make[6]: *** Deleting file 'debian/linux-image/lib/modules/5.13.19-linux-surface/kernel/arch/x86/crypto/chacha-x86_64.ko'
At main.c:160:
- SSL error:02001002:system library:fopen:No such file or directory: ../crypto/bio/bss_file.c:69
- SSL error:2006D080:BIO routines:BIO_new_file:no such file: ../crypto/bio/bss_file.c:76
sign-file: : No such file or directory
make[6]: *** [scripts/Makefile.modinst:83: debian/linux-image/lib/modules/5.13.19-linux-surface/kernel/arch/x86/crypto/crc32-pclmul.ko] Error 1
make[6]: *** Deleting file 'debian/linux-image/lib/modules/5.13.19-linux-surface/kernel/arch/x86/crypto/crc32-pclmul.ko'
make[6]: *** [scripts/Makefile.modinst:83: debian/linux-image/lib/modules/5.13.19-linux-surface/kernel/arch/x86/crypto/cast6-avx-x86_64.ko] Error 1
make[6]: *** Deleting file 'debian/linux-image/lib/modules/5.13.19-linux-surface/kernel/arch/x86/crypto/cast6-avx-x86_64.ko'
At main.c:160:
- SSL error:02001002:system library:fopen:No such file or directory: ../crypto/bio/bss_file.c:69
- SSL error:2006D080:BIO routines:BIO_new_file:no such file: ../crypto/bio/bss_file.c:76
sign-file: : No such file or directory
make[6]: *** [scripts/Makefile.modinst:83: debian/linux-image/lib/modules/5.13.19-linux-surface/kernel/arch/x86/crypto/aegis128-aesni.ko] Error 1
make[6]: *** Deleting file 'debian/linux-image/lib/modules/5.13.19-linux-surface/kernel/arch/x86/crypto/aegis128-aesni.ko'
At main.c:160:
- SSL error:02001002:system library:fopen:No such file or directory: ../crypto/bio/bss_file.c:69
- SSL error:2006D080:BIO routines:BIO_new_file:no such file: ../crypto/bio/bss_file.c:76
sign-file: : No such file or directory
make[6]: *** [scripts/Makefile.modinst:83: debian/linux-image/lib/modules/5.13.19-linux-surface/kernel/arch/x86/crypto/aesni-intel.ko] Error 1
make[6]: *** Deleting file 'debian/linux-image/lib/modules/5.13.19-linux-surface/kernel/arch/x86/crypto/aesni-intel.ko'
make[5]: *** [Makefile:1793: modules_install] Error 2
make[4]: *** [scripts/Makefile.package:87: intdeb-pkg] Error 2
make[3]: *** [Makefile:1585: intdeb-pkg] Error 2
make[2]: *** [debian/rules:13: binary-arch] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
make[1]: *** [scripts/Makefile.package:83: bindeb-pkg] Error 2
make: *** [Makefile:1585: bindeb-pkg] Error 2

I know it hasn't got anything strictly to do with BigSurface, but I wonder if you had the same issues and how you solved them?

Thanks

@Xiashangning
Copy link
Owner

Well, i just followed the guide on linux
-surface repo (how to compile the kernel)
and haven’t met your problem
I am not a expert for linux so i suggest that you can try follow that

@therealjbenam
Copy link
Author

Well, i just followed the guide on linux -surface repo (how to compile the kernel) and haven’t met your problem I am not a expert for linux so i suggest that you can try follow that

Yeah I am following that :( Maybe it has something to do with the kernel version? I am using 5.13 - which one did you use for testing?

@Xiashangning
Copy link
Owner

@therealjbenam Have you succeeded in installing Ubuntu or any Linux distro and compile a custom kernel?

@therealjbenam
Copy link
Author

therealjbenam commented Jan 26, 2022

@therealjbenam Have you succeeded in installing Ubuntu or any Linux distro and compile a custom kernel?

I have correctly installer Ubuntu but I can't compile surface-kernel as I get a boatload of errors when compiling crypto. If you still have your build, could you please tell me which kernel did you use and which config file did you point the build at? I think there is something going wrong with the merge_config.sh and it's probably lacking some required configuration for the crypto/SSL part.

Never had issues when compiling standard kernels in the past, though, first time I see something like that...

@Xiashangning
Copy link
Owner

@therealjbenam I have reinstalled Ubuntu, modified the kernel and compile a workable kernel for you, try this. Using sudo dpkg -i *.deb
surface-ubuntu.zip
Once you have installed, boot into this kernel and in terminal input sudo dmesg | grep mydebug and tell me the output

@therealjbenam
Copy link
Author

@therealjbenam I have reinstalled Ubuntu, modified the kernel and compile a workable kernel for you, try this. Using sudo dpkg -i *.deb surface-ubuntu.zip Once you have installed, boot into this kernel and in terminal input sudo dmesg | grep mydebug and tell me the output

Thank you very much for this! Installed it successfully and got the data you need.

Please let me know if you need anything else.

[    2.428617] dw-apb-uart dw-apb-uart.4: ----mydebug uartclk: 153600
[    2.428781] dw-apb-uart dw-apb-uart.4: ----mydebug baudrate: 9600
[    2.428931] dw-apb-uart dw-apb-uart.4: ----mydebug quot: 1
[    2.429070] dw-apb-uart dw-apb-uart.4: ----mydebug 0x200: 2352283657
[    2.429208] dw-apb-uart dw-apb-uart.4: ----mydebug 0x204: 7
[    2.429367] dw-apb-uart dw-apb-uart.4: ----mydebug 0x208: 0
[    2.429482] dw-apb-uart dw-apb-uart.4: ----mydebug 0x800: 0
[    2.429600] dw-apb-uart dw-apb-uart.4: ----mydebug 0x804: 0
[    2.429727] dw-apb-uart dw-apb-uart.4: ----mydebug uartclk: 153600
[    2.429859] dw-apb-uart dw-apb-uart.4: ----mydebug baudrate: 9600
[    2.429984] dw-apb-uart dw-apb-uart.4: ----mydebug quot: 1
[    2.430101] dw-apb-uart dw-apb-uart.4: ----mydebug 0x200: 2352283657
[    2.430231] dw-apb-uart dw-apb-uart.4: ----mydebug 0x204: 7
[    2.430352] dw-apb-uart dw-apb-uart.4: ----mydebug 0x208: 0
[    2.430478] dw-apb-uart dw-apb-uart.4: ----mydebug 0x800: 0
[    2.430597] dw-apb-uart dw-apb-uart.4: ----mydebug 0x804: 0
[    2.430755] dw-apb-uart dw-apb-uart.4: ----mydebug uartclk: 48000000
[    2.430889] dw-apb-uart dw-apb-uart.4: ----mydebug baudrate: 3000000
[    2.431024] dw-apb-uart dw-apb-uart.4: ----mydebug quot: 1
[    2.431143] dw-apb-uart dw-apb-uart.4: ----mydebug 0x200: 2147811333
[    2.431276] dw-apb-uart dw-apb-uart.4: ----mydebug 0x204: 7
[    2.431419] dw-apb-uart dw-apb-uart.4: ----mydebug 0x208: 0
[    2.431539] dw-apb-uart dw-apb-uart.4: ----mydebug 0x800: 0
[    2.431662] dw-apb-uart dw-apb-uart.4: ----mydebug 0x804: 0
[    2.431789] dw-apb-uart dw-apb-uart.4: ----mydebug uartclk: 48000000
[    2.431922] dw-apb-uart dw-apb-uart.4: ----mydebug baudrate: 3000000
[    2.432055] dw-apb-uart dw-apb-uart.4: ----mydebug quot: 1
[    2.432200] dw-apb-uart dw-apb-uart.4: ----mydebug 0x200: 2147811333
[    2.432354] dw-apb-uart dw-apb-uart.4: ----mydebug 0x204: 7
[    2.432482] dw-apb-uart dw-apb-uart.4: ----mydebug 0x208: 0
[    2.432604] dw-apb-uart dw-apb-uart.4: ----mydebug 0x800: 0
[    2.432723] dw-apb-uart dw-apb-uart.4: ----mydebug 0x804: 0
[    2.461564] dw-apb-uart dw-apb-uart.4: ----mydebug uartclk: 48000000
[    2.461732] dw-apb-uart dw-apb-uart.4: ----mydebug baudrate: 3000000
[    2.461881] dw-apb-uart dw-apb-uart.4: ----mydebug quot: 1
[    2.461997] dw-apb-uart dw-apb-uart.4: ----mydebug 0x200: 2147811333
[    2.462130] dw-apb-uart dw-apb-uart.4: ----mydebug 0x204: 7
[    2.462249] dw-apb-uart dw-apb-uart.4: ----mydebug 0x208: 0
[    2.462368] dw-apb-uart dw-apb-uart.4: ----mydebug 0x800: 0
[    2.462485] dw-apb-uart dw-apb-uart.4: ----mydebug 0x804: 0
[    2.462614] dw-apb-uart dw-apb-uart.4: ----mydebug uartclk: 48000000
[    2.462745] dw-apb-uart dw-apb-uart.4: ----mydebug baudrate: 3000000
[    2.462874] dw-apb-uart dw-apb-uart.4: ----mydebug quot: 1
[    2.462989] dw-apb-uart dw-apb-uart.4: ----mydebug 0x200: 2147811333
[    2.463145] dw-apb-uart dw-apb-uart.4: ----mydebug 0x204: 7
[    2.463262] dw-apb-uart dw-apb-uart.4: ----mydebug 0x208: 0
[    2.463378] dw-apb-uart dw-apb-uart.4: ----mydebug 0x800: 0
[    2.463494] dw-apb-uart dw-apb-uart.4: ----mydebug 0x804: 0
[    2.463642] dw-apb-uart dw-apb-uart.4: ----mydebug uartclk: 48000000
[    2.464111] dw-apb-uart dw-apb-uart.4: ----mydebug baudrate: 3000000
[    2.464423] dw-apb-uart dw-apb-uart.4: ----mydebug quot: 1
[    2.466344] dw-apb-uart dw-apb-uart.4: ----mydebug 0x200: 2147811333
[    2.469770] dw-apb-uart dw-apb-uart.4: ----mydebug 0x204: 7
[    2.472336] dw-apb-uart dw-apb-uart.4: ----mydebug 0x208: 0
[    2.477806] dw-apb-uart dw-apb-uart.4: ----mydebug 0x800: 0
[    2.486818] dw-apb-uart dw-apb-uart.4: ----mydebug 0x804: 0
[    2.560585] dw-apb-uart dw-apb-uart.4: ----mydebug uartclk: 48000000
[    2.560600] dw-apb-uart dw-apb-uart.4: ----mydebug baudrate: 3000000
[    2.560604] dw-apb-uart dw-apb-uart.4: ----mydebug quot: 1
[    2.560609] dw-apb-uart dw-apb-uart.4: ----mydebug 0x200: 2147811333
[    2.560614] dw-apb-uart dw-apb-uart.4: ----mydebug 0x204: 7
[    2.560618] dw-apb-uart dw-apb-uart.4: ----mydebug 0x208: 0
[    2.560622] dw-apb-uart dw-apb-uart.4: ----mydebug 0x800: 0
[    2.560626] dw-apb-uart dw-apb-uart.4: ----mydebug 0x804: 0
[    2.560639] dw-apb-uart dw-apb-uart.4: ----mydebug uartclk: 48000000
[    2.560642] dw-apb-uart dw-apb-uart.4: ----mydebug baudrate: 3000000
[    2.560646] dw-apb-uart dw-apb-uart.4: ----mydebug quot: 1
[    2.560650] dw-apb-uart dw-apb-uart.4: ----mydebug 0x200: 2147811333
[    2.560654] dw-apb-uart dw-apb-uart.4: ----mydebug 0x204: 7
[    2.560659] dw-apb-uart dw-apb-uart.4: ----mydebug 0x208: 0
[    2.560663] dw-apb-uart dw-apb-uart.4: ----mydebug 0x800: 0
[    2.560668] dw-apb-uart dw-apb-uart.4: ----mydebug 0x804: 0
[    2.560828] dw-apb-uart dw-apb-uart.4: ----mydebug uartclk: 48000000
[    2.560832] dw-apb-uart dw-apb-uart.4: ----mydebug baudrate: 3000000
[    2.560834] dw-apb-uart dw-apb-uart.4: ----mydebug quot: 1
[    2.560837] dw-apb-uart dw-apb-uart.4: ----mydebug 0x200: 2147811333
[    2.560840] dw-apb-uart dw-apb-uart.4: ----mydebug 0x204: 7
[    2.560843] dw-apb-uart dw-apb-uart.4: ----mydebug 0x208: 0
[    2.560846] dw-apb-uart dw-apb-uart.4: ----mydebug 0x800: 0
[    2.560849] dw-apb-uart dw-apb-uart.4: ----mydebug 0x804: 0
[    2.581440] dw-apb-uart dw-apb-uart.4: ----mydebug uartclk: 48000000
[    2.581452] dw-apb-uart dw-apb-uart.4: ----mydebug baudrate: 3000000
[    2.581456] dw-apb-uart dw-apb-uart.4: ----mydebug quot: 1
[    2.581461] dw-apb-uart dw-apb-uart.4: ----mydebug 0x200: 2147811333
[    2.581467] dw-apb-uart dw-apb-uart.4: ----mydebug 0x204: 7
[    2.581472] dw-apb-uart dw-apb-uart.4: ----mydebug 0x208: 0
[    2.581476] dw-apb-uart dw-apb-uart.4: ----mydebug 0x800: 0
[    2.581481] dw-apb-uart dw-apb-uart.4: ----mydebug 0x804: 0
[    2.581493] dw-apb-uart dw-apb-uart.4: ----mydebug uartclk: 48000000
[    2.581497] dw-apb-uart dw-apb-uart.4: ----mydebug baudrate: 3000000
[    2.581501] dw-apb-uart dw-apb-uart.4: ----mydebug quot: 1
[    2.581506] dw-apb-uart dw-apb-uart.4: ----mydebug 0x200: 2147811333
[    2.581511] dw-apb-uart dw-apb-uart.4: ----mydebug 0x204: 7
[    2.581516] dw-apb-uart dw-apb-uart.4: ----mydebug 0x208: 0
[    2.581520] dw-apb-uart dw-apb-uart.4: ----mydebug 0x800: 0
[    2.581525] dw-apb-uart dw-apb-uart.4: ----mydebug 0x804: 0
[    2.581563] dw-apb-uart dw-apb-uart.4: ----mydebug uartclk: 48000000
[    2.581569] dw-apb-uart dw-apb-uart.4: ----mydebug baudrate: 3000000
[    2.581573] dw-apb-uart dw-apb-uart.4: ----mydebug quot: 1
[    2.581579] dw-apb-uart dw-apb-uart.4: ----mydebug 0x200: 2147811333
[    2.581584] dw-apb-uart dw-apb-uart.4: ----mydebug 0x204: 7
[    2.581590] dw-apb-uart dw-apb-uart.4: ----mydebug 0x208: 0
[    2.581595] dw-apb-uart dw-apb-uart.4: ----mydebug 0x800: 0
[    2.581601] dw-apb-uart dw-apb-uart.4: ----mydebug 0x804: 0
[    2.649099] dw-apb-uart dw-apb-uart.4: ----mydebug uartclk: 48000000
[    2.649110] dw-apb-uart dw-apb-uart.4: ----mydebug baudrate: 3000000
[    2.649114] dw-apb-uart dw-apb-uart.4: ----mydebug quot: 1
[    2.649119] dw-apb-uart dw-apb-uart.4: ----mydebug 0x200: 2147811333
[    2.649124] dw-apb-uart dw-apb-uart.4: ----mydebug 0x204: 7
[    2.649129] dw-apb-uart dw-apb-uart.4: ----mydebug 0x208: 0
[    2.649134] dw-apb-uart dw-apb-uart.4: ----mydebug 0x800: 0
[    2.649139] dw-apb-uart dw-apb-uart.4: ----mydebug 0x804: 0
[    2.649150] dw-apb-uart dw-apb-uart.4: ----mydebug uartclk: 48000000
[    2.649153] dw-apb-uart dw-apb-uart.4: ----mydebug baudrate: 3000000
[    2.649155] dw-apb-uart dw-apb-uart.4: ----mydebug quot: 1
[    2.649158] dw-apb-uart dw-apb-uart.4: ----mydebug 0x200: 2147811333
[    2.649162] dw-apb-uart dw-apb-uart.4: ----mydebug 0x204: 7
[    2.649165] dw-apb-uart dw-apb-uart.4: ----mydebug 0x208: 0
[    2.649168] dw-apb-uart dw-apb-uart.4: ----mydebug 0x800: 0
[    2.649171] dw-apb-uart dw-apb-uart.4: ----mydebug 0x804: 0
[    2.649197] dw-apb-uart dw-apb-uart.4: ----mydebug uartclk: 48000000
[    2.649200] dw-apb-uart dw-apb-uart.4: ----mydebug baudrate: 3000000
[    2.649202] dw-apb-uart dw-apb-uart.4: ----mydebug quot: 1
[    2.649205] dw-apb-uart dw-apb-uart.4: ----mydebug 0x200: 2147811333
[    2.649209] dw-apb-uart dw-apb-uart.4: ----mydebug 0x204: 7
[    2.649212] dw-apb-uart dw-apb-uart.4: ----mydebug 0x208: 0
[    2.649215] dw-apb-uart dw-apb-uart.4: ----mydebug 0x800: 0
[    2.649219] dw-apb-uart dw-apb-uart.4: ----mydebug 0x804: 0
[    2.677728] dw-apb-uart dw-apb-uart.4: ----mydebug uartclk: 48000000
[    2.677736] dw-apb-uart dw-apb-uart.4: ----mydebug baudrate: 3000000
[    2.677739] dw-apb-uart dw-apb-uart.4: ----mydebug quot: 1
[    2.677744] dw-apb-uart dw-apb-uart.4: ----mydebug 0x200: 2147811333
[    2.677748] dw-apb-uart dw-apb-uart.4: ----mydebug 0x204: 7
[    2.677752] dw-apb-uart dw-apb-uart.4: ----mydebug 0x208: 0
[    2.677756] dw-apb-uart dw-apb-uart.4: ----mydebug 0x800: 0
[    2.677760] dw-apb-uart dw-apb-uart.4: ----mydebug 0x804: 0
[    2.677770] dw-apb-uart dw-apb-uart.4: ----mydebug uartclk: 48000000
[    2.677773] dw-apb-uart dw-apb-uart.4: ----mydebug baudrate: 3000000
[    2.677776] dw-apb-uart dw-apb-uart.4: ----mydebug quot: 1
[    2.677780] dw-apb-uart dw-apb-uart.4: ----mydebug 0x200: 2147811333
[    2.677786] dw-apb-uart dw-apb-uart.4: ----mydebug 0x204: 7
[    2.677793] dw-apb-uart dw-apb-uart.4: ----mydebug 0x208: 0
[    2.677798] dw-apb-uart dw-apb-uart.4: ----mydebug 0x800: 0
[    2.677803] dw-apb-uart dw-apb-uart.4: ----mydebug 0x804: 0
[    2.677842] dw-apb-uart dw-apb-uart.4: ----mydebug uartclk: 48000000
[    2.677847] dw-apb-uart dw-apb-uart.4: ----mydebug baudrate: 3000000
[    2.677852] dw-apb-uart dw-apb-uart.4: ----mydebug quot: 1
[    2.677857] dw-apb-uart dw-apb-uart.4: ----mydebug 0x200: 2147811333
[    2.677863] dw-apb-uart dw-apb-uart.4: ----mydebug 0x204: 7
[    2.677868] dw-apb-uart dw-apb-uart.4: ----mydebug 0x208: 0
[    2.677873] dw-apb-uart dw-apb-uart.4: ----mydebug 0x800: 0
[    2.677878] dw-apb-uart dw-apb-uart.4: ----mydebug 0x804: 0
[    2.708167] dw-apb-uart dw-apb-uart.4: ----mydebug uartclk: 48000000
[    2.708170] dw-apb-uart dw-apb-uart.4: ----mydebug baudrate: 3000000
[    2.708172] dw-apb-uart dw-apb-uart.4: ----mydebug quot: 1
[    2.708175] dw-apb-uart dw-apb-uart.4: ----mydebug 0x200: 2147811333
[    2.708179] dw-apb-uart dw-apb-uart.4: ----mydebug 0x204: 7
[    2.708181] dw-apb-uart dw-apb-uart.4: ----mydebug 0x208: 0
[    2.708184] dw-apb-uart dw-apb-uart.4: ----mydebug 0x800: 0
[    2.708187] dw-apb-uart dw-apb-uart.4: ----mydebug 0x804: 0
[    2.708196] dw-apb-uart dw-apb-uart.4: ----mydebug uartclk: 48000000
[    2.708198] dw-apb-uart dw-apb-uart.4: ----mydebug baudrate: 3000000
[    2.708199] dw-apb-uart dw-apb-uart.4: ----mydebug quot: 1
[    2.708202] dw-apb-uart dw-apb-uart.4: ----mydebug 0x200: 2147811333
[    2.708204] dw-apb-uart dw-apb-uart.4: ----mydebug 0x204: 7
[    2.708207] dw-apb-uart dw-apb-uart.4: ----mydebug 0x208: 0
[    2.708209] dw-apb-uart dw-apb-uart.4: ----mydebug 0x800: 0
[    2.708212] dw-apb-uart dw-apb-uart.4: ----mydebug 0x804: 0
[    2.708252] dw-apb-uart dw-apb-uart.4: ----mydebug uartclk: 48000000
[    2.708254] dw-apb-uart dw-apb-uart.4: ----mydebug baudrate: 3000000
[    2.708255] dw-apb-uart dw-apb-uart.4: ----mydebug quot: 1
[    2.708258] dw-apb-uart dw-apb-uart.4: ----mydebug 0x200: 2147811333
[    2.708261] dw-apb-uart dw-apb-uart.4: ----mydebug 0x204: 7
[    2.708263] dw-apb-uart dw-apb-uart.4: ----mydebug 0x208: 0
[    2.708266] dw-apb-uart dw-apb-uart.4: ----mydebug 0x800: 0
[    2.708269] dw-apb-uart dw-apb-uart.4: ----mydebug 0x804: 0
[    2.789145] dw-apb-uart dw-apb-uart.4: ----mydebug uartclk: 48000000
[    2.789148] dw-apb-uart dw-apb-uart.4: ----mydebug baudrate: 3000000
[    2.789149] dw-apb-uart dw-apb-uart.4: ----mydebug quot: 1
[    2.789151] dw-apb-uart dw-apb-uart.4: ----mydebug 0x200: 2147811333
[    2.789153] dw-apb-uart dw-apb-uart.4: ----mydebug 0x204: 7
[    2.789155] dw-apb-uart dw-apb-uart.4: ----mydebug 0x208: 0
[    2.789156] dw-apb-uart dw-apb-uart.4: ----mydebug 0x800: 0
[    2.789158] dw-apb-uart dw-apb-uart.4: ----mydebug 0x804: 0
[    2.789165] dw-apb-uart dw-apb-uart.4: ----mydebug uartclk: 48000000
[    2.789166] dw-apb-uart dw-apb-uart.4: ----mydebug baudrate: 3000000
[    2.789166] dw-apb-uart dw-apb-uart.4: ----mydebug quot: 1
[    2.789168] dw-apb-uart dw-apb-uart.4: ----mydebug 0x200: 2147811333
[    2.789170] dw-apb-uart dw-apb-uart.4: ----mydebug 0x204: 7
[    2.789172] dw-apb-uart dw-apb-uart.4: ----mydebug 0x208: 0
[    2.789173] dw-apb-uart dw-apb-uart.4: ----mydebug 0x800: 0
[    2.789175] dw-apb-uart dw-apb-uart.4: ----mydebug 0x804: 0
[    2.789198] dw-apb-uart dw-apb-uart.4: ----mydebug uartclk: 48000000
[    2.789199] dw-apb-uart dw-apb-uart.4: ----mydebug baudrate: 3000000
[    2.789200] dw-apb-uart dw-apb-uart.4: ----mydebug quot: 1
[    2.789202] dw-apb-uart dw-apb-uart.4: ----mydebug 0x200: 2147811333
[    2.789203] dw-apb-uart dw-apb-uart.4: ----mydebug 0x204: 7
[    2.789205] dw-apb-uart dw-apb-uart.4: ----mydebug 0x208: 0
[    2.789207] dw-apb-uart dw-apb-uart.4: ----mydebug 0x800: 0
[    2.789209] dw-apb-uart dw-apb-uart.4: ----mydebug 0x804: 0
[    2.880232] dw-apb-uart dw-apb-uart.4: ----mydebug uartclk: 48000000
[    2.880293] dw-apb-uart dw-apb-uart.4: ----mydebug baudrate: 3000000
[    2.880343] dw-apb-uart dw-apb-uart.4: ----mydebug quot: 1
[    2.880389] dw-apb-uart dw-apb-uart.4: ----mydebug 0x200: 2147811333
[    2.880451] dw-apb-uart dw-apb-uart.4: ----mydebug 0x204: 7
[    2.880493] dw-apb-uart dw-apb-uart.4: ----mydebug 0x208: 0
[    2.880533] dw-apb-uart dw-apb-uart.4: ----mydebug 0x800: 0
[    2.880573] dw-apb-uart dw-apb-uart.4: ----mydebug 0x804: 0
[    2.880631] dw-apb-uart dw-apb-uart.4: ----mydebug uartclk: 48000000
[    2.880680] dw-apb-uart dw-apb-uart.4: ----mydebug baudrate: 3000000
[    2.880725] dw-apb-uart dw-apb-uart.4: ----mydebug quot: 1
[    2.880770] dw-apb-uart dw-apb-uart.4: ----mydebug 0x200: 2147811333
[    2.880818] dw-apb-uart dw-apb-uart.4: ----mydebug 0x204: 7
[    2.880861] dw-apb-uart dw-apb-uart.4: ----mydebug 0x208: 0
[    2.880904] dw-apb-uart dw-apb-uart.4: ----mydebug 0x800: 0
[    2.880946] dw-apb-uart dw-apb-uart.4: ----mydebug 0x804: 0
[    2.881039] dw-apb-uart dw-apb-uart.4: ----mydebug uartclk: 48000000
[    2.881087] dw-apb-uart dw-apb-uart.4: ----mydebug baudrate: 3000000
[    2.881133] dw-apb-uart dw-apb-uart.4: ----mydebug quot: 1
[    2.881173] dw-apb-uart dw-apb-uart.4: ----mydebug 0x200: 2147811333
[    2.881223] dw-apb-uart dw-apb-uart.4: ----mydebug 0x204: 7
[    2.881266] dw-apb-uart dw-apb-uart.4: ----mydebug 0x208: 0
[    2.882263] dw-apb-uart dw-apb-uart.4: ----mydebug 0x800: 0
[    2.883197] dw-apb-uart dw-apb-uart.4: ----mydebug 0x804: 0
[    3.057288] dw-apb-uart dw-apb-uart.4: ----mydebug uartclk: 48000000
[    3.057293] dw-apb-uart dw-apb-uart.4: ----mydebug baudrate: 3000000
[    3.057295] dw-apb-uart dw-apb-uart.4: ----mydebug quot: 1
[    3.057298] dw-apb-uart dw-apb-uart.4: ----mydebug 0x200: 2147811333
[    3.057300] dw-apb-uart dw-apb-uart.4: ----mydebug 0x204: 7
[    3.057303] dw-apb-uart dw-apb-uart.4: ----mydebug 0x208: 0
[    3.057305] dw-apb-uart dw-apb-uart.4: ----mydebug 0x800: 0
[    3.057308] dw-apb-uart dw-apb-uart.4: ----mydebug 0x804: 0
[    3.057315] dw-apb-uart dw-apb-uart.4: ----mydebug uartclk: 48000000
[    3.057317] dw-apb-uart dw-apb-uart.4: ----mydebug baudrate: 3000000
[    3.057318] dw-apb-uart dw-apb-uart.4: ----mydebug quot: 1
[    3.057321] dw-apb-uart dw-apb-uart.4: ----mydebug 0x200: 2147811333
[    3.057323] dw-apb-uart dw-apb-uart.4: ----mydebug 0x204: 7
[    3.057325] dw-apb-uart dw-apb-uart.4: ----mydebug 0x208: 0
[    3.057328] dw-apb-uart dw-apb-uart.4: ----mydebug 0x800: 0
[    3.057330] dw-apb-uart dw-apb-uart.4: ----mydebug 0x804: 0
[    3.057352] dw-apb-uart dw-apb-uart.4: ----mydebug uartclk: 48000000
[    3.057354] dw-apb-uart dw-apb-uart.4: ----mydebug baudrate: 3000000
[    3.057355] dw-apb-uart dw-apb-uart.4: ----mydebug quot: 1
[    3.057358] dw-apb-uart dw-apb-uart.4: ----mydebug 0x200: 2147811333
[    3.057360] dw-apb-uart dw-apb-uart.4: ----mydebug 0x204: 7
[    3.057362] dw-apb-uart dw-apb-uart.4: ----mydebug 0x208: 0
[    3.057365] dw-apb-uart dw-apb-uart.4: ----mydebug 0x800: 0
[    3.057367] dw-apb-uart dw-apb-uart.4: ----mydebug 0x804: 0
[    3.336480] dw-apb-uart dw-apb-uart.4: ----mydebug uartclk: 48000000
[    3.336488] dw-apb-uart dw-apb-uart.4: ----mydebug baudrate: 3000000
[    3.336491] dw-apb-uart dw-apb-uart.4: ----mydebug quot: 1
[    3.336495] dw-apb-uart dw-apb-uart.4: ----mydebug 0x200: 2147811333
[    3.336500] dw-apb-uart dw-apb-uart.4: ----mydebug 0x204: 7
[    3.336504] dw-apb-uart dw-apb-uart.4: ----mydebug 0x208: 0
[    3.336508] dw-apb-uart dw-apb-uart.4: ----mydebug 0x800: 0
[    3.336512] dw-apb-uart dw-apb-uart.4: ----mydebug 0x804: 0
[    3.336522] dw-apb-uart dw-apb-uart.4: ----mydebug uartclk: 48000000
[    3.336525] dw-apb-uart dw-apb-uart.4: ----mydebug baudrate: 3000000
[    3.336528] dw-apb-uart dw-apb-uart.4: ----mydebug quot: 1
[    3.336532] dw-apb-uart dw-apb-uart.4: ----mydebug 0x200: 2147811333
[    3.336536] dw-apb-uart dw-apb-uart.4: ----mydebug 0x204: 7
[    3.336540] dw-apb-uart dw-apb-uart.4: ----mydebug 0x208: 0
[    3.336544] dw-apb-uart dw-apb-uart.4: ----mydebug 0x800: 0
[    3.336548] dw-apb-uart dw-apb-uart.4: ----mydebug 0x804: 0
[    3.336583] dw-apb-uart dw-apb-uart.4: ----mydebug uartclk: 48000000
[    3.336586] dw-apb-uart dw-apb-uart.4: ----mydebug baudrate: 3000000
[    3.336589] dw-apb-uart dw-apb-uart.4: ----mydebug quot: 1
[    3.336593] dw-apb-uart dw-apb-uart.4: ----mydebug 0x200: 2147811333
[    3.336597] dw-apb-uart dw-apb-uart.4: ----mydebug 0x204: 7
[    3.336601] dw-apb-uart dw-apb-uart.4: ----mydebug 0x208: 0
[    3.336605] dw-apb-uart dw-apb-uart.4: ----mydebug 0x800: 0
[    3.336608] dw-apb-uart dw-apb-uart.4: ----mydebug 0x804: 0
[    3.832504] dw-apb-uart dw-apb-uart.4: ----mydebug uartclk: 48000000
[    3.832514] dw-apb-uart dw-apb-uart.4: ----mydebug baudrate: 3000000
[    3.832517] dw-apb-uart dw-apb-uart.4: ----mydebug quot: 1
[    3.832521] dw-apb-uart dw-apb-uart.4: ----mydebug 0x200: 2147811333
[    3.832526] dw-apb-uart dw-apb-uart.4: ----mydebug 0x204: 7
[    3.832530] dw-apb-uart dw-apb-uart.4: ----mydebug 0x208: 0
[    3.832534] dw-apb-uart dw-apb-uart.4: ----mydebug 0x800: 0
[    3.832538] dw-apb-uart dw-apb-uart.4: ----mydebug 0x804: 0
[    3.832549] dw-apb-uart dw-apb-uart.4: ----mydebug uartclk: 48000000
[    3.832552] dw-apb-uart dw-apb-uart.4: ----mydebug baudrate: 3000000
[    3.832555] dw-apb-uart dw-apb-uart.4: ----mydebug quot: 1
[    3.832559] dw-apb-uart dw-apb-uart.4: ----mydebug 0x200: 2147811333
[    3.832563] dw-apb-uart dw-apb-uart.4: ----mydebug 0x204: 7
[    3.832567] dw-apb-uart dw-apb-uart.4: ----mydebug 0x208: 0
[    3.832571] dw-apb-uart dw-apb-uart.4: ----mydebug 0x800: 0
[    3.832574] dw-apb-uart dw-apb-uart.4: ----mydebug 0x804: 0
[    3.832610] dw-apb-uart dw-apb-uart.4: ----mydebug uartclk: 48000000
[    3.832613] dw-apb-uart dw-apb-uart.4: ----mydebug baudrate: 3000000
[    3.832616] dw-apb-uart dw-apb-uart.4: ----mydebug quot: 1
[    3.832619] dw-apb-uart dw-apb-uart.4: ----mydebug 0x200: 2147811333
[    3.832623] dw-apb-uart dw-apb-uart.4: ----mydebug 0x204: 7
[    3.832627] dw-apb-uart dw-apb-uart.4: ----mydebug 0x208: 0
[    3.832631] dw-apb-uart dw-apb-uart.4: ----mydebug 0x800: 0
[    3.832634] dw-apb-uart dw-apb-uart.4: ----mydebug 0x804: 0
[    3.884512] dw-apb-uart dw-apb-uart.4: ----mydebug uartclk: 48000000
[    3.884521] dw-apb-uart dw-apb-uart.4: ----mydebug baudrate: 3000000
[    3.884525] dw-apb-uart dw-apb-uart.4: ----mydebug quot: 1
[    3.884529] dw-apb-uart dw-apb-uart.4: ----mydebug 0x200: 2147811333
[    3.884534] dw-apb-uart dw-apb-uart.4: ----mydebug 0x204: 7
[    3.884538] dw-apb-uart dw-apb-uart.4: ----mydebug 0x208: 0
[    3.884542] dw-apb-uart dw-apb-uart.4: ----mydebug 0x800: 0
[    3.884546] dw-apb-uart dw-apb-uart.4: ----mydebug 0x804: 0
[    3.884558] dw-apb-uart dw-apb-uart.4: ----mydebug uartclk: 48000000
[    3.884560] dw-apb-uart dw-apb-uart.4: ----mydebug baudrate: 3000000
[    3.884563] dw-apb-uart dw-apb-uart.4: ----mydebug quot: 1
[    3.884567] dw-apb-uart dw-apb-uart.4: ----mydebug 0x200: 2147811333
[    3.884571] dw-apb-uart dw-apb-uart.4: ----mydebug 0x204: 7
[    3.884575] dw-apb-uart dw-apb-uart.4: ----mydebug 0x208: 0
[    3.884578] dw-apb-uart dw-apb-uart.4: ----mydebug 0x800: 0
[    3.884582] dw-apb-uart dw-apb-uart.4: ----mydebug 0x804: 0
[    3.884634] dw-apb-uart dw-apb-uart.4: ----mydebug uartclk: 48000000
[    3.884639] dw-apb-uart dw-apb-uart.4: ----mydebug baudrate: 3000000
[    3.884643] dw-apb-uart dw-apb-uart.4: ----mydebug quot: 1
[    3.884647] dw-apb-uart dw-apb-uart.4: ----mydebug 0x200: 2147811333
[    3.884650] dw-apb-uart dw-apb-uart.4: ----mydebug 0x204: 7
[    3.884654] dw-apb-uart dw-apb-uart.4: ----mydebug 0x208: 0
[    3.884658] dw-apb-uart dw-apb-uart.4: ----mydebug 0x800: 0
[    3.884661] dw-apb-uart dw-apb-uart.4: ----mydebug 0x804: 0
[    4.064524] dw-apb-uart dw-apb-uart.4: ----mydebug uartclk: 48000000
[    4.064532] dw-apb-uart dw-apb-uart.4: ----mydebug baudrate: 3000000
[    4.064536] dw-apb-uart dw-apb-uart.4: ----mydebug quot: 1
[    4.064540] dw-apb-uart dw-apb-uart.4: ----mydebug 0x200: 2147811333
[    4.064544] dw-apb-uart dw-apb-uart.4: ----mydebug 0x204: 7
[    4.064548] dw-apb-uart dw-apb-uart.4: ----mydebug 0x208: 0
[    4.064551] dw-apb-uart dw-apb-uart.4: ----mydebug 0x800: 0
[    4.064555] dw-apb-uart dw-apb-uart.4: ----mydebug 0x804: 0
[    4.064566] dw-apb-uart dw-apb-uart.4: ----mydebug uartclk: 48000000
[    4.064569] dw-apb-uart dw-apb-uart.4: ----mydebug baudrate: 3000000
[    4.064571] dw-apb-uart dw-apb-uart.4: ----mydebug quot: 1
[    4.064575] dw-apb-uart dw-apb-uart.4: ----mydebug 0x200: 2147811333
[    4.064578] dw-apb-uart dw-apb-uart.4: ----mydebug 0x204: 7
[    4.064582] dw-apb-uart dw-apb-uart.4: ----mydebug 0x208: 0
[    4.064586] dw-apb-uart dw-apb-uart.4: ----mydebug 0x800: 0
[    4.064590] dw-apb-uart dw-apb-uart.4: ----mydebug 0x804: 0
[    4.064640] dw-apb-uart dw-apb-uart.4: ----mydebug uartclk: 48000000
[    4.064644] dw-apb-uart dw-apb-uart.4: ----mydebug baudrate: 3000000
[    4.064647] dw-apb-uart dw-apb-uart.4: ----mydebug quot: 1
[    4.064650] dw-apb-uart dw-apb-uart.4: ----mydebug 0x200: 2147811333
[    4.064655] dw-apb-uart dw-apb-uart.4: ----mydebug 0x204: 7
[    4.064658] dw-apb-uart dw-apb-uart.4: ----mydebug 0x208: 0
[    4.064662] dw-apb-uart dw-apb-uart.4: ----mydebug 0x800: 0
[    4.064666] dw-apb-uart dw-apb-uart.4: ----mydebug 0x804: 0
[    4.256494] dw-apb-uart dw-apb-uart.4: ----mydebug uartclk: 48000000
[    4.256548] dw-apb-uart dw-apb-uart.4: ----mydebug baudrate: 3000000
[    4.256593] dw-apb-uart dw-apb-uart.4: ----mydebug quot: 1
[    4.256633] dw-apb-uart dw-apb-uart.4: ----mydebug 0x200: 2147811333
[    4.256675] dw-apb-uart dw-apb-uart.4: ----mydebug 0x204: 7
[    4.256715] dw-apb-uart dw-apb-uart.4: ----mydebug 0x208: 0
[    4.256755] dw-apb-uart dw-apb-uart.4: ----mydebug 0x800: 0
[    4.256795] dw-apb-uart dw-apb-uart.4: ----mydebug 0x804: 0
[    4.256841] dw-apb-uart dw-apb-uart.4: ----mydebug uartclk: 48000000
[    4.256883] dw-apb-uart dw-apb-uart.4: ----mydebug baudrate: 3000000
[    4.256926] dw-apb-uart dw-apb-uart.4: ----mydebug quot: 1
[    4.256963] dw-apb-uart dw-apb-uart.4: ----mydebug 0x200: 2147811333
[    4.257005] dw-apb-uart dw-apb-uart.4: ----mydebug 0x204: 7
[    4.257045] dw-apb-uart dw-apb-uart.4: ----mydebug 0x208: 0
[    4.257086] dw-apb-uart dw-apb-uart.4: ----mydebug 0x800: 0
[    4.257126] dw-apb-uart dw-apb-uart.4: ----mydebug 0x804: 0
[    4.257210] dw-apb-uart dw-apb-uart.4: ----mydebug uartclk: 48000000
[    4.257256] dw-apb-uart dw-apb-uart.4: ----mydebug baudrate: 3000000
[    4.257300] dw-apb-uart dw-apb-uart.4: ----mydebug quot: 1
[    4.257340] dw-apb-uart dw-apb-uart.4: ----mydebug 0x200: 2147811333
[    4.257385] dw-apb-uart dw-apb-uart.4: ----mydebug 0x204: 7
[    4.257424] dw-apb-uart dw-apb-uart.4: ----mydebug 0x208: 0
[    4.257464] dw-apb-uart dw-apb-uart.4: ----mydebug 0x800: 0
[    4.257505] dw-apb-uart dw-apb-uart.4: ----mydebug 0x804: 0

@Xiashangning
Copy link
Owner

@therealjbenam Try this build
BigSurface.kext.zip

@therealjbenam
Copy link
Author

therealjbenam commented Feb 11, 2022

@therealjbenam Try this build BigSurface.kext.zip

Thanks.
It still crashes. Will look for my Big Sur installer USB later so that I can provide better logs.

2022-02-11 14:03:01.566077+0100  localhost kernel[0]: IOCommandGate::disable() called when not gated
Backtrace 0x0 0x0 0xffffff8000a2ec2a 0xffffff8000a2e795 0xffffff8000a2d790 0xffffff8000a30839 0xffffff800022718e
2022-02-11 14:03:01.566081+0100  localhost kernel[0]:       Kernel Extensions in backtrace:
2022-02-11 14:03:01.566088+0100  localhost kernel[0]:          com.xavier.BigSurface(1.0.4)[B5442712-01D2-3B0A-B627-4640C8EEDD5A]@0x0->0x39fff
2022-02-11 14:03:01.566095+0100  localhost kernel[0]:             dependency: as.vit9696.Lilu(1.5.7)[E42A54DC-9082-35EC-93BC-08AD09861180]@0x0->0x2afff
2022-02-11 14:03:01.566100+0100  localhost kernel[0]:             dependency: as.vit9696.VirtualSMC(1.2.7)[9DAADEEB-D155-3EEC-AFDF-2F05E221EA01]@0x0->0x16fff
2022-02-11 14:03:01.566106+0100  localhost kernel[0]:             dependency: com.alexandred.VoodooI2CServices(1)[AE0A651D-3034-3B31-8175-69D0E253FE2A]@0x0->0xafff
2022-02-11 14:03:01.566112+0100  localhost kernel[0]:             dependency: com.apple.iokit.IOACPIFamily(1.4)[B750EC9D-D224-309C-8C32-3F32C6257F1E]@0xffffff800293f000->0xffffff8002940fff
2022-02-11 14:03:01.566119+0100  localhost kernel[0]:             dependency: com.apple.iokit.IOHIDFamily(2.0.0)[4773BB64-73AE-3283-8DE4-D10459C90231]@0xffffff8002a7d000->0xffffff8002adafff
2022-02-11 14:03:01.566126+0100  localhost kernel[0]:             dependency: com.apple.iokit.IOSMBusFamily(1.1)[FBCF7261-2104-3F79-ADCD-C3DDD5B63986]@0xffffff8002eb0000->0xffffff8002eb1fff
2022-02-11 14:03:01.566146+0100  localhost kernel[0]:             dependency: com.xavier.VoodooSerial(1.0.0)[93D13E56-7627-3D62-ABB8-E23178070992]@0x0->0x3ffff
2022-02-11 14:03:01.566151+0100  localhost kernel[0]:             dependency: org.coolstar.VoodooGPIO(1.2.0)[F3ED6FA0-F8A5-3384-8367-C3D3E1BE802D]@0x0->0x1bfff
2022-02-11 14:03:01.585516+0100  localhost kernel[0]: (Sandbox) <Sandbox`is_release_type> release type: User

@Xiashangning
Copy link
Owner

Try Big Sur instead then, really don't know why crashes...

@therealjbenam
Copy link
Author

therealjbenam commented Feb 11, 2022

@Xiashangning here are the Big Sur logs:

Feb 11 17:38:31 localhost kernel[0]: [    3.999433]: SurfaceSerialHubDriver::Found valid UART Bus!
Feb 11 17:38:31 localhost kernel[0]: [    3.999438]: SurfaceSerialHubDriver::Surface Serial Hub found!
Feb 11 17:38:31 localhost kernel[0]: [    4.001051]: SurfaceButtonDriver::Found valid GPIO interrupts
Feb 11 17:38:31 localhost kernel[0]: [    4.001075]: SurfaceButtonDriver::Surface ACPI button device found!
Feb 11 17:38:31 localhost kernel[0]: [    4.037979]: SurfaceButtonDriver::Got GPIO Controller! VoodooGPIOSunrisePointLP
Feb 11 17:38:31 localhost kernel[0]: [    4.099233]: IOSurfaceRoot::installMemoryRegions()
Feb 11 17:38:31 localhost kernel[0]: [    4.099240]: IOSurface allowing global lookups (with warnings)
Feb 11 17:38:31 localhost kernel[0]: [    4.139241]: SurfaceButtonHIDDevice:0x1000002f0 start
Feb 11 17:38:31 localhost kernel[0]: [    4.139277]: SurfaceButtonHIDDevice:0x1000002f0 message: 0xe0000230 from: 0x1000002b5 0
Feb 11 17:38:31 localhost kernel[0]: [    4.140640]: SurfaceButtonDriver::started
Feb 11 17:38:31 localhost kernel[0]: [    4.140833]: SurfaceButtonHIDDevice:0x1000002f0 creating interfaces
Feb 11 17:38:31 localhost kernel[0]: [    5.591032]: SurfaceSerialHubDriver::Got UART Controller! VoodooUARTController
Feb 11 17:38:36 MacBook-Pro kernelmanagerd[55]: Error occurred while handling request LoadNotification(arguments: Optional(["CFBundleIdentifier": com.xavier.BigSurface])): System policy error: System policy is unavailable.

And

Feb 11 17:38:31 localhost kernel[0]: [    3.999433]: SurfaceSerialHubDriver::Found valid UART Bus!
Feb 11 17:38:31 localhost kernel[0]: [    5.589635]: VoodooUARTController::UA00 device id: 9d27
Feb 11 17:38:31 localhost kernel[0]: [    5.589831]: VoodooUARTController::UA00 Set PCI power state D0
Feb 11 17:38:31 localhost kernel[0]: [    5.590293]: VoodooUARTController::UA00 Designware UART version 3.14
Feb 11 17:38:31 localhost kernel[0]: [    5.591032]: SurfaceSerialHubDriver::Got UART Controller! VoodooUARTController
Feb 11 17:38:31 localhost kernel[0]: [    5.628824]: ReleaseIDNode file: /System/Volumes/Data/SWE/macOS/BuildRoots/38cf1d983f/Library/Caches/com.apple.xbs/Sources/IONVMeFamily/IONVMeFamily-557.120.1/Common/IONVMeController.cpp VoodooUARTController::UA00 Warning: baudrate should be 4000000, 3000000

There's a baudrate warning at the end of the IONVMeController.cpp line...

@Xiashangning
Copy link
Owner

@therealjbenam So do you see the battery status in Big Sur? The warning can be ignored.

@Xiashangning
Copy link
Owner

The last build suddenly stopped working after the restart

As you can see from the log, that is because UART driver spends too much time starting. There is nothing to do with Kext cache

@Xiashangning
Copy link
Owner

BigSurface.kext.zip
Try this one

@fenglinnet
Copy link

The battery icon is not displayed when log in, but it will be displayed after a while
uart.log
sserial.log

@fenglinnet
Copy link

The battery was lost after the restart

uart.log
sserial.log

@Xiashangning
Copy link
Owner

Xiashangning commented May 23, 2022

Can you please boot to windows, wait for a while then clear NVRAM and boot to macOS to get the log again ?
I don't understand why there are so many transmission errors.

@fenglinnet
Copy link

I have reset NVRAM and it still has a lot of output

uart.log
sserial.log

@Xiashangning
Copy link
Owner

BigSurface.kext.zip
Same

@fenglinnet
Copy link

Sorry for the late response.Replace the last build, it not working
sudo dmesg |grep "SurfaceSerial"

[    5.108510]: SurfaceSerialHubDriver::Found valid UART bus and GPIO interrupt!
[    5.112800]: SurfaceSerialHubDriver::Got GPIO Controller! VoodooGPIOSunrisePointLP
[    7.114355]: SurfaceSerialHubDriver::Got UART Controller! VoodooUARTController
[    7.215425]: SurfaceSerialHubDriver::Surface Serial Hub found!
[    8.217889]: SurfaceSerialHubDriver::SAM version 182.2304.139
[    8.718970]: SurfaceSerialHubDriver::Timeout waiting for response
[    8.718978]: SurfaceSerialHubDriver::Droping waiting request anyway

sudo dmesg |grep "UART"

[    5.108510]: SurfaceSerialHubDriver::Found valid UART bus and GPIO interrupt!
[    7.006280]: VoodooUARTController::UA00 device id: 9d27
[    7.006529]: VoodooUARTController::UA00 interrupt pin: 1
[    7.006539]: VoodooUARTController::UA00 interrupt line: 255
[    7.006567]: VoodooUARTController::UA00 Designware UART version 3.14
[    7.006601]: VoodooUARTController::UA00 Too bad that we can only use timer
[    7.114355]: SurfaceSerialHubDriver::Got UART Controller! VoodooUARTController
**** [IOBluetoothHostControllerUARTTransport][init] -- entering ****
[   31.201017]: **** [IOBluetoothHostControllerUARTTransport][init] -- exiting -- success ****
**** [IOBluetoothHostControllerUARTTransport][start] -- entering ****
[   31.230440]: **** [IOBluetoothHostControllerUARTTransport][start] -- exiting -- success ****

@Xiashangning
Copy link
Owner

BigSurface.kext.zip
same

@fenglinnet
Copy link

still not working

sudo dmesg |grep "SurfaceSerial"

[    1.560485]: SurfaceSerialHubDriver::Found valid UART bus and GPIO interrupt!
[    1.560496]: SurfaceSerialHubDriver::Got GPIO Controller! VoodooGPIOSunrisePointLP
[    1.665204]: SurfaceSerialHubDriver::Got UART Controller! VoodooUARTController
[    1.766281]: SurfaceSerialHubDriver::Surface Serial Hub found!
[    2.769487]: SurfaceSerialHubDriver::SAM version 182.2304.139
[    3.269541]: SurfaceSerialHubDriver::Timeout waiting for response
[    3.269556]: SurfaceSerialHubDriver::Droping waiting request anyway
[    3.269564]: SurfaceSerialHubDriver::Unexpected response from D0-entry notification

sudo dmesg |grep "UART"

[    1.560485]: SurfaceSerialHubDriver::Found valid UART bus and GPIO interrupt!
[    1.664168]: VoodooUARTController::UA00 device id: 9d27
[    1.664335]: VoodooUARTController::UA00 Designware UART version 3.14
[    1.665204]: SurfaceSerialHubDriver::Got UART Controller! VoodooUARTController
[    1.766441]: VoodooUARTController::UA00 Too bad that we can only use timer
**** [IOBluetoothHostControllerUARTTransport][init] -- entering ****
[   15.341144]: **** [IOBluetoothHostControllerUARTTransport][init] -- exiting -- success ****
**** [IOBluetoothHostControllerUARTTransport][start] -- entering ****
[   15.347408]: **** [IOBluetoothHostControllerUARTTransport][start] -- exiting -- success ****
[ 2796.003072]: VoodooUARTController::UA00 Prepare to sleep
[ 2796.003080]: VoodooUARTController::UA00 Going to sleep
[ 2796.954030]: VoodooUARTController::UA00 Too bad that we can only use timer
[ 2797.954922]: VoodooUARTController::UA00 Woke up
[ 2845.340268]: VoodooUARTController::UA00 Prepare to sleep
[ 2845.341058]: VoodooUARTController::UA00 Going to sleep
[ 2845.506570]: VoodooUARTController::UA00 Too bad that we can only use timer
[ 2846.508884]: VoodooUARTController::UA00 Woke up
[ 2893.488459]: VoodooUARTController::UA00 Prepare to sleep
[ 2893.488473]: VoodooUARTController::UA00 Going to sleep
[ 2893.650968]: VoodooUARTController::UA00 Too bad that we can only use timer

@Xiashangning
Copy link
Owner

@fenglinnet Sorry for the delay, I was busy these days
I don't really understand why it behaves so worriedly....
With no delay there are a lot of errors, with 100ms delay as you can see the first request (version) completes without any error, but the second request (d0-entry) fails...
Try this three, same as before
BigSurface no delay.zip
BigSurface delay 50ms.zip
BigSurface delay 100ms.zip

@fenglinnet
Copy link

BigSurface.kext.zip Try this one

I've tried all builds and the output is the same. Also, I found that all builds after the above version didn't work.

sudo dmesg |grep "SurfaceSerial"

[    1.452058]: SurfaceSerialHubDriver::Found valid UART bus and GPIO interrupt!
[    1.456498]: SurfaceSerialHubDriver::Got GPIO Controller! VoodooGPIOSunrisePointLP
[    1.531711]: SurfaceSerialHubDriver::Got UART Controller! VoodooUARTController
[    1.632738]: SurfaceSerialHubDriver::Surface Serial Hub found!
[    1.736469]: SurfaceSerialHubDriver::SAM version 182.2304.139
[    2.237531]: SurfaceSerialHubDriver::Timeout waiting for response
[    2.237545]: SurfaceSerialHubDriver::Droping waiting request anyway
[    2.237552]: SurfaceSerialHubDriver::Unexpected response from D0-entry notification

sudo dmesg |grep "UART"

[    1.337978]: SurfaceSerialHubDriver::Found valid UART bus and GPIO interrupt!
[    1.417283]: VoodooUARTController::UA00 device id: 9d27
[    1.417536]: VoodooUARTController::UA00 Designware UART version 3.14
[    1.417562]: VoodooUARTController::UA00 Too bad that we can only use timer
[    1.420764]: SurfaceSerialHubDriver::Got UART Controller! VoodooUARTController
**** [IOBluetoothHostControllerUARTTransport][init] -- entering ****
[   14.068271]: **** [IOBluetoothHostControllerUARTTransport][init] -- exiting -- success ****
**** [IOBluetoothHostControllerUARTTransport][start] -- entering ****
[   14.315130]: **** [IOBluetoothHostControllerUARTTransport][start] -- exiting -- success ****

@Xiashangning
Copy link
Owner

BigSurface.kext.zip

@Xiashangning
Copy link
Owner

Please boot into Windows once, then try this build, there is no need to clear Nvram

@fenglinnet
Copy link

Go to Windows, replace the last build, reboot with MacOS, still not working

sudo dmesg |grep "SurfaceSerial"

[    1.546566]: SurfaceSerialHubDriver::Found valid UART bus and GPIO interrupt!
[    1.547166]: SurfaceSerialHubDriver::Got GPIO Controller! VoodooGPIOSunrisePointLP
[    1.651002]: SurfaceSerialHubDriver::Got UART Controller! VoodooUARTController
[    1.752029]: SurfaceSerialHubDriver::Surface Serial Hub found!
[    1.754531]: SurfaceSerialHubDriver::Warning, NAK received! Resending all pending messages!
[    1.756963]: SurfaceSerialHubDriver::SAM version 182.2304.139
[    2.258037]: SurfaceSerialHubDriver::Timeout waiting for response
[    2.258051]: SurfaceSerialHubDriver::Droping waiting request anyway
[    2.258059]: SurfaceSerialHubDriver::Unexpected response from D0-entry notification

sudo dmesg |grep "UART"

[    1.546566]: SurfaceSerialHubDriver::Found valid UART bus and GPIO interrupt!
[    1.649251]: VoodooUARTController::UA00 device id: 9d27
[    1.649744]: VoodooUARTController::UA00 Designware UART version 3.14
[    1.649772]: VoodooUARTController::UA00 Too bad that we can only use timer
[    1.651002]: SurfaceSerialHubDriver::Got UART Controller! VoodooUARTController
**** [IOBluetoothHostControllerUARTTransport][init] -- entering ****
[   17.265330]: **** [IOBluetoothHostControllerUARTTransport][init] -- exiting -- success ****
**** [IOBluetoothHostControllerUARTTransport][start] -- entering ****
[   17.270556]: **** [IOBluetoothHostControllerUARTTransport][start] -- exiting -- success ****

Go to Windows again, then go back to MacOS, still output

sudo dmesg |grep "SurfaceSerial"

[    1.584602]: SurfaceSerialHubDriver::Found valid UART bus and GPIO interrupt!
[    1.585427]: SurfaceSerialHubDriver::Got GPIO Controller! VoodooGPIOSunrisePointLP
[    1.656207]: SurfaceSerialHubDriver::Got UART Controller! VoodooUARTController
[    1.757233]: SurfaceSerialHubDriver::Surface Serial Hub found!
[    1.759732]: SurfaceSerialHubDriver::SAM version 182.2304.139
[    2.260819]: SurfaceSerialHubDriver::Timeout waiting for response
[    2.260852]: SurfaceSerialHubDriver::Droping waiting request anyway
[    2.260861]: SurfaceSerialHubDriver::Unexpected response from D0-entry notification

sudo dmesg |grep "UART"

[    1.584602]: SurfaceSerialHubDriver::Found valid UART bus and GPIO interrupt!
[    1.653439]: VoodooUARTController::UA00 device id: 9d27
[    1.654334]: VoodooUARTController::UA00 Designware UART version 3.14
[    1.654579]: VoodooUARTController::UA00 Too bad that we can only use timer
[    1.656207]: SurfaceSerialHubDriver::Got UART Controller! VoodooUARTController
**** [IOBluetoothHostControllerUARTTransport][init] -- entering ****
[   15.977739]: **** [IOBluetoothHostControllerUARTTransport][init] -- exiting -- success ****
**** [IOBluetoothHostControllerUARTTransport][start] -- entering ****
[   15.983917]: **** [IOBluetoothHostControllerUARTTransport][start] -- exiting -- success ****

@Xiashangning
Copy link
Owner

Emm, I have rechecked the output that worked before and I have found the issue...
BigSurface.kext.zip
This one will work, definitely.

@fenglinnet
Copy link

It's working again! The output is as follows
sserial.log
uart.log

@Xiashangning
Copy link
Owner

Can you also please send me sudo dmesg | grep SurfaceBattery ?

@fenglinnet
Copy link

I connected to the Surface Hub.The output is as follows
battery.log
uart.log
sserial.log

@Xiashangning
Copy link
Owner

BigSurface.kext.zip
I have delayed the battery update request, try this one to see if there is still any error
I only need sudo dmesg | grep -E "SurfaceSerial|SurfaceBattery"

@fenglinnet
Copy link

sudo dmesg | grep SurfaceBattery

[    2.005147]: SurfaceBatteryNub::Woke up
[    2.008859]: SurfaceBatteryDriver::Set performance mode to 1
[    2.008904]: SurfaceBatteryDriver::Woke up
[    2.009069]: SurfaceBatteryDriver::Plugin submitted
[    3.168682]: SurfaceBatteryDriver::Got BIX update event
[    3.322869]: SurfaceBatteryDriver::Failed to get BIX from SSH!
[   22.162990]: SurfaceBatteryDriver::Failed to get BIX from SSH!
[   22.817721]: SurfaceBatteryDriver::Failed to get BIX from SSH!
[   23.471555]: SurfaceBatteryDriver::Failed to get BIX from SSH!
[   24.125972]: SurfaceBatteryDriver::Failed to get BIX from SSH!
[   24.780665]: SurfaceBatteryDriver::Failed to get BIX from SSH!
[   25.435089]: SurfaceBatteryDriver::Failed to get BIX from SSH!

@Xiashangning
Copy link
Owner

And SurfaceSerial ?

@fenglinnet
Copy link

here
sserial.log

@Xiashangning
Copy link
Owner

BigSurface.kext.zip
And this one? I need SurfaceBattery and SurfaceSerial

@fenglinnet
Copy link

fenglinnet commented Jun 2, 2022

sudo dmesg | grep SurfaceBattery

[    1.995788]: SurfaceBatteryNub::Woke up
[    1.999375]: SurfaceBatteryDriver::Woke up
[    1.999543]: SurfaceBatteryDriver::Plugin submitted
[   32.152709]: SurfaceBatteryDriver::Failed to get BIX from SSH!
[   32.805209]: SurfaceBatteryDriver::Failed to get BIX from SSH!
[   33.457908]: SurfaceBatteryDriver::Failed to get BIX from SSH!
[  142.084751]: tcp_timers: tcp_output() returned 0 with retransmission timer disabled for 49162 > 443 in state 4, reset timer to 62216SurfaceBatteryDriver::Got BST/PSR update event
[  148.542377]: SurfaceBatteryDriver::Got BST/PSR update event

sudo dmesg | grep SurfaceSerial
sserial.log

@Xiashangning
Copy link
Owner

Ok, so it has much fewer errors than before. A delay of 30 seconds when booting is the maximum amount of time that I am comfortable with.
You can continue to use this build until I release a new version of BigSurface
BTW, if you run into any problem, please report to me

@fenglinnet
Copy link

Thank you very much! I can safely leave the power supply.

谢谢!

@Xiashangning
Copy link
Owner

不客气 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants