启动文件系统时出现错误:Warning: unable to open an initial console.

————————————————————————————————

(一)启动文件系统时出现错误:Warning: unable to open an initial console.

————————————————————————————————

具体错误:

yaffs: dev is 32505858 name is "mtdblock2"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.2, "mtdblock2"
yaffs: auto selecting yaffs2
s3c-nand: ECC uncorrectable error detected
block 109 is bad
VFS: Mounted root (yaffs filesystem).
Freeing init memory: 140K
Warning: unable to open an initial console.

原因查找:

 1)删掉下载的文件系统中的/dev/console和/dev/null

重新建立

mknod –m 660 console c 5 1

mknod –m 660 null c 1 3

2)你的根文件系统上需要建/dev/console

3)你的rootfs真的是cramfs吗? 如果是jffs2, 那么command line里设置一下 rootfstype=jffs2看看

4)现在我加了支持devfs选项编译核,启动中是没了: 
warning:unable to open an initial console 
且多了: 
Mounted devfs on /dev 
可就仅此而已,后面什么也没有了!敲键盘反映全是乱七八糟的字符!

************

最终原因:

************

在建立根文件系统的目录时,跳过了一些步骤。

进入opt/mini2440/fs,创建一个shell的脚本用于构建根文件系统的各个目录。create_rootfs_bash,平且改变执行的权限。

#chmod +x create_rootfs_bash

在kernel目录下,运行./create_rootfs_bash,其脚本的内容如下:

#!/bin/sh
echo "------Create rootfs directons start...--------"
mkdir rootfs
cd rootfs
echo "--------Create root,dev....----------"
mkdir root dev etc boot tmp var sys proc lib mnt home usr
mkdir etc/init.d etc/rc.d etc/sysconfig
mkdir usr/sbin usr/bin usr/lib usr/modules
echo "make node in dev/console dev/null"  //这几行的作用是创建console控制台,而我在制作根目录时刚好没有做这个工作。
mknod -m 600 dev/console c 5 1
mknod -m 600 dev/null c 1 3
mkdir mnt/etc mnt/jffs2 mnt/yaffs mnt/data mnt/temp
mkdir var/lib var/lock var/run var/tmp
chmod 1777 tmp
chmod 1777 var/tmp
echo "-------make direction done---------"
具体如下图所示:


 经过以上改变后,根文件系统制作成功,启动界面如下图:



有用的链接:

http://www.lslnet.com/linux/dosc1/43/linux-300515.htm

http://topic.csdn.net/u/20110317/09/8f75cc2a-5c58-40cc-91c8-a356c9a77b48.html

参考文章:yaffs2根文件系统移植至MINI2440

http://blog.csdn.net/yeyuangen/article/details/6698000


  • 1
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
这个错误提示显示 Redis 需要进行身份验证,而 Celery Flower 没有提供身份验证信息。你需要在 Celery 的配置文件中添加 Redis 的身份验证信息。 具体步骤如下: 1. 打开 Celery 的配置文件,通常为 `celeryconfig.py` 或 `celery.py`。 2. 在配置文件中添加以下内容: ```python broker_url = 'redis://user:password@localhost:6379/0' ``` 其中,`user` 和 `password` 分别为 Redis 的用户名和密码,`localhost` 为 Redis 的地址,`6379` 为 Redis 的端口号,`0` 为 Redis 的数据库编号。 3. 保存配置文件并重新启动 Celery Flower。 如果你没有设置 Redis 的身份验证信息,可以在 Redis 中设置用户名和密码。具体步骤如下: 1. 打开 Redis 的配置文件,通常为 `redis.conf`。 2. 找到以下内容: ```conf # Require clients to issue AUTH <PASSWORD> before processing any other # commands. This might be useful in environments in which you do not trust # others with access to the host running redis-server. # # This should stay commented out for backward compatibility and because most # people do not need auth (e.g. they run their own servers). # # Warning: since Redis is pretty fast an outside user can try up to # 150k passwords per second against a good box. This means that you should # use a very strong password otherwise it will be very easy to break. # # requirepass foobared ``` 3. 将 `requirepass` 的注释去掉,并将 `foobared` 替换为你要设置的密码。 4. 保存配置文件并重新启动 Redis。 然后,在 Celery 的配置文件中添加 Redis 的身份验证信息即可。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值