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.

OMAP-l138 lcdk : start Linux from NAND

Other Parts Discussed in Thread: OMAPL138

Hi All,

I'm trying to boot my LCDK from NAND based on the a tar.gz shipped with the device SD card : omapl138-lcdk-fs.tar.gz. I remove Qt stuff and other things not important for me ( I see that this FS starts from NFS without any issues ). To convert it to ext2 filesystem I use the following script :

#!/bin/sh

nfs_dir=/home/developer/nfs/arago
images_dir=/home/developer/rdm/images

rootfs_size=77824
rootfs_name="rootfs.ext2"

if [ -d "${images_dir}" ]; then
# Safe execution fo the rm -rf
cd "${images_dir}"; cd ..
rm -rf -- images
fi

mkdir --verbose "${images_dir}"
cd "${images_dir}"
dd if=/dev/zero of="${rootfs_name}" bs=1k count="${rootfs_size}"
mke2fs -F -m0 "${rootfs_name}"
mount -t ext2 "${rootfs_name}" /mnt -o loop
tar -C "${nfs_dir}" -cf - . | tar -C /mnt -xf -
umount /mnt

gzip "${rootfs_name}"
cp "${rootfs_name}".gz /tftpboot

chown -R nobody /tftpboot
chmod -R 777 /tftpboot

As a result I get a *.gz of 28 M

Then I follow the instructions from Wiki :

    1. Download uImage(shipped with the SD, about 2M) and copy it to the NAND partition:
U-Boot> tftp 0xc0700000 uImage
U-Boot> nand erase 0x200000 0x200000
U-Boot> nand write.e 0xc0700000 0x200000 0x200000
    1. Download ramdisk, and copy it to NAND flash:
U-Boot> tftp 0xc1180000 rootfs.ext2.gz
U-Boot> nand erase 0x400000 0x1e00000
U-Boot> nand write.e 0xc1180000 0x400000 0x1e00000
    1. Set up the bootargs and bootcmd environment variables to boot from NAND flash:
U-Boot> setenv bootcmd 'nand read.e 0xc1180000 0x400000 0x1e00000; nboot.e 0xc0700000 0 0x200000; bootm'
U-Boot> setenv bootargs mem=32M console=ttyS2,115200n8 root=/dev/ram0 rw initrd=0xc1180000,4M ip=192.168.2.10 

My kernel starts Ok but then I see the following error :
" RAMDISK: Couldn't find valid RAM disk image starting at 0.
List of all partitions:
No filesystem could mount root, tried:  ext3 ext2 cramfs vfat msdos
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0)"

I've tried a tar.gz from here

 and my approach works fine, my target starts from NAND.

Any ideas of what could go wrong with SDK filesystem ? Thanks in advance...




  • U-Boot> setenv bootcmd 'nand read.e 0xc1180000 0x400000 0x1e00000; nboot.e 0xc0700000 0 0x200000; bootm'
    U-Boot> setenv bootargs mem=32M console=ttyS2,115200n8 root=/dev/ram0 rw initrd=0xc1180000,4M ip=192.168.2.10

    What about the size of "ramdisk" image ?
    4MB ?
  • Please refer to the following TI wikis.

    processors.wiki.ti.com/.../Booting_Linux_kernel_using_U-Boot

    processors.wiki.ti.com/.../Initrd



    U-Boot> tftp 0xc1180000 rootfs.ext2.gz
    U-Boot> nand erase 0x400000 0x1e00000
    U-Boot> nand write.e 0xc1180000 0x400000 0x1e00000


    The file size seems to be about ~26MB as per the above mentioned address and try to use following bootargs.

    I presume that you have enabled

    U-Boot> setenv bootargs console=ttyS2,115200n8 root=/dev/ram0 rw initrd=0xc1180000,30M ip=192.168.2.10

    Please note that, it is better to keep the ramdisk size smaller ~20MB

    Try to reduce the size of filesystem and mention the size in bootargs of u-boot.
  • I reduced the size of the rootfs image to 15.3 M and updated my U-boot with the following arguments :

    bootargs=mem=32M console=ttyS2,115200n8 root=/dev/ram0 rw initrd=0xc1180000,18M ip=192.168.2.10
    bootcmd=nand read.e 0xc1180000 0x400000 0x1111111; nboot.e 0xc0700000 0 0x200000; bootm

    But still I have the same problems.

    I'm attaching the rootfs I'm playing with.

    BR,

    Dmitryrootfs.ext2.gz

  • Hi Dimitry,

    I've used your "ramdisk" file and got the below output.
    Not able to mount properly, it may due to file size exceeding.

    So, I presume that you have not enabled "ramdisk" support config, say "ext2" gzip , etc.,

    /opt/ti/mcsdk_1_01_00_02/images/uImage-omapl138-lcdk.bin

    P.S: I've used pre-built binaries (uImage)

    davinci_emac davinci_emac.1: using random MAC addr: 5a:0c:e2:49:13:fd
    omap_rtc omap_rtc: setting system clock to 2000-01-01 00:20:21 UTC (946686021)
    RAMDISK: gzip image found at block 0
    RAMDISK: incomplete write (4940 != 32768)
    write error
    VFS: Mounted root (ext2 filesystem) on device 1:0.
    Freeing init memory: 160K

    PFA of full log.

    U-Boot > 
    U-Boot > tftpboot 0xc1180000 rootfs.ext2.gz
    Using DaVinci-EMAC device
    TFTP from server 10.100.2.204; our IP address is 10.100.2.254
    Filename 'rootfs.ext2.gz'.
    Load address: 0xc1180000
    Loading: #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             ###############
    done
    Bytes transferred = 16047914 (f4df2a hex)
    U-Boot > nand erase 0x400000 0x1e00000
    
    NAND erase: device 0 offset 0x400000, size 0x1e00000
    Erasing at 0x21e0000 -- 100% complete.
    OK
    U-Boot > nand write.e 0xc1180000 0x400000 0x1e00000
    
    NAND write: device 0 offset 0x400000, size 0x1e00000
     31457280 bytes written: OK
    U-Boot > setenv bootcmd 'nand read.e 0xc1180000 0x400000 0x1e00000; tftpboot 0xc0700000 uImage; bootm'
    U-Boot > saveenv 
    Saving Environment to NAND...
    Erasing Nand...
    Erasing at 0x0 -- 100% complete.
    Writing to Nand... done
    U-Boot > boot
    
    NAND read: device 0 offset 0x400000, size 0x1e00000
     31457280 bytes read: OK
    Using DaVinci-EMAC device
    TFTP from server 10.100.2.204; our IP address is 10.100.2.254
    Filename 'uImage'.
    Load address: 0xc0700000
    Loading: #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             ##############
    done
    Bytes transferred = 2397856 (2496a0 hex)
    ## Booting kernel from Legacy Image at c0700000 ...
       Image Name:   Linux-3.3.0
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    2397792 Bytes = 2.3 MiB
       Load Address: c0008000
       Entry Point:  c0008000
       Verifying Checksum ... OK
       Loading Kernel Image ... OK
    OK
    
    Starting kernel ...
    
    Uncompressing Linux... done, booting the kernel.
    Booting Linux on physical CPU 0
    Linux version 3.3.0 (gtbldadm@ubuntu-12) (gcc version 4.5.3 20110311 (prerelease) (GCC) ) #1 PREEMPT Tue Nov 5 20:19:32 EST 2013
    CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
    CPU: VIVT data cache, VIVT instruction cache
    Machine: AM18x/OMAP-L138 lcdk board
    Memory policy: ECC disabled, Data cache writeback
    BUG: mapping for 0x80000000 at 0xfffe0000 out of vmalloc space
    DaVinci da850/omap-l138/am18x variant 0x1
    Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
    Kernel command line: console=ttyS2,115200n8 root=/dev/ram0 rw initrd=0xc1180000,30M
    PID hash table entries: 512 (order: -1, 2048 bytes)
    Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
    Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
    Memory: 128MB = 128MB total
    Memory: 94140k/94140k available, 36932k reserved, 0K highmem
    Virtual kernel memory layout:
        vector  : 0xffff0000 - 0xffff1000   (   4 kB)
        fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
        vmalloc : 0xc8800000 - 0xff000000   ( 872 MB)
        lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
        modules : 0xbf000000 - 0xc0000000   (  16 MB)
          .text : 0xc0008000 - 0xc0475000   (4532 kB)
          .init : 0xc0475000 - 0xc049d000   ( 160 kB)
          .data : 0xc049e000 - 0xc04cf760   ( 198 kB)
           .bss : 0xc04cf784 - 0xc04eca6c   ( 117 kB)
    SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    NR_IRQS:245
    Console: colour dummy device 80x30
    Calibrating delay loop... 227.32 BogoMIPS (lpj=1136640)
    pid_max: default: 32768 minimum: 301
    Mount-cache hash table entries: 512
    CPU: Testing write buffer coherency: ok
    Setting up static identity map for 0xc03625a0 - 0xc03625f8
    gpiochip_add: registered GPIOs 0 to 31 on device: DaVinci
    gpiochip_add: registered GPIOs 32 to 63 on device: DaVinci
    gpiochip_add: registered GPIOs 64 to 95 on device: DaVinci
    gpiochip_add: registered GPIOs 96 to 127 on device: DaVinci
    gpiochip_add: registered GPIOs 128 to 143 on device: DaVinci
    DaVinci: 144 gpio irqs
    print_constraints: dummy: 
    NET: Registered protocol family 16
    EMAC: MII PHY configured
    bio: create slab <bio-0> at 0
    SCSI subsystem initialized
    usbcore: registered new interface driver usbfs
    usbcore: registered new interface driver hub
    usbcore: registered new device driver usb
    i2c-gpio i2c-gpio.1: using pins 20 (SDA) and 21 (SCL)
    Advanced Linux Sound Architecture Driver Version 1.0.24.
    Switching to clocksource timer0_1
    musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
    musb-hdrc musb-hdrc: dma type: dma-cppi41
    MUSB255 controller's USBSS revision = 4ea11003
    Waiting for USB PHY clock good...
    musb-hdrc musb-hdrc: USB OTG mode controller at fee00000 using DMA, IRQ 58
    NET: Registered protocol family 2
    IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
    TCP established hash table entries: 4096 (order: 3, 32768 bytes)
    TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
    TCP: Hash tables configured (established 4096 bind 4096)
    TCP reno registered
    UDP hash table entries: 256 (order: 0, 4096 bytes)
    UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    NET: Registered protocol family 1
    RPC: Registered named UNIX socket transport module.
    RPC: Registered udp transport module.
    RPC: Registered tcp transport module.
    RPC: Registered tcp NFSv4.1 backchannel transport module.
    Trying to unpack rootfs image as initramfs...
    rootfs image is not initramfs (no cpio magic); looks like an initrd
    Freeing initrd memory: 30720K
    JFFS2 version 2.2. (NAND) �© 2001-2006 Red Hat, Inc.
    msgmni has been set to 243
    io scheduler noop registered (default)
    da8xx_lcdc da8xx_lcdc.0: GLCD: Found VGA_Monitor panel
    Console: switching to colour frame buffer device 80x30
    Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
    serial8250.0: ttyS0 at MMIO 0x1c42000 (irq = 25) is a AR7
    serial8250.0: ttyS1 at MMIO 0x1d0c000 (irq = 53) is a AR7
    serial8250.0: ttyS2 at MMIO 0x1d0d000 (irq = 61) is a AR7
    console [ttyS2] enabled
    brd: module loaded
    ahci ahci: forcing PORTS_IMPL to 0x1
    ahci ahci: AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl platform mode
    ahci ahci: flags: ncq sntf pm led clo only pmp pio slum part ccc 
    scsi0 : ahci_platform
    ata1: SATA max UDMA/133 mmio [mem 0x01e18000-0x01e19fff] port 0x100 irq 67
    NAND device: Manufacturer ID: 0x2c, Chip ID: 0xcc (Micron NAND 512MiB 3,3V 16-bit)
    Bad block table found at page 262080, version 0x01
    Bad block table found at page 262016, version 0x01
    Creating 4 MTD partitions on "davinci_nand.1":
    0x000000000000-0x000000020000 : "u-boot env"
    0x000000020000-0x0000000a0000 : "u-boot"
    0x0000000a0000-0x0000002a0000 : "kernel"
    0x0000002a0000-0x000020000000 : "filesystem"
    davinci_nand davinci_nand.1: controller rev. 2.5
    davinci_mdio davinci_mdio.0: davinci mdio revision 1.5
    davinci_mdio davinci_mdio.0: detected phy mask ffffff7f
    davinci_mdio.0: probed
    davinci_mdio davinci_mdio.0: phy[7]: device davinci_mdio-0:07, driver SMSC LAN8710/LAN8720
    ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
    ohci ohci.0: DA8xx OHCI
    ohci ohci.0: new USB bus registered, assigned bus number 1
    Waiting for USB PHY clock good...
    ohci ohci.0: irq 59, io mem 0x01e25000
    hub 1-0:1.0: USB hub found
    hub 1-0:1.0: 1 port detected
    Initializing USB Mass Storage driver...
    usbcore: registered new interface driver usb-storage
    USB Mass Storage support registered.
    input: gpio-keys-polled as /devices/platform/gpio-keys-polled.0/input/input0
    omap_rtc omap_rtc: rtc core: registered omap_rtc as rtc0
    omap_rtc: RTC power up reset detected
    i2c /dev entries driver
    watchdog watchdog: heartbeat 60 sec
    cpuidle: using governor ladder
    cpuidle: using governor menu
    davinci_mmc davinci_mmc.0: Using DMA, 4-bit mode
    usbcore: registered new interface driver usbhid
    usbhid: USB HID core driver
    usbcore: registered new interface driver snd-usb-audio
    soc-audio soc-audio.0: ASoC: Failed to create card debugfs directory
    _regulator_get: 1-0018 supply IOVDD not found, using dummy regulator
    _regulator_get: 1-0018 supply DVDD not found, using dummy regulator
    ata1: SATA link down (SStatus 0 SControl 300)
    _regulator_get: 1-0018 supply AVDD not found, using dummy regulator
    _regulator_get: 1-0018 supply DRVDD not found, using dummy regulator
    asoc: tlv320aic3x-hifi <-> davinci-mcasp.0 mapping ok
    ALSA device list:
      #0: DA850/OMAP-L138 EVM
    TCP cubic registered
    NET: Registered protocol family 17
    console [netcon0] enabled
    netconsole: network logging started
    davinci_emac davinci_emac.1: using random MAC addr: 26:6f:cb:98:96:4a
    omap_rtc omap_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
    RAMDISK: gzip image found at block 0
    RAMDISK: incomplete write (5687 != 32768)
    write error
    VFS: Mounted root (ext2 filesystem) on device 1:0.
    Freeing init memory: 160K
    attempt to access beyond end of device
    ram0: rw=0, want=72706, limit=65536
    attempt to access beyond end of device
    ram0: rw=0, want=73138, limit=65536
    attempt to access beyond end of device
    ram0: rw=0, want=73138, limit=65536
    Kernel panic - not syncing: No init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
    
    

  • Hi Titus,

    That is exactly the same log as I have. I did some more experiments : I put my custom /opt folder to the dedicated arago image ( which I successfully loaded previously )...I got an image with size > 4M and I got the same failure. I believe that the problem is the size of the image. What is the right way to start filesystem image > 4 M ?

    Any ideas? Looking forward to any help and XP here...

    BR,

    Dmitry

  • Hi Dimitry,

    I'm able to do RAMDISK boot on OMAPL138 LCDK board with the attached ramdisk file which is taken from "mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/images/ramdisk.gz"

    ramdisk.gz

    U-Boot > tftpboot 0xc1180000 ramdisk.gz
    Using DaVinci-EMAC device
    TFTP from server 10.100.2.204; our IP address is 10.100.2.254
    Filename 'ramdisk.gz'.
    Load address: 0xc1180000
    Loading: #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             ################################################
    done
    transferred = 2572487 (2740c7 hex)
    U-Boot > 
    U-Boot > 
    U-Boot > 
    U-Boot > nand erase 0x400000 0xe00000
    
    NAND erase: device 0 offset 0x400000, size 0xe00000
    Erasing at 0x11e0000 -- 100% complete.
    OK
    U-Boot > nand write.e 0xc1180000 0x400000 0xe00000
    
    NAND write: device 0 offset 0x400000, size 0xe00000
     14680064 bytes written: OK
    U-Boot > setenv bootcmd 'nand read.e 0xc1180000 0x400000 0xe00000; tftpboot 0xc0700000 uImage; bootm'
    U-Boot > setenv bootargs console=ttyS2,115200n8 root=/dev/ram0 rw initrd=0xc1180000,10M
    U-Boot > saveenv
    Saving Environment to NAND...
    Erasing Nand...
    Erasing at 0x0 -- 100% complete.
    Writing to Nand... done
    U-Boot > 
    U-Boot > boot
    
    NAND read: device 0 offset 0x400000, size 0xe00000
     14680064 bytes read: OK
    Using DaVinci-EMAC device
    TFTP from server 10.100.2.204; our IP address is 10.100.2.254
    Filename 'uImage'.
    Load address: 0xc0700000
    Loading: #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             ##############
    done
    Bytes transferred = 2397856 (2496a0 hex)
    ## Booting kernel from Legacy Image at c0700000 ...
       Image Name:   Linux-3.3.0
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    2397792 Bytes = 2.3 MiB
       Load Address: c0008000
       Entry Point:  c0008000
       Verifying Checksum ... OK
       Loading Kernel Image ... OK
    OK
    
    Starting kernel ...
    
    Uncompressing Linux... done, booting the kernel.
    Booting Linux on physical CPU 0
    Linux version 3.3.0 (gtbldadm@ubuntu-12) (gcc version 4.5.3 20110311 (prerelease) (GCC) ) #1 PREEMPT Tue Nov 5 20:19:32 EST 2013
    CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
    CPU: VIVT data cache, VIVT instruction cache
    Machine: AM18x/OMAP-L138 lcdk board
    Memory policy: ECC disabled, Data cache writeback
    BUG: mapping for 0x80000000 at 0xfffe0000 out of vmalloc space
    DaVinci da850/omap-l138/am18x variant 0x1
    Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
    Kernel command line: console=ttyS2,115200n8 root=/dev/ram0 rw initrd=0xc1180000,10M
    PID hash table entries: 512 (order: -1, 2048 bytes)
    Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
    Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
    Memory: 128MB = 128MB total
    Memory: 114620k/114620k available, 16452k reserved, 0K highmem
    Virtual kernel memory layout:
        vector  : 0xffff0000 - 0xffff1000   (   4 kB)
        fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
        vmalloc : 0xc8800000 - 0xff000000   ( 872 MB)
        lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
        modules : 0xbf000000 - 0xc0000000   (  16 MB)
          .text : 0xc0008000 - 0xc0475000   (4532 kB)
          .init : 0xc0475000 - 0xc049d000   ( 160 kB)
          .data : 0xc049e000 - 0xc04cf760   ( 198 kB)
           .bss : 0xc04cf784 - 0xc04eca6c   ( 117 kB)
    SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    NR_IRQS:245
    Console: colour dummy device 80x30
    Calibrating delay loop... 227.32 BogoMIPS (lpj=1136640)
    pid_max: default: 32768 minimum: 301
    Mount-cache hash table entries: 512
    CPU: Testing write buffer coherency: ok
    Setting up static identity map for 0xc03625a0 - 0xc03625f8
    gpiochip_add: registered GPIOs 0 to 31 on device: DaVinci
    gpiochip_add: registered GPIOs 32 to 63 on device: DaVinci
    gpiochip_add: registered GPIOs 64 to 95 on device: DaVinci
    gpiochip_add: registered GPIOs 96 to 127 on device: DaVinci
    gpiochip_add: registered GPIOs 128 to 143 on device: DaVinci
    DaVinci: 144 gpio irqs
    print_constraints: dummy: 
    NET: Registered protocol family 16
    EMAC: MII PHY configured
    bio: create slab <bio-0> at 0
    SCSI subsystem initialized
    usbcore: registered new interface driver usbfs
    usbcore: registered new interface driver hub
    usbcore: registered new device driver usb
    i2c-gpio i2c-gpio.1: using pins 20 (SDA) and 21 (SCL)
    Advanced Linux Sound Architecture Driver Version 1.0.24.
    Switching to clocksource timer0_1
    musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
    musb-hdrc musb-hdrc: dma type: dma-cppi41
    MUSB255 controller's USBSS revision = 4ea11003
    Waiting for USB PHY clock good...
    musb-hdrc musb-hdrc: USB OTG mode controller at fee00000 using DMA, IRQ 58
    NET: Registered protocol family 2
    IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
    TCP established hash table entries: 4096 (order: 3, 32768 bytes)
    TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
    TCP: Hash tables configured (established 4096 bind 4096)
    TCP reno registered
    UDP hash table entries: 256 (order: 0, 4096 bytes)
    UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    NET: Registered protocol family 1
    RPC: Registered named UNIX socket transport module.
    RPC: Registered udp transport module.
    RPC: Registered tcp transport module.
    RPC: Registered tcp NFSv4.1 backchannel transport module.
    Trying to unpack rootfs image as initramfs...
    rootfs image is not initramfs (no cpio magic); looks like an initrd
    Freeing initrd memory: 10240K
    JFFS2 version 2.2. (NAND) �© 2001-2006 Red Hat, Inc.
    msgmni has been set to 243
    io scheduler noop registered (default)
    da8xx_lcdc da8xx_lcdc.0: GLCD: Found VGA_Monitor panel
    Console: switching to colour frame buffer device 80x30
    Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
    serial8250.0: ttyS0 at MMIO 0x1c42000 (irq = 25) is a AR7
    serial8250.0: ttyS1 at MMIO 0x1d0c000 (irq = 53) is a AR7
    serial8250.0: ttyS2 at MMIO 0x1d0d000 (irq = 61) is a AR7
    console [ttyS2] enabled
    brd: module loaded
    ahci ahci: forcing PORTS_IMPL to 0x1
    ahci ahci: AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl platform mode
    ahci ahci: flags: ncq sntf pm led clo only pmp pio slum part ccc 
    scsi0 : ahci_platform
    ata1: SATA max UDMA/133 mmio [mem 0x01e18000-0x01e19fff] port 0x100 irq 67
    NAND device: Manufacturer ID: 0x2c, Chip ID: 0xcc (Micron NAND 512MiB 3,3V 16-bit)
    Bad block table found at page 262080, version 0x01
    Bad block table found at page 262016, version 0x01
    Creating 4 MTD partitions on "davinci_nand.1":
    0x000000000000-0x000000020000 : "u-boot env"
    0x000000020000-0x0000000a0000 : "u-boot"
    0x0000000a0000-0x0000002a0000 : "kernel"
    0x0000002a0000-0x000020000000 : "filesystem"
    davinci_nand davinci_nand.1: controller rev. 2.5
    davinci_mdio davinci_mdio.0: davinci mdio revision 1.5
    davinci_mdio davinci_mdio.0: detected phy mask ffffff7f
    davinci_mdio.0: probed
    davinci_mdio davinci_mdio.0: phy[7]: device davinci_mdio-0:07, driver SMSC LAN8710/LAN8720
    ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
    ohci ohci.0: DA8xx OHCI
    ohci ohci.0: new USB bus registered, assigned bus number 1
    Waiting for USB PHY clock good...
    ohci ohci.0: irq 59, io mem 0x01e25000
    hub 1-0:1.0: USB hub found
    hub 1-0:1.0: 1 port detected
    Initializing USB Mass Storage driver...
    usbcore: registered new interface driver usb-storage
    USB Mass Storage support registered.
    input: gpio-keys-polled as /devices/platform/gpio-keys-polled.0/input/input0
    omap_rtc omap_rtc: rtc core: registered omap_rtc as rtc0
    omap_rtc: RTC power up reset detected
    omap_rtc: already running
    i2c /dev entries driver
    watchdog watchdog: heartbeat 60 sec
    cpuidle: using governor ladder
    cpuidle: using governor menu
    davinci_mmc davinci_mmc.0: Using DMA, 4-bit mode
    usbcore: registered new interface driver usbhid
    usbhid: USB HID core driver
    usbcore: registered new interface driver snd-usb-audio
    soc-audio soc-audio.0: ASoC: Failed to create card debugfs directory
    _regulator_get: 1-0018 supply IOVDD not found, using dummy regulator
    _regulator_get: 1-0018 supply DVDD not found, using dummy regulator
    _regulator_get: 1-0018 supply AVDD not found, using dummy regulator
    ata1: SATA link down (SStatus 0 SControl 300)
    _regulator_get: 1-0018 supply DRVDD not found, using dummy regulator
    asoc: tlv320aic3x-hifi <-> davinci-mcasp.0 mapping ok
    ALSA device list:
      #0: DA850/OMAP-L138 EVM
    TCP cubic registered
    NET: Registered protocol family 17
    console [netcon0] enabled
    netconsole: network logging started
    davinci_emac davinci_emac.1: using random MAC addr: 56:e7:f6:ff:31:d0
    omap_rtc omap_rtc: setting system clock to 2000-01-01 00:01:33 UTC (946684893)
    RAMDISK: gzip image found at block 0
    VFS: Mounted root (ext2 filesystem) on device 1:0.
    Freeing init memory: 160K
    INIT: version 2.86 booting
    Starting the hotplug events dispatcher: udevd.
    udevd (572): /proc/572/oom_adj is deprecated, please use /proc/572/oom_score_adj instead.
    Synthesizing the initial hotplug events...done.
    Waiting for /dev to be fully populated...done.
    Activating swap...done. 
    Remounting root filesystem...done. 
    Mounting local filesystems: mount none on /var/run type tmpfs (rw)
    none on /tmp type tmpfs (rw)
    Setting up networking ....
    Starting hotplug subsystem:
       pci     
       pci      [success]
       usb     
       usb      [success]
       isapnp  
       isapnp   [success]
       ide     
       ide      [success]
       input   
       input    [success]
       scsi    
    Attribute /sys/bus/scsi/devices/host0/type does not exist
       scsi     [failed]
    done.
    Starting portmap daemon....
    INIT: Entering runlevel: 3
    Starting internet superserver: inetd.
    
    MontaVista(R) Linux(R) Professional Edition 5.0.0 (0801921)
    
    (none) login: 
    
    

  • Hi Titus,

    I'm able to load linux with my rootfs with the following u-boot settings :

    bootargs=mem=96M console=ttyS2,115200n8 root=/dev/ram0 rw initrd=0xc1180000,15M ramdisk_size=49152 ip=192.168.2.10
    bootcmd=nand read.e 0xc1180000 0x400000 0xda0000; nboot.e 0xc0700000 0 0x200000; bootm


    but when trying to load DSP core I get the following crash :

    Mapped entries in /opt/rdm/fw/Modem_Ser.map to slave procId 0.
    Loading procId 0.
    ------------[ cut here ]------------
    WARNING: at arch/arm/mm/ioremap.c:207 __arm_ioremap_pfn_caller+0x15c/0x16c()
    Modules linked in: syslink
    [<c000d364>] (unwind_backtrace+0x0/0xf0) from [<c001ba74>] (warn_slowpath_common+0x4c/0x64)
    [<c001ba74>] (warn_slowpath_common+0x4c/0x64) from [<c001baa8>] (warn_slowpath_null+0x1c/0x24)
    [<c001baa8>] (warn_slowpath_null+0x1c/0x24) from [<c000f320>] (__arm_ioremap_pfn_caller+0x15c/0x16c)
    [<c000f320>] (__arm_ioremap_pfn_caller+0x15c/0x16c) from [<c000f3a0>] (__arm_ioremap_caller+0x58/0x60)
    [<c000f3a0>] (__arm_ioremap_caller+0x58/0x60) from [<bf026a4c>] (MemoryOS_map+0x148/0x3e0 [syslink])
    [<bf026a4c>] (MemoryOS_map+0x148/0x3e0 [syslink]) from [<bf006d80>] (_ProcMgr_map+0x3c0/0x57c [syslink])
    ...

    What could be the reason for this ? I see that syslink driver has been loaded succesfully, the problem occures only when slaveloader execution takes place...

    Kindest Regards,
    Dmitry