Toybrick

RK3588 BSP 编译问题:ethernet@fe1b0000 Waiting for PHY auto negotiation ...

wangyb@zhejiang

注册会员

积分
76
楼主
发表于 2022-11-24 15:41:30    查看: 5900|回复: 4 | [复制链接]    打印 | 只看该作者
我根据官方提供的BSP,按照Wiki教程编译,从SecureCRT 看到:ethernet@fe1b0000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
我该怎么处理?
这是我从log中复制的内容

U-Boot 2017.09 (Nov 23 2022 - 13:16:00 +0800)

Model: Rockchip RK3588 Evaluation Board
PreSerial: 2, raw, 0xfeb50000
DRAM:  7.7 GiB
Sysmem: init
Relocation Offset: edb52000
Relocation fdt: eb9fa168 - eb9fece0
CR: M/C/I
Using default environment

mmc@fe2c0000: 1, mmc@fe2e0000: 0
Bootdev(atags): mmc 0
MMC0: HS200, 200Mhz
PartType: EFI
DM: v2
No misc partition
boot mode: normal
FIT: No boot partition
157197 bytes read in 6 ms (25 MiB/s)
DTB(Distro): /extlinux/toybrick.dtb
Pre-reloc: vcc_mipicsi1
I2c0 speed: 100000Hz
vsel-gpios- not found! Error: -2
en-gpios- not found! Error: -2
vdd_cpu_big0_s0 800000 uV
vsel-gpios- not found! Error: -2
en-gpios- not found! Error: -2
vdd_cpu_big1_s0 800000 uV
I2c2 speed: 400000Hz
vsel-gpios- not found! Error: -2
en-gpios- not found! Error: -2
vdd_npu_s0 800000 uV
spi2: RK806: 2
vdd_gpu_s0 750000 uV
vdd_cpu_lit_s0 750000 uV
vdd_vdenc_s0 init 750000 uV
Model: Rockchip RK3588 TOYBRICK X10 Board
Load SnMacAc from vendor: sn TC050A462001CA, mac 10dcb690aba4
optee api revision: 2.0
TEEC: Waring: Could not find security partition
I/TC: RPMB: Using generated key
Load SnMacAc from rpmb: sn TC050A462001CA, mac 10dcb690aba4
Toybrick check SnMacAc OK, sn TC050A462001CA
CLK: (uboot. arm: enter 1200000 KHz, init 1200000 KHz, kernel 0N/A)
  b0pll 1200000 KHz
  b1pll 1200000 KHz
  lpll 1200000 KHz
  v0pll 24000 KHz
  aupll 786215 KHz
  cpll 1500000 KHz
  gpll 1188000 KHz
  npll 850000 KHz
  ppll 100000 KHz
  aclk_center_root 702000 KHz
  pclk_center_root 100000 KHz
  hclk_center_root 396000 KHz
  aclk_center_low_root 500000 KHz
  aclk_top_root 750000 KHz
  pclk_top_root 100000 KHz
  aclk_low_top_root 396000 KHz
No misc partition
Net:   eth0: ethernet@fe1b0000
Hit key to stop autoboot('CTRL+C'):  0
Could not find misc partition
ANDROID: reboot reason: "(none)"
Not AVB images, AVB skip
android_image_load_by_partname: Can't find part: boot
Android image load failed
Android boot failed, error -1.
## Booting FIT Image FIT: No boot partition
FIT: No fit blob
FIT: No FIT image
Unknown command 'bootrkp' - try 'help'
MMC: no card present
mmc_init: -123, time 0
switch to partitions #0, OK
mmc0(part 0) is current device
Scanning mmc 0:4...
Found /extlinux/extlinux.conf
Retrieving file: /extlinux/extlinux.conf
224 bytes read in 5 ms (43 KiB/s)
1:      rockchip-kernel-5.10
Retrieving file: /initrd.img
fs_devread read outside partition 5637676960
Skipping rockchip-kernel-5.10 for failure retrieving initrd
SCRIPT FAILED: continuing...
starting USB...
Bus usb@fc000000: usb maximum-speed not found
Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.10
Bus usb@fc800000: USB EHCI 1.00
Bus usb@fc840000: USB OHCI 1.0
Bus usb@fc880000: USB EHCI 1.00
Bus usb@fc8c0000: USB OHCI 1.0
Bus usb@fc400000: usb maximum-speed not found
Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.10
scanning bus usb@fc000000 for devices... 1 USB Device(s) found
scanning bus usb@fc800000 for devices... 1 USB Device(s) found
scanning bus usb@fc840000 for devices... 2 USB Device(s) found
scanning bus usb@fc880000 for devices... 1 USB Device(s) found
scanning bus usb@fc8c0000 for devices... 2 USB Device(s) found
scanning bus usb@fc400000 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

Device 0: unknown device
ethernet@fe1b0000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
phy_startup() failed: -110FAILED: -110missing environment variable: pxeuuid
Retrieving file: /extlinux/pxelinux.cfg/01-10-dc-b6-90-ab-a4
ethernet@fe1b0000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
phy_startup() failed: -110FAILED: -110Retrieving file: /extlinux/pxelinux.cfg/00000000
ethernet@fe1b0000 Waiting for PHY auto negotiation to complete....user interrupt!
phy_startup() failed: -4FAILED: -4Retrieving file: /extlinux/pxelinux.cfg/0000000
ethernet@fe1b0000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
phy_startup() failed: -110FAILED: -110Retrieving file: /extlinux/pxelinux.cfg/000000
ethernet@fe1b0000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
phy_startup() failed: -110FAILED: -110Retrieving file: /extlinux/pxelinux.cfg/00000
ethernet@fe1b0000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
phy_startup() failed: -110FAILED: -110Retrieving file: /extlinux/pxelinux.cfg/0000
ethernet@fe1b0000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
phy_startup() failed: -110FAILED: -110Retrieving file: /extlinux/pxelinux.cfg/000
ethernet@fe1b0000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
phy_startup() failed: -110FAILED: -110Retrieving file: /extlinux/pxelinux.cfg/00
ethernet@fe1b0000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
phy_startup() failed: -110FAILED: -110Retrieving file: /extlinux/pxelinux.cfg/0
ethernet@fe1b0000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
phy_startup() failed: -110FAILED: -110Retrieving file: /extlinux/pxelinux.cfg/default-arm-rockchip
ethernet@fe1b0000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
phy_startup() failed: -110FAILED: -110Retrieving file: /extlinux/pxelinux.cfg/default-arm
ethernet@fe1b0000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
phy_startup() failed: -110FAILED: -110Retrieving file: /extlinux/pxelinux.cfg/default
ethernet@fe1b0000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
phy_startup() failed: -110FAILED: -110Config file not found

回复

使用道具 举报

wangyb@zhejiang

注册会员

积分
76
沙发
 楼主| 发表于 2022-11-29 19:07:33 | 只看该作者
我先排除下问题,我只更新我编译的uboot,是可以启动内核的;这么说,我编译的内核有问题。感觉BSP中的内核有问题。
U-Boot 2017.09 (Nov 28 2022 - 19:30:28 +0800)

Model: Rockchip RK3588 Evaluation Board
PreSerial: 2, raw, 0xfeb50000
DRAM:  7.7 GiB
Sysmem: init
Relocation Offset: edb52000
Relocation fdt: eb9fa168 - eb9fece0
CR: M/C/I
Using default environment

mmc@fe2c0000: 1, mmc@fe2e0000: 0
Bootdev(atags): mmc 0
MMC0: HS200, 200Mhz
PartType: EFI
DM: v2
boot mode: None
FIT: No boot partition
162338 bytes read in 5 ms (31 MiB/s)
DTB(Distro): /extlinux/toybrick.dtb
Pre-reloc: vcc_mipicsi1
I2c0 speed: 100000Hz
vsel-gpios- not found! Error: -2
en-gpios- not found! Error: -2
vdd_cpu_big0_s0 800000 uV
vsel-gpios- not found! Error: -2
en-gpios- not found! Error: -2
vdd_cpu_big1_s0 800000 uV
I2c2 speed: 400000Hz
vsel-gpios- not found! Error: -2
en-gpios- not found! Error: -2
vdd_npu_s0 800000 uV
spi2: RK806: 2
vdd_gpu_s0 750000 uV
vdd_cpu_lit_s0 750000 uV
vdd_log_s0 750000 uV
vdd_vdenc_s0 init 750000 uV
vdd_ddr_s0 850000 uV
Model: Rockchip RK3588 TOYBRICK X10 Board
Load SnMacAc from vendor: sn TC050A462001CA, mac 10dcb690aba4
optee api revision: 2.0
TEEC: Waring: Could not find security partition
I/TC: RPMB: Using generated key
Load SnMacAc from rpmb: sn TC050A462001CA, mac 10dcb690aba4
Toybrick check SnMacAc OK, sn TC050A462001CA
CLK: (uboot. arm: enter 1200000 KHz, init 1200000 KHz, kernel 0N/A)
  b0pll 1200000 KHz
  b1pll 1200000 KHz
  lpll 1200000 KHz
  v0pll 24000 KHz
  aupll 786215 KHz
  cpll 1500000 KHz
  gpll 1188000 KHz
  npll 850000 KHz
  ppll 1100000 KHz
  aclk_center_root 702000 KHz
  pclk_center_root 100000 KHz
  hclk_center_root 396000 KHz
  aclk_center_low_root 500000 KHz
  aclk_top_root 750000 KHz
  pclk_top_root 100000 KHz
  aclk_low_top_root 396000 KHz
Net:   eth0: ethernet@fe1b0000
Hit key to stop autoboot('CTRL+C'):  0
ANDROID: reboot reason: "(none)"
Not AVB images, AVB skip
android_image_load_by_partname: Can't find part: boot
Android image load failed
Android boot failed, error -1.
## Booting FIT Image FIT: No boot partition
FIT: No fit blob
FIT: No FIT image
Unknown command 'bootrkp' - try 'help'
MMC: no card present
mmc_init: -123, time 0
switch to partitions #0, OK
mmc0(part 0) is current device
Scanning mmc 0:3...
Found /extlinux/extlinux.conf
Retrieving file: /extlinux/extlinux.conf
205 bytes read in 5 ms (40 KiB/s)
1:      rockchip-kernel-5.10
Retrieving file: /extlinux/Image
31832576 bytes read in 180 ms (168.7 MiB/s)
append: earlycon=uart8250,mmio32,0xfeb50000 root=PARTUUID=614e0000-0000-4b53-8000-1d28000054a9 rw rootwait rootfstype=ext4
Retrieving file: /extlinux/toybrick.dtb
162338 bytes read in 5 ms (31 MiB/s)
Fdt Ramdisk skip relocation
## Flattened Device Tree blob at 0x0a100000
   Booting using the fdt blob at 0x0a100000
  'reserved-memory' cma: addr=10000000 size=10000000
   Using Device Tree in place at 000000000a100000, end 000000000a12aa21
Adding bank: 0x00200000 - 0x08400000 (size: 0x08200000)
Adding bank: 0x09400000 - 0xf0000000 (size: 0xe6c00000)
Adding bank: 0x100000000 - 0x200000000 (size: 0x100000000)
Total: 439.944 ms

Starting kernel ...

[    0.556081] Booting Linux on physical CPU 0x0000000000 [0x412fd050]
[    0.556107] Linux version 5.10.66 (toybrick@toybrick) (Android (7284624, based on r416183b) clang version 12.0.5 (https://android.googlesource.com/toolchain/llvm-project c935d99d7cf2016289302412d708641d52d2f7ee), LLD 12.0.5 (/buildbot/src/android/llvm-toolchain/out/llvm-project/lld c935d99d7cf2016289302412d708641d52d2f7ee)) #2 SMP Thu Jun 30 05:42:35 EDT 2022
[    0.566095] Machine model: Rockchip RK3588 TOYBRICK X10 Board
[    0.566125] earlycon: uart8250 at MMIO32 0x00000000feb50000 (options '')
[    0.570743] printk: bootconsole [uart8250] enabled
回复

使用道具 举报

wangyb@zhejiang

注册会员

积分
76
板凳
 楼主| 发表于 2022-11-30 17:12:05 | 只看该作者
对比下能启动内核和不能启动内核的log:
1、不能启动内核:
1:      rockchip-kernel-5.10
Retrieving file: /initrd.img
fs_devread read outside partition 5637676960
Skipping rockchip-kernel-5.10 for failure retrieving initrd
SCRIPT FAILED: continuing...

2、能启动内核的:
1:      rockchip-kernel-5.10
Retrieving file: /extlinux/Image
31832576 bytes read in 180 ms (168.7 MiB/s)
append: earlycon=uart8250,mmio32,0xfeb50000 root=PARTUUID=614e0000-0000-4b53-8000-1d28000054a9 rw rootwait rootfstype=ext4
Retrieving file: /extlinux/toybrick.dtb
162338 bytes read in 5 ms (31 MiB/s)
Fdt Ramdisk skip relocation

:我感觉应该是boot_linux 的问题;
回复

使用道具 举报

wangyb@zhejiang

注册会员

积分
76
地板
 楼主| 发表于 2022-12-1 18:28:15 | 只看该作者
问题解决了,烧录时只要按照如下的界面进行烧录,rk3588 就能起来;
在烧录界面将misc 和 recovery 勾掉就可以啦;
回复

使用道具 举报

wangyb@zhejiang

注册会员

积分
76
5#
 楼主| 发表于 2022-12-1 18:29:39 | 只看该作者
问题解决了,是不是可以让我吐槽下官方做的教程不是特别完善,回复问题很慢这个问题。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


快速回复 返回顶部 返回列表