您尚未登录。

楼主 #1 2019-11-02 20:59:54

blade_cheng
会员
注册时间: 2018-10-15
已发帖子: 72
积分: 68

N32905自动挂载nand分区失败,请大神们指点

启动log如下

Init RTC....OK
DDR size: 32MB
SD Port0 Booting Fail - No/Bad Card Insert
NAND Booting (2K-page 4 Address Cycle) Success
Clock Skew
DQSODS 0x1010
CKDQSDS 0x888800
Code Executes at 0x00900000
FA93 Nand Boot Loader entry (20140514).
System clock = 192,000KHz
AHB clock = 96,000KHz
REG_SDTIME = 0x094E7425
Get NANDLoader image from block 0x0 ..
Load file length 0x5EE38, execute address 0x800000
NVT Loader start
fsInitFileSyste
Load code from NAND
[GNAND] GNAND Library Version: V1.02.3
[GNAND] GNAND format version on NAND chip: V1.01
[GNAND] NAND flash chip detected, chip ID is 0xEC-0xF1 !
Total Disk Size 128,057,344
c:\movie.avi
kernel found
Jump to kernelLinux version 2.6.35.4 (root@peng-Lenovo-Product) (gcc version 4.3.4 (GCC) ) #56 PREEMPT Sat Nov 2 20:22:15 CST 2019
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: W55FA93
Memory policy: ECC disabled, Data cache writeback
CPU type 0x00fa5c30 is W55FA93
w55fa93_external_clock  = 12.0 MHz
w55fa93_apll_clock      = 72000 KHz
w55fa93_upll_clock      = 192000 KHz
w55fa93_system_clock    = 192000 KHz
w55fa93_cpu_clock       = 192000 KHz
w55fa93_ahb_clock       = 96000 KHz
w55fa93_apb_clock       = 48000 KHz
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Kernel command line: root=/dev/ram0 console=ttyS1,115200n8 rdinit=/sbin/init mem=32M vt.global_cursor_default=0
PID hash table entries: 128 (order: -3, 512 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 32MB = 32MB total
Memory: 19704k/19704k available, 13064k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA     : 0xff600000 - 0xffe00000   (   8 MB)
    vmalloc : 0xc2800000 - 0xe0000000   ( 472 MB)
    lowmem  : 0xc0000000 - 0xc2000000   (  32 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .init : 0xc0008000 - 0xc039b000   (3660 kB)
      .text : 0xc039b000 - 0xc067c000   (2948 kB)
      .data : 0xc067c000 - 0xc0695f00   ( 104 kB)
Hierarchical RCU implementation.
        RCU-based detection of stalled CPUs is disabled.
        Verbose stalled-CPUs detection is disabled.
NR_IRQS:32
Console: colour dummy device 80x30
console [ttyS1] enabled
Calibrating delay loop... 95.43 BogoMIPS (lpj=477184)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
devtmpfs: initialized
NET: Registered protocol family 16
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Advanced Linux Sound Architecture Driver Version 1.0.23.
cfg80211: Calling CRDA to update world regulatory domain
Switching to clocksource w55fa93-timer1
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
register clock device
w55fa93_edma_init
ROMFS MTD (C) 2007 Red Hat, Inc.
msgmni has been set to 38
io scheduler noop registered (default)
---w55fa93fb_init ----w55fa93 frame buffer init
###########w55fa93 frame buffer probe############
1*** fbi->fb->fix.smem_len = 0x4b000
check_var(var=c1c99020, info=c1c99000)
w55fa93fb_set_par !!! =================
Console: switching to colour frame buffer device 40x30
w55fa93 LCD driver has been installed successfully
w55fa93 SysMgr driver has been initialized successfully!
93BLT major_no = 252, minor_no = 0
w55fa93 BLT driver has been initialized successfully!
W55FA93 uart driver has been initialized successfully!
w55fa93-uart0: ttyS0 at MMIO 0xb8008000 (irq = 13) is a W55FA93
w55fa93-uart1: ttyS1 at MMIO 0xb8008100 (irq = 24) is a W55FA93
brd: module loaded
loop: module loaded
rtl8150: v0.6.2 (2004/08/27):rtl8150 based usb-ethernet driver
usbcore: registered new interface driver rtl8150
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
Init CONFIG_W55FA93_USB_HOST_LIKE_PORT2
ohci_hcd_w55fa93_drv_probe
usb_hcd_w55fa93_probe
get_pll
External clock = 12MHz
NF: 32, NR: 2, NO: 1
PLL is 192   ---
div1 = 1
div0 = 1
div0 = 2
div0 = 3
div0 = 4
Div1 = 0,  Div0 = 3
USBH IP  Reset
CONFIG_W55FA93_USB_HOST_LIKE_PORT1
w55fa93-ohci w55fa93-ohci: Nuvoton W55FA93 OHCI Host Controller
w55fa93-ohci w55fa93-ohci: new USB bus registered, assigned bus number 1
w55fa93-ohci w55fa93-ohci: irq 18, io mem 0xb1009000
ohci_w55fa93_start
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
USB device plug in
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
w55fa93_udc_probe 20180820
mice: PS/2 mouse device common for all mice
input: W55FA93 TouchScreen as /class/input/input0
input: W55FA93 Keypad as /class/input/input1
W55FA93 keypad driver has been initialized successfully!
w55fa93-rtc w55fa93-rtc: rtc core: registered w55fa93-rtc as rtc0
Init Nuvoton RTC!
i2c_adap_w55fa93_init
w55fa93_i2c_probe()
w55fa93-i2c w55fa93-i2c: bus frequency set to 100 KHz
w55fa93-i2c w55fa93-i2c: Add W55FA93 I2C port adapter
Linux video capture interface: v2.00
memory allocate for port 1Planar buf 0 Phys addr = 0x6b6000
Planar buf 0 Virt addr = 0xc06b6000
Planar buf 1 Phys addr = 0x879000
Planar buf 1 Virt addr = 0xc0879000
Planar buf 2 Phys addr = 0xa3c000
Planar buf 2 Virt addr = 0xc0a3c000
Packet buf 0 Phys addr = 0xbff000
Packet buf 0 Virt addr = 0xc0bff000
Packet buf 1 Phys addr = 0xc25800
Packet buf 1 Virt addr = 0xc0c25800
Packet buf 2 Phys addr = 0xc4c000
Packet buf 2 Virt addr = 0xc0c4c000
SnrPowerDown
1-3
REG_GPBFUN = 0xfc000000
jpegcodec_init
Last boot is caused by Power-On-Reset.
W55FA93 MMC/SD driver (20180928) has been initialized successfully!
SDHC card will run under 24MHz clock on SD port.
w55fa93evb_asoc_dev = 0xc10fc6a0 !!!
asoc: W55FA93_DAC HiFi <-> w55fa93-spu mapping ok
ret = 0x0 !!!, platform device added
******* global g_pw55fa93_adc_data address = 0xc1093ee0
0 = platform_driver_register

asoc: W55FA93ADC HiFi <-> w55fa93adc_cpu_dai mapping ok
ALSA device list:
  #0: W55FA93_SPU (W55FA93_DAC)
  #1: mach-W55FA93_ADC (codecADC)
TCP cubic registered
NET: Registered protocol family 17
w55fa93-rtc w55fa93-rtc: setting system clock to 2005-01-01 03:20:06 UTC (1104549606)
Freeing init memory: 3660K


BusyBox v1.22.1 (2016-02-03 14:11:04 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

gnand: module license 'Proprietary' taints kernel.
Disabling lock debugging due to kernel taint
NAND: nand_init!!!!!
W55FA93 NAND driver (20181029) has been initialized successfully!
scsi0 : Nuvoton W55FA93 On Board NAND DRIVER!
W55FA93 DEVMEM driver has been initialized successfully!
-/bin/sh: /sbin/mdev: not found
~ # [GNAND] GNAND Library Version: V1.02.5
NAND: Found SLC NAND, ID EC-F1-00-95, page size 2048, BCH T8
fmiSMCheckBootHeader 1
Nand0: uLibStartBlock=17
[GNAND] NAND flash chip detected, chip ID is 0xec-0xf1 !
on board NAND size 122 MB (249856 sectors)
scsi 0:0:0:0: Direct-Access     NUVOTON  GNAND DRIVER     2.00 PQ: 0 ANSI: 0
sd 0:0:0:0: [sda] 249856 512-byte logical blocks: (127 MB/122 MiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Got wrong page
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Got wrong page
sd 0:0:0:0: [sda] Assuming drive cache: write through
sda: sda1 sda2 < sda5 >
sd 0:0:0:0: [sda] Got wrong page
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Attached SCSI removable disk


启动到这里会卡住,回车可以进入命令行

/mnt目录下有三个文件夹hd,nand1,nand2,其中nand1,nand2是我在编译之前手动添加进/rootfs/mnt目录的
我的fstab设置如下

proc  /proc      proc    defaults     0      0
none  /var/shm   shm     defaults     0      0
sysfs /sys       sysfs   defaults     0      0
none  /tmp   ramfs     defaults     0      0
none  /mnt   ramfs     defaults     0      0
none  /var   ramfs     defaults     0      0
##以下两行为编译前手动添加
/dev/sda1    /mnt/nand1 auto defaults  0      0
/dev/sda5    /mnt/nand2 auto defaults  0      0

执行mount -a后,提示
mount: mounting none on /var/shm failed: No such file or directory
mount: mounting /dev/sda1 on /mnt/nand1 failed: No such file or directory
mount: mounting /dev/sda5 on /mnt/nand2 failed: No such file or directory
/mnt目录下的文件夹全部消失
不执行mount -a,而使用mount /dev/sda1 /mnt/nand1命令可以成功挂载
请指点>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

离线

#2 2019-11-02 22:02:01

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

Re: N32905自动挂载nand分区失败,请大神们指点

/var/shm
/mnt/nand1
/mnt/nand2

这三个文件夹存在吗?





离线

楼主 #3 2019-11-02 22:23:28

blade_cheng
会员
注册时间: 2018-10-15
已发帖子: 72
积分: 68

Re: N32905自动挂载nand分区失败,请大神们指点

谢晕哥回复,/var/shm这个我看了一下编译之前的目录和烧写进板子的目录都不存在,后面两个文件夹存在,是我手动添加的,启动之后也可以在/mnt目录下看到

晕哥 说:

/var/shm
/mnt/nand1
/mnt/nand2

这三个文件夹存在吗?

离线

楼主 #4 2019-11-02 22:27:58

blade_cheng
会员
注册时间: 2018-10-15
已发帖子: 72
积分: 68

Re: N32905自动挂载nand分区失败,请大神们指点

另外,我尝试更改/etc/init.d/rsC文件


#!/bin/sh
/bin/mount -t proc none /proc
/bin/mount -t sysfs sysfs /sys
/bin/mount -t devtmpfs devtmpfs /dev
/bin/mkdir /dev/pts
/bin/mount -t devpts devpts /dev/pts
/bin/echo > /dev/mdev.seq
/bin/echo /sbin/mdev > /proc/sys/kernel/hotplug
# move mdev scan to /etc/profile to avoid usbdisk affect the NAND booting
#/sbin/mdev -s
###以下为我添加的内容
mount /dev/sda1 /mnt/nand1
mount /dev/sda5 /mnt/nand2

启动后出现
mount: mounting /dev/sda1 on /mnt/nand1 failed: No such file or directory
mount: mounting /dev/sda5 on /mnt/nand2 failed: No such file or directory

进入命令行后执行
mount /dev/sda1 /mnt/nand1
可正常挂载

离线

#5 2019-11-02 22:39:16

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

Re: N32905自动挂载nand分区失败,请大神们指点

可能设备文件 /dev/sdX不存在,也可能 /mnt/nandX 不存在,你先到脚本最前面用 mkdir 创建这三个文件夹吧





离线

楼主 #6 2019-11-05 16:45:51

blade_cheng
会员
注册时间: 2018-10-15
已发帖子: 72
积分: 68

Re: N32905自动挂载nand分区失败,请大神们指点

谢晕哥,结帖,把/rootfs/lib下的动态链接库文件全部加上777权限之后问题解决了

离线

页脚

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

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