@happyday
这个文档已经写的很清楚了,SPI的DMA部分跟传输的字节长度有关系的,单次传输64字节以上的数据就会开启DMA传输。linux标准的SPI驱动框架,不知道你是要做设备驱动还是应用层直接访问?
Posts made by george
-
RE: SPI
-
Upgrade CM5's miniloader and uboot using the dd command
-
When the coolpi-kernel is synchronized to the latest compiled and updated kernel, the system will display a device node of /dev/mtdblock0.
-
Synchronize the coolpi-loader code to the latest version, switch to the develop branch, compile and generate cm5-notebook-nor-upgrade. img
-
Use the following command to update:
sudo dd if=/**/cm5-notebook-nor-upgrade.img of=/dev/mtdblock0 bs=1k count=8192
- You can also directly use the Disk Image Writer built-in in the Ubuntu system to update
-
-
RE: After suspend scaling_max_freq set to lowest. and some perfomance tweak
@plumlis
This method has been tried before, and as you said, the actual effect can be seen in the Ubuntu system. However, if it is a system with kylin and uos, it must always run in performance mode to run smoothly. We will re evaluate whether to update to the existing kernel configuration. Thank you for your suggestion. -
RE: ES8316 Sound issues on Armbian with 6.1 Rockchip Kernel
@yusuf-tmp
The ES8316 mainline kernel does not require modifying the default headphones to produce sound output. The main difference is the DTS configuration, as shown in the following figure:@@ -1282,10 +1293,10 @@ es8316: es8316@10 { #sound-dai-cells = <0>; compatible = "everest,es8316"; reg = <0x10>; - clocks = <&cru I2S0_8CH_MCLKOUT>; + clocks = <&mclkout_i2s0>; clock-names = "mclk"; spk-con-gpio = <&gpio1 RK_PA6 GPIO_ACTIVE_HIGH>; - assigned-clocks = <&cru I2S0_8CH_MCLKOUT>; + assigned-clocks = <&mclkout_i2s0>; assigned-clock-rates = <12288000>; pinctrl-names = "default"; pinctrl-0 = <&i2s0_mclk>;
-
RE: GenBook-RK3588 Crowdfunding projects
@Rebel-Rider
Thank you for your suggestions and affirmation of Coolpi laptops. Regarding fingerprint sensors, Linux support is not perfect enough, and we will do our best to provide support. Large capacity batteries and other accessories will be sold separately in the future, mainly for older versions of machines. We will continue to improve the adapter and try to find a smaller and more convenient model. Thanks again. -
RE: GenBook-RK3588 Crowdfunding projects
@plumlis
非常感谢你的支持。团队会继续努力,希望下一代产品能够跳出传统笔记本的思维,真正做一款好用的ARM笔记本出来。 -
RE: GenBook-RK3588 Crowdfunding projects
@plumlis
非常感谢你的建议,目前一直想适配一款性价比高的2K,太难了。不是结构不行就是效果不好。4K基本放弃了。意义不是很大。而且价格太高。
目前这个电脑可以支持3屏显示,用起来挺不错的,尤其边撸代码边看视频 -
RE: GenBook-RK3588 Crowdfunding projects
- 温度达到一定的值,会自动降频,这个目前是有策略的。
- 主控有硬件的OVP保护机制,超过一定温度值会强制重启。
- PMIC电源管理超过一定温度会直接掉电。
上面三种温度控制策略,最大限度保证CPU本体安全,你可以放心大胆的玩,之前最长一次是编译chromium,连续大负荷工作2天。
-
RE: GenBook-RK3588 Crowdfunding projects
@plumlis
非常感谢你给的宝贵建议。
目前所有在使用机器的用户后面都可以通过单独模块升级和GenBook同步。这点不用担心,关于功耗的问题,这个主要看负载,实际从3588的硬件规格来看,单独一个CPU满载模式的功耗都会超过10W。笔记本类产品只能针对性的做优化,更多的是基于场景的调频策略。 -
GenBook-RK3588 Crowdfunding projects
The CM5 laptop is currently crowdfunding on the CrowdSupply platform, with a new product name called GenBook-RK3588. The following improvements will be made to the current laptop product:
- The memory has been fully upgraded to LPDDR5X for better energy efficiency.
- The capacity of the battery has increased, but the specific capacity of the structure is still in the evaluation stage.
- The module language supports TPM (Trusted Platform Module).
- The speaker effect in the audio section continues to improve and reduce background noise.
- Optimize the overall power consumption and expect longer usage time.
- The software supports the mainline kernel and is expected to be submitted in mid July.
- Improvement of various Linux distributions.
If you have any better suggestions, you can share them with us. Thank you for your support.
-
RE: Intel AX200 / 210 working on laptop?
@plumlis
The testing before AX210 was problematic. The most basic BT cannot recognize it, it seems that the firmware version of WIFI is incorrect. -
RE: Firefox deb version freezed when try to play video
@plumlis
FFmpeg can be changed to a native package. Or using the Chromium browser, the decoding issue of this player has been bothering us for a long time. Take some time later to focus on solving it. -
RE: Firefox deb version freezed when try to play video
@plumlis
You can change the EMMC label to writable1 or another name. -
RE: Firefox deb version freezed when try to play video
@plumlis
Follow the steps below to operate:
1.USB cable for TYPEC interface and X86 computer connection
2. Runsudo reboot loader
on the shell,The machine will enter loader mode, as shown in the following figure
3. Click on the tool to force entry into maskrom mode
4. Check the option to force writing by address
5. Burning, the machine will automatically restart after completion
-
RE: Firefox deb version freezed when try to play video
@plumlis
The following is what I have compiled and can be used directly.
RKDevTool_v3.13_for_window.rar -
RE: Firefox deb version freezed when try to play video
sudo ln -s /usr/bin/python3.12 /usr/bin/python
-
RE: Firefox deb version freezed when try to play video
@plumlis
Suggest updating uboot to the latest version and then trying USB BOOT. The latest development branch has been optimized for some USB drives. Of course, you can also write images to EMMC through UMS. -
RE: Firefox deb version freezed when try to play video
@plumlis
Let me briefly introduce the current situation of the NAND flash industry. The best A-class die is used as a high-capacity and high-value storage device for first tier brands such as SSDs and EMMCs. The worse one is used for second tier brands such as EMMCs and NAND FLASH, and the worse one is used for a large number of bad fast devices. The 8GB capacity can be reduced to 4G or 2G for USB drives or T cards. There is even worse junk die, which will appear on the T card that costs a few yuan on Mouduoduo. So if doing system mirroring, it is recommended to use SSD or SATA portable hard drives, as both performance and reliability are the best. -
RE: Intel AX200 / 210 working on laptop?
@plumlis
The AX200 has been tested before and can be used, but the AX210 is still not working. Waiting for subsequent kernel upgrades. The model shown in the figure has been previously verified.
-
RE: RTC battery on board?
@plumlis
The battery of the RTC connector has a spacing of 0.8mm. From the current phenomenon, it is not that the hardware RTC cannot save time, but rather that the hardware RTC time has not been synchronized with the system. So adding this battery won't make any changes. -
RE: Firefox deb version freezed when try to play video
@plumlis
The kernel version 6.1 will support it and is currently being adapted. -
RE: 多内核
@happyday
以下结果来自大模型:
在Linux中,可以通过多种方式将应用程序绑定到特定的CPU上执行,这样可以减少上下文切换,提高性能。以下是一些常用的方法:使用 taskset 命令:
taskset 命令可以用来限制一个进程只能使用指定的CPU或CPU集合。使用以下命令启动一个应用程序并将其绑定到特定的CPU:taskset -c 0,1,2 my_application
这将允许 my_application 只在CPU 0、1和2上运行。使用 nice 和 renice 命令:
nice 命令可以在启动时设置一个进程的调度优先级,而 renice 可以更改一个已经运行的进程的优先级。这不是直接绑定CPU,但可以影响进程的调度。nice -n 10 --adjustment=+5 my_application
使用 cgroups:
cgroups(控制组)是一种Linux内核特性,它可以将进程分组,并为这些组应用特定的系统资源限制。通过 cgroups,你可以将进程绑定到特定的CPU。首先,创建一个新的cgroup:
sudo cgcreate -g cpuset:/my_group
然后,添加CPU到这个cgroup:sudo echo 0-2 > /sys/fs/cgroup/cpuset/my_group/cpuset.cpus
接下来,将应用程序添加到这个cgroup:sudo cgclassify -g cpuset:my_group my_application
使用 numactl 命令:
numactl 命令用于控制NUMA(非统一内存访问)系统中的CPU和内存亲和性。它也可以用于将进程绑定到特定的CPU。numactl --physcpubind=0,1,2 my_application
使用 sched_setaffinity 系统调用:
在编程时,可以使用 sched_setaffinity 系统调用来设置进程的CPU亲和性。这需要在编写应用程序时进行设置。使用 top 或 htop 工具:
在使用 top 或 htop 时,可以通过交互式命令将进程绑定到特定的CPU。在 htop 中,可以使用 ~ 键来切换“CPU绑定”模式,然后选择CPU。编辑 /etc/security/limits.conf:
对于基于System V的进程控制,可以在 limits.conf 文件中设置CPU亲和性。请注意,绑定CPU可能会影响系统的调度器性能,并且不是所有的应用程序都会从CPU绑定中受益。在进行CPU绑定之前,应该仔细考虑应用程序的需求和系统的整体性能。
-
RE: Main Board Upgrade Availability
@anernest
I'm really sorry for not understanding. What do you need to upgrade? -
RE: Firefox deb version freezed when try to play video
@mainbord
Coolpi4b and cm5 evb currently support mainline kernels above 6.8, but laptops do not support mainline kernels due to eDP display drivers. So it will be a little later. Currently undergoing debugging. Looking forward to the next main version being released. Thank you for your support. -
RE: Firefox deb version freezed when try to play video
@plumlis
Provide a basic image, the system can start normally, WIFI is working properly, and support for GPU and VPU has not been added yet.
-
RE: Firefox deb version freezed when try to play video
@plumlis
Firefox defaults to calling ffmpeg decoding, and we have added hardware decoding support for rkmpp to the local ffmpeg. So you just need to update the ffmpeg version to the standard version published on the official website. -
RE: RTC battery on board?
@plumlis
Firstly, there is no need to add a separate RTC battery on the motherboard. RTC defaults to using the system's 38WH battery storage time.
The issue of not being able to save time is a system software issue, not an RTC hardware issue. This can be confirmed by the following command:cat /proc/driver/rtc
Regarding how to synchronize the hardware RTC time to the system, the following command can be used:
timedatectl set-local-rtc 1 --adjust-system-clock
We will try to modify and add it to the system later. Thank you for your support.