按照编译指导编译出来的img,卡在开机logo处,不能启动
如题:主机16.04,按照http://wiki.t-firefly.com/zh_CN/AIO-3288J/linux_compile.html的编译步骤,编译的AIO-3288J-Buildroot 固件,烧入后,卡在开机logo处,开机的log见附件session.log.
[ 7.452994] Event handler is not created
[ 7.457452] Country code: CN (CN/38)
[ 7.462241] wl_android_wifi_on: Success
[ 7.484442] dhd_open : the lock is released.
[ 7.488710] dhd_open: Exit ret=0
wlan0: waiting for carrier
eth0: soliciting an IPv6 router
eth0: soliciting a DHCP lease
wlan0: carrier acquired
wlan0: IAID 73:77:1e:62
wlan0: adding address fe80::75aa:22ef:617b:f8ed
wlan0: soliciting an IPv6 router
wlan0: soliciting a DHCP lease
eth0: carrier lost
wlan0: probing for an IPv4LL address
wlan0: using IPv4LL address 169.254.33.69
wlan0: adding route to 169.254.0.0/16
wlan0: adding default route
forked to background, child pid 411
Starting launcher: Date: 2017-01-01 UTC
weston 3.0.0
http://wayland.freedesktop.org
Bug reports to: https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=weston&version=3.0.0
Build: unknown (not built from git or tarball)
Command line: weston --tty=2 --idle-time=0
OS: Linux, 4.4.154, #3 SMP Wed Aug 14 01:24:11 PDT 2019, armv7l
Using config file '/etc/xdg/weston/weston.ini'
Output repaint window is 15 ms maximum.
Loading module '/usr/lib/libweston-3/drm-backend.so'
Info: <======= start audio service ========>
initializing drm backend
using /dev/dri/card0
Loading module '/usr/lib/libweston-3/gl-renderer.so'
EGL client extensions: EGL_EXT_client_extensions
EGL_EXT_platform_base EGL_KHR_client_get_all_proc_addresses
EGL_KHR_platform_gbm EGL_MESA_platform_gbm
EGL_KHR_platform_wayland EGL_EXT_platform_wayland
ERROR: The DDK is not compatible with any of the Mali GPUs on the system.
The DDK was built for 0x750 r0p0 status range , but none of the GPUs matched:
/dev/mali0 detected as 0x750 r1p0 status 0
failed to initialize display
EGL error state: EGL_NOT_INITIALIZED (0x3001)
warning: either no EGL_EXT_platform_base support or specific platform support; falling back to eglGetDisplay.
failed to create display
ERROR: The DDK is not compatible with any of the Mali GPUs on the system.
The DDK was built for 0x750 r0p0 status range , but none of the GPUs matched:
/dev/mali0 detected as 0x750 r1p0 status 0
failed to initialize display
EGL error state: EGL_NOT_INITIALIZED (0x3001)
failed to initialize egl
fatal: failed to create compositor backend
ssh-keygen: generating new host keys: RSA Failed to create display (No such file or directory)
DSA ECDSA ED25519
Starting sshd: OK
[ 20.286482] file system registered
install_listener('tcp:5037','*smartsocket*')
[ 20.309497] read descriptors
[ 20.316043] read strings
sh: write error: No such device
wpa_supplicant.conf init
wpa_supplicant.conf init
load wifi modules: Rockchip Linux WifiBt init
BT TTY: /dev/ttyS0
Wifi driver is ready for now...
wifibt_load_driver
uevent path:/sys/bus/sdio/devices/./uevent
uevent path:/sys/bus/sdio/devices/../uevent
uevent path:/sys/bus/sdio/devices/mmc1:0001:1/uevent
line: DRIVER=bcmsdh_sdmmc
, prefix: SDIO_ID=.
line: SDIO_CLASS=00
, prefix: SDIO_ID=.
line: SDIO_ID=02D0:A9BF
, prefix: SDIO_ID=.
pid:vid : 02d0:a9bf
found device pid:vid : 02d0:a9bf
wifi detectd return ret:0
SDIO WIFI identify sucess
check_wifi_chip_type_string: AP6255
/data/wifi_chip is not exit,save wifi chip
recognized wifi chip = AP6255, save to /data/wifi_chip
wifibt_load_driver matched ko file path/system/lib/modules/bcmdhd.ko
wifibt_load_driver insmod /system/lib/modules/bcmdhd.ko
insmod: can't insert '/system/lib/modules/bcmdhd.ko': No such file or directory
wifibt_load_driver insmod /system/lib/modules/bcmdhd.ko failed
OK
/etc/init.d/S66load_wifi_modules: line 42: wl: not found
Starting dnsmasq: OK
Starting input-event-daemon: input-event-daemon: Start parsing /etc/input-event-daemon.conf...
input-event-daemon: Adding device: /dev/input/event0...
input-event-daemon: Adding device: /dev/input/event1...
input-event-daemon: Adding device: /dev/input/event2...
input-event-daemon: Adding device: /dev/input/event3...
input-event-daemon: Start listening on 4 devices...
done
[ 21.573241] : bt shut off power
[ 21.579320] : rfkill_rk_set_power: set bt wake_host pin output high!
# [ 21.642746] : ENABLE UART_RTS
[ 21.752925] : DISABLE UART_RTS
[ 21.757094] : bt turn on power
[ 22.798321] ttyS0 - failed to request DMA, use interrupt mode
bcm43xx_init
Set Controller UART speed to 1500000 bit/s
Flash firmware /etc/firmware/BCM4345C0.hcd
Set Controller UART speed to 1500000 bit/s
Device setup complete
出错原因:GPU 和 库文件不匹配。
ERROR: The DDK is not compatible with any of the Mali GPUs on the system.
The DDK was built for 0x750 r0p0 status range , but none of the GPUs matched:
/dev/mali0 detected as 0x750 r1p0 status 0
楼主可以查看一下 CPU 上的芯片信息,应该是类似 SAAKT23028W,带 ‘W’ 后缀。
启动脚本 /etc/init.d/S10libmali 会根据 GPU 链接对应库文件,但命令 `ln -s libmali-midgard-t76x-r14p0-r1p0-wayland.so libmali.so` 缺少 -f 参数导致链接没更新,而使用了默认链接,加上 -f 参数即可 `ln -sf libmali-midgard-t76x-r14p0-r1p0-wayland.so libmali.so`。
#!/bin/sh
#
# Create libmali link for rk3288....
#
case "$1" in
start)
# create libmali.so link depend on chips type in the runtime
GPU_VERSION=$(cat /sys/devices/platform/*gpu/gpuinfo)
cd /usr/lib
if [ "$GPU_VERSION" = 'Mali-T76x MP4 r1p0 0x0750' -o "$GPU_VERSION" = 'Mali-T76x 4 cores r1p0 0x0750' ];
then
#rk3288W, r1 version gpu chip
ln -s libmali-midgard-t76x-r14p0-r1p0-wayland.so libmali.so
else
#rk3288, rk3288-C, rk3288-CG
ln -s libmali-midgard-t76x-r14p0-r0p0-wayland.so libmali.so
fi
cd -
;;
stop)
printf "stop finished"
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
;;
esac
exit 0
页:
[1]