Hi all, I am working in idt 79eb438 board(mips 4000 core), Os is linux(mips kernel), the board have a 4M flash, i want to use two partitions as fellow: const struct cstm_mips_ixx_info cstm_mips_ixx_board_desc[PHYSMAP_NUMBER] = { { "MTD flash", // name 0x11000000, //CONFIG_MTD_CSTM_MIPS_IXX_START, // window_addr 0x400000, //CONFIG_MTD_CSTM_MIPS_IXX_LEN, // window_size 2, //CONFIG_MTD_CSTM_MIPS_IXX_BUSWIDTH, // buswidth 2 // num_partitions }, }; static struct mtd_partition cstm_mips_ixx_partitions[PHYSMAP_NUMBER][MAX_PHYSMAP_PARTITIONS] = { { { name: "main partition", size: 0x200000,//CONFIG_MTD_CSTM_MIPS_IXX_LEN, offset: 0, }, { name: "cramfs partition" , size: 0x200000 , offset: 0x200000 , }, }, }; but the system have some erros! --------------------- start -------------------- Please Wait. Scanning Memory ... 63 MB free memory WARNING: en0: $ethaddr0 is not set, using default 08:00:06:05:70:ff WARNING: en1: $ethaddr1 is not set, using default 08:00:06:05:75:ff WARNING: Network interface en1 unusable until $netaddr1 is set IDT System Integration Manager Ver. 11.1 January 2003 Copyright 1994-2002 Integrated Device Technology, Inc. RC32438 CPU, 32-bit, Little Endian, MIPS-II, Write-Through, no write allocate ce Console: 9600 baud Used for Ethernet Storage: 0xA3800000 - 0xA3FFFFFF Instruction Cache: 16 KB, Data Cache: 16 KB Memory Configuration: SDRAM only. Primary User Memory: 0xA008C1A8 to 0xA37FFFFF. Size: 56783 KB CAUTION: "C" time functions such as clock() depend on the frequency of the crystal in socket Y3. Please compare against wall-clock to obtain a scaling factor if needed! For HELP enter '?' Press any key To Enter IDT/sim 1 Serial console port initialized CPU revision is: 00018009 Primary instruction cache 16kb, linesize 16 bytes (4 ways) Primary data cache 16kb, linesize 16 bytes (4 ways) Linux version 2.4.18-mips (root@zhengjie) (gcc version 2.95.4 20010319 (prerele4 PCI: Initializing PCI Determined physical RAM map: memory: 04000000 @ 00000000 (usable) On node 0 totalpages: 16384 zone(0): 16384 pages. zone(1): 0 pages. zone(2): 0 pages. Kernel command line: root=/dev/mtdblock1 rootfstype=cramfs init=linuxrc Initializing IRQ's: 168 out of 256 calculating r4koff... 000f4240(1000000) CPU frequency 200.00 MHz Calibrating delay loop... 199.88 BogoMIPS Memory: 60968k/65536k available (1128k kernel code, 4568k reserved, 156k data, ) Dentry-cache hash table entries: 8192 (order: 4, 65536 bytes) Inode-cache hash table entries: 4096 (order: 3, 32768 bytes) Mount-cache hash table entries: 1024 (order: 1, 8192 bytes) Buffer-cache hash table entries: 4096 (order: 2, 16384 bytes) Page-cache hash table entries: 16384 (order: 4, 65536 bytes) Checking for 'wait' instruction... unavailable. POSIX conformance testing by UNIFIX Autoconfig PCI channel 0x803579ac Scanning bus 00, I/O 0x18800000:0x18900000, Mem 0x50000000:0x60000000 Linux NET4.0 for Linux 2.4 Based upon Swansea University Computer Society NET3.039 Initializing RT netlink socket Starting kswapd AttyS00 at 0xb8050000x (irq = 104) is a 16550AMANY_PORTS SHARE_IRQ SERIAL_PCI ed block: 128 slots per queue, batch=32 eth0: RC32438 ethernet0 found at 0x18058000 eth0: HW Address 08:00:06:05:40:01 eth0: Rx IRQ 42, Tx IRQ 43 eth1: RC32438 ethernet1 found at 0x18060000 eth1: HW Address 08:00:06:05:50:01 eth1: Rx IRQ 44, Tx IRQ 45 cstm_mips_ixx flash device: 400000 at 11000000 Amd/Fujitsu Extended Query Table v1.2 at 0x0040 MTD flash: Swapping erase regions for broken CFI table. number of CFI chips: 1 Creating 2 MTD partitions on "MTD flash": 0x00000000-0x00200000 : "main partition" 0x00200000-0x00400000 : "cramfs partition" NET4: Linux TCP/IP 1.0 for NET4.0 IP Protocols: ICMP, UDP, TCP IP: routing cache hash table of 512 buckets, 4Kbytes TCP: Hash tables configured (established 4096 bind 4096) ip_conntrack (512 buckets, 4096 max) ip_tables: (C) 2000-2002 Netfilter core team NET4: Unix domain sockets 1.0/SMP for Linux NET4.0. NET4: Ethernet Bridge 008 for NET4.0 cramfs: wrong magic Kernel panic: VFS: Unable to mount root fs on 1f:01 -------------------- end ------------------------------ my .config and root setting is in appendage! Best regard&&Thanks. zhengjie caolingzi@netease.com 2004-03-19
Attachment:
.config
Description: Binary data