Hi Viral, Thanks for the response. I tried to recreate the ramdisk - its altogether crashing now even before the login prompt. I have localized the problem. Its only the way the ramdisk is created. When I tried to mount it using mount -o loop ./<ramdisk.gz> <mountpoint> it got mounted but only that its not readable. . Now I think just that I have to redo the entire process. About the disclaimer, Im fighting hard with our IT support guys to get it removed for the mails sent to the community :-). Kindly bear with me till I solve it. Cheers, Deepak Here is the log however for the bad ramdisk created. NAND read: device 0 offset 0xc00000, size 0x300000 3145728 bytes read: OK
Loading from NAND 1GiB 3,3V 8-bit, offset 0x400000 Image Name: Linux-2.6.10_mvl401 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 1578796 Bytes = 1.5 MB Load Address: 80008000 Entry Point: 80008000 ## Booting image at 80700000 ... Image Name: Linux-2.6.10_mvl401 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 1578796 Bytes = 1.5 MB Load Address: 80008000 Entry Point: 80008000 Verifying Checksum ... OK OK Starting kernel ... Uncompressing Linux................................................................... .......................................Linux version 2.6.10_mvl401 ([EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> ) (gcc version 3.4.3 (MontaVista 3.4.3-25.0.104.0600975 2006-07-06)) #16 Wed Oct 8 21:15:35 IST 2008 CPU: ARM926EJ-Sid(wb) [41069265] revision 5 (ARMv5TEJ) CPU0: D VIVT write-back cache CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets CPU0: D cache: 8192 bytes, associativity 4, 32 byte lines, 64 sets Machine: DaVinci DM355 EVM Memory policy: ECC disabled, Data cache writeback DM0350 *************My patch patched.*************** Built 1 zonelists Kernel command line: mem=116M console=ttyS0,115200n8 root=/dev/ram0 rw initrd=0x82000000,32M ip=off video=davincifb:vid0=720x576x16,2500K:vid1=720x576x16,2500K:osd0=720x576 x16,2025K davinci_enc_mngr.ch0_output=COMPOSITE davinci_enc_mngr.ch0_mode=pal PID hash table entries: 512 (order: 9, 8192 bytes) Console: colour dummy device 80x30 Dentry cache hash table entries: 16384 (order: 4, 65536 bytes) Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) Memory: 116MB = 116MB total Memory: 81408KB available (2748K code, 570K data, 180K init) Mount-cache hash table entries: 512 (order: 0, 4096 bytes) CPU: Testing write buffer coherency: ok spawn_desched_task(00000000) desched cpu_callback 3/00000000 ksoftirqd started up. desched cpu_callback 2/00000000 checking if image is initramfs...it isn't (bad gzip magic numbers); looks like an initrd desched thread 0 started up. Freeing initrd memory: 32768K NET: Registered protocol family 16 DaVinci: 104 gpio irqs Registering platform device 'serial8250.0'. Parent at platform Registering platform device 'musb_hdrc'. Parent at platform Registering platform device 'nand_davinci.0'. Parent at platform Registering platform device 'dm9000.0'. Parent at platform Registering platform device 'mmc.0'. Parent at platform Registering platform device 'mmc.1'. Parent at platform DaVinci I2C DEBUG: 19:44:56 Oct 8 2008 Registering platform device 'i2c'. Parent at platform ch0 default output "COMPOSITE", mode "PAL" VPBE Encoder Initialized LogicPD encoder initialized SCSI subsystem initialized usbcore: registered new driver usbfs usbcore: registered new driver hub musb_hdrc: version 2.2a/db-0.4.8 [cppi-dma] [host] [debug=0] musb_hdrc: ConfigData=0x06 (UTMI-8, dyn FIFOs, SoftConn) musb_hdrc: MHDRC RTL version 1.300 musb_hdrc: USB Host mode controller at c7802000 using DMA, IRQ 12 musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 1 hub 1-0:1.0: USB hub found hub 1-0:1.0: 1 port detected DaVinci I2C WARNING: i2c: NACK detected DaVinci I2C WARNING: i2c: NACK detected DaVinci I2C WARNING: i2c: NACK detected DaVinci I2C WARNING: i2c: NACK detected DaVinci I2C WARNING: i2c: NACK detected Registering platform device 'dm_spi.0'. Parent at platform NetWinder Floating Point Emulator V0.97 (double precision) JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc. yaffs Oct 8 2008 19:44:30 Installing. Initializing Cryptographic API Registering platform device 'davincifb.0'. Parent at platform davincifb davincifb.0: dm_osd0_fb: [EMAIL PROTECTED],0 <mailto:[EMAIL PROTECTED],0> with framebuffer size 2025KB davincifb davincifb.0: dm_vid0_fb: [EMAIL PROTECTED],0 <mailto:[EMAIL PROTECTED],0> with framebuffer size 2500KB davincifb davincifb.0: dm_osd1_fb: [EMAIL PROTECTED],0 <mailto:[EMAIL PROTECTED],0> with framebuffer size 1620KB davincifb davincifb.0: dm_vid1_fb: [EMAIL PROTECTED],0 <mailto:[EMAIL PROTECTED],0> with framebuffer size 2500KB watchdog: TI DaVinci Watchdog Timer: timer margin 64 sec Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled Registering platform device 'serial8250'. Parent at platform ttyS0 at MMIO 0x1c20000 (irq = 40) is a 16550A ttyS1 at MMIO 0x1c20400 (irq = 41) is a 16550A ttyS2 at MMIO 0x1e06000 (irq = 14) is a 16550A io scheduler noop registered io scheduler anticipatory registered RAMDISK driver initialized: 1 RAM disks of 32768K size 1024 blocksize loop: loaded (max 8 devices) dm9000 Ethernet Driver eth0: dm9000 at c7862000,c7864002 IRQ 45 MAC: 00:0e:99:02:c5:70 i2c /dev entries driver Linux video capture interface: v1.00 Registering platform device 'vpfe.1'. Parent at platform vpfe vpfe.1: DaVinci v4l2 capture driver V1.0 loaded Registering platform device 'DavinciDisplay.1'. Parent at platform Trying to register davinci display video device. layer=c53dbc00,layer->video_dev=c53dbd64 Trying to register davinci display video device. layer=c53dba00,layer->video_dev=c53dbb64 davinci_init:DaVinci V4L2 Display Driver V1.0 loaded ipipe major#: 254, minor# 0 Registering platform device 'dm355_ipipe.2'. Parent at platform ipipe driver registered af major#: 253, minor# 0 Registering platform device 'dm355_af.2'. Parent at platform aew major#: 252, minor# 0 Registering platform device 'dm355_aew.2'. Parent at platform elevator: using anticipatory as default io scheduler nand_davinci nand_davinci.0: Using 4-bit hardware ECC NAND device: Manufacturer ID: 0x2c, Chip ID: 0xd3 (Micron NAND 1GiB 3,3V 8-bit) 2 NAND chips detected nand_bbt: ECC error while reading bad block table nand_bbt: ECC error while reading bad block table Creating 5 MTD partitions on "nand_davinci.0": 0x00000000-0x003c0000 : "bootloader" 0x003c0000-0x00400000 : "params" 0x00400000-0x00800000 : "kernel" 0x00800000-0x20800000 : "filesystem1" 0x20800000-0x80000000 : "filesystem2" nand_davinci nand_davinci.0: hardware revision: 2.3 dm_spi.0: davinci SPI Controller driver at 0xc7866000 (irq = 42) use_dma=0 Initializing USB Mass Storage driver... usbcore: registered new driver usb-storage USB Mass Storage support registered. usbcore: registered new driver usbhid drivers/usb/input/hid-core.c: v2.0:USB HID core driver mice: PS/2 mouse device common for all mice mmc mmc.0: Supporting 4-bit mode mmc mmc.0: Using DMA mode mmc mmc.1: Supporting 4-bit mode mmc mmc.1: Using DMA mode Registering platform device 'davinci-audio.0'. Parent at platform NET: Registered protocol family 2 IP: routing cache hash table of 512 buckets, 4Kbytes TCP: Hash tables configured (established 8192 bind 16384) Initializing XFRM netlink socket NET: Registered protocol family 1 NET: Registered protocol family 10 IPv6 over IPv4 tunneling driver NET: Registered protocol family 17 RAMDISK: Couldn't find valid RAM disk image starting at 0. yaffs: dev is 1048576 name is "ram0" yaffs: Attempting MTD mount on 1.0, "ram0" yaffs: dev is 1048576 name is "ram0" yaffs: Attempting MTD mount on 1.0, "ram0" Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0) ________________________________ From: Viral Sachde [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 07, 2008 11:33 AM To: Deepak Shankar-TLS,Chennai. Cc: [email protected] Subject: Re: Automatic Process spawning before login in dm355 with ramdisk 2008/10/2 Deepak Shankar-TLS,Chennai. <[EMAIL PROTECTED]> Hi, I've created a ramdisk for the applications that I created in the NFS mounts. As long as I have a terminal, I can login and execute the program. However, I'm trying to start the processes automatically from something like a startup script. example: running encodedecode demo automatically as the system starts up. The problem is its working well in the NFS mounts. But does not work in the ramdisk. the cnmemory pools are not loadable at this stage. Could someone please tell me what am I missing. Please suggest on any other alternative methods to invoke scripts automatically before logging in. This is how the /etc/init.d/rcS appears in my rootfs - (Last 2 lines added by me) ######################################################################## #####################3 #! /bin/sh # # rcS Call all S??* scripts in /etc/rcS.d in # numerical/alphabetical order. # # Version: @(#)/etc/init.d/rcS 2.76 19-Apr-1999 miquels_at_cistron_dot_nl <mailto:[EMAIL PROTECTED]> # PATH=/sbin:/bin:/usr/sbin:/usr/bin runlevel=S prevlevel=N umask 022 export PATH runlevel prevlevel # # See if system needs to be setup. This is ONLY meant to # be used for the initial setup after a fresh installation! # if [ -x /sbin/unconfigured.sh ] then /sbin/unconfigured.sh fi # # Source defaults. # . /etc/default/rcS export VERBOSE # # Trap CTRL-C &c only in this shell so we can interrupt subprocesses. # trap ":" INT QUIT TSTP # # Call all parts in order. # for i in /etc/rc.d/rcS.d/S??* do # Ignore dangling symlinks for now. [ ! -f "$i" ] && continue case "$i" in *.sh) # Source shell script for speed. ( trap - INT QUIT TSTP set start . $i ) ;; *) # No sh extension, so fork subprocess. $i start ;; esac done # Run /etc/rc.d/rc.local if it exists [ -x /etc/rc.d/rc.local ] && /etc/rc.d/rc.local # # Finish setup if needed. The comment above about # /sbin/unconfigured.sh applies here as well! # if [ -x /sbin/setup.sh ] then /sbin/setup.sh fi /opt/dvsdk/dm355/loadmodules.sh /opt/dvsdk/dm355/encodedecode -p& ######################################################################## #####################3 Cheers, Deepak Can you provide console output after kernel boot up (around ip initialization onwards) till login line. That will help in understanding. This is open mailing list ... do not put following disclaimer : DISCLAIMER: ------------------------------------------------------------------------ ----------------------------------------------- The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any mail and attachments please check them for viruses and defect. ------------------------------------------------------------------------ ----------------------------------------------- _______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
_______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
