Linux移植过程遇到的问题

今天解决仅解决了3个小问题,make zImage 成功,还是值得欣慰的。
但是kernel烧进去后还是无法启动,DNW显示卡在Uncompressing Linux... done, booting the kernel.
就不动了,怀疑哪个ID设置错误。。。
看来不是ID错误
解决方案:在配置内核时选上在Device  Drivers->Character  devices->Serial  drivers中选择加载Samsung  SoC  serial  support  ,然后再选上Support  for  console  on  Samsung  SoC  serial  port 
现在打印出来: Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 3.3.8 (root@yinkai-X38-DQ6) (gcc version 4.2.2) #4 Mon Jul 16 19:24:19 CST 2012
[    0.000000] CPU: ARMv6-compatible processor [410fb766] revision 6 (ARMv7), cr=00c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[    0.000000] Machine: ok6410
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] CPU S3C6410 (id 0x36410101)
[    0.000000] S3C24XX Clocks, Copyright 2004 Simtec Electronics
[    0.000000] camera: no parent clock specified
[    0.000000] S3C64XX: PLL settings, A=800000000, M=532000000, E=24000000
[    0.000000] S3C64XX: HCLK2=266666666, HCLK=133333333, PCLK=66666666
[    0.000000] mout_apll: source is fout_apll (1), rate is 800000000
[    0.000000] mout_epll: source is epll (1), rate is 24000000
[    0.000000] mout_mpll: source is mpll (1), rate is 532000000
[    0.000000] usb-bus-host: source is clk_48m (0), rate is 48000000
[    0.000000] audio-bus: source is mout_epll (0), rate is 24000000
[    0.000000] audio-bus: source is mout_epll (0), rate is 24000000
[    0.000000] audio-bus: source is mout_epll (0), rate is 24000000
[    0.000000] irda-bus: source is mout_epll (0), rate is 24000000
[    0.000000] camera: no parent clock specified
[    0.000000] CPU: found DTCM0 8k @ 00000000, not enabled
[    0.000000] CPU: moved DTCM0 8k to fffe8000, enabled
[    0.000000] CPU: found DTCM1 8k @ 00000000, not enabled
[    0.000000] CPU: moved DTCM1 8k to fffea000, enabled
[    0.000000] CPU: found ITCM0 8k @ 00000000, not enabled
[    0.000000] CPU: moved ITCM0 8k to fffe0000, enabled
[    0.000000] CPU: found ITCM1 8k @ 00000000, not enabled
[    0.000000] CPU: moved ITCM1 8k to fffe2000, enabled
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: root=/dev/mtdblock2 rootfstype=cramfs console=ttySAC0,115200
[    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] allocated 524288 bytes of page_cgroup
[    0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
[    0.000000] Memory: 256MB = 256MB total
[    0.000000] Memory: 251096k/251096k available, 11048k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     DTCM    : 0xfffe8000 - 0xfffec000   (  16 kB)
[    0.000000]     ITCM    : 0xfffe0000 - 0xfffe4000   (  16 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xd0800000 - 0xff000000   ( 744 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0699530   (6726 kB)
[    0.000000]       .init : 0xc069a000 - 0xc06e0000   ( 280 kB)
[    0.000000]       .data : 0xc06e0000 - 0xc072e618   ( 314 kB)
[    0.000000]        .bss : 0xc072f024 - 0xc0808674   ( 870 kB)
[    0.000000] SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:246 nr_irqs:246 246
[    0.000000] VIC @f6000000: id 0x00041192, vendor 0x41
[    0.000000] VIC @f6010000: id 0x00041192, vendor 0x41
[    0.000000] Console: colour dummy device 80x30
[    0.010000] Calibrating delay loop... 795.44 BogoMIPS (lpj=3977216)
[    0.050000] pid_max: default: 32768 minimum: 301
[    0.050000] Security Framework initialized
[    0.050000] AppArmor: AppArmor initialized
[    0.050000] Mount-cache hash table entries: 512
[    0.050000] Initializing cgroup subsys cpuacct
[    0.050000] Initializing cgroup subsys memory
[    0.050000] Initializing cgroup subsys devices
[    0.050000] Initializing cgroup subsys freezer
[    0.050000] Initializing cgroup subsys net_cls
[    0.050000] CPU: Testing write buffer coherency: ok
[    0.050000] ftrace: allocating 18660 entries in 55 pages
[    0.110000] hw perfevents: enabled with v6 PMU driver, 3 counters available
[    0.110000] Setting up static identity map for 0x5049ad88 - 0x5049ade4
[    0.110000] devtmpfs: initialized
[    0.110000] gpiochip_add: registered GPIOs 38 to 53 on device: GPF
[    0.110000] gpiochip_add: registered GPIOs 74 to 89 on device: GPI
[    0.110000] gpiochip_add: registered GPIOs 91 to 102 on device: GPJ
[    0.110000] gpiochip_add: registered GPIOs 161 to 176 on device: GPO
[    0.110000] gpiochip_add: registered GPIOs 178 to 192 on device: GPP
[    0.110000] gpiochip_add: registered GPIOs 194 to 202 on device: GPQ
[    0.110000] gpiochip_add: registered GPIOs 144 to 159 on device: GPN
[    0.110000] gpiochip_add: registered GPIOs 0 to 7 on device: GPA
[    0.110000] gpiochip_add: registered GPIOs 9 to 15 on device: GPB
[    0.110000] gpiochip_add: registered GPIOs 17 to 24 on device: GPC
[    0.110000] gpiochip_add: registered GPIOs 26 to 30 on device: GPD
[    0.110000] gpiochip_add: registered GPIOs 32 to 36 on device: GPE
[    0.110000] gpiochip_add: registered GPIOs 55 to 61 on device: GPG
[    0.110000] gpiochip_add: registered GPIOs 137 to 142 on device: GPM
[    0.110000] gpiochip_add: registered GPIOs 63 to 72 on device: GPH
[    0.110000] gpiochip_add: registered GPIOs 104 to 119 on device: GPK
[    0.110000] gpiochip_add: registered GPIOs 121 to 135 on device: GPL
[    0.110000] print_constraints: dummy: 
[    0.110000] NET: Registered protocol family 16
[    0.120000] ok6410: Option string ok6410=0
[    0.120000] ok6410: selected LCD display is 480x272
[    0.120000] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[    0.120000] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.120000] S3C6410: Initialising architecture
[    0.130000] bio: create slab <bio-0> at 0
[    0.130000] SCSI subsystem initialized
[    0.130000] usbcore: registered new interface driver usbfs
[    0.130000] usbcore: registered new interface driver hub
[    0.130000] usbcore: registered new device driver usb
[    0.130000] NetLabel: Initializing
[    0.130000] NetLabel:  domain hash size = 128
[    0.130000] NetLabel:  protocols = UNLABELED CIPSOv4
[    0.130000] NetLabel:  unlabeled traffic allowed by default
[    0.160000] AppArmor: AppArmor Filesystem Enabled
[    0.190000] NET: Registered protocol family 2
[    0.190000] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.200000] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[    0.200000] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
[    0.200000] TCP: Hash tables configured (established 8192 bind 8192)
[    0.200000] TCP reno registered
[    0.200000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.200000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.200000] NET: Registered protocol family 1
[    0.200000] audit: initializing netlink socket (disabled)
[    0.200000] type=2000 audit(0.200:1): initialized
[    0.340000] VFS: Disk quotas dquot_6.5.2
[    0.340000] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.350000] fuse init (API version 7.18)
[    0.350000] msgmni has been set to 490
[    0.350000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[    0.350000] io scheduler noop registered
[    0.350000] io scheduler deadline registered
[    0.350000] io scheduler cfq registered (default)
[    0.350000] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.360000] s3c6400-uart.0: ttySAC0 at MMIO 0x7f005000 (irq = 69) is a S3C6400/10
[    0.370000] console [ttySAC0] enabled
[    0.370000] s3c6400-uart.1: ttySAC1 at MMIO 0x7f005400 (irq = 70) is a S3C6400/10
[    0.380000] s3c6400-uart.2: ttySAC2 at MMIO 0x7f005800 (irq = 71) is a S3C6400/10
[    0.390000] s3c6400-uart.3: ttySAC3 at MMIO 0x7f005c00 (irq = 72) is a S3C6400/10
[    0.410000] brd: module loaded
[    0.420000] loop: module loaded
[    0.420000] Fixed MDIO Bus: probed
[    0.420000] tun: Universal TUN/TAP device driver, 1.6
[    0.430000] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[    0.430000] PPP generic driver version 2.4.2
[    0.440000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.450000] s3c2410-ohci s3c2410-ohci: S3C24XX OHCI
[    0.450000] s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1
[    0.460000] s3c2410-ohci s3c2410-ohci: irq 79, io mem 0x74300000
[    0.520000] s3c2410-ohci s3c2410-ohci: init err (00000000 0000)
[    0.520000] ohci_hcd: can't start s3c24xx
[    0.520000] s3c2410-ohci s3c2410-ohci: startup error -75
[    0.520000] s3c2410-ohci s3c2410-ohci: USB bus 1 deregistered
[    0.530000] s3c2410-ohci: probe of s3c2410-ohci failed with error -75
[    0.540000] mousedev: PS/2 mouse device common for all mice
[    0.540000] device-mapper: uevent: version 1.0.3
[    0.550000] device-mapper: ioctl: 4.22.0-ioctl (2011-10-19) initialised: dm-devel@redhat.com
[    0.560000] device-mapper: multipath: version 1.3.0 loaded
[    0.560000] device-mapper: multipath round-robin: version 1.0.0 loaded
[    0.570000] cpufreq: Failed to obtain VDDARM: -19
[    0.570000] cpufreq: Only frequency scaling available
[    0.580000] cpuidle: using governor ladder
[    0.580000] TCP cubic registered
[    0.590000] NET: Registered protocol family 10
[    0.590000] NET: Registered protocol family 17
[    0.590000] Registering the dns_resolver key type
[    0.600000] registered taskstats version 1
[    0.600000] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[    0.610000] md: Waiting for all devices to be available before autodetect
[    0.610000] md: If you don't use raid, use raid=noautodetect
[    0.620000] md: Autodetecting RAID arrays.
[    0.620000] md: Scanned 0 and added 0 devices.
[    0.630000] md: autorun ...
[    0.630000] md: ... autorun DONE.
[    0.640000] VFS: Cannot open root device "mtdblock2" or unknown-block(0,0)
[    0.640000] Please append a correct "root=" boot option; here are the available partitions:
[    0.650000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    0.660000] [<c000fdc8>] (unwind_backtrace+0x0/0xfc) from [<c000d1f4>] (dump_stack+0x1c/0x20)
[    0.670000] [<c000d1f4>] (dump_stack+0x1c/0x20) from [<c001c764>] (panic+0x80/0x1f4)
[    0.670000] [<c001c764>] (panic+0x80/0x1f4) from [<c069adc4>] (mount_block_root+0x12c/0x2d8)
[    0.680000] [<c069adc4>] (mount_block_root+0x12c/0x2d8) from [<c069afc4>] (mount_root+0x54/0x6c)
[    0.690000] [<c069afc4>] (mount_root+0x54/0x6c) from [<c069b13c>] (prepare_namespace+0x160/0x1f4)
[    0.700000] [<c069b13c>] (prepare_namespace+0x160/0x1f4) from [<c069a664>] (kernel_init+0x114/0x15c)
[    0.710000] [<c069a664>] (kernel_init+0x114/0x15c) from [<c0009f70>] (kernel_thread_exit+0x0/0x8)

这个错误在于kernel配置fs时出现问题,解决方案:
kernel 配置时:device drivers -> Memory Technology Device (MTD) support --->Caching block device access to MTD devices 选上
现在进行到:[    0.590000] Kernel panic - not syncing: Attempted to kill init!
n:      serial

Out:     serial

Err:     serial

Hit any key to stop autoboot:  


NAND read: device 0 offset 0x100000, size 0x500000

  5242880 bytes read: OK

Boot with zImage


Starting kernel ...


Uncompressing Linux... done, booting the kernel.
[     0.000000] Booting Linux on physical CPU 0
[     0.000000] Initializing cgroup subsys cpuset
[     0.000000] Initializing cgroup subsys cpu
[     0.000000] Linux version 3.3.8 (root@u1104x32) (gcc version 4.2.2) #5 Tue Jul 17 17:35:08 CST 2012
[     0.000000] CPU: ARMv6-compatible processor [410fb766] revision 6 (ARMv7), cr=00c5387d
[     0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[     0.000000] Machine: ok6410
[     0.000000] Memory policy: ECC disabled, Data cache writeback
[     0.000000] CPU S3C6410 (id 0x36410101)
[     0.000000] S3C24XX Clocks, Copyright 2004 Simtec Electronics
[     0.000000] camera: no parent clock specified
[     0.000000] S3C64XX: PLL settings, A=532000000, M=532000000, E=24000000
[     0.000000] S3C64XX: HCLK2=266000000, HCLK=133000000, PCLK=66500000
[     0.000000] mout_apll: source is fout_apll (1), rate is 532000000
[     0.000000] mout_epll: source is epll (1), rate is 24000000
[     0.000000] mout_mpll: source is mpll (1), rate is 532000000
[     0.000000] usb-bus-host: source is clk_48m (0), rate is 48000000
[     0.000000] audio-bus: source is mout_epll (0), rate is 24000000
[     0.000000] audio-bus: source is mout_epll (0), rate is 24000000
[     0.000000] audio-bus: source is mout_epll (0), rate is 24000000
[     0.000000] irda-bus: source is mout_epll (0), rate is 24000000
[     0.000000] camera: no parent clock specified
[     0.000000] CPU: found DTCM0 8k @ 00000000, not enabled
[     0.000000] CPU: moved DTCM0 8k to fffe8000, enabled
[     0.000000] CPU: found DTCM1 8k @ 00000000, not enabled
[     0.000000] CPU: moved DTCM1 8k to fffea000, enabled
[     0.000000] CPU: found ITCM0 8k @ 00000000, not enabled
[     0.000000] CPU: moved ITCM0 8k to fffe0000, enabled
[     0.000000] CPU: found ITCM1 8k @ 00000000, not enabled
[     0.000000] CPU: moved ITCM1 8k to fffe2000, enabled
[     0.000000] Built 1 zonelists in Zone order, mobility grouping on.   Total pages: 65024
[     0.000000] Kernel command line: root=/dev/mtdblock2 rootfstype=cramfs console=ttySAC0,115200
[     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] allocated 524288 bytes of page_cgroup
[     0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
[     0.000000] Memory: 256MB = 256MB total
[     0.000000] Memory: 251052k/251052k available, 11092k reserved, 0K highmem
[     0.000000] Virtual kernel memory layout:
[     0.000000]     vector   : 0xffff0000 - 0xffff1000   (   4 kB)
[     0.000000]     DTCM     : 0xfffe8000 - 0xfffec000   (   16 kB)
[     0.000000]     ITCM     : 0xfffe0000 - 0xfffe4000   (   16 kB)
[     0.000000]     fixmap   : 0xfff00000 - 0xfffe0000   ( 896 kB)
[     0.000000]     vmalloc : 0xd0800000 - 0xff000000   ( 744 MB)
[     0.000000]     lowmem   : 0xc0000000 - 0xd0000000   ( 256 MB)
[     0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[     0.000000]     modules : 0xbf000000 - 0xbfe00000   (   14 MB)
[     0.000000]       .text : 0xc0008000 - 0xc06b7c78   (6848 kB)
[     0.000000]       .init : 0xc06b8000 - 0xc06ff000   ( 284 kB)
[     0.000000]       .data : 0xc0700000 - 0xc0755278   ( 341 kB)
[     0.000000]         .bss : 0xc0756024 - 0xc08122f4   ( 753 kB)
[     0.000000] SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[     0.000000] NR_IRQS:246 nr_irqs:246 246
[     0.000000] VIC @f6000000: id 0x00041192, vendor 0x41
[     0.000000] VIC @f6010000: id 0x00041192, vendor 0x41
[     0.000000] Console: colour dummy device 80x30
[     0.010000] Calibrating delay loop... 528.79 BogoMIPS (lpj=2643968)
[     0.060000] pid_max: default: 32768 minimum: 301
[     0.070000] Security Framework initialized
[     0.070000] AppArmor: AppArmor initialized
[     0.070000] Mount-cache hash table entries: 512
[     0.070000] Initializing cgroup subsys cpuacct
[     0.070000] Initializing cgroup subsys memory
[     0.070000] Initializing cgroup subsys devices
[     0.070000] Initializing cgroup subsys freezer
[     0.070000] Initializing cgroup subsys net_cls
[     0.070000] Initializing cgroup subsys blkio
[     0.070000] CPU: Testing write buffer coherency: ok
[     0.070000] ftrace: allocating 19131 entries in 57 pages
[     0.130000] hw perfevents: enabled with v6 PMU driver, 3 counters available
[     0.130000] Setting up static identity map for 0x504b12c8 - 0x504b1324
[     0.130000] devtmpfs: initialized
[     0.140000] gpiochip_add: registered GPIOs 38 to 53 on device: GPF
[     0.140000] gpiochip_add: registered GPIOs 74 to 89 on device: GPI
[     0.140000] gpiochip_add: registered GPIOs 91 to 102 on device: GPJ
[     0.140000] gpiochip_add: registered GPIOs 161 to 176 on device: GPO
[     0.140000] gpiochip_add: registered GPIOs 178 to 192 on device: GPP
[     0.140000] gpiochip_add: registered GPIOs 194 to 202 on device: GPQ
[     0.140000] gpiochip_add: registered GPIOs 144 to 159 on device: GPN
[     0.140000] gpiochip_add: registered GPIOs 0 to 7 on device: GPA
[     0.140000] gpiochip_add: registered GPIOs 9 to 15 on device: GPB
[     0.140000] gpiochip_add: registered GPIOs 17 to 24 on device: GPC
[     0.140000] gpiochip_add: registered GPIOs 26 to 30 on device: GPD
[     0.140000] gpiochip_add: registered GPIOs 32 to 36 on device: GPE
[     0.140000] gpiochip_add: registered GPIOs 55 to 61 on device: GPG
[     0.140000] gpiochip_add: registered GPIOs 137 to 142 on device: GPM
[     0.140000] gpiochip_add: registered GPIOs 63 to 72 on device: GPH
[     0.140000] gpiochip_add: registered GPIOs 104 to 119 on device: GPK
[     0.140000] gpiochip_add: registered GPIOs 121 to 135 on device: GPL
[     0.140000] print_constraints: dummy: 
[     0.140000] NET: Registered protocol family 16
[     0.140000] ok6410: Option string ok6410=0
[     0.140000] ok6410: selected LCD display is 480x272
[     0.140000] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[     0.140000] hw-breakpoint: maximum watchpoint size is 4 bytes.
[     0.140000] S3C6410: Initialising architecture
[     0.160000] bio: create slab <bio-0> at 0
[     0.160000] SCSI subsystem initialized
[     0.160000] usbcore: registered new interface driver usbfs
[     0.160000] usbcore: registered new interface driver hub
[     0.160000] usbcore: registered new device driver usb
[     0.160000] NetLabel: Initializing
[     0.160000] NetLabel:   domain hash size = 128
[     0.160000] NetLabel:   protocols = UNLABELED CIPSOv4
[     0.160000] NetLabel:   unlabeled traffic allowed by default
[     0.200000] AppArmor: AppArmor Filesystem Enabled
[     0.230000] NET: Registered protocol family 2
[     0.230000] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
[     0.230000] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[     0.230000] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
[     0.230000] TCP: Hash tables configured (established 8192 bind 8192)
[     0.230000] TCP reno registered
[     0.230000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[     0.230000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[     0.230000] NET: Registered protocol family 1
[     0.230000] audit: initializing netlink socket (disabled)
[     0.230000] type=2000 audit(0.230:1): initialized
[     0.440000] VFS: Disk quotas dquot_6.5.2
[     0.440000] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[     0.440000] fuse init (API version 7.18)
[     0.440000] msgmni has been set to 490
[     0.450000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[     0.450000] io scheduler noop registered
[     0.450000] io scheduler deadline registered
[     0.450000] io scheduler cfq registered (default)
[     0.450000] Serial: 8250/16550 driver, 32 ports, IRQ sharing enabled
[     0.470000] s3c6400-uart.0: ttySAC0 at MMIO 0x7f005000 (irq = 69) is a S3C6400/10
[     0.480000] console [ttySAC0] enabled
[     0.480000] s3c6400-uart.1: ttySAC1 at MMIO 0x7f005400 (irq = 70) is a S3C6400/10
[     0.490000] s3c6400-uart.2: ttySAC2 at MMIO 0x7f005800 (irq = 71) is a S3C6400/10
[     0.500000] s3c6400-uart.3: ttySAC3 at MMIO 0x7f005c00 (irq = 72) is a S3C6400/10
[     0.520000] brd: module loaded
[     0.540000] loop: module loaded
[     0.540000] S3C24XX NAND Driver, (c) 2004 Simtec Electronics
[     0.540000] s3c24xx-nand s3c6400-nand: Tacls=4, 30ns Twrph0=8 60ns, Twrph1=6 45ns
[     0.550000] s3c24xx-nand s3c6400-nand: System booted from NAND
[     0.550000] s3c24xx-nand s3c6400-nand: NAND soft ECC
[     0.560000] NAND device: Manufacturer ID: 0xec, Chip ID: 0xd5 (Samsung NAND 2GiB 3,3V 8-bit)
[     0.570000] No oob scheme defined for oobsize 218
[     0.570000] ------------[ cut here ]------------
[     0.570000] kernel BUG at drivers/mtd/nand/nand_base.c:3269!
[     0.570000] Internal error: Oops - BUG: 0 [#1]
[     0.570000] Modules linked in:
[     0.570000] CPU: 0     Not tainted   (3.3.8 #5)
[     0.570000] PC is at nand_scan_tail+0xc8/0x62c
[     0.570000] LR is at console_unlock+0x1d4/0x234
[     0.570000] pc : [<c032f1e8>]     lr : [<c001d638>]     psr: 60000013
[     0.570000] sp : cf835e20   ip : c0702028   fp : cf835e3c
[     0.570000] r10: 00000000   r9 : c070d7f0   r8 : c070d7e8
[     0.570000] r7 : cf8ac040   r6 : cf949800   r5 : cf949a40   r4 : cf949a40
[     0.570000] r3 : 1d11931a   r2 : 1d11931a   r1 : 000026e4   r0 : 0000003b
[     0.570000] Flags: nZCv   IRQs on   FIQs on   Mode SVC_32   ISA ARM   Segment kernel
[     0.570000] Control: 00c5387d   Table: 50004008   DAC: 00000017
[     0.570000] Process swapper (pid: 1, stack limit = 0xcf834268)
[     0.570000] Stack: (0xcf835e20 to 0xcf836000)
[     0.570000] 5e20: cf949a40 cfa0d4e0 cf949800 cf8ac040 cf835e84 cf835e40 c0336148 c032f12c
[     0.570000] 5e40: 00000000 00000000 c070d7f8 00000001 00000000 00000001 cf835e74 c070d7f0
[     0.570000] 5e60: c080ca44 c0740ba8 c0740ba8 cfa0d480 00000000 00000000 cf835e94 cf835e88
[     0.570000] 5e80: c02ca530 c0335f08 cf835eb4 cf835e98 c02c8ef0 c02ca518 c070d7f0 c070d824
[     0.570000] 5ea0: c0740ba8 c02c9154 cf835ed4 cf835eb8 c02c91e8 c02c8dc8 cf835ed4 00000000
[     0.570000] 5ec0: cf835ed8 c0740ba8 cf835efc cf835ed8 c02c7954 c02c9160 cf80f1cc cf89fc90
[     0.570000] 5ee0: c060368c c06fdff8 c0740ba8 c0734248 cf835f0c cf835f00 c02c8c98 c02c7900
[     0.570000] 5f00: cf835f3c cf835f10 c02c887c c02c8c80 c060368c 00000000 00000000 c06fdff8
[     0.570000] 5f20: c0740ba8 00000013 c06d9370 cf834000 cf835f64 cf835f40 c02c9780 c02c86e8
[     0.570000] 5f40: cf835f64 00000000 c06fdff8 c06fe5a4 00000013 c06d9370 cf835f74 cf835f68
[     0.570000] 5f60: c02ca878 c02c9724 cf835f84 cf835f78 c06d938c c02ca834 cf835fd4 cf835f88
[     0.570000] 5f80: c0008774 c06d937c c0710eb4 00000000 c06fe5a4 00000013 00000000 00000000
[     0.570000] 5fa0: cf835fbc cf835fb0 c0040a28 c06fe45c c06fdff8 c06fe5a4 00000013 00000000
[     0.570000] 5fc0: 00000000 00000000 cf835ff4 cf835fd8 c06b8600 c0008658 00000000 00000000
[     0.570000] 5fe0: c06b8550 c0009f70 00000000 cf835ff8 c0009f70 c06b855c ffffffff ffffffff
[     0.570000] [<c032f1e8>] (nand_scan_tail+0xc8/0x62c) from [<c0336148>] (s3c24xx_nand_probe+0x24c/0x508)
[     0.570000] [<c0336148>] (s3c24xx_nand_probe+0x24c/0x508) from [<c02ca530>] (platform_drv_probe+0x24/0x28)
[     0.570000] [<c02ca530>] (platform_drv_probe+0x24/0x28) from [<c02c8ef0>] (driver_probe_device+0x134/0x1b4)
[     0.570000] [<c02c8ef0>] (driver_probe_device+0x134/0x1b4) from [<c02c91e8>] (__driver_attach+0x94/0x98)
[     0.570000] [<c02c91e8>] (__driver_attach+0x94/0x98) from [<c02c7954>] (bus_for_each_dev+0x60/0x8c)
[     0.570000] [<c02c7954>] (bus_for_each_dev+0x60/0x8c) from [<c02c8c98>] (driver_attach+0x24/0x2c)
[     0.570000] [<c02c8c98>] (driver_attach+0x24/0x2c) from [<c02c887c>] (bus_add_driver+0x1a0/0x258)
[     0.570000] [<c02c887c>] (bus_add_driver+0x1a0/0x258) from [<c02c9780>] (driver_register+0x68/0x144)
[     0.570000] [<c02c9780>] (driver_register+0x68/0x144) from [<c02ca878>] (platform_driver_register+0x50/0x64)
[     0.570000] [<c02ca878>] (platform_driver_register+0x50/0x64) from [<c06d938c>] (s3c2410_nand_init+0x1c/0x28)
[     0.570000] [<c06d938c>] (s3c2410_nand_init+0x1c/0x28) from [<c0008774>] (do_one_initcall+0x128/0x17c)
[     0.570000] [<c0008774>] (do_one_initcall+0x128/0x17c) from [<c06b8600>] (kernel_init+0xb0/0x15c)
[     0.570000] [<c06b8600>] (kernel_init+0xb0/0x15c) from [<c0009f70>] (kernel_thread_exit+0x0/0x8)
[     0.570000] Code: e3510008 0a0000dc e59f04c4 ebf3bb35 (e7f001f2) 
[     0.580000] ---[ end trace 8f0a1ae9dcfc695e ]---
[     0.590000] Kernel panic - not syncing: Attempted to kill init!
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
将lwIP移植Linux系统上需要经过以下几个步骤。首先,需要在Linux系统中安装必要的开发工具和依赖库,如GCC编译器、make工具等。然后,将lwIP源代码下载并解压缩。 接下来,需要对lwIP源代码进行一些配置。可以通过修改lwIP的配置文件lwipopts.h来定义一些宏,以适应目标Linux系统的特性和需求。这些宏的定义包括网络接口、内存管理、IP协议、TCP/UDP协议等。 接着,在Linux系统中创建一个新的目录,用于存放lwIP的编译文件和生成的库文件。使用命令行进入该目录,并执行lwIP源代码中提供的Makefile文件,将源代码编译成静态库或动态库。编译过程中可能需要根据情况做一些适配工作,如修改Makefile文件或执行一些补丁。 编译完成后,得到lwIP的库文件。可以将此库文件与Linux应用程序进行链接,以便在Linux系统中使用lwIP的网络功能。在应用程序中,需要包含lwIP的头文件,并根据lwIP提供的API编写相应的网络代码。通过调用lwIP提供的函数,可以实现IP协议的处理、TCP/UDP连接的建立和数据的收发等网络功能。 最后,将应用程序编译成可执行文件,并在Linux系统中运行。如果一切顺利,应用程序就可以利用lwIP提供的功能进行网络通信了。 需要注意的是,由于Linux系统和lwIP都是开源软件,存在一定的适配性问题。在移植过程中可能遇到一些编译错误或运行时的问题,需要根据具体情况进行调试和处理。同时,移植lwIP还需要有一定的Linux系统编程和网络编程的知识基础,以便理解和使用lwIP的相关接口和功能。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值