OK8MP 开发板wifi连接失败和ssh无法登录
Linux OK8MP 5.4.70-2.3.0-00010-gdc960964111c #1 SMP PREEMPT Thu Jun 23 02:31:16 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux问题一:请问wifi 连接失败,大概是哪里的问题?(用户名和密码都正确)
root@OK8MP:~# fltest_wifi.sh -i mlan0 -s mwl -p 12345678
wifi mlan0
ssid mwl
pasw 12345678
waiting...
wlan: mlan0 START SCAN
try to connect again...
wlan: SCAN COMPLETED: scanned AP count=96
************************************************
connect faild,please check the passward and ssid
root@OK8MP:~# fltest_wifi.sh -i mlan0 -s mwl -p 12345678
wifi mlan0
ssid mwl
pasw 12345678
waiting...
wlan: mlan0 START SCAN
try to connect again...
wlan: SCAN COMPLETED: scanned AP count=102
wlan: Connected to bssid c6:XX:XX:XX:40:e4 successfully
************************************************
connect faild,please check the passward and ssid
root@OK8MP:~# wlan: Received disassociation request on mlan0, reason: 3
wlan: REASON: (Deauth) Sending STA is leaving (or has left) IBSS or ESS
问题二:ssh登录失败,报错如下
Unable to negotiate with 192.168.0.232 port 22: no matching host key type found. Their offer: ssh-rsa
1:您那边是连接的手机热点还是什么,苹果的热点是连接不上的。
2:您连接的目标机是window还是虚拟机,有没有开启ssh服务或者关闭防火墙, 1.用的是苹果的热点,多试几次可以连上。
2.用的是linux主机,可以ssh其他的板卡,不知道是什么原因。
我按照文档重新烧写系统:
1.使用imx-boot_4G.bin
2.系统使用OK8MP-linux-sdk/images的rootfs.sdcard
3.执行如下命令,烧写成功
sudo uuu -b emmc_all imx-boot_4G.bin rootfs.sdcard
uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.4.139-0-g1a8f760
Success 1 Failure 0
3:2 1/ 1 [=================100%=================] oot_4G.bin
3:41 8/ 8 FB: done
4.无法启动linux kernel
日志如下:
U-Boot 2020.04-00016-gc934c03999 (Apr 10 2023 - 05:59:11 +0000)
CPU: i.MX8MP rev1.1 1600 MHz (running at 1200 MHz)
CPU: Industrial temperature grade (-40C to 105C) at 45C
Reset cause: POR
Model: Forlinx OK8MPlus LPDDR4 EVK board
DRAM:4 GiB
MMC: FSL_SDHC: 1, FSL_SDHC: 2
try kernel dtb
Error binding driver 'gpio_led': -22
Some drivers failed to bind
MMC: FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
lvds0_panel enable
mipi_panel_uboot enable
eth0 enable
eth1 enable
Loading Environment from MMC... *** Warning - bad CRC, using default environmet
video link is full
[*]-Video Link 0 (1024 x 600)
lcd-controller@32e80000, video
mipi_dsi@32e60000, video_bridge
mipi_panel_uboot, panel
[*]-Video Link 1 (1280 x 800)
lcd-controller@32e90000, video
ldb@32ec005c, video_bridge
lvds0_panel, panel
[ ]-Video Link 2
lcd-controller@32e90000, video
ldb@32ec005c, video_bridge
In: serial
Out: serial
Err: serial
BuildInfo:
- ATF f1d7187
- U-Boot 2020.04-00016-gc934c03999
switch to partitions #0, OK
mmc2(part 0) is current device
secure check passed
wait_for_sr_state: Arbitration lost sr=33 cr=98 state=202
wait_for_sr_state: failed sr=23 cr=88 state=2000
i2c_imx_stop:trigger stop failed
wait_for_sr_state: failed sr=23 cr=88 state=2000
i2c_imx_stop:trigger stop failed
flash target is MMC:2
Net: config yt8521
eth0: ethernet@30be0000
Fastboot: Normal
Normal Boot
Autoboot in 1 seconds
switch to partitions #0, OK
mmc2(part 0) is current device
Booting from net ...
ethernet@30be0000 Waiting for PHY auto negotiation to complete... done
BOOTP broadcast 1
BOOTP broadcast 2
BOOTP broadcast 3
BOOTP broadcast 4
BOOTP broadcast 5
BOOTP broadcast 6
BOOTP broadcast 7
BOOTP broadcast 8
BOOTP broadcast 9
BOOTP broadcast 10
w_y_y 发表于 2023-8-10 08:53
1:您那边是连接的手机热点还是什么,苹果的热点是连接不上的。
2:您连接的目标机是window还是虚拟机,有 ...
forlinx=> run loadimage
forlinx=> booti 0x43800000 0x43000000
Bad Linux ARM64 Image magic!
这是没烧写成功吗? mrain 发表于 2023-8-11 12:06
forlinx=> run loadimage
forlinx=> booti 0x43800000 0x43000000
Bad Linux ARM64 Image magic!
您那边有更改过设备树吗?看错误是找不到这个image,您那边尝试在window下烧写看能起到吗?ssh无法连接,您那边板子ip和linux主机ip是同一个网段下吗? 自问自答吧。
1.对于烧写后无法启动的问题:查询log发现编译内核失败了(用的官方的编译环境:L),用aarch64-linux-gnu- 交叉编译内核或者使用官方编译好的镜像,然后修改一下build.sh,生成的系统可以启动。但是找不到mlan0了,后边再搞吧
2.对于ssh无法登录开发板的问题:ssh降低版本后可以登录 w_y_y 发表于 2023-8-11 13:57
您那边有更改过设备树吗?看错误是找不到这个image,您那边尝试在window下烧写看能起到吗?ssh无法连接, ...
问题找到了,多谢!
页:
[1]