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.

multi image kernel+ramdisk

Other Parts Discussed in Thread: TPS65910, DA8XX, TMP275

Hi, I am trying to boot with a multi image file that was generated with mkimage. The uboot decompress the file and find the kernel, but is not find the filesystem. How can I fix the ramdisk address in ram to call bootm in right way?

- Attached is the environment variables.

- command line used to mkimage:   mkimage -A arm -T multi -C gzip -a 0 -e 0 -n 'test multifile' -d vmlinux:ramdisk.gz uMulti

- Bellow is the log:

## Booting kernel from Legacy Image at 80007fc0 ...
Image Name: test multifile
Image Type: ARM Linux Multi-File Image (gzip compressed)
Data Size: 14018554 Bytes = 13.4 MiB
Load Address: 00000000
Entry Point: 00000000
Contents:
Image 0: 3207239 Bytes = 3.1 MiB
Image 1: 10811302 Bytes = 10.3 MiB
Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 80007fc0 ...
Image Name: test multifile
Image Type: ARM Linux Multi-File Image (gzip compressed)
Data Size: 14018554 Bytes = 13.4 MiB
Load Address: 00000000
Entry Point: 00000000
Contents:
Image 0: 3207239 Bytes = 3.1 MiB
Image 1: 10811302 Bytes = 10.3 MiB
Verifying Checksum ... OK
No Linux ARM Ramdisk Image
Ramdisk image is corrupt or invalid

U-Boot# printenv 
baudrate=115200
bootargs=console=ttyO0,115200n8
bootargs_defaults=setenv bootargs console=${console} ${optargs}
bootcmd=if mmc rescan ${mmcdev}; then echo SD/MMC found on device ${mmcdev};if run loadbootenv; then echo Loaded environment from ${bootenv};r
un importbootenv;fi;if test -n $uenvcmd; then echo Running uenvcmd ...;run uenvcmd;fi;if run loaduimagefat; then run mmcboot;elif run loaduima
ge; then run mmcboot;else echo Cound not find ${bootfile} ;fi;else run nandboot;fi;
bootdelay=3
bootenv=uEnv.txt
bootfile=uImage
bootm=0x00000000 0x80007fc0
console=ttyO0,115200n8
dfu_alt_info=SPL part 0 1;SPL.backup1 part 0 2;SPL.backup2 part 0 3;SPL.backup3 part 0 4;u-boot part 0 5;kernel part 0 7;rootfs part 0 8
ethact=cpsw
ethaddr=00:18:31:e0:9a:d1
fdtaddr=0x80F80000
filesize=D5E83A
importbootenv=echo Importing environment from mmc ...; env import -t $loadaddr $filesize
ip_method=none
kloadaddr=0x80007fc0
loadaddr=0x80200000
loadbootenv=fatload mmc ${mmcdev} ${loadaddr} ${bootenv}
loadramdisk=fatload mmc ${mmcdev} ${rdaddr} ramdisk.gz
loaduimage=ext2load mmc ${mmcdev}:2 ${kloadaddr} /boot/${bootfile}
loaduimagefat=fatload mmc ${mmcdev} ${kloadaddr} ${bootfile}
mmcargs=run bootargs_defaults;setenv bootargs ${bootargs} root=${mmcroot} rootfstype=${mmcrootfstype} ip=${ip_method}
mmcboot=echo Booting from mmc ...; run mmcargs; bootm ${kloadaddr}
mmcdev=0
mmcroot=/dev/mmcblk0p2 rw
mmcrootfstype=ext2 rootwait
mtddevname=SPL
mtddevnum=0
mtdids=nand0=omap2-nand.0
mtdparts=mtdparts=omap2-nand.0:128k(SPL),128k(SPL.backup1),128k(SPL.backup2),128k(SPL.backup3),1920k(u-boot),128k(u-boot-env),5m(kernel),12441
6k(fs1),124416k(fs2),-(safe_area)
nand_erasesize=20000
nand_oobsize=40
nand_writesize=800
nandargs=run bootargs_defaults;setenv bootargs ${bootargs} root=${nandroot} noinitrd rootfstype=${nandrootfstype} ip=${ip_method}
nandboot=echo Booting from nand ...; run nandargs; nand read.i ${kloadaddr} ${nandsrcaddr} ${nandimgsize}; bootm ${kloadaddr}
nandimgsize=0x1000000
nandroot=ubi0:rootfs rw ubi.mtd=7,2048 noinitrd
nandrootfstype=ubifs rootwait=1
nandsrcaddr=0x780000
netargs=run bootargs_defaults;setenv bootargs ${bootargs} root=/dev/nfs nfsroot=${serverip}:${rootpath},${nfsopts} rw ip=dhcp
netboot=echo Booting from network ...; setenv autoload no; dhcp; tftp ${kloadaddr} ${bootfile}; run netargs; bootm ${kloadaddr}
nfsopts=nolock
partition=nand0,0
ramargs=setenv bootargs console=ttyO0,115200n8 root=/dev/ram0 rw ramdisk_size=65536 initrd=${rdaddr},64M rootfstype=ext2
ramboot=echo Booting from ramdisk ...; run ramargs; bootm 0x80200000
ramroot=/dev/ram0 rw ramdisk_size=65536 initrd=0x81000000,64M
ramrootfstype=ramdisk
rdaddr=84207239
rootpath=/export/rootfs
selected_img=1
spiargs=run bootargs_defaults;setenv bootargs ${bootargs} rootfstype=${spirootfstype} ip=${ip_method}
spiboot=echo Booting from spi ...; run spiargs; sf probe ${spibusno}:0; sf read ${kloadaddr} ${spisrcaddr} ${spiimgsize}; bootm ${kloadaddr}
spibusno=0
spiimgsize=0x362000
spiroot=/dev/mtdblock4 rw
spirootfstype=jffs2
spisrcaddr=0x80000
static_ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off
stderr=serial
stdin=serial
stdout=serial
usbnet_devaddr=00:18:31:e0:9a:d1
ver=U-Boot 2012.10 (Dec 16 2012 - 13:54:10)

Environment size: 3358/131068 bytes

thank you for any help

  • Hi Daniel,

    The System RAM begins on address 0x80000000, so I don't think you should pass "0x0" to the "-a" (load address) and "-e" (entry point) arguments of the mkimage command. Try passing the address 0x80008000.

    Best regards,
    Miroslav

  • ok Miroslav, the address was one of the problems. The other was -C gzip  option that does not work for me, but when using -C none  it find and start the kernel.

    but now it does not mount the filesystem in /dev/ram0. Bellow is my log. Do you have any ideia?

    U-Boot 2012.10 (Dec 16 2012 - 13:54:10)

    I2C: ready
    DRAM: 512 MiB
    WARNING: Caches not enabled
    NAND: 256 MiB
    MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
    musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
    musb-hdrc: MHDRC RTL version 2.0
    musb-hdrc: setup fifo_mode 4
    musb-hdrc: 28/31 max ep, 16384/16384 memory
    USB Peripheral mode controller at 47401000 using PIO, IRQ 0
    musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
    musb-hdrc: MHDRC RTL version 2.0
    musb-hdrc: setup fifo_mode 4
    musb-hdrc: 28/31 max ep, 16384/16384 memory
    USB Host mode controller at 47401800 using PIO, IRQ 0
    Net: cpsw, usb_ether
    Hit any key to stop autoboot: 0
    mmc_send_cmd : timeout: No status update
    Card did not respond to voltage select!
    Booting from nand ...

    NAND read: device 0 offset 0x780000, size 0x2000000
    Skipping bad block 0x00780000
    33554432 bytes read: OK
    ## Booting kernel from Legacy Image at 80008000 ...
    Image Name: test multifile
    Image Type: ARM Linux Multi-File Image (uncompressed)
    Data Size: 11995215 Bytes = 11.4 MiB
    Load Address: 90000000
    Entry Point: 90000000
    Contents:
    Image 0: 3207239 Bytes = 3.1 MiB
    Image 1: 8787963 Bytes = 8.4 MiB
    Verifying Checksum ... OK
    ## Loading init Ramdisk from multi component Legacy Image at 80008000 ...
    ## Flattened Device Tree from multi component Image at 80008000
    Loading Multi-File Image ... OK
    OK

    Starting kernel ...

    Uncompressing Linux... done, booting the kernel.
    [ 0.000000] Linux version 3.2.0 (formolo@formolo-OptiPlex-755) (gcc version 4.5.3 20110311 (prerelease) (GCC) ) #8 Thu Jun 20 11:30:05 BRT
    2013
    [ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7d
    [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [ 0.000000] Machine: am335xevm
    [ 0.000000] INITRD: 0x80317094+0x008617fb overlaps in-use memory region - disabling initrd
    [ 0.000000] Memory policy: ECC disabled, Data cache writeback
    [ 0.000000] AM335X ES1.0 (sgx neon )
    [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 130048
    [ 0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/ram0 rw initrd=80008000 rootfstype=ramdisk rootwait=1 ip=none root=/dev/r
    am0 rw initrd=0x80008000rootfstype=ramdisk rootwait=1ip=none
    [ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
    [ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
    [ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
    [ 0.000000] Memory: 512MB = 512MB total
    [ 0.000000] Memory: 513144k/513144k available, 11144k reserved, 0K highmem
    [ 0.000000] Virtual kernel memory layout:
    [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
    [ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
    [ 0.000000] vmalloc : 0xe0800000 - 0xff000000 ( 488 MB)
    [ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
    [ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
    [ 0.000000] .text : 0xc0008000 - 0xc05a0000 (5728 kB)
    [ 0.000000] .init : 0xc05a0000 - 0xc05de000 ( 248 kB)
    [ 0.000000] .data : 0xc05de000 - 0xc0646488 ( 418 kB)
    [ 0.000000] .bss : 0xc06464ac - 0xc0673364 ( 180 kB)
    [ 0.000000] NR_IRQS:396
    [ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
    [ 0.000000] Total of 128 interrupts on 1 active controller
    [ 0.000000] OMAP clockevent source: GPTIMER2 at 24000000 Hz
    [ 0.000000] OMAP clocksource: GPTIMER1 at 32768 Hz
    [ 0.000000] sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 131071999ms
    [ 0.000000] Console: colour dummy device 80x30
    [ 0.000152] Calibrating delay loop... 718.02 BogoMIPS (lpj=3590144)
    [ 0.058959] pid_max: default: 32768 minimum: 301
    [ 0.059082] Security Framework initialized
    [ 0.059173] Mount-cache hash table entries: 512
    [ 0.059539] CPU: Testing write buffer coherency: ok
    [ 0.080108] omap_hwmod: pruss: failed to hardreset
    [ 0.081237] print_constraints: dummy:
    [ 0.081604] NET: Registered protocol family 16
    [ 0.083770] OMAP GPIO hardware version 0.1
    [ 0.086364] omap_mux_init: Add partition: #1: core, flags: 0
    [ 0.088317] omap_i2c.1: alias fck already exists
    [ 0.089263] omap2_mcspi.1: alias fck already exists
    [ 0.089477] omap2_mcspi.2: alias fck already exists
    [ 0.090423] edma.0: alias fck already exists
    [ 0.090454] edma.0: alias fck already exists
    [ 0.090484] edma.0: alias fck already exists
    [ 0.117004] bio: create slab <bio-0> at 0
    [ 0.119262] SCSI subsystem initialized
    [ 0.120910] usbcore: registered new interface driver usbfs
    [ 0.121215] usbcore: registered new interface driver hub
    [ 0.121398] usbcore: registered new device driver usb
    [ 0.121551] musb-ti81xx musb-ti81xx: musb0, board_mode=0x13, plat_mode=0x3
    [ 0.121826] musb-ti81xx musb-ti81xx: musb1, board_mode=0x13, plat_mode=0x1
    [ 0.122955] omap_i2c omap_i2c.1: bus 1 rev2.4.0 at 100 kHz
    [ 0.124816] tps65910 1-002d: JTAGREVNUM 0x0
    [ 0.127197] print_constraints: VRTC:
    [ 0.128631] print_constraints: VIO: at 1800 mV
    [ 0.130950] print_constraints: VDD1: 600 <--> 1500 mV at 1262 mV normal
    [ 0.133270] print_constraints: VDD2: 600 <--> 1500 mV at 1137 mV normal
    [ 0.134246] print_constraints: VDD3: 5000 mV
    [ 0.135681] print_constraints: VDIG1: at 1800 mV
    [ 0.137084] print_constraints: VDIG2: at 1800 mV
    [ 0.138519] print_constraints: VPLL: at 1800 mV
    [ 0.139923] print_constraints: VDAC: at 1800 mV
    [ 0.141357] print_constraints: VAUX1: at 1800 mV
    [ 0.142791] print_constraints: VAUX2: at 3300 mV
    [ 0.144195] print_constraints: VAUX33: at 3300 mV
    [ 0.145629] print_constraints: VMMC: at 3300 mV
    [ 0.146118] tps65910 1-002d: No interrupt support, no core IRQ
    [ 0.147369] Advanced Linux Sound Architecture Driver Version 1.0.24.
    [ 0.148498] Switching to clocksource gp timer
    [ 0.163879] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
    [ 0.164062] musb-hdrc musb-hdrc.0: dma type: pio
    [ 0.164367] MUSB0 controller's USBSS revision = 4ea20800
    [ 0.165008] musb-hdrc musb-hdrc.0: USB OTG mode controller at e083c000 using PIO, IRQ 18
    [ 0.165191] musb-hdrc musb-hdrc.1: dma type: pio
    [ 0.165496] MUSB1 controller's USBSS revision = 4ea20800
    [ 0.165649] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
    [ 0.165740] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
    [ 0.165893] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [ 0.165893] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [ 0.165893] usb usb1: Product: MUSB HDRC host driver
    [ 0.165924] usb usb1: Manufacturer: Linux 3.2.0 musb-hcd
    [ 0.165924] usb usb1: SerialNumber: musb-hdrc.1
    [ 0.166748] hub 1-0:1.0: USB hub found
    [ 0.166778] hub 1-0:1.0: 1 port detected
    [ 0.167297] musb-hdrc musb-hdrc.1: USB Host mode controller at e083e800 using PIO, IRQ 19
    [ 0.167724] NET: Registered protocol family 2
    [ 0.167907] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
    [ 0.168212] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
    [ 0.168579] TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
    [ 0.168762] TCP: Hash tables configured (established 16384 bind 16384)
    [ 0.168792] TCP reno registered
    [ 0.168792] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [ 0.168823] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [ 0.169006] NET: Registered protocol family 1
    [ 0.169281] RPC: Registered named UNIX socket transport module.
    [ 0.169281] RPC: Registered udp transport module.
    [ 0.169281] RPC: Registered tcp transport module.
    [ 0.169311] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [ 0.169555] NetWinder Floating Point Emulator V0.97 (double precision)
    [ 0.190795] VFS: Disk quotas dquot_6.5.2
    [ 0.190856] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [ 0.191436] msgmni has been set to 1002
    [ 0.194641] alg: No test for stdrng (krng)
    [ 0.195312] io scheduler noop registered
    [ 0.195312] io scheduler deadline registered
    [ 0.195404] io scheduler cfq registered (default)
    [ 0.199157] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
    [ 0.832519] console [ttyO0] enabled
    [ 0.836791] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
    [ 0.844604] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
    [ 0.852416] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
    [ 0.860198] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
    [ 0.867919] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
    [ 0.876190] omap4_rng omap4_rng: OMAP4 Random Number Generator ver. 2.00
    [ 0.892517] brd: module loaded
    [ 0.900573] loop: module loaded
    [ 0.904052] i2c-core: driver [tsl2550] using legacy suspend method
    [ 0.910522] i2c-core: driver [tsl2550] using legacy resume method
    [ 0.916931] at24 1-0051: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
    [ 0.930847] Detected a daughter card on AM335x EVM..
    [ 0.935852] CPLD version: CPLD1.0F
    [ 0.939636] at24 1-0050: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
    [ 0.954772] Board name: A33515BB
    [ 0.958129] Board version: 1.2A
    [ 0.961425] SKU: SKU#01
    [ 0.964508] The board is general purpose EVM in profile 0
    [ 0.971160] da8xx_lcdc.0: alias fck already exists
    [ 0.976654] da8xx_lcdc da8xx_lcdc.0: GLCD: Found TFC_S9700RTWV35TR_01B panel
    [ 1.000335] Console: switching to colour frame buffer device 100x30
    [ 1.016998] omap-gpmc omap-gpmc: GPMC revision 6.0
    [ 1.022064] Registering NAND on CS0
    [ 1.026397] omap_i2c.2: alias fck already exists
    [ 1.031707] omap_i2c omap_i2c.2: bus 2 rev2.4.0 at 100 kHz
    [ 1.038146] tsl2550 2-0039: standard operating mode
    [ 1.043945] tsl2550 2-0039: support ver. 1.2 enabled
    [ 1.049987] davinci-mcasp.1: alias fck already exists
    [ 1.055786] omap_hsmmc.0: alias fck already exists
    [ 1.061218] omap_hsmmc.2: alias fck already exists
    [ 1.066619] Configure Bluetooth Enable pin...
    [ 1.072601] registered am33xx_sr device
    [ 1.076843] _regulator_get: 2-0018 supply Vdd not found, using dummy regulator
    [ 1.084503] _regulator_get: 2-0018 supply Vdd_IO not found, using dummy regulator
    [ 1.112915] lis3lv02d: 8 bits 3DLH sensor found
    [ 1.209533] input: ST LIS3LV02DL Accelerometer as /devices/platform/lis3lv02d/input/input0
    [ 1.221313] mtdoops: mtd device (mtddev=name/number) must be supplied
    [ 1.228576] omap2-nand driver initializing
    [ 1.233245] ONFI flash detected
    [ 1.236633] ONFI param page 0 valid
    [ 1.240295] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron MT29F2G08ABAEAWP)
    [ 1.248870] Creating 10 MTD partitions on "omap2-nand.0":
    [ 1.254547] 0x000000000000-0x000000020000 : "SPL"
    [ 1.260864] 0x000000020000-0x000000040000 : "SPL.backup1"
    [ 1.267730] 0x000000040000-0x000000060000 : "SPL.backup2"
    [ 1.274627] 0x000000060000-0x000000080000 : "SPL.backup3"
    [ 1.281555] 0x000000080000-0x000000260000 : "U-Boot"
    [ 1.288696] 0x000000260000-0x000000280000 : "U-Boot Env"
    [ 1.295562] 0x000000280000-0x000000780000 : "Kernel"
    [ 1.304107] 0x000000780000-0x000008100000 : "fs1"
    [ 1.360687] 0x000008100000-0x00000fa80000 : "fs2"
    [ 1.417236] 0x00000fa80000-0x000010000000 : "safe_area"
    [ 1.426361] OneNAND driver initializing
    [ 1.431854] CAN device driver interface
    [ 1.435852] CAN bus driver for Bosch D_CAN controller 1.0
    [ 1.489135] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
    [ 1.495605] davinci_mdio davinci_mdio.0: detected phy mask fffffffe
    [ 1.503051] davinci_mdio.0: probed
    [ 1.506622] davinci_mdio davinci_mdio.0: phy[0]: device 0:00, driver unknown
    [ 1.514343] usbcore: registered new interface driver zd1201
    [ 1.520355] usbcore: registered new interface driver cdc_ether
    [ 1.526580] usbcore: registered new interface driver cdc_eem
    [ 1.532653] usbcore: registered new interface driver dm9601
    [ 1.538513] cdc_ncm: 04-Aug-2011
    [ 1.542053] usbcore: registered new interface driver cdc_ncm
    [ 1.547973] Initializing USB Mass Storage driver...
    [ 1.553283] usbcore: registered new interface driver usb-storage
    [ 1.559570] USB Mass Storage support registered.
    [ 1.564819] mousedev: PS/2 mouse device common for all mice
    [ 1.571594] input: matrix-keypad as /devices/platform/matrix-keypad/input/input1
    [ 1.580566] input: ti-tsc as /devices/platform/omap/ti_tscadc/tsc/input/input2
    [ 1.589202] omap_rtc am33xx-rtc: rtc core: registered am33xx-rtc as rtc0
    [ 1.596435] i2c /dev entries driver
    [ 1.600738] Linux video capture interface: v2.00
    [ 1.605865] usbcore: registered new interface driver uvcvideo
    [ 1.611907] USB Video Class driver (1.1.1)
    [ 1.617065] lm75 2-0048: hwmon0: sensor 'tmp275'
    [ 1.624816] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [ 1.633392] cpuidle: using governor ladder
    [ 1.638153] cpuidle: using governor menu
    [ 1.716064] omap4_aes_mod_init: loading AM33X AES driver
    [ 1.721740] omap4-aes omap4-aes: AM33X AES hw accel rev: 3.02
    [ 1.728271] omap4_aes_probe: probe() done
    [ 1.732727] omap4_sham_mod_init: loading AM33X SHA/MD5 driver
    [ 1.738861] omap4-sham omap4-sham: AM33X SHA/MD5 hw accel rev: 4.03
    [ 1.750701] omap4_sham_probe: probe() done
    [ 1.757446] usbcore: registered new interface driver usbhid
    [ 1.763305] usbhid: USB HID core driver
    [ 1.768035] usbcore: registered new interface driver snd-usb-audio
    [ 1.778961] mmc1: card claims to support voltages below the defined range. These will be ignored.
    [ 1.789031] _regulator_get: 2-001b supply IOVDD not found, using dummy regulator
    [ 1.796875] _regulator_get: 2-001b supply DVDD not found, using dummy regulator
    [ 1.804565] _regulator_get: 2-001b supply AVDD not found, using dummy regulator
    [ 1.812225] _regulator_get: 2-001b supply DRVDD not found, using dummy regulator
    [ 1.822814] asoc: tlv320aic3x-hifi <-> davinci-mcasp.1 mapping ok
    [ 1.830688] ALSA device list:
    [ 1.833801] #0: AM335X EVM
    [ 1.836791] oprofile: hardware counters not available
    [ 1.842071] oprofile: using timer interrupt.
    [ 1.846557] nf_conntrack version 0.5.0 (8017 buckets, 32068 max)
    [ 1.853424] ip_tables: (C) 2000-2006 Netfilter Core Team
    [ 1.859069] TCP cubic registered
    [ 1.862457] NET: Registered protocol family 17
    [ 1.867095] can: controller area network core (rev 20090105 abi 8)
    [ 1.873657] NET: Registered protocol family 29
    [ 1.878265] can: raw protocol (rev 20090105)
    [ 1.882751] can: broadcast manager protocol (rev 20090105 t)
    [ 1.888671] Registering the dns_resolver key type
    [ 1.893707] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [ 1.901702] ThumbEE CPU extension supported.
    [ 1.906219] mux: Failed to setup hwmod io irq -22
    [ 1.911773] Power Management for AM33XX family
    [ 1.916625] Trying to load am335x-pm-firmware.bin (60 secs timeout)
    [ 1.923309] Copied the M3 firmware to UMEM
    [ 1.927795] smartreflex smartreflex: am33xx_sr_probe: Zero NValue read from EFUSE
    [ 1.935638] smartreflex: probe of smartreflex failed with error -22
    [ 1.942718] sr_init: platform driver register failed
    [ 1.952941] clock: disabling unused clocks to save power
    [ 1.972106] Detected MACID=0:18:31:e0:9a:d1
    [ 1.977569] cpsw: Detected MACID = 00:18:31:e0:9a:d2
    [ 1.984527] input: gpio-keys as /devices/platform/gpio-keys/input/input3
    [ 1.992431] omap_rtc am33xx-rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
    [ 2.002105] VFS: Cannot open root device "ram0" or unknown-block(1,0)
    [ 2.008850] Please append a correct "root=" boot option; here are the available partitions:
    [ 2.017608] 1f00 128 mtdblock0 (driver?)
    [ 2.022918] 1f01 128 mtdblock1 (driver?)
    [ 2.028167] 1f02 128 mtdblock2 (driver?)
    [ 2.033447] 1f03 128 mtdblock3 (driver?)
    [ 2.038726] 1f04 1920 mtdblock4 (driver?)
    [ 2.044006] 1f05 128 mtdblock5 (driver?)
    [ 2.049285] 1f06 5120 mtdblock6 (driver?)
    [ 2.054565] 1f07 124416 mtdblock7 (driver?)
    [ 2.059844] 1f08 124416 mtdblock8 (driver?)
    [ 2.065124] 1f09 5632 mtdblock9 (driver?)
    [ 2.070404] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0)
    [ 2.079010] Backtrace:
    [ 2.081604] [<c0017978>] (dump_backtrace+0x0/0x110) from [<c0423c5c>] (dump_stack+0x18/0x1c)
    [ 2.090423] r6:df924000 r5:c05cf3ac r4:c06474c8 r3:c06007c8
    [ 2.096343] [<c0423c44>] (dump_stack+0x0/0x1c) from [<c0423ccc>] (panic+0x6c/0x1a0)
    [ 2.104339] [<c0423c60>] (panic+0x0/0x1a0) from [<c05a0cb4>] (mount_block_root+0x184/0x228)
    [ 2.113037] r3:c06007c8 r2:00000000 r1:df82df58 r0:c0500a10
    [ 2.118957] r7:00008000
    [ 2.121612] [<c05a0b30>] (mount_block_root+0x0/0x228) from [<c05a0f1c>] (mount_root+0xd8/0xe0)
    [ 2.130615] [<c05a0e44>] (mount_root+0x0/0xe0) from [<c05a10bc>] (prepare_namespace+0x198/0x1d4)
    [ 2.139770] r4:c0646520
    [ 2.142425] [<c05a0f24>] (prepare_namespace+0x0/0x1d4) from [<c05a090c>] (kernel_init+0x124/0x130)
    [ 2.151794] r5:c05dd654 r4:c05dd654
    [ 2.155548] [<c05a07e8>] (kernel_init+0x0/0x130) from [<c0041724>] (do_exit+0x0/0x67c)
    [ 2.163787] r5:c05a07e8 r4:00000000

  • maybe the ramdisk is not ok.

    I followed this link to create the ramdisk: http://processors.wiki.ti.com/index.php/Creating_a_RAMDISK

  • Hi,

    Please post your U-Boot variables.

    U-Boot# print

    Best regards,
    Miroslav

  • Hi Miroslav. That are my U-Boot variables:

    U-Boot# printenv

    baudrate=115200
    bootargs=console=ttyO0,115200n8 root=/dev/ram0 rw initrd=80008000 rootfstype=ramdisk rootwait=1 ip=none
    bootargs_defaults=setenv bootargs console=${console} ${optargs}
    bootcmd=if mmc rescan ${mmcdev}; then echo SD/MMC found on device ${mmcdev};if run loadbootenv; then echo Loaded environment from ${bootenv};r
    un importbootenv;fi;if test -n $uenvcmd; then echo Running uenvcmd ...;run uenvcmd;fi;if run loaduimagefat; then run mmcboot;elif run loaduima
    ge; then run mmcboot;else echo Cound not find ${bootfile} ;fi;else run nandboot;fi;
    bootdelay=3
    bootenv=uEnv.txt
    bootfile=uImage
    bootm=0x00000000 0x80007fc0
    console=ttyO0,115200n8
    dfu_alt_info=SPL part 0 1;SPL.backup1 part 0 2;SPL.backup2 part 0 3;SPL.backup3 part 0 4;u-boot part 0 5;kernel part 0 7;rootfs part 0 8
    ethact=cpsw
    ethaddr=00:18:31:e0:9a:d1
    fdtaddr=0x80F80000
    fileaddr=B0000000
    filesize=8617FB
    importbootenv=echo Importing environment from mmc ...; env import -t $loadaddr $filesize
    ip_method=none
    ipaddr=192.168.1.188
    kloadaddr=80008000
    loadaddr=0x80200000
    loadbootenv=fatload mmc ${mmcdev} ${loadaddr} ${bootenv}
    loadramdisk=fatload mmc ${mmcdev} ${rdaddr} ramdisk.gz
    loaduimage=ext2load mmc ${mmcdev}:2 ${kloadaddr} /boot/${bootfile}
    loaduimagefat=fatload mmc ${mmcdev} ${kloadaddr} ${bootfile}
    mmcargs=run bootargs_defaults;setenv bootargs ${bootargs} root=${mmcroot} rootfstype=${mmcrootfstype} ip=${ip_method}
    mmcboot=echo Booting from mmc ...; run mmcargs; bootm ${kloadaddr}
    mmcdev=0
    mmcroot=/dev/mmcblk0p2 rw
    mmcrootfstype=ext2 rootwait
    mtddevname=SPL
    mtddevnum=0
    mtdids=nand0=omap2-nand.0
    mtdparts=mtdparts=omap2-nand.0:128k(SPL),128k(SPL.backup1),128k(SPL.backup2),128k(SPL.backup3),1920k(u-boot),128k(u-boot-env),5m(kernel),12441
    6k(fs1),124416k(fs2),-(safe_area)
    nand_erasesize=20000
    nand_oobsize=40
    nand_writesize=800
    nandargs=run bootargs_defaults;setenv bootargs console=ttyO0,115200n8 root=/dev/ram0 rw initrd=80008000 rootfstype=ramdisk rootwait=1 ip=none
    root=/dev/ram0 rw initrd=0x80008000rootfstype=ramdisk rootwait=1ip=none
    nandboot=echo Booting from nand ...; run nandargs; nand read.i ${kloadaddr} ${nandsrcaddr} ${nandimgsize}; bootm ${kloadaddr}
    nandimgsize=0x2000000
    nandroot=/dev/ram0 rw
    nandrootfstype=ramdisk rootwait=1
    nandsrcaddr=0x780000
    netargs=run bootargs_defaults;setenv bootargs ${bootargs} root=/dev/nfs nfsroot=${serverip}:${rootpath},${nfsopts} rw ip=dhcp
    netboot=echo Booting from network ...; setenv autoload no; dhcp; tftp ${kloadaddr} ${bootfile}; run netargs; bootm ${kloadaddr}
    nfsopts=nolock
    partition=nand0,0
    ramargs=setenv bootargs console=ttyO0,115200n8 root=/dev/ram0 rw ramdisk_size=65536 initrd=${rdaddr},64M rootfstype=ext2
    ramboot=echo Booting from ramdisk ...; run ramargs; bootm 0x80200000
    ramroot=/dev/ram0 rw ramdisk_size=65536 initrd=0x81000000,64M
    ramrootfstype=ramdisk
    rd_size=32768
    rdaddr=84207239
    rootpath=/export/rootfs
    selected_img=1
    serverip=192.168.1.164
    spiargs=run bootargs_defaults;setenv bootargs ${bootargs} rootfstype=${spirootfstype} ip=${ip_method}
    spiboot=echo Booting from spi ...; run spiargs; sf probe ${spibusno}:0; sf read ${kloadaddr} ${spisrcaddr} ${spiimgsize}; bootm ${kloadaddr}
    spibusno=0
    spiimgsize=0x362000
    spiroot=/dev/mtdblock4 rw
    spirootfstype=jffs2
    spisrcaddr=0x80000
    static_ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off
    stderr=serial
    stdin=serial
    stdout=serial
    usbnet_devaddr=00:18:31:e0:9a:d1
    ver=U-Boot 2012.10 (Dec 16 2012 - 13:54:10)

    Environment size: 3572/131068 bytes

  • I am saving uMulti file in nand 0x780000 address.

  • following the script, it executes this commands on uboot:

    run bootargs_defaults;
    setenv bootargs ${bootargs} root=${nandroot} initrd=80008000 rootfstype=${nandrootfstype} ip=${ip_method}
    nand read.i ${kloadaddr} ${nandsrcaddr} ${nandimgsize};
    bootm ${kloadaddr}

  • You have done some serious modifications to the U-Boot environment variables. Why?

    Why have you created a variable "bootm"? "bootm" is a command that boots application image from memory. Also why have you changed the kloadaddr?

    Right now I can see that U-Boot is performing "nandboot" which loads "nandargs" which seem to have some error:

    nandargs=run bootargs_defaults;setenv bootargs console=ttyO0,115200n8 root=/dev/ram0 rw initrd=80008000 rootfstype=ramdisk rootwait=1 ip=none
    root=/dev/ram0 rw initrd=0x80008000rootfstype=ramdisk rootwait=1ip=none

    It seems like you copy-pasted twice and the spaces between the arguments at the end are missing.

    Please reset your U-Boot environment variables to working defaults and edit only the ones you actually need and then start fresh.

    You may also find these two links useful:

    http://processors.wiki.ti.com/index.php/Create_a_CRAMFS_Target_Image

    http://processors.wiki.ti.com/index.php/Put_CRAMFS_Image_to_Flash

    Best regards,
    Miroslav

  • Ok I fix some errors and now the boot process shows me the following error:

    ...

    RAMDISK: gzip image found at block 0
    [ 2.061096] mmc1: queuing unknown CIS tuple 0x91 (3 bytes)
    [ 2.081207] mmc1: new SDIO card at address 0001
    [ 2.374450] RAMDISK: incomplete write (6607 != 32768)
    [ 2.379760] write error
    [ 2.526367] Root-NFS: no NFS server address
    [ 2.530822] VFS: Unable to mount root fs via NFS, trying floppy.
    [ 2.537780] VFS: Cannot open root device "(null)" or unknown-block(2,0)

    ...


    The bootargs is:

    [ 0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/ram0 rw initrd=86007fc0 rootfstype=ramdisk rootwait=1 ip=none disk_size=32768k

    it seems write() error. Can this occur by RAM block definition size?

    In file /ti-sdk-am335x-evm-05.06.00.00/board-support/linux-3.2.0-psp05.06.00.00/arch/arm/configs/am335x_evm_defconfig are defined:

    CONFIG_BLK_DEV_RAM=y
    CONFIG_BLK_DEV_RAM_COUNT=16
    CONFIG_BLK_DEV_RAM_SIZE=16384

    I created the ramdisk with the commands described in: http://processors.wiki.ti.com/index.php/Creating_a_RAMDISK

    That could be a relation?

    bellow is the whole log. Best regards.

    Uncompressing Linux... done, booting the kernel.
    [ 0.000000] Linux version 3.2.0 (formolo@formolo-OptiPlex-755) (gcc version 4.5.3 20110311 (prerelease) (GCC) ) #8 Thu Jun 20 11:30:05 BRT
    2013
    [ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7d
    [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [ 0.000000] Machine: am335xevm
    [ 0.000000] Memory policy: ECC disabled, Data cache writeback
    [ 0.000000] AM335X ES1.0 (sgx neon )
    [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 130048
    [ 0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/ram0 rw initrd=86007fc0 rootfstype=ramdisk rootwait=1 ip=none disk_size=32
    768k
    [ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
    [ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
    [ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
    [ 0.000000] Memory: 512MB = 512MB total
    [ 0.000000] Memory: 504560k/504560k available, 19728k reserved, 0K highmem
    [ 0.000000] Virtual kernel memory layout:
    [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
    [ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
    [ 0.000000] vmalloc : 0xe0800000 - 0xff000000 ( 488 MB)
    [ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
    [ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
    [ 0.000000] .text : 0xc0008000 - 0xc05a0000 (5728 kB)
    [ 0.000000] .init : 0xc05a0000 - 0xc05de000 ( 248 kB)
    [ 0.000000] .data : 0xc05de000 - 0xc0646488 ( 418 kB)
    [ 0.000000] .bss : 0xc06464ac - 0xc0673364 ( 180 kB)
    [ 0.000000] NR_IRQS:396
    [ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
    [ 0.000000] Total of 128 interrupts on 1 active controller
    [ 0.000000] OMAP clockevent source: GPTIMER2 at 24000000 Hz
    [ 0.000000] OMAP clocksource: GPTIMER1 at 32768 Hz
    [ 0.000000] sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 131071999ms
    [ 0.000000] Console: colour dummy device 80x30
    [ 0.000152] Calibrating delay loop... 718.02 BogoMIPS (lpj=3590144)
    [ 0.058929] pid_max: default: 32768 minimum: 301
    [ 0.059082] Security Framework initialized
    [ 0.059173] Mount-cache hash table entries: 512
    [ 0.059539] CPU: Testing write buffer coherency: ok
    [ 0.080078] omap_hwmod: pruss: failed to hardreset
    [ 0.081207] print_constraints: dummy:
    [ 0.081573] NET: Registered protocol family 16
    [ 0.083740] OMAP GPIO hardware version 0.1
    [ 0.086334] omap_mux_init: Add partition: #1: core, flags: 0
    [ 0.088287] omap_i2c.1: alias fck already exists
    [ 0.089233] omap2_mcspi.1: alias fck already exists
    [ 0.089477] omap2_mcspi.2: alias fck already exists
    [ 0.090393] edma.0: alias fck already exists
    [ 0.090423] edma.0: alias fck already exists
    [ 0.090454] edma.0: alias fck already exists
    [ 0.117187] bio: create slab <bio-0> at 0
    [ 0.119445] SCSI subsystem initialized
    [ 0.121063] usbcore: registered new interface driver usbfs
    [ 0.121368] usbcore: registered new interface driver hub
    [ 0.121582] usbcore: registered new device driver usb
    [ 0.121734] musb-ti81xx musb-ti81xx: musb0, board_mode=0x13, plat_mode=0x3
    [ 0.122009] musb-ti81xx musb-ti81xx: musb1, board_mode=0x13, plat_mode=0x1
    [ 0.123138] omap_i2c omap_i2c.1: bus 1 rev2.4.0 at 100 kHz
    [ 0.125000] tps65910 1-002d: JTAGREVNUM 0x0
    [ 0.127380] print_constraints: VRTC:
    [ 0.128845] print_constraints: VIO: at 1800 mV
    [ 0.131164] print_constraints: VDD1: 600 <--> 1500 mV at 1262 mV normal
    [ 0.133483] print_constraints: VDD2: 600 <--> 1500 mV at 1137 mV normal
    [ 0.134490] print_constraints: VDD3: 5000 mV
    [ 0.135894] print_constraints: VDIG1: at 1800 mV
    [ 0.137298] print_constraints: VDIG2: at 1800 mV
    [ 0.138732] print_constraints: VPLL: at 1800 mV
    [ 0.140167] print_constraints: VDAC: at 1800 mV
    [ 0.141571] print_constraints: VAUX1: at 1800 mV
    [ 0.143005] print_constraints: VAUX2: at 3300 mV
    [ 0.144439] print_constraints: VAUX33: at 3300 mV
    [ 0.145843] print_constraints: VMMC: at 3300 mV
    [ 0.146362] tps65910 1-002d: No interrupt support, no core IRQ
    [ 0.147583] Advanced Linux Sound Architecture Driver Version 1.0.24.
    [ 0.148712] Switching to clocksource gp timer
    [ 0.164123] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
    [ 0.164306] musb-hdrc musb-hdrc.0: dma type: pio
    [ 0.164642] MUSB0 controller's USBSS revision = 4ea20800
    [ 0.165283] musb-hdrc musb-hdrc.0: USB OTG mode controller at e083c000 using PIO, IRQ 18
    [ 0.165435] musb-hdrc musb-hdrc.1: dma type: pio
    [ 0.165740] MUSB1 controller's USBSS revision = 4ea20800
    [ 0.165924] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
    [ 0.165985] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
    [ 0.166137] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [ 0.166137] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [ 0.166168] usb usb1: Product: MUSB HDRC host driver
    [ 0.166168] usb usb1: Manufacturer: Linux 3.2.0 musb-hcd
    [ 0.166168] usb usb1: SerialNumber: musb-hdrc.1
    [ 0.166961] hub 1-0:1.0: USB hub found
    [ 0.166992] hub 1-0:1.0: 1 port detected
    [ 0.167541] musb-hdrc musb-hdrc.1: USB Host mode controller at e083e800 using PIO, IRQ 19
    [ 0.167938] NET: Registered protocol family 2
    [ 0.168151] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
    [ 0.168457] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
    [ 0.168823] TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
    [ 0.169006] TCP: Hash tables configured (established 16384 bind 16384)
    [ 0.169036] TCP reno registered
    [ 0.169036] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [ 0.169067] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [ 0.169250] NET: Registered protocol family 1
    [ 0.169494] RPC: Registered named UNIX socket transport module.
    [ 0.169525] RPC: Registered udp transport module.
    [ 0.169525] RPC: Registered tcp transport module.
    [ 0.169525] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [ 0.169799] Trying to unpack rootfs image as initramfs...
    [ 0.170593] rootfs image is not initramfs (no cpio magic); looks like an initrd
    [ 0.215484] Freeing initrd memory: 8580K
    [ 0.215515] NetWinder Floating Point Emulator V0.97 (double precision)
    [ 0.237121] VFS: Disk quotas dquot_6.5.2
    [ 0.237182] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [ 0.237762] msgmni has been set to 1002
    [ 0.241027] alg: No test for stdrng (krng)
    [ 0.241699] io scheduler noop registered
    [ 0.241729] io scheduler deadline registered
    [ 0.241790] io scheduler cfq registered (default)
    [ 0.245483] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
    [ 0.882537] console [ttyO0] enabled
    [ 0.886779] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
    [ 0.894622] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
    [ 0.902404] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
    [ 0.910186] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
    [ 0.917938] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
    [ 0.926208] omap4_rng omap4_rng: OMAP4 Random Number Generator ver. 2.00
    [ 0.942535] brd: module loaded
    [ 0.950561] loop: module loaded
    [ 0.954010] i2c-core: driver [tsl2550] using legacy suspend method
    [ 0.960510] i2c-core: driver [tsl2550] using legacy resume method
    [ 0.966918] at24 1-0051: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
    [ 0.980834] Detected a daughter card on AM335x EVM..
    [ 0.985839] CPLD version: CPLD1.0F
    [ 0.989593] at24 1-0050: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
    [ 1.004760] Board name: A33515BB
    [ 1.008117] Board version: 1.2A
    [ 1.011413] SKU: SKU#01
    [ 1.014495] The board is general purpose EVM in profile 0
    [ 1.021148] da8xx_lcdc.0: alias fck already exists
    [ 1.026641] da8xx_lcdc da8xx_lcdc.0: GLCD: Found TFC_S9700RTWV35TR_01B panel
    [ 1.050415] Console: switching to colour frame buffer device 100x30
    [ 1.067230] omap-gpmc omap-gpmc: GPMC revision 6.0
    [ 1.072296] Registering NAND on CS0
    [ 1.076660] omap_i2c.2: alias fck already exists
    [ 1.081970] omap_i2c omap_i2c.2: bus 2 rev2.4.0 at 100 kHz
    [ 1.088439] tsl2550 2-0039: standard operating mode
    [ 1.094238] tsl2550 2-0039: support ver. 1.2 enabled
    [ 1.100097] davinci-mcasp.1: alias fck already exists
    [ 1.105895] omap_hsmmc.0: alias fck already exists
    [ 1.111328] omap_hsmmc.2: alias fck already exists
    [ 1.116729] Configure Bluetooth Enable pin...
    [ 1.122711] registered am33xx_sr device
    [ 1.126953] _regulator_get: 2-0018 supply Vdd not found, using dummy regulator
    [ 1.134613] _regulator_get: 2-0018 supply Vdd_IO not found, using dummy regulator
    [ 1.163055] lis3lv02d: 8 bits 3DLH sensor found
    [ 1.259765] input: ST LIS3LV02DL Accelerometer as /devices/platform/lis3lv02d/input/input0
    [ 1.271545] mtdoops: mtd device (mtddev=name/number) must be supplied
    [ 1.278839] omap2-nand driver initializing
    [ 1.283477] ONFI flash detected
    [ 1.286865] ONFI param page 0 valid
    [ 1.290527] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron MT29F2G08ABAEAWP)
    [ 1.299102] Creating 10 MTD partitions on "omap2-nand.0":
    [ 1.304779] 0x000000000000-0x000000020000 : "SPL"
    [ 1.311096] 0x000000020000-0x000000040000 : "SPL.backup1"
    [ 1.317932] 0x000000040000-0x000000060000 : "SPL.backup2"
    [ 1.324859] 0x000000060000-0x000000080000 : "SPL.backup3"
    [ 1.331756] 0x000000080000-0x000000260000 : "U-Boot"
    [ 1.338928] 0x000000260000-0x000000280000 : "U-Boot Env"
    [ 1.345825] 0x000000280000-0x000000780000 : "Kernel"
    [ 1.354309] 0x000000780000-0x000008100000 : "fs1"
    [ 1.410888] 0x000008100000-0x00000fa80000 : "fs2"
    [ 1.467437] 0x00000fa80000-0x000010000000 : "safe_area"
    [ 1.476531] OneNAND driver initializing
    [ 1.481994] CAN device driver interface
    [ 1.485992] CAN bus driver for Bosch D_CAN controller 1.0
    [ 1.539367] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
    [ 1.545806] davinci_mdio davinci_mdio.0: detected phy mask fffffffe
    [ 1.553314] davinci_mdio.0: probed
    [ 1.556854] davinci_mdio davinci_mdio.0: phy[0]: device 0:00, driver unknown
    [ 1.564575] usbcore: registered new interface driver zd1201
    [ 1.570617] usbcore: registered new interface driver cdc_ether
    [ 1.576843] usbcore: registered new interface driver cdc_eem
    [ 1.582916] usbcore: registered new interface driver dm9601
    [ 1.588775] cdc_ncm: 04-Aug-2011
    [ 1.592315] usbcore: registered new interface driver cdc_ncm
    [ 1.598205] Initializing USB Mass Storage driver...
    [ 1.603546] usbcore: registered new interface driver usb-storage
    [ 1.609802] USB Mass Storage support registered.
    [ 1.615081] mousedev: PS/2 mouse device common for all mice
    [ 1.621856] input: matrix-keypad as /devices/platform/matrix-keypad/input/input1
    [ 1.630859] input: ti-tsc as /devices/platform/omap/ti_tscadc/tsc/input/input2
    [ 1.639526] omap_rtc am33xx-rtc: rtc core: registered am33xx-rtc as rtc0
    [ 1.646697] i2c /dev entries driver
    [ 1.651000] Linux video capture interface: v2.00
    [ 1.656158] usbcore: registered new interface driver uvcvideo
    [ 1.662170] USB Video Class driver (1.1.1)
    [ 1.667327] lm75 2-0048: hwmon0: sensor 'tmp275'
    [ 1.675109] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [ 1.683685] cpuidle: using governor ladder
    [ 1.688446] cpuidle: using governor menu
    [ 1.766387] omap4_aes_mod_init: loading AM33X AES driver
    [ 1.772064] omap4-aes omap4-aes: AM33X AES hw accel rev: 3.02
    [ 1.778625] omap4_aes_probe: probe() done
    [ 1.783081] omap4_sham_mod_init: loading AM33X SHA/MD5 driver
    [ 1.789184] omap4-sham omap4-sham: AM33X SHA/MD5 hw accel rev: 4.03
    [ 1.801055] omap4_sham_probe: probe() done
    [ 1.807830] usbcore: registered new interface driver usbhid
    [ 1.813690] usbhid: USB HID core driver
    [ 1.818389] usbcore: registered new interface driver snd-usb-audio
    [ 1.829315] mmc1: card claims to support voltages below the defined range. These will be ignored.
    [ 1.839477] _regulator_get: 2-001b supply IOVDD not found, using dummy regulator
    [ 1.847259] _regulator_get: 2-001b supply DVDD not found, using dummy regulator
    [ 1.854919] _regulator_get: 2-001b supply AVDD not found, using dummy regulator
    [ 1.862609] _regulator_get: 2-001b supply DRVDD not found, using dummy regulator
    [ 1.873199] asoc: tlv320aic3x-hifi <-> davinci-mcasp.1 mapping ok
    [ 1.881042] ALSA device list:
    [ 1.884155] #0: AM335X EVM
    [ 1.887176] oprofile: hardware counters not available
    [ 1.892456] oprofile: using timer interrupt.
    [ 1.896942] nf_conntrack version 0.5.0 (8017 buckets, 32068 max)
    [ 1.903778] ip_tables: (C) 2000-2006 Netfilter Core Team
    [ 1.909454] TCP cubic registered
    [ 1.912841] NET: Registered protocol family 17
    [ 1.917480] can: controller area network core (rev 20090105 abi 8)
    [ 1.924041] NET: Registered protocol family 29
    [ 1.928680] can: raw protocol (rev 20090105)
    [ 1.933135] can: broadcast manager protocol (rev 20090105 t)
    [ 1.939056] Registering the dns_resolver key type
    [ 1.944061] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [ 1.952056] ThumbEE CPU extension supported.
    [ 1.956573] mux: Failed to setup hwmod io irq -22
    [ 1.962158] Power Management for AM33XX family
    [ 1.967010] Trying to load am335x-pm-firmware.bin (60 secs timeout)
    [ 1.973693] Copied the M3 firmware to UMEM
    [ 1.978149] smartreflex smartreflex: am33xx_sr_probe: Zero NValue read from EFUSE
    [ 1.985992] smartreflex: probe of smartreflex failed with error -22
    [ 1.993103] sr_init: platform driver register failed
    [ 2.003295] clock: disabling unused clocks to save power
    [ 2.022369] Detected MACID=0:18:31:e0:9a:d1
    [ 2.027832] cpsw: Detected MACID = 00:18:31:e0:9a:d2
    [ 2.034790] input: gpio-keys as /devices/platform/gpio-keys/input/input3
    [ 2.042663] omap_rtc am33xx-rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
    [ 2.052032] RAMDISK: gzip image found at block 0
    [ 2.070343] mmc1: queuing unknown CIS tuple 0x91 (3 bytes)
    [ 2.091217] mmc1: new SDIO card at address 0001
    [ 2.384490] RAMDISK: incomplete write (6607 != 32768)
    [ 2.389801] write error
    [ 2.537017] VFS: Cannot open root device "ram" or unknown-block(1,0)
    [ 2.543731] Please append a correct "root=" boot option; here are the available partitions:
    [ 2.552490] 1f00 128 mtdblock0 (driver?)
    [ 2.557769] 1f01 128 mtdblock1 (driver?)
    [ 2.563049] 1f02 128 mtdblock2 (driver?)
    [ 2.568328] 1f03 128 mtdblock3 (driver?)
    [ 2.573608] 1f04 1920 mtdblock4 (driver?)
    [ 2.578887] 1f05 128 mtdblock5 (driver?)
    [ 2.584167] 1f06 5120 mtdblock6 (driver?)
    [ 2.589416] 1f07 124416 mtdblock7 (driver?)
    [ 2.594726] 1f08 124416 mtdblock8 (driver?)
    [ 2.600006] 1f09 5632 mtdblock9 (driver?)
    [ 2.605255] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0)
    [ 2.613891] Backtrace:
    [ 2.616485] [<c0017978>] (dump_backtrace+0x0/0x110) from [<c0423c5c>] (dump_stack+0x18/0x1c)
    [ 2.625274] r6:df924000 r5:c05cf3ac r4:c06474c8 r3:c06007c8
    [ 2.631225] [<c0423c44>] (dump_stack+0x0/0x1c) from [<c0423ccc>] (panic+0x6c/0x1a0)
    [ 2.639221] [<c0423c60>] (panic+0x0/0x1a0) from [<c05a0cb4>] (mount_block_root+0x184/0x228)
    [ 2.647949] r3:c06007c8 r2:00000000 r1:df82df58 r0:c0500a10
    [ 2.653869] r7:00008000
    [ 2.656494] [<c05a0b30>] (mount_block_root+0x0/0x228) from [<c05a0f1c>] (mount_root+0xd8/0xe0)
    [ 2.665496] [<c05a0e44>] (mount_root+0x0/0xe0) from [<c05a10bc>] (prepare_namespace+0x198/0x1d4)
    [ 2.674682] r4:c0646520
    [ 2.677337] [<c05a0f24>] (prepare_namespace+0x0/0x1d4) from [<c05a090c>] (kernel_init+0x124/0x130)
    [ 2.686676] r5:c05dd654 r4:c05dd654
    [ 2.690429] [<c05a07e8>] (kernel_init+0x0/0x130) from [<c0041724>] (do_exit+0x0/0x67c)
    [ 2.698699] r5:c05a07e8 r4:00000000

    CTRL-A Z for help |115200 8N1 | NOR | Minicom 2.6.1 | VT102 | Offline

  • Hi,

    Your ramdisk size is 32MB. Please try changing the CONFIG_BLK_DEV_RAM_SIZE parameter to a larger size, that can hold your ramdisk.

    Best regards.
    Miroslav

  • sorry for this another e-mail,  but it is so odd, but:

    changing to:
    CONFIG_BLK_DEV_RAM=y
    CONFIG_BLK_DEV_RAM_COUNT=16
    CONFIG_BLK_DEV_RAM_SIZE=16384
    results in this line error: RAMDISK: incomplete write (6607 != 32768)

    changing to:
    CONFIG_BLK_DEV_RAM=y
    CONFIG_BLK_DEV_RAM_COUNT=8
    CONFIG_BLK_DEV_RAM_SIZE=32768
     results in this line error: RAMDISK: incomplete write (22216 != 32768)
     

    changing to:
    CONFIG_BLK_DEV_RAM=y
    CONFIG_BLK_DEV_RAM_COUNT=4
    CONFIG_BLK_DEV_RAM_SIZE=65536
    results in this line error: RAMDISK: incomplete write (22216 != 32768)

    to 32 or 64 MB the error keeps the same. 

  • Mr. Daniel,

    How did you manage to enable the omap2-nand driver? I using the 3.2.x kernel version and I cant get this driver enable even if I set up all the nand options in the kernel configurator.

    I figured out how to start the initramfs. If I boot my customized beaglebone with a sd card inserted, I can load the kernell and file system from the nand. But as I cant load the omap2-nand driver, I cant acess the nand partitions and cant use it after the OS load.

    Can you help me please?

    thank you

    Wilson

  • Hi Wilson, if you inserted the SD card, probably the u-boot environmet variables leaded kernel and filesystem to boot from SD card.
    You can see it in bootcmd variable.
    U-Boot# print bootcmd

    to enable nand driver, try to check the file:
    linux-3.2.0-psp05.06.00.00/arch/arm/configs/am335x_evm_defconfig
    attached is my file. look into for _NAND_

    tomorrow I will post here all the details to configure the system to boot from nand.

    8357.am335x_evm_defconfig.txt

    best regards.

  • Hello Daniel,

    I double checked the initialization. I have set up the initialization register to first initialize from uart0, then nand and then sdcard by changing the resistors r84, r83, r81 and r80 for the resistor r104, r103, r101 and r100.  The MLO and u-boot are susceffuly loaded from the nand. The kernell starts executing but dont recognize the mtd partitions.

    From the u-boot prompt I executed a customizes command 'run nandboot'. here is my nandboot variable:

    {{{

    setenv nandboot 'echo Booting from nandboot alternatively ...; echo Arguments; setenv bootargs console=ttyO0,115200n8 mtdparts=omap2-nand.0:128k(SPL),128k(SPL.backup1),128k(SPL.backup2),128k(SPL.backup3),1920k(u-boot),128k(u-boot-env),5m(kernel),-(rootfs) root=/dev/rootfs rw rootfstype=ramdisk rootwait=1 initrd=${loadaddr} ip=none; nand read ${kloadaddr} ${nandsrcaddr} ${nandimgsize}; nand read ${loadaddr} ${initrd_src_addr} ${initrd_img_siz}; bootz ${kloadaddr} ${loadaddr}:${initrd_img_siz}'

    }}}

    It will be very helpfull if you post the details about how to configure the system to boot from nand.

    best regards.

  • Try to change: rootfstype=ext2 ,when you made the filesystem you chose a type of filesystem: ext2, ext3...
    1. Create a RAMDISK: http://processors.wiki.ti.com/index.php/Creating_a_RAMDISK
    2. Verify the parameters in file linux-3.2.0-psp05.06.00.00/arch/arm/configs/am335x_evm_defconfig, by default Nand driver is enabled.
    I recommend special check the variables:
    CONFIG_BLK_DEV_RAM=y
    CONFIG_BLK_DEV_RAM_COUNT=8
    CONFIG_BLK_DEV_RAM_SIZE=32768
    It's good they are consistent with hardware ram size and image file system size.
    In the example:  CONFIG_BLK_DEV_RAM_COUNT x CONFIG_BLK_DEV_RAM_SIZE = 256 ram size.
    the filesystem image is bellow than 32768.
    3. Make Multi file: (kernel+file system)
     mkimage -A arm -T multi -C none  -a 80008000 -e 80008000 -n 'kernel-rd-full' -d vmlinux:ramdisk.gz uMulti
    4. Save it in nand:
     tftp 0x81780000 uMulti
     nand erase.part 0x780000
     nand write.e 0x81780000 0x780000 0xD3B597
    5. configuring environment variables:
     setenv mtdparts "mtdparts=omap2-nand.0:128k(SPL),128k(SPL.backup1),128k(SPL.backup2),128k(SPL.backup3),1920k(u-boot),128k(u-boot-env),5m(kernel),124416k(fs1),124416k(fs2),-(safe_area)"
     setenv ipaddr 192.168.1.188
     setenv serverip 192.168.1.164
     setenv nandimgsize 0x623a8a9     
     setenv nandsrcaddr 0x780000
     setenv kloadaddr 0x86007fc0
     setenv nandroot "/dev/ram0 rw"
     setenv nandrootfstype "ext2"
     setenv nandargs "setenv bootargs console=${console} ${optargs} root=/dev/ram0 rw initrd=${kloadaddrrootfstype=${nandrootfstype}"
     saveenv
     
     
    Maybe is necessary to define ramdisk size with the parameter: ramdisk_size=294912k: 
      setenv nandargs "setenv bootargs console=${console} ${optargs} root=/dev/ram0 rw initrd=${kloadaddrrootfstype=${nandrootfstyperamdisk_size=294912k"
    best regards.
    daniel formolo.