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

  免費(fèi)注冊 查看新帖 |

Chinaunix

  平臺(tái) 論壇 博客 文庫
12下一頁
最近訪問板塊 發(fā)新帖
查看: 5947 | 回復(fù): 13
打印 上一主題 下一主題

[BootLoader] 根文件系統(tǒng)的燒寫錯(cuò)誤 [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2014-07-09 15:29 |只看該作者 |倒序?yàn)g覽
大家好!我是一名在校學(xué)生。最近自己在做根文件系統(tǒng)的移植時(shí)遇到了問題。想請教一下,還請大家請多多指教。

我遇到的問題:當(dāng)我燒寫cramfs文件系統(tǒng)的時(shí)候,可以成功掛載,但是運(yùn)行我自己的應(yīng)用程序時(shí)會(huì)出現(xiàn)錯(cuò)誤(我的那個(gè)應(yīng)用程序需要向系統(tǒng)中寫文件,而cramfs是一個(gè)只讀文件系統(tǒng),我估計(jì)是這兒出的問題)。但是當(dāng)我燒寫yaffs2文件系統(tǒng)的時(shí)候,就掛載不上了,出現(xiàn)了如下的錯(cuò)誤:
yaffs: dev is 32505859 name is "mtdblock3"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.3, "mtdblock3"
yaffs: auto selecting yaffs1
yaffs_read_super: isCheckpointed 0
VFS: Mounted root (yaffs2 filesystem) on device 31:3.
Freeing init memory: 136K
Warning: unable to open an initial console.
Failed to execute /linuxrc.  Attempting defaults...
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.
Backtrace:
[<c002e6d0>] (dump_backtrace+0x0/0x110) from [<c002e814>] (dump_stack+0x18/0x1c)

r6:00000000 r5:c002560c r4:c0409450
[<c002e7fc>] (dump_stack+0x0/0x1c) from [<c0040164>] (panic+0x54/0x124)
[<c0040110>] (panic+0x0/0x124) from [<c002a578>] (init_post+0xd4/0xfc)
r3:c6101f00 r2:c03e4520 r1:000000c0 r0:c03838ec
[<c002a4a4>] (init_post+0x0/0xfc) from [<c00087cc>] (kernel_init+0xe0/0x110)
r4:c0408d00
[<c00086ec>] (kernel_init+0x0/0x110) from [<c0043240>] (do_exit+0x0/0x654)
r5:00000000 r4:00000000
請問一下這是什么意思?剛剛接觸這一塊不久,還請大家指點(diǎn)指點(diǎn)。謝謝各位啦!

論壇徽章:
1
2015年迎新春徽章
日期:2015-03-04 09:58:11
2 [報(bào)告]
發(fā)表于 2014-07-09 18:48 |只看該作者
內(nèi)核啟動(dòng)完整的Log貼出來

論壇徽章:
22
丑牛
日期:2014-08-15 14:32:0015-16賽季CBA聯(lián)賽之同曦
日期:2017-12-14 15:28:14黑曼巴
日期:2017-08-10 08:14:342017金雞報(bào)曉
日期:2017-02-08 10:39:42黑曼巴
日期:2016-11-15 15:48:38CU十四周年紀(jì)念徽章
日期:2016-11-09 13:19:1015-16賽季CBA聯(lián)賽之同曦
日期:2016-04-08 18:00:03平安夜徽章
日期:2015-12-26 00:06:30程序設(shè)計(jì)版塊每日發(fā)帖之星
日期:2015-12-03 06:20:002015七夕節(jié)徽章
日期:2015-08-21 11:06:17IT運(yùn)維版塊每日發(fā)帖之星
日期:2015-08-09 06:20:002015亞冠之吉達(dá)阿赫利
日期:2015-07-03 08:39:42
3 [報(bào)告]
發(fā)表于 2014-07-09 18:51 |只看該作者
看來你的rootfs已經(jīng)掛載上了,估計(jì)你的busybox沒弄好。 你在根目錄下建立一個(gè)指向bin/busybox的軟鏈接試試
ln -s bin/busybox init

論壇徽章:
0
4 [報(bào)告]
發(fā)表于 2014-07-10 11:31 |只看該作者
回復(fù) 3# amarant

我這個(gè)不是用busybox制作的根文件系統(tǒng),而是直接根據(jù)TI自帶的根文件系統(tǒng)裁剪之后得到的。
   

論壇徽章:
0
5 [報(bào)告]
發(fā)表于 2014-07-10 11:35 |只看該作者
回復(fù) 2# arm-linux-gcc
DM6467 EVM > boot

NAND read: device 0 offset 0x500000, size 0x220000
2228224 bytes read: OK
## Booting kernel from Legacy Image at 80700000 ...
   Image Name:   Linux-2.6.32-rc2-davinci1-g73dbf
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2043612 Bytes =  1.9 MB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux.............................................................
....................................................................... done, bo
oting the kernel.
Linux version 2.6.32-rc2-davinci1-g73dbf71-dirty (root@bbs) (gcc version 4.2.0 (
MontaVista 4.2.0-16.0.32.0801914 2008-08-30)) #16 PREEMPT Tue Jul 8 15:07:34 CST
2014
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: DaVinci DM646x EVM
Memory policy: ECC disabled, Data cache writeback
DaVinci dm6467_rev3.x variant 0x1
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
Kernel command line: noinitrd root=/dev/mtdblock3 rw  rootfstype=yaffs2 init=/li
nuxrc console=ttyS0,115200,noblock
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 128MB = 128MB total
Memory: 125468KB available (3816K code, 329K data, 136K init, 0K highmem)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:245
Console: colour dummy device 80x30
Calibrating delay loop... 249.03 BogoMIPS (lpj=1245184)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
DaVinci: 43 gpio irqs
NET: Registered protocol family 16
MUX: Setting register STSOMUX_DISABLE
           PINMUX0 (0x00000000) = 0x00000000 -> 0x00000000
MUX: Setting register STSIMUX_DISABLE
           PINMUX0 (0x00000000) = 0x00000000 -> 0x00000000
MUX: Setting register PTSOMUX_DISABLE
           PINMUX0 (0x00000000) = 0x00000000 -> 0x00000000
MUX: Setting register PTSIMUX_DISABLE
           PINMUX0 (0x00000000) = 0x00000000 -> 0x00000000
MUX: initialized CIR_UART2
MUX: Setting register CIR_UART2
           PINMUX1 (0x00000004) = 0x00000000 -> 0x00000020
MUX: initialized UART0_GPIO_36_37_38_8
MUX: Setting register UART0_GPIO_36_37_38_8
           PINMUX1 (0x00000004) = 0x00000020 -> 0x00000021
MUX: initialized UART1_GPIO_25_26
MUX: Setting register UART1_GPIO_25_26
           PINMUX1 (0x00000004) = 0x00000021 -> 0x00000025
MUX: initialized UART2_GPIO_39_40_41_42
MUX: Setting register UART2_GPIO_39_40_41_42
           PINMUX1 (0x00000004) = 0x00000025 -> 0x00000035
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
vpif vpif: vpif probe success
Switching to clocksource timer0_1
musb_hdrc: version 6.0, cppi-dma, host, debug=0
musb_hdrc: USB Host mode controller at fec64000 using DMA, IRQ 13
musb_hdrc musb_hdrc: MUSB HDRC host driver
musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 1
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
yaffs Jul  8 2014 15:05:01 Installing.
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
msgmni has been set to 245
io scheduler noop registered
io scheduler anticipatory registered (default)
DMA: DMA_devInit()
DMA:install success, major num = 252
CIR device registered successfully                        (Major = 251,  Minor =
0)
[XKL_GPIO_DRIVER]:dm6467_gpio initialized
Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x1c20000 (irq = 40) is a ST16654
console [ttyS0] enabled
serial8250.0: ttyS1 at MMIO 0x1c20400 (irq = 41) is a ST16650V2
serial8250 serial8250.0: unable to register port at index 2 (IO0 MEM1c20800 IRQ4
2): -22
brd: module loaded
loop: module loaded
at24 1-0050: 32768 byte 24c256 EEPROM (writable)
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit
)
Scanning device for bad blocks
Bad eraseblock 252 at 0x0000003f0000
Bad eraseblock 256 at 0x000000400000
Bad eraseblock 260 at 0x000000410000
Creating 4 MTD partitions on "davinci_nand.0":
0x000000000000-0x000000020000 : "params"
mtd: Giving out device 0 to params
0x000000020000-0x000000160000 : "bootloader"
mtd: Giving out device 1 to bootloader
0x000000500000-0x000000900000 : "kernel"
mtd: Giving out device 2 to kernel
0x000000900000-0x000004000000 : "filesystem"
mtd: Giving out device 3 to filesystem
davinci_nand davinci_nand.0: controller rev. 2.2
spi_davinci spi_davinci.0: DaVinci SPI driver in EDMA mode
Using RX channel = 17 , TX channel = 16 and event queue = 3
at25 spi0.0: 32 KByte at25640a eeprom, pagesize 64
spi_davinci spi_davinci.0: Controller at 0xfec66800
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
dm9000 Ethernet Driver, V1.31
console [netcon0] enabled
netconsole: network logging started
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver usbtest
mice: PS/2 mouse device common for all mice
rtc-pcf8563 1-0051: chip found, driver version 0.4.3
rtc-pcf8563 1-0051: rtc core: registered rtc-pcf8563 as rtc0
i2c /dev entries driver
Linux video capture interface: v2.00
cs4954 1-0000: chip found @ 0x0 (DaVinci I2C adapter)
tvp5158 1-005e: [tvp5158 probe]: chip found @ 0xbc (DaVinci I2C adapter)
tvp5158_checkChip ok!
Patch is downloading...
Patch is downloaded.  Soft reset!
using default mode PAL!
tvp5158_initVideoMode successfully!
tvp5158_initAudioMode devId=0 successfully!
vpif_capture vpif_capture: registered sub device tvp5158-0
tvp5158 1-005f: [tvp5158 probe]: chip found @ 0xbe (DaVinci I2C adapter)
tvp5158_checkChip ok!
Patch is downloading...
Patch is downloaded.  Soft reset!
using default mode PAL!
tvp5158_initVideoMode successfully!
tvp5158_initAudioMode devId=1 successfully!
vpif_capture vpif_capture: registered sub device tvp5158-1
vpif_capture vpif_capture: DM646x VPIF Capture driver initialized
watchdog watchdog: heartbeat 60 sec
Advanced Linux Sound Architecture Driver Version 1.0.21.
[coolen_debug](cs4341_i2c_probe).
[coolen_debug](cs4341_register).
[coolen_debug](davinci_mcasp_probe):    txnumevt = 0.rxnumevt=0
[coolen_debug](davinci_mcasp_probe):    playbackCH = 6.
[coolen_debug](davinci_mcasp_probe):    captureCH = 9.
[coolen_debug](davinci_mcasp_probe):    txnumevt = 0.rxnumevt=0
[coolen_debug](davinci_mcasp_probe):    playbackCH = 12.
[coolen_debug](davinci_mcasp_probe):    captureCH = -1.
[coolen_debug](cs4341_probe).
[coolen_debug](cs4341_init):gpioRet = 0.gpio value 2
[coolen_debug](cs4341_init): cs4341 regList:

CS4341_REG_MODE:0
CS4341_REG_MCLKDIV:0
CS4341_REG_TMIX:8c
CS4341_REG_AVOLUME:0
CS4341_REG_BVOLUME:0
asoc: cs4341 <-> davinci-i2s mapping ok
[coolen_debug](evm_cs4341_init).
ALSA device list:
  #0: DaVinci DM6467 EVM (cs4341)
TCP cubic registered
NET: Registered protocol family 17
Clocks: disable unused emac
Clocks: disable unused timer1
davinci_emac_probe: using random MAC addr: 1e:11:2c:1c:96:62
emac-mii: probed
rtc-pcf8563 1-0051: low voltage detected, date/time is not reliable.
rtc-pcf8563 1-0051: retrieved date/time is not valid.
rtc-pcf8563 1-0051: hctosys: invalid date/time
yaffs: dev is 32505859 name is "mtdblock3"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.3, "mtdblock3"
yaffs: auto selecting yaffs1
yaffs_read_super: isCheckpointed 0
VFS: Mounted root (yaffs2 filesystem) on device 31:3.
Freeing init memory: 136K
Warning: unable to open an initial console.
Failed to execute /linuxrc.  Attempting defaults...
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.
Backtrace:
[<c002e6d0>] (dump_backtrace+0x0/0x110) from [<c002e814>] (dump_stack+0x18/0x1c)

r6:00000000 r5:c002560c r4:c040b490
[<c002e7fc>] (dump_stack+0x0/0x1c) from [<c0040164>] (panic+0x54/0x124)
[<c0040110>] (panic+0x0/0x124) from [<c002a578>] (init_post+0xd4/0xfc)
r3:c6102f00 r2:c03e6520 r1:000000c0 r0:c038550c
[<c002a4a4>] (init_post+0x0/0xfc) from [<c00087cc>] (kernel_init+0xe0/0x110)
r4:c040ad40
[<c00086ec>] (kernel_init+0x0/0x110) from [<c0043240>] (do_exit+0x0/0x654)
r5:00000000 r4:00000000


   

論壇徽章:
1
2015年迎新春徽章
日期:2015-03-04 09:58:11
6 [報(bào)告]
發(fā)表于 2014-07-10 11:40 |只看該作者
本帖最后由 arm-linux-gcc 于 2014-07-10 12:51 編輯

沒找到linuxrc

Kernel command line: noinitrd root=/dev/mtdblock3 rw  rootfstype=yaffs2 init=/li
nuxrc
console=ttyS0,115200,noblock

Failed to execute /linuxrc. Attempting defaults...

在/下創(chuàng)建一個(gè)軟連接,ln -s  /sbin/init  /linuxrc


或者是個(gè)干脆刪掉cmdline里的init=/linuxrc

評分

參與人數(shù) 1可用積分 +10 收起 理由
amarant + 10 贊一個(gè)!

查看全部評分

論壇徽章:
0
7 [報(bào)告]
發(fā)表于 2014-07-10 11:41 |只看該作者
這是我燒寫內(nèi)核的命令:
tftp 0x80700000 uImage

nand erase 500000 220000

nand write 0x80700000 500000  220000

setenv bootcmd 'nand read 0x80700000 0x500000 220000\;bootm 0x80700000'

saveenv

這是我燒寫yaffs2文件系統(tǒng)的命令。都是按照書上所寫的燒的,應(yīng)該沒錯(cuò)。
tftp 0x60000000  yaffs2_78(這是我通過mkyaffs2image命令制作的yaffs2文件系統(tǒng)映像文件)

nand erase 900000 0x3700000

nand write  0x60000000  900000 2f50000

setenv bootargs 'noinitrd root=/dev/mtdblock3 rw  rootfstype=yaffs2 init=/linuxrc console=ttyS0,115200,noblock'

論壇徽章:
1
2015年迎新春徽章
日期:2015-03-04 09:58:11
8 [報(bào)告]
發(fā)表于 2014-07-10 14:45 |只看該作者
本帖最后由 arm-linux-gcc 于 2014-07-10 14:45 編輯

建議用initramfs啟動(dòng)到shell,然后mount yaffs2,然后看看yaffs2里面到底是不是你預(yù)想的那樣
很多時(shí)候都是因?yàn)槎嗔艘粋(gè)頂層目錄導(dǎo)致的

論壇徽章:
0
9 [報(bào)告]
發(fā)表于 2014-07-10 15:37 |只看該作者
回復(fù) 6# arm-linux-gcc
我試過了你說的這兩種方法:一是建立一個(gè)鏈接,二是直接刪除掉?墒牵裉煜挛缥以嚵酥,問題還是一樣的存在啊。


   

論壇徽章:
0
10 [報(bào)告]
發(fā)表于 2014-07-10 15:41 |只看該作者
回復(fù) 8# arm-linux-gcc
我明明寫到開發(fā)板里的根文件系統(tǒng)是yaffs2的,可是內(nèi)核輸出:
yaffs: auto selecting yaffs1
yaffs_read_super: isCheckpointed 0
VFS: Mounted root (yaffs2 filesystem) on device 31:3.

這是不是說明其實(shí)根文件系統(tǒng)沒有燒寫到開發(fā)板中呢?但是我用uboot燒寫根文件系統(tǒng)的時(shí)候,提示燒寫時(shí)正確的。這個(gè)問題卡了我一個(gè)多星期了,還沒搞出來。麻煩您幫忙看看。謝謝!
   
您需要登錄后才可以回帖 登錄 | 注冊

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

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP