Skip to content

init_uart_clock #4

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

Closed
Cheong2K opened this issue Aug 18, 2016 · 10 comments
Closed

init_uart_clock #4

Cheong2K opened this issue Aug 18, 2016 · 10 comments

Comments

@Cheong2K
Copy link
Contributor

The default clock for UART0 is 3MHz but we need 48MHz to work for the Bluetooth as Pi3 is.
Please also read this:
raspberrypi/linux#1601

@Cheong2K
Copy link
Contributor Author

init_uart_clock will no longer required for the Pi Zero to set the UART clock to 48MHz in the next release of Raspbian distro.

raspberrypi/firmware#643

@rpzl
Copy link

rpzl commented Aug 25, 2016

One comment on this:

I had the IoT working with the clock set at 48Mhz (checked with systemctl status hciuart.service) and then i performed a rpi-update as per issue #643. After the succesful firmware update the bluetooth does not work with or without the clock speed at 48MHz

Also when it was working the bluetooth icon does not appear on the screen but i was able to search for the Gamepad provided with "bluetoothctl", but was not able to connect with a "blueZ" error

@Cheong2K
Copy link
Contributor Author

Did you update the EEPROM to v0.3 yet?

@rpzl
Copy link

rpzl commented Aug 25, 2016

Yeap. Updated to EEPROM to 0.3 and then tried the 48 MHz memory clock -> working
rpi-update and 48MHz clock -> NOT Working
rpi-update removed 48MHz clock -> NOT Working

All tested last night after i received the IoT.

I will try and take some screenshots and send later when i get home

@Cheong2K
Copy link
Contributor Author

Cheong2K commented Aug 25, 2016

$ dmesg | grep bcm2708.uart

You will see bcm2708.uart_clock=48000000

@Cheong2K
Copy link
Contributor Author

$ cat /proc/device-tree/hat/product

You will see IoT pHAT w/eep_v0.3

@rpzl
Copy link

rpzl commented Aug 25, 2016

will send screenshots later today.
Thank you for the fast replies :)

@rpzl
Copy link

rpzl commented Aug 25, 2016

I first upgraded the EEPROM, then made an rpi-update and then followed with an apt-get upgrade.
The apt-get upgrade is what corrected the errors i was having above.

Thank you @Cheong2K

@Cheong2K Cheong2K reopened this Sep 5, 2016
@Cheong2K
Copy link
Contributor Author

Cheong2K commented Sep 5, 2016

Tested again, after apt-get upgrade, it will change the UART back to 3 MHz.

@Cheong2K
Copy link
Contributor Author

Fixed in latest version.

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

2 participants