您尚未登录。

楼主 #1 2019-11-11 10:27:27

太一酱鸭
会员
注册时间: 2019-07-03
已发帖子: 154
积分: 154

v3s内核启动卡在文件系统挂载(cannot open root device)

错误处是
[    2.546113] ALSA device list:
[    2.549470]   #0: audiocodec
[    2.553258] VFS: Cannot open root device "nor1" or unknown-block(0,0): error -6
[    2.561494] Please append a correct "root=" boot option; here are the available partitions:
[    2.570907] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    2.580213] Backtrace:
[    2.583092] [<c0011508>] (dump_backtrace+0x0/0x110) from [<c0383cb4>] (dump_stack+0x18/0x1c)
[    2.592595]  r6:00008000 r5:c183d000 r4:c183d000 r3:00000001
[    2.599252] [<c0383c9c>] (dump_stack+0x0/0x1c) from [<c0383ebc>] (panic+0x78/0x1cc)
[    2.607902] [<c0383e44>] (panic+0x0/0x1cc) from [<c04b4d18>] (mount_block_root+0x240/0x290)
[    2.617308]  r3:c04f9c54 r2:00000000 r1:c1821f38 r0:c0438d8e
[    2.623964]  r7:c04d4b58
[    2.626924] [<c04b4ad8>] (mount_block_root+0x0/0x290) from [<c04b4dc0>] (mount_root+0x58/0x68)
[    2.636628] [<c04b4d68>] (mount_root+0x0/0x68) from [<c04b4f00>] (prepare_namespace+0x130/0x190)
[    2.646515]  r5:c04d4b69 r4:c051e164
[    2.650716] [<c04b4dd0>] (prepare_namespace+0x0/0x190) from [<c04b4944>] (kernel_init+0x16c/0x1a8)
[    2.660795]  r5:c04d4b50 r4:00000007
[    2.664992] [<c04b47d8>] (kernel_init+0x0/0x1a8) from [<c001f270>] (do_exit+0x0/0x660)
整个启动log在

HELLO! BOOT0 is starting!
boot0 version : 4.0.0
boot0 commit : 8 
fel flag  = 0x00000000
rtc[0] value = 0x00000000
rtc[1] value = 0x00000000
rtc[2] value = 0x00000000
rtc[3] value = 0x00000000
rtc[4] value = 0x00000000
rtc[5] value = 0x00000000
rtc[6] value = 0x00000000
rtc[7] value = 0x00000000
DRAM DRIVE INFO: V0.7
DRAM Type = 2 (2:DDR2,3:DDR3,6:LPDDR2,7:LPDDR3)
DRAM CLK = 408 MHz
DRAM zq value: 000039bb
DRAM size = 64 MB
dram size =64
Reg 0x01c20848: 0x00003333
0x01c20028 0x90041811
0x01c200a0 0x8100000f
spinand UBOOT_LAST_BLK_NUM 19
Succeed in opening spi nand flash.
block from 2 to 19
Succeed in reading Boot1 file head.
current block is 2.
current block is 3.
current block is 4.
current block is 5.
current block is 6.
current block is 7.
sum=3eb9fec5
src_sum=3eb9fec5
The file stored in block 2 to block 6 is perfect.
----------storage_type = 5  in boot0-------------------------
Ready to disable icache.
Jump to secend Boot.
[      0.496]

U-Boot 2011.09-rc1-00000-g2437157-dirty (Oct 25 2019 - 14:28:16) Allwinner Technology 

[      0.506]version: 1.1.0
[      0.508]uboot commit : 243715747050bc7f565cec7ce596911acd9c6805
 
[      0.517]pmbus:   ready
not set main pmu id
axp read error
probe axp20x failed
axp152 read error
probe axp15 failed
axp_probe error
[      1.131]PMU: pll1 408 Mhz,PLL6=600 Mhz
AXI=204 Mhz,AHB=204 Mhz, APB1=102 Mhz 
set power on vol to default
dcdc2_vol = 1200
axp set dcdc2_vol to 1200 failed
dcdc3_vol = 3300
axp set dcdc3_vol to 3300 failed
aldo2_vol = 2500
axp set aldo2_vol to 2500 failed
aldo3_vol = 3000
axp set aldo3_vol to 3000 failed
ldo1_vol = 3300
axp set ldo1_vol to 3300 failed
ldo2_vol = 3000
axp set ldo2_vol to 3000 failed
ldo3_vol = 3000
axp set ldo3_vol to 3000 failed
find power_sply to end
vbus exist
no battery, limit to dc
fel key new mode
run key detect
no key found
no key input
dram_para_set start
dram_para_set end
[      1.277]DRAM:  64 MiB
relocation Offset is: 0309b000
save config for small mem_size 
workmode = 0
storage type = 5
[      1.374]SPINAND: NAND_UbootInit
NAND_UbootInit start
NB1 : enter NAND_LogicInit
NandHwInit: Start Nand Hardware initializing .....
uboot:nand version: 2 54 20190712 1351 
Reg 0x01c20848: 0x3333
Reg 0x01c2085c: 0x55
Reg 0x01c20864: 0x10
uboot nand_request_tx_dma: reqest genernal dma for nand success, 0x43a34548
request general tx dma channel ok!
uboot nand_request_tx_dma: reqest genernal dma for nand success, 0x43a34564
request general rx dma channel ok!
SPI nand ID: 12c212c2 12c212c2
[SCAN_DBG] NandTwoPlaneOp: 1, DriverTwoPlaneOPCfg: 1, 0xffcfffff 
nand : get id_number_ctl fail, a
_UpdateExtAccessFreqPara: no para.
PHY_Scan_DelayMode: right delay mode 0x0
PHY_Scan_DelayMode: right delay mode 0x800
PHY_Scan_DelayMode: right delay mode,clk 100 MHz, bit[13]=0,bit[11]=1
_GetOldPhysicArch: chip 0, block 20, page 0, oob: 0x0, 0x50, 0x48, 0x59
_GetOldPhysicArch: get old physic arch ok, 0x6d 0x2!
NAND_ReadPhyArch: get old physic arch ok, use old cfg, now:0x2 0x6d - old:0x2 0x6d!


[SCAN_DBG] ==============Nand Architecture Parameter==============
[SCAN_DBG]    Nand Chip ID:         0xffff12c2 0xffffffff
[SCAN_DBG]    Nand Chip Count:      0x1
[SCAN_DBG]    Nand Chip Connect:    0x1
[SCAN_DBG]    Sector Count Of Page: 0x4
[SCAN_DBG]    Page Count Of Block:  0x40
[SCAN_DBG]    Block Count Of Die:   0x400
[SCAN_DBG]    Plane Count Of Die:   0x2
[SCAN_DBG]    Die Count Of Chip:    0x1
[SCAN_DBG]    Bank Count Of Chip:   0x1
[SCAN_DBG]    Optional Operation:   0x6d
[SCAN_DBG]    Access Frequence:     0x64
[SCAN_DBG] =======================================================


[FORMAT_DBG] ===========Logical Architecture Parameter===========
[FORMAT_DBG]    Page Count of Logic Block:  0x40
[FORMAT_DBG]    Sector Count of Logic Page: 0x8
[FORMAT_DBG]    Block Count of Die:         0x200
[FORMAT_DBG]    Die Count:                  0x1
[FORMAT_DBG] ===================================================
nand:found factory_bad_block(new version) table in block:26!
nand:support secure storage
secure storage updata ok!
nand secure storage ok: 21,22
NandHwInit: End Nand Hardware initializing ..... OK!
nand : get CapacityLevel fail, a
not burn nand partition table!
nand:found factory_bad_block(new version) table in block:26!
nand:support secure storage
start block:23
[NE]mbr read 12
[NE]mbr read ok!
[NE]mbr read end!
[NE]mbr partition start!
[NE]mbr partition ok!
[NE]mbr partition end!
[NE]new nand info init!!
[NE]mbr read 12
[NE]mbr read ok!
[NE]mbr read end!
[NE]get mbr_data table
[ND]ok  get factory_bad_block table!
[NE]new_bad_block table new format!
[ND]ok get a new bad table!
[ND]build all_phy partition start!
[NE]mbr partition start!
[NE]mbr partition ok!
[NE]mbr partition end!
[NE]partition_num: 0,size :0x37e00,cross_talk 0
[NE]part mbr size: 0x800 type: 0
[NE]part bootloader size: 0x4000 type: 0
[NE]part env size: 0x400 type: 0
[NE]part boot size: 0x8000 type: 0
[NE]part rootfs size: 0x10000 type: 0
[NE]part UDISK size: 0x1b200 type: 0
[ND]build 1 phy_partition !
[ND]nand_info->type :0
[ND]nand_info->SectorNumsPerPage :8
[ND]nand_info->BytesUserData :16
[ND]nand_info->PageNumsPerBlk :64
[ND]nand_info->BlkPerChip :512
[ND]nand_info->FirstBuild :0
[ND]nand_info->FullBitmap :10
[ND]nand_info->bad_block_addr.Chip_NO :0
[ND]nand_info->bad_block_addr.Block_NO :13
[ND]nand_info->mbr_block_addr.Chip_NO :0
[ND]nand_info->mbr_block_addr.Block_NO :12
[ND]nand_info->no_used_block_addr.Chip_NO :0
[ND]nand_info->no_used_block_addr.Block_NO :16
[ND]nand_info->new_bad_block_addr.Chip_NO :0
[ND]nand_info->new_bad_block_addr.Block_NO :14
[ND]nand_info->new_bad_page_addr :65535
[ND]nand_info->partition_nums :1
[ND]sizeof partition:1192
[ND]nand_info->partition:0:
[ND]size:0x37e00
[ND]cross_talk:0x0
[ND]attribute:0x0
[ND]start: chip:0 block:16
[ND]end  : chip:0 block:511
NB1 : nftl num: 1 
 init nftl: 0 
[ND]nand_partition0
[ND]nftl start:496,49
[ND]first
[ND]before second 496 447.
[NE]smart->version:aaaaaa01;
[NE]smart->total_recv_read_sectors:22574;
[NE]smart->total_recv_write_sectors:35886;
[NE]smart->total_real_read_pages:2822;
[NE]smart->total_real_write_pages:4544;
[NE]smart->total_recv_discard_sectors:0;
[NE]smart->total_real_discard_sectors:0;
[NE]smart->total_recv_read_claim_pages:0;
[NE]smart->total_gc_times:0;
[NE]smart->total_gc_pages:0;
[NE]smart->total_wl_times:0;
[NE]smart->total_real_read_error_pages:0;
[NE]smart->total_real_write_error_pages:0;
[NE]smart->total_normal_power_cycles:2;
[NE]smart->total_unusual_power_cycles:0;
[NE]smart->max_block_erase_times:0;
[NE]smart->min_block_erase_times:0;
[NE]smart->max_block_used_counter:0;
[NE]smart->min_block_used_counter:0;
[NE]smart->read_reclaim_utc:0;
[NE]recover_phy_page_mapping no used page 45!!
[ND]recover 421 45
[ND]A64 nand2.0 version:0009 
[ND]zone->nand_chip->blk_per_chip: 496 
[ND]zone->nand_chip->bytes_per_page: 4096 
[ND]zone->nand_chip->pages_per_blk: 64 
[ND]zone->nand_chip->max_erase_times: 3000 
[ND]zone->nand_chip->support_read_reclaim: 0 
[ND]zone->test: 0 
[ND]zone->zone_no: 0 
[ND]zone->zone_attr: 0 
[ND]zone->blocks: 496 
[ND]zone->bad_block: 0 
[ND]zone->logic_cap_in_sects: 228864 
[ND]zone->backup_cap_in_sects: 25088 
[ND]zone->free_block_num: 424 
[ND]zone->gc_strategy.start_gc_free_blocks: 9 
[ND]zone->gc_strategy.stop_gc_free_blocks: 32 
[ND]zone->gc_strategy.gc_page: 0 
[ND]zone->gc_strategy.process: 1 
[ND]zone->prio_gc.prio_type : 0 
[ND]zone->zone_start_phy_block->phy_block.Block_NO: 0 
[ND]zone->zone_end_phy_block->phy_block.Block_NO: 495 
[ND]zone->zone_phy_page_map_for_gc: 4293a6c8 
[ND]zone->current_block.user_info: 4293a238 
[ND]zone->current_block.block_info: 4291b86c 
[ND]zone->current_block.block_info->phy_block.Block_NO: 421 
[ND]zone->current_block.page_used: 45 
[ND]zone->current_block.block_info->block_used_count: 71 
[ND]zone->read_reclaim_complete: 0 
[ND]zone->temp_page_buf: 4291c320 
[ND]zone->max_erase_num: 1 
[ND]zone->cache.cache_totals: 0 
[ND]zone->cfg->nftl_dont_use_cache: 1 
[ND]zone->cfg->nftl_use_cache_sort: 1 
[ND]zone->cfg->nftl_support_gc_read_reclaim: 1 
[ND]zone->cfg->nftl_support_wear_leveling: 1 
[ND]zone->cfg->nftl_need_erase: 0 
[ND]zone->cfg->nftl_min_free_block_num: 19 
[ND]zone->cfg->nftl_gc_threshold_free_block_num: 8 
[ND]zone->cfg->nftl_min_free_block: 4 
[ND]zone->cfg->nftl_gc_threshold_ratio_numerator: 2 
[ND]zone->cfg->nftl_gc_threshold_ratio_denominator: 3 
[ND]zone->cfg->nftl_max_cache_num: 10 
[ND]zone->cfg->nftl_max_cache_write_num: 1 
[ND]zone->cfg->nftl_cross_talk: 0 
[ND]zone->cfg->nftl_read_claim_interval: 1296000 
[NE]smart->version:aaaaaa01;
[NE]smart->total_recv_read_sectors:22574;
[NE]smart->total_recv_write_sectors:35886;
[NE]smart->total_real_read_pages:2868;
[NE]smart->total_real_write_pages:4544;
[NE]smart->total_recv_discard_sectors:0;
[NE]smart->total_real_discard_sectors:0;
[NE]smart->total_recv_read_claim_pages:0;
[NE]smart->total_gc_times:0;
[NE]smart->total_gc_pages:0;
[NE]smart->total_wl_times:0;
[NE]smart->total_real_read_error_pages:0;
[NE]smart->total_real_write_error_pages:0;
[NE]smart->total_normal_power_cycles:2;
[NE]smart->total_unusual_power_cycles:0;
[NE]smart->max_block_erase_times:0;
[NE]smart->min_block_erase_times:0;
[NE]smart->max_block_used_counter:0;
[NE]smart->min_block_used_counter:0;
[NE]smart->read_reclaim_utc:0;
[ND]nftl ok!
[ND] reserved panic block 494!
[ND] reserved panic block 493!
[ND] reserved panic block 492!
[ND]max_erase_times = 65000
[ND] not find panic data, no need to recovery!
[ND]nftl_add ok
NB1 : NAND_LogicInit ok, result = 0x0 
[      2.154]sunxi flash init ok
In:    serial
Out:   serial
Err:   serial
--------fastboot partitions--------
-total partitions:5-
-name-        -start-       -size-      
bootloader  : 100000        800000      
env         : 900000        80000       
boot        : 980000        1000000     
rootfs      : 1980000       2000000     
UDISK       : 3980000       0           
-----------------------------------
base bootcmd=run setargs_spinor boot_normal
bootcmd set setargs_nand
key 0
cant find rcvy value
cant find fstbt value
no misc partition is found
to be run cmd=run setargs_spinor boot_normal
WORK_MODE_BOOT
board_status_probe
adver not need show
sunxi_bmp_logo_display

** Unable to read "bootlogo.bmp" from sunxi_flash 0:1 **
sunxi bmp info error : unable to open logo file bootlogo.bmp
read bootlogo partition fail,start_block=0x0,rblock=0x0 ,ret=0
Not a JPG file ?
parse_header failed

Use decode 2x1 sampling
sunxi_read_bootlogo: jpg convert argb  
[      2.249]Hit any key to stop autoboot:  0 
read boot or recovery all
[      3.041]sunxi flash read :offset 980000, 11505343 bytes OK
no signature
[      3.063]ready to boot
------------------------------1111----------------------
board_display_setenv:  disp_para=0 init_disp=0 tv_vdid=0
para err in disp_ioctl, cmd = 0xa,screen id = 1
[      3.080][mmc]: MMC Device 2 not found
[      3.084][mmc]:  mmc  not find,so not exit
NAND_UbootExit
NB1 : NAND_LogicExit
nand release dma:43a34548
nand release dma:0
reload config to 0x43000000 
[      3.088]
Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0
[    0.000000] Linux version 3.4.39 (root@wuyu-virtual-machine) (gcc version 4.6.3 20120201 (prerelease) (crosstool-NG linaro-1.13.1-2012.02-20120222 - Linaro GCC 2012.02) ) #11 Mon Nov 11 09:38:24 CST 2019
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine: sun8i
[    0.000000] Ignoring unrecognised tag 0x00000000
[    0.000000] Initialized persistent memory from 41d20800-41d307ff
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] On node 0 totalpages: 16384
[    0.000000] free_area_init_node: node 0, pgdat c051d99c, node_mem_map c05ac000
[    0.000000]   Normal zone: 128 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 16256 pages, LIFO batch:3
[    0.000000] script_init enter!
[    0.000000] script_init exit!
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/nor1 init=/init loglevel=8 partitions=bootloader@mmcblk0p2:env@mmcblk0p5:boot@mmcblk0p6:rootfs@mmcblk0p7:UDISK@mmcblk0p1 mac_addr= uid=8882f574-3e53-45 kmemleak=on sunxi_mbr=bootloader@[2048:16384]env@[18432:1024]boot@[19456:32768]rootfs@[52224:65536]UDISK@[117760:0] boot_type=5 disp_para=0 init_disp=0 tv_vdid=0 fb_base=0x43e80000 config_size=32768
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Memory: 64MB = 64MB total
[    0.000000] Memory: 20172k/20172k available, 45364k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
<5>[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xc4800000 - 0xff000000   ( 936 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc4000000   (  64 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc04b4000   (4784 kB)
[    0.000000]       .init : 0xc04b4000 - 0xc04d9000   ( 148 kB)
[    0.000000]       .data : 0xc04da000 - 0xc051e0c0   ( 273 kB)
[    0.000000]        .bss : 0xc051e0e4 - 0xc05abe60   ( 568 kB)
[    0.000000] NR_IRQS:544
[    0.000000] 524 ahb1 set parent pll_periph0d2
[    0.000000] Architected local timer running at 24.00MHz.
[    0.000000] Switching to timer-based delay loop
[    0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
[    0.000000] Console: colour dummy device 80x30
[    0.000259] Calibrating delay loop (skipped), value calculated using timer frequency.. 4800.00 BogoMIPS (lpj=24000000)
[    0.000302] pid_max: default: 32768 minimum: 301
[    0.000557] Mount-cache hash table entries: 512
[    0.001431] CPU: Testing write buffer coherency: ok
[    0.001782] Setting up static identity map for 0x403890c8 - 0x403890fc
[    0.002820] devtmpfs: initialized
[    0.006496] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.006741] pinctrl core: initialized pinctrl subsystem
[    0.007514] NET: Registered protocol family 16
[    0.008337] DMA: preallocated 128 KiB pool for atomic coherent allocations
[    0.008427] script_sysfs_init success
[    0.008490] sunxi_dump_init success
[    0.010086] gpiochip_add: registered GPIOs 0 to 223 on device: sunxi-pinctrl
[    0.011806] sunxi-pinctrl sunxi-pinctrl: initialized sunXi PIO driver
[    0.013400] persistent_ram: error in header, 4
[    0.013427] persistent_ram: found existing buffer, size 16502, start 16502
[    0.057087] console [ram-1] enabled
[    0.057819] [sunxi-module]: [sunxi-module.0] probe success
[    0.058210] script config pll_isp to 456 Mhz
[    0.058418] Not Found clk pll_video in script 
[    0.058754] script config pll_ve to 456 Mhz
[    0.058951] Not Found clk pll_periph0 in script 
[    0.059131] Not Found clk pll_de in script 
[    0.059445] sunxi_default_clk_init
[    0.059619] try to set pll6ahb1 to 200000000
[    0.059801] Error not get clk pll6ahb1
[    0.060030] Error not get clk pll6ahb1try to set ahb1 to 200000000
[    0.060390] try to set apb1 to 100000000
[    0.061379] ===fe3o4==== sunxi_root_procfs_attach ret:0
[    0.068155] bio: create slab <bio-0> at 0
[    0.068758] pwm module init!
[    0.072164] SCSI subsystem initialized
[    0.072725] usbcore: registered new interface driver usbfs
[    0.073030] usbcore: registered new interface driver hub
[    0.073547] usbcore: registered new device driver usb
[    0.073973] twi_chan_cfg()341 - [twi0] has no twi_speed!
[    0.074303] twi_chan_cfg()352 - [twi0] has no twi_regulator.
[    0.074488] twi_chan_cfg()341 - [twi1] has no twi_speed!
[    0.074811] twi_chan_cfg()352 - [twi1] has no twi_regulator.
[    0.074991] Linux video capture interface: v2.00
[    0.075694] Advanced Linux Sound Architecture Driver Version 1.0.25.
[    0.077216] cfg80211: Calling CRDA to update world regulatory domain
[    0.078306] Switching to clocksource arch_sys_counter
[    0.081923] NET: Registered protocol family 2
[    0.082689] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.083777] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    0.084195] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.084417] TCP: Hash tables configured (established 2048 bind 2048)
[    0.084744] TCP: reno registered
[    0.084927] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.085280] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.086005] NET: Registered protocol family 1
[    0.086650] Unpacking initramfs...
[    0.792010] Freeing initrd memory: 5000K
[    0.792759] sunxi_reg_init enter
[    0.796290] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.796576] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.797297] msgmni has been set to 49
[    0.798876] io scheduler noop registered
[    0.799211] io scheduler deadline registered
[    0.799525] io scheduler cfq registered (default)
[    0.800301] [DISP]disp_module_init
[    0.801142] cmdline,disp=0
[    0.802309] rotation_sw module is config as no used
[    0.802527] [DISP] disp_get_rotation_sw,line:78:disp 0 out of range? g_rot_sw=0
[    0.803021] [DISP] disp_init_connections,line:289:NULL pointer: 0, 0
[    0.804676] [DISP] Fb_map_kernel_logo,line:956:kernel logo para error!
[    0.807982] [DISP]disp_module_init finish
[    0.808489] sw_uart_get_devinfo()1503 - uart2 has no uart_regulator.
[    0.809235] uart2: ttyS0 at MMIO 0x1c28800 (irq = 34) is a SUNXI
[    0.809430] sw_uart_pm()890 - uart2 clk is already enable
[    0.809629] sw_console_setup()1233 - console setup baud 115200 parity n bits 8, flow n
[    0.906752] console [ttyS0] enabled
[    1.537487] sunxi_spi_chan_cfg()1376 - [spi-0] has no spi_regulator.
[    1.544870] sunxi_spi_register_spidev()2009 - Get spi devices modalias failed
[    1.553198] sunxi_spi_init()2073 - register spi devices board info failed 
[    1.561117] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.588873] sunxi-ehci sunxi-ehci.1: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.598223] sunxi-ehci sunxi-ehci.1: new USB bus registered, assigned bus number 1
[    1.607065] sunxi-ehci sunxi-ehci.1: irq 104, io mem 0xf1c1a000
[    1.630070] sunxi-ehci sunxi-ehci.1: USB 0.0 started, EHCI 1.00
[    1.637937] hub 1-0:1.0: USB hub found
[    1.642535] hub 1-0:1.0: 1 port detected
[    1.647662] sunxi-ehci sunxi-ehci.1: remove, state 1
[    1.653452] usb usb1: USB disconnect, device number 1
[    1.993785] sunxi-ehci sunxi-ehci.1: USB bus 1 deregistered
[    2.010370] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    2.037718] sunxi-ohci sunxi-ohci.1: SW USB2.0 'Open' Host Controller (OHCI) Driver
[    2.046841] sunxi-ohci sunxi-ohci.1: new USB bus registered, assigned bus number 1
[    2.055586] sunxi-ohci sunxi-ohci.1: irq 105, io mem 0xf1c1a400
[    2.125013] hub 1-0:1.0: USB hub found
[    2.129415] hub 1-0:1.0: 1 port detected
[    2.134510] sunxi-ohci sunxi-ohci.1: remove, state 1
[    2.140473] usb usb1: USB disconnect, device number 1
[    2.147063] sunxi-ohci sunxi-ohci.1: USB bus 1 deregistered
[    2.163788] Initializing USB Mass Storage driver...
[    2.169562] usbcore: registered new interface driver usb-storage
[    2.176658] USB Mass Storage support registered.
[    2.182422] file system registered
[    2.188464] android_usb gadget: Mass Storage Function, version: 2009/09/11
[    2.196414] android_usb gadget: Number of LUNs=1
[    2.201919]  lun0: LUN: removable file: (no medium)
[    2.208149] android_usb gadget: android_usb ready
[    2.213692] sunxikbd_script_init: key para not found, used default para. 
[    2.222315] sunxikbd_init end
[    2.226397] sunxi-rtc sunxi-rtc: rtc core: registered sunxi-rtc as rtc0
[    2.234388] sunxi cedar version 0.1 
[    2.238621] [cedar]: install start!!!
[    2.243239] [cedar]: install end!!!
[    2.247515] step1 : gsensor_fetch_sysconfig_para
[    2.252896] step2 : gsensor_fetch_sysconfig_para
[    2.258375] [MIR3DA] fetch_sysconfig_para failed!
[    2.258387] 
[    2.265648] sunxi_wdt_init_module: sunxi WatchDog Timer Driver v1.0
[    2.273274] sunxi_wdt_probe: devm_ioremap return wdt_reg 0xf1c20ca0, res->start 0x01c20ca0, res->end 0x01c20cbf
[    2.285000] sunxi_wdt_probe: initialized (g_timeout=16s, g_nowayout=0)
[    2.292876] wdt_enable, write reg 0xf1c20cb8 val 0x00000000
[    2.299435] wdt_set_tmout, write 0x000000b0 to mode reg 0xf1c20cb8, actual timeout 16 sec
[    2.310520] [mmc]: SD/MMC/SDIO Host Controller Driver(v1.114 2015-6-2 10:21) Compiled in Nov 11 2019 at 09:37:41
[    2.321997] [mmc]: get mmc0's sdc_power failed
[    2.327074] [mmc]: MMC host used card: 0x1, boot card: 0x0, io_card 0
[    2.334971] [mmc]: sdc0 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.347813] =========sunxi_leds_init============
[    2.353040] sunxi_leds_fetch_sysconfig_para leds is not used in config
[    2.360423] =========script_get_err============
[    2.365752] usbcore: registered new interface driver usbhid
[    2.372090] usbhid: USB HID core driver
[    2.376929] ashmem: initialized
[    2.380665] logger: created 256K log 'log_main'
[    2.385919] logger: created 32K log 'log_events'
[    2.391215] logger: created 32K log 'log_radio'
[    2.396452] logger: created 32K log 'log_system'
[    2.402821] [audiocodec] mic1_mic3_used type err! 
[    2.409003] asoc: sndcodec <-> sunxi-codec mapping ok
[    2.416163] [DAUDIO]sunxi-daudio cannot find any using configuration for controllers, return directly!
[    2.426887] [I2S]snddaudio cannot find any using configuration for controllers, return directly!
[    2.436799] [DAUDIO0] driver not init,just return.
[    2.442551] IPv4 over IPv4 tunneling driver
[    2.447910] TCP: cubic registered
[    2.451770] Initializing XFRM netlink socket
[    2.456754] NET: Registered protocol family 10
[    2.462687] IPv6 over IPv4 tunneling driver
[    2.468092] NET: Registered protocol family 17
[    2.473440] ThumbEE CPU extension supported.
[    2.478331] Registering SWP/SWPB emulation handler
[    2.484191] [HDMI]ep952_module_init begin
[    2.489037] sunxi-rtc sunxi-rtc: setting system clock to 1970-01-01 00:00:05 UTC (5)
[    2.499158] [rf_pm]: Did not config module_power0 in sys_config
[    2.505938] [rf_pm]: Did not config module_power1 in sys_config
[    2.512588] [rf_pm]: Did not config module_power2 in sys_config
[    2.519286] [rf_pm]: Did not config module_power3 in sys_config
[    2.525928] [rf_pm]: mod has no chip_en gpio
[    2.530737] [rf_pm]: regulator on.
[    2.534649] [rf_pm]: Get ap 32k clk out failed!
[    2.539745] [wifi_pm]: failed to fetch wifi configuration!
[    2.545971] ALSA device list:
[    2.549328]   #0: audiocodec
[    2.553053] VFS: Cannot open root device "nor1" or unknown-block(0,0): error -6
[    2.561351] Please append a correct "root=" boot option; here are the available partitions:
[    2.570766] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    2.580011] Backtrace: 
[    2.582892] [<c0011508>] (dump_backtrace+0x0/0x110) from [<c0383cb4>] (dump_stack+0x18/0x1c)
[    2.592334]  r6:00008000 r5:c183d000 r4:c183d000 r3:00000001
[    2.599055] [<c0383c9c>] (dump_stack+0x0/0x1c) from [<c0383ebc>] (panic+0x78/0x1cc)
[    2.607642] [<c0383e44>] (panic+0x0/0x1cc) from [<c04b4d18>] (mount_block_root+0x240/0x290)
[    2.617047]  r3:c04f9c54 r2:00000000 r1:c1821f38 r0:c0438d8e
[    2.623765]  r7:c04d4b58
[    2.626723] [<c04b4ad8>] (mount_block_root+0x0/0x290) from [<c04b4dc0>] (mount_root+0x58/0x68)
[    2.636425] [<c04b4d68>] (mount_root+0x0/0x68) from [<c04b4f00>] (prepare_namespace+0x130/0x190)
[    2.646248]  r5:c04d4b69 r4:c051e164
[    2.650514] [<c04b4dd0>] (prepare_namespace+0x0/0x190) from [<c04b4944>] (kernel_init+0x16c/0x1a8)
[    2.660594]  r5:c04d4b50 r4:00000007
[    2.664787] [<c04b47d8>] (kernel_init+0x0/0x1a8) from [<c001f270>] (do_exit+0x0/0x660)

离线

楼主 #2 2019-11-11 10:28:52

太一酱鸭
会员
注册时间: 2019-07-03
已发帖子: 154
积分: 154

Re: v3s内核启动卡在文件系统挂载(cannot open root device)

不知道是不是root=设置的问题,但是我也不知道flash的名称叫什么,进不了系统也没法 ls /dev

离线

#3 2019-11-11 10:41:24

我思故我在
会员
注册时间: 2019-09-03
已发帖子: 244
积分: 243.5

Re: v3s内核启动卡在文件系统挂载(cannot open root device)

root=/dev/nor1 这种没有见过, 一般不都是 /dev/mtdblockX 吗?

离线

楼主 #4 2019-11-11 11:39:30

太一酱鸭
会员
注册时间: 2019-07-03
已发帖子: 154
积分: 154

Re: v3s内核启动卡在文件系统挂载(cannot open root device)

我思故我在 说:

root=/dev/nor1 这种没有见过, 一般不都是 /dev/mtdblockX 吗?

给了一个nand.ko,是不是要预先加载这个, 不过我在 /etc/init.d/rcs 里加了modprobe nank.ko也没反应

离线

#5 2019-11-11 11:45:34

jimmy
会员
注册时间: 2017-10-29
已发帖子: 316
积分: 315

Re: v3s内核启动卡在文件系统挂载(cannot open root device)

文件系统没有起来,又何来的 nand.ko,这又是一个先有鸡,还是先有蛋的问题。

离线

楼主 #6 2019-11-11 11:46:50

太一酱鸭
会员
注册时间: 2019-07-03
已发帖子: 154
积分: 154

Re: v3s内核启动卡在文件系统挂载(cannot open root device)

jimmy 说:

文件系统没有起来,又何来的 nand.ko,这又是一个先有鸡,还是先有蛋的问题。

你说的很有道理,看来就是我的文件系统没有分区成功

离线

楼主 #7 2019-11-11 16:04:27

太一酱鸭
会员
注册时间: 2019-07-03
已发帖子: 154
积分: 154

Re: v3s内核启动卡在文件系统挂载(cannot open root device)

又改了一下,作为spi nand 编译,一样是这个错误

离线

楼主 #8 2019-11-11 17:22:55

太一酱鸭
会员
注册时间: 2019-07-03
已发帖子: 154
积分: 154

Re: v3s内核启动卡在文件系统挂载(cannot open root device)

@晕哥 晕哥求助一下,我连mtd分区都没有生成的样子

离线

楼主 #9 2019-11-11 17:24:54

太一酱鸭
会员
注册时间: 2019-07-03
已发帖子: 154
积分: 154

Re: v3s内核启动卡在文件系统挂载(cannot open root device)

[    1.394506] sunxi_spi_register_spidev()2009 - Get spi devices modalias failed
[    1.402842] sunxi_spi_init()2073 - register spi devices board info failed
错误应该在这

离线

#10 2019-11-11 20:00:51

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,223
积分: 9197

Re: v3s内核启动卡在文件系统挂载(cannot open root device)

现在解决了吗?这是zeta吗?怎么看起来spi初始化就没过呢?





离线

楼主 #11 2019-11-12 08:48:56

太一酱鸭
会员
注册时间: 2019-07-03
已发帖子: 154
积分: 154

Re: v3s内核启动卡在文件系统挂载(cannot open root device)

晕哥 说:

现在解决了吗?这是zeta吗?怎么看起来spi初始化就没过呢?

没有,连std初始化都没有应该是初始化没有过

离线

楼主 #12 2019-11-12 08:51:31

太一酱鸭
会员
注册时间: 2019-07-03
已发帖子: 154
积分: 154

Re: v3s内核启动卡在文件系统挂载(cannot open root device)

晕哥 说:

现在解决了吗?这是zeta吗?怎么看起来spi初始化就没过呢?

不是zeta

离线

楼主 #13 2019-11-12 10:17:43

太一酱鸭
会员
注册时间: 2019-07-03
已发帖子: 154
积分: 154

Re: v3s内核启动卡在文件系统挂载(cannot open root device)

太一酱鸭 说:

[    1.394506] sunxi_spi_register_spidev()2009 - Get spi devices modalias failed
[    1.402842] sunxi_spi_init()2073 - register spi devices board info failed
错误应该在这

烧了另外一个可以用的camdroid固件,也是这个log,所以不是这个的问题

离线

#14 2019-11-12 10:26:51

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,223
积分: 9197

Re: v3s内核启动卡在文件系统挂载(cannot open root device)

这是 V3s 的 spi nand + camdroid ?





离线

楼主 #15 2019-11-12 10:32:25

太一酱鸭
会员
注册时间: 2019-07-03
已发帖子: 154
积分: 154

Re: v3s内核启动卡在文件系统挂载(cannot open root device)

晕哥 说:

这是 V3s 的 spi nand + camdroid ?

不是,这是spinand+bsp应该,camdroid被否掉了,然后我就用sdk lichee里的./build.sh,然后再pack,按理来说同一个sdk,camdroid是可以用的,linux也应该是可以的吧

离线

楼主 #16 2019-11-12 10:59:20

太一酱鸭
会员
注册时间: 2019-07-03
已发帖子: 154
积分: 154

Re: v3s内核启动卡在文件系统挂载(cannot open root device)

对比两个启动log感觉没什么差别

离线

楼主 #17 2019-11-12 11:28:47

太一酱鸭
会员
注册时间: 2019-07-03
已发帖子: 154
积分: 154

Re: v3s内核启动卡在文件系统挂载(cannot open root device)

[    1.948186] ALSA device list:
[    1.951614]   #0: audiocodec
[    1.955341] Freeing init memory: 148K
[    1.961432] init: skipping insecure file '/default.prop'
[    1.967586] init: skipping insecure file '/init.rc'
[    1.973478] init: /init.rc: 142: invalid option 'root'
[    1.979374] init: skipping insecure file '/init.sun8i.rc'
[    1.985630] init: /init.sun8i.rc: 69: invalid option 'root'
[    1.992021] init: skipping insecure file 'init.sun8i.usb.rc'
[    1.999025] init: command 'loglevel' r=0
[    2.004883] init: skipping insecure file '/ueventd.rc'
[    2.010887] init: skipping insecure file '/nand.ko'
[    2.020424] init: skipping insecure file '/ueventd.sun8i.rc'
[    2.035883] [NAND]panic_buff_handle 0xc4a17000 ,0x40c20000
[    2.042132] [NAND]nand init start, spinand_used_flag is 1
[    2.048259] kernel:nand version: 2 54 20190712 1351 
[    2.078940] request tx DMA
[    2.082086] request rx DMA
[    2.085878] NAND_ReadPhyArch: get old physic arch ok, use old cfg, now:0x2 0x6d - old:0x2 0x6d!
[    2.107963] [NE]mbr read 12
[    2.111520] [NE]mbr read ok!
[    2.114783] [NE]mbr read end!
[    2.118140] [NE]mbr partition start!
[    2.122486] [NE]mbr partition ok!
[    2.126298] [NE]mbr partition end!
[    2.130149] [NE]new nand info init!!
[    2.134373] [NE]mbr read 12
[    2.137902] [NE]mbr read ok!
[    2.141172] [NE]mbr read end!
[    2.144531] [NE]get mbr_data table
[    2.148862] [ND]ok  get factory_bad_block table!
[    2.154618] [NE]new_bad_block table new format!
[    2.160017] [ND]ok get a new bad table!
[    2.164890] [ND]build all_phy partition start!
[    2.169885] [NE]mbr partition start!
[    2.174222] [NE]mbr partition ok!
[    2.178029] [NE]mbr partition end!
[    2.181882] [NE]partition_num: 0,size :0x37e00,cross_talk 0
[    2.188139] [NE]part mbr size: 0x800 type: 0
[    2.193018] [NE]part bootloader size: 0x4000 type: 0
[    2.198597] [NE]part env size: 0x400 type: 0
[    2.203476] [NE]part boot size: 0x8000 type: 0
[    2.208475] [NE]part system size: 0x10000 type: 0
[    2.213770] [NE]part UDISK size: 0x1b200 type: 0
[    2.219079] [ND]build 1 phy_partition !
[    2.223414] [ND]nand_info->type :0
[    2.227255] [ND]nand_info->SectorNumsPerPage :8
[    2.232418] [ND]nand_info->BytesUserData :16
[    2.237223] [ND]nand_info->PageNumsPerBlk :64
[    2.242195] [ND]nand_info->BlkPerChip :512
[    2.246808] [ND]nand_info->FirstBuild :0
[    2.251235] [ND]nand_info->FullBitmap :-1068602124
[    2.256685] [ND]nand_info->bad_block_addr.Chip_NO :0
[    2.262270] [ND]nand_info->bad_block_addr.Block_NO :13
[    2.268103] [ND]nand_info->mbr_block_addr.Chip_NO :0
[    2.273687] [ND]nand_info->mbr_block_addr.Block_NO :12
[    2.279459] [ND]nand_info->no_used_block_addr.Chip_NO :0
[    2.285499] [ND]nand_info->no_used_block_addr.Block_NO :16
[    2.291666] [ND]nand_info->new_bad_block_addr.Chip_NO :0
[    2.297695] [ND]nand_info->new_bad_block_addr.Block_NO :14
[    2.303859] [ND]nand_info->new_bad_page_addr :65535
[    2.309404] [ND]nand_info->partition_nums :1
[    2.314216] [ND]sizeof partition:1192
[    2.318343] [ND]nand_info->partition:0:
[    2.322731] [ND]size:0x37e00
[    2.325989] [ND]cross_talk:0x0
[    2.329439] [ND]attribute:0x0
[    2.332864] [ND]start: chip:0 block:16
[    2.337087] [ND]end  : chip:0 block:511
[    2.341913] [ND]nand_partition0
[    2.345636] [ND]nftl start:496,49
[    2.349483] [ND]first
[    2.398957] [ND]before second 496 447.
[    2.429302] [NE]smart->version:aaaaaa01;
[    2.433820] [NE]smart->total_recv_read_sectors:8178;
[    2.439471] [NE]smart->total_recv_write_sectors:42826;
[    2.445313] [NE]smart->total_real_read_pages:1024;
[    2.450700] [NE]smart->total_real_write_pages:5440;
[    2.456176] [NE]smart->total_recv_discard_sectors:0;
[    2.461819] [NE]smart->total_real_discard_sectors:0;
[    2.467391] [NE]smart->total_recv_read_claim_pages:0;
[    2.473130] [NE]smart->total_gc_times:0;
[    2.477546] [NE]smart->total_gc_pages:0;
[    2.481968] [NE]smart->total_wl_times:0;
[    2.486447] [NE]smart->total_real_read_error_pages:0;
[    2.492122] [NE]smart->total_real_write_error_pages:0;
[    2.497952] [NE]smart->total_normal_power_cycles:2;
[    2.503433] [NE]smart->total_unusual_power_cycles:0;
[    2.509068] [NE]smart->max_block_erase_times:0;
[    2.514165] [NE]smart->min_block_erase_times:0;
[    2.519254] [NE]smart->max_block_used_counter:0;
[    2.524511] [NE]smart->min_block_used_counter:0;
[    2.529697] [NE]smart->read_reclaim_utc:0;
[    2.539691] [NE]recover_phy_page_mapping no used page 17!!
[    2.545859] [ND]recover 407 17
[    2.549313] [ND]A64 nand2.0 version:0009 
[    2.553900] [ND]zone->nand_chip->blk_per_chip: 496 
[    2.559376] [ND]zone->nand_chip->bytes_per_page: 4096 
[    2.565149] [ND]zone->nand_chip->pages_per_blk: 64 
[    2.570695] [ND]zone->nand_chip->max_erase_times: 3000 
[    2.576556] [ND]zone->nand_chip->support_read_reclaim: 41696 
[    2.583065] [ND]zone->test: 0 
[    2.586516] [ND]zone->zone_no: 0 
[    2.590262] [ND]zone->zone_attr: 0 
[    2.594260] [ND]zone->blocks: 496 
[    2.598096] [ND]zone->bad_block: 0 
[    2.602035] [ND]zone->logic_cap_in_sects: 228864 
[    2.607382] [ND]zone->backup_cap_in_sects: 25088 
[    2.612671] [ND]zone->free_block_num: 410 
[    2.617342] [ND]zone->gc_strategy.start_gc_free_blocks: 9 
[    2.623499] [ND]zone->gc_strategy.stop_gc_free_blocks: 32 
[    2.629649] [ND]zone->gc_strategy.gc_page: 0 
[    2.634553] [ND]zone->gc_strategy.process: 1 
[    2.639450] [ND]zone->prio_gc.prio_type : 0 
[    2.644322] [ND]zone->zone_start_phy_block->phy_block.Block_NO: 0 
[    2.651251] [ND]zone->zone_end_phy_block->phy_block.Block_NO: 495 
[    2.658236] [ND]zone->zone_phy_page_map_for_gc: c1b4b000 
[    2.664297] [ND]zone->current_block.user_info: c1b4bc00 
[    2.670325] [ND]zone->current_block.block_info: c190b93c 
[    2.676379] [ND]zone->current_block.block_info->phy_block.Block_NO: 407 
[    2.683949] [ND]zone->current_block.page_used: 17 
[    2.689328] [ND]zone->current_block.block_info->block_used_count: 85 
[    2.696610] [ND]zone->read_reclaim_complete: 0 
[    2.701708] [ND]zone->temp_page_buf: c1bdb000 
[    2.706766] [ND]zone->max_erase_num: 1 
[    2.711090] [ND]zone->cache.cache_totals: 0 
[    2.715891] [ND]zone->cfg->nftl_dont_use_cache: 0 
[    2.721341] [ND]zone->cfg->nftl_use_cache_sort: 1 
[    2.726721] [ND]zone->cfg->nftl_support_gc_read_reclaim: 1 
[    2.733038] [ND]zone->cfg->nftl_support_wear_leveling: 1 
[    2.739092] [ND]zone->cfg->nftl_need_erase: 0 
[    2.744093] [ND]zone->cfg->nftl_min_free_block_num: 19 
[    2.750026] [ND]zone->cfg->nftl_gc_threshold_free_block_num: 8 
[    2.756659] [ND]zone->cfg->nftl_min_free_block: 4 
[    2.762109] [ND]zone->cfg->nftl_gc_threshold_ratio_numerator: 2 
[    2.768839] [ND]zone->cfg->nftl_gc_threshold_ratio_denominator: 3 
[    2.775831] [ND]zone->cfg->nftl_max_cache_num: 10 
[    2.781218] [ND]zone->cfg->nftl_max_cache_write_num: 1 
[    2.787143] [ND]zone->cfg->nftl_cross_talk: 0 
[    2.792143] [ND]zone->cfg->nftl_read_claim_interval: 1296000 
[    2.798648] [NE]smart->version:aaaaaa01;
[    2.803072] [NE]smart->total_recv_read_sectors:8178;
[    2.808645] [NE]smart->total_recv_write_sectors:42826;
[    2.814482] [NE]smart->total_real_read_pages:1042;
[    2.819860] [NE]smart->total_real_write_pages:5440;
[    2.825405] [NE]smart->total_recv_discard_sectors:0;
[    2.830984] [NE]smart->total_real_discard_sectors:0;
[    2.836619] [NE]smart->total_recv_read_claim_pages:0;
[    2.842294] [NE]smart->total_gc_times:0;
[    2.846709] [NE]smart->total_gc_pages:0;
[    2.851194] [NE]smart->total_wl_times:0;
[    2.855609] [NE]smart->total_real_read_error_pages:0;
[    2.861347] [NE]smart->total_real_write_error_pages:0;
[    2.867113] [NE]smart->total_normal_power_cycles:2;
[    2.872594] [NE]smart->total_unusual_power_cycles:0;
[    2.878229] [NE]smart->max_block_erase_times:0;
[    2.883327] [NE]smart->min_block_erase_times:0;
[    2.888481] [NE]smart->max_block_used_counter:0;
[    2.893673] [NE]smart->min_block_used_counter:0;
[    2.898924] [NE]smart->read_reclaim_utc:0;
[    2.903537] [ND]nftl ok!
[    2.906412] [ND] reserved panic block 494!
[    2.911026] [ND] reserved panic block 493!
[    2.915699] [ND] reserved panic block 492!
[    2.920376] [ND]max_erase_times = 65000
[    2.924913] [NAND]nand_dev add mbr
[    2.928758] [NAND]nand_dev add bootloader
[    2.934628]  nanda:
[    2.937585] [NAND]nand_dev add env
[    2.943870]  nandb: unknown partition table
[    2.949122] [NAND]nand_dev add boot
[    2.955452]  nandc: unknown partition table
[    2.960820] [NAND]nand_dev add system
[    2.967284]  nandd: unknown partition table
[    2.972591] [NAND]nand_dev add UDISK
[    2.977919]  nande: unknown partition table
[    2.983326] [NAND]nand init end 
[    2.987319] init: command 'insmod' r=0
[    2.991707] init: command 'export' r=0
[    2.995945] init: command 'export' r=0
[    3.000203] init: command 'export' r=0
[    3.004498] init: command 'export' r=0
[    3.008730] init: command 'export' r=0
[    3.012973] init: command 'export' r=0
[    3.017268] init: command 'export' r=0
[    3.021571] init: command 'symlink' r=0
[    3.025929] init: command 'symlink' r=0
[    3.030390] init: command 'symlink' r=0
[    3.034810] init: command 'mkdir' r=0
[    3.038979] init: command 'mkdir' r=0
[    3.043408] init: command 'mkdir' r=-2
[    3.047652] init: processing action 0xcdb518 (init)
[    3.053170] init: command 'export' r=0
[    3.057470] init: command 'export' r=0
[    3.061712] init: command 'export' r=0
[    3.065944] init: command 'export' r=0
[    3.070249] init: command 'export' r=0
[    3.074477] init: processing action 0xcd9d98 (early-fs)
[    3.080411] init: command 'mkdir' r=0
[    3.084640] init: command 'mkdir' r=0
[    3.088796] init: command 'mkdir' r=0
[    3.092991] init: out of loopback devices source = /dev/block/nandd
[    3.100130] init: out of loopback devices target = /system
[    3.106288] init: out of loopback devices system = ext4
[    3.112229] init: out of loopback devices options = barrier=0
[    3.125380] EXT4-fs (nandd): barriers disabled
[    3.136575] EXT4-fs (nandd): mounted filesystem with ordered data mode. Opts: barrier=0
[    3.145735] init: command 'mount' r=0
[    3.149897] init: processing action 0xcdc898 (console_init)
[    3.156513] init: command 'console_init' r=0
[    3.161447] init: processing action 0xcda148 (fs)
[    3.166741] init: processing action 0xcda178 (post-fs)
[    3.172627] init: out of loopback devices source = rootfs
[    3.178689] init: out of loopback devices target = /
[    3.184279] init: out of loopback devices system = rootfs
[    3.190347] init: out of loopback devices options = (null)
[    3.196550] init: command 'mount' r=0
[    3.200775] init: processing action 0xcda1d8 (post-fs-data)
[    3.207096] init: command 'chown' r=0
[    3.211342] init: command 'chmod' r=0
[    3.215499] init: command 'chmod' r=0
[    3.219674] init: command 'mkdir' r=0
[    3.223927] init: command 'restorecon' r=0
[    3.228586] init: command 'mkdir' r=0
[    3.232770] init: command 'mkdir' r=0

区别在这,看来还是得想个办法把nand.ko装上

离线

楼主 #18 2019-11-12 14:03:21

太一酱鸭
会员
注册时间: 2019-07-03
已发帖子: 154
积分: 154

Re: v3s内核启动卡在文件系统挂载(cannot open root device)

有进展,把nand驱动想办法搞进去了内核

离线

楼主 #19 2019-11-12 14:11:30

太一酱鸭
会员
注册时间: 2019-07-03
已发帖子: 154
积分: 154

Re: v3s内核启动卡在文件系统挂载(cannot open root device)

[    3.563677]   #0: audiocodec
[    3.568281] EXT4-fs (nandd): couldn't mount as ext3 due to feature incompatibilities
[    3.577668] EXT4-fs (nandd): couldn't mount as ext2 due to feature incompatibilities
[    3.587244] EXT4-fs (nandd): ext4_check_descriptors: Checksum for group 0 failed (46316!=34186)
[    3.597371] EXT4-fs (nandd): group descriptors corrupted!
[    3.605735] List of all partitions:
[    3.609997] 5d00            8192 nanda  (driver?)
[    3.615685] 5d08             512 nandb  (driver?)
[    3.621312] 5d10           16384 nandc  (driver?)
[    3.627057] 5d18           32768 nandd  (driver?)
[    3.632680] 5d20           55552 nande  (driver?)
[    3.638416] No filesystem could mount root, tried:  ext3 ext2 ext4 cramfs squashfs vfat
[    3.648713] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(93,24)
[    3.658493] Backtrace: 

新的报错

离线

#20 2019-11-12 14:37:03

天马行空
会员
注册时间: 2019-11-12
已发帖子: 57
积分: 57

Re: v3s内核启动卡在文件系统挂载(cannot open root device)

太一酱鸭 说:

有进展,把nand驱动想办法搞进去了内核

请问是怎么操作的?

离线

楼主 #21 2019-11-12 14:50:43

太一酱鸭
会员
注册时间: 2019-07-03
已发帖子: 154
积分: 154

Re: v3s内核启动卡在文件系统挂载(cannot open root device)

天马行空 说:
太一酱鸭 说:

有进展,把nand驱动想办法搞进去了内核

请问是怎么操作的?

因为我有源文件。。就把他弄了makefile和kconfig,然后编译进去了。。

离线

楼主 #22 2019-11-13 14:32:29

太一酱鸭
会员
注册时间: 2019-07-03
已发帖子: 154
积分: 154

Re: v3s内核启动卡在文件系统挂载(cannot open root device)

HELLO! BOOT0 is starting!
boot0 version : 4.0.0
boot0 commit : 8 
fel flag  = 0x00000000
rtc[0] value = 0x00000000
rtc[1] value = 0x00000000
rtc[2] value = 0x00000000
rtc[3] value = 0x00000000
rtc[4] value = 0x00000000
rtc[5] value = 0x00000000
rtc[6] value = 0x00000000
rtc[7] value = 0x00000000
DRAM DRIVE INFO: V0.7
DRAM Type = 2 (2:DDR2,3:DDR3,6:LPDDR2,7:LPDDR3)
DRAM CLK = 408 MHz
DRAM zq value: 000039bb
DRAM size = 64 MB
dram size =64
Reg 0x01c20848: 0x00003333
0x01c20028 0x90041811
0x01c200a0 0x8100000f
spinand UBOOT_LAST_BLK_NUM 19
Succeed in opening spi nand flash.
block from 2 to 19
Succeed in reading Boot1 file head.
current block is 2.
current block is 3.
current block is 4.
current block is 5.
current block is 6.
current block is 7.
sum=1085a1bd
src_sum=1085a1bd
The file stored in block 2 to block 6 is perfect.
----------storage_type = 5  in boot0-------------------------
Ready to disable icache.
Jump to secend Boot.
[      0.505]

U-Boot 2011.09-rc1-00000-g2437157-dirty (Oct 25 2019 - 14:28:16) Allwinner Technology 

[      0.514]version: 1.1.0
[      0.517]uboot commit : 243715747050bc7f565cec7ce596911acd9c6805
 
[      0.527]pmbus:   ready
not set main pmu id
axp read error
probe axp20x failed
axp152 read error
probe axp15 failed
axp_probe error
[      1.141]PMU: pll1 408 Mhz,PLL6=600 Mhz
AXI=204 Mhz,AHB=204 Mhz, APB1=102 Mhz 
set power on vol to default
dcdc2_vol = 1200
axp set dcdc2_vol to 1200 failed
dcdc3_vol = 3300
axp set dcdc3_vol to 3300 failed
aldo2_vol = 2500
axp set aldo2_vol to 2500 failed
aldo3_vol = 3000
axp set aldo3_vol to 3000 failed
ldo1_vol = 3300
axp set ldo1_vol to 3300 failed
ldo2_vol = 3000
axp set ldo2_vol to 3000 failed
ldo3_vol = 3000
axp set ldo3_vol to 3000 failed
find power_sply to end
vbus exist
no battery, limit to dc
fel key new mode
run key detect
no key found
no key input
dram_para_set start
dram_para_set end
[      1.287]DRAM:  64 MiB
relocation Offset is: 0309b000
save config for small mem_size 
workmode = 0
storage type = 5
[      1.384]SPINAND: NAND_UbootInit
NAND_UbootInit start
NB1 : enter NAND_LogicInit
NandHwInit: Start Nand Hardware initializing .....
uboot:nand version: 2 54 20190712 1351 
Reg 0x01c20848: 0x3333
Reg 0x01c2085c: 0x55
Reg 0x01c20864: 0x10
uboot nand_request_tx_dma: reqest genernal dma for nand success, 0x43a34548
request general tx dma channel ok!
uboot nand_request_tx_dma: reqest genernal dma for nand success, 0x43a34564
request general rx dma channel ok!
SPI nand ID: 12c212c2 12c212c2
[SCAN_DBG] NandTwoPlaneOp: 1, DriverTwoPlaneOPCfg: 1, 0xffcfffff 
nand : get id_number_ctl fail, a
_UpdateExtAccessFreqPara: no para.
PHY_Scan_DelayMode: right delay mode 0x0
PHY_Scan_DelayMode: right delay mode 0x800
PHY_Scan_DelayMode: right delay mode,clk 100 MHz, bit[13]=0,bit[11]=1
_GetOldPhysicArch: chip 0, block 20, page 0, oob: 0x0, 0x50, 0x48, 0x59
_GetOldPhysicArch: get old physic arch ok, 0x6d 0x2!
NAND_ReadPhyArch: get old physic arch ok, use old cfg, now:0x2 0x6d - old:0x2 0x6d!


[SCAN_DBG] ==============Nand Architecture Parameter==============
[SCAN_DBG]    Nand Chip ID:         0xffff12c2 0xffffffff
[SCAN_DBG]    Nand Chip Count:      0x1
[SCAN_DBG]    Nand Chip Connect:    0x1
[SCAN_DBG]    Sector Count Of Page: 0x4
[SCAN_DBG]    Page Count Of Block:  0x40
[SCAN_DBG]    Block Count Of Die:   0x400
[SCAN_DBG]    Plane Count Of Die:   0x2
[SCAN_DBG]    Die Count Of Chip:    0x1
[SCAN_DBG]    Bank Count Of Chip:   0x1
[SCAN_DBG]    Optional Operation:   0x6d
[SCAN_DBG]    Access Frequence:     0x64
[SCAN_DBG] =======================================================


[FORMAT_DBG] ===========Logical Architecture Parameter===========
[FORMAT_DBG]    Page Count of Logic Block:  0x40
[FORMAT_DBG]    Sector Count of Logic Page: 0x8
[FORMAT_DBG]    Block Count of Die:         0x200
[FORMAT_DBG]    Die Count:                  0x1
[FORMAT_DBG] ===================================================
nand:found factory_bad_block(new version) table in block:26!
nand:support secure storage
secure storage updata ok!
nand secure storage ok: 21,22
NandHwInit: End Nand Hardware initializing ..... OK!
nand : get CapacityLevel fail, a
not burn nand partition table!
nand:found factory_bad_block(new version) table in block:26!
nand:support secure storage
start block:23
[NE]mbr read 12
[NE]mbr read ok!
[NE]mbr read end!
[NE]mbr partition start!
[NE]mbr partition ok!
[NE]mbr partition end!
[NE]new nand info init!!
[NE]mbr read 12
[NE]mbr read ok!
[NE]mbr read end!
[NE]get mbr_data table
[ND]ok  get factory_bad_block table!
[NE]new_bad_block table new format!
[ND]ok get a new bad table!
[ND]build all_phy partition start!
[NE]mbr partition start!
[NE]mbr partition ok!
[NE]mbr partition end!
[NE]partition_num: 0,size :0x37e00,cross_talk 0
[NE]part mbr size: 0x800 type: 0
[NE]part bootloader size: 0x4000 type: 0
[NE]part env size: 0x400 type: 0
[NE]part boot size: 0x8000 type: 0
[NE]part rootfs size: 0x10000 type: 0
[NE]part UDISK size: 0x1b200 type: 0
[ND]build 1 phy_partition !
[ND]nand_info->type :0
[ND]nand_info->SectorNumsPerPage :8
[ND]nand_info->BytesUserData :16
[ND]nand_info->PageNumsPerBlk :64
[ND]nand_info->BlkPerChip :512
[ND]nand_info->FirstBuild :0
[ND]nand_info->FullBitmap :10
[ND]nand_info->bad_block_addr.Chip_NO :0
[ND]nand_info->bad_block_addr.Block_NO :13
[ND]nand_info->mbr_block_addr.Chip_NO :0
[ND]nand_info->mbr_block_addr.Block_NO :12
[ND]nand_info->no_used_block_addr.Chip_NO :0
[ND]nand_info->no_used_block_addr.Block_NO :16
[ND]nand_info->new_bad_block_addr.Chip_NO :0
[ND]nand_info->new_bad_block_addr.Block_NO :14
[ND]nand_info->new_bad_page_addr :65535
[ND]nand_info->partition_nums :1
[ND]sizeof partition:1192
[ND]nand_info->partition:0:
[ND]size:0x37e00
[ND]cross_talk:0x0
[ND]attribute:0x0
[ND]start: chip:0 block:16
[ND]end  : chip:0 block:511
NB1 : nftl num: 1 
 init nftl: 0 
[ND]nand_partition0
[ND]nftl start:496,49
[ND]first
[ND]before second 496 447.
[NE]smart->version:aaaaaa01;
[NE]smart->total_recv_read_sectors:23462;
[NE]smart->total_recv_write_sectors:36902;
[NE]smart->total_real_read_pages:2933;
[NE]smart->total_real_write_pages:4672;
[NE]smart->total_recv_discard_sectors:0;
[NE]smart->total_real_discard_sectors:0;
[NE]smart->total_recv_read_claim_pages:0;
[NE]smart->total_gc_times:0;
[NE]smart->total_gc_pages:0;
[NE]smart->total_wl_times:0;
[NE]smart->total_real_read_error_pages:0;
[NE]smart->total_real_write_error_pages:0;
[NE]smart->total_normal_power_cycles:2;
[NE]smart->total_unusual_power_cycles:0;
[NE]smart->max_block_erase_times:0;
[NE]smart->min_block_erase_times:0;
[NE]smart->max_block_used_counter:0;
[NE]smart->min_block_used_counter:0;
[NE]smart->read_reclaim_utc:0;
[NE]recover_phy_page_mapping no used page 32!!
[ND]recover 419 32
[ND]A64 nand2.0 version:0009 
[ND]zone->nand_chip->blk_per_chip: 496 
[ND]zone->nand_chip->bytes_per_page: 4096 
[ND]zone->nand_chip->pages_per_blk: 64 
[ND]zone->nand_chip->max_erase_times: 3000 
[ND]zone->nand_chip->support_read_reclaim: 0 
[ND]zone->test: 0 
[ND]zone->zone_no: 0 
[ND]zone->zone_attr: 0 
[ND]zone->blocks: 496 
[ND]zone->bad_block: 0 
[ND]zone->logic_cap_in_sects: 228864 
[ND]zone->backup_cap_in_sects: 25088 
[ND]zone->free_block_num: 422 
[ND]zone->gc_strategy.start_gc_free_blocks: 9 
[ND]zone->gc_strategy.stop_gc_free_blocks: 32 
[ND]zone->gc_strategy.gc_page: 0 
[ND]zone->gc_strategy.process: 1 
[ND]zone->prio_gc.prio_type : 0 
[ND]zone->zone_start_phy_block->phy_block.Block_NO: 0 
[ND]zone->zone_end_phy_block->phy_block.Block_NO: 495 
[ND]zone->zone_phy_page_map_for_gc: 4293e6c8 
[ND]zone->current_block.user_info: 4293e238 
[ND]zone->current_block.block_info: 4291f824 
[ND]zone->current_block.block_info->phy_block.Block_NO: 419 
[ND]zone->current_block.page_used: 32 
[ND]zone->current_block.block_info->block_used_count: 73 
[ND]zone->read_reclaim_complete: 0 
[ND]zone->temp_page_buf: 42920320 
[ND]zone->max_erase_num: 1 
[ND]zone->cache.cache_totals: 0 
[ND]zone->cfg->nftl_dont_use_cache: 1 
[ND]zone->cfg->nftl_use_cache_sort: 1 
[ND]zone->cfg->nftl_support_gc_read_reclaim: 1 
[ND]zone->cfg->nftl_support_wear_leveling: 1 
[ND]zone->cfg->nftl_need_erase: 0 
[ND]zone->cfg->nftl_min_free_block_num: 19 
[ND]zone->cfg->nftl_gc_threshold_free_block_num: 8 
[ND]zone->cfg->nftl_min_free_block: 4 
[ND]zone->cfg->nftl_gc_threshold_ratio_numerator: 2 
[ND]zone->cfg->nftl_gc_threshold_ratio_denominator: 3 
[ND]zone->cfg->nftl_max_cache_num: 10 
[ND]zone->cfg->nftl_max_cache_write_num: 1 
[ND]zone->cfg->nftl_cross_talk: 0 
[ND]zone->cfg->nftl_read_claim_interval: 1296000 
[NE]smart->version:aaaaaa01;
[NE]smart->total_recv_read_sectors:23462;
[NE]smart->total_recv_write_sectors:36902;
[NE]smart->total_real_read_pages:2966;
[NE]smart->total_real_write_pages:4672;
[NE]smart->total_recv_discard_sectors:0;
[NE]smart->total_real_discard_sectors:0;
[NE]smart->total_recv_read_claim_pages:0;
[NE]smart->total_gc_times:0;
[NE]smart->total_gc_pages:0;
[NE]smart->total_wl_times:0;
[NE]smart->total_real_read_error_pages:0;
[NE]smart->total_real_write_error_pages:0;
[NE]smart->total_normal_power_cycles:2;
[NE]smart->total_unusual_power_cycles:0;
[NE]smart->max_block_erase_times:0;
[NE]smart->min_block_erase_times:0;
[NE]smart->max_block_used_counter:0;
[NE]smart->min_block_used_counter:0;
[NE]smart->read_reclaim_utc:0;
[ND]nftl ok!
[ND] reserved panic block 494!
[ND] reserved panic block 493!
[ND] reserved panic block 492!
[ND]max_erase_times = 65000
[ND] not find panic data, no need to recovery!
[ND]nftl_add ok
NB1 : NAND_LogicInit ok, result = 0x0 
[      2.161]sunxi flash init ok
In:    serial
Out:   serial
Err:   serial
--------fastboot partitions--------
-total partitions:5-
-name-        -start-       -size-      
bootloader  : 100000        800000      
env         : 900000        80000       
boot        : 980000        1000000     
rootfs      : 1980000       2000000     
UDISK       : 3980000       0           
-----------------------------------
base bootcmd=run setargs_spinor boot_normal
bootcmd set setargs_nand
key 0
cant find rcvy value
cant find fstbt value
no misc partition is found
to be run cmd=run setargs_spinor boot_normal
WORK_MODE_BOOT
board_status_probe
adver not need show
sunxi_bmp_logo_display

** Unable to read "bootlogo.bmp" from sunxi_flash 0:1 **
sunxi bmp info error : unable to open logo file bootlogo.bmp
read bootlogo partition fail,start_block=0x0,rblock=0x0 ,ret=0
Not a JPG file ?
parse_header failed

Use decode 2x1 sampling
sunxi_read_bootlogo: jpg convert argb  
[      2.256]Hit any key to stop autoboot:  0 
read boot or recovery all
[      3.082]sunxi flash read :offset 980000, 11960124 bytes OK
no signature
[      3.104]ready to boot
------------------------------1111----------------------
board_display_setenv:  disp_para=0 init_disp=0 tv_vdid=0
para err in disp_ioctl, cmd = 0xa,screen id = 1
[      3.121][mmc]: MMC Device 2 not found
[      3.125][mmc]:  mmc  not find,so not exit
NAND_UbootExit
NB1 : NAND_LogicExit
nand release dma:43a34548
nand release dma:0
reload config to 0x43000000 
[      3.129]
Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0
[    0.000000] Linux version 3.4.39 (root@wuyu-virtual-machine) (gcc version 4.6.3 20120201 (prerelease) (crosstool-NG linaro-1.13.1-2012.02-20120222 - Linaro GCC 2012.02) ) #27 Wed Nov 13 13:40:36 CST 2019
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine: sun8i
[    0.000000] Ignoring unrecognised tag 0x00000000
[    0.000000] Initialized persistent memory from 41d20800-41d307ff
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] On node 0 totalpages: 16384
[    0.000000] free_area_init_node: node 0, pgdat c058ca1c, node_mem_map c061c000
[    0.000000]   Normal zone: 128 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 16256 pages, LIFO batch:3
[    0.000000] script_init enter!
[    0.000000] script_init exit!
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/nandd init=/init loglevel=8 partitions=bootloader@mmcblk0p2:env@mmcblk0p5:boot@mmcblk0p6:rootfs@mmcblk0p7:UDISK@mmcblk0p1 mac_addr= uid=8882f574-3e53-45 kmemleak=on sunxi_mbr=bootloader@[2048:16384]env@[18432:1024]boot@[19456:32768]rootfs@[52224:65536]UDISK@[117760:0] boot_type=5 disp_para=0 init_disp=0 tv_vdid=0 fb_base=0x43e80000 config_size=49152
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Memory: 64MB = 64MB total
[    0.000000] Memory: 19708k/19708k available, 45828k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xc4800000 - 0xff000000   ( 936 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc4000000   (  64 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0521000   (5220 kB)
[    0.000000]       .init : 0xc0521000 - 0xc0546000   ( 148 kB)
[    0.000000]       .data : 0xc0546000 - 0xc058d140   ( 285 kB)
[    0.000000]        .bss : 0xc058d164 - 0xc061b7a0   ( 570 kB)
[    0.000000] NR_IRQS:544
[    0.000000] 524 ahb1 set parent pll_periph0d2
[    0.000000] Architected local timer running at 24.00MHz.
[    0.000000] Switching to timer-based delay loop
[    0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
[    0.000000] Console: colour dummy device 80x30
[    0.000261] Calibrating delay loop (skipped), value calculated using timer frequency.. 4800.00 BogoMIPS (lpj=24000000)
[    0.000303] pid_max: default: 32768 minimum: 301
[    0.000563] Mount-cache hash table entries: 512
[    0.001427] CPU: Testing write buffer coherency: ok
[    0.001777] Setting up static identity map for 0x403e3cd0 - 0x403e3d04
[    0.002832] devtmpfs: initialized
[    0.006387] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.006632] pinctrl core: initialized pinctrl subsystem
[    0.007379] NET: Registered protocol family 16
[    0.008219] DMA: preallocated 128 KiB pool for atomic coherent allocations
[    0.008306] script_sysfs_init success
[    0.008370] sunxi_dump_init success
[    0.009863] gpiochip_add: registered GPIOs 0 to 223 on device: sunxi-pinctrl
[    0.011702] sunxi-pinctrl sunxi-pinctrl: initialized sunXi PIO driver
[    0.013310] persistent_ram: error in header, 4
[    0.013338] persistent_ram: found existing buffer, size 25517, start 25517
[    0.070024] console [ram-1] enabled
[    0.070752] [sunxi-module]: [sunxi-module.0] probe success
[    0.071144] script config pll_isp to 456 Mhz
[    0.071354] Not Found clk pll_video in script 
[    0.071686] script config pll_ve to 456 Mhz
[    0.071885] Not Found clk pll_periph0 in script 
[    0.072065] Not Found clk pll_de in script 
[    0.072381] sunxi_default_clk_init
[    0.072555] try to set pll6ahb1 to 200000000
[    0.072734] Error not get clk pll6ahb1
[    0.073060] Error not get clk pll6ahb1try to set ahb1 to 200000000
[    0.073415] try to set apb1 to 100000000
[    0.074389] ===fe3o4==== sunxi_root_procfs_attach ret:0
[    0.081356] bio: create slab <bio-0> at 0
[    0.081956] pwm module init!
[    0.085284] SCSI subsystem initialized
[    0.085848] usbcore: registered new interface driver usbfs
[    0.086159] usbcore: registered new interface driver hub
[    0.086683] usbcore: registered new device driver usb
[    0.087109] twi_chan_cfg()341 - [twi0] has no twi_speed!
[    0.087438] twi_chan_cfg()352 - [twi0] has no twi_regulator.
[    0.087621] twi_chan_cfg()341 - [twi1] has no twi_speed!
[    0.087944] twi_chan_cfg()352 - [twi1] has no twi_regulator.
[    0.088124] Linux video capture interface: v2.00
[    0.088824] Advanced Linux Sound Architecture Driver Version 1.0.25.
[    0.090359] cfg80211: Calling CRDA to update world regulatory domain
[    0.091462] Switching to clocksource arch_sys_counter
[    0.101432] NET: Registered protocol family 2
[    0.102192] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.103273] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    0.103694] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.103919] TCP: Hash tables configured (established 2048 bind 2048)
[    0.104244] TCP: reno registered
[    0.104428] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.104776] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.105497] NET: Registered protocol family 1
[    0.106140] Unpacking initramfs...
[    0.811612] Freeing initrd memory: 5000K
[    0.812372] sunxi_reg_init enter
[    0.816106] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.816387] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.817181] JFS: nTxBlock = 193, nTxLock = 1544
[    0.818054] msgmni has been set to 48
[    0.819765] io scheduler noop registered
[    0.819962] io scheduler deadline registered
[    0.820351] io scheduler cfq registered (default)
[    0.821196] [DISP]disp_module_init
[    0.821881] cmdline,disp=0
[    0.823055] rotation_sw module is config as no used
[    0.823413] [DISP] disp_get_rotation_sw,line:78:disp 0 out of range? g_rot_sw=0
[    0.823760] [DISP] disp_init_connections,line:289:NULL pointer: 0, 0
[    0.825554] [DISP] Fb_map_kernel_logo,line:956:kernel logo para error!
[    0.828641] [DISP]disp_module_init finish
[    0.829282] sw_uart_get_devinfo()1503 - uart2 has no uart_regulator.
[    0.829866] uart2: ttyS0 at MMIO 0x1c28800 (irq = 34) is a SUNXI
[    0.830285] sw_uart_pm()890 - uart2 clk is already enable
[    0.830488] sw_console_setup()1233 - console setup baud 115200 parity n bits 8, flow n
[    1.025382] console [ttyS0] enabled
[    1.560007] [NAND]panic_buff_handle 0xc494e000 ,0x40d78000
[    1.566417] [NAND]nand init start, spinand_used_flag is 1
[    1.572661] kernel:nand version: 2 54 20190712 1351 
[    1.579403] request tx DMA
[    1.582622] request rx DMA
[    1.586634] NAND_ReadPhyArch: get old physic arch ok, use old cfg, now:0x2 0x6d - old:0x2 0x6d!
[    1.612008] [NE]mbr read 12
[    1.615687] [NE]mbr read ok!
[    1.619226] [NE]mbr read end!
[    1.622758] [NE]mbr partition start!
[    1.627321] [NE]mbr partition ok!
[    1.631365] [NE]mbr partition end!
[    1.635339] [NE]new nand info init!!
[    1.639747] [NE]mbr read 12
[    1.643442] [NE]mbr read ok!
[    1.646991] [NE]mbr read end!
[    1.650513] [NE]get mbr_data table
[    1.655094] [ND]ok  get factory_bad_block table!
[    1.661216] [NE]new_bad_block table new format!
[    1.666831] [ND]ok get a new bad table!
[    1.671930] [ND]build all_phy partition start!
[    1.677218] [NE]mbr partition start!
[    1.681776] [NE]mbr partition ok!
[    1.685654] [NE]mbr partition end!
[    1.689774] [NE]partition_num: 0,size :0x37e00,cross_talk 0
[    1.696206] [NE]part mbr size: 0x800 type: 0
[    1.701175] [NE]part bootloader size: 0x4000 type: 0
[    1.707048] [NE]part env size: 0x400 type: 0
[    1.712012] [NE]part boot size: 0x8000 type: 0
[    1.717299] [NE]part rootfs size: 0x10000 type: 0
[    1.722749] [NE]part UDISK size: 0x1b200 type: 0
[    1.728194] [ND]build 1 phy_partition !
[    1.732835] [ND]nand_info->type :0
[    1.736808] [ND]nand_info->SectorNumsPerPage :8
[    1.742206] [ND]nand_info->BytesUserData :16
[    1.747153] [ND]nand_info->PageNumsPerBlk :64
[    1.752212] [ND]nand_info->BlkPerChip :512
[    1.757108] [ND]nand_info->FirstBuild :0
[    1.761678] [ND]nand_info->FullBitmap :-1068159692
[    1.767206] [ND]nand_info->bad_block_addr.Chip_NO :0
[    1.773084] [ND]nand_info->bad_block_addr.Block_NO :13
[    1.779004] [ND]nand_info->mbr_block_addr.Chip_NO :0
[    1.784888] [ND]nand_info->mbr_block_addr.Block_NO :12
[    1.790825] [ND]nand_info->no_used_block_addr.Chip_NO :0
[    1.797085] [ND]nand_info->no_used_block_addr.Block_NO :16
[    1.803409] [ND]nand_info->new_bad_block_addr.Chip_NO :0
[    1.809668] [ND]nand_info->new_bad_block_addr.Block_NO :14
[    1.815992] [ND]nand_info->new_bad_page_addr :65535
[    1.821778] [ND]nand_info->partition_nums :1
[    1.826724] [ND]sizeof partition:1192
[    1.831003] [ND]nand_info->partition:0:
[    1.835606] [ND]size:0x37e00
[    1.838989] [ND]cross_talk:0x0
[    1.842585] [ND]attribute:0x0
[    1.846072] [ND]start: chip:0 block:16
[    1.850594] [ND]end  : chip:0 block:511
[    1.855373] [ND]nand_partition0
[    1.859249] [ND]nftl start:496,49
[    1.863446] [ND]first
[    1.924704] [ND]before second 496 447.
[    1.956970] [NE]smart->version:aaaaaa01;
[    1.961575] [NE]smart->total_recv_read_sectors:23462;
[    1.967543] [NE]smart->total_recv_write_sectors:36902;
[    1.973482] [NE]smart->total_real_read_pages:2933;
[    1.979157] [NE]smart->total_real_write_pages:4672;
[    1.984801] [NE]smart->total_recv_discard_sectors:0;
[    1.990687] [NE]smart->total_real_discard_sectors:0;
[    1.996414] [NE]smart->total_recv_read_claim_pages:0;
[    2.002255] [NE]smart->total_gc_times:0;
[    2.006954] [NE]smart->total_gc_pages:0;
[    2.011527] [NE]smart->total_wl_times:0;
[    2.016226] [NE]smart->total_real_read_error_pages:0;
[    2.022066] [NE]smart->total_real_write_error_pages:0;
[    2.027989] [NE]smart->total_normal_power_cycles:2;
[    2.033774] [NE]smart->total_unusual_power_cycles:0;
[    2.039500] [NE]smart->max_block_erase_times:0;
[    2.044907] [NE]smart->min_block_erase_times:0;
[    2.050164] [NE]smart->max_block_used_counter:0;
[    2.055501] [NE]smart->min_block_used_counter:0;
[    2.060996] [NE]smart->read_reclaim_utc:0;
[    2.078118] [NE]recover_phy_page_mapping no used page 32!!
[    2.084615] [ND]recover 419 32
[    2.088205] [ND]A64 nand2.0 version:0009 
[    2.092878] [ND]zone->nand_chip->blk_per_chip: 496 
[    2.098649] [ND]zone->nand_chip->bytes_per_page: 4096 
[    2.104584] [ND]zone->nand_chip->pages_per_blk: 64 
[    2.110371] [ND]zone->nand_chip->max_erase_times: 3000 
[    2.116388] [ND]zone->nand_chip->support_read_reclaim: 0 
[    2.122756] [ND]zone->test: 0 
[    2.126336] [ND]zone->zone_no: 0 
[    2.130225] [ND]zone->zone_attr: 0 
[    2.134295] [ND]zone->blocks: 496 
[    2.138408] [ND]zone->bad_block: 0 
[    2.142492] [ND]zone->logic_cap_in_sects: 228864 
[    2.147925] [ND]zone->backup_cap_in_sects: 25088 
[    2.153515] [ND]zone->free_block_num: 422 
[    2.158266] [ND]zone->gc_strategy.start_gc_free_blocks: 9 
[    2.164734] [ND]zone->gc_strategy.stop_gc_free_blocks: 32 
[    2.171061] [ND]zone->gc_strategy.gc_page: 0 
[    2.176248] [ND]zone->gc_strategy.process: 1 
[    2.181308] [ND]zone->prio_gc.prio_type : 0 
[    2.186256] [ND]zone->zone_start_phy_block->phy_block.Block_NO: 0 
[    2.193502] [ND]zone->zone_end_phy_block->phy_block.Block_NO: 495 
[    2.200608] [ND]zone->zone_phy_page_map_for_gc: c0d86c00 
[    2.206963] [ND]zone->current_block.user_info: c0d51400 
[    2.213093] [ND]zone->current_block.block_info: c1903aec 
[    2.219447] [ND]zone->current_block.block_info->phy_block.Block_NO: 419 
[    2.227135] [ND]zone->current_block.page_used: 32 
[    2.232824] [ND]zone->current_block.block_info->block_used_count: 73 
[    2.240224] [ND]zone->read_reclaim_complete: 0 
[    2.245605] [ND]zone->temp_page_buf: c0d84000 
[    2.250763] [ND]zone->max_erase_num: 1 
[    2.255366] [ND]zone->cache.cache_totals: 0 
[    2.260328] [ND]zone->cfg->nftl_dont_use_cache: 0 
[    2.265861] [ND]zone->cfg->nftl_use_cache_sort: 1 
[    2.271553] [ND]zone->cfg->nftl_support_gc_read_reclaim: 1 
[    2.277962] [ND]zone->cfg->nftl_support_wear_leveling: 1 
[    2.284332] [ND]zone->cfg->nftl_need_erase: 0 
[    2.289471] [ND]zone->cfg->nftl_min_free_block_num: 19 
[    2.295647] [ND]zone->cfg->nftl_gc_threshold_free_block_num: 8 
[    2.302462] [ND]zone->cfg->nftl_min_free_block: 4 
[    2.308139] [ND]zone->cfg->nftl_gc_threshold_ratio_numerator: 2 
[    2.315047] [ND]zone->cfg->nftl_gc_threshold_ratio_denominator: 3 
[    2.322295] [ND]zone->cfg->nftl_max_cache_num: 10 
[    2.327829] [ND]zone->cfg->nftl_max_cache_write_num: 1 
[    2.334006] [ND]zone->cfg->nftl_cross_talk: 0 
[    2.339148] [ND]zone->cfg->nftl_read_claim_interval: 1296000 
[    2.345765] [NE]smart->version:aaaaaa01;
[    2.350478] [NE]smart->total_recv_read_sectors:23462;
[    2.356301] [NE]smart->total_recv_write_sectors:36902;
[    2.362376] [NE]smart->total_real_read_pages:2966;
[    2.367907] [NE]smart->total_real_write_pages:4672;
[    2.373693] [NE]smart->total_recv_discard_sectors:0;
[    2.379420] [NE]smart->total_real_discard_sectors:0;
[    2.385160] [NE]smart->total_recv_read_claim_pages:0;
[    2.391139] [NE]smart->total_gc_times:0;
[    2.395696] [NE]smart->total_gc_pages:0;
[    2.400410] [NE]smart->total_wl_times:0;
[    2.404967] [NE]smart->total_real_read_error_pages:0;
[    2.410806] [NE]smart->total_real_write_error_pages:0;
[    2.416867] [NE]smart->total_normal_power_cycles:2;
[    2.422511] [NE]smart->total_unusual_power_cycles:0;
[    2.428381] [NE]smart->max_block_erase_times:0;
[    2.433636] [NE]smart->min_block_erase_times:0;
[    2.438876] [NE]smart->max_block_used_counter:0;
[    2.444370] [NE]smart->min_block_used_counter:0;
[    2.449703] [NE]smart->read_reclaim_utc:0;
[    2.454609] [ND]nftl ok!
[    2.457608] [ND] reserved panic block 494!
[    2.462374] [ND] reserved panic block 493!
[    2.467268] [ND] reserved panic block 492!
[    2.472099] [ND]max_erase_times = 65000
[    2.476777] [NAND]nand_dev add mbr
[    2.480940] [NAND]nand_dev add bootloader
[    2.487342]  nanda:
[    2.490447] [NAND]nand_dev add env
[    2.497503]  nandb: unknown partition table
[    2.503115] [NAND]nand_dev add boot
[    2.510238]  nandc: unknown partition table
[    2.515627] [NAND]nand_dev add rootfs
[    2.523153]  nandd: unknown partition table
[    2.528577] [NAND]nand_dev add UDISK
[    2.534528]  nande: unknown partition table
[    2.540295] [NAND]nand init end 
[    2.544292] sunxi_spi_chan_cfg()1376 - [spi-0] has no spi_regulator.
[    2.551782] sunxi_spi_register_spidev()2009 - Get spi devices modalias failed
[    2.559951] sunxi_spi_init()2073 - register spi devices board info failed 
[    2.568021] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.595808] sunxi-ehci sunxi-ehci.1: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.605161] sunxi-ehci sunxi-ehci.1: new USB bus registered, assigned bus number 1
[    2.614138] sunxi-ehci sunxi-ehci.1: irq 104, io mem 0xf1c1a000
[    2.640070] sunxi-ehci sunxi-ehci.1: USB 0.0 started, EHCI 1.00
[    2.648080] hub 1-0:1.0: USB hub found
[    2.652545] hub 1-0:1.0: 1 port detected
[    2.657817] sunxi-ehci sunxi-ehci.1: remove, state 1
[    2.663640] usb usb1: USB disconnect, device number 1
[    2.999542] sunxi-ehci sunxi-ehci.1: USB bus 1 deregistered
[    3.016284] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    3.043523] sunxi-ohci sunxi-ohci.1: SW USB2.0 'Open' Host Controller (OHCI) Driver
[    3.052479] sunxi-ohci sunxi-ohci.1: new USB bus registered, assigned bus number 1
[    3.061340] sunxi-ohci sunxi-ohci.1: irq 105, io mem 0xf1c1a400
[    3.124994] hub 1-0:1.0: USB hub found
[    3.129535] hub 1-0:1.0: 1 port detected
[    3.134618] sunxi-ohci sunxi-ohci.1: remove, state 1
[    3.140410] usb usb1: USB disconnect, device number 1
[    3.147109] sunxi-ohci sunxi-ohci.1: USB bus 1 deregistered
[    3.163696] Initializing USB Mass Storage driver...
[    3.169628] usbcore: registered new interface driver usb-storage
[    3.176586] USB Mass Storage support registered.
[    3.182499] file system registered
[    3.188444] android_usb gadget: Mass Storage Function, version: 2009/09/11
[    3.196537] android_usb gadget: Number of LUNs=1
[    3.201906]  lun0: LUN: removable file: (no medium)
[    3.208070] android_usb gadget: android_usb ready
[    3.213755] sunxikbd_script_init: key para not found, used default para. 
[    3.222324] sunxikbd_init end
[    3.226371] sunxi-rtc sunxi-rtc: rtc core: registered sunxi-rtc as rtc0
[    3.234260] sunxi cedar version 0.1 
[    3.238633] [cedar]: install start!!!
[    3.243262] [cedar]: install end!!!
[    3.247399] step1 : gsensor_fetch_sysconfig_para
[    3.252927] step2 : gsensor_fetch_sysconfig_para
[    3.258269] [MIR3DA] fetch_sysconfig_para failed!
[    3.258282] 
[    3.265693] sunxi_wdt_init_module: sunxi WatchDog Timer Driver v1.0
[    3.273130] sunxi_wdt_probe: devm_ioremap return wdt_reg 0xf1c20ca0, res->start 0x01c20ca0, res->end 0x01c20cbf
[    3.284793] sunxi_wdt_probe: initialized (g_timeout=16s, g_nowayout=0)
[    3.292855] wdt_enable, write reg 0xf1c20cb8 val 0x00000000
[    3.299306] wdt_set_tmout, write 0x000000b0 to mode reg 0xf1c20cb8, actual timeout 16 sec
[    3.308922] [mmc]: SD/MMC/SDIO Host Controller Driver(v1.114 2015-6-2 10:21) Compiled in Nov 12 2019 at 14:44:34
[    3.320709] [mmc]: get mmc0's sdc_power failed
[    3.325882] [mmc]: MMC host used card: 0x1, boot card: 0x0, io_card 0
[    3.334577] [mmc]: sdc0 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.348076] =========sunxi_leds_init============
[    3.353484] sunxi_leds_fetch_sysconfig_para leds is not used in config
[    3.361131] =========script_get_err============
[    3.366754] usbcore: registered new interface driver usbhid
[    3.373233] usbhid: USB HID core driver
[    3.378614] ashmem: initialized
[    3.382549] logger: created 256K log 'log_main'
[    3.387930] logger: created 32K log 'log_events'
[    3.393624] logger: created 32K log 'log_radio'
[    3.399037] logger: created 32K log 'log_system'
[    3.406336] [audiocodec] mic1_mic3_used type err! 
[    3.413109] asoc: sndcodec <-> sunxi-codec mapping ok
[    3.421428] [DAUDIO]sunxi-daudio cannot find any using configuration for controllers, return directly!
[    3.432436] [I2S]snddaudio cannot find any using configuration for controllers, return directly!
[    3.442643] [DAUDIO0] driver not init,just return.
[    3.448963] IPv4 over IPv4 tunneling driver
[    3.455088] TCP: cubic registered
[    3.458995] Initializing XFRM netlink socket
[    3.464476] NET: Registered protocol family 10
[    3.471321] IPv6 over IPv4 tunneling driver
[    3.477351] NET: Registered protocol family 17
[    3.483357] ThumbEE CPU extension supported.
[    3.488341] Registering SWP/SWPB emulation handler
[    3.494829] [HDMI]ep952_module_init begin
[    3.500015] sunxi-rtc sunxi-rtc: setting system clock to 1970-01-01 00:00:06 UTC (6)
[    3.511591] [rf_pm]: Did not config module_power0 in sys_config
[    3.518428] [rf_pm]: Did not config module_power1 in sys_config
[    3.525429] [rf_pm]: Did not config module_power2 in sys_config
[    3.532255] [rf_pm]: Did not config module_power3 in sys_config
[    3.539200] [rf_pm]: mod has no chip_en gpio
[    3.544163] [rf_pm]: regulator on.
[    3.548148] [rf_pm]: Get ap 32k clk out failed!
[    3.553555] [wifi_pm]: failed to fetch wifi configuration!
[    3.559871] ALSA device list:
[    3.563379]   #0: audiocodec
[    3.567969] EXT3-fs (nandd): error: couldn't mount because of unsupported optional features (40)
[    3.578516] EXT2-fs (nandd): error: couldn't mount because of unsupported optional features (40)
[    3.589262] EXT4-fs (nandd): ext4_check_descriptors: Checksum for group 0 failed (29821!=36537)
[    3.599390] EXT4-fs (nandd): group descriptors corrupted!
[    3.608755] List of all partitions:
[    3.612950] 5d00            8192 nanda  (driver?)
[    3.618560] 5d08             512 nandb  (driver?)
[    3.624337] 5d10           16384 nandc  (driver?)
[    3.629944] 5d18           32768 nandd  (driver?)
[    3.635572] 5d20           55552 nande  (driver?)
[    3.641326] No filesystem could mount root, tried:  ext3 ext2 ext4 cramfs squashfs vfat jfs
[    3.652326] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(93,24)
[    3.661964] Backtrace: 
[    3.665218] [<c0011508>] (dump_backtrace+0x0/0x110) from [<c03de6e0>] (dump_stack+0x18/0x1c)
[    3.674866]  r6:00008000 r5:c183d028 r4:c183d028 r3:00000001
[    3.682237] [<c03de6c8>] (dump_stack+0x0/0x1c) from [<c03de8e8>] (panic+0x78/0x1cc)
[    3.691170] [<c03de870>] (panic+0x0/0x1cc) from [<c0521d18>] (mount_block_root+0x240/0x290)
[    3.700715]  r3:c1821f0c r2:00000020 r1:c1821f38 r0:c049ad9e
[    3.708049]  r7:c0541c80
[    3.711257] [<c0521ad8>] (mount_block_root+0x0/0x290) from [<c0521dc0>] (mount_root+0x58/0x68)
[    3.721263] [<c0521d68>] (mount_root+0x0/0x68) from [<c0521f00>] (prepare_namespace+0x130/0x190)
[    3.731442]  r5:c0541c91 r4:c058d1e4
[    3.735977] [<c0521dd0>] (prepare_namespace+0x0/0x190) from [<c0521944>] (kernel_init+0x16c/0x1a8)
[    3.746348]  r5:c0541c78 r4:00000007
[    3.750904] [<c05217d8>] (kernel_init+0x0/0x1a8) from [<c001f270>] (do_exit+0x0/0x660)

以上是新的启动日志,ext4 check的时候有问题,不知道怎么搞了现在

离线

楼主 #23 2019-11-13 14:46:55

太一酱鸭
会员
注册时间: 2019-07-03
已发帖子: 154
积分: 154

Re: v3s内核启动卡在文件系统挂载(cannot open root device)

@晕哥 求助一下晕哥

离线

#24 2019-11-13 14:53:59

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,223
积分: 9197

Re: v3s内核启动卡在文件系统挂载(cannot open root device)

nandd 是根文件系统所在分区?看起来文件系统不对,log显示测试各种文件系统,还是没有检测到合适的,然后狗带了。


你按精华帖3那样,从usb启动linux,然后把整个nand挂载成u盘,看是什么情况。





离线

楼主 #25 2019-11-13 14:55:56

太一酱鸭
会员
注册时间: 2019-07-03
已发帖子: 154
积分: 154

Re: v3s内核启动卡在文件系统挂载(cannot open root device)

晕哥 说:

nandd 是根文件系统所在分区?看起来文件系统不对,log显示测试各种文件系统,还是没有检测到合适的,然后狗带了。

是的,nandd是根文件系统所在分区,但是ext2ext3出现的都是 error: couldn't mount because of unsupported optional features,ext4出现的是ext4_check_descriptors: Checksum for group 0 failed (29821!=36537),证明文件系统是ext4,但是检测的时候出现了问题

离线

#26 2019-11-13 15:26:37

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,223
积分: 9197

Re: v3s内核启动卡在文件系统挂载(cannot open root device)

https://bbs.archlinux.org/viewtopic.php?id=179266
https://www.linuxquestions.org/questions/linux-newbie-8/ext4-fs-group-descriptors-corrupted-4175548263/

可能是ext4文件系统出有问题了, 也可能是在 make menuconfig 修改ext4中某个属性, 我记得上次有个网友这么解决的,但是没有找到帖子。





离线

楼主 #27 2019-11-14 10:14:31

太一酱鸭
会员
注册时间: 2019-07-03
已发帖子: 154
积分: 154

Re: v3s内核启动卡在文件系统挂载(cannot open root device)

后续,我直接自己把target里所有文件夹制作成了ext4文件系统,可以用,参考https://blog.csdn.net/renlonggg/article/details/80911607
https://blog.csdn.net/P40814001/article/details/82892337 第一条命令。注意文件系统制作时候要避开一些特性,第二个链接有说明。
然后进去之后一直提示getty有问题,我直接用了晕哥一个诀窍,参考 https://whycan.cn/t_2479.html#p27557
修改/init/inittab 修改成不需要登录
# Put a getty on the serial port
#console::respawn:/sbin/getty -L  console 0 vt100 # GENERIC_SERIAL 这个要输入登录账号密码
console::respawn:-/bin/sh    ###这个是不需要登录

目前可以进入终端

离线

楼主 #28 2019-11-19 10:25:39

太一酱鸭
会员
注册时间: 2019-07-03
已发帖子: 154
积分: 154

Re: v3s内核启动卡在文件系统挂载(cannot open root device)

重新出现一个问题,因为之前sdk里的文件系统版本太老了,我想换成新的,但是在成功分区,成功挂载之后,显示Failed to execute /linuxrc. Attempting defaults... 看了一下linuxrc是可执行的,存在的,换成/bin/sh也不行,莫非是内核和文件系统编译需要同一个编译器吗?召唤一下晕哥@晕哥

离线

#29 2019-11-19 10:54:32

sindy
会员
注册时间: 2017-09-09
已发帖子: 146
积分: 146

Re: v3s内核启动卡在文件系统挂载(cannot open root device)

怎么感觉你的文件系统可能缺了什么库文件呢?

离线

#30 2019-11-19 11:13:25

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,223
积分: 9197

Re: v3s内核启动卡在文件系统挂载(cannot open root device)





离线

楼主 #31 2019-12-03 11:59:27

太一酱鸭
会员
注册时间: 2019-07-03
已发帖子: 154
积分: 154

Re: v3s内核启动卡在文件系统挂载(cannot open root device)

忘记把这个贴结尾了。。说一下我后来解决方法,就是自己把ext4打包成rootfs.ext4,我怀疑buildroot生成的rootfs.ext4存在一些问题,老的新的版本我都生成了,都存在checksum错误的问题。

离线

楼主 #32 2019-12-18 15:10:01

太一酱鸭
会员
注册时间: 2019-07-03
已发帖子: 154
积分: 154

Re: v3s内核启动卡在文件系统挂载(cannot open root device)

继续结尾这个帖子,最后发现真正的解决办法应该是在buildroot的additional mke2fs options  加上-O^metadata_csum 规避特性。 

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn