主题 : 【无限期暂停更新】Hu's kernel 3.10 for 友善210全平台 DIY内核 复制链接 | 浏览器收藏 | 打印
级别: 风云使者
UID: 36096
精华: 3
发帖: 2513
金钱: 14075 两
威望: 2815 点
综合积分: 5086 分
注册时间: 2011-01-11
最后登录: 2015-11-15
20楼  发表于: 2013-07-16 08:43
Load Kernel...
Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0x0
Linux version 3.10.0-ga011729-dirty (hu@hu-workstation) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #6 PREEMPT Tue Jul 16 08:38:10 CST 2013
CPU: ARMv7 Processor [412fc082] revision 2 (ARMv7), cr=10c53c7d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: SMDKV210
Memory policy: ECC disabled, Data cache writeback
CPU S5PV210/S5PC110 (id 0x43110220)
S3C24XX Clocks, Copyright 2004 Simtec Electronics
S5PV210: PLL settings, A=1000000000, M=667000000, E=80000000 V=54000000
S5PV210: ARMCLK=1000000000, HCLKM=200000000, HCLKD=166750000
HCLKP=133400000, PCLKM=100000000, PCLKD=83375000, PCLKP=66700000
sclk_dmc: source is sclk_a2m (0), rate is 200000000
sclk_onenand: source is hclk_dsys (1), rate is 166750000
sclk_fimc: source is ext_xtal (0), rate is 24000000
sclk_fimc: source is ext_xtal (0), rate is 24000000
sclk_fimc: source is ext_xtal (0), rate is 24000000
sclk_cam0: source is ext_xtal (0), rate is 24000000
sclk_cam1: source is ext_xtal (0), rate is 24000000
sclk_fimd: source is ext_xtal (0), rate is 24000000
sclk_mfc: source is sclk_a2m (0), rate is 200000000
sclk_g2d: source is sclk_a2m (0), rate is 200000000
sclk_g3d: source is sclk_a2m (0), rate is 200000000
sclk_csis: source is ext_xtal (0), rate is 24000000
sclk_pwi: source is ext_xtal (0), rate is 24000000
sclk_pwm: source is ext_xtal (0), rate is 24000000
CPU: All CPU(s) started in SVC mode.
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
Kernel command line: root=/dev/mtdblock4 rootfstype=yaffs2 console=ttySAC0,115200 init=/linuxrc lcd=H43
PID hash table entries: 2048 (order: 1, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 512MB = 512MB total
Memory: 510956k/510956k available, 13332k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    vmalloc : 0xa0800000 - 0xff000000   (1512 MB)
    lowmem  : 0x80000000 - 0xa0000000   ( 512 MB)
    modules : 0x7f000000 - 0x80000000   (  16 MB)
      .text : 0x80008000 - 0x806ac8d0   (6803 kB)
      .init : 0x806ad000 - 0x8080a1d4   (1397 kB)
      .data : 0x8080c000 - 0x8084ea40   ( 267 kB)
       .bss : 0x8084ea40 - 0x8088a974   ( 240 kB)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Preemptible hierarchical RCU implementation.
NR_IRQS:208
VIC @f6000000: id 0x00041192, vendor 0x41
VIC @f6010000: id 0x00041192, vendor 0x41
VIC @f6020000: id 0x00041192, vendor 0x41
VIC @f6030000: id 0x00041192, vendor 0x41
sched_clock: 32 bits at 33MHz, resolution 29ns, wraps every 128784ms
Console: colour dummy device 80x30
Calibrating delay loop... 663.55 BogoMIPS (lpj=1658880)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
Setting up static identity map for 0x80485a08 - 0x80485a60
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
S3C Power Management, Copyright 2004 Simtec Electronics
S5PV210: Initializing architecture
s3c24xx-pwm s3c24xx-pwm.3: tin at 33350000, tdiv at 33350000, tin=divclk, base 16
bio: create slab <bio-0> at 0
SCSI subsystem initialized
Advanced Linux Sound Architecture Driver Initialized.
Bluetooth: Core ver 2.16
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Bluetooth: L2CAP socket layer initialized
Bluetooth: SCO socket layer initialized
cfg80211: Calling CRDA to update world regulatory domain
Switching to clocksource samsung_clocksource_timer
NET: Registered protocol family 2
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 4, 81920 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP: reno registered
UDP hash table entries: 256 (order: 1, 12288 bytes)
UDP-Lite hash table entries: 256 (order: 1, 12288 bytes)
s3c-adc samsung-adc-v3: attached adc driver
NTFS driver 2.1.30 [Flags: R/W].
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
dma-pl330 dma-pl330.0: Loaded driver for PL330 DMAC-267056
dma-pl330 dma-pl330.0:  DBUFF-8x4bytes Num_Chans-8 Num_Peri-32 Num_Events-32
dma-pl330 dma-pl330.1: Loaded driver for PL330 DMAC-267056
dma-pl330 dma-pl330.1:  DBUFF-8x4bytes Num_Chans-8 Num_Peri-32 Num_Events-32
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
s5pv210-uart.0: ttySAC0 at MMIO 0xe2900000 (irq = 74) is a S3C6400/10
console [ttySAC0] enabled
s5pv210-uart.1: ttySAC1 at MMIO 0xe2900400 (irq = 75) is a S3C6400/10
s5pv210-uart.2: ttySAC2 at MMIO 0xe2900800 (irq = 76) is a S3C6400/10
s5pv210-uart.3: ttySAC3 at MMIO 0xe2900c00 (irq = 77) is a S3C6400/10
brd: module loaded
loop: module loaded
S3C NAND Driver, (c) 2008 Samsung Electronics
s5pv210-nand s5pv210-nand: failed to get clock
dm9000 dm9000: read wrong id 0x2b2a2928
dm9000 dm9000: read wrong id 0x2b2a2928
dm9000 dm9000: read wrong id 0x2b2a2928
dm9000 dm9000: read wrong id 0x2b2a2928
dm9000 dm9000: read wrong id 0x2b2a2928
dm9000 dm9000: read wrong id 0x2b2a2928
dm9000 dm9000: read wrong id 0x2b2a2928
dm9000 dm9000: read wrong id 0x2b2a2928
dm9000 dm9000: wrong id: 0x2b2a2928
dm9000 dm9000: not found (-19).
Broadcom 43xx driver loaded [ Features: NL ]
Broadcom 43xx-legacy driver loaded [ Features: LID ]
mousedev: PS/2 mouse device common for all mice
Bluetooth: Virtual HCI driver ver 1.3
Bluetooth: HCI UART driver ver 2.2
Bluetooth: HCI H4 protocol initialized
Bluetooth: HCI BCSP protocol initialized
Bluetooth: HCILL protocol initialized
Bluetooth: HCIATH3K protocol initialized
Bluetooth: HCI Three-wire UART (H5) protocol initialized
ipip: IPv4 over IPv4 tunneling driver
gre: GRE over IPv4 demultiplexor driver
TCP: cubic registered
NET: Registered protocol family 10
sit: IPv6 over IPv4 tunneling driver
Bluetooth: RFCOMM TTY layer initialized
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM ver 1.11
Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Bluetooth: BNEP filters: protocol multicast
Bluetooth: BNEP socket layer initialized
Bluetooth: HIDP (Human Interface Emulation) ver 1.2
Bluetooth: HIDP socket layer initialized
l2tp_core: L2TP core driver, V2.0
8021q: 802.1Q VLAN Support v1.8
DCCP: Activated CCID 2 (TCP-like)
DCCP: Activated CCID 3 (TCP-Friendly Rate Control)
sctp: Hash tables configured (established 8192 bind 6553)
NET: Registered protocol family 21
lib80211: common routines for IEEE802.11 drivers
VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 2
ALSA device list:
  No soundcards found.
Freeing unused kernel memory: 1396K (806ad000 - 8080a000)
mount: mounting /dev/mtdblock4 on /r failed: No such device or address
/init: line 109: can't open /r/dev/console: no such file
Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000200

CPU: 0 PID: 1 Comm: init Not tainted 3.10.0-ga011729-dirty #6
[<80012b98>] (unwind_backtrace+0x0/0xf8) from [<80010a94>] (show_stack+0x10/0x14)
[<80010a94>] (show_stack+0x10/0x14) from [<8047ed70>] (panic+0x8c/0x1d8)
[<8047ed70>] (panic+0x8c/0x1d8) from [<80021244>] (do_exit+0x710/0x810)
[<80021244>] (do_exit+0x710/0x810) from [<8002149c>] (do_group_exit+0x48/0xb0)
[<8002149c>] (do_group_exit+0x48/0xb0) from [<80021514>] (__wake_up_parent+0x0/0x18)


现在多出来个这个:s5pv210-nand s5pv210-nand: failed to get clock


时钟?   
极度缺钱,求捐赠……支付宝兼邮箱:huming2207@qq.com
级别: 风云使者
UID: 36096
精华: 3
发帖: 2513
金钱: 14075 两
威望: 2815 点
综合积分: 5086 分
注册时间: 2011-01-11
最后登录: 2015-11-15
21楼  发表于: 2013-07-16 08:50
引用第20楼huhu2207于2013-07-16 08:43发表的  :
Load Kernel...
Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0x0
Linux version 3.10.0-ga011729-dirty (hu@hu-workstation) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #6 PREEMPT Tue Jul 16 08:38:10 CST 2013
CPU: ARMv7 Processor [412fc082] revision 2 (ARMv7), cr=10c53c7d
.......
这是没加上s5p_phy_init_ext.c编译出来的结果

加了就提示这个:
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
  CALL    scripts/checksyscalls.sh
  CC      scripts/mod/devicetable-offsets.s
  GEN     scripts/mod/devicetable-offsets.h
  HOSTCC  scripts/mod/file2alias.o
  HOSTLD  scripts/mod/modpost
  CHK     include/generated/compile.h
  CC      drivers/mtd/nand/s5p_phy_init_ext.o
drivers/mtd/nand/s5p_phy_init_ext.c: In function ‘s5p_ehci_phy_init’:
drivers/mtd/nand/s5p_phy_init_ext.c:54:2: error: implicit declaration of function ‘S5PV210_ETC2’ [-Werror=implicit-function-declaration]
drivers/mtd/nand/s5p_phy_init_ext.c:55:39: error: ‘S3C_GPIO_DRVSTR_2X’ undeclared (first use in this function)
drivers/mtd/nand/s5p_phy_init_ext.c:55:39: note: each undeclared identifier is reported only once for each function it appears in
drivers/mtd/nand/s5p_phy_init_ext.c: In function ‘s5p_sdhci_phy_init’:
drivers/mtd/nand/s5p_phy_init_ext.c:96:8: error: ‘struct s3c_sdhci_platdata’ has no member named ‘disable_acmd12’
cc1: some warnings being treated as errors
make[3]: *** [drivers/mtd/nand/s5p_phy_init_ext.o] Error 1
make[2]: *** [drivers/mtd/nand] Error 2
make[1]: *** [drivers/mtd] Error 2

如果define一下S3C_GPIO_DRVSTR_2X就这样
drivers/mtd/nand/s5p_phy_init_ext.c: In function ‘s5p_ehci_phy_init’:
drivers/mtd/nand/s5p_phy_init_ext.c:54:2: error: implicit declaration of function ‘S5PV210_ETC2’ [-Werror=implicit-function-declaration]
drivers/mtd/nand/s5p_phy_init_ext.c:55:57: error: expected expression before ‘)’ token
drivers/mtd/nand/s5p_phy_init_ext.c:59:57: error: expected expression before ‘)’ token
drivers/mtd/nand/s5p_phy_init_ext.c: In function ‘s5p_sdhci_phy_init’:
drivers/mtd/nand/s5p_phy_init_ext.c:96:8: error: ‘struct s3c_sdhci_platdata’ has no member named ‘disable_acmd12’


网上搜了下S3C_GPIO_DEVSTR_2X没找到什么东西,倒是有个这个
http://gitorious.org/replicant/kernel_samsung_aries/commit/7a2264abda5193a8ac73b796b2b679066c5df90b?format=patch
极度缺钱,求捐赠……支付宝兼邮箱:huming2207@qq.com
级别: 风云使者
UID: 36096
精华: 3
发帖: 2513
金钱: 14075 两
威望: 2815 点
综合积分: 5086 分
注册时间: 2011-01-11
最后登录: 2015-11-15
22楼  发表于: 2013-07-16 08:54
似乎解决了

在s5p_phy_init_ext.c上面加上一行:

#define S3C_GPIO_DRVSTR_2X S5P_GPIO_DRVSTR_LV2

完事儿……


但是,

还有两个错误得研究下:

drivers/mtd/nand/s5p_phy_init_ext.c: In function ‘s5p_ehci_phy_init’:
drivers/mtd/nand/s5p_phy_init_ext.c:54:2: error: implicit declaration of function ‘S5PV210_ETC2’ [-Werror=implicit-function-declaration]
drivers/mtd/nand/s5p_phy_init_ext.c: In function ‘s5p_sdhci_phy_init’:
drivers/mtd/nand/s5p_phy_init_ext.c:96:8: error: ‘struct s3c_sdhci_platdata’ has no member named ‘disable_acmd12’
cc1: some warnings being treated as errors
极度缺钱,求捐赠……支付宝兼邮箱:huming2207@qq.com
级别: 风云使者
UID: 36096
精华: 3
发帖: 2513
金钱: 14075 两
威望: 2815 点
综合积分: 5086 分
注册时间: 2011-01-11
最后登录: 2015-11-15
23楼  发表于: 2013-07-16 08:56
我估计那S3C_GPIO_DRVSTR_2X 可能是某些旧内核上面的旧写法,所以重新定义一下就好了。。。下面折腾剩下两个错误
极度缺钱,求捐赠……支付宝兼邮箱:huming2207@qq.com
级别: 风云使者
UID: 36096
精华: 3
发帖: 2513
金钱: 14075 两
威望: 2815 点
综合积分: 5086 分
注册时间: 2011-01-11
最后登录: 2015-11-15
24楼  发表于: 2013-07-16 09:23
修复成功,s5p_phy_init_ext.c能编译了,但是刷到板子上结果跟之前一模一样
代码已经push到git了。。。
极度缺钱,求捐赠……支付宝兼邮箱:huming2207@qq.com
级别: 风云使者
UID: 36096
精华: 3
发帖: 2513
金钱: 14075 两
威望: 2815 点
综合积分: 5086 分
注册时间: 2011-01-11
最后登录: 2015-11-15
25楼  发表于: 2013-07-16 09:47
好,找到那个failed to get clock的出处了

s3c-nand.c,第1031行:

……
    /* get the clock source and enable it */
    s3c_nand.clk = clk_get(&pdev->dev, "nand");
    if (IS_ERR(s3c_nand.clk)) {
        dev_err(&pdev->dev, "failed to get clock");
        err = -ENOENT;
        goto exit_error;
    }

    clk_enable(s3c_nand.clk);

…………
极度缺钱,求捐赠……支付宝兼邮箱:huming2207@qq.com
级别: 风云使者
UID: 36096
精华: 3
发帖: 2513
金钱: 14075 两
威望: 2815 点
综合积分: 5086 分
注册时间: 2011-01-11
最后登录: 2015-11-15
26楼  发表于: 2013-07-16 14:46
引用第25楼huhu2207于2013-07-16 09:47发表的  :
好,找到那个failed to get clock的出处了

s3c-nand.c,第1031行:

……
.......
大概找到那个failed to get clock的原因了
感谢kasim哥的指点!
极度缺钱,求捐赠……支付宝兼邮箱:huming2207@qq.com
级别: 风云使者
UID: 36096
精华: 3
发帖: 2513
金钱: 14075 两
威望: 2815 点
综合积分: 5086 分
注册时间: 2011-01-11
最后登录: 2015-11-15
27楼  发表于: 2013-07-16 14:53
git commit 6fb61ff0cf67489db6dec2b965095a7ffe63c1e1,最新结果还是悲剧的:

Load Kernel...
Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0x0
Linux version 3.10.0-ga7c14b9-dirty (hu@hu-workstation) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #8 PREEMPT Tue Jul 16 14:36:14 CST 2013
CPU: ARMv7 Processor [412fc082] revision 2 (ARMv7), cr=10c53c7d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: SMDKV210
Memory policy: ECC disabled, Data cache writeback
CPU S5PV210/S5PC110 (id 0x43110220)
S3C24XX Clocks, Copyright 2004 Simtec Electronics
S5PV210: PLL settings, A=1000000000, M=667000000, E=80000000 V=54000000
S5PV210: ARMCLK=1000000000, HCLKM=200000000, HCLKD=166750000
HCLKP=133400000, PCLKM=100000000, PCLKD=83375000, PCLKP=66700000
sclk_dmc: source is sclk_a2m (0), rate is 200000000
sclk_onenand: source is hclk_dsys (1), rate is 166750000
sclk_fimc: source is ext_xtal (0), rate is 24000000
sclk_fimc: source is ext_xtal (0), rate is 24000000
sclk_fimc: source is ext_xtal (0), rate is 24000000
sclk_cam0: source is ext_xtal (0), rate is 24000000
sclk_cam1: source is ext_xtal (0), rate is 24000000
sclk_fimd: source is ext_xtal (0), rate is 24000000
sclk_mfc: source is sclk_a2m (0), rate is 200000000
sclk_g2d: source is sclk_a2m (0), rate is 200000000
sclk_g3d: source is sclk_a2m (0), rate is 200000000
sclk_csis: source is ext_xtal (0), rate is 24000000
sclk_pwi: source is ext_xtal (0), rate is 24000000
sclk_pwm: source is ext_xtal (0), rate is 24000000
CPU: All CPU(s) started in SVC mode.
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
Kernel command line: root=/dev/mtdblock4 rootfstype=yaffs2 console=ttySAC0,115200 init=/linuxrc lcd=H43
PID hash table entries: 2048 (order: 1, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 512MB = 512MB total
Memory: 510952k/510952k available, 13336k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    vmalloc : 0xa0800000 - 0xff000000   (1512 MB)
    lowmem  : 0x80000000 - 0xa0000000   ( 512 MB)
    modules : 0x7f000000 - 0x80000000   (  16 MB)
      .text : 0x80008000 - 0x806ac8d8   (6803 kB)
      .init : 0x806ad000 - 0x8080a1d4   (1397 kB)
      .data : 0x8080c000 - 0x8084ea80   ( 267 kB)
       .bss : 0x8084ea80 - 0x8088b374   ( 243 kB)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Preemptible hierarchical RCU implementation.
NR_IRQS:208
VIC @f6000000: id 0x00041192, vendor 0x41
VIC @f6010000: id 0x00041192, vendor 0x41
VIC @f6020000: id 0x00041192, vendor 0x41
VIC @f6030000: id 0x00041192, vendor 0x41
sched_clock: 32 bits at 33MHz, resolution 29ns, wraps every 128784ms
Console: colour dummy device 80x30
Calibrating delay loop... 663.55 BogoMIPS (lpj=1658880)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
Setting up static identity map for 0x80485ad8 - 0x80485b30
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
S3C Power Management, Copyright 2004 Simtec Electronics
S5PV210: Initializing architecture
s3c24xx-pwm s3c24xx-pwm.3: tin at 33350000, tdiv at 33350000, tin=divclk, base 16
bio: create slab <bio-0> at 0
SCSI subsystem initialized
Advanced Linux Sound Architecture Driver Initialized.
Bluetooth: Core ver 2.16
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Bluetooth: L2CAP socket layer initialized
Bluetooth: SCO socket layer initialized
cfg80211: Calling CRDA to update world regulatory domain
Switching to clocksource samsung_clocksource_timer
NET: Registered protocol family 2
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 4, 81920 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP: reno registered
UDP hash table entries: 256 (order: 1, 12288 bytes)
UDP-Lite hash table entries: 256 (order: 1, 12288 bytes)
s3c-adc samsung-adc-v3: attached adc driver
NTFS driver 2.1.30 [Flags: R/W].
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
dma-pl330 dma-pl330.0: Loaded driver for PL330 DMAC-267056
dma-pl330 dma-pl330.0:  DBUFF-8x4bytes Num_Chans-8 Num_Peri-32 Num_Events-32
dma-pl330 dma-pl330.1: Loaded driver for PL330 DMAC-267056
dma-pl330 dma-pl330.1:  DBUFF-8x4bytes Num_Chans-8 Num_Peri-32 Num_Events-32
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
s5pv210-uart.0: ttySAC0 at MMIO 0xe2900000 (irq = 74) is a S3C6400/10
console [ttySAC0] enabled
s5pv210-uart.1: ttySAC1 at MMIO 0xe2900400 (irq = 75) is a S3C6400/10
s5pv210-uart.2: ttySAC2 at MMIO 0xe2900800 (irq = 76) is a S3C6400/10
s5pv210-uart.3: ttySAC3 at MMIO 0xe2900c00 (irq = 77) is a S3C6400/10
brd: module loaded
loop: module loaded
S3C NAND Driver, (c) 2008 Samsung Electronics
Unknown NAND Device.
dm9000 dm9000: read wrong id 0x2b2a2928
dm9000 dm9000: read wrong id 0x2b2a2928
dm9000 dm9000: read wrong id 0x2b2a2928
dm9000 dm9000: read wrong id 0x2b2a2928
dm9000 dm9000: read wrong id 0x2b2a2928
dm9000 dm9000: read wrong id 0x2b2a2928
dm9000 dm9000: read wrong id 0x2b2a2928
dm9000 dm9000: read wrong id 0x2b2a2928
dm9000 dm9000: wrong id: 0x2b2a2928
dm9000 dm9000: not found (-19).
Broadcom 43xx driver loaded [ Features: NL ]
Broadcom 43xx-legacy driver loaded [ Features: LID ]
mousedev: PS/2 mouse device common for all mice
Bluetooth: Virtual HCI driver ver 1.3
Bluetooth: HCI UART driver ver 2.2
Bluetooth: HCI H4 protocol initialized
Bluetooth: HCI BCSP protocol initialized
Bluetooth: HCILL protocol initialized
Bluetooth: HCIATH3K protocol initialized
Bluetooth: HCI Three-wire UART (H5) protocol initialized
ipip: IPv4 over IPv4 tunneling driver
gre: GRE over IPv4 demultiplexor driver
TCP: cubic registered
NET: Registered protocol family 10
sit: IPv6 over IPv4 tunneling driver
Bluetooth: RFCOMM TTY layer initialized
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM ver 1.11
Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Bluetooth: BNEP filters: protocol multicast
Bluetooth: BNEP socket layer initialized
Bluetooth: HIDP (Human Interface Emulation) ver 1.2
Bluetooth: HIDP socket layer initialized
l2tp_core: L2TP core driver, V2.0
8021q: 802.1Q VLAN Support v1.8
DCCP: Activated CCID 2 (TCP-like)
DCCP: Activated CCID 3 (TCP-Friendly Rate Control)
sctp: Hash tables configured (established 8192 bind 6553)
NET: Registered protocol family 21
lib80211: common routines for IEEE802.11 drivers
VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 2
ALSA device list:
  No soundcards found.
Freeing unused kernel memory: 1396K (806ad000 - 8080a000)
mount: mounting /dev/mtdblock4 on /r failed: No such device or address
/init: line 109: can't open /r/dev/console: no such file
Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000200

CPU: 0 PID: 1 Comm: init Not tainted 3.10.0-ga7c14b9-dirty #8
[<80012b98>] (unwind_backtrace+0x0/0xf8) from [<80010a94>] (show_stack+0x10/0x14)
[<80010a94>] (show_stack+0x10/0x14) from [<8047ee40>] (panic+0x8c/0x1d8)
[<8047ee40>] (panic+0x8c/0x1d8) from [<8002124c>] (do_exit+0x710/0x810)
[<8002124c>] (do_exit+0x710/0x810) from [<800214a4>] (do_group_exit+0x48/0xb0)
[<800214a4>] (do_group_exit+0x48/0xb0) from [<8002151c>] (__wake_up_parent+0x0/0x18)
  





详细修改如下,按照kasim哥的提示,NAND驱动时钟没能正常注册和初始化,所以会出现failed to get clock,那么顺藤摸瓜继续找,
(最简单最快的话用grep,命令是:grep "\"nand\"" arch/arm/mach-s5pv210 -rn --color,结果arch/arm/mach-s5pv210/clock.c:443:        .name        = "nand",
,用gedit+vim找咋找也没找到,后来kasim哥建议上grep,一个命令过去就找到了。)

然后找到arch/arm/mach-s5pv210/clock.c:第443行如下,

。。。。。。

}, {
        .name        = "nand",
        .id        = -1,
        .parent        = &clk_hclk_psys.clk,
        .enable        = s5pv210_clk_ip1_ctrl,
        .ctrlbit    = ((1 << 28) | (1 << 24)),
    }, {

。。。。。

把它添加到3.10新内核里头,完事儿。

可是新错误来了,

S3C NAND Driver, (c) 2008 Samsung Electronics
Unknown NAND Device.

继续想办法。。。
极度缺钱,求捐赠……支付宝兼邮箱:huming2207@qq.com
级别: 风云使者
UID: 36096
精华: 3
发帖: 2513
金钱: 14075 两
威望: 2815 点
综合积分: 5086 分
注册时间: 2011-01-11
最后登录: 2015-11-15
28楼  发表于: 2013-07-16 14:55
新错误,出处,在s3c-nand.c的1115行,如下:

if (!type) {
            printk(KERN_ERR "Unknown NAND Device.\n");
            goto exit_error;
        }
极度缺钱,求捐赠……支付宝兼邮箱:huming2207@qq.com
级别: 侠客
UID: 16060
精华: 0
发帖: 87
金钱: 435 两
威望: 87 点
综合积分: 174 分
注册时间: 2010-03-13
最后登录: 2018-02-08
29楼  发表于: 2013-07-16 16:54
支持楼主,我手上也有K9GBGU8U0A 一直没有调通,郁闷中........