主题 : 【无限期暂停更新】Hu's kernel 3.10 for 友善210全平台 DIY内核 复制链接 | 浏览器收藏 | 打印
级别: 风云使者
UID: 36096
精华: 3
发帖: 2513
金钱: 14075 两
威望: 2815 点
综合积分: 5086 分
注册时间: 2011-01-11
最后登录: 2015-11-15
10楼  发表于: 2013-07-14 21:35
引用第9楼liukunmcu于2013-07-14 21:19发表的  :
菜鸟路过,
如果目标平台是 smdkv210 需要修改 kernel arch/arm/tools/mach-types 搜 smdkv210  
smdkv210        MACH_SMDKV210        SMDKV210        2456 -----》3466

如果你添加了自己目标平台的支持,如果已经在 arch/arm/tools/mach-types 添加了:
.......

刚改好就看到这个。。。

用的方法是:smdkv210        MACH_SMDKV210        SMDKV210        2456 -----》3466 


还在编译中,似乎原来不能编译通过的问题没了。。。


能启动了我就贴log
极度缺钱,求捐赠……支付宝兼邮箱:huming2207@qq.com
级别: 风云使者
UID: 36096
精华: 3
发帖: 2513
金钱: 14075 两
威望: 2815 点
综合积分: 5086 分
注册时间: 2011-01-11
最后登录: 2015-11-15
11楼  发表于: 2013-07-14 21:40
good,能开了,当然还是kernel panic

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: 510696k/510696k available, 13592k 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 - 0x806eb01c   (7053 kB)
      .init : 0x806ec000 - 0x80849cdc   (1400 kB)
      .data : 0x8084a000 - 0x8088ed40   ( 276 kB)
       .bss : 0x8088ed40 - 0x808cb574   ( 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 0x804aefc0 - 0x804af018
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
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
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
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 ]
usbcore: registered new interface driver usbserial
usbcore: registered new interface driver ch341
usbserial: USB Serial support registered for ch341-uart
usbcore: registered new interface driver cp210x
usbserial: USB Serial support registered for cp210x
usbcore: registered new interface driver option
usbserial: USB Serial support registered for GSM modem (1-port)
unable to find transceiver of type USB2 PHY
s3c-hsotg s3c-hsotg: regs a0880000, irq 88
s3c-hsotg s3c-hsotg: EPs:15
s3c-hsotg s3c-hsotg: dedicated fifos
s3c-hsotg s3c-hsotg: cannot create debug root
s3c-hsotg s3c-hsotg: DCFG=0x08200000, DCTL=0x00000002, DIEPMSK=0000000f
s3c-hsotg s3c-hsotg: GAHBCFG=0x00000000, 0x44=0x00000000
s3c-hsotg s3c-hsotg: GRXFSIZ=0x00000800, GNPTXFSIZ=0x04000800
s3c-hsotg s3c-hsotg: DPTx[1] FSize=768, StAddr=0x00000c00
s3c-hsotg s3c-hsotg: DPTx[2] FSize=768, StAddr=0x00000f00
s3c-hsotg s3c-hsotg: DPTx[3] FSize=768, StAddr=0x00001200
s3c-hsotg s3c-hsotg: DPTx[4] FSize=768, StAddr=0x00001500
s3c-hsotg s3c-hsotg: DPTx[5] FSize=768, StAddr=0x00001800
s3c-hsotg s3c-hsotg: DPTx[6] FSize=768, StAddr=0x00001b00
s3c-hsotg s3c-hsotg: DPTx[7] FSize=768, StAddr=0x00001e00
s3c-hsotg s3c-hsotg: DPTx[8] FSize=768, StAddr=0x00002100
s3c-hsotg s3c-hsotg: DPTx[9] FSize=768, StAddr=0x00002400
s3c-hsotg s3c-hsotg: DPTx[10] FSize=768, StAddr=0x00002700
s3c-hsotg s3c-hsotg: DPTx[11] FSize=768, StAddr=0x00002a00
s3c-hsotg s3c-hsotg: DPTx[12] FSize=768, StAddr=0x00002d00
s3c-hsotg s3c-hsotg: DPTx[13] FSize=768, StAddr=0x00003000
s3c-hsotg s3c-hsotg: DPTx[14] FSize=768, StAddr=0x00003300
s3c-hsotg s3c-hsotg: DPTx[15] FSize=768, StAddr=0x00003600
s3c-hsotg s3c-hsotg: ep0-in: EPCTL=0x00008000, SIZ=0x00000000, DMA=0x16868011
s3c-hsotg s3c-hsotg: ep0-out: EPCTL=0x00008000, SIZ=0x00000000, DMA=0xbf7ff77e
s3c-hsotg s3c-hsotg: ep1-in: EPCTL=0x00000000, SIZ=0x00000000, DMA=0x45300395
s3c-hsotg s3c-hsotg: ep1-out: EPCTL=0x00000000, SIZ=0x00000000, DMA=0x5c4aa61c
s3c-hsotg s3c-hsotg: ep2-in: EPCTL=0x00000000, SIZ=0x00000000, DMA=0x40bf784a
s3c-hsotg s3c-hsotg: ep2-out: EPCTL=0x00000000, SIZ=0x00000000, DMA=0xeeb7847e
s3c-hsotg s3c-hsotg: ep3-in: EPCTL=0x00000000, SIZ=0x00000000, DMA=0x876856b4
s3c-hsotg s3c-hsotg: ep3-out: EPCTL=0x00000000, SIZ=0x00000000, DMA=0x8ec9d18a
s3c-hsotg s3c-hsotg: ep4-in: EPCTL=0x00000000, SIZ=0x00000000, DMA=0x32603423
s3c-hsotg s3c-hsotg: ep4-out: EPCTL=0x00000000, SIZ=0x00000000, DMA=0x9f72d3b5
s3c-hsotg s3c-hsotg: ep5-in: EPCTL=0x00000000, SIZ=0x00000000, DMA=0x28182069
s3c-hsotg s3c-hsotg: ep5-out: EPCTL=0x00000000, SIZ=0x00000000, DMA=0x3b5ff5bf
s3c-hsotg s3c-hsotg: ep6-in: EPCTL=0x00000000, SIZ=0x00000000, DMA=0xa683c081
s3c-hsotg s3c-hsotg: ep6-out: EPCTL=0x00000000, SIZ=0x00000000, DMA=0xa8ed4789
s3c-hsotg s3c-hsotg: ep7-in: EPCTL=0x00000000, SIZ=0x00000000, DMA=0xe86d03db
s3c-hsotg s3c-hsotg: ep7-out: EPCTL=0x00000000, SIZ=0x00000000, DMA=0xe342ff2b
s3c-hsotg s3c-hsotg: ep8-in: EPCTL=0x00000000, SIZ=0x00000000, DMA=0x34919820
s3c-hsotg s3c-hsotg: ep8-out: EPCTL=0x00000000, SIZ=0x00000000, DMA=0x5d03fa5a
s3c-hsotg s3c-hsotg: ep9-in: EPCTL=0x00000000, SIZ=0x00000000, DMA=0x68928385
s3c-hsotg s3c-hsotg: ep9-out: EPCTL=0x00000000, SIZ=0x00000000, DMA=0x1df29795
s3c-hsotg s3c-hsotg: ep10-in: EPCTL=0x00000000, SIZ=0x00000000, DMA=0x0873a111
s3c-hsotg s3c-hsotg: ep10-out: EPCTL=0x00000000, SIZ=0x00000000, DMA=0xceba2744
s3c-hsotg s3c-hsotg: ep11-in: EPCTL=0x00000000, SIZ=0x00000000, DMA=0x4a4c8a2f
s3c-hsotg s3c-hsotg: ep11-out: EPCTL=0x00000000, SIZ=0x00000000, DMA=0x4079d063
s3c-hsotg s3c-hsotg: ep12-in: EPCTL=0x00000000, SIZ=0x00000000, DMA=0x06241c44
s3c-hsotg s3c-hsotg: ep12-out: EPCTL=0x00000000, SIZ=0x00000000, DMA=0x7e4438c3
s3c-hsotg s3c-hsotg: ep13-in: EPCTL=0x00000000, SIZ=0x00000000, DMA=0x2684f3c0
s3c-hsotg s3c-hsotg: ep13-out: EPCTL=0x00000000, SIZ=0x00000000, DMA=0xd1412d82
s3c-hsotg s3c-hsotg: ep14-in: EPCTL=0x00000000, SIZ=0x00000000, DMA=0x5d408b7f
s3c-hsotg s3c-hsotg: ep14-out: EPCTL=0x00000000, SIZ=0x00000000, DMA=0xcfe9ef74
s3c-hsotg s3c-hsotg: DVBUSDIS=0x00000b8f, DVBUSPULSE=000002c6
g_ether gadget: using random self ethernet address
g_ether gadget: using random host ethernet address
usb0: MAC e2:8d:1d:c4:2b:05
usb0: HOST MAC 62:a8:be:1a:2a:6a
g_ether gadget: Ethernet Gadget, version: Memorial Day 2008
g_ether gadget: g_ether ready
s3c-hsotg s3c-hsotg: bound driver g_ether
mousedev: PS/2 mouse device common for all mice
Bluetooth: Virtual HCI driver ver 1.3
s3c-hsotg s3c-hsotg: GINTSTS_USBSusp
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
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
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
s3c-hsotg s3c-hsotg: s3c_hsotg_irq: USBRst
lib80211: common routines for IEEE802.11 drivers
VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 2
s3c-hsotg s3c-hsotg: new device is high-speed
ALSA device list:
  No soundcards found.
Freeing unused kernel memory: 1396K (806ec000 - 80849000)
s3c-hsotg s3c-hsotg: new address 4
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-g0922930-dirty #1
[<80012b98>] (unwind_backtrace+0x0/0xf8) from [<80010a94>] (show_stack+0x10/0x14)
[<80010a94>] (show_stack+0x10/0x14) from [<804a8324>] (panic+0x8c/0x1d8)
[<804a8324>] (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)
极度缺钱,求捐赠……支付宝兼邮箱:huming2207@qq.com
级别: 风云使者
UID: 36096
精华: 3
发帖: 2513
金钱: 14075 两
威望: 2815 点
综合积分: 5086 分
注册时间: 2011-01-11
最后登录: 2015-11-15
12楼  发表于: 2013-07-14 21:42
那个smdkv210该改的还没改,所以有这些东西。明天上diff,比较一下mach-smdkv210.c和mach-mini210.c
极度缺钱,求捐赠……支付宝兼邮箱:huming2207@qq.com
级别: 风云使者
UID: 36096
精华: 3
发帖: 2513
金钱: 14075 两
威望: 2815 点
综合积分: 5086 分
注册时间: 2011-01-11
最后登录: 2015-11-15
13楼  发表于: 2013-07-14 21:50
flash有坏快,不明原因。。。见:http://aiothome.net/read.php?tid-80624.html
极度缺钱,求捐赠……支付宝兼邮箱:huming2207@qq.com
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
14楼  发表于: 2013-07-15 12:43

 回 11楼(huhu2207) 的帖子

mount: mounting /dev/mtdblock4 on /r failed: No such device or address

NAND驱动没有正确加载?
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 风云使者
UID: 36096
精华: 3
发帖: 2513
金钱: 14075 两
威望: 2815 点
综合积分: 5086 分
注册时间: 2011-01-11
最后登录: 2015-11-15
15楼  发表于: 2013-07-15 15:00

 Re:回 11楼(huhu2207) 的帖子

引用第14楼kasim于2013-07-15 12:43发表的 回 11楼(huhu2207) 的帖子 :

NAND驱动没有正确加载?
呃。。。]那个开源驱动有问题?
极度缺钱,求捐赠……支付宝兼邮箱:huming2207@qq.com
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
16楼  发表于: 2013-07-15 19:05

 回 15楼(huhu2207) 的帖子

不确定,但至少你要确保它的probe函数被调用到了.
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 风云使者
UID: 36096
精华: 3
发帖: 2513
金钱: 14075 两
威望: 2815 点
综合积分: 5086 分
注册时间: 2011-01-11
最后登录: 2015-11-15
17楼  发表于: 2013-07-15 21:29

 Re:回 15楼(huhu2207) 的帖子

引用第16楼kasim于2013-07-15 19:05发表的 回 15楼(huhu2207) 的帖子 :
不确定,但至少你要确保它的probe函数被调用到了.
不知道呢 C还不是太熟。。。这是开了Debug选项的结果,似乎跟没开一样。。。
有个问题就是,作者把这个驱动可能是分成了两部分,一个叫s5p_nand_mlc.c一个叫s5p_phy_init_ext.c,我这里只编译了前者,后者那个s5p_phy_init_ext.c可能也要跟着配合编译才能用。
但是如果编译s5p_phy_init_ext.c又出一大堆乱七八糟的错误。得好好研究一下。
极度缺钱,求捐赠……支付宝兼邮箱:huming2207@qq.com
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
18楼  发表于: 2013-07-15 21:41

 回 17楼(huhu2207) 的帖子

简单地说,在drivers/mtd/nand/s3c_nand.c里有
复制代码
  1. static struct platform_driver s5pv210_nand_driver = {
  2. .probe = s5pv210_nand_probe,
  3. .remove = s3c_nand_remove,
  4. .suspend = s3c_nand_suspend,
  5. .resume = s3c_nand_resume,
  6. .driver = {
  7.     .name = "s5pv210-nand",
  8.     .owner = THIS_MODULE,
  9.     },
  10. };

这说明,在你的board文件(arch/arm/mach-s5pv210/mach-smdkv210.c?)里需要相应的注册一个名字为"s5pv210-nand"的platform device. 这样驱动才能被正确加载(s5pv210_nand_probe()函数被调用)
这是友善之臂3.0.8内核里的arch/arm/mach-s5pv210/mach-mini210.c的部分代码,供你参考
复制代码
  1. struct platform_device s3c_device_nand = {
  2.     .name        = "s5pv210-nand",
  3.     .id            = -1,
  4.     .num_resources    = ARRAY_SIZE(s3c_nand_resource),
  5.     .resource    = s3c_nand_resource,
  6. };
  7. ...
  8. static struct platform_device *mini210_devices[] __initdata = {
  9.     &s3c_device_adc,
  10.     &s3c_device_cfcon,
  11.     &s3c_device_nand,
  12. ...
  13. static void __init mini210_machine_init(void)
  14. {
  15. ...
  16.     platform_add_devices(mini210_devices, ARRAY_SIZE(mini210_devices));
  17. ...
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 风云使者
UID: 36096
精华: 3
发帖: 2513
金钱: 14075 两
威望: 2815 点
综合积分: 5086 分
注册时间: 2011-01-11
最后登录: 2015-11-15
19楼  发表于: 2013-07-16 08:16

 Re:回 17楼(huhu2207) 的帖子

引用第18楼kasim于2013-07-15 21:41发表的 回 17楼(huhu2207) 的帖子 :
简单地说,在drivers/mtd/nand/s3c_nand.c里有
[code]
static struct platform_driver s5pv210_nand_driver = {
.probe = s5pv210_nand_probe,
.remove = s3c_nand_remove,
.......

查明原因了,可能那个smdkv210是没有nand的所以在那个mach-smdkv210.c那里没有加载nand驱动的代码(棒子们这么喜欢用SD卡启动板子吗?!)
这回填上去了 试试行不行。。。
极度缺钱,求捐赠……支付宝兼邮箱:huming2207@qq.com