'msh' on 'ltib-cf_nommu-20081215' can not execute 'rcS' ( neither any other script )

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

'msh' on 'ltib-cf_nommu-20081215' can not execute 'rcS' ( neither any other script )

3,291 Views
osanz
Contributor I

Hi,

 

This is a problem on custom board based on LOGICPD 5373EVB, with ltib-cf_nommu-20081215

BSP.

 

The 'msh' shell can not execute the rcS script ( neither any other script ). As soon as the booting proces

arrives to  'inittab' line "::sysinit:/etc/rc.d/rcS" it hangs up maybe up to 30 minutes, and finally prints 

on console:

 

$ ./rcS start
out of string space
$

 

What does mean 'out of string space' ???

 

 But system is not set.

 

I have achieved to initialize the whole system by adding all need setups on inittab as:

 

console::sysinit:/bin/mount -n -t proc proc /proc
console::sysinit:/bin/mount -n -t sysfs sys /sys
console::sysinit:/sbin/ifconfig eth0 102.128........
console::sysinit:/bin/mount -a

 

instead of calling the rcS....

 

But i need to execute scripts on my application!!!

Labels (1)
0 Kudos
7 Replies

953 Views
Elias
Contributor I

Yes, I found the same problem these days, the kernel hangs about 30 minutes to complain

 

"input line is too long" and

"/proc/sys/vm/min_free_kbytes: cannot create

/proc/sys/vm/vfs_cache_pressure: cannot create"

 

but only when i use dBug(4d.1a.1e), if i use u-boot, the kernel just boot OK!

0 Kudos

953 Views
osanz
Contributor I

Hi Elias!

 

I think your information can be very usefull for me!!!

Unfortunatelly is not easy for us to change the bootloader to u-boot, because we use dBUG to setup some other hardware on our board.... but

 

Can you post ( or send me ) your linux start-up messages??, maybe there is some in kernel configuration that is not properly done via dBUG, maybe we are missing something on the kcl???

 

Thank you in advance;

 

Oscar. 

0 Kudos

953 Views
Elias
Contributor I

Hi Oscar,

 

I found nothing special different between dBug startup message and U-boot's.  

 

 

========================== dBug Start Message ================================

External Reset

 

ColdFire MCF532x on the M5329EVB

Firmware v4d.1a.1e (Built on Jul 28 2009 14:12:51)

Copyright 2006 Freescale Semiconductor, Inc.

 

Enter 'help' for help.

 

dBUG>

dBUG> show

        base: 16

        baud: 115200

    autoboot: Stop at prompt

      server: 192.168.1.150

      client: 192.168.1.145

     gateway: 192.168.1.1

     netmask: 255.255.255.0

    filename: image.bin

    filetype: Image

     ethaddr: 00:CF:53:29:CF:01

         kcl: rootfstype=romfs

dBUG> dn

Downloading Image 'image.bin' from 192.168.1.150

TFTP transfer completed

Read 8294400 bytes (16201 blocks)

dBUG> go

Linux version 2.6.26-uc0 (alex@alex) (gcc version 4.3.2 (Sourcery G++ Lite 4.3-4

5) ) #9 Thu Jul 30 16:48:35 CST 2009

 

uClinux/COLDFIRE(m532x)

COLDFIRE port done by Greg Ungerer, gerg@snapgear.com

Flat model support (C) 1998,1999 Kenneth Albanowski, D. Jeff Dionne

Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 8128

Kernel command line: rootfstype=romfs

PID hash table entries: 128 (order: 7, 512 bytes)

Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)

Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)

Memory available: 24168k/32768k RAM, (1942k kernel code, 240k data)

Mount-cache hash table entries: 512

net_namespace: 192 bytes

NET: Registered protocol family 16

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: 1024 (order: 1, 8192 bytes)

TCP bind hash table entries: 1024 (order: 0, 4096 bytes)

TCP: Hash tables configured (established 1024 bind 1024)

TCP reno registered

NET: Registered protocol family 1

usb: Host1 host (h1-fsls) registered

usb: DR gadget (dr-fsls) registered

JFFS2 version 2.2. (NAND) ?2001-2006 Red Hat, Inc.

msgmni has been set to 47

io scheduler noop registered

io scheduler cfq registered (default)

mcf_edma: Initialized successfully

ColdFire internal UART serial driver

ttyS0 at MMIO 0xfc060000 (irq = 90) is a ColdFire UART

console [ttyS0] enabled

ttyS1 at MMIO 0xfc064000 (irq = 91) is a ColdFire UART

ttyS2 at MMIO 0xfc068000 (irq = 92) is a ColdFire UART

brd: module loaded

loop: module loaded

nbd: registered device at major 43

FEC ENET Version 0.2

fec: PHY @ 0x1, ID 0x20005c90 -- DP83848

eth0: ethernet 00:cf:53:29:cf:01

Driver 'sd' needs updating - please use bus_type methods

uclinux[mtd]: RAM probe address=0x40241da8 size=0x5da000

Creating 1 MTD partitions on "RAM":

0x00000000-0x005da000 : "ROMfs"

uclinux[mtd]: set ROMfs to be root filesystem

NAND device: Manufacturer ID: 0x20, Chip ID: 0x73 (ST Micro NAND 16MiB 3,3V 8-bi

t)

Scanning device for bad blocks

Creating 1 MTD partitions on "NAND 16MiB 3,3V 8-bit":

0x00000000-0x01000000 : "M53xx flash partition 1"

SPI: Coldfire master initialized

Initializing USB Mass Storage driver...

usbcore: registered new interface driver usb-storage

USB Mass Storage support registered.

ads7843 spi1.1: touchscreen, irq 68

input: ADS7843 Touchscreen as /class/input/input0

mcf-rtc mcf-rtc: rtc core: registered mcf-rtc as rtc0

Real Time Clock Driver v0.1

TCP cubic registered

NET: Registered protocol family 17

RPC: Registered udp transport module.

RPC: Registered tcp transport module.

mcf-rtc mcf-rtc: setting system clock to 1970-01-01 00:00:41 UTC (41)

VFS: Mounted root (romfs filesystem) readonly.

Freeing unused kernel memory: 68k freed (0x4021d000 - 0x4022d000)

init started: BusyBox v1.11.2 ()

starting pid 18, tty '': '/etc/rc.d/rcS'

eth0: status: link up, 100MBit Full Duplex, auto-negotiation complete.

...<AFTER ABOUT 20~30 MINS>...

input line too long

starting pid 19, tty '': '-/bin/sh'

 

 

BusyBox v1.11.2 () built-in shell (msh)

Enter 'help' for a list of built-in commands.

 

/proc/sys/vm/min_free_kbytes: cannot create

/proc/sys/vm/vfs_cache_pressure: cannot create

 

 

======================= U-boot Start Message  ==============================

U-Boot 2009.06-00438-gb86b85e ( 7?27 2009 - 10:33:47)

 

CPU:   Freescale MCF5329 (Mask:54 Version:2)

       CPU CLK 240 MHz BUS CLK 80 MHz

Board: Freescale FireEngine 5329 EVB

I2C:   ready

DRAM:  32 MB

FLASH:  2 MB

NAND:  16 MiB

Net:   FEC0

->

->

-> tftp 0x41000000 uImage

Using FEC0 device

TFTP from server 192.168.1.150; our IP address is 192.168.1.145

Filename 'uImage'.

Load address: 0x41000000

Loading: #################################################################

         ##################################################################

         #################################################################

         ##################################################################

done

Bytes transferred = 3927924 (3bef74 hex)

-> bootm 0x41000000

## Booting kernel from Legacy Image at 41000000 ...

   Image Name:   Linux Kernel Image

   Created:      2009-07-31   5:14:51 UTC

   Image Type:   M68K Linux Kernel Image (gzip compressed)

   Data Size:    3927860 Bytes =  3.7 MB

   Load Address: 40020000

   Entry Point:  40020000

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Linux version 2.6.26-uc0 (alex@alex) (gcc version 4.3.2 (Sourcery G++ Lite 4.3-4

5) ) #9 Thu Jul 30 16:48:35 CST 2009

 

uClinux/COLDFIRE(m532x)

COLDFIRE port done by Greg Ungerer, gerg@snapgear.com

Flat model support (C) 1998,1999 Kenneth Albanowski, D. Jeff Dionne

Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 8128

Kernel command line: rootfstype=romfs

PID hash table entries: 128 (order: 7, 512 bytes)

Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)

Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)

Memory available: 24168k/32768k RAM, (1942k kernel code, 240k data)

Mount-cache hash table entries: 512

net_namespace: 192 bytes

NET: Registered protocol family 16

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: 1024 (order: 1, 8192 bytes)

TCP bind hash table entries: 1024 (order: 0, 4096 bytes)

TCP: Hash tables configured (established 1024 bind 1024)

TCP reno registered

NET: Registered protocol family 1

usb: Host1 host (h1-fsls) registered

usb: DR gadget (dr-fsls) registered

JFFS2 version 2.2. (NAND) ?2001-2006 Red Hat, Inc.

msgmni has been set to 47

io scheduler noop registered

io scheduler cfq registered (default)

mcf_edma: Initialized successfully

ColdFire internal UART serial driver

ttyS0 at MMIO 0xfc060000 (irq = 90) is a ColdFire UART

console [ttyS0] enabled

ttyS1 at MMIO 0xfc064000 (irq = 91) is a ColdFire UART

ttyS2 at MMIO 0xfc068000 (irq = 92) is a ColdFire UART

brd: module loaded

loop: module loaded

nbd: registered device at major 43

FEC ENET Version 0.2

fec: PHY @ 0x1, ID 0x20005c90 -- DP83848

eth0: ethernet 00:e0:0c:bc:e5:60

Driver 'sd' needs updating - please use bus_type methods

uclinux[mtd]: RAM probe address=0x40241da8 size=0x5da000

Creating 1 MTD partitions on "RAM":

0x00000000-0x005da000 : "ROMfs"

uclinux[mtd]: set ROMfs to be root filesystem

NAND device: Manufacturer ID: 0x20, Chip ID: 0x73 (ST Micro NAND 16MiB 3,3V 8-bi

t)

Scanning device for bad blocks

Creating 1 MTD partitions on "NAND 16MiB 3,3V 8-bit":

0x00000000-0x01000000 : "M53xx flash partition 1"

SPI: Coldfire master initialized

Initializing USB Mass Storage driver...

usbcore: registered new interface driver usb-storage

USB Mass Storage support registered.

ads7843 spi1.1: touchscreen, irq 68

input: ADS7843 Touchscreen as /class/input/input0

mcf-rtc mcf-rtc: rtc core: registered mcf-rtc as rtc0

Real Time Clock Driver v0.1

TCP cubic registered

NET: Registered protocol family 17

RPC: Registered udp transport module.

RPC: Registered tcp transport module.

mcf-rtc mcf-rtc: setting system clock to 1970-01-01 00:00:31 UTC (31)

VFS: Mounted root (romfs filesystem) readonly.

Freeing unused kernel memory: 68k freed (0x4021d000 - 0x4022d000)

init started: BusyBox v1.11.2 ()

starting pid 18, tty '': '/etc/rc.d/rcS'

eth0: status: link up, 100MBit Full Duplex, auto-negotiation complete.

Mounting /proc and /sys

Setting the hostname to freescale

Mounting filesystems

mount: mounting devpts on /dev/pts failed: No such device

Starting syslogd and klogd

Running sysctl

Setting up networking on loopback device:

Setting up networking on eth0:

eth0: config: auto-negotiation on, 100FDX, 100HDX, 10FDX, 10HDX.

starting pid 114, tty '': '-/bin/sh'

 

 

BusyBox v1.11.2 () built-in shell (msh)

Enter 'help' for a list of built-in commands.

 

eth0: status: link down.

$ eth0: status: link up, 100MBit Full Duplex, auto-negotiation complete.

 

$ ps

  PID USER       VSZ STAT COMMAND

    1 root      1032 S    init

    2 root         0 SW<  [kthreadd]

    3 root         0 SW<  [ksoftirqd/0]

    4 root         0 SW<  [watchdog/0]

    5 root         0 SW<  [events/0]

    6 root         0 SW<  [khelper]

    7 root         0 SW<  [kblockd/0]

    8 root         0 SW<  [khubd]

    9 root         0 SW   [pdflush]

   10 root         0 SW   [pdflush]

   11 root         0 SW<  [kswapd0]

   12 root         0 SW<  [aio/0]

   13 root         0 SW<  [nfsiod]

   14 root         0 SW<  [mtdblockd]

   15 root         0 SW<  [spi_coldfire]

   16 root         0 SW<  [rpciod/0]

   77 root      1028 S    /sbin/syslogd

   79 root      1024 S    /sbin/klogd

   97 root      1060 S    udhcpc -i eth0

  114 root      1188 S    -/bin/sh

  130 root      1040 R    ps

$

$ cat /proc/filesystems

nodev   sysfs

nodev   rootfs

nodev   bdev

nodev   proc

nodev   sockfs

nodev   usbfs

nodev   pipefs

nodev   anon_inodefs

nodev   tmpfs

nodev   inotifyfs

nodev   ramfs

        msdos

        vfat

nodev   nfs

nodev   jffs2

        romfs

nodev   mqueue

nodev   rpc_pipefs

$

$ cat /proc/meminfo

MemTotal:        24236 kB

MemFree:         13532 kB

Buffers:           912 kB

Cached:           1240 kB

SwapCached:          0 kB

Active:           1076 kB

Inactive:         1044 kB

SwapTotal:           0 kB

SwapFree:            0 kB

Dirty:               0 kB

Writeback:           0 kB

AnonPages:           0 kB

Mapped:              0 kB

Slab:             8364 kB

SReclaimable:      220 kB

SUnreclaim:       8144 kB

PageTables:          0 kB

NFS_Unstable:        0 kB

Bounce:              0 kB

WritebackTmp:        0 kB

CommitLimit:     12116 kB

Committed_AS:        0 kB

VmallocTotal:        0 kB

VmallocUsed:         0 kB

VmallocChunk:        0 kB

0 Kudos

953 Views
obidon
Contributor III
I had that problem initially after moving to ltib-cf_nommu-20081215. My project is using the dBug bootloader and MCF5328 custom board based on the MCF5329EVB.  I never did pinpoint the problem, but it went away after disabling several things I didn't need that were defaults in the BSP. I am not using CAN, eDMA, rtc. I changed some of the USB options, some of the USB features I load as modules. I also changed some of the busybox options. If I get time I will try to reproduce this and find what specifically is causing it.
0 Kudos

953 Views
osanz
Contributor I

Hi! ( here we are after vacation)

 

Elias, thanks a lot for your reply, i will study carefully!!!

 

obidon, ok it seems there is some 'wrong setting' on ltib-cf_nommu-20081215. In fact we have disabled almost everything on our board but the USB too, but in our case all regarding USB is compiled in the kerenel not as module ( maybe the problem is on USB?? ). Thanks a lot really!!!

 

BR.

 

Oscar Sanz.

 

0 Kudos

953 Views
osanz
Contributor I

Hello again;

 

Really both boot traces are identical. Just one diference that is supposed to be booting 'independent';

uboot uses a compressed image and dBug a binary image.

 

Maybe booting binary image in uboot has the same result?

 

obidon, are you using binary or compressed image on your working board?

 

I'm going to test it on my board.

 

Oscar.

0 Kudos

953 Views
obidon
Contributor III

Sorry, I've been away. I am using a bin image and never did use a compressed image. I have 32M Spansion NOR on the board so no need for a compressed image.

 

0 Kudos