亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 2280 | 回復(fù): 0
打印 上一主題 下一主題

【求助】關(guān)于s3c2410芯片在linux下的reboot調(diào)用問題:直接跳轉(zhuǎn)零地址復(fù)位會死機 [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2011-10-10 23:31 |只看該作者 |倒序瀏覽
板子是優(yōu)龍的fs2410,linux移植的是2.6.32.45。
看了內(nèi)核的reboot命令,最后調(diào)用的函數(shù)是arch_reset,位于arch\arm\mach-s3c2410\include\mach\system-reset.h中,代碼如下

arch_reset(char mode, const char *cmd)
{
        if (mode == 's') {
                cpu_reset(0);
        }

        if (s3c24xx_reset_hook)
                s3c24xx_reset_hook();

        arch_wdt_reset();


        /* we'll take a jump through zero as a poor second */
        cpu_reset(0);
}
內(nèi)核用的是開門狗復(fù)位,沒有問題。我將紅色部分代碼注釋掉(即看門狗復(fù)位代碼),直接通過cpu_reset(0)復(fù)位,也可以,但是會死機,死在解壓內(nèi)核處,死機打印如下:
/ #
/ #
/ # reboot
The system is going down NOW!
Sent SIGTERM to all processes
Sent SIGKILL to all processes
Requesting system reboot
kernel_restart(307)cmd=0
Restarting system.
s3c24xx_pm_restart(197)mode=68


U-Boot 1.1.6 (Sep 21 2011 - 22:26:00)

DRAM:  64 MB
NAND 64MiB 3,3V 8-bit
Manufacturer: Samsung
In:    serial
Out:   serial
Err:   serial
Hit any key to stop autoboot:  0
TFTP from server 192.168.0.1; our IP address is 192.168.0.23
Filename 'uImage'.
Load address: 0x32000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #####################
done
Bytes transferred = 1433780 (15e0b4 hex)
TFTP from server 192.168.0.1; our IP address is 192.168.0.23
Filename 'initrd.image'.
Load address: 0x33000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #########################################################
done
Bytes transferred = 4614202 (46683a hex)
## Booting image at 32000000 ...
   Image Name:   Linux-2.6.32.45-svn27
   Created:      2011-10-10  15:26:00 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1433716 Bytes =  1.4 MB
   Load Address: 30008000
   Entry Point:  30008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 33000000 ...
   Image Name:   RAM Disk Aviator
   Created:      2011-10-10  15:16:19 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    4614138 Bytes =  4.4 MB
   Load Address: 30e00000
   Entry Point:  30e00000
   Verifying Checksum ... OK
## Transferring control to Linux (at address 30008000) ...
setup_commandline_tag(343)  commandline=/dev/ram rw console=ttySAC0,115200

Starting kernel ...
Uncompressing Linux...........................................................................
這是為什么呢?望哪位大俠能夠解釋一下,謝謝
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP