The Android init process is what sets up the devices and they are not always in the main /dev directory. It places those in /dev/block, so yes that is what you should use.
Cheers, Sean ebmajor wrote: > Oh! > > Should I use /dev/block/mtdblock2 instead of /dev/mtdblock2? > I can see the /dev/block/mtdblock2. > > On Feb 18, 5:49 pm, Sean McNeil <[email protected]> wrote: > >> Hi, >> >> Did you look in both /dev and /dev/block? >> >> ebmajor wrote: >> >>> Hi all, >>> >>> Here is my situation. >>> >>> Kernel command line: root=/dev/mtdblock2 rw rootfstype=jffs2 init=/ >>> init console=ttyS0,38400 mem=64M >>> >>> / # cat /proc/ >>> partitions >>> major minor #blocks >>> name >>> >>> 31 0 256 >>> mtdblock0 >>> 31 1 4096 >>> mtdblock1 >>> 31 2 28416 >>> mtdblock2 >>> 8 0 8192 >>> sda >>> / # ls /dev/ >>> mtd >>> mtd0 mtd0ro mtd1 mtd1ro mtd2 mtd2ro >>> >>> I can boot the Android kernel using mtdblock2 as root file system. >>> And there is the partition. >>> >>> But I can't see the mtdblock0,1,2 under the /dev directory. >>> What's wrong with me?? >>> >>> ======================================= >>> Here is my full booting log and the previous post message has >>> my .config file >>> ======================================= >>> Uncompressing >>> Linux............................................................. >>> Linux version 2.6.25 (r...@ubuntu) (gcc version 4.3.2 (Sourcery G++ >>> Lite 2008q39 >>> CPU: XScale-PXA270 [69054117] revision 7 (ARMv5TE), >>> cr=0000397f >>> Machine: Intel HCDDBBVA0 Development Platform (aka >>> Mainstone) >>> ATAG_INITRD is deprecated; please update your >>> bootloader. >>> Memory policy: ECC disabled, Data cache >>> writeback >>> Run Mode clock: 104.00MHz >>> (*8) >>> Turbo Mode clock: 416.00MHz (*4.0, >>> active) >>> Memory clock: 104.00MHz (/ >>> 1) >>> System bus clock: >>> 52.00MHz >>> CPU0: D VIVT undefined 5 >>> cache >>> CPU0: I cache: 32768 bytes, associativity 32, 32 byte lines, 32 >>> sets >>> CPU0: D cache: 32768 bytes, associativity 32, 32 byte lines, 32 >>> sets >>> Built 1 zonelists in Zone order, mobility grouping on. Total pages: >>> 16256 >>> Kernel command line: root=/dev/mtdblock2 rw rootfstype=jffs2 init=/ >>> init consoleM >>> PID hash table entries: 256 (order: 8, 1024 >>> bytes) >>> Console: colour dummy device >>> 80x30 >>> 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: 61184KB available (3172K code, 452K data, 100K >>> init) >>> Mount-cache hash table entries: >>> 512 >>> CPU: Testing write buffer coherency: >>> ok >>> net_namespace: 152 >>> bytes >>> NET: Registered protocol family >>> 16 >>> Mainstone configured to boot from processor- >>> flash >>> SCSI subsystem >>> initialized >>> usbcore: registered new interface driver >>> usbfs >>> usbcore: registered new interface driver >>> hub >>> usbcore: registered new device driver >>> usb >>> 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 >>> NetWinder Floating Point Emulator V0.97 (double >>> precision) >>> ashmem: >>> initialized >>> JFFS2 version 2.2. (NAND) 2001-2006 Red Hat, >>> Inc. >>> yaffs Feb 18 2009 15:48:48 >>> Installing. >>> Block layer SCSI generic (bsg) driver version 0.4 loaded (major >>> 254) >>> io scheduler noop >>> registered >>> io scheduler anticipatory >>> registered >>> io scheduler deadline >>> registered >>> io scheduler cfq registered >>> (default) >>> Console: switching to colour frame buffer device >>> 30x40 >>> pxa2xx-uart.0: ttyS0 at MMIO 0x40100000 (irq = 22) is a >>> FFUART >>> console [ttyS0] >>> enabled >>> pxa2xx-uart.1: ttyS1 at MMIO 0x40200000 (irq = 21) is a >>> BTUART >>> pxa2xx-uart.2: ttyS2 at MMIO 0x40700000 (irq = 20) is a >>> STUART >>> loop: module >>> loaded >>> Invalid chip endian >>> 0x087f68 >>> pxa_free_dma: trying to free channel 0 which is already >>> freed >>> pxa_free_dma: trying to free channel 0 which is already >>> freed >>> smc911x: not found >>> (-19). >>> dm9000 Ethernet Driver, >>> V1.30 >>> Uniform Multi-Platform E-IDE >>> driver >>> ide: Assuming 50MHz system bus speed for PIO modes; override with >>> idebus=xx >>> osst :I: Tape driver with OnStream support version >>> 0.99.4 >>> osst :I: $Id: osst.c,v 1.73 2005/01/01 21:13:34 wriede Exp >>> $ >>> Driver 'osst' needs updating - please use bus_type >>> methods >>> Driver 'sd' needs updating - please use bus_type >>> methods >>> scsi0 : scsi_debug, version 1.81 [20070104], dev_size_mb=8, >>> opts=0x0 >>> scsi 0:0:0:0: Direct-Access Linux scsi_debug 0004 PQ: 0 >>> ANSI: 5 >>> Probing processor-flash at physical address 0x00000000 (32-bit >>> bankwidth) >>> processor-flash: Found 2 x16 devices at 0x0 in 32-bit >>> bank >>> Intel/Sharp Extended Query Table at >>> 0x0031 >>> Using buffer write >>> method >>> cfi_cmdset_0001: Erase suspend on write >>> enabled >>> RedBoot partition parsing not >>> available >>> Creating 3 MTD partitions on "processor- >>> flash": >>> 0x00000000-0x00040000 : >>> "Bootloader" >>> mtd: Giving out device 0 to >>> Bootloader >>> sd 0:0:0:0: [sda] 16384 512-byte hardware sectors (8 >>> MB) >>> sd 0:0:0:0: [sda] Write Protect is >>> off >>> 0x00040000-0x00440000 : >>> "Kernel" >>> mtd: Giving out device 1 to >>> Kernel >>> 0x00440000-0x02000000 : >>> "Filesystem" >>> mtd: Giving out device 2 to >>> Filesystem >>> sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, supports >>> DPO and FA >>> Probing mainboard-flash at physical address 0x04000000 (32-bit >>> bankwidth) >>> pxa2xx-flash: probe of pxa2xx-flash.1 failed with error >>> -5 >>> sd 0:0:0:0: [sda] 16384 512-byte hardware sectors (8 >>> MB) >>> block2mtd: version $Revision: 1.30 >>> $ >>> sd 0:0:0:0: [sda] Write Protect is >>> off >>> pxa27x-ohci pxa27x-ohci: new USB bus registered, assigned bus number >>> 1 >>> pxa27x-ohci pxa27x-ohci: irq 3, io mem >>> 0x4c000000 >>> sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, supports >>> DPO and FA >>> sda: unknown partition >>> table >>> sd 0:0:0:0: [sda] Attached SCSI >>> disk >>> sd 0:0:0:0: Attached scsi generic sg0 type >>> 0 >>> usb usb1: configuration #1 chosen from 1 >>> choice >>> hub 1-0:1.0: USB hub >>> found >>> hub 1-0:1.0: 3 ports >>> detected >>> usb usb1: New USB device found, idVendor=1d6b, >>> idProduct=0001 >>> usb usb1: New USB device strings: Mfr=3, Product=2, >>> SerialNumber=1 >>> usb usb1: Product: PXA27x >>> OHCI >>> usb usb1: Manufacturer: Linux 2.6.25 >>> ohci_hcd >>> usb usb1: SerialNumber: >>> pxa27x >>> drivers/usb/host/r8a66597-hcd.c: driver r8a66597_hcd, 29 May >>> 2007 >>> Initializing USB Mass Storage >>> driver... >>> usb 1-1: new full speed USB device using pxa27x-ohci and address >>> 2 >>> usb 1-1: configuration #1 chosen from 1 >>> choice >>> hub 1-1:1.0: USB hub >>> found >>> hub 1-1:1.0: 4 ports >>> detected >>> usb 1-1: New USB device found, idVendor=058f, >>> idProduct=9254 >>> usb 1-1: New USB device strings: Mfr=1, Product=2, >>> SerialNumber=0 >>> usb 1-1: Product: Generic USB >>> Hub >>> usb 1-1: Manufacturer: >>> ALCOR >>> usbcore: registered new interface driver usb- >>> storage >>> USB Mass Storage support >>> registered. >>> mice: PS/2 mouse device common for all >>> mice >>> usbcore: registered new interface driver >>> usbhid >>> drivers/hid/usbhid/hid-core.c: v2.6:USB HID core >>> driver >>> logger: created 64K log >>> 'log_main' >>> logger: created 64K log >>> 'log_events' >>> logger: created 64K log >>> 'log_radio' >>> TCP cubic >>> registered >>> NET: Registered protocol family >>> 1 >>> RPC: Registered udp transport >>> module. >>> RPC: Registered tcp transport >>> module. >>> XScale iWMMXt coprocessor >>> detected. >>> VFS: Mounted root (jffs2 >>> filesystem). >>> Freeing init memory: >>> 100K >>> >>> BusyBox v1.00 (2004.12.10-09:11+0000) Built-in shell >>> (ash) >>> Enter 'help' for a list of built-in >>> commands. >>> >>> / # cat /proc/ >>> partitions >>> major minor #blocks >>> name >>> >>> 31 0 256 >>> mtdblock0 >>> 31 1 4096 >>> mtdblock1 >>> 31 2 28416 >>> mtdblock2 >>> 8 0 8192 >>> sda >>> / # ls /dev/ >>> mtd >>> mtd0 mtd0ro mtd1 mtd1ro mtd2 mtd2ro >>> > > > --~--~---------~--~----~------------~-------~--~----~ unsubscribe: [email protected] website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---
