기존 이솝 임베디드 포럼의 지식인 서비스가 게시판 형태로 변경되었습니다.

AM3517을 쓰는 커스텀 보드가 있습니다 외주 업체에서 받았는데요

UBI 파일시스템이 들어 있던데 파일시스템이 너무 자주 깨져서
(NAND 플래시)

YAFFS2 파일시스템으로 바꿀려고 하는데 잘 안되네요

http://processors.wiki.ti.com/index.php/Filesystem_in_NOR_or_NAND

여기를 보고 커널에 YAFFS2 패치해서 포함 시키고 설정 해서 빌드 했습니다

그리고 파일시스템은 UBIFS 만들때 쓰던 폴더를 mkyaffs2를 이용해서 만들었고요
(mkyaffs2 rootfs/ 파일명)

u-boot 에서 

AM3517의 메모리 맵대로 위에서 압축한 파일시스템을 0x00780000에 올렸습니다

그리고 

setenv bootargs console=ttyO2,115200n8 root=/dev/mtdblock3 rootfstype=yaffs2 rw mem=256M

이렇게 설정했습니다

root=/dev/mtdblock를 mtdblock0에서 mtdblock5까지도 변경해봤고
init = /sbin/init 도 추가해봤지만 여전히 에러가 나네요

아래가 부팅 메세지 인데

YAFFS2 파일시스템으로 바꿀려면 어떤 작업이 더 필요한지 궁금합니다

정말 감사합니다^^




Uncompressing Linux... done, booting the kernel.
[    0.000000] Linux version 2.6.37 (root@sinwho) (gcc version 4.7.3 20130226 (prerelease) (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) ) #3 Mon Aug 17 11:54:01 KST 2015
[    0.000000] CPU: ARMv7 Processor [411fc087] revision 7 (ARMv7), cr=10c53c7d
[    0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[    0.000000] Machine: OMAP3517/AM3517 EVM
[    0.000000] Reserving 4194304 bytes SDRAM for VRAM
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] AM3505 ES1.1 (l2cache neon isp )
[    0.000000] SRAM: Mapped pa 0x40200000 to va 0xfe400000 size: 0x10000
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 64000
[    0.000000] Kernel command line: console=ttyO2,115200n8 root=/dev/mtdblock5 rootfstype=yaffs2 rw
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Memory: 252MB = 252MB total
[    0.000000] Memory: 242304k/242304k available, 19840k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
[    0.000000]     vmalloc : 0xd0800000 - 0xf8000000   ( 632 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .init : 0xc0008000 - 0xc0038000   ( 192 kB)
[    0.000000]       .text : 0xc0038000 - 0xc05d7a8c   (5759 kB)
[    0.000000]       .data : 0xc05d8000 - 0xc0789b60   (1735 kB)
[    0.000000] NR_IRQS:375
[    0.000000] Clocking rate (Crystal/Core/MPU): 26.0/332/600 MHz
[    0.000000] omap_hwmod: i2c1: softreset failed (waited 10000 usec)
[    0.000000] omap_hwmod: i2c2: softreset failed (waited 10000 usec)
[    0.000000] omap_hwmod: i2c3: softreset failed (waited 10000 usec)
[    0.000000] Reprogramming SDRC clock to 332000000 Hz
[    0.000000] dpll3_m2_clk rate change failed: -22
[    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 4.0) with 96 interrupts
[    0.000000] Total of 96 interrupts on 1 active controller
[    0.000000] GPMC revision 5.0
[    0.000000] Trying to install interrupt handler for IRQ368
[    0.000000] Trying to install interrupt handler for IRQ369
[    0.000000] Trying to install interrupt handler for IRQ370
[    0.000000] Trying to install interrupt handler for IRQ371
[    0.000000] Trying to install interrupt handler for IRQ372
[    0.000000] Trying to install interrupt handler for IRQ373
[    0.000000] Trying to install interrupt handler for IRQ374
[    0.000000] Trying to install type control for IRQ375
[    0.000000] Trying to set irq flags for IRQ375
[    0.000000] OMAP clockevent source: GPTIMER1 at 32768 Hz
[    0.000000] Console: colour dummy device 80x30
[    0.000000] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar
[    0.000000] ... MAX_LOCKDEP_SUBCLASSES:  8
[    0.000000] ... MAX_LOCK_DEPTH:          48
[    0.000000] ... MAX_LOCKDEP_KEYS:        8191
[    0.000000] ... CLASSHASH_SIZE:          4096
[    0.000000] ... MAX_LOCKDEP_ENTRIES:     16384
[    0.000000] ... MAX_LOCKDEP_CHAINS:      32768
[    0.000000] ... CHAINHASH_SIZE:          16384
[    0.000000]  memory used by lock dependency info: 3951 kB
[    0.000000]  per task-struct memory footprint: 2304 bytes
[    0.000000] Calibrating delay loop... 597.64 BogoMIPS (lpj=2334720)
[    0.000000] pid_max: default: 32768 minimum: 301
[    0.000000] Security Framework initialized
[    0.000000] Mount-cache hash table entries: 512
[    0.000000] CPU: Testing write buffer coherency: ok
[    0.000000] regulator: core version 0.5
[    0.000000] regulator: dummy:
[    0.000000] NET: Registered protocol family 16
[    0.000000] OMAP GPIO hardware version 2.5
[    0.000000] OMAP GPIO hardware version 2.5
[    0.000000] OMAP GPIO hardware version 2.5
[    0.000000] OMAP GPIO hardware version 2.5
[    0.000000] OMAP GPIO hardware version 2.5
[    0.000000] OMAP GPIO hardware version 2.5
[    0.000000] omap_mux_init: Add partition: #1: core, flags: 0
[    0.000000] Display initialized successfully
[    0.000000] _omap_mux_init_gpio: Multiple gpio paths (2) for gpio126
[    0.000000] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.000000] OMAP DMA hardware revision 4.0
[    0.129211] bio: create slab <bio-0> at 0
[    0.137573] SCSI subsystem initialized
[    0.142517] usbcore: registered new interface driver usbfs
[    0.144165] usbcore: registered new interface driver hub
[    0.145385] usbcore: registered new device driver usb
[    0.151550] omap_device: omap_i2c.1: new worst case activate latency 0: 61035
[    0.151733] omap_i2c omap_i2c.1: bus 1 rev3.12 at 400 kHz
[    0.166992] omap_i2c omap_i2c.2: bus 2 rev3.12 at 400 kHz
[    0.169616] omap_device: omap_i2c.2: new worst case deactivate latency 0: 30517
[    0.182434] omap_i2c omap_i2c.3: bus 3 rev3.12 at 400 kHz
[    0.191040] Advanced Linux Sound Architecture Driver Version 1.0.23.
[    0.195587] Switching to clocksource 32k_counter
[    0.253814] FS-Cache: Loaded
[    0.256256] CacheFiles: Loaded
[    0.345855] musb-hdrc: version 6.0, host, debug=0
[    0.346374] musb-hdrc musb-hdrc.0: dma type: dma-cppi41
[    0.347961] <6>Waiting for PHY clock good...
[    0.361419] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
[    0.363403] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 1
[    0.364440] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    0.364440] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.364471] usb usb1: Product: MUSB HDRC host driver
[    0.364501] usb usb1: Manufacturer: Linux 2.6.37 musb-hcd
[    0.364501] usb usb1: SerialNumber: musb-hdrc.0
[    0.370208] hub 1-0:1.0: USB hub found
[    0.370574] hub 1-0:1.0: 1 port detected
[    0.375579] musb-hdrc musb-hdrc.0: USB Host mode controller at d0810000 using DMA, IRQ 71
[    0.377471] NET: Registered protocol family 2
[    0.378417] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.380584] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[    0.381042] TCP bind hash table entries: 8192 (order: 6, 360448 bytes)
[    0.385925] TCP: Hash tables configured (established 8192 bind 8192)
[    0.386047] TCP reno registered
[    0.386077] UDP hash table entries: 128 (order: 1, 12288 bytes)
[    0.386444] UDP-Lite hash table entries: 128 (order: 1, 12288 bytes)
[    0.387603] NET: Registered protocol family 1
[    0.389343] RPC: Registered udp transport module.
[    0.389373] RPC: Registered tcp transport module.
[    0.389373] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.390655] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.393768] omap_init_opp_table: no hwmod or odev for iva, [9] cannot add OPPs.
[    0.396789] AM3505  Linux PSP version 04.02.00.07 (AM3517EVM)
[    0.559356] NTFS driver 2.1.29 [Flags: R/W].
[    0.559753] JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.561004] msgmni has been set to 473
[    0.569519] io scheduler noop registered
[    0.569549] io scheduler deadline registered
[    0.569793] io scheduler cfq registered (default)
[    0.633605] OMAP DSS rev 2.0
[    0.633728] omapdss supply vdds_dsi not found, using dummy regulator
[    0.634277] OMAP DISPC rev 3.0
[    0.634307] omapdss supply vdda_dac not found, using dummy regulator
[    0.634429] OMAP VENC rev 2
[    0.635742] OMAP DSI rev 1.0
[    0.966644]  drivers/char/znx_gpio.c ( 441)
[    0.966674]  >> znxGpio driver register success !!!
[    0.971740]  drivers/char/znx_ads863x.c ( 623)
[    0.971771]  >> znxAds863x driver register success !!!
[    0.971801] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    1.006408] serial8250.0: ttyS0 at MMIO 0x8000000 (irq = 312) is a 16550A
[    1.030242] serial8250.0: ttyS1 at MMIO 0x8000200 (irq = 312) is a 16550A
[    1.053527] serial8250.0: ttyS2 at MMIO 0x8000400 (irq = 312) is a 16550A
[    1.076812] serial8250.0: ttyS3 at MMIO 0x8000600 (irq = 312) is a 16550A
[    1.079772] omap_uart.0: ttyO0 at MMIO 0x4806a000 (irq = 72) is a OMAP UART0
[    1.081817] omap_uart.1: ttyO1 at MMIO 0x4806c000 (irq = 73) is a OMAP UART1
[    1.083435] omap_uart.2: ttyO2 at MMIO 0x49020000 (irq = 74) is a OMAP UART2
[    1.878906] console [ttyO2] enabled
[    1.935211] brd: module loaded
[    1.963073] loop: module loaded
[    1.973815] mtdoops: mtd device (mtddev=name/number) must be supplied
[    1.981964] omap2-nand driver initializing
[    1.986968] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xcc (Micron )
[    1.994110] Creating 6 MTD partitions on "omap2-nand.0":
[    1.999694] 0x000000000000-0x000000080000 : "xloader-nand"
[    2.016906] 0x000000080000-0x000000240000 : "uboot-nand"
[    2.030456] 0x000000240000-0x000000280000 : "params-nand"
[    2.043243] 0x000000280000-0x000000780000 : "linux-nand"
[    2.058471] 0x000000780000-0x000018780000 : "rootfs_ubifs"
[    2.267028] 0x000018780000-0x000020000000 : "Reserve"
[    2.391174] davinci_mdio davinci_mdio: davinci mdio revision 1.5
[    2.397491] davinci_mdio davinci_mdio: detected phy mask f00fff80
[    2.408142] IP17xx: Found IP175D at ffffffff:00
[    2.444732] davinci_mdio: probed
[    2.451202] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.458435] ehci-omap.0 supply hsusb0 not found, using dummy regulator
[    3.469207] ehci-omap ehci-omap.0: OMAP-EHCI Host Controller
[    3.475463] ehci-omap ehci-omap.0: new USB bus registered, assigned bus number 2
[    3.483886] ehci-omap ehci-omap.0: irq 77, io mem 0x48064800
[    3.500610] ehci-omap ehci-omap.0: USB 2.0 started, EHCI 1.00
[    3.507171] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    3.514373] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.522003] usb usb2: Product: OMAP-EHCI Host Controller
[    3.527648] usb usb2: Manufacturer: Linux 2.6.37 ehci_hcd
[    3.533355] usb usb2: SerialNumber: ehci-omap.0
[    3.542480] hub 2-0:1.0: USB hub found
[    3.546539] hub 2-0:1.0: 3 ports detected
[    3.579620] Initializing USB Mass Storage driver...
[    3.585784] usbcore: registered new interface driver usb-storage
[    3.592163] USB Mass Storage support registered.
[    3.597076] udc: OMAP UDC driver, version: 4 October 2004 (iso) (dma)
[    3.608551] mice: PS/2 mouse device common for all mice
[    3.620483] input: TSC2004 Touchscreen as /devices/virtual/input/input0
[    3.645111] rtc-s35390a 1-0030: rtc core: registered rtc-s35390a as rtc0
[    3.653717] i2c /dev entries driver
[    3.664367] Linux video capture interface: v2.00
[    3.670959] vpfe_init
[    3.674224] vpfe-capture vpfe-capture: v4l2 device registered
[    3.683013] vpfe-capture vpfe-capture: video device registered
[    3.691741] tvp514x 3-005c: tvp514x 3-005c decoder driver registered !!
[    3.699249] omap_device: omap_i2c.3: new worst case activate latency 0: 91552
[    3.711242] tvp514x 3-005c: tvp5146 (Version - 0x03) found at 0xb8 (OMAP I2C adapter)
[    3.727844] vpfe-capture vpfe-capture: v4l2 sub device tvp5146 registered
[    3.736724] vpfe_register_ccdc_device: DM6446 CCDC
[    3.741912] DM6446 CCDC is registered with vpfe.
[    3.748260] omap_device: omap_wdt.-1: new worst case activate latency 0: 30517
[    3.758117] OMAP Watchdog Timer Rev 0x31: initial timeout 30 sec
[    3.764587] omap_device: omap_wdt.-1: new worst case deactivate latency 0: 30517
[    3.781494] usbcore: registered new interface driver ushc
[    3.790466] usbcore: registered new interface driver usbhid
[    3.796325] usbhid: USB HID core driver
[    3.809173] OMAP3517 / AM3517 EVM SoC init
[    3.815673] AIC23 Audio Codec 0.1
[    3.822967] request_irq HEADPHONE GPIO IRQ success !!!
[    3.832885] asoc: tlv320aic23-hifi <-> omap-mcbsp-dai.0 mapping ok
[    3.860870] ALSA device list:
[    3.863983]   #0: am3517evm
[    3.866912] oprofile: hardware counters not available
[    3.872253] oprofile: using timer interrupt.
[    3.877502] TCP cubic registered
[    3.880889] Initializing XFRM netlink socket
[    3.885711] NET: Registered protocol family 17
[    3.890533] NET: Registered protocol family 15
[    3.895965] Registering the dns_resolver key type
[    3.901702] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 1
[    3.911499] ThumbEE CPU extension supported.
[    3.930725] Power Management for TI OMAP3.
[    3.981628] clock: disabling unused clocks to save power
[    4.078033] rtc-s35390a 1-0030: setting system clock to 2015-08-17 12:03:06 UTC (1439812986)
[    4.087432] omap_vout omap_vout: Buffer Size = 3686400
[    4.096252] omap_vout omap_vout: : registered and initialized video device 1
[    4.103759] omap_vout omap_vout: Buffer Size = 3686400
[    4.112060] omap_vout omap_vout: : registered and initialized video device 2
[    4.126953] yaffs: dev is 32505861 name is "mtdblock5" rw
[    4.132598] yaffs: passed flags ""
[    4.341278] VFS: Mounted root (yaffs2 filesystem) on device 31:5.
[    4.347930] Freeing init memory: 192K
[    4.352539] Kernel panic - not syncing: No init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
[    4.365692] [<c0047afc>] (unwind_backtrace+0x0/0xe0) from [<c0431b60>] (panic+0x50/0x17c)
[    4.374328] [<c0431b60>] (panic+0x50/0x17c) from [<c0431918>] (init_post+0xa0/0xc0)
[    4.382446] [<c0431918>] (init_post+0xa0/0xc0) from [<c0008cb8>] (kernel_init+0x110/0x144)
[    4.391174] [<c0008cb8>] (kernel_init+0x110/0x144) from [<c0043030>] (kernel_thread_exit+0x0/0x8)


바닷바람

2015.08.18 10:17:24
*.98.146.205

음. TI가 아직 ARM AP를 내놓고 있군요. 접은줄알았는데...

왜 굳이 오래된 커널과 파일시스템을 사용하시려는지 잘 이해가 안되네요.

sinwho

2015.08.18 20:24:31
*.240.194.5

감사합니다. 회사에서 개발한 제품이라 좀 예전 AP네요

저도 이번에 새로 개발할려고 TI의 AM335X를 사용할려고 하는데

요즘은 어떤 AP를 많이 쓰나요? 전 TI가 자료가 잘되어 있어서 괜찮은줄 알았는데 아닌가봐요^^

List of Articles
번호 제목 글쓴이 날짜 조회 수
6228 [i.MX6 개발 Reference BD구하려고 하던중,..] 밥줘잉 2015-09-23 311
6227 리눅스 부팅시 SD 카드 마운트 할 위치를 지정하는 방법이 궁금합... [2] sinwho 2015-09-19 595
6226 하드웨어코덱 사용하려면 soc사에서 직접지원을 받아야 하는건가요? [1] pedor11 2015-09-18 982
6225 안드로이드 보드 중 4k출력을 지원하는 보드가 있는지 궁금합니다. [5] 새삶 2015-09-17 444
6224 RTC ALARM 인터럽트 [4] JinJi 2015-09-15 267
6223 jni 질문드립니다. [2] vain 2015-09-02 264
6222 특정 process(mplayer)가 4개의 cpu 중에 1나의 점유율을 100%가져갈... [1] 혜민아빠 2015-08-27 321
6221 램디스크 파일 시스템 만들기 [4] sinwho 2015-08-19 43038
6220 리눅스 yaffs2 포팅 방법 [2] sinwho 2015-08-18 246
» 리눅스 YAFFS2 파일 시스템 에러 [2] sinwho 2015-08-17 670
6218 DDR SDRAM불량 현상 [1] 테크 2015-08-15 270
6217 밑의 LCD 포팅 질문드렸었는데 추가 질문이 있습니다. [2] ImYeol 2015-08-13 193
6216 Touch screen에 관해서… [1] 어떤이의꿈 2015-08-10 207
6215 2440보드에서 DM9000 디버깅하는 방법? file [3] DavidKim 2015-08-08 256
6214 안드로이드 보드 hdmi 출력 어떻게 화인 하면 될까요.? [1] 새삶 2015-08-05 308
6213 LCD 드라이버 포팅 질문입니다. [1] ImYeol 2015-08-03 379
6212 NAND bad sector가 새로 발생했을 때… [1] 오르다 2015-07-31 6209
6211 2440 보드의 address 신호와 소스상의 주소를 어떻게 이해 하고 있... [2] DavidKim 2015-07-29 181
6210 안드로이드 핸드폰에 /dev/bus/usb 장치 권한을 바꿀수있나요? [5] biokk 2015-07-28 738
6209 touch screen관련 여쭤봅니다. [1] 열심히 2015-07-25 173

사용자 로그인