logo
한국어 Select Language
FF 포럼
포럼지기에게 한 마디
공지사항
뉴스 EZ보드 통합 메뉴얼
FA-VUS 개발환경 !강추! 타켓보드 부팅-HyperTerminal 타켓보드 부팅-Tutty 타켓보드 부팅-minicom Windows환경-타겟 Linux 구동 Linux환경-타겟 Linux 구동 개발 시스템 구축 유형 페도라 설치 CentOS 설치 크로스 컴파일러 설치 TFTP 환경 구축 NFS 파일 시스템 구축 삼바 서버 구축 부트로더 부트로더 쓰기 커널 이미지 제작 및 설치 램디스크 이미지 제작 및 설치
임베디드 제품 사용기 오늘의 영어 휴게실 Appliance
강좌 & 팁
강좌 & 팁 EZ-보드 그래픽 & 멀티미디어 네트워크 프로그래밍 디바이스 드라이버 ImJa 솔루션 임베디드 FLEX 안드로이드 iOS 개발 FAIDE 하드웨어 C/C++ go언어 GNU C 레퍼런스 메뉴얼 ARM 루아 응용 프로젝트 이클립스 지그비 개발자 노트 권장도서 FPGA
VIVADO DSP HSIO Logic Zynq
함수설명
C 라이브러리 함수 커널 API 그래픽 라이브러리 - gxLib
자료실
자료실 FALINUX SDK ARM PC-V210 S3C6410
G100-S3C6410 S100-S3C6410 C221-S3C6410 N200-S3C6410 EZ-S3C6410
S5PV210
G100-S5PV210 S100-S5PV210 N200-S5PV210 C221-S5PV210
EZ-S3C2440 EZ-PXA270 EZ-X5 EZ-S2410 Auto Package
도와주세요
FAQ 도와주세요

  • 회원가입
  • ID/PW 찾기
 
  1. FAQ

  2. 도와주세요


최근 글

  • [특판][성Y인Y용Y품][...
  • 요즘 잘 나가는,,,
  • 요즘은 vmware 말고 ...
  • [docker] buildx 를 ...
  • buildroot 사용 관련
  • GPIO 제어 방법 문의 [1]
  • 임베디드 리눅스 개발...
  • make wandboard_quad ...
  • LCD 초기화 코드 좀 ... [1]
  • 임베디드 리눅스 커널...

최근 댓글

  • 오래 전에 해결법을 터득해서 ...
  • 비트 코인으로 작업하는 것은 ...
  • 10년차 임베 엔지니어 입니다. ...
  • 임베디드쪽이라면 SOC 쪽 displ...
  • 그렇군요 제가 질문이 잘못됬었...
  • 취준생으로서 포트폴리오를 만...
  • 제가 현재 취업준비생입니다. ...
  • 에프에이리눅스 보드는 아래 링...
  • 전체
  • 일반
  • X5
  • S2410
  • ESP-NS
  • S3C2440
  • EP9312
  • 구매
  • 기타

S3C2440 커널과 램디스크 올리는데 질문입니다..

2010.08.07 01:47

patzer 조회 수:26416

커널은 강좌를 보고 2.6.28.10 을 올렸습니다..  

램디스크는 1.11-16M를 사용하였습니다. 1.12-24M는 부팅이 되질않아서...


제일 아래쪽에 부팅 로그르 올려놓았습니다. 램디스크로 부팅은 잘되는데 yaffs2모드로 사용하기위해 ./mkflashroot를 실행하면 

mkflashroot ver 1.1 (www.falinux.com)
wait about 20sec ...
backup app
mkdir: Cannot create directory `/tmp/': File exists
copy /bin
copy /dev
copy /etc
copy /home
copy /lib
copy /root
copy /sbin
copy /tmp
copy /usr
copy /var
mkdir ...done
restore app

please reboot system and enter EZBOOT->set
Select >> LF
: will be changed [noinitrd root=/dev/mtdblock2]

이런 메세지가 뜨길래 df를 쳐보니


Filesystem 1k-blocks Used Available Use% Mounted on
/dev/ram 15863 13470 1574 90% /

파일 시스템에 ram뿐이었습니다. 원래 mtd는 보이질 않는건가요? 마운트 하려고해도 no such device라고만 떠서 현재 진행이 되질 않고있습니다.

 

지금부터 flash로 루트 파일 시스템을 옮겨서 작업을 하고싶습니다.



부팅로그


0123B

WELCOME EZBOOT V2.3.04 (FALINUX Co.,Ltd) ......S3C2440(EZ-S3C2440) (400MHz)
Program by You Young-chang, Oh Jae-Kyong, Jang Hyung-Gi
Last Modify Apr 30 2009

Detect Samsung NAND 64M 3.3V 8-bit Flash : vid=EC pid=76
SIZE 64-Mbytes (page=512, block=16K)

... not supported part_nr=2
clear lcd .....

Quickly Autoboot [ENTER] / Goto BOOT-MENU press [space bar]......

Copy Kernel Image .....
Copy Ramdisk Image .....
Starting kernel [MARCH 362]...
kernel command [EZBOOT mem=64M initrd=0x30800000,5M root=/dev/ram0 ramdisk=16384 console=ttySAC2,115200 video]
Uncompressing Linux...........................................................................................
Linux version 2.6.28.10 (root@kosmos) (gcc version 4.3.2 (GCC) ) #11 Thu Aug 5 21:26:55 KST 2010
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
CPU: VIVT data cache, VIVT instruction cache
Machine: SMDK2440
Memory policy: ECC disabled, Data cache writeback
CPU S3C2440A (id 0x32440001)
S3C244X: core 399.651 MHz, memory 133.217 MHz, peripheral 66.608 MHz
S3C24XX Clocks, (c) 2004 Simtec Electronics
CLOCK: Slow mode (2.116 MHz), fast, MPLL on, UPLL on
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
Kernel command line: EZBOOT mem=64M initrd=0x30800000,5M root=/dev/ram0 ramdisk=16384 console=ttySAC2,115200
irq: clearing pending status 00000400
irq: clearing subpending status 00000080
PID hash table entries: 256 (order: 8, 1024 bytes)
timer tcon=00000009, tcnt d8d2, tcfg 000002ff,00003333, usec 0000170f
Console: colour dummy device 80x30
console [ttySAC2] enabled
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 55800KB available (3452K code, 330K data, 148K init)
Calibrating delay loop... 199.47 BogoMIPS (lpj=498688)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 484 bytes
NET: Registered protocol family 16
S3C2410 Power Management, (c) 2004 Simtec Electronics
S3C2440: Initialising architecture
S3C2440: IRQ Support
S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics
DMA channel 0 at c4808000, irq 33
DMA channel 1 at c4808040, irq 34
DMA channel 2 at c4808080, irq 35
DMA channel 3 at c48080c0, irq 36
S3C244X: Clock Support, DVS off
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NET: Registered protocol family 1
checking if image is initramfs...it isn't (no cpio magic); looks like an initrd
Freeing initrd memory: 5120K
NetWinder Floating Point Emulator V0.97 (extended precision)
JFFS2 version 2.2. (NAND) (SUMMARY) �© 2001-2006 Red Hat, Inc.
JFS: nTxBlock = 476, nTxLock = 3811
msgmni has been set to 119
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
Console: switching to colour frame buffer device 30x40
fb0: s3c2410fb frame buffer device
lp: driver loaded but no devices found
ppdev: user-space parallel port driver
Serial: 8250/16550 driver4 ports, IRQ sharing enabled
s3c2440-uart.0: s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2440
s3c2440-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2440
s3c2440-uart.2: s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2440
brd: module loaded
loop: module loaded
dm9000 Ethernet Driver, V1.31
Uniform Multi-Platform E-IDE driver
ide-gd driver 1.18
ide-cd driver 5.00
Driver 'sd' needs updating - please use bus_type methods
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2440-nand s3c2440-nand: Tacls=3, 22ns Twrph0=8 60ns, Twrph1=3 22ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit)
Scanning device for bad blocks
Creating 8 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x00004000 : "Boot Agent"
mtd: Giving out device 0 to Boot Agent
0x00000000-0x00200000 : "S3C2410 flash partition 1"
mtd: Giving out device 1 to S3C2410 flash partition 1
0x00400000-0x00800000 : "S3C2410 flash partition 2"
mtd: Giving out device 2 to S3C2410 flash partition 2
0x00800000-0x00a00000 : "S3C2410 flash partition 3"
mtd: Giving out device 3 to S3C2410 flash partition 3
0x00a00000-0x00e00000 : "S3C2410 flash partition 4"
mtd: Giving out device 4 to S3C2410 flash partition 4
0x00e00000-0x01800000 : "S3C2410 flash partition 5"
mtd: Giving out device 5 to S3C2410 flash partition 5
0x01800000-0x03000000 : "S3C2410 flash partition 6"
mtd: Giving out device 6 to S3C2410 flash partition 6
0x03000000-0x04000000 : "S3C2410 flash partition 7"
mtd: Giving out device 7 to S3C2410 flash partition 7
usbmon: debugfs is not available
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
s3c2410-ohci s3c2410-ohci: S3C24XX OHCI
s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1
s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
usbcore: registered new interface driver libusual
usbcore: registered new interface driver usbserial
USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
USB Serial support registered for FTDI USB Serial Device
usbcore: registered new interface driver ftdi_sio
ftdi_sio: v1.4.3:USB FTDI Serial Converters Driver
USB Serial support registered for pl2303
usbcore: registered new interface driver pl2303
pl2303: Prolific PL2303 USB to serial adaptor driver
mice: PS/2 mouse device common for all mice
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
s3c2440-i2c s3c2440-i2c: slave address 0x10
s3c2440-i2c s3c2440-i2c: bus frequency set to 378 KHz
s3c2440-i2c s3c2440-i2c: i2c-0: S3C I2C adapter
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem) readonly.
Freeing init memory: 148K
INIT: version 2.86 booting
INIT: Entering runlevel: 3
SIOCSIFADDR: No such device
SIOCSIFNETMASK: No such device
SIOCGIFFLAGS: No such device
route: SIOC[ADD|DEL]RT: No such device
Starting system logger: [ OK ]
Starting INET services: [ OK ]


Welcome to FALinux (www.falinux.com)
Linux Kernel 2.6.28.10
falinux login:

이 게시물을
  • Twitter
  • Facebook
  • Delicious
목록

댓글 3

  • 박문식

    2010.08.10 02:13

    현재 부팅 모드가 ramdisk 를 이용해서 부팅하고 있네요

    부팅 커맨드를 바꾸셔서 루트파일 시스템을 yaffs2 가 되도록 해주시면 됩니다.

    댓글

  • patzer

    2010.08.10 07:06

    부트로더에서 플래시 부트로 바꿔서 했을경우 커널패닉이 일어납니다..


    아래는 부팅로그입니다.



    Copy Kernel Image .....
    Starting kernel [MARCH 3007]...
    kernel command [EZBOOT mem=64M noinitrd root=/dev/mtdblock2 rootfstype=yaffs2 console=ttySAC2,115200 ]
    Uncompressing Linux...................................................................................
    Linux version 2.6.21-falinux (root@hw27) (gcc version 3.4.3) #5 Wed Mar 4 17:29:35 KST 2009
    CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
    Machine: www.falinux.com EZ-S3C2440 for S3C2440 Board
    Memory policy: ECC disabled, Data cache writeback
    CPU S3C2440A (id 0x32440001)
    S3C244X: core 399.651 MHz, memory 133.217 MHz, peripheral 66.608 MHz
    S3C24XX Clocks, (c) 2004 Simtec Electronics
    CLOCK: Slow mode (2.116 MHz), fast, MPLL on, UPLL on
    CPU0: D VIVT write-back cache
    CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
    CPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
    Built 1 zonelists. Total pages: 16256
    Kernel command line: EZBOOT mem=64M noinitrd root=/dev/mtdblock2 rootfstype=yaffs2 console=ttySAC2,11
    irq: clearing pending status 00000400
    irq: clearing subpending status 000000c0
    irq: clearing subpending status 00000080
    PID hash table entries: 256 (order: 8, 1024 bytes)
    timer tcon=00000009, tcnt 2b5c, tcfg 000002ff,00003333, usec 0000170f
    Console: colour dummy device 80x30
    Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
    Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
    Memory: 64MB = 64MB total
    Memory: 60976KB available (3360K code, 391K data, 140K init)
    Mount-cache hash table entries: 512
    CPU: Testing write buffer coherency: ok
    NET: Registered protocol family 16
    S3C2440: Initialising architecture
    S3C2440: IRQ Support
    S3C2440: Clock Support, DVS off
    S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics
    DMA channel 0 at c4800000, irq 33
    DMA channel 1 at c4800040, irq 34
    DMA channel 2 at c4800080, irq 35
    DMA channel 3 at c48000c0, irq 36
    SCSI subsystem initialized
    usbcore: registered new interface driver usbfs
    usbcore: registered new interface driver hub
    usbcore: registered new device driver usb
    NET: Registered protocol family 2
    IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
    TCP established hash table entries: 2048 (order: 2, 16384 bytes)
    TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
    TCP: Hash tables configured (established 2048 bind 2048)
    TCP reno registered
    NetWinder Floating Point Emulator V0.97 (double precision)
    audit: initializing netlink socket (disabled)
    audit(0.145:1): initialized
    yaffs Mar 4 2009 12:38:54 Installing.
    io scheduler noop registered (default)
    s3c2410-lcd s3c2410-lcd: options are "panel:2"
    Console: switching to colour frame buffer device 80x30
    fb0: s3c2410fb frame buffer device ( 640x480x16 )
    S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
    s3c2440-uart.0: ttySAC0 at MMIO 0x50000000 (irq = 70) is a S3C2440
    s3c2440-uart.1: ttySAC1 at MMIO 0x50004000 (irq = 73) is a S3C2440
    s3c2440-uart.2: ttySAC2 at MMIO 0x50008000 (irq = 76) is a S3C2440
    RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize
    loop: loaded (max 8 devices)
    usbcore: registered new interface driver ub
    AX88796B: v1.1.0
    AX88796B: 09/20/06 (http://www.asix.com.tw)
    ax88796b: MAC ADDRESS 00 fa 01 a2 13 04
    Linux video capture interface: v2.00
    S3C24XX NAND Driver, (c) 2004 Simtec Electronics
    s3c2440-nand s3c2440-nand: Tacls=3, 22ns Twrph0=8 60ns, Twrph1=3 22ns
    NAND device: Manufacturer ID:0xec, Chip ID:0x76 (Samsung NAND 64MiB 3,3V 8-bit)
    Scanning device for bad blocks
    count of bad blocks = 0
    Creating 3 MTD partitions on "NAND 64MiB 3,3V 8-bit":
    0x00000000-0x00200000 : "falinux boot/config/logo partition"
    0x00200000-0x00a00000 : "falinux kernel/ramdisk partition"
    0x00a00000-0x04000000 : "falinux yaffs partition"
    s3c2410-ohci s3c2410-ohci: S3C24XX OHCI
    s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1
    s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000
    usb usb1: configuration #1 chosen from 1 choice
    hub 1-0:1.0: USB hub found
    hub 1-0:1.0: 2 ports detected
    Initializing USB Mass Storage driver...
    usbcore: registered new interface driver usb-storage
    USB Mass Storage support registered.
    usbcore: registered new interface driver usbhid
    drivers/usb/input/hid-core.c: v2.6:USB HID core driver
    mice: PS/2 mouse device common for all mice
    s3c2410 TouchScreen successfully loaded
    input: s3c2410 TouchScreen as /class/input/input0
    S3C24XX RTC, (c) 2004,2006 Simtec Electronics
    s3c2410-rtc s3c2410-rtc: rtc disabled, re-enabling
    s3c2410-rtc s3c2410-rtc: rtc core: registered s3c as rtc0
    i2c /dev entries driver
    s3c2440-i2c s3c2440-i2c: slave address 0x10
    s3c2440-i2c s3c2440-i2c: bus frequency set to 378 KHz
    s3c2440-i2c s3c2440-i2c: i2c-0: S3C I2C adapter
    mapped channel 0 to 0
    s3c2440-sdi s3c2440-sdi: initialisation done.
    Advanced Linux Sound Architecture Driver Version 1.0.14rc3.
    ASoC version 0.13.0
    AC97 SoC Audio Codec 0.6
    asoc: AC97 HiFi <-> s3c2440-ac97 mapping ok
    ALSA device list:
    #0: FALINUXS3C2440 (AC97)
    TCP cubic registered
    NET: Registered protocol family 1
    NET: Registered protocol family 10
    lo: Disabled Privacy Extensions
    Mobile IPv6
    IPv6 over IPv4 tunneling driver
    sit0: Disabled Privacy Extensions
    NET: Registered protocol family 17
    s3c2410-rtc s3c2410-rtc: hctosys: invalid date/time
    yaffs: dev is 32505858 name is "mtdblock2"
    yaffs: passed flags ""
    yaffs: Attempting MTD mount on 31.2, "mtdblock2"
    yaffs: auto selecting yaffs1
    VFS: Mounted root (yaffs2 filesystem) readonly.
    Freeing init memory: 140K
    Warning: unable to open an initial console.
    Kernel panic - not syncing: No init found. Try passing init= option to kernel.

    댓글

  • 박문식

    2010.08.13 20:28

    첫번째 부팅시에 난드 파티션을 잘못잡혔었네요... 

    첫번째 로그의 mtd 드라이버와 두번재 로그의 mtd 드라이버가 다른것이 올라가면서

    데이타가 깨진것 같습니다.


    두번째 커널의 로그에는 정상으로 보입니다.


    두번째 커널을 이용해서 램디스크 부팅을 하시고  mkflashroot 를 다시 실행하셔서

    낸드에 정상적인 루트파일시스템을 구축하신후


    yaffs2 로 다시 한번 부팅을 시도해 보세요...

    <meta http-equiv="content-type" content="text/html; charset=utf-8"></meta>

    댓글

목록
번호 제목 글쓴이 날짜 조회 수
공지 포럼의 메뉴가 보이지 않아요! 장길석 2014.02.06 957636
공지 [중요 공지]제품 사용 및 기술 문의는 전화 상담을 받지 않습니다. 장길석 2012.11.09 1408531
공지 답글에 대한 공지 사항. falinux 2006.11.20 2424025
396 S3C2440 베이스 보드에 EM-S3C6410모듈 보드를 연결해서 사용해도 가능한가요? 바람 2015.01.20 14993
395 node webkit 동영상 독불장군 2014.08.10 15291
394 /dev/mtd1 플래시 관련해서 도움이 필요합니다. 그린에너지 2014.07.19 17659
393 파일시스템상에 파일내용 매번 수정/저장 할때의 낸드 수명? [3] Tomy 2014.02.05 19866
392 보드에 삼바서버나 nfs 서버 올리기? [2] Tomy 2014.02.03 19942
391 core dump file 생성 및 분석 unicorn 2014.01.24 26905
390 pwm 신호로 모터제어를 하는데 있어서 질문이 있습니다 ㅂㅋ 2013.12.19 30703
389 커널2.6.38 올리기 [1] file hirosuk 2013.09.20 23360
388 부팅중 움직이는(애니메이션) 로고 만들기 ? [2] Tomy 2013.06.11 69904
387 EMI 관련 대책방법 문의 오엔터 2013.04.09 24035
386 ezboot2 Unable to mount root fs on unknown-block(1,0) [1] 제피러스 2012.12.29 30878
385 Uncompressing Linux ... Invalid compressed format (err=1) [1] 제피러스 2012.12.28 27543
384 U-boot 1.1.6에서 ezboot2.4.10으로 갈아타던중 커널 부팅 문제 [2] 제피러스 2012.12.25 27003
383 S3c2440 Linux Kernel 2.6.21의 실시간 관련 문의 드립니다. [1] AA리눅스 2012.11.01 23171
382 MRP-S3C2440에서 I2C와 I2S 동시에 썼을 경우. [1] 캐드리안 2012.09.13 25213
381 AX88796 PHY mode 변경 [1] unicorn 2012.06.22 52310
380 s3c2440에서 iptables를 사용하려 합니다. SonYs 2012.06.11 23280
379 프레임 버퍼 픽셀 값 쉬프트 연산하는 방법 강릉바감 2012.05.17 21176
378 CAN 통신관련 질문글 올립니다.ㅜㅜ 박한수 2012.05.16 23464
377 4GB SD와 SDHC의 인식에 차이가 있는지 궁금 합니다. [3] 새벽남 2012.04.23 24509
첫 페이지 1 2 3 4 5 6 7 8 9 10 끝 페이지
쓰기
태그
부탁드립니다. ^^
  • 글을 작성하시려면 회원으로 가입하시고 로그인 하셔야 합니다.
  • 회원 가입은 주민등록번호가 필요 없으며, 메일 주소만 있으면 간단하게 가입하실 수 있습니다.
  • 본 포럼에 등록된 모든 글의 저작권은 작성하신 분께 있으며, 저작자의 허락 없이 다른 곳에 펌이나 도용하시면 안 됩니다.
  • 또한, 전자우편 수집 프로그램이나 그 밖의 기술적 장치를 이용하여 무단으로 이메일 주소 및 자료 수집되는 것을 거부하며,
  • 이를 위반 시 정보통신망 법에 의해 형사 처벌됨을 유념하시기 바랍니다.
  • FF 포럼
  • 강좌 & 팁
  • 함수설명
  • 자료실
  • 도와주세요