The purpose of this gist is to give to tips for using Ubuntu 20.04 () 64bit on Raspberry Pi 4.
As of today (July 22nd 2020), the latest kernel available in Focal apt is 5.4.0-1013. Unfortunately, that kernel lacks a clock required by the v3d module.
| """Provides a rule that outputs a monolithic static library.""" | |
| load("@bazel_tools//tools/cpp:toolchain_utils.bzl", "find_cpp_toolchain") | |
| TOOLS_CPP_REPO = "@bazel_tools" | |
| def _cc_static_library_impl(ctx): | |
| output_lib = ctx.actions.declare_file("{}.a".format(ctx.attr.name)) | |
| output_flags = ctx.actions.declare_file("{}.link".format(ctx.attr.name)) |
The purpose of this gist is to give to tips for using Ubuntu 20.04 () 64bit on Raspberry Pi 4.
As of today (July 22nd 2020), the latest kernel available in Focal apt is 5.4.0-1013. Unfortunately, that kernel lacks a clock required by the v3d module.
It seems that numerous GNU/Linux users (including myself) have been having issues with the system randomly "freezing" during light usage. From journalctl output and anecdotal accounts, it is speculated that the AMD Ryzen CPUs do not support other C-states for power management very well (at least on GNU/Linux distributions), and the freezing may be resolved by limiting the C-state of the CPU.
Limiting the C-state of the CPU can be done through the addition of the following kernel boot parameter.
processor.max_cstate=1
| # Located in Lib/collections/__init__.py | |
| ################################################################################ | |
| ### OrderedDict | |
| ################################################################################ | |
| class _OrderedDictKeysView(KeysView): | |
| def __reversed__(self): | |
| yield from reversed(self._mapping) |
To limit a CPU to a certain C-state, you can pass the processor.max_cstate=X option in the kernel line of /boot/grub/grub.conf.
Here we limit the system to only C-State 1:
kernel /vmlinuz-2.6.18-371.1.2.el5 ... processor.max_cstate=1
On some systems, the kernel can override the BIOS setting, and the parameter intel_idle.max_cstate=0 may be required to ensure sleep states are not entered:
std::set phoenix;
phoenix.key_comp();| // @license http://opensource.org/licenses/MIT | |
| // copyright Paul Irish 2015 | |
| // Date.now() is supported everywhere except IE8. For IE8 we use the Date.now polyfill | |
| // github.com/Financial-Times/polyfill-service/blob/master/polyfills/Date.now/polyfill.js | |
| // as Safari 6 doesn't have support for NavigationTiming, we use a Date.now() timestamp for relative values | |
| // if you want values similar to what you'd get with real perf.now, place this towards the head of the page | |
| // but in reality, you're just getting the delta between now() calls, so it's not terribly important where it's placed |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"