@jugg 修改4b内核配置,根据你自己的需要配置。
CONFIG_VIRTIO_NET=m
@jack_admin said in how about batocera with cool pi 4b:
Test firmware link
@Macs have you test version 36?
单独拿一个U盘,使用refuse工具,将udisk install专用目录下的镜像刷入U盘。
将做好的U盘插入4B主板USB3端口(下面一个),插上TF卡,上电开机。
如果有接HDMI显示器,可以查看安装过程(全自动安装),安装结束提示拔出U盘。
按power按键开机,启动进入安卓系统。
查看当前cpu运行频率
sudo cat /sys/bus/cpu/devices/cpu*/cpufreq/cpuinfo_cur_freq
命令设置性能模式
echo performance | sudo tee /sys/bus/cpu/devices/cpu*/cpufreq/scaling_governor
本机也可以直接编译u-boot源代码。
补充安装依赖,再更新编译脚本
sudo apt install device-tree-compiler python2
Coming soon, available for ordering
@Twsuts
重新安装一次组件,再重启
sudo apt install mesa*=23.0-develop libglx-mesa0=23.0-develop libegl-mesa0=23.0-develop libgl1-mesa-dri=23.0-develop libglapi-mesa=23.0-develop libgbm1=23.0-develop
sudo apt-mark hold mesa*=23.0-develop libglx-mesa0=23.0-develop libegl-mesa0=23.0-develop libgl1-mesa-dri=23.0-develop libglapi-mesa=23.0-develop libgbm1=23.0-develop
正常安装
Starting kernel ...
I/TC: Secondary CPU 4 initializing
I/TC: Secondary CPU 4 switching to normal world boot
I/TC: Secondary CPU 5 initializing
I/TC: Secondary CPU 5 switching to normal world boot
I/TC: Secondary CPU 6 initializing
I/TC: Secondary CPU 6 switching to normal world boot
I/TC: Secondary CPU 7 initializing
I/TC: Secondary CPU 7 switching to normal world boot
I/TC: Secondary CPU 1 initializing
I/TC: Secondary CPU 1 switching to normal world boot
I/TC: Secondary CPU 2 initializing
I/TC: Secondary CPU 2 switching to normal world boot
I/TC: Secondary CPU 3 initializing
I/TC: Secondary CPU 3 switching to normal world boot
[ 11.122038] rk-pcie fe190000.pcie: IRQ msi not found
[ 11.122053] rk-pcie fe190000.pcie: Missing *config* reg space
[ 11.122142] rk-pcie fe190000.pcie: Missing *config* reg space
[ 11.122169] rk-pcie fe190000.pcie: invalid resource
[ 11.125068] mpp-iep2 fdbb0000.iep: allocate roi buffer failed
[ 11.126208] mpp_rkvdec2 fdc38100.rkvdec-core: shared_niu_a is not found!
[ 11.126214] rkvdec2_init:1010: No niu aclk reset resource define
[ 11.126218] mpp_rkvdec2 fdc38100.rkvdec-core: shared_niu_h is not found!
[ 11.126220] rkvdec2_init:1013: No niu hclk reset resource define
[ 11.126737] mpp_rkvdec2 fdc48100.rkvdec-core: shared_niu_a is not found!
[ 11.126740] rkvdec2_init:1010: No niu aclk reset resource define
[ 11.126744] mpp_rkvdec2 fdc48100.rkvdec-core: shared_niu_h is not found!
[ 11.126747] rkvdec2_init:1013: No niu hclk reset resource define
[ 11.128444] mpp_iommu_probe:434: failed to get device node
[ 11.128448] mpp_av1dec av1d-master: failed to attach iommu
[ 11.666758] rk806 spi2.0: no sleep-setting state
[ 11.671377] rk806 spi2.0: no reset-setting pinctrl state
[ 11.676680] rk806 spi2.0: no dvs-setting pinctrl state
[ 11.889706] tinker-mcu: send_cmds: send command failed, ret = -6, retry again!
[ 11.897062] tinker-mcu: send_cmds: send command failed, ret = -6, retry again!
[ 11.904409] tinker-mcu: send_cmds: send command failed, ret = -6, retry again!
[ 11.911758] tinker-mcu: send_cmds: send command failed, ret = -6, retry again!
[ 11.919105] tinker-mcu: send_cmds: send command failed, ret = -6, retry again!
[ 11.926316] tinker-mcu: send_cmds: send command failed
[ 11.931446] tinker-mcu: tinker_mcu_probe: init_cmd_check failed, -6
[ 12.501950] tinker-ft5406: tinker_ft5406_probe: wait connected timeout
[ 12.520585] : terminal subdev does not exist
[ 12.524858] : terminal subdev does not exist
[ 12.529120] : terminal subdev does not exist
[ 12.533383] : terminal subdev does not exist
[ 12.537647] : get_remote_sensor: video pad[0] is null
[ 12.542691] : rkcif_update_sensor_info: stream[0] get remote sensor_sd failed!
[ 12.549901] : get_remote_sensor: video pad[0] is null
[ 12.554943] : rkcif_update_sensor_info: stream[0] get remote sensor_sd failed!
[ 12.562160] : get_remote_sensor: video pad[0] is null
[ 12.567204] : rkcif_update_sensor_info: stream[0] get remote sensor_sd failed!
[ 12.574416] : get_remote_sensor: video pad[0] is null
[ 12.579458] : rkcif_update_sensor_info: stream[0] get remote sensor_sd failed!
[ 12.587879] rockchip-mipi-csi2: Async registered subdev
[ 12.657092] arm-scmi firmware:scmi: Failed. SCMI protocol 17 not active.
[ 12.667892] debugfs: File 'Capture' in directory 'dapm' already present!
[ 12.690795] debugfs: Directory 'fb000000.gpu-mali' with parent 'vdd_gpu_s0' already present!
[ 13.023688] debugfs: File 'Left Hp mixer' in directory 'dapm' already present!
[ 13.030902] debugfs: File 'Right Hp mixer' in directory 'dapm' already present!
[ 13.038198] debugfs: File 'HPCP L' in directory 'dapm' already present!
[ 13.044797] debugfs: File 'HPCP R' in directory 'dapm' already present!
[ 13.051402] debugfs: File 'HPVOL L' in directory 'dapm' already present!
[ 13.058088] debugfs: File 'HPVOL R' in directory 'dapm' already present!
[ 13.066273] ov5648 8-0036: could not get default pinstate
[ 13.071667] ov5648 8-0036: could not get sleep pinstate
[ 13.079716] ov5648 8-0036: Unexpected sensor id(000000), ret(-5)
[ 13.086769] rkcif-mipi-lvds2: rkcif_update_sensor_info: stream[0] get remote terminal sensor failed!
[ 13.095900] rkcif-mipi-lvds2: rkcif_update_sensor_info: stream[0] get remote terminal sensor failed!
[ 13.105015] rkcif-mipi-lvds2: There is not terminal subdev, not synchronized with ISP
[ 13.112896] rkcif-mipi-lvds2: rkcif_update_sensor_info: stream[0] get remote terminal sensor failed!
[ 13.113084] rockchip_headset rk-headset: Can not read property headset_gpio
[ 13.122014] rkcif-mipi-lvds2: There is not terminal subdev, not synchronized with ISP
[ 13.137989] RKNPU fdab0000.npu: can't request region for resource [mem 0xfdab0000-0xfdabffff]
[ 13.146511] RKNPU fdab0000.npu: can't request region for resource [mem 0xfdac0000-0xfdacffff]
[ 13.155020] RKNPU fdab0000.npu: can't request region for resource [mem 0xfdad0000-0xfdadffff]
[ 13.167187] debugfs: Directory 'fdab0000.npu-rknpu' with parent 'vdd_npu_s0' already present!
[ 13.198264] RKNPU fdab0000.npu: failed to find power_model node
[ 13.204174] RKNPU fdab0000.npu: RKNPU: failed to initialize power model
[ 13.210775] RKNPU fdab0000.npu: RKNPU: failed to get dynamic-coefficient
wait for device.
AT2Y1B
wait for external disk device..
Kingston
20+0 records in
20+0 records out
20971520 bytes (21 MB, 20 MiB) copied, 0.186213 s, 113 MB/s
Device contains neither a valid DOS partition table, nor Sun, SGI, OSF or GPT disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that the previous content
won't be recoverable.
The number of cylinders for this disk is set to 946944.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): Partition type
p primary partition (1-4)
e extended
Partition number (1-4): First sector (16-60604415, default 16): Using default value 16
Last sector or +size{,K,M,G,T} (16-60604415, default 60604415):
Command (m for help): Selected partition 1
Hex code (type L to list codes): Changed system type of partition 1 to b (Win95 FAT32)
Command (m for help): Partition type
p primary partition (1-4)
e extended
Partition number (1-4): First sector (1048592-60604415, default 1048592): Using default value 1048592
Last sector or +size{,K,M,G,T} (1048592-60604415, default 60604415): Using default value 60604415
Command (m for help): The partition table has been altered.
Calling ioctl() to re-read partition table
mkfs.fat 4.2 (2021-01-31)
fatlabel: warning - lowercase labels might not work properly on some systems
total 205M
-rwxr-xr-x 1 0 0 37M Jul 31 2023 Image
-rwxr-xr-x 1 0 0 176 Jun 13 2023 cmdline.txt
-rwxr-xr-x 1 0 0 68 Jul 31 2023 config.txt
drwxr-xr-x 2 0 0 4.0K Jun 19 2023 extlinux
-rwxr-xr-x 1 0 0 8.4M Jun 13 2023 initrd.img
-rwxr-xr-x 1 0 0 6.0M Jun 19 2023 logo.bmp
-rwxr-xr-x 1 0 0 6.0M Jun 19 2023 logo_kernel.bmp
-rwxr-xr-x 1 0 0 136M Jun 13 2023 modules.tar.gz
-rwxr-xr-x 1 0 0 140K Jul 31 2023 rk3588s-cp4-dsi.dtb
-rwxr-xr-x 1 0 0 140K Jul 31 2023 rk3588s-cp4-sfc.dtb
-rwxr-xr-x 1 0 0 140K Jul 31 2023 rk3588s-cp4.dtb
-rwxr-xr-x 1 0 0 13M Jul 31 2023 vmlinuz
mke2fs 1.46.5 (30-Dec-2021)
Discarding device blocks: done
Creating filesystem with 7444478 4k blocks and 1864128 inodes
Filesystem UUID: e42c8656-d1a3-40b1-85a8-2ddce3913d78
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000
Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
e2fsck 1.46.5 (30-Dec-2021)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
writable: 11/1864128 files (0.0% non-contiguous), 161057/7444478 blocks
resize2fs 1.46.5 (30-Dec-2021)
The filesystem is already 7444478 (4k) blocks long. Nothing to do!
1.6GiB 0:00:54 [29.8MiB/s] [================================> ] 99%
Complete install... please remove udisk for next booting
auto poweroff system later when you plugout udisk...
auto poweroff system later when you plugout udisk...
auto poweroff system later when you plugout udisk...
auto poweroff system later when you plugout udisk...
auto poweroff system later when you plugout udisk...
auto poweroff system later when you plugout udisk...
auto poweroff system later when you plugout udisk...
auto poweroff system later when you plugout udisk...
auto poweroff system later when you plugout udisk...
auto poweroff system later when you plugout udisk...
auto poweroff system later when you plugout udisk...
auto poweroff system later when you plugout udisk...
auto poweroff system later when you plugout udisk...
auto poweroff system later when you plugout udisk...
auto poweroff system later when you plugout udisk...
auto poweroff system later when you plugout udisk...
auto poweroff system later when you plugout udisk...
auto poweroff system later when you plugout udisk...
auto poweroff system later when you plugout udisk...
auto poweroff system later when you plugout udisk...
auto poweroff system later when you plugout udisk...
auto poweroff system later when you plugout udisk...
auto poweroff system later when you plugout udisk...
auto poweroff system later when you plugout udisk...
auto poweroff system later when you plugout udisk...
auto poweroff system later when you plugout udisk...
auto poweroff system later when you plugout udisk...
auto poweroff system later when you plugout udisk...
auto poweroff system later when you plugout udisk...
auto poweroff system later when you plugout udisk...
auto poweroff system later when you plugout udisk...
auto poweroff system later when you plugout udisk...
auto poweroff system later when you plugout udisk...
auto poweroff system later when you plugout udisk...
auto poweroff system later when you plugout udisk...
auto poweroff system later when you plugout udisk...
auto poweroff system later when you plugout udisk...
auto poweroff system later when you plugout udisk...
auto poweroff system later when you plugout udisk...
auto poweroff system later when you plugout udisk...
auto poweroff system later when you plugout udisk...
auto poweroff system later when you plugout udisk...
auto poweroff system later when you plugout udisk...
auto poweroff system later when you plugout udisk...
udisk have been removed.Now poweroff system...
[ 136.856307] reboot: Power down
@jugg
https://wiki.cool-pi.com/en/home/quick_start
参考loader更新方法
U盘你格式化一次,拷贝uboot.img到U盘