Starting kernel ...
Uncompressing Linux... done, booting the kernel.
ryz first 3fff6000
ryzMachine model: YIC System SMDKV210 based on S5PV210
search "chosen", depth: 0, uname:
search "chosen", depth: 1, uname: chosen
12ryzconsole=ttySAC0,115200n8 noinitrd init=/init root=/dev/nfs nfsroot=192.168.1.199:/opt/EmbedSky/TQ210/rootfs_linux_v1.4_CoreB ip=192.168.1n
ryzSamsung S5PC110/S5PV210-based board
ryzconsole=ttySAC0,115200n8 noinitrd init=/init root=/dev/nfs nfsroot=192.168.1.199:/opt/EmbedSky/TQ210/rootfs_linux_v1.4_CoreB ip=192.168.1.6n
ryz unflatten_device
ryz s5pv210 clk dt init
ryz S5PV210 clocks: xxti=24000000, fin_pll = 24000000, mout_apll = 800000000, mout_mpll = 667000000
mout_epll = 80000000, mout_vpll = 24000000
ryz xxx _samsung_pwm_clocksource_init
ryz samsung_clocksource_init0 clock_rate:tscalre:2,tdiv:1
ryz samsung_clocksource_init clock_rate:tscalre:2,tdiv:1, pclk:66700000
ryz samsung_clocksource_init clock_rate:33350000, pclock:66700000,tscalre:2,tdiv:1
ryz clocksource mult:2012259790,shift:26
ryz console_init
ryz console_init2.0
ryz console_init2.1
ryz console_init2.2
ryz console_init2.2.1
ryz console_init2.2.2
ryz console_init2.2.3
ryz console_init2.2.4
ryz console_init2.2.5
ryz console_init2.2.6
ryz console_init287
ryz console_init314
ryz console_delay195
ryz console_delay200
ryz console_delay215
ryz console_delay221
ryz console_delay241
ryz console_delay221
ryz console_delay241
ryz console_delay221
ryz console_delay241
ryz console_delay253
ryz console_init319
ryz console_init329
ryz console_init331
ryz console_init2.2.7
ryz console_init2.3
ryz console_init3.1
ryz console_init3.2
ryz console_init3
ryz rest_init
ryz clocksource mult:1280000000,shift:8
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.1.33 (yazhou@yazhou-ubuntu) (gcc version 5.3.1 20160412 (Linaro GCC 5.3-2016.05) ) #12 PREEMPT Wed Oct 19 22:046
[ 0.000000] CPU: ARMv7 Processor [412fc082] revision 2 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine model: YIC System SMDKV210 based on S5PV210
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] CPU: All CPU(s) started in SVC mode.
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 260096
[ 0.000000] Kernel command line: console=ttySAC0,115200n8 noinitrd init=/init root=/dev/nfs nfsroot=192.168.1.199:/opt/EmbedSky/TQ210/rootfn
[ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Memory: 1034928K/1048576K available (2990K kernel code, 115K rwdata, 916K rodata, 164K init, 245K bss, 13648K reserved, 0K cma-)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xc0800000 - 0xff000000 (1000 MB)
[ 0.000000] lowmem : 0x80000000 - 0xc0000000 (1024 MB)
[ 0.000000] modules : 0x7f000000 - 0x80000000 ( 16 MB)
[ 0.000000] .text : 0x80008000 - 0x803d8c28 (3908 kB)
[ 0.000000] .init : 0x803d9000 - 0x80402000 ( 164 kB)
[ 0.000000] .data : 0x80402000 - 0x8041ee00 ( 116 kB)
[ 0.000000] .bss : 0x8041ee00 - 0x8045c478 ( 246 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] Additional per-CPU info printed with stalls.
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] VIC @c0800000: id 0x00041192, vendor 0x41
[ 0.000000] VIC @c0802000: id 0x00041192, vendor 0x41
[ 0.000000] VIC @c0804000: id 0x00041192, vendor 0x41
[ 0.000000] VIC @c0806000: id 0x00041192, vendor 0x41
[ 0.000000] S5PV210 clocks: mout_apll = 800000000, mout_mpll = 667000000
[ 0.000000] mout_epll = 80000000, mout_vpll = 24000000
[ 0.000014] sched_clock: 32 bits at 33MHz, resolution 29ns, wraps every 64392313329ns
[ 0.003639] clocksource samsung_clocksource_timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 57309158834 ns
[ 0.004127] Console: colour dummy device 80x30
[ 0.005650] ryz console init2
[ 0.026709] Calibrating delay loop... ryz console_delay195
[ 0.167609] pid_max: default: 32768 minimum: 301
[ 0.171373] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.171405] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.174297] CPU: Testing write buffer coherency: ok
[ 0.177260] ryz rest_init
[ 0.177577] ryz rest_init 1
[ 0.177646] kernel_init
[ 0.177835] Setting up static identity map for 0x20008240 - 0x20008298
[ 0.179662] ryzxx do_basic_setup
[ 0.179697] ryzxx do_basic_setup1
[ 0.179902] ryzxx do_basic_setup2
[ 0.180060] ryzxx do_basic_setup3
[ 0.202138] ryzxx do_basic_setup4
[ 0.204181] ryzxx do_basic_setup5
[ 0.204208] ryzxx do_basic_setup6
[ 0.204874] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 2
[ 0.209351] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302231375000 ns
[ 0.209725] pinctrl core: initialized pinctrl subsystem
[ 0.210822] NET: Registered protocol family 16
[ 0.212945] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.324892] SCSI subsystem initialized
[ 0.327557] Switched to clocksource samsung_clocksource_timer
[ 0.383574] NET: Registered protocol family 2
[ 0.385800] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.386028] TCP bind hash table entries: 8192 (order: 5, 163840 bytes)
[ 0.386476] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.386665] UDP hash table entries: 512 (order: 2, 24576 bytes)
[ 0.386776] UDP-Lite hash table entries: 512 (order: 2, 24576 bytes)
[ 0.387273] NET: Registered protocol family 1
[ 0.388187] RPC: Registered named UNIX socket transport module.
[ 0.388225] RPC: Registered udp transport module.
[ 0.388243] RPC: Registered tcp transport module.
[ 0.388258] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.392419] futex hash table entries: 256 (order: 0, 7168 bytes)
[ 0.443789] romfs: ROMFS MTD (C) 2007 Red Hat, Inc.
[ 0.445908] io scheduler noop registered
[ 0.445957] io scheduler deadline registered
[ 0.447012] io scheduler cfq registered (default)
[ 0.796615] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[ 0.803495] e2900000.serial: ttySAC0 at MMIO 0xe2900000 (irq = 58, base_baud = 0) is a S3C6400/10
[ 1.233810] console [ttySAC0] enabled
[ 1.238688] e2900400.serial: ttySAC1 at MMIO 0xe2900400 (irq = 59, base_baud = 0) is a S3C6400/10
[ 1.247910] e2900800.serial: ttySAC2 at MMIO 0xe2900800 (irq = 60, base_baud = 0) is a S3C6400/10
[ 1.256619] e2900c00.serial: ttySAC3 at MMIO 0xe2900c00 (irq = 61, base_baud = 0) is a S3C6400/10
[ 1.304279] brd: module loaded
[ 1.323703] loop: module loaded
[ 1.325394] ryz dm9000 probe
[ 1.328541] eth0: dm9000b at c08f6000,c08f8004 IRQ 144 MAC: 00:00:de:ad:be:ef (platform data)
[ 1.330017] mousedev: PS/2 mouse device common for all mice
[ 1.337808] Netfilter messages via NETLINK v0.30.
[ 1.337979] ip_set: protocol 6
[ 1.338067] IPVS: Registered protocols ()
[ 1.338243] IPVS: Connection hash table configured (size=4096, memory=32Kbytes)
[ 1.340776] IPVS: Creating netns size=984 id=0
[ 1.345587] IPVS: ipvs loaded.
[ 1.348867] NET: Registered protocol family 17
[ 1.352461] Key type dns_resolver registered
[ 1.484645] random: nonblocking pool is initialized
2016.10.19 经测试发现是init/main.c中的do_initcalls()中某个地方出错了.............
2016.11.10 dm9000的配置依旧不对,应该先查看dm9000所用的中断控制器(此处是vic0),然后根据中断控制器的类型来写dm9000中关于中断的配置!!!
2016.11.14 不仅需要dm9000所用的中断控制器型号,还要看中断引脚的pinctrl中的配置,在s5pv210-pinctrls.dtsl中配置gph1了中断类型,因此dm9000的配置改为:
ethernet@18000000 {
compatible = "davicom,dm9000";
reg = <0x88000000 0x2 0x88000004 0x2>;
interrupt-parent = <&gph1>;
interrupts = <2 4>;
local-mac-address = [00 00 de ad be ef];
davicom,no-eeprom;
};
2016.11.15 do_basic_setup之后就直接报nfs挂载不成功,但是可以看到ethernet link up了,且ip配置正确,后来发现nfs配置错误了,必须配置nfsv2
2016.11.16 报err如下:
mount_fs
ryz nfs_fs_mount
ryz nfs_fs_mount2 :2
ryz version 2:2
ryz get_nfs_ver 1
ryz get_nfs_ver 2
ryz nfs_fs_mount2.1 :2
ryz nfs_fs_mount2.2 :2
ryz nfs_fs_mount3 :80125938
nfs_try_mount
nfs_try_mount2
------------[ cut here ]------------
WARNING: CPU: 0 PID: 0 at net/sched/sch_generic.c:306 dev_watchdog+0x260/0x26c()
NETDEV WATCHDOG: eth0 (dm9000): transmit queue 0 timed out
2016.11.25仔细分析fdt,研究测试,发现eth根本没有发送出arp包,因此怀疑是kernel自带的驱动有问题!
先放一放,用TQ210自带的kernel来建个文件系统玩玩