도와주세요!!
안드로이드 환경 파일 만들고, 안드로이드 강의 보면서 커널 만들었습니다.
부팅을 하면
yaffs: NAND geometry problems: chunk size 2048, type is yaffs2, inbandTags 0
init: cannot find '/system/bin/servicemanager', disabling 'servicemanager'
이렇게 나옵니다.
여기에 나온 세팅도 해봤는데도 오류가 생겨서 문의 남깁니다.
8) boot loader file name : ezboot.ez-s3c6410
9) logo image file name :
10) auto execute full name :
11) autoboot wait time : 2
12) copy ramdisk [Y/N] : N
13) arm kernel arch number : 3000
14) nand part (B,C,L,K,R,A): 1,1,2,3,10,1007
15) watchdog (sec, off=0) : 0
16) KCMD 1 : mem=128M
17) KCMD 2 : noinitrd root=/dev/mtdblock2 rootfstype=yaffs2
18) KCMD 3 : console=ttySAC0,115200
19) KCMD 4 : init=/init /init.rc
20) KCMD 5 : ezpanel=3
21) KCMD 6 :
안드로이드로 작업을 하기 위하여 yaffs로 부팅을 시도 하고 계신 상황으로 보입니다.
yaffs: NAND geometry problems: chunk size 2048, type is yaffs2, inbandTags 0
init: cannot find '/system/bin/servicemanager', disabling 'servicemanager'
위의 오류 메시지는 init 프로그램이 /system/bin/servicemanager 라고 하는 프로그램을 동작 시키려고 하는데 에러가 발생 하는것 같습니다.
안드로이드의 경우, 안드로이드에서 원하는 조건이 맞지 않으면 부팅이 잘 안 될 수 있습니다.
안드로이드가 요구하는 것을 맞추어 주어야 할 것 같습니다.
안드로이드의 init.rc 파일의 내용중 아마 다음과 같이 3 이라고 되어 있을것 같은데요.
loglevel 3
이 부분의 로그레벨을
loglevel 20
20 정도로 높여서 보시면 많은 로그 메시지를 확인 하 실 수 있습니다.
안드로이드의 servicemanager 프로그램에서 무엇인가 오류가 발생한 것으로 예상 됩니다.
또한 제공되는 커널로 작업을 하였을때, 멈추어 있는것 같이 보인다고 하셨는데 램디스크로 진행을 수행하면 부팅이 되는지 확인해 보셨으면 합니다.
램디스크로 진입하려면 부트로더에서 램디스크로 부팅 하기 위해서 EZBOOT 메뉴에서 LR을 하시면 램디스크로 부팅 할 수 있는 상태로 됩니다.
이 상태에서 다시 부팅을 해보시기 바랍니다.
21) KCMD 6 : loglevel 20을 하는게 맞나요?
그리고 램디스크로 진행을 하면 부팅은 되는데 리눅스 부팅만 되고 안드로이드로는 안되더라고요.
Copy Kernel Image .....
Starting kernel [MARCH 3000]...
kernel command [EZBOOT mem=128M noinitrd root=/dev/mtdblock2 rootfstype=yaffs2 ]
Uncompressing Linux.............................................................
Linux version 2.6.29-falinux (root@ubuntu) (gcc version 4.3.2 (GCC) ) #1 PREEMP2
CPU: ARMv6-compatible processor [410fb766] revision 6 (ARMv7), cr=00c5387f
CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
Machine: EZS3C6410
Memory policy: ECC disabled, Data cache writeback
On node 0 totalpages: 32768
free_area_init_node: node 0, pgdat c05a339c, node_mem_map c064a000
DMA zone: 256 pages used for memmap
DMA zone: 0 pages reserved
DMA zone: 32512 pages, LIFO batch:7
CPU S3C6410 (id 0x36410101)
s3c6410_init_clocks: initialising clocks
S3C24XX Clocks, (c) 2004 Simtec Electronics
s3c6400_setup_clocks: registering clocks
s3c6400_setup_clocks: clkdiv0 = 01043310
s3c6400_setup_clocks: xtal is 12000000
S3C64XX: PLL settings, A=666000000, M=532000000, E=96000000
S3C64XX: HCLKx2=266000000, HCLK=133000000, PCLK=66500000
mout_apll: source is fout_apll (1), rate is 666000000
mout_epll: source is fout_epll (1), rate is 96000000
mout_mpll: source is mpll (1), rate is 532000000
mmc_bus: source is mout_epll (0), rate is 96000000
mmc_bus: source is mout_epll (0), rate is 96000000
mmc_bus: source is mout_epll (0), rate is 96000000
usb-host-bus: source is mout_epll (0), rate is 96000000
s3c64xx_clk_doutmpll_get_rate: parent is 532000000
uclk1: source is dout_mpll (1), rate is 66500000
spi-bus: source is mout_epll (0), rate is 96000000
spi-bus: source is mout_epll (0), rate is 96000000
audio-bus: source is mout_epll (0), rate is 96000000
audio-bus: source is mout_epll (0), rate is 96000000
irda-bus: source is mout_epll (0), rate is 96000000
s3c64xx: 8388608 bytes SDRAM reserved for pmem at 0x50752000
s3c64xx: 3145728 bytes SDRAM reserved for pmem_gpu1 at 0x50f52000
s3c64xx: 6291456 bytes SDRAM reserved for pmem_adsp at 0x51252000
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
Kernel command line: EZBOOT mem=128M noinitrd root=/dev/mtdblock2 rootfstype=ya
Unknown boot option `/init.rc': ignoring
s3c64xx_init_irq: initialising interrupts
PID hash table entries: 512 (order: 9, 2048 bytes)
timer tcon=00000009, tcnt 251b, tcfg 000006ff,00003333, usec 00001719
Console: colour dummy device 80x30
console [ttySAC0] enabled
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: 105940KB available (4580K code, 858K data, 964K init)
Calibrating delay loop... 661.50 BogoMIPS (lpj=330752)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 520 bytes
NET: Registered protocol family 16
S3C6410 Power Management, (c) 2008 Samsung Electronics
S3C6410: Initialising architecture
S3C DMA-pl080 Controller Driver, (c) 2006-2007 Samsung Electronics
Total 32 DMA channels will be initialized.
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
cfg80211: Using static regulatory domain info
cfg80211: Regulatory domain: US
(start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
(2402000 KHz - 2472000 KHz @ 40000 KHz), (600 mBi, 2700 mBm)
(5170000 KHz - 5190000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
(5190000 KHz - 5210000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
(5210000 KHz - 5230000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
(5230000 KHz - 5330000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
(5735000 KHz - 5835000 KHz @ 40000 KHz), (600 mBi, 3000 mBm)
cfg80211: Calling CRDA for country: US
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
S3C64XX ADC driver, (c) 2008 Samsung Electronics
S3C64XX ADC driver successfully probed
NetWinder Floating Point Emulator V0.97 (double precision)
ashmem: initialized
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
yaffs Sep 18 2012 10:46:43 Installing.
msgmni has been set to 207
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
S3C_LCD clock got enabled :: 133.000 Mhz
Window[0] - FB1: map_video_memory: clear ff000000:00177000
FB1: map_video_memory: dma=57a00000 cpu=ff000000 size=00177000
Window[0] - FB2: map_video_memory: clear ff0bb800:000bb800
FB2: map_video_memory: dma=57abb800 cpu=ff0bb800 size=000bb800
Console: switching to colour frame buffer device 100x30
fb0: s3cfb frame buffer device
Window[1] - FB1: map_video_memory: clear ff177000:00177000
FB1: map_video_memory: dma=57c00000 cpu=ff177000 size=00177000
Window[1] - FB2: map_video_memory: clear ff232800:000bb800
FB2: map_video_memory: dma=57cbb800 cpu=ff232800 size=000bb800
fb1: s3cfb frame buffer device
Window[2] - FB1: map_video_memory: clear ff2ee000:000bb800
FB1: map_video_memory: dma=57e00000 cpu=ff2ee000 size=000bb800
fb2: s3cfb frame buffer device
Window[3] - FB1: map_video_memory: clear ff3aa000:000bb800
FB1: map_video_memory: dma=57f00000 cpu=ff3aa000 size=000bb800
fb3: s3cfb frame buffer device
Window[4] - FB1: map_video_memory: clear ff466000:000bb800
FB1: map_video_memory: dma=57000000 cpu=ff466000 size=000bb800
fb4: s3cfb frame buffer device
s3c6400-uart.0: ttySAC0 at MMIO 0x7f005000 (irq = 16) is a S3C6400/10
s3c6400-uart.1: ttySAC1 at MMIO 0x7f005400 (irq = 20) is a S3C6400/10
s3c6400-uart.2: ttySAC2 at MMIO 0x7f005800 (irq = 24) is a S3C6400/10
s3c6400-uart.3: ttySAC3 at MMIO 0x7f005c00 (irq = 28) is a S3C6400/10
brd: module loaded
loop: module loaded
nbd: registered device at major 43
usbcore: registered new interface driver ub
pmem: 1 init
pmem_gpu1: 1 init
pmem_adsp: 1 init
ASIX AX88796B Ethernet Adapter:v2.1.0 10:47:27 Sep 18 2012
http://www.asix.com.tw
AX88796B: MAC ADDRESS 00 fa 01 a5 c0 48
AX88796B: found at 0x8000000, using IRQ 111.
Linux video capture interface: v2.00
uvcvideo: Adding mapping Brightness to control 00000000-0000-0000-0000-00000000.
uvcvideo: Adding mapping Contrast to control 00000000-0000-0000-0000-0000000001.
uvcvideo: Adding mapping Hue to control 00000000-0000-0000-0000-000000000101/6.
uvcvideo: Adding mapping Saturation to control 00000000-0000-0000-0000-00000000.
uvcvideo: Adding mapping Sharpness to control 00000000-0000-0000-0000-000000000.
uvcvideo: Adding mapping Gamma to control 00000000-0000-0000-0000-000000000101/.
uvcvideo: Adding mapping Backlight Compensation to control 00000000-0000-0000-0.
uvcvideo: Adding mapping Gain to control 00000000-0000-0000-0000-000000000101/4.
uvcvideo: Adding mapping Power Line Frequency to control 00000000-0000-0000-000.
uvcvideo: Adding mapping Hue, Auto to control 00000000-0000-0000-0000-000000000.
uvcvideo: Adding mapping Exposure, Auto to control 00000000-0000-0000-0000-0000.
uvcvideo: Adding mapping Exposure, Auto Priority to control 00000000-0000-0000-.
uvcvideo: Adding mapping Exposure (Absolute) to control 00000000-0000-0000-0000.
uvcvideo: Adding mapping White Balance Temperature, Auto to control 00000000-00.
uvcvideo: Adding mapping White Balance Temperature to control 00000000-0000-000.
uvcvideo: Adding mapping White Balance Component, Auto to control 00000000-0000.
uvcvideo: Adding mapping White Balance Blue Component to control 00000000-0000-.
uvcvideo: Adding mapping White Balance Red Component to control 00000000-0000-0.
uvcvideo: Adding mapping Focus (absolute) to control 00000000-0000-0000-0000-00.
uvcvideo: Adding mapping Focus, Auto to control 00000000-0000-0000-0000-0000000.
uvcvideo: Adding mapping Zoom, Absolute to control 00000000-0000-0000-0000-0000.
uvcvideo: Adding mapping Zoom, Continuous to control 00000000-0000-0000-0000-00.
uvcvideo: Adding mapping Privacy to control 00000000-0000-0000-0000-00000000000.
usbcore: registered new interface driver uvcvideo
USB Video Class driver (v0.1.0)
Driver 'sd' needs updating - please use bus_type methods
S3C NAND Driver, (c) 2008 Samsung Electronics
S3C NAND Driver is using hardware ECC.
NAND device: Manufacturer ID: 0xec, Chip ID: 0xdc (Samsung NAND 512MiB 3,3V 8-b)
Creating 6 MTD partitions on "NAND 512MiB 3,3V 8-bit":
0x000000000000-0x000000400000 : "Bootloader"
0x000000400000-0x000001100000 : "Kernel+Ramdisk"
0x000001100000-0x000011100000 : "system"
0x000011100000-0x000021100000 : "userdata"
mtd: partition "userdata" extends beyond the end of device "NAND 512MiB 3,3V 8-0
0x000020000000-0x000030000000 : "cache"
mtd: partition "cache" is out of reach -- disabled
0x000000000000-0x000020000000 : "Application"
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 79, io mem 0x74300000
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.
s3c-udc : S3C HS USB OTG Device Driver, (c) 2008-2009 Samsung Electronics
s3c-udc : version 15 March 2009 (DMA Mode)
g_ether gadget: using random self ethernet address
g_ether gadget: using random host ethernet address
usb0: MAC da:d9:9b:c5:99:ab
usb0: HOST MAC 06:fa:f0:05:f5:bd
g_ether gadget: Ethernet Gadget, version: Memorial Day 2008
g_ether gadget: g_ether ready
Registered gadget driver 'g_ether'
mice: could not register psaux device, error: -16
mice: PS/2 mouse device common for all mice
input: falinux-gpio-keys as /devices/platform/falinux-gpio-keys/input/input0
evbug.c: Connected device: input0 (falinux-gpio-keys at falinux_gpio-keys/input)
Ok! falinux gpio key register
S3C Touchscreen driver, (c) 2008 Samsung Electronics
S3C TouchScreen got loaded successfully : 12 bits
input: S3C TouchScreen as /devices/virtual/input/input1
evbug.c: Connected device: input1 (S3C TouchScreen at input(ts))
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
s3c2410_rtc: tick irq 34, alarm irq 92
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.0: slave address 0x10
s3c2440-i2c s3c2440-i2c.0: bus frequency set to 377 KHz
s3c2440-i2c s3c2440-i2c.0: i2c-0: S3C I2C adapter
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
s3c-sdhci s3c-sdhci.0: clock source 0: hsmmc (133000000 Hz)
s3c-sdhci s3c-sdhci.0: clock source 1: hsmmc (133000000 Hz)
s3c-sdhci s3c-sdhci.0: clock source 2: mmc_bus (96000000 Hz)
mmc0: SDHCI controller on samsung-hsmmc [s3c-sdhci.0] using ADMA
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
logger: created 64K log 'log_main'
logger: created 256K log 'log_events'
logger: created 64K log 'log_radio'
Advanced Linux Sound Architecture Driver Version 1.0.18a.
No device for DAI s3c64xx-ac97
WM9713/WM9714 SoC Audio Codec 0.15
asoc: AC97 HiFi <-> s3c64xx-ac97 mapping ok
ALSA device list:
#0: SMDK6400 (WM9713)
IPv4 over IPv4 tunneling driver
GRE over IPv4 tunneling driver
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
lib80211: common routines for IEEE802.11 drivers
lib80211_crypt: registered algorithm 'NULL'
VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
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_read_super: isCheckpointed 0
VFS: Mounted root (yaffs2 filesystem) readonly on device 31:2.
Freeing init memory: 964K
init: cannot open '/initlogo.rle'
yaffs: dev is 32505859 name is "mtdblock3"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.3, "mtdblock3"
yaffs_read_super: isCheckpointed 0
yaffs: dev is 32505860 name is "mtdblock4"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.4, "mtdblock4"
Division by zero in kernel.
[<c00fe62c>] (__div0+0x0/0x20) from [<c028ad3c>] (__do_div64+0xf0/0x100)
[<c02507d4>] (YCALCBLOCKS+0x0/0x1c) from [<c02523e0>] (yaffs_internal_read_supe)
r4:c71265e0
[<c0251c94>] (yaffs_internal_read_super+0x0/0xae0) from [<c0252798>] (yaffs2_in)
[<c0252774>] (yaffs2_internal_read_super_mtd+0x0/0x34) from [<c01771c4>] (get_s)
[<c01770b8>] (get_sb_bdev+0x0/0x16c) from [<c0250130>] (yaffs2_read_super+0x24/)
[<c025010c>] (yaffs2_read_super+0x0/0x30) from [<c0175c1c>] (vfs_kern_mount+0x5)
[<c0175bc4>] (vfs_kern_mount+0x0/0xa4) from [<c0175cc8>] (do_kern_mount+0x40/0x)
r8:c058653c r7:c72bf000 r6:00000000 r5:c7329000 r4:00000000
[<c0175c88>] (do_kern_mount+0x0/0xdc) from [<c018e264>] (do_mount+0x7ac/0x800)
r8:00000000 r7:00000003 r6:c7329000 r5:00000000 r4:00000006
[<c018dab8>] (do_mount+0x0/0x800) from [<c018e348>] (sys_mount+0x90/0xdc)
[<c018e2b8>] (sys_mount+0x0/0xdc) from [<c00f9960>] (ret_fast_syscall+0x0/0x2c)
r7:00000015 r6:00000ed0 r5:ca958f61 r4:00000000
yaffs: NAND geometry problems: chunk size 2048, type is yaffs2, inbandTags 0
init: cannot find '/system/bin/servicemanager', disabling 'servicemanager'
이런식으로 나오는데 머가 문제일까요?
그리고 제공되는 씨디에 있는 커널을 사용하면 계속 무한루트에 빠집니다. 답변 좀 부탁드릴께요 ㅠ