2.6.38-landisk準備作業完了
一度作ってみて動かないのでやめていましたが、elijahさんに修正内容を頂いたので、カーネルを準備中です。
クロスツールチェーン最新を使っていると思っていたのですが、しばらく4.3のままになっていました。パッケージ名が変わるので、upgradeだけではダメですよね。
今回からは、4.4です。
scsiでは動きませんでした。9600bpsではlogが分からないので、115200で、
ノチナナ5)ススムE?オヘ・)srrj=U9Q}I==Q}I=91eオチチチチチチチナ5)srr5%M-}1Mオチチチチチチチチ5)srrzI%}I==Q}Y?с55%=チ矣チチチチ。・ノ?e・ヘ?・5)console [ttySC1] enabledチチ5)srrJ9%QI}M%iオチチチチチチチチ5)k loop: module loadedノ?・ヘ?・5)ノ・ヘ鯔ユル。スノノ駲ムチ袢)」・ケ衽?5)ォAオ1・ム。ヘ。ムチアケムノ・ヘ鯔ユル。スノノ駲 scsi0 : pata_platformナノチ5)KスヘQ。#ルムオチヘ鬣ケ・?ア・・)sQ飆・ヘム?チノスムス5)kスユケ?イオアアス ata1: PATA max PIO0 ioport cmd 0xc0000042 ctl 0xc000002e irq 10 8139cp: 8139cp: 10/100 PCI Ethernet driver v1.3 (Mar 22, 2004) 8139cp 0000:00:00.0: enabling device (0000 -> 0003) 8139cp 0000:00:00.0: eth0: RTL-8139C+ at 0xfd002000, 00:a0:b0:6c:e9:cd, IRQ 5 PCI: Setting latency timer of device 0000:00:00.0 to 64 usbmon: debugfs is not available ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver ehci_hcd 0000:00:02.2: enabling device (0000 -> 0002) ehci_hcd 0000:00:02.2: EHCI Host Controller ehci_hcd 0000:00:02.2: new USB bus registered, assigned bus number 1 ehci_hcd 0000:00:02.2: irq 5, io mem 0xfd002100 ehci_hcd 0000:00:02.2: USB 2.0 started, EHCI 1.00 hub 1-0:1.0: USB hub found hub 1-0:1.0: 5 ports detected ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver ohci_hcd 0000:00:02.0: enabling device (0000 -> 0002) PCI: Setting latency timer of device 0000:00:02.0 to 64 ohci_hcd 0000:00:02.0: OHCI Host Controller ohci_hcd 0000:00:02.0: new USB bus registered, assigned bus number 2 ohci_hcd 0000:00:02.0: irq 7, io mem 0xfd000000 hub 2-0:1.0: USB hub found hub 2-0:1.0: 3 ports detected ohci_hcd 0000:00:02.1: enabling device (0000 -> 0002) PCI: Setting latency timer of device 0000:00:02.1 to 64 ohci_hcd 0000:00:02.1: OHCI Host Controller ohci_hcd 0000:00:02.1: new USB bus registered, assigned bus number 3 ohci_hcd 0000:00:02.1: irq 8, io mem 0xfd001000 hub 3-0:1.0: USB hub found hub 3-0:1.0: 2 ports detected mousedev: PS/2 mouse device common for all mice rs5c313 rs5c313: rtc core: registered rs5c313 as rtc0 sh_tmu sh_tmu.0: kept as earlytimer sh_tmu sh_tmu.1: kept as earlytimer push-switch: version 0.1.1 loaded TCP cubic registered NET: Registered protocol family 17 rs5c313 rs5c313: setting system clock to 2000-01-01 00:43:07 UTC (946687387) VFS: Cannot open root device "sda3" or unknown-block(0,0) Please append a correct "root=" boot option; here are the available partitions: Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) Stack: (0x8fc1fef8 to 0x8fc20000) fee0: 8c2012d2 8c258560 ff00: 8c11f67c 8c117d20 8c201402 8fc1ff30 8c2b8bc2 8c2585c8 8c117d20 8c2cb3ec ff20: 8c079c4c 00008001 8c2013e8 8c2d20bc 8fc1ff3c 00000000 8c2ad1e8 6e6b6e75 ff40: 2d6e776f 636f6c62 2c30286b 8c002930 8c2cb3f4 8fc3a000 8c2b8c38 8c2b8d6c ff60: 00000000 00000000 00000000 00000000 8c2d0410 8c002048 8c2d20bc 8c2b8244 ff80: 00000000 8c2d0410 8c002048 8c2d2070 8c003cea 00000000 00000000 00000000 ffa0: 00000000 00000000 00000000 00000000 00000000 00000000 8c2b8184 00000000 ffc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 ffe0: 8fc1ffa4 8c003ce4 00000000 40008000 00000000 00000000 00000000 00000000 Call trace: [<8c11f67c>] bust_spinlocks+0x0/0x44 [<8c117d20>] strlen+0x0/0x58 [<8c201402>] printk+0x1a/0x28 [<8c2b8bc2>] mount_block_root+0x20a/0x24c [<8c117d20>] strlen+0x0/0x58 [<8c079c4c>] sys_mount+0x0/0xc8 [<8c2013e8>] printk+0x0/0x28 [<8c002930>] match_dev_by_uuid+0x414/0xae4 [<8c2b8c38>] mount_root+0x34/0x64 [<8c2b8d6c>] prepare_namespace+0x104/0x198 [<8c002048>] do_one_initcall+0x0/0x150 [<8c2b8244>] kernel_init+0xc0/0x13c [<8c002048>] do_one_initcall+0x0/0x150 [<8c003cea>] kernel_thread_helper+0x6/0x10 [<8c2b8184>] kernel_init+0x0/0x13c [<8c003ce4>] kernel_thread_helper+0x0/0x10
過去の2.6.35.xでは
ata1: PATA max PIO0 ioport cmd 0xc0000040 ctl 0xc000002c irq 10
で動いているので、ATA用に修正したsetup.cがscsiの時は直さなくてもいいということですかね?
2.6.38はATAの時のみおかしくなるんですかね?
さて戻して再ビルドです。
再トライすると、
ノチナナ5)ススムE?オヘ・)srrj=U9Q}I==Q}I=91eオチチチチチチチナ5)srr5%M-}1Mオチチチチチチチチ5)srrzI%}I==Q}Y?с55%=チ矣チチチチ。・ノ?e・ヘ?・5)console [ttySC1] enabledチチ5)srrJ9%QI}M%iオチチチチチチチチ5)k loop: module loadedノ?・ヘ?・5)ノ・ヘ鯔ユル。スノノ駲ムチ袢)」・ケ衽?5)ォAオ1・ム。ヘ。ムチアケムノ・ヘ鯔ユル。スノノ駲 scsi0 : pata_platformナノチ5)KスヘQ。#ルムオチヘ鬣ケ・?ア・・)sQ飆・ヘム?チノスムス5)kスユケ?イオアアス ata1: PATA max PIO0 ioport cmd 0xc0000040 ctl 0xc000002c irq 10 8139cp: 8139cp: 10/100 PCI Ethernet driver v1.3 (Mar 22, 2004) 8139cp 0000:00:00.0: enabling device (0000 -> 0003) 8139cp 0000:00:00.0: eth0: RTL-8139C+ at 0xfd002000, 00:a0:b0:6c:e9:cd, IRQ 5 PCI: Setting latency timer of device 0000:00:00.0 to 64 usbmon: debugfs is not available ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver ehci_hcd 0000:00:02.2: enabling device (0000 -> 0002) ehci_hcd 0000:00:02.2: EHCI Host Controller ehci_hcd 0000:00:02.2: new USB bus registered, assigned bus number 1 ehci_hcd 0000:00:02.2: irq 5, io mem 0xfd002100 ehci_hcd 0000:00:02.2: USB 2.0 started, EHCI 1.00 hub 1-0:1.0: USB hub found hub 1-0:1.0: 5 ports detected ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver ohci_hcd 0000:00:02.0: enabling device (0000 -> 0002) PCI: Setting latency timer of device 0000:00:02.0 to 64 ohci_hcd 0000:00:02.0: OHCI Host Controller ohci_hcd 0000:00:02.0: new USB bus registered, assigned bus number 2 ohci_hcd 0000:00:02.0: irq 7, io mem 0xfd000000 hub 2-0:1.0: USB hub found hub 2-0:1.0: 3 ports detected ohci_hcd 0000:00:02.1: enabling device (0000 -> 0002) PCI: Setting latency timer of device 0000:00:02.1 to 64 ohci_hcd 0000:00:02.1: OHCI Host Controller ohci_hcd 0000:00:02.1: new USB bus registered, assigned bus number 3 ohci_hcd 0000:00:02.1: irq 8, io mem 0xfd001000 hub 3-0:1.0: USB hub found hub 3-0:1.0: 2 ports detected mousedev: PS/2 mouse device common for all mice rs5c313 rs5c313: rtc core: registered rs5c313 as rtc0 sh_tmu sh_tmu.0: kept as earlytimer sh_tmu sh_tmu.1: kept as earlytimer push-switch: version 0.1.1 loaded TCP cubic registered NET: Registered protocol family 17 rs5c313 rs5c313: setting system clock to 2000-01-01 01:57:30 UTC (946691850) VFS: Cannot open root device "sda3" or unknown-block(0,0) Please append a correct "root=" boot option; here are the available partitions: Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) Stack: (0x8fc1fef8 to 0x8fc20000) fee0: 8c2012d2 8c258560 ff00: 8c11f67c 8c117d20 8c201402 8fc1ff30 8c2b8bc2 8c2585c8 8c117d20 8c2cb3ec ff20: 8c079c4c 00008001 8c2013e8 8c2d20bc 8fc1ff3c 00000000 8c2ad1e8 6e6b6e75 ff40: 2d6e776f 636f6c62 2c30286b 8c002930 8c2cb3f4 8fc3a000 8c2b8c38 8c2b8d6c ff60: 00000000 00000000 00000000 00000000 8c2d0410 8c002048 8c2d20bc 8c2b8244 ff80: 00000000 8c2d0410 8c002048 8c2d2070 8c003cea 00000000 00000000 00000000 ffa0: 00000000 00000000 00000000 00000000 00000000 00000000 8c2b8184 00000000 ffc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 ffe0: 8fc1ffa4 8c003ce4 00000000 40008000 00000000 00000000 00000000 00000000 Call trace: [<8c11f67c>] bust_spinlocks+0x0/0x44 [<8c117d20>] strlen+0x0/0x58 [<8c201402>] printk+0x1a/0x28 [<8c2b8bc2>] mount_block_root+0x20a/0x24c [<8c117d20>] strlen+0x0/0x58 [<8c079c4c>] sys_mount+0x0/0xc8 [<8c2013e8>] printk+0x0/0x28 [<8c002930>] match_dev_by_uuid+0x414/0xae4 [<8c2b8c38>] mount_root+0x34/0x64 [<8c2b8d6c>] prepare_namespace+0x104/0x198 [<8c002048>] do_one_initcall+0x0/0x150 [<8c2b8244>] kernel_init+0xc0/0x13c [<8c002048>] do_one_initcall+0x0/0x150 [<8c003cea>] kernel_thread_helper+0x6/0x10 [<8c2b8184>] kernel_init+0x0/0x13c [<8c003ce4>] kernel_thread_helper+0x0/0x10
ダメでした。
下記のありがたいコメントにより、再々ビルドです。
文字化けも恥ずかしいので、dmesgを貼り付けます。
Setting GDB trap vector to 80000100 Linux version 2.6.38 (root@CFdebian) (gcc version 4.4.5 (Debian 4.4.5-10) ) #6 Mon Mar 21 08:11:35 UTC 2011 Boot params: ... MOUNT_ROOT_RDONLY - 00000001 ... RAMDISK_FLAGS - 00000000 ... ORIG_ROOT_DEV - 00000301 ... LOADER_TYPE - 00000001 ... INITRD_START - 00000000 ... INITRD_SIZE - 00000000 Memory limited to 64MB Booting machvec: LANDISK Node 0: start_pfn = 0xc000, low = 0x10000 Zone PFN ranges: Normal 0x0000c000 -> 0x00010000 Movable zone start PFN for each node early_node_map[1] active PFN ranges 0: 0x0000c000 -> 0x00010000 On node 0 totalpages: 16384 free_area_init_node: node 0, pgdat 8c2b6c38, node_mem_map 8c2eb000 Normal zone: 128 pages used for memmap Normal zone: 0 pages reserved Normal zone: 16256 pages, LIFO batch:3 I-O DATA DEVICE, INC. "LANDISK Series" support. pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768 pcpu-alloc: [0] 0 Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256 Kernel command line: ro mem=64M console=ttySC1,115200 root=/dev/sda3 PID hash table entries: 256 (order: -2, 1024 bytes) Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) Inode-cache hash table entries: 4096 (order: 2, 16384 bytes) PVR=04050005 CVR=20480000 PRR=00000113 I-cache : n_ways=2 n_sets=256 way_incr=8192 I-cache : entry_mask=0x00001fe0 alias_mask=0x00001000 n_aliases=2 D-cache : n_ways=2 n_sets=512 way_incr=16384 D-cache : entry_mask=0x00003fe0 alias_mask=0x00003000 n_aliases=4 Memory: 61940k/65536k available (2063k kernel code, 713k data, 104k init) virtual kernel memory layout: fixmap : 0xdfff7000 - 0xdffff000 ( 32 kB) vmalloc : 0xc0000000 - 0xdfff5000 ( 511 MB) lowmem : 0x8c000000 - 0x90000000 ( 64 MB) (cached) : 0xa0000000 - 0xc0000000 ( 512 MB) (uncached) .init : 0x8c2b8000 - 0x8c2d2000 ( 104 kB) .data : 0x8c204c78 - 0x8c2b7300 ( 713 kB) .text : 0x8c001000 - 0x8c204c78 (2063 kB) NR_IRQS:512 nr_irqs:512 8 intc: Registered controller 'sh7750' with 20 IRQs intc: Registered controller 'sh7750_dma8' with 9 IRQs intc: Registered controller 'sh7750_tmu34' with 2 IRQs intc: Registered controller 'sh7750_pci' with 8 IRQs intc: Registered controller 'landisk' with 8 IRQs Console: colour dummy device 80x25 sh_tmu.0: used for clock events sh_tmu.0: used for periodic clock events sh_tmu.1: used as clock source Calibrating delay loop (skipped)... 266.66 BogoMIPS PRESET (lpj=533333) pid_max: default: 32768 minimum: 301 Mount-cache hash table entries: 512 CPU: SH7751R devtmpfs: initialized NET: Registered protocol family 16 PCI: Starting initialization. bio: create slabat 0 vgaarb: loaded SCSI subsystem initialized libata version 3.00 loaded. usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb DMA: Registering sh_dmac handler (8 channels). DMA: Registering DMA API. pci 0000:00:00.0: [10ec:8139] type 0 class 0x000200 pci 0000:00:00.0: reg 10: [io 0x0000-0x00ff] pci 0000:00:00.0: reg 14: [mem 0x00000000-0x000000ff] pci 0000:00:00.0: supports D1 D2 pci 0000:00:00.0: PME# supported from D1 D2 D3hot D3cold pci 0000:00:00.0: PME# disabled pci 0000:00:02.0: [1033:0035] type 0 class 0x000c03 pci 0000:00:02.0: reg 10: [mem 0x00000000-0x00000fff] pci 0000:00:02.0: supports D1 D2 pci 0000:00:02.0: PME# supported from D0 D1 D2 D3hot pci 0000:00:02.0: PME# disabled pci 0000:00:02.1: [1033:0035] type 0 class 0x000c03 pci 0000:00:02.1: reg 10: [mem 0x00000000-0x00000fff] pci 0000:00:02.1: supports D1 D2 pci 0000:00:02.1: PME# supported from D0 D1 D2 D3hot pci 0000:00:02.1: PME# disabled pci 0000:00:02.2: [1033:00e0] type 0 class 0x000c03 pci 0000:00:02.2: reg 10: [mem 0x00000000-0x000000ff] pci 0000:00:02.2: supports D1 D2 pci 0000:00:02.2: PME# supported from D0 D1 D2 D3hot pci 0000:00:02.2: PME# disabled pci 0000:00:02.0: BAR 0: assigned [mem 0xfd000000-0xfd000fff] pci 0000:00:02.0: BAR 0: set to [mem 0xfd000000-0xfd000fff] (PCI address [0xfd000000-0xfd000fff]) pci 0000:00:02.1: BAR 0: assigned [mem 0xfd001000-0xfd001fff] pci 0000:00:02.1: BAR 0: set to [mem 0xfd001000-0xfd001fff] (PCI address [0xfd001000-0xfd001fff]) pci 0000:00:00.0: BAR 0: assigned [io 0x1000-0x10ff] pci 0000:00:00.0: BAR 0: set to [io 0x1000-0x10ff] (PCI address [0x1000-0x10ff]) pci 0000:00:00.0: BAR 1: assigned [mem 0xfd002000-0xfd0020ff] pci 0000:00:00.0: BAR 1: set to [mem 0xfd002000-0xfd0020ff] (PCI address [0xfd002000-0xfd0020ff]) pci 0000:00:02.2: BAR 0: assigned [mem 0xfd002100-0xfd0021ff] pci 0000:00:02.2: BAR 0: set to [mem 0xfd002100-0xfd0021ff] (PCI address [0xfd002100-0xfd0021ff]) Switching to clocksource sh_tmu.1 NET: Registered protocol family 2 IP route cache hash table entries: 1024 (order: 0, 4096 bytes) TCP established hash table entries: 2048 (order: 2, 16384 bytes) TCP bind hash table entries: 2048 (order: 1, 8192 bytes) TCP: Hash tables configured (established 2048 bind 2048) TCP reno registered UDP hash table entries: 256 (order: 0, 4096 bytes) UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) NET: Registered protocol family 1 PCI: CLS 0 bytes, default 32 gio: driver initialized ROMFS MTD (C) 2007 Red Hat, Inc. msgmni has been set to 120 io scheduler noop registered io scheduler deadline registered io scheduler cfq registered (default) SuperH SCI(F) driver initialized sh-sci.0: ttySC0 at MMIO 0xffe00000 (irq = 23) is a sci sh-sci.1: ttySC1 at MMIO 0xffe80000 (irq = 40) is a scif console [ttySC1] enabled loop: module loaded scsi0 : pata_platform ata1: PATA max PIO0 ioport cmd 0xc0000041 ctl 0xc000002d irq 10 8139cp: 8139cp: 10/100 PCI Ethernet driver v1.3 (Mar 22, 2004) 8139cp 0000:00:00.0: enabling device (0000 -> 0003) 8139cp 0000:00:00.0: eth0: RTL-8139C+ at 0xfd002000, 00:a0:b0:6c:e9:cd, IRQ 5 PCI: Setting latency timer of device 0000:00:00.0 to 64 usbmon: debugfs is not available ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver ehci_hcd 0000:00:02.2: enabling device (0000 -> 0002) ehci_hcd 0000:00:02.2: EHCI Host Controller ehci_hcd 0000:00:02.2: new USB bus registered, assigned bus number 1 ehci_hcd 0000:00:02.2: irq 5, io mem 0xfd002100 ehci_hcd 0000:00:02.2: USB 2.0 started, EHCI 1.00 hub 1-0:1.0: USB hub found hub 1-0:1.0: 5 ports detected ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver ohci_hcd 0000:00:02.0: enabling device (0000 -> 0002) PCI: Setting latency timer of device 0000:00:02.0 to 64 ohci_hcd 0000:00:02.0: OHCI Host Controller ohci_hcd 0000:00:02.0: new USB bus registered, assigned bus number 2 ohci_hcd 0000:00:02.0: irq 7, io mem 0xfd000000 ata1.00: CFA: HMS360402D5CF00, DN2OC60G, max UDMA/33 ata1.00: 3999744 sectors, multi 0: LBA ata1.00: configured for PIO scsi 0:0:0:0: Direct-Access ATA HMS360402D5CF00 DN2O PQ: 0 ANSI: 5 sd 0:0:0:0: [sda] 3999744 512-byte logical blocks: (2.04 GB/1.90 GiB) sd 0:0:0:0: [sda] Write Protect is off sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00 sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA hub 2-0:1.0: USB hub found hub 2-0:1.0: 3 ports detected ohci_hcd 0000:00:02.1: enabling device (0000 -> 0002) PCI: Setting latency timer of device 0000:00:02.1 to 64 ohci_hcd 0000:00:02.1: OHCI Host Controller ohci_hcd 0000:00:02.1: new USB bus registered, assigned bus number 3 ohci_hcd 0000:00:02.1: irq 8, io mem 0xfd001000 sda: sda1 sda2 sda3 sd 0:0:0:0: [sda] Attached SCSI removable disk hub 3-0:1.0: USB hub found hub 3-0:1.0: 2 ports detected mousedev: PS/2 mouse device common for all mice rs5c313 rs5c313: rtc core: registered rs5c313 as rtc0 sh_tmu sh_tmu.0: kept as earlytimer sh_tmu sh_tmu.1: kept as earlytimer push-switch: version 0.1.1 loaded TCP cubic registered NET: Registered protocol family 17 rs5c313 rs5c313: setting system clock to 2011-03-21 08:34:43 UTC (1300696483) EXT2-fs (sda3): error: couldn't mount because of unsupported optional features (4) EXT4-fs (sda3): INFO: recovery required on readonly filesystem EXT4-fs (sda3): write access will be enabled during recovery EXT4-fs (sda3): recovery complete EXT4-fs (sda3): mounted filesystem with ordered data mode. Opts: (null) VFS: Mounted root (ext3 filesystem) readonly on device 8:3. devtmpfs: mounted Freeing unused kernel memory: 104k freed udev[851]: starting version 166 Adding 125048k swap on /dev/sda2. Priority:-1 extents:1 across:125048k EXT4-fs (sda3): re-mounted. Opts: (null) EXT4-fs (sda3): re-mounted. Opts: (null) eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
elijahさん、ありがとうございます。
カーネルは下記URLです。
http://www42.tok2.com/home/forester3/kernel4usl5p/2.6.38/