打印

关于arm软关机

[复制链接]
4989|4
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
dolphin836|  楼主 | 2012-7-25 11:10 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
我的8018开发板带了一块硬盘,使用FAT32的文件系统存储文件。

在使用过程中出现了硬盘文件系统被破坏不能挂载的情况,硬盘是好了,重新格式化后就可以用了。

想来想去没有什么结果。

现在想在程序中实现一个软关机。因为以前都是外部断电来关机的。断电关机可能对硬盘造成一些影响。

就好像我们的电脑一样。

我在我的一块arm板上使用shutdown -h now来关机。

出来的信息如下:


root@sbc8018:~# shutdown -h now

Broadcast message from root (ttyS2) (Tue Apr 14 20:56:42 2009):

The system is going down for system halt NOW!
INIT: Switching to runlevel: 0
INIT: Sending processes the TERM signal
INIT: Sending procesStopping telnet daemon.
Stopping syslogd/klogd: stopped syslogd (pid 1254)
stopped klogd (pid 1256)
done
Deconfiguring network interfaces... cat: can't open '/var/run/udhcpc.eth0.pid':
No such file or directory
done.
Sending all processes the TERM signal...
Sending all processes the KILL signal...
Unmounting remote filesystems...
Deactivating swap...
Unmounting local filesystems...
mount: can't find /mnt/ram in /proc/mounts
umount: none busy - remounted read-only
mount: cannot read /proc/mounts: No such file or directory
sd 0:0:0:0: [sda] Synchronizing SCSI cache
sd 0:0:0:0: [sda] Stopping disk
System halted.

我还实验了halt  poweoff inin 0等关机命令 ,输出的信息都一样(pid 号不一样)。

此时led灯还亮着。第一个长亮,第二个闪烁。

我想问的是,这样已经实现了软关机吗?

我看了软关机的介绍。软关机是指关闭了系统么?

这样做能对硬盘起到保护作用么?

但是led灯的闪烁不是在系统中控制的么?为什么系统关闭了,灯还在闪?

我看了网上其他开发板关于软关机的问题,有的人说开发板没有带电源管理芯片,所有不能实现软关机。这是什么意思?是指不能通过软关机来断掉电源么?

相关帖子

沙发
盈鹏飞科技| | 2012-7-25 16:30 | 只看该作者
什么CPU的板子?这么奇怪的名字?

使用特权

评论回复
板凳
盈鹏飞科技| | 2012-7-25 16:31 | 只看该作者
软关机,你要实现什么功能呢?

这个是AM1808的主芯片吗?这个板子好用吗?

使用特权

评论回复
地板
wenming| | 2012-7-26 08:48 | 只看该作者
需要电源管理芯片配合的~

使用特权

评论回复
5
盈鹏飞科技| | 2012-7-26 10:23 | 只看该作者
wenming说的对,估计是需要电源管理控制。

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

0

主题

1

帖子

0

粉丝