lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Wed, 23 Jun 2010 09:34:55 +0200 From: Ivo Clarysse <ivo.clarysse@...il.com> To: John Ogness <john.ogness@...utronix.de> Cc: Sascha Hauer <s.hauer@...gutronix.de>, Sascha Hauer <kernel@...gutronix.de>, linux-arm-kernel@...ts.infradead.org, LKML <linux-kernel@...r.kernel.org> Subject: Re: [PATCHv3 4/5] mtd: mxc_nand fixups On Tue, Jun 22, 2010 at 5:54 PM, John Ogness <john.ogness@...utronix.de> wrote: > The v2 version of this patch has 2 problems. I believe that this new > version addresses the problems and still respects the strange behavior > of the i.MX21. Unfortunately, this breaks i.MX21 support. With this patch, the driver gets stuck at the first send_addr() invocation: barebox 2010.06.0-00202-gc2db375-dirty (Jun 21 2010 - 11:06:13) Board: Freescale i.MX21 ADS cfi_probe: cfi_flash base: 0xc8000000 size: 0x02000000 NAND device: Manufacturer ID: 0xec, Chip ID: 0x36 (Samsung NAND 64MiB 1,8V 8-bit) Scanning device for bad blocks Bad eraseblock 2133 at 0x02154000 CS8900A Rev. F (PID: 0x0a00) found at 0xcc000000 got MAC address from EEPROM: 00:04:9F:00:25:5C Malloc space: 0xc0c00000 -> 0xc1000000 (size 4 MB) Stack space : 0xc0bf8000 -> 0xc0c00000 (size 32 kB) Open /dev/env0 No such file or directory no valid environment found on /dev/env0. Using default environment running /env/bin/init... barebox:/ nand_parts="256k(barebox)ro,128k(bareboxenv),2176k(kernel),-(root)" barebox:/ addpart /dev/nand0 $nand_parts barebox:/ nand -a /dev/nand0.kernel barebox:/ bootargs="console=ttymxc0,115200" barebox:/ bootz /dev/nand0.kernel.bb loaded zImage from /dev/nand0.kernel.bb with size 1696652 Uncompressing Linux... done, booting the kernel. Linux version 2.6.35-rc3 (ycl@...stro-ycl-quad) (gcc version 4.4.1 (Sourcery G++ Lite 2010q1-202) ) #6 PREEMPT Wed Jun 23 09:11:46 CEST 2010 CPU: ARM926EJ-S [41069264] revision 4 (ARMv5TEJ), cr=00053177 CPU: VIVT data cache, VIVT instruction cache Machine: Freescale i.MX21ADS Memory policy: ECC disabled, Data cache writeback Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256 Kernel command line: console=ttymxc0,115200 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) Memory: 64MB = 64MB total Memory: 61776k/61776k available, 3760k reserved, 0K highmem Virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kB) fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB) DMA : 0xffc00000 - 0xffe00000 ( 2 MB) vmalloc : 0xc4800000 - 0xf4000000 ( 760 MB) lowmem : 0xc0000000 - 0xc4000000 ( 64 MB) modules : 0xbf000000 - 0xc0000000 ( 16 MB) .init : 0xc0008000 - 0xc0021000 ( 100 kB) .text : 0xc0021000 - 0xc02dc000 (2796 kB) .data : 0xc02ee000 - 0xc0309160 ( 109 kB) Hierarchical RCU implementation. RCU-based detection of stalled CPUs is disabled. Verbose stalled-CPUs detection is disabled. NR_IRQS:272 MXC GPIO hardware MXC IRQ initialized Console: colour dummy device 80x30 Calibrating delay loop... 131.89 BogoMIPS (lpj=659456) pid_max: default: 32768 minimum: 301 Mount-cache hash table entries: 512 CPU: Testing write buffer coherency: ok NET: Registered protocol family 16 bio: create slab <bio-0> at 0 Switching to clocksource mxc_timer1 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) RPC: Registered udp transport module. RPC: Registered tcp transport module. RPC: Registered tcp NFSv4.1 backchannel transport module. JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc. msgmni has been set to 120 io scheduler noop registered (default) imx-fb imx-fb.0: i.MX Framebuffer driver Console: switching to colour frame buffer device 30x40 Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled Serial: IMX driver imx-uart.0: ttymxc0 at MMIO 0x1000a000 (irq = 20) is a IMX console [ttymxc0] enabled imx-uart.2: ttymxc2 at MMIO 0x1000c000 (irq = 18) is a IMX imx-uart.3: ttymxc3 at MMIO 0x1000d000 (irq = 17) is a IMX physmap platform flash device: 02000000 at c8000000 physmap-flash.0: Found 2 x16 devices at 0x0 in 32-bit bank Amd/Fujitsu Extended Query Table at 0x0040 physmap-flash.0: CFI contains unrecognised boot bank location (1). Assuming bottom. number of CFI chips: 1 Searching for RedBoot partition table in physmap-flash.0 at offset 0x1fe0000 No RedBoot partition table detected in physmap-flash.0 mtd: Giving out device 0 to physmap-flash.0 mxc_nand_command (cmd = 0xff, col = 0xffffffff, page = 0xffffffff) send_cmd(host, 0xff, 0) mxc_nand_command (cmd = 0x90, col = 0x0, page = 0xffffffff) send_cmd(host, 0x90, 1) send_addr(host, 0x0 1) Setting NFC_CONFIG1:NFC_INT_MSK in the interrupt handler causes NFC_CONFIG2:NFC_INT to always read out 0 (on i.MX21), causing wait_event(host->irq_waitq, readw(host->regs + NFC_CONFIG2) & NFC_INT); to wait forever. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists