This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DM6446EVM: root login problem

Hello,

I am new on dm6446 and I meet a problem that I can't use root account to login dm6446evm.

My host OS is Ubuntu 9.10 and use the latest montavista toolchain from TI website.

I had read the link http://e2e.ti.com/support/embedded/f/354/t/102161.aspx and tried all the suggestions, but the problem is not resolved.

Please help me because I have been stuck with this problem for weeks.

The following is the message output from dm6446evm:

U-Boot 1.3.0 (Aug 12 2011 - 06:02:18)

DRAM:  256 MB
Flash: 32 MB
In:    serial
Out:   serial
Err:   serial
ARM Clock : 297MHz
DDR Clock : 162MHz
ETH PHY   : LXT972 @ 0x01
U-Boot > printenv
baudrate=115200
ethaddr=00:0e:99:02:54:55
ipaddr=192.168.1.12
serverip=192.168.1.11
netmask=255.255.255.0
bootfile=/tftpboot/uImage
bootcmd=tftp;bootm
bootdelay=5
rootpath=/home/user/workdir/filesys
bootargs=console=ttyS0,115200n8 noinitrd rw ip=192.168.1.12 root=/dev/nfs nfsroot=192.168.1.11:/home/user/workdir/filesys, nolock mem=120M
stdin=serial
stdout=serial
stderr=serial
videostd=ntsc
ver=U-Boot 1.3.0 (Aug 12 2011 - 06:02:18)

Environment size: 435/65532 bytes
U-Boot > boot
TFTP from server 192.168.1.11; our IP address is 192.168.1.12
Filename '/tftpboot/uImage'.
Load address: 0x80700000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ###########
done
Bytes transferred = 2050612 (1f4a34 hex)
## Booting image at 80700000 ...
   Image Name:   Linux-2.6.18_pro500-davinci_evm-
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2050548 Bytes =  2 MB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux........................................................................................................................................ done, booting the kernel.
inux version 2.6.18_pro500-davinci_evm-arm_v5t_le (root@ubuntu) (gcc 唳掛 4.2.0 (MontaVista 4.2.0-16.0.32.0801914 2008-08-30)) #1 PREEMPT Wed Aug 24 16:00:41 CST 2011
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
Machine: DaVinci EVM
Memory policy: ECC disabled, Data cache writeback
DaVinci DM6443 variant 0x0
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
Built 1 zonelists.  Total pages: 30720
Kernel command line: console=ttyS0,115200n8 noinitrd rw ip=192.168.1.12 root=/dev/nfs nfsroot=192.168.1.11:/home/user/workdir/filesys, nolock mem=120M
PID hash table entries: 512 (order: 9, 2048 bytes)
Clock event device timer0_0 configured with caps set: 07
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: 120MB = 120MB total
Memory: 117248KB available (3513K code, 714K data, 200K init)
Security Framework v1.0.0 initialized
Capability LSM initialized
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
DaVinci: 71 gpio irqs
WARNING: both IDE and NOR flash are enabled, but share pins.
        Disable IDE for NOR support.
Generic PHY: Registered new driver
ch0 default output "COMPOSITE", mode "NTSC"
MUX: initialized LOEEN
MUX: initialized LFLDEN
VPBE Encoder Initialized
LogicPD encoder initialized
Avnetlcd encoder initialized
SCSI subsystem initialized
usbcore: registered new driver usbfs
usbcore: registered new driver hub
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 4096 bind 2048)
TCP reno registered
davinci_spi_board_init: NO spi support
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
squashfs: version 3.1 (2006/08/19) Phillip Lougher
JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.
yaffs Aug 24 2011 15:57:08 Installing.
SGI XFS with no debug enabled
Initializing Cryptographic API
io scheduler noop registered
io scheduler anticipatory registered (default)
LTT : ltt-facilities init
LTT : ltt-facility-core init in kernel
davincifb davincifb: dm_osd0_fb: 720x480x16@0,0 with framebuffer size 675KB
davincifb davincifb: dm_vid0_fb: 0x0x16@0,0 with framebuffer size 1020KB
davincifb davincifb: dm_osd1_fb: 720x480x4@0,0 with framebuffer size 675KB
davincifb davincifb: dm_vid1_fb: 0x0x16@0,0 with framebuffer size 1020KB
davincifb davincifb.0: dm_osd0_fb: Failed to obtain ownership of OSD window.
DAVINCI-WDT: DaVinci Watchdog Timer: heartbeat 60 sec
Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO map 0x1c20000 mem 0xfbc20000 (irq = 40) is a 16550A
RAMDISK driver initialized: 1 RAM disks of 32768K size 1024 blocksize
Davinci EMAC MII Bus: probed
MAC address is 00:0e:99:02:54:55
TI DaVinci EMAC Linux version updated 4.0
netconsole: not configured, aborting
Linux video capture interface: v2.00
vpfe_init
vpfe_probe
vpfe ccdc capture vpfe ccdc capture.1: vpif_register_decoder: decoder = MT9T001
TVP514X : nummber of channels = 1
vpfe ccdc capture vpfe ccdc capture.1: vpif_register_decoder: decoder = TVP514X
Trying to register davinci display video device.
layer=c06c1a00,layer->video_dev=c06c1b60
Trying to register davinci display video device.
layer=c06c1800,layer->video_dev=c06c1960
davinci_init:DaVinci V4L2 Display Driver V1.0 loaded

 Davici AEW Driver cannot be loaded
 VIDEO PORT is not enabledData Flow path from CCDC is disabled

 Davinci AF driver cannot be loaded
 VIDEO PORT is not enabled
 CCDC needs to be configured<6>i2c /dev entries driver
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
MUX: initialized HDIREN
MUX: initialized ATAEN
    ide0: MMIO-DMA , BIOS settings: hda:pio, hdb:pio
hda: TOSHIBA MK4032GAX, ATA DISK drive
ide0 at 0xfbc661f0-0xfbc661f7,0xfbc663f6 on irq 22
hda: max request size: 512KiB
hda: 78140160 sectors (40007 MB), CHS=16383/255/63, UDMA(66)
hda: cache flushes supported
 hda: hda1 hda2
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.6:USB HID core driver
musb_hdrc: version 6.0, cppi-dma, host, debug=0
musb_hdrc musb_hdrc: No DMA interrupt line
musb_hdrc: USB Host mode controller at c805e000 using DMA, IRQ 12
musb_hdrc musb_hdrc: MUSB HDRC host driver
musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 1
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
mice: PS/2 mouse device common for all mice
rtc_davinci_evm rtc_davinci_evm: rtc intf: proc
rtc_davinci_evm rtc_davinci_evm: rtc intf: dev (254:0)
rtc_davinci_evm rtc_davinci_evm: rtc core: registered rtc_davinci_evm as rtc0
rtc0: hours 12-23 are misreported as duplicate hours 00-11
davinci-mmc davinci-mmc.0: Supporting 4-bit mode
davinci-mmc davinci-mmc.0: Using DMA mode
Advanced Linux Sound Architecture Driver Version 1.0.12rc1 (Thu Jun 22 13:55:50 2006 UTC).
ASoC version 0.13.1
MUX: initialized MCBSP
AIC3X Audio Codec 0.2
asoc: aic3x <-> davinci-i2s mapping ok
ALSA device list:
  #0: DaVinci EVM (aic3x)
IPv4 over IPv4 tunneling driver
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
Time: timer0_1 clocksource has been installed.
Clock event device timer0_0 configured with caps set: 08
Switched to high resolution mode on CPU 0
rtc_davinci_evm rtc_davinci_evm: setting the system clock to 2004-01-01 12:00:16 (1072958416)
applying Intel LTX971 workaround..
IP-Config: Guessing netmask 255.255.255.0
IP-Config: Complete:
      device=eth0, addr=192.168.1.12, mask=255.255.255.0, gw=255.255.255.255,
     host=192.168.1.12, domain=, nis-domain=(none),
     bootserver=255.255.255.255, rootserver=192.168.1.11, rootpath=
Looking up port of RPC 100003/2 on 192.168.1.11
Looking up port of RPC 100005/1 on 192.168.1.11
VFS: Mounted root (nfs filesystem).
Freeing init memory: 200K
INIT: version 2.86 booting
Starting the hotplug events dispatcher: udevd.
Synthesizing the initial hotplug events...done.
Waiting for /dev to be fully populated...done.
Activating swap...done.
Remounting root filesystem...done.
Calculating module dependencies
Loading modules:
Checking all file systems: fsck
fsck 1.40 (29-Jun-2007)
Mounting local filesystems: mount nothing was mounted
umount.nfs: /dev/root: not found or not mounted
Setting up networking ....
/etc/network/options is deprecated.
Setting up IP spoofing protection: rp_filter done.
Disabling IPv4 packet forwarding: done.
Disabling TCP/IP Explicit Congestion Notification: done.
Starting network interfaces: done.
Starting hotplug subsystem:
   pci
   pci      [success]
   usb
   usb      [success]
   isapnp
   isapnp   [success]
   ide
   ide      [success]
   input
   input    [success]
   scsi
   scsi     [success]
done.
Starting portmap daemon....
Cleaning: /tmp /var/lock /var/run done.
Updating /etc/motd...done.
INIT: Entering runlevel: 3
Starting system log daemon: syslogdNET: Registered protocol family 10
6WIND/LSIIT IPv6 multicast forwarding 0.1 plus PIM-SM/SSM with *BSD API
lo: Disabled Privacy Extensions
IPv6 over IPv4 tunneling driver
Mobile IPv6
 klogd.
Starting NFS common utilities: statd.
Starting internet superserver: inetd.
Starting OpenBSD Secure Shell server: sshd.

MontaVista(R) Linux(R) Professional Edition 5.0.0 (0801921)

192.168.1.12 login: root

Login incorrect
192.168.1.12 login:

Thanks for any help.

Robin

  • Hello,

    I can execute the "ssh 192.168.1.12" to connect DM6446EVM in the shell box of Ubuntu now and no login request.

    But my original problem still exists.

    Why can't I login root in Tera Term console by serial cable?

    Or how can I use ssh login root in Tera Term console by serial cable?

    I have tried to add "1:2345:respawn:/bin/login -f root console" to inittab, but the console always prompt login message and # message interlaced.

    How can I resolve this problem?

    Robin 

  • You can't log in as root on Ubuntu for some time now. (Don't know which version they introduced it). You have to use sudo when logged in instead. (sudo command or to switch to a root terminal sudo su). So this might be your problem.

    Regards

    Markus

  • Hi, Markus,

    Thanks for your reply.

    I am sorry that I didn't explain my development system well.

    My host PC: Windows 7 + VMWare + Ubuntu 9.10 (MontaVista Toolchain)

    I run the Tera Term console in Windows 7 and connect to DM6446EVM by serial cable.

    I can read the boot messages as the first post above at the Tera Term console,

    but I can't login as root on DM6446EVM at the Tera Term console and it always returns "Login incorrect".

    Best regards,

    Robin

  • Hi Robin,

    sry, my mistake.

    I'm not familiar with the MontaVista Toolchain. Is your target rootfs setup correctly, including user and password files?

    It looks like the kernel has access to the rootfs as there are some /etc messages, but in the boot messages appears

    umount.nfs: /dev/root: not found or not mounted

    That looks suspicious to me. And why  the heck should it be unmounted if that is your rootfs. Very suspicious...
    So it either has no access to the exported fs or not to the server. Did you set the no root squash?
    Furthermore you have the nfs server running under Ubuntu, right?

    To make sure you are able to mount it correctly. Try to mount it under the Ubuntu host or any other available machine and fiddle a little bit around (as root too).
    You might need to adapt the /etc/export to the new addresses.


    EDIT: sry, /dev/nfs is your rootfs.

     

    Regards

  • Hi Robin,


    I am unable to connect through ssh.

    can you please let me know how to ssh with DM6446evm.

    Thanks and regards,

    Mohammed Asif.