微波EDA网,见证研发工程师的成长!
首页 > 硬件设计 > 嵌入式设计 > real6410移植记录一

real6410移植记录一

时间:11-10 来源:互联网 点击:

[] (kernel_init+0x10c/0x14c) from [] (kernel_thread_exit+0x0/0x8)

在网上查了下,说是要关闭Hard ECC,关闭之后又出现如下错误,可能是cramfs的问题,需要重新制作,这个问题后面再解决了。

List of all partitions:

1f00 256 mtdblock0 (driver?)

1f01 3840 mtdblock1 (driver?)

1f02 4096 mtdblock2 (driver?)

1f03 1040384 mtdblock3 (driver?)

No filesystem could mount root, tried: cramfs

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,2)

[] (unwind_backtrace+0x0/0xec) from [] (panic+0x6c/0x188)

[] (panic+0x6c/0x188) from [] (mount_block_root+0x1d0/0x210)

[] (mount_block_root+0x1d0/0x210) from [] (mount_root+0xa0/0xc0)

[] (mount_root+0xa0/0xc0) from [] (prepare_namespace+0x158/0x1b0)

[] (prepare_namespace+0x158/0x1b0) from [] (kernel_init+0x10c/0x14c)

[] (kernel_init+0x10c/0x14c) from [] (kernel_thread_exit+0x0/0x8)

5、制作ubifs文件系统

先使用NFS挂载文件系统,使用如下配置:

setenv bootargs noinitrd root=/dev/nfs console=ttySAC0 nfsroot=192.168.1.115:/home/xx/Work/realarm/target/rootfs_cramfs ip=192.168.1.20:192.168.1.10:192.168.1.1:255.255.255.0::eth0:on fbcon=rotate:1 init=/linuxrc

使用ubifs文件系统,其中mtd3分区即为ubifs分区。使用如下命令将文件系统烧录进nand中。(注意需要关闭硬件ECC校验,否则/sbin/ubiattach /dev/ubi_ctrl -m 3会出错)。

且读取启动开发板时会出现如下错误:

UBI error: ubi_io_read: error -74 (ECC error) while reading 2048 bytes from PEB 547:2048, read 2048 bytes

UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 548:0, read 64 bytes

使用命令/sbin/ubiattach /dev/ubi_ctrl -m 3,当出现如下错误时,说明ubifs文件系统未配置好。

ubiattach: error!: UBI is not present in the system

再次执行make menuconfig配置好ubifs文件系统

File systems --->

[*] Miscellaneous filesystems --->

<*> UBIFS file system support

新建一个文件夹rootfs_qtopia,将开发板所提供的源码包qtopia.tar.gz解压进去。同时解压源码包qtopia-2.2.0-Real6410.tar.bz2,并对其进行编译,执行./build命令。安装结果就在qtopia-2.2.0-Real6410/qtopia/image/opt目录。使用编译出来的qtopia-2.2.0-Real6410/qtopia/image/opt替换rootfs_qtopia/opt。打包成Qt文件系统

cd rootfs_qtopia/

$ /sbin/flash_eraseall /dev/mtd3

$ /sbin/ubiattach /dev/ubi_ctrl -m 3

$ /sbin/ubimkvol /dev/ubi0 -N rootfs -m

$ mount -t ubifs ubi0_0 /mnt/nfs

$ tar xvf /qtopia-2.2.0-Real6410.tar.bz2 -C /mnt/nfs/

$ sync

修改启动命令为:

setenv bootargs noinitrd mem=224M console=ttySAC0 init=/linuxrc ubi.mtd=3 root=ubi0:rootfs rootfstype=ubifs

如下是启动信息:

UBIFS: recovery completed

UBIFS: mounted UBI device 0, volume 0, name "rootfs"

UBIFS: file system size: 1034514432 bytes (1010268 KiB, 986 MiB, 4009 LEBs)

UBIFS: journal size: 33546240 bytes (32760 KiB, 31 MiB, 130 LEBs)

UBIFS: media format: w4/r0 (latest is w4/r0)

UBIFS: default compressor: lzo

UBIFS: reserved for root: 4952683 bytes (4836 KiB)

VFS: Mounted root (ubifs filesystem) on device 0:10.

Freeing init memory: 128K

hwclock: cant open /dev/misc/rtc: No such file or directory

amixer: Control default open error: No such file or directory

amixer: Control default open error: No such file or directory

/usr/sbin/alsactl: load_state:1236: No soundcards found...

Try to bring eth0 interface up....../etc/init.d/ifconfig-eth0: line 6: //ifconfig: not found

eth0: link up, 100Mbps, full-duplex, lpa 0x4DE1

Done

Now,starting the qtopia-2.2.0....

unifi_sdio: version magic 2.6.28.6 preempt mod_unload ARMv6 should be 2.6.37-gfb40001 preempt mod_unload ARMv6

insmod: cannot insert /lib/modules/2.6.28.6/unifi_sdio.ko: invalid module format

Please press Enter to activate this console. Cannot open touchscreen /dev/input/event1 (No such file or directory)

Mouse type intelliMouse:/dev/input/mice unsupported

Warning:

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top