Firefly开源社区

重新编译内核无法启动

17

积分

0

威望

0

贡献

技术小白

积分
17
发表于 2020-11-25 11:10:15     
使用官方提供的Ubuntu固件,能够顺利启动,我按照教程重新编译内核后烧写zboot.img后就无法启动了,貌似是文件系统无法挂载,是编译内核需要额外配置哪些选项吗?

正常启动的日志如下
[    1.865787] dwmmc_rockchip ff490000.dwmmc: Successfully tuned phase to 83
[    1.865985] mmc1: new HS200 MMC card at address 0001
[    1.867488] mmcblk1: mmc1:0001 4FTE4R 3.64 GiB
[    1.868277] mmcblk1boot0: mmc1:0001 4FTE4R partition 1 4.00 MiB
[    1.869188] mmcblk1boot1: mmc1:0001 4FTE4R partition 2 4.00 MiB
[    1.870080] mmcblk1rpmb: mmc1:0001 4FTE4R partition 3 512 KiB
[    1.876746]  mmcblk1: p1 p2 p3 p4
[    2.130580] ret 1024
[    2.131901] ALSA device list:
[    2.131954]   #0: rockchip,rk3308b-acodec
[    2.131975]   #7: Loopback 1
[    2.137711] vendor storage:20160801 ret = 0
[    2.192947] [WLAN_RFKILL]: get_wifi_addr_vendor: rk_vendor_read wifi mac address failed (-1)
[    2.221398] EXT4-fs (mmcblk1p4): mounted filesystem with ordered data mode. Opts: (null)
[    2.221560] VFS: Mounted root (ext4 filesystem) on device 179:4.

失败启动的日志如下
[    1.771995] EXT2-fs (mmcblk1p4): error: couldn't mount because of unsupported optional features (44)
[    1.772252] List of all partitions:
[    1.772318] b300         3817472 mmcblk1  driver: mmcblk
[    1.772370]   b301            2048 mmcblk1p1 29370000-0000-4007-8000-4a0700004276
[    1.772408]   b302            2048 mmcblk1p2 c1060000-0000-446e-8000-595600004870
[    1.772446]   b303           12288 mmcblk1p3 c52d0000-0000-426f-8000-1afb00003ace
[    1.772482]   b304         3792879 mmcblk1p4 614e0000-0000-4b53-8000-1d28000054a9
[    1.772521] b360             512 mmcblk1rpmb  (driver?)
[    1.772569] b340            4096 mmcblk1boot1  (driver?)
[    1.772607] b320            4096 mmcblk1boot0  (driver?)
[    1.772632] No filesystem could mount root, tried:  ext2
[    1.772678] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,4)
[    1.779619] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.4.143 #5
[    1.780159] Hardware name: Firefly ROC-RK3308B-CC-PLUS analog mic board (DT)
回复

使用道具 举报

360

积分

0

威望

0

贡献

技术达人

Rank: 2

积分
360
发表于 2020-11-25 11:29:44     
烧个buildroot的固件,编译用的是buildroot
回复

使用道具 举报

17

积分

0

威望

0

贡献

技术小白

积分
17
发表于 2020-12-1 09:11:35     
zyk 发表于 2020-11-25 11:29
烧个buildroot的固件,编译用的是buildroot

您好,我在Ubuntu1604环境下按照教程编译
  1. ./build.sh roc-rk3308b-cc-plus_release_BoardConfig.mk
  2. ./build.sh
复制代码

得到了update.img, 可烧入后还是无法启动{:5_228:}

下面是uboot的输出

dwmmc@ff480000: 1, dwmmc@ff490000: 0
Bootdev(atags): mmc 0
MMC0: High Speed, 52Mhz
PartType: EFI
boot mode: recovery (misc)
init_resource_list: failed to get resource part, ret=-1
Failed to get kernel dtb, ret=-19
request for gpio0_a4 failed:-2
Model: Rockchip RK3308 EVB
CLK: (sync kernel. arm: enter 816000 KHz, init 816000 KHz, kernel 0N/A)
  apll 816000 KHz
  dpll 1300000 KHz
  vpll0 1177823 KHz
  vpll1 901583 KHz
  aclk_bus 185714 KHz
  hclk_bus 100000 KHz
  pclk_bus 100000 KHz
  aclk_peri 185714 KHz
  hclk_peri 100000 KHz
  pclk_peri 100000 KHz
  hclk_audio 98151 KHz
  pclk_audio 98151 KHz
Net:   No ethernet found.
Hit key to stop autoboot('CTRL+C'):  0
ANDROID: reboot reason: "recovery"
** Invalid Android Image header **
MMC: block number 0x7f765b exceeds max(0x748000)
Android image load failed
Android boot failed, error -1.
=Booting Rockchip format image=
Could not found misc partition
Card did not respond to voltage select!
mmc_init: -95, time 9
switch to partitions #0, OK
mmc0(part 0) is current device
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **

Device 0: ...nandc_flash_init enter...
unknown device
No ethernet found.
missing environment variable: pxeuuid
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default-arm-rockchip
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default-arm
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default
No ethernet found.
Config file not found
No ethernet found.
回复

使用道具 举报

360

积分

0

威望

0

贡献

技术达人

Rank: 2

积分
360
发表于 2020-12-1 10:24:57     
本帖最后由 zyk 于 2020-12-1 10:27 编辑
scuthyc 发表于 2020-12-1 09:11
您好,我在Ubuntu1604环境下按照教程编译

得到了update.img, 可烧入后还是无法启动

您好
1.请问你是否尝试过烧录公版buildroot固件,公版固件能否正常启动
2.拉取的commit版本是多少
3.请问具体的板型是哪一种
回复

使用道具 举报

*滑块验证:
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表