Ben ,<br>Further to my previous mail I have another problem with my busybox initrd/RAMDISK system -my ext2 root file system is mounted as root && Read only .as a result my mknod etc commands always returns ERROR -- root mounted as read only ?
<br><br>Any pointers for the same ? to make my RAMDISK read/writable ? so that i can check by your method ?<br><br>Thanks ,<br>Arun<br><br><br><div><span class="gmail_quote">On 7/24/06, <b class="gmail_sendername">Arun Kumar
</b> <<a href="mailto:arunkat@gmail.com">arunkat@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>Hi Ben ,
<br><br>Thanks for your reply .It was indeed very comrehensive .I am able to proceed further But still there is a bit problem .<br><br>When I try to mknod physically viz mknod /dev/mtd0 .....<br><br>It says the node is readonly .
<br><br>Can you please point out the problem . I am attaching a dump of the console .<br><br><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
Linux/PPC load:</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">Uncompressing Linux...done.
</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">Now booting the kernel ....
</span>
<br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">Memory BAT mapping: BAT2=64Mb, BAT3=0Mb, residual: 0Mb
</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">Linux version 2.4.20_mvl31 (
aks@IIB-A1040829) (gcc version 3.3.1 (MontaVista 3.3</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
.1-3.0.10.0300532 2003-12-24)) #368 Mon Jul 24 13:02:13 IST 2006</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
DBAT0U = 0x800001fe</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">DBAT0L = 0x8000002a
</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">DBAT1U = 0xf0001ffe</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
<span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">DBAT1L = 0xf000002a</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
DBAT2U = 0xc00007fe</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">DBAT2L = 0x00000002
</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">DBAT3U = 0xff8001fe</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
<span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">DBAT3L = 0xff80002a</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
ET4K Montavista Linux Test Platform</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
Port by Agere Systems</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">On node 0 totalpages: 16384
</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">zone(0): 16384 pages.</span>
<br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">zone(1): 0 pages.</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
<span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">zone(2): 0 pages.</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
Kernel command line:</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">OpenPIC Version
1.2 (1 CPUs and 14 IRQ sources) at fcf40000</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
Calibrating delay loop... 884.73 BogoMIPS</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
Memory: 62084k available (1000k kernel code, 356k data, 76k init, 0k highmem)</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
Dentry cache hash table entries: 8192 (order: 4, 65536 bytes)</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
Inode cache hash table entries: 4096 (order: 3, 32768 bytes)</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
Mount-cache hash table entries: 1024 (order: 1, 8192 bytes)</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
Buffer-cache hash table entries: 4096 (order: 2, 16384 bytes)</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
Page-cache hash table entries: 16384 (order: 4, 65536 bytes)</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
POSIX conformance testing by UNIFIX</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
PCI: Probing PCI hardware</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">Scanning bus 00
</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">Found 00:00 [1057/0006] 000600 00
</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">PCI:00:00.0 Resource 0 [00000000-ffffffff] is unassigned
</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">PCI:00:00.0 Resource 1 [00000000-00000fff] is unassigned
</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">PCI:00:00.0 Resource 2 [00000000-ffffffff] is unassigned
</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">Found 00:78 [8086/1013] 000200 00
</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">PCI:00:0f.0 Resource 6 [00000000-0000ffff] is unassigned
</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">Found 00:f0 [0700/1107] 000600 00
</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">Fixups for bus 00</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
<span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">Bus scan for 00 returning with max=00</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
<span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">PCI: bridge rsrc fc000000..fcc00000 (100), parent c011ddd4</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
<span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">PCI: bridge rsrc 80000000..fe000000 (200), parent c011ddf0</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
<span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">PCI:00:0f.0: Resource 0: fdfe0000-fdffffff (f=204)</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
<span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">PCI:00:0f.0: Resource 2: fdfd0000-fdfdffff (f=204)</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
<span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">PCI:00:0f.0: Resource 4: fcbfffc0-fcbfffff (f=101)</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
<span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">PCI:00:1e.0: Resource 0: fc000000-fcffffff (f=120c)</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
<span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">PCI:00:1e.0: Resource 2: fcbffe00-fcbffeff (f=101)</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
<span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">Linux NET4.0 for Linux 2.4</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
Based upon Swansea University Computer Society NET3.039</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
Initializing RT netlink socket</span></div><div><span class="e" id="q_10c9fa2ce2fa3827_1"><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
LSP Revision 1</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">Starting kswapd
</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">Disabling the Out Of Memory Killer
</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">JFFS2 version 2.1. (C) 2001, 2002 Red Hat, Inc., designed by Axis Communications
</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"> AB.</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
<span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI en</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
<span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">abled</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
ttyS00 at 0xfcf04500 (irq = 13) is a ST16650</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
<span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"> AMD_FLASH_INIT called *aks *</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
<span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">physmap flash device: 800000 at ff800000 virtual address Number of erase regions</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
<span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">: 4</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
Primary Vendor Command Set: 0002 (AMD/Fujitsu Standard)</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
Primary Algorithm Table at 0040</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
Alternative Vendor Command Set: 0000 (None)</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
No Alternate Algorithm Table</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
Vcc Minimum: 2.7 V</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">Vcc Maximum:
3.6 V</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">No Vpp line</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
<span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">Typical byte/word write timeout: 128 µs</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
<span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">Maximum byte/word write timeout: 256 µs</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
<span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">Full buffer write not supported</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
<span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">Typical block erase timeout: 1024 ms</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
<span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">Maximum block erase timeout: 16384 ms</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
<span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">Chip erase not supported</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
Device size: 0x200000 bytes (2 MiB)</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
Flash Device Interface description: 0x0002</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
- supports x8 and x16 via BYTE# with asynchronous interface</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
Max. bytes in buffer write: 0x1</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
Number of Erase Block Regions: 4</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
Erase Region #0: BlockSize 0x4000 bytes, 1 blocks</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
Erase Region #1: BlockSize 0x2000 bytes, 2 blocks</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
Erase Region #2: BlockSize 0x8000 bytes, 1 blocks</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
Erase Region #3: BlockSize 0x10000 bytes, 31 blocks</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
Amd/Fujitsu Extended Query Table v1.3 at 0x0040</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
number of CFI chips: 4</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"></span>
</div><div><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
in amdstd_setup 0: offset=0x0,size=0x10000,blocks=1</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
1: offset=0x10000,size=0x8000,blocks=2</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
2: offset=0x20000,size=0x20000,blocks=1</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
3: offset=0x40000,size=0x40000,blocks=31</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
4: offset=0x800000,size=0x10000,blocks=1</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
5: offset=0x810000,size=0x8000,blocks=2</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
6: offset=0x820000,size=0x20000,blocks=1</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
7: offset=0x840000,size=0x40000,blocks=31</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
8: offset=0x1000000,size=0x10000,blocks=1</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
9: offset=0x1010000,size=0x8000,blocks=2</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
10: offset=0x1020000,size=0x20000,blocks=1</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
11: offset=0x1040000,size=0x40000,blocks=31</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
12: offset=0x1800000,size=0x10000,blocks=1</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
13: offset=0x1810000,size=0x8000,blocks=2</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
14: offset=0x1820000,size=0x20000,blocks=1</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
15: offset=0x1840000,size=0x40000,blocks=31</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
cfi_cmdset_0002: Disabling fast programming due to code brokenness. aks Enabling</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
*</span></div><div><span class="q"><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
in MTD Partitioning <5>No RedBoot partition table detected in phys_mapped_flash</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
</span></div><div><span class="q">
<span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">Using physmap partition definition</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
<span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">Creating 3 MTD partitions on "phys_mapped_flash":</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
</span></div><div>
<span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">0x00000000-0x00040000 : "agere-ets0"</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
<span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">mtd: Giving out device 0 to agere-ets0</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
<span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">0x00040000-0x00080000 : "agere-ets1"</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
<span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">mtd: Giving out device 1 to agere-ets1</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
<span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">0x00080000-0x0007fffe : "agere-ets2"</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
<span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">mtd: partition "agere-ets2" doesn't end on an erase block -- force read-only</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
<span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">mtd: Giving out device 2 to agere-ets2</span></div><div><span class="q"><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
<span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">NET4: Linux TCP/IP 1.0 for NET4.0</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
<span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">IP Protocols: ICMP, UDP, TCP, IGMP</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
<span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">IP: routing cache hash table of 512 buckets, 4Kbytes</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
<span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">TCP: Hash tables configured (established 4096 bind 8192)</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
<span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">IP-Config: No network devices available.</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
<span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
<span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">/dev/console mapped to mkdev 5: minor: 1</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
<span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">RAMDISK: Compressed image found at block 0</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
<span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">Freeing initrd memory: 1247k freed</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
<span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">VFS: Mounted root (ext2 filesystem) readonly.</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
<span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">Freeing unused kernel memory: 76k init</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
<span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">calling sbin/init</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
init started: BusyBox v1.2.0 (2006.07.12-05:25+0000) multi-call binary</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
init started: BusyBox v1.2.0 (2006.07.12-05:25+0000) multi-call binary</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
Starting pid 8, console /dev/ttyS0: '/bin/ash'</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
<br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"></span></div><div><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">BusyBox v1.2.0 (
2006.07.12-05:25+0000) Built-in shell (ash)
</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">Enter 'help' for a list of built-in commands.
</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
/ $ mknod /dev/mtd0 c 90 0</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">mknod: /dev/mtd0: Read-only file system
</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);"><span style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">/ $</span><br style="font-style: italic; font-family: times new roman,serif; color: rgb(51, 0, 153);">
<br><br>also can you point out why it is trying to disable the fast programming ?<br><br><br>Thanks,<br>Arun</div><div><span class="e" id="q_10c9fa2ce2fa3827_8"><br><br><br><div><span class="gmail_quote">On 7/21/06, <b class="gmail_sendername">
Ben Warren</b> <<a href="mailto:bwarren@qstreams.com" title="mailto:bwarren@qstreams.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
bwarren@qstreams.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Arun,<br><br>On Fri, 2006-07-21 at 20:26 +0530, Arun Kumar wrote:
<br>> Hi ,<br>> Can anyone help me in this naive problem ?<br>><br>Then a naive answer is most fitting... Turns out that's my specialty.<br><br>> #<br>> # Memory Technology Devices (MTD)<br>> #<br>> CONFIG_MTD=y
<br>> CONFIG_MTD_DEBUG=y<br>> CONFIG_MTD_DEBUG_VERBOSE=2<br>> CONFIG_MTD_PARTITIONS=y<br>> CONFIG_MTD_CONCAT=y<br>> CONFIG_MTD_REDBOOT_PARTS=y<br>> CONFIG_MTD_CMDLINE_PARTS=y<br>Probably get rid of REDBOOT if you're not using that bootloader
<br>><br>> #<br>> # User Modules And Translation Layers<br>> #<br>> # CONFIG_MTD_CHAR is not set<br>> # CONFIG_MTD_BLOCK is not set<br>> # CONFIG_MTD_BLOCK_RO is not set<br>> # CONFIG_FTL is not set
<br>> # CONFIG_NFTL is not set<br>> # CONFIG_INFTL is not set<br>><br>You need to enable MTD_CHAR to read/write and MTD_BLOCK to mount<br><br>> Can any happy soul let me know :--<br>><br>> 1)How to mount jffs2 on this flash and also to test mtd->read/write
<br>> routines ?<br>Start with the char drivers (/dev/mtd0 etc.). You'll need one for each<br>partition you want to experiment with.<br>How about creating the nodes manually?<br><br>mknod /dev/mtd0 c 90 0<br>mknod /dev/mtd1 c 90 2 etc. (minor # increments in 2s)
<br><br>Add a block device for each partition:<br><br>mknod /dev/mtdblock0 b 31 0<br>mknod /dev/mtdblock1 b 31 1 etc.<br><br>Once you clean up #3 below, you should be able to read/write the char<br>devices using commands like 'cat', or write a simple user-space app
<br>using "open, read, write", etc if you'd rather look at the actual binary<br>data.<br><br>You can then experiment with mounting the JFFS2. I recommend booting to<br>an NFS file system then mounting the JFFS2 with something like:
<br><br>mount -t jffs2 /dev/mtdblock5 /mnt/temp (Use the correct partition)<br><br>><br>> 2) Is it ok not to see mtd0.. partions in /dev directory .<br>Pretty sure you'll need these<br>><br>> 3 ) Where do I register the mtd partitions to get them noticed
<br>> here ??<br>Looks like your partitions are already being found, but are probably not<br>set up right. I don't know if this is a static definition in your board<br>init code or passed by command line from the bootloader, but it looks
<br>like the values don't line up with your device:<br><br>*********<br>Using physmap partition definition<br>Creating 3 MTD partitions on "phys_mapped_flash":<br>0x00000000-0x00040000 : "foo-ets0"<br>
mtd: Giving out device 0 to foo-ets0<br>0x00040000-0x001e0000 : "foo-ets1"<br>mtd: partition "agere-ets1" doesn't end on an erase block -- force<br>read-only<br>mtd: Giving out device 1 to foo-ets1<br>
0x001e0000-0x00200000 : "foo-ets2"<br>mtd: partition "foo-ets2" doesn't start on an erase block boundary --<br>force read-only<br>*********<br>--------------------------------------------------------------------------
<br>Hopefully this helps you proceed a little bit.<br><br>regards,<br>Ben<br><br></blockquote></div><br><br clear="all"><br></span></div><div><span class="sg">-- <br>Arun Kumar Singh<br>Tech Lead.<br>Agere India <br>Bangalore
</span></div></blockquote></div><br><br clear="all"><br>-- <br>Arun Kumar Singh<br>Tech Lead.<br>Agere India <br>Bangalore