OpenEdv-开源电子网

 找回密码
 立即注册

扫一扫,访问微社区

正点原子新作:阿波罗STM32F767&F429&探索者STM32F4开发板&赶快来下载资料哦。

查看: 371|回复: 3

linux系统ubifs文件移植成功后出现的瑕疵问题

[复制链接]

  离线 

4

主题

13

帖子

0

精华

初级会员

Rank: 2

积分
70
金钱
70
注册时间
2016-9-18
在线时间
9 小时
发表于 2017-4-27 11:11:19 | 显示全部楼层 |阅读模式
1金钱
如题所示,在制作ubifs文件前,用busybox工具构建/bin  /sbin  linuxrc三个文件至rootfs文件夹中,然后用mkfs.ubifs工具和ubinize工具制作成ubi文件系统,烧入至nand flash指定区域中,运行linux后,能正常进入系统输入命令,但是有如图所示的报错 QQ截图20170427110646.png 不知道是哪里出现的问题,自己怀疑是busybox配置时,勾选了不该勾选的选项,但是不确定是哪里,因为我已经成功挂载ubifs文件,要是能不显示这些报错就更好了,如果有知情工程师,还请告知在下,不胜感激。最后附上 linux启动日志Enable Debug Message
No Key
Boot from NAND
nand_boot


U-Boot 2013.04-rc2 (Mar 29 2017 - 17:30:33)

CPU: NUC972
DRAM:  64 MiB
NAND:  128 MiB
MMC:   mmc: 0, mmc: 1
In:    serial
Out:   serial
Err:   serial
Net:   emac
Hit any key to stop autoboot:  0

Loading from nand0, offset 0x200000
   Image Name:   kernel_image
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3942336 Bytes = 3.8 MiB
   Load Address: 00007fc0
   Entry Point:  00008000
## Booting kernel from Legacy Image at 00007fc0 ...
   Image Name:   kernel_image
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3942336 Bytes = 3.8 MiB
   Load Address: 00007fc0
   Entry Point:  00008000
   Verifying Checksum ... OK
SF: Detected W25Q128 with page size 4 KiB, total 16 MiB
   XIP Kernel Image ... OK
OK

Starting kernel ...

Booting Linux on physical CPU 0x0
Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Initializing cgroup subsys cpuacct
Linux version 3.10.32 (root@localhost.localdomain) (gcc version 4.3.4 (GCC) ) #8 PREEMPT Thu Mar 30 20:07:25 CST 2017
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: NUC970
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
Kernel command line: noinitrd ubi.mtd=2 root=ubi0_0 rw rootfstype=ubifs console=ttyS0,115200n8 rdinit=/sbin/init mem=64M mtdparts=nand0:0x200000@0x0(u-boot),0x1400000@0x200000(kernel),-(user)
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 60824k/60824k available, 4712k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    vmalloc : 0xc4800000 - 0xff000000   ( 936 MB)
    lowmem  : 0xc0000000 - 0xc4000000   (  64 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .text : 0xc0008000 - 0xc0374f5c   (3508 kB)
      .init : 0xc0375000 - 0xc0397574   ( 138 kB)
      .data : 0xc0398000 - 0xc03ca7c0   ( 202 kB)
       .bss : 0xc03ca7c0 - 0xc03ff1ec   ( 211 kB)
SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Preemptible hierarchical RCU implementation.
NR_IRQS:561
sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 4294967286ms
Console: colour dummy device 80x30
console [ttyS0] enabled
Calibrating delay loop... 148.88 BogoMIPS (lpj=744448)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys perf_event
CPU: Testing write buffer coherency: ok
Setting up static identity map for 0xc02bce50 - 0xc02bcea8
devtmpfs: initialized
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
bio: create slab <bio-0> at 0
SCSI subsystem initialized
Switching to clocksource nuc970-timer1
NET: Registered protocol family 2
TCP established hash table entries: 512 (order: 0, 4096 bytes)
TCP bind hash table entries: 512 (order: -1, 2048 bytes)
TCP: Hash tables configured (established 512 bind 512)
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
NetWinder Floating Point Emulator V0.97 (double precision)
ROMFS MTD (C) 2007 Red Hat, Inc.
msgmni has been set to 118
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
Console: switching to colour frame buffer device 100x30
fb0: nuc970fb frame buffer device
nuc970-uart.0: ttyS0 at I/O 0x0 (irq = 36) is a NUC970
nuc970-uart.2: ttyS2 at I/O 0x0 (irq = 38) is a NUC970
nuc970-uart.4: ttyS4 at I/O 0x0 (irq = 39) is a NUC970
nuc970-uart.6: ttyS6 at I/O 0x0 (irq = 40) is a NUC970
nuc970-uart.10: ttyS10 at I/O 0x0 (irq = 42) is a NUC970
brd: module loaded
nuc970 mtd nand driver version: 20140801
NAND device: Manufacturer ID: 0xef, Chip ID: 0xf1 (Unknown NAND 128MiB 3,3V 8-bit), 128MiB, page size: 2048, OOB size: 64
SYSTEM: USE BCH_T4 HWECC algorithm(SMRA size: 64, Parity number:32 bytes)
EXECUTE: USE BCH_T4 HWECC algorithm(SMRA size: 64, Parity number:32 bytes)
USE BCH_T4 HWECC algorithm(Parity number:32 bytes)
Bad block table found at page 65472, version 0x01
Bad block table found at page 65408, version 0x01
nand_read_bbt: bad block at 0x000000080000
nand_read_bbt: bad block at 0x000000b60000
nand_read_bbt: bad block at 0x0000027a0000
nand_read_bbt: bad block at 0x000003e60000
nand_read_bbt: bad block at 0x000004e20000
nand_read_bbt: bad block at 0x0000052a0000
nand_read_bbt: bad block at 0x000005e60000
3 cmdlinepart partitions found on MTD device nand0
Creating 3 MTD partitions on "nand0":
0x000000000000-0x000000200000 : "u-boot"
0x000000200000-0x000001600000 : "kernel"
0x000001600000-0x000008000000 : "user"
fmi-sm: registered successfully! mtdid=nand0
nuc970-spi0 nuc970-spi0: master is unqueued, this is deprecated
m25p80: Enable Quad Mode
m25p80 spi0.0: w25q128 (16384 Kbytes)
Creating 3 MTD partitions on "m25p80":
0x000000000000-0x000000200000 : "u-boot"
0x000000200000-0x000000900000 : "kernel"
0x000000900000-0x000001000000 : "rootfs"
nuc970-spi1 nuc970-spi1: master is unqueued, this is deprecated
m25p80 spi1.0: unrecognized JEDEC id ffffff
libphy: nuc970_rmii0: probed
libphy: nuc970_rmii1: probed
nuc970-emac1 nuc970-emac1: phy_find_first() failed
nuc970-rtc nuc970-rtc: rtc core: registered nuc970-rtc as rtc0
TCP: cubic registered
NET: Registered protocol family 17
UBI: attaching mtd2 to ubi0
UBI: scanning is finished
UBI: attached mtd2 (name "user", size 106 MiB) to ubi0
UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
UBI: VID header offset: 2048 (aligned 2048), data offset: 4096
UBI: good PEBs: 839, bad PEBs: 9, corrupted PEBs: 0
UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
UBI: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 250583359
UBI: available PEBs: 0, total reserved PEBs: 839, PEBs reserved for bad PEB handling: 11
UBI: background thread "ubi_bgt0d" started, PID 393
nuc970-rtc nuc970-rtc: setting system clock to 2005-01-01 00:16:51 UTC (1104538611)
UBIFS: background thread "ubifs_bgt0_0" started, PID 395
UBIFS: mounted UBI device 0, volume 0, name "user"
UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
UBIFS: FS size: 91549696 bytes (87 MiB, 721 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs)
UBIFS: reserved for root: 0 bytes (0 KiB)
UBIFS: media format: w4/r0 (latest is w4/r0), UUID 99FF752E-FDAE-4C5C-8C60-78F195C53975, small LPT model
VFS: Mounted root (ubifs filesystem) on device 0:11.
devtmpfs: mounted
Freeing unused kernel memory: 136K (c0375000 - c0397000)
mount: mounting /dev/mtdblock0 on /mnt/mtdblock0 failed: No such device
mount: mounting /dev/mtdblock0 on /mnt/mtdblock0 failed: No such device
UBIFS error (pid 420): ubifs_mount: cannot open "/dev/mtdblock0", error -22
mount: mounting /dev/mtdblock0 on /mnt/mtdblock0 failed: Invalid argument
mount: mounting /dev/mtdblock1 on /mnt/mtdblock1 failed: No such device
mount: mounting /dev/mtdblock1 on /mnt/mtdblock1 failed: No such device
UBIFS error (pid 438): ubifs_mount: cannot open "/dev/mtdblock1", error -22
mount: mounting /dev/mtdblock1 on /mnt/mtdblock1 failed: Invalid argument
mount: mounting /dev/mtdblock2 on /mnt/mtdblock2 failed: No such device
mount: mounting /dev/mtdblock2 on /mnt/mtdblock2 failed: No such device
UBIFS error (pid 456): ubifs_mount: cannot open "/dev/mtdblock2", error -22
mount: mounting /dev/mtdblock2 on /mnt/mtdblock2 failed: Invalid argument
mount: mounting /dev/mtdblock3 on /mnt/mtdblock3 failed: No such device
mount: mounting /dev/mtdblock3 on /mnt/mtdblock3 failed: No such device
UBIFS error (pid 474): ubifs_mount: cannot open "/dev/mtdblock3", error -22
mount: mounting /dev/mtdblock3 on /mnt/mtdblock3 failed: Invalid argument
mount: mounting /dev/mtdblock4 on /mnt/mtdblock4 failed: No such device
mount: mounting /dev/mtdblock4 on /mnt/mtdblock4 failed: No such device
UBIFS error (pid 492): ubifs_mount: cannot open "/dev/mtdblock4", error -22
mount: mounting /dev/mtdblock4 on /mnt/mtdblock4 failed: Invalid argument
mount: mounting /dev/mtdblock5 on /mnt/mtdblock5 failed: No such device
mount: mounting /dev/mtdblock5 on /mnt/mtdblock5 failed: No such device
UBIFS error (pid 510): ubifs_mount: cannot open "/dev/mtdblock5", error -22
mount: mounting /dev/mtdblock5 on /mnt/mtdblock5 failed: Invalid argument
~ #
~ # ls
bin      etc      lib      mnt      sbin     tmp      var
dev      home     linuxrc  proc     sys      usr
~ # cd sys/
/sys # ls

回复

使用道具 举报

  离线 

4

主题

13

帖子

0

精华

初级会员

Rank: 2

积分
70
金钱
70
注册时间
2016-9-18
在线时间
9 小时
 楼主| 发表于 2017-5-2 09:32:54 | 显示全部楼层
回复

使用道具 举报

  离线 

482

主题

8万

帖子

30

精华

管理员

Rank: 12Rank: 12Rank: 12

积分
117247
金钱
117247
注册时间
2010-12-1
在线时间
900 小时
发表于 2017-5-3 01:24:22 | 显示全部楼层
帮顶
回复

使用道具 举报

  离线 

4

主题

13

帖子

0

精华

初级会员

Rank: 2

积分
70
金钱
70
注册时间
2016-9-18
在线时间
9 小时
 楼主| 发表于 2017-5-10 13:45:39 | 显示全部楼层
还是没人?
回复

使用道具 举报

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

本版积分规则




QQ|联系我们|手机版|官方淘宝店|新浪微博|微信公众平台|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2017-11-22 03:33

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

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