logo

Could not compile stylesheet for simplistic. Using last compiled stylesheet.

IGEPV2 RC6 NANDFLASH

posted in Uncategorized
Friday, March 02 2012, 02:14 PM
davigier
davigier
Offline
0
[size="2:3fop34us"]Hello, I just received 2 IGEPV2 RC6 board with the new NANDFLASH. I create my new ubi file for the rootFS with the following: [quote][u]the NANflash on the board has 3 partitions:[/u]
dev: size erasesize name mtd0: 00080000 00020000 \\\"X-Loader\\\" mtd1: 00c00000 00020000 \\\"Boot\\\" mtd2: 1f380000 00020000 \\\"File System\\\"
[u]I create the UBIFS:[/u]
sudo mkfs.ubifs -v -r LINUX/ -o igep0020.rootfs.ubifs -m 2048 -e 129024 -c 4059
[u]Then I create the ubi file:[/u]
sudo ubinize -v -o igep0020.ubi -m 2048 -p 128KiB -s 512 ubinize.cfg
[u]and the ubinize.cfg is:[/u]
[ubifs] mode=ubi image=igep0020.rootfs.ubifs vol_id=0 vol_type=dynamic vol_name=igep0020-rootfs vol_flags=autoresize
[u]I flash the NAND flash with the following commands:[/u]
flash_eraseall /dev/mtd2 ubiformat /dev/mtd2 -s 512 -f igep0020.ubi When I boot from the NandFlash on the igepV2 board the file system seems to be mounted, but i have the following error: [ 4.534179] UBIFS: recovery needed [ 4.561157] UBIFS: recovery completed [ 4.565002] UBIFS: mounted UBI device 0, volume 0, name \\\"igep0020-rootfs\\\" [ 4.572113] UBIFS: file system size: 508612608 bytes (496692 KiB, 485 MiB,) [ 4.580474] UBIFS: journal size: 9033728 bytes (8822 KiB, 8 MiB, 71 LE) [ 4.588104] UBIFS: media format: w4/r0 (latest is w4/r0) [ 4.594207] UBIFS: default compressor: lzo [ 4.598480] UBIFS: reserved for root: 0 bytes (0 KiB) [ 4.604553] VFS: Mounted root (ubifs filesystem) on device 0:13. [ 4.610900] Freeing init memory: 216K [ 4.618286] Kernel panic - not syncing: No init found. Try passing init= op. [ 4.631347] [] (unwind_backtrace+0x0/0xec) from [] (pani) [ 4.639892] [] (panic+0x4c/0x180) from [] (init_post+0x1) [ 4.648101] [] (init_post+0x108/0x138) from [] (kernel_i) [ 4.656921] [] (kernel_init+0x110/0x150) from [] (kernel)
[b]I don\\\'t understand why.[/b]
the same file system is working correctly on the sdcard. Can you tell me what can i do to resolv this problem. As you change the onenand to nandflash, maybe we have to modify something thank you for reply as soon as possible. [/size][/quote]
Responses (22)
  • Accepted Answer

    mcaro
    mcaro
    Offline
    Friday, March 02 2012, 08:41 PM - #permalink
    0
    Please post attached the complete console debug output ... :) Thanks Manel
    The reply is currently minimized Show
  • Accepted Answer

    davigier
    davigier
    Offline
    Monday, March 05 2012, 11:28 AM - #permalink
    0
    [size="2:2gb7azb1"]Hello Manel, Thank you for reply. I was testing something and made a mistake: I erase the X-Loader partition on NandFlash. So I download the latest X-Loader (2.4.0-2), recompile it and create a bootable SDCARD with the following files: [ul]MLO (X-Loader 2.4.0-2) igep.ini zImage[/ul] the igep.ini configuration is the following: [quote][i][kernel] ; Kernel load address, NOT Modify kaddress=0x80008000 ; RAM disk load Address, NOT Modify (Uncomment if you wish load a ram disk) ;rdaddress=0x81600000 ; Board Serial ID serial.low=00000001 serial.high=00000000 ; Board Revision revision=0003 ; Kernel Image Name or ARM binary file kImageName=zImage ;kImageName=u-boot.bin ; Kernel RAM Disk Image Name (Uncomment with your ramdisk file) ;kRdImageName=initrd.img-2.6.35-1010-linaro-omap ;kRdImageName=rd-igepv2.bin ; Module = 2717 IGEPv2 = 2344 MachineID=2344 ; Boot Mode = binary or kernel Mode=kernel [kparams] ; IGEP configuration set ;buddy=base0010 buddy=igep0022 ; Setup the Kernel console params ; ttyO2 = if kernel it\\\'s >= 2.6.37 console=ttyO2,115200n8 ; ttyO2 = if kernel it\\\'s <= 2.6.35 ;console=ttyS2,115200n8 ; Enable early printk ;earlyprintk=serial,tty02,115200 ;earlyprintk=serial,ttyS2,115200 ; Setup the Board Memory Configuration mem=430M ;mem=512M ;mem=64M ;mem=128M ; Setup the Boot Delay boot_delay=0 ; Setup the ARM Processor Speed ;mpurate=1000 ; Setup the loglevel ;loglevel=7 ;Enable Kernel Debug Output ;debug=1 ;Fix RTC Variable ;fixrtc=1 ;Configure nocompcache variable nocompcache=1 ; Configure Frame Buffer Configuration ;omapfb.mode=dvi:1280x720MR-16@60 omapfb.mode=dvi:hd720-16@50 ;Configure Video Ram assigned ;vram=40M ;vram=4M ; Configure Video RAM assigned to every frame buffer ;omapfb.vram=0:12M,1:16M,2:12M ; Configure frame buffer debug output ;omapfb.debug=1 ; Configure DSS Video Debug option ;omapdss.debug=1 ; Configure the Board Ethernet Mac Address smsc911x.mac0=0xb2,0xb0,0x14,0xb5,0xcd,0xde smsc911x.mac1=0xb2,0xb0,0x14,0xb5,0xcd,0xdf smsc911x.mac=0xb2,0xb0,0x14,0xb5,0xcd,0xde ; --- Configure UBI FS boot --- ;ubi.mtd=2 ;root=ubi0:igep0020-rootfs ;rootfstype=ubifs ; --- Configure NFS boot --- ;ip=192.168.2.123:192.168.2.110:192.168.2.1:255.255.255.0::eth0: ;root=/dev/nfs ;nfsroot=192.168.2.110:/srv/nfs/linaro_netbook ; --- Configure MMC boot --- root=/dev/mmcblk0p2 rw rootwait ;root=/dev/ram0 rw ; Assign Init program ;init=/bin/bash ;init=/linuxrc[/i]
    Now when I boot IGEPV2 RC6 from sdcard, the system use always the igep.ini on the NandFlash and not on the sdcard:
    [i]IGEP-X-Loader 2.4.0-2 (Mar 2 2012 - 19:30:29) XLoader: Processor DM3730 - ES1.2 XLoader: Memory Manufacturer: Micron (2c) XLoader: Scan jffs2 partition: ................................................. XLoader: Configuration file igep.ini Loaded from Flash memory XLoader: try load kernel from MMC XLoader: try load kernel from Flash XLoader: kernel zImage loaded from FLASH at 0x80008000 size = 3138240 XLoader: IGEPv2 : kernel boot ... Uncompressing Linux... done, booting the kernel. [ 0.000000] Linux version 2.6.37+ (leafplug@ServeurBnext) (gcc version 4.3.32 [ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7f [ 0.000000] CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache [ 0.000000] Machine: IGEP0020 board [ 0.000000] IGEP: Unknown buddy for IGEP0020 machine [ 0.000000] Reserving 41943040 bytes SDRAM for VRAM [ 0.000000] Memory policy: ECC disabled, Data cache writeback [ 0.000000] OMAP3630 ES1.2 (l2cache iva sgx neon isp 192mhz_clk ) [ 0.000000] SRAM: Mapped pa 0x40200000 to va 0xfe400000 size: 0x10000 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pa0 [ 0.000000] Kernel command line: buddy=base0010 console=ttyO2,115200n8 mem=4 [ 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: 390MB = 390MB total [ 0.000000] Memory: 388960k/388960k available, 51360k 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] DMA : 0xffc00000 - 0xffe00000 ( 2 MB) [ 0.000000] vmalloc : 0xdb000000 - 0xf8000000 ( 464 MB) [ 0.000000] lowmem : 0xc0000000 - 0xdae00000 ( 430 MB) [ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB) [ 0.000000] .init : 0xc0008000 - 0xc003e000 ( 216 kB) [ 0.000000] .text : 0xc003e000 - 0xc05d449c (5722 kB) [ 0.000000] .data : 0xc05d6000 - 0xc06186a0 ( 266 kB) [ 0.000000] NR_IRQS:409 [ 0.000000] Clocking rate (Crystal/Core/MPU): 26.0/400/600 MHz [ 0.000000] Reprogramming SDRC clock to 400000000 Hz [ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 4.0) with 96 interrups [ 0.000000] Total of 96 interrupts on 1 active controller [ 0.000000] GPMC revision 5.0 [ 0.000000] Trying to install interrupt handler for IRQ402 [ 0.000000] Trying to install interrupt handler for IRQ403 [ 0.000000] Trying to install interrupt handler for IRQ404 [ 0.000000] Trying to install interrupt handler for IRQ405 [ 0.000000] Trying to install interrupt handler for IRQ406 [ 0.000000] Trying to install interrupt handler for IRQ407 [ 0.000000] Trying to install interrupt handler for IRQ408 [ 0.000000] Trying to install type control for IRQ409 [ 0.000000] Trying to set irq flags for IRQ409 [ 0.000000] OMAP clockevent source: GPTIMER1 at 32768 Hz [ 0.000000] Console: colour dummy device 80x30 [ 0.000000] Calibrating delay loop... 597.64 BogoMIPS (lpj=2334720) [ 0.000000] pid_max: default: 32768 minimum: 301 [ 0.000000] Security Framework initialized [ 0.000000] Mount-cache hash table entries: 512 [ 0.000000] CPU: Testing write buffer coherency: ok [ 0.000000] regulator: core version 0.5 [ 0.000000] regulator: dummy: [ 0.000000] NET: Registered protocol family 16 [ 0.000000] OMAP GPIO hardware version 2.5 [ 0.000000] OMAP GPIO hardware version 2.5 [ 0.000000] OMAP GPIO hardware version 2.5 [ 0.000000] OMAP GPIO hardware version 2.5 [ 0.000000] OMAP GPIO hardware version 2.5 [ 0.000000] OMAP GPIO hardware version 2.5 [ 0.000000] omap_mux_init: Add partition: #1: core, flags: 0 [ 0.000000] IGEP: Hardware Rev. C [ 0.000000] IGEP: initializing NAND memory device [ 0.000000] hw-breakpoint: debug architecture 0x4 unsupported. [ 0.000000] OMAP DMA hardware revision 5.0 [ 0.019897] bio: create slab at 0 [ 0.021972] SCSI subsystem initialized [ 0.024688] usbcore: registered new interface driver usbfs [ 0.025054] usbcore: registered new interface driver hub [ 0.025238] usbcore: registered new device driver usb [ 0.026336] omap_i2c omap_i2c.1: bus 1 rev4.0 at 2600 kHz [ 0.029388] twl4030: PIH (irq 7) chaining IRQs 368..375 [ 0.029418] twl4030: power (irq 373) chaining IRQs 376..383 [ 0.029937] twl4030: gpio (irq 368) chaining IRQs 384..401 [ 0.033386] regulator: VUSB1V5: 1500 mV normal standby [ 0.033935] regulator: VUSB1V8: 1800 mV normal standby [ 0.034515] regulator: VUSB3V1: 3100 mV normal standby [ 0.036010] twl4030_usb twl4030_usb: Initialized TWL4030 USB module [ 0.038513] regulator: VIO: 1800 <--> 1850 mV at 1800 mV normal standby [ 0.039184] regulator: VMMC1: 1850 <--> 3150 mV at 3000 mV normal standby [ 0.039764] regulator: VDAC: 1800 mV normal standby [ 0.040618] regulator: VPLL2: 1800 mV normal standby [ 0.040863] omap_i2c omap_i2c.3: bus 3 rev4.0 at 100 kHz [ 0.042633] Advanced Linux Sound Architecture Driver Version 1.0.23. [ 0.043914] cfg80211: Calling CRDA to update world regulatory domain [ 0.044891] Switching to clocksource 32k_counter [ 0.063659] musb-hdrc: version 6.0, otg (peripheral+host), debug=0 [ 0.063781] musb-hdrc musb-hdrc.0: dma type: dma-inventra [ 0.064086] musb-hdrc musb-hdrc.0: USB OTG mode controller at fa0ab000 using2 [ 0.064575] NET: Registered protocol family 2 [ 0.064758] IP route cache hash table entries: 4096 (order: 2, 16384 bytes) [ 0.065185] TCP established hash table entries: 16384 (order: 5, 131072 byte) [ 0.065551] TCP bind hash table entries: 16384 (order: 4, 65536 bytes) [ 0.065765] TCP: Hash tables configured (established 16384 bind 16384) [ 0.065765] TCP reno registered [ 0.065795] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.065826] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.066009] NET: Registered protocol family 1 [ 0.066314] RPC: Registered udp transport module. [ 0.066345] RPC: Registered tcp transport module. [ 0.066345] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.068237] omap-iommu omap-iommu.0: isp registered [ 0.070007] VFS: Disk quotas dquot_6.5.2 [ 0.070098] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 0.071563] JFFS2 version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc. [ 0.072601] msgmni has been set to 759 [ 0.073669] io scheduler noop registered [ 0.073699] io scheduler deadline registered [ 0.073822] io scheduler cfq registered (default) [ 0.131195] OMAP DSS rev 2.0 [ 0.154541] OMAP RFBI rev 1.0 [ 0.154632] OMAP DISPC rev 3.0 [ 0.154663] OMAP VENC rev 2 [ 0.154876] omapdss supply vdds_sdi not found, using dummy regulator [ 0.154968] OMAP DSI rev 1.0 [ 0.483947] [drm] Initialized drm 1.1.0 20060810 [ 0.484069] omap_uart.0: ttyO0 at MMIO 0x4806a000 (irq = 72) is a OMAP UART0 [ 0.484436] omap_uart.1: ttyO1 at MMIO 0x4806c000 (irq = 73) is a OMAP UART1 [ 0.484771] omap_uart.2: ttyO2 at MMIO 0x49020000 (irq = 74) is a OMAP UART2 [ 1.143432] console [ttyO2] enabled [ 1.147430] omap_uart.3: ttyO3 at MMIO 0x49042000 (irq = 80) is a OMAP UART3 [ 1.165344] brd: module loaded [ 1.173522] loop: module loaded [ 1.179534] mtdoops: mtd device (mtddev=name/number) must be supplied [ 1.186340] omap2-nand driver initializing [ 1.190979] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xbc (Micron ) [ 1.197937] Creating 3 MTD partitions on \\\"omap2-nand.0\\\": [ 1.203552] 0x000000000000-0x000000080000 : \\\"X-Loader\\\" [ 1.210723] 0x000000080000-0x000000c80000 : \\\"Boot\\\" [ 1.222167] 0x000000c80000-0x000020000000 : \\\"File System\\\" [ 1.435577] OneNAND driver initializing [ 1.440338] UBI: attaching mtd2 to ubi0 [ 1.444396] UBI: physical eraseblock size: 131072 bytes (128 KiB) [ 1.450958] UBI: logical eraseblock size: 129024 bytes [ 1.456634] UBI: smallest flash I/O unit: 2048 [ 1.461578] UBI: sub-page size: 512 [ 1.466430] UBI: VID header offset: 512 (aligned 512) [ 1.472564] UBI: data offset: 2048 [ 2.286407] UBI: max. sequence number: 6 [ 2.302978] UBI: attached mtd2 to ubi0 [ 2.306915] UBI: MTD device name: \\\"File System\\\" [ 2.312683] UBI: MTD device size: 499 MiB [ 2.317871] UBI: number of good PEBs: 3996 [ 2.322814] UBI: number of bad PEBs: 0 [ 2.327484] UBI: number of corrupted PEBs: 0 [ 2.332153] UBI: max. allowed volumes: 128 [ 2.337005] UBI: wear-leveling threshold: 4096 [ 2.341949] UBI: number of internal volumes: 1 [ 2.346588] UBI: number of user volumes: 1 [ 2.351257] UBI: available PEBs: 0 [ 2.355926] UBI: total number of reserved PEBs: 3996 [ 2.361145] UBI: number of PEBs reserved for bad PEB handling: 39 [ 2.367553] UBI: max/mean erase counter: 1/0 [ 2.372009] UBI: image sequence number: 1889527793 [ 2.377349] UBI: background thread \\\"ubi_bgt0d\\\" started, PID 531 [ 2.385620] smsc911x: Driver version 2008-10-21. [ 2.391967] smsc911x-mdio: probed [ 2.395568] eth0: attached PHY driver [SMSC LAN8700] (mii_bus:phy_addr=0:01,) [ 2.404968] net eth0: MAC Address: b2:b0:14:b5:cd:de [ 2.410552] usbcore: registered new interface driver asix [ 2.416381] usbcore: registered new interface driver cdc_ether [ 2.422698] usbcore: registered new interface driver net1080 [ 2.428802] usbcore: registered new interface driver cdc_subset [ 2.435150] usbcore: registered new interface driver zaurus [ 2.441192] ehci_hcd: USB 2.0 \\\'Enhanced\\\' Host Controller (EHCI) Driver [ 3.451263] ehci-omap ehci-omap.0: OMAP-EHCI Host Controller [ 3.457275] ehci-omap ehci-omap.0: new USB bus registered, assigned bus numb1 [ 3.465179] ehci-omap ehci-omap.0: irq 77, io mem 0x48064800 [ 3.482635] ehci-omap ehci-omap.0: USB 2.0 started, EHCI 1.00 [ 3.488739] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 [ 3.495880] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber1 [ 3.503448] usb usb1: Product: OMAP-EHCI Host Controller [ 3.509033] usb usb1: Manufacturer: Linux 2.6.37+ ehci_hcd [ 3.514801] usb usb1: SerialNumber: ehci-omap.0 [ 3.520416] hub 1-0:1.0: USB hub found [ 3.524414] hub 1-0:1.0: 3 ports detected [ 3.553070] Initializing USB Mass Storage driver... [ 3.558410] usbcore: registered new interface driver usb-storage [ 3.564727] USB Mass Storage support registered. [ 3.569793] usbcore: registered new interface driver usbtest [ 3.575775] g_ether gadget: using random self ethernet address [ 3.581909] g_ether gadget: using random host ethernet address [ 3.588623] usb0: MAC 62:fa:6c:2a:92:4f [ 3.592651] usb0: HOST MAC 1e:9f:2e:f6:d7:4f [ 3.597198] g_ether gadget: Ethernet Gadget, version: Memorial Day 2008 [ 3.604156] g_ether gadget: g_ether ready [ 3.608367] musb-hdrc musb-hdrc.0: MUSB HDRC host driver [ 3.613983] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus numb2 [ 3.621856] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002 [ 3.628997] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber1 [ 3.636596] usb usb2: Product: MUSB HDRC host driver [ 3.641815] usb usb2: Manufacturer: Linux 2.6.37+ musb-hcd [ 3.647583] usb usb2: SerialNumber: musb-hdrc.0 [ 3.653228] hub 2-0:1.0: USB hub found [ 3.657196] hub 2-0:1.0: 1 port detected [ 3.662445] mice: PS/2 mouse device common for all mice [ 3.668792] input: TWL4030 Keypad as /devices/platform/omap/omap_i2c.1/i2c-10 [ 3.682434] input: twl4030_pwrbutton as /devices/platform/omap/omap_i2c.1/i21 [ 3.694488] twl_rtc twl_rtc: rtc core: registered twl_rtc as rtc0 [ 3.702880] i2c /dev entries driver [ 3.707458] Linux media interface: v0.10 [ 3.711791] Linux video capture interface: v2.00 [ 3.717041] usbcore: registered new interface driver uvcvideo [ 3.723052] USB Video Class driver (v1.0.0) [ 3.729278] mmci-omap-hs.0 supply vmmc_aux not found, using dummy regulator [ 3.739074] mmci-omap-hs.1 supply vmmc not found, using dummy regulator [ 3.746063] mmci-omap-hs.1 supply vmmc_aux not found, using dummy regulator [ 3.756134] omap_sham_mod_init: loading omap-sham driver [ 3.761718] omap_sham_mod_init: Unsupported cpu [ 3.766510] omap_aes_mod_init: loading omap-aes driver [ 3.771911] omap_aes_mod_init: Unsupported cpu [ 3.777496] usbcore: registered new interface driver usbhid [ 3.783355] usbhid: USB HID core driver [ 3.789825] IGEP SoC init [ 3.872528] asoc: twl4030-hifi <-> omap-mcbsp-dai.1 mapping ok [ 3.882995] ALSA device list: [ 3.886108] #0: igep [ 3.888824] TCP cubic registered [ 3.892211] Initializing XFRM netlink socket [ 3.896697] NET: Registered protocol family 17 [ 3.901397] NET: Registered protocol family 15 [ 3.906097] lib80211: common routines for IEEE802.11 drivers [ 3.912048] Registering the dns_resolver key type [ 3.917083] VFP support v0.3: implementor 41 architecture 3 part 30 variant 3 [ 3.925689] ThumbEE CPU extension supported. [ 3.933074] Power Management for TI OMAP3. [ 3.937927] smartreflex smartreflex.0: omap_sr_probe: SmartReflex driver inid [ 3.946166] smartreflex smartreflex.1: omap_sr_probe: SmartReflex driver inid [ 3.954589] SmartReflex Class3 initialized [ 3.958892] clock: disabling unused clocks to save power [ 3.965332] platform iva.0: omap_voltage_scale: Already at the requestedrate0 [ 3.973632] platform mpu.0: omap_voltage_scale: Already at the requestedrate0 [ 4.294311] Console: switching to colour frame buffer device 80x25 [ 4.309051] twl_rtc twl_rtc: setting system clock to 2012-01-29 08:49:46 UTC) [ 4.317657] omap_vout omap_vout: probed for an unknown device [ 4.344909] UBIFS: recovery needed [ 4.370666] UBIFS: recovery completed [ 4.374542] UBIFS: mounted UBI device 0, volume 0, name \\\"igep0020-rootfs\\\" [ 4.381591] UBIFS: file system size: 508612608 bytes (496692 KiB, 485 MiB,) [ 4.389953] UBIFS: journal size: 9033728 bytes (8822 KiB, 8 MiB, 71 LE) [ 4.397552] UBIFS: media format: w4/r0 (latest is w4/r0) [ 4.403625] UBIFS: default compressor: lzo [ 4.407897] UBIFS: reserved for root: 0 bytes (0 KiB) [ 4.413879] VFS: Mounted root (ubifs filesystem) on device 0:13. [ 4.420196] Freeing init memory: 216K [ 4.427032] Kernel panic - not syncing: No init found. Try passing init= op. [ 4.440032] [] (unwind_backtrace+0x0/0xec) from [] (pani) [ 4.448577] [] (panic+0x4c/0x180) from [] (init_post+0x1) [ 4.456756] [] (init_post+0x108/0x138) from [] (kernel_i) [ 4.465545] [ and, as I told you on my previous post, i have at the end a kernel panic although this kernel and filesystem is a correct one. Can you give me information on these two problems Thank you [/size][/quote]
    The reply is currently minimized Show
  • Accepted Answer

    mcaro
    mcaro
    Offline
    Monday, March 05 2012, 11:35 AM - #permalink
    0
    About the first one: Remove the igep.ini form microsd card and try to copy it again, don\\\'t replace, normally the problem it\\\'s related to how large named be written or replaced into microsd card: igep.ini -> igep~1 About your kernel panic, let me check ... ;) Manel
    The reply is currently minimized Show
  • Accepted Answer

    davigier
    davigier
    Offline
    Monday, March 05 2012, 01:15 PM - #permalink
    0
    [size="2:3chu0qim"] Hello Manel, I tested to erase the igep.ini file and all hidden file on the sdcard. The result is the same. the board boot with the X-Loader on the SDCARD but after use the igep.ini file on the flash. Any idea? Arnaud [/size]
    The reply is currently minimized Show
  • Accepted Answer

    davigier
    davigier
    Offline
    Monday, March 05 2012, 01:48 PM - #permalink
    0
    Manel, Is there anay option in the X-Loader compilation to force it to use the igep.ini file in the flash memory?
    The reply is currently minimized Show
  • Accepted Answer

    mcaro
    mcaro
    Offline
    Monday, March 05 2012, 01:50 PM - #permalink
    0
    Yes, if the igep.ini in the microsd card is not found ... Manel
    The reply is currently minimized Show
  • Accepted Answer

    davigier
    davigier
    Offline
    Monday, March 05 2012, 02:20 PM - #permalink
    0
    I check the X-Loader code and the X-Loader don\\\'t find igep.ini on the SDCARD. nt ini_parse(const char* filename, int from, int (*handler)(void*, const char*, const char*, const char*), void* user) { /* Uses a fair bit of stack (use heap instead if you need to) */ char line[MAX_LINE]; char section[MAX_SECTION] = \\\"\\\"; char prev_name[MAX_NAME] = \\\"\\\"; FILE* file; char* start; char* end; char* name; char* value; int lineno = 0; int error = 0; file = fopen(filename, from , \\\"r\\\"); if (!file) { printf(\\\"igep.ini: file not found\\\\n\\\"); return -1; } the result after boot: IGEP-X-Loader 2.4.0-2 (Mar 5 2012 - 14:07:07) XLoader: Processor DM3730 - ES1.2 XLoader: Memory Manufacturer: Micron (2c) igep.ini: file not found XLoader: Scan jffs2 partition: ................................................. XLoader: Configuration file igep.ini Loaded from Flash memory XLoader: try load kernel from MMC XLoader: try load kernel from Flash XLoader: kernel zImage loaded from FLASH at 0x80008000 size = 3138240
    The reply is currently minimized Show
  • Accepted Answer

    davigier
    davigier
    Offline
    Monday, March 05 2012, 03:52 PM - #permalink
    0
    Manel, I made some test with the X-Loader code. It appears that there is an error when calling the do_fat_read function. the function is returned with Error: reading boot sector. I don\\\'t understand why. my sdcard has been format with the following: mkfs.vfat -n BOOT /dev/sdc1 and i select b format with fdisk (fat32) I test with another sdcard wich was working before and i have the same problem. But I boot MLO from MMC!!!
    The reply is currently minimized Show
  • Accepted Answer

    mcaro
    mcaro
    Offline
    Monday, March 05 2012, 03:55 PM - #permalink
    0
    Do you set the boot flag ? Manel
    The reply is currently minimized Show
  • Accepted Answer

    davigier
    davigier
    Offline
    Monday, March 05 2012, 03:56 PM - #permalink
    0
    yes Périphérique Amorce Début Fin Blocs Id Système /dev/sdc1 * 2048 133119 65536 c W95 FAT32 (LBA) /dev/sdc2 133120 3862527 1864704 83 Linux
    The reply is currently minimized Show
  • Accepted Answer

    davigier
    davigier
    Offline
    Monday, March 05 2012, 04:03 PM - #permalink
    0
    Do you have an X-Loader in MLO file that I can test to be sure that the problem doesn\\\'t come from X-Loader compilation
    The reply is currently minimized Show
  • Accepted Answer

    mcaro
    mcaro
    Offline
    Monday, March 05 2012, 04:07 PM - #permalink
    0
    Did you align the size to cylinder boundary. here you\\\'ve the mine: Disk /dev/sdb: 3 GB, 3964584960 bytes 255 heads, 63 sectors/track, 482 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sdb1 * 1 13 104391 c FAT32 LBA /dev/sdb2 14 482 3759210 83 Linux Manel
    The reply is currently minimized Show
  • Accepted Answer

    mcaro
    mcaro
    Offline
    Monday, March 05 2012, 04:14 PM - #permalink
    0
    Attached you\\\'ve my MLO & igep.ini file: [code] 60 IGEP-X-Loader 2.4.0-2 (Mar 5 2012 - 16:09:43) XLoader: Processor DM3730 - ES1.2 XLoader: Memory Manufacturer: Micron (2c) XLoader: Configuration file igep.ini Loaded from MMC XLoader: try load kernel from MMC XLoader: kernel zImage.ok loaded from MMC at 0x80008000 size = 3608460 XLoader: IGEPv2 : kernel boot ... Uncompressing Linux... done, booting the kernel. [ 0.000000] Linux version 2.6.37+ (mcaro@manel-VirtualBox2) (gcc version 4.5. [ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7f [/code] Manel
    The reply is currently minimized Show
  • Accepted Answer

    davigier
    davigier
    Offline
    Monday, March 05 2012, 04:18 PM - #permalink
    0
    No i don\\\'t do it but i don\\\'t know how to do. below the configuration with p command in expert mode with fdisk Disque /dev/sdc : 61 têtes, 62 secteurs, 1021 cylindres Nr AF Hd Sec Cyl Hd Sec Cyl Début Taille ID 1 80 33 3 0 12 6 35 2048 131072 0c 2 00 12 7 35 17 52 1021 133120 3729408 83 3 00 0 0 0 0 0 0 0 0 00 4 00 0 0 0 0 0 0 0 0 00
    The reply is currently minimized Show
  • Accepted Answer

    davigier
    davigier
    Offline
    Monday, March 05 2012, 06:03 PM - #permalink
    0
    Manel, Thank you for help. It seems that my SDCARD was bad and I was not able to align the size to cylinder boundary. I test with another SDCARD and it works. i will try now to write the X-Loader, Kernel and File System in the Nandflash
    The reply is currently minimized Show
  • Accepted Answer

    davigier
    davigier
    Offline
    Monday, March 05 2012, 07:29 PM - #permalink
    0
    [size="2:1we6savd"]Manel, I succeed to program X-Loader and Kernel on NandFlash. [quote][i] root@igep0020:~/PROG_IGEP# ./writeloader -i x-load.bin.ift -o /dev/mtd0 Successfully written x-load.bin.ift to /dev/mtd0 root@igep0020:~/PROG_IGEP# flash_eraseall /dev/mtd1 Erasing 128 Kibyte @ be0000 -- 98 % complete. root@igep0020:~/PROG_IGEP# nandwrite -p /dev/mtd1 tes.img Writing data to block 0 at offset 0x0 Writing data to block 1 at offset 0x20000 Writing data to block 2 at offset 0x40000 Writing data to block 3 at offset 0x60000 Writing data to block 4 at offset 0x80000 Writing data to block 5 at offset 0xa0000 Writing data to block 6 at offset 0xc0000 Writing data to block 7 at offset 0xe0000 Writing data to block 8 at offset 0x100000 Writing data to block 9 at offset 0x120000 Writing data to block 10 at offset 0x140000 Writing data to block 11 at offset 0x160000 Writing data to block 12 at offset 0x180000 Writing data to block 13 at offset 0x1a0000 Writing data to block 14 at offset 0x1c0000 Writing data to block 15 at offset 0x1e0000 Writing data to block 16 at offset 0x200000 Writing data to block 17 at offset 0x220000 Writing data to block 18 at offset 0x240000 Writing data to block 19 at offset 0x260000 Writing data to block 20 at offset 0x280000 Writing data to block 21 at offset 0x2a0000 Writing data to block 22 at offset 0x2c0000 Writing data to block 23 at offset 0x2e0000 Writing data to block 24 at offset 0x300000 root@igep0020:~/PROG_IGEP# flash_eraseall /dev/mtd2 Erasing 128 Kibyte @ 1f360000 -- 99 % complete. root@igep0020:~/PROG_IGEP/RootP# ubiformat /dev/mtd2 -s 1024 -f igep0020.ubi ubiformat: mtd2 (nand), size 523763712 bytes (499.5 MiB), 3996 eraseblocks of 1s libscan: scanning eraseblock 3995 -- 100 % complete ubiformat: 2217 eraseblocks have valid erase counter, mean value is 1 ubiformat: 1779 eraseblocks are supposedly empty ubiformat: warning!: only 2217 of 3996 eraseblocks have valid erase counter ubiformat: mean erase counter 1 will be used for the rest of eraseblock ubiformat: continue? (yes/no) yes ubiformat: use erase counter 1 for all eraseblocks ubiformat: warning!: VID header and data offsets on flash are 512 and 2048, whi8 ubiformat: use new offsets 1024 and 2048? (yes/no) yes ubiformat: use offsets 1024 and 2048 ubiformat: flashing eraseblock 1499 -- 100 % complete ubiformat: formatting eraseblock 3995 -- 100 % complete [/i]
    I still have the same problem for the file system i used with my sdcard. I can write it on the nandflash but when i reboot i still have a kernel panic. please find the boot status below:
    [i] IGEP-X-Loader 2.4.0-2 (Mar 5 2012 - 17:00:39) XLoader: Processor DM3730 - ES1.2 XLoader: Memory Manufacturer: Micron (2c) XLoader: Scan jffs2 partition: ................................................. XLoader: Configuration file igep.ini Loaded from Flash memory XLoader: try load kernel from MMC XLoader: try load kernel from Flash XLoader: kernel zImage loaded from FLASH at 0x80008000 size = 3138240 XLoader: IGEPv2 : kernel boot ... Uncompressing Linux... done, booting the kernel. [ 0.000000] Linux version 2.6.37+ (leafplug@ServeurBnext) (gcc version 4.3.32 [ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7f [ 0.000000] CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache [ 0.000000] Machine: IGEP0020 board [ 0.000000] IGEP: IGEP0020 machine + IGEP0022 (buddy) [ 0.000000] Reserving 4194304 bytes SDRAM for VRAM [ 0.000000] Memory policy: ECC disabled, Data cache writeback [ 0.000000] OMAP3630 ES1.2 (l2cache iva sgx neon isp 192mhz_clk ) [ 0.000000] SRAM: Mapped pa 0x40200000 to va 0xfe400000 size: 0x10000 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pa6 [ 0.000000] Kernel command line: buddy=igep0022 console=ttyO2,115200n8 mem=4 [ 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: 426MB = 426MB total [ 0.000000] Memory: 425824k/425824k available, 14496k 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] DMA : 0xffc00000 - 0xffe00000 ( 2 MB) [ 0.000000] vmalloc : 0xdb000000 - 0xf8000000 ( 464 MB) [ 0.000000] lowmem : 0xc0000000 - 0xdae00000 ( 430 MB) [ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB) [ 0.000000] .init : 0xc0008000 - 0xc003e000 ( 216 kB) [ 0.000000] .text : 0xc003e000 - 0xc05d449c (5722 kB) [ 0.000000] .data : 0xc05d6000 - 0xc06186a0 ( 266 kB) [ 0.000000] NR_IRQS:409 [ 0.000000] Clocking rate (Crystal/Core/MPU): 26.0/400/600 MHz [ 0.000000] Reprogramming SDRC clock to 400000000 Hz [ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 4.0) with 96 interrups [ 0.000000] Total of 96 interrupts on 1 active controller [ 0.000000] GPMC revision 5.0 [ 0.000000] Trying to install interrupt handler for IRQ402 [ 0.000000] Trying to install interrupt handler for IRQ403 [ 0.000000] Trying to install interrupt handler for IRQ404 [ 0.000000] Trying to install interrupt handler for IRQ405 [ 0.000000] Trying to install interrupt handler for IRQ406 [ 0.000000] Trying to install interrupt handler for IRQ407 [ 0.000000] Trying to install interrupt handler for IRQ408 [ 0.000000] Trying to install type control for IRQ409 [ 0.000000] Trying to set irq flags for IRQ409 [ 0.000000] OMAP clockevent source: GPTIMER1 at 32768 Hz [ 0.000000] Console: colour dummy device 80x30 [ 0.000000] Calibrating delay loop... 597.64 BogoMIPS (lpj=2334720) [ 0.000000] pid_max: default: 32768 minimum: 301 [ 0.000000] Security Framework initialized [ 0.000000] Mount-cache hash table entries: 512 [ 0.000000] CPU: Testing write buffer coherency: ok [ 0.000000] regulator: core version 0.5 [ 0.000000] regulator: dummy: [ 0.000000] NET: Registered protocol family 16 [ 0.000000] OMAP GPIO hardware version 2.5 [ 0.000000] OMAP GPIO hardware version 2.5 [ 0.000000] OMAP GPIO hardware version 2.5 [ 0.000000] OMAP GPIO hardware version 2.5 [ 0.000000] OMAP GPIO hardware version 2.5 [ 0.000000] OMAP GPIO hardware version 2.5 [ 0.000000] omap_mux_init: Add partition: #1: core, flags: 0 [ 0.000000] IGEP: Hardware Rev. C [ 0.000000] IGEP: Could not obtain gpio MCP251X NRESET [ 0.000000] IGEP: initializing NAND memory device [ 0.000000] hw-breakpoint: debug architecture 0x4 unsupported. [ 0.000000] OMAP DMA hardware revision 5.0 [ 0.020019] bio: create slab at 0 [ 0.022094] SCSI subsystem initialized [ 0.025390] usbcore: registered new interface driver usbfs [ 0.025726] usbcore: registered new interface driver hub [ 0.025939] usbcore: registered new device driver usb [ 0.027038] omap_i2c omap_i2c.1: bus 1 rev4.0 at 2600 kHz [ 0.029968] twl4030: PIH (irq 7) chaining IRQs 368..375 [ 0.029998] twl4030: power (irq 373) chaining IRQs 376..383 [ 0.030517] twl4030: gpio (irq 368) chaining IRQs 384..401 [ 0.033966] regulator: VUSB1V5: 1500 mV normal standby [ 0.034515] regulator: VUSB1V8: 1800 mV normal standby [ 0.035095] regulator: VUSB3V1: 3100 mV normal standby [ 0.036560] twl4030_usb twl4030_usb: Initialized TWL4030 USB module [ 0.039123] regulator: VIO: 1800 <--> 1850 mV at 1800 mV normal standby [ 0.039764] regulator: VMMC1: 1850 <--> 3150 mV at 3000 mV normal standby [ 0.040405] regulator: VDAC: 1800 mV normal standby [ 0.041290] regulator: VPLL2: 1800 mV normal standby [ 0.041534] omap_i2c omap_i2c.3: bus 3 rev4.0 at 100 kHz [ 0.055877] omap_i2c omap_i2c.2: bus 2 rev4.0 at 400 kHz [ 0.057647] Advanced Linux Sound Architecture Driver Version 1.0.23. [ 0.058898] cfg80211: Calling CRDA to update world regulatory domain [ 0.059844] Switching to clocksource 32k_counter [ 0.078613] musb-hdrc: version 6.0, otg (peripheral+host), debug=0 [ 0.078735] musb-hdrc musb-hdrc.0: dma type: dma-inventra [ 0.079071] musb-hdrc musb-hdrc.0: USB OTG mode controller at fa0ab000 using2 [ 0.079528] NET: Registered protocol family 2 [ 0.079711] IP route cache hash table entries: 4096 (order: 2, 16384 bytes) [ 0.080139] TCP established hash table entries: 16384 (order: 5, 131072 byte) [ 0.080535] TCP bind hash table entries: 16384 (order: 4, 65536 bytes) [ 0.080749] TCP: Hash tables configured (established 16384 bind 16384) [ 0.080749] TCP reno registered [ 0.080780] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.080810] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.080993] NET: Registered protocol family 1 [ 0.081298] RPC: Registered udp transport module. [ 0.081329] RPC: Registered tcp transport module. [ 0.081329] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.083221] omap-iommu omap-iommu.0: isp registered [ 0.084991] VFS: Disk quotas dquot_6.5.2 [ 0.085083] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 0.086578] JFFS2 version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc. [ 0.087585] msgmni has been set to 831 [ 0.088684] io scheduler noop registered [ 0.088684] io scheduler deadline registered [ 0.088836] io scheduler cfq registered (default) [ 0.146148] OMAP DSS rev 2.0 [ 0.169525] OMAP RFBI rev 1.0 [ 0.169616] OMAP DISPC rev 3.0 [ 0.169647] OMAP VENC rev 2 [ 0.169860] omapdss supply vdds_sdi not found, using dummy regulator [ 0.169952] OMAP DSI rev 1.0 [ 0.498992] [drm] Initialized drm 1.1.0 20060810 [ 0.499084] omap_uart.0: ttyO0 at MMIO 0x4806a000 (irq = 72) is a OMAP UART0 [ 0.499450] omap_uart.1: ttyO1 at MMIO 0x4806c000 (irq = 73) is a OMAP UART1 [ 0.499816] omap_uart.2: ttyO2 at MMIO 0x49020000 (irq = 74) is a OMAP UART2 [ 1.173919] console [ttyO2] enabled [ 1.177947] omap_uart.3: ttyO3 at MMIO 0x49042000 (irq = 80) is a OMAP UART3 [ 1.195800] brd: module loaded [ 1.203979] loop: module loaded [ 1.207336] at24 2-0050: 128 byte 24c01 EEPROM (writable) [ 1.215667] mtdoops: mtd device (mtddev=name/number) must be supplied [ 1.222473] omap2-nand driver initializing [ 1.227142] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xbc (Micron ) [ 1.234100] Creating 3 MTD partitions on \\\"omap2-nand.0\\\": [ 1.239685] 0x000000000000-0x000000080000 : \\\"X-Loader\\\" [ 1.246887] 0x000000080000-0x000000c80000 : \\\"Boot\\\" [ 1.258270] 0x000000c80000-0x000020000000 : \\\"File System\\\" [ 1.471618] OneNAND driver initializing [ 1.476379] UBI: attaching mtd2 to ubi0 [ 1.480407] UBI: physical eraseblock size: 131072 bytes (128 KiB) [ 1.486999] UBI: logical eraseblock size: 129024 bytes [ 1.492675] UBI: smallest flash I/O unit: 2048 [ 1.497619] UBI: sub-page size: 512 [ 1.502471] UBI: VID header offset: 512 (aligned 512) [ 1.508575] UBI: data offset: 2048 [ 1.994720] UBI: empty MTD device detected [ 1.999694] UBI: max. sequence number: 0 [ 2.004425] UBI: create volume table (copy #1) [ 2.013488] UBI: create volume table (copy #2) [ 2.027618] UBI: attached mtd2 to ubi0 [ 2.031585] UBI: MTD device name: \\\"File System\\\" [ 2.037353] UBI: MTD device size: 499 MiB [ 2.042572] UBI: number of good PEBs: 3996 [ 2.047515] UBI: number of bad PEBs: 0 [ 2.052185] UBI: number of corrupted PEBs: 0 [ 2.056823] UBI: max. allowed volumes: 128 [ 2.061676] UBI: wear-leveling threshold: 4096 [ 2.066619] UBI: number of internal volumes: 1 [ 2.071289] UBI: number of user volumes: 0 [ 2.075958] UBI: available PEBs: 3953 [ 2.080871] UBI: total number of reserved PEBs: 43 [ 2.085906] UBI: number of PEBs reserved for bad PEB handling: 39 [ 2.092315] UBI: max/mean erase counter: 0/0 [ 2.096801] UBI: image sequence number: -2138079870 [ 2.102081] UBI: background thread \\\"ubi_bgt0d\\\" started, PID 539 [ 2.115295] smsc911x: Driver version 2008-10-21. [ 2.131256] smsc911x-mdio: probed [ 2.134857] eth0: attached PHY driver [SMSC LAN8700] (mii_bus:phy_addr=0:01,) [ 2.144256] net eth0: MAC Address: b2:b0:14:b5:cd:de [ 2.169586] usbcore: registered new interface driver asix [ 2.185058] usbcore: registered new interface driver cdc_ether [ 2.191345] usbcore: registered new interface driver net1080 [ 2.200683] usbcore: registered new interface driver cdc_subset [ 2.216308] usbcore: registered new interface driver zaurus [ 2.231933] ehci_hcd: USB 2.0 \\\'Enhanced\\\' Host Controller (EHCI) Driver [ 3.239685] ehci-omap ehci-omap.0: OMAP-EHCI Host Controller [ 3.245697] ehci-omap ehci-omap.0: new USB bus registered, assigned bus numb1 [ 4.146026] ehci-omap ehci-omap.0: irq 77, io mem 0x48064800 [ 4.161560] ehci-omap ehci-omap.0: USB 2.0 started, EHCI 1.00 [ 4.167694] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 [ 4.174835] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber1 [ 4.182403] usb usb1: Product: OMAP-EHCI Host Controller [ 4.187988] usb usb1: Manufacturer: Linux 2.6.37+ ehci_hcd [ 4.193756] usb usb1: SerialNumber: ehci-omap.0 [ 4.240081] hub 1-0:1.0: USB hub found [ 4.244018] hub 1-0:1.0: 3 ports detected [ 4.294555] Initializing USB Mass Storage driver... [ 4.299896] usbcore: registered new interface driver usb-storage [ 4.306243] USB Mass Storage support registered. [ 4.325653] usbcore: registered new interface driver usbtest [ 4.331665] g_ether gadget: using random self ethernet address [ 4.337799] g_ether gadget: using random host ethernet address [ 4.356994] usb0: MAC 46:1e:c9:97:36:fe [ 4.360992] usb0: HOST MAC be:bc:e8:05:41:33 [ 4.365570] g_ether gadget: Ethernet Gadget, version: Memorial Day 2008 [ 4.372528] g_ether gadget: g_ether ready [ 4.376739] musb-hdrc musb-hdrc.0: MUSB HDRC host driver [ 4.382385] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus numb2 [ 4.427246] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002 [ 4.434356] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber1 [ 4.441955] usb usb2: Product: MUSB HDRC host driver [ 4.447174] usb usb2: Manufacturer: Linux 2.6.37+ musb-hcd [ 4.452941] usb usb2: SerialNumber: musb-hdrc.0 [ 4.490112] hub 2-0:1.0: USB hub found [ 4.494049] hub 2-0:1.0: 1 port detected [ 4.513244] mice: PS/2 mouse device common for all mice [ 4.529296] input: TWL4030 Keypad as /devices/platform/omap/omap_i2c.1/i2c-10 [ 4.561096] input: twl4030_pwrbutton as /devices/platform/omap/omap_i2c.1/i21 [ 4.584014] twl_rtc twl_rtc: rtc core: registered twl_rtc as rtc0 [ 4.606964] i2c /dev entries driver [ 4.622894] Linux media interface: v0.10 [ 4.627166] Linux video capture interface: v2.00 [ 4.638458] usbcore: registered new interface driver uvcvideo [ 4.644500] USB Video Class driver (v1.0.0) [ 4.670166] mmci-omap-hs.0 supply vmmc_aux not found, using dummy regulator [ 4.693237] mmci-omap-hs.1 supply vmmc not found, using dummy regulator [ 4.700195] mmci-omap-hs.1 supply vmmc_aux not found, using dummy regulator [ 4.716552] mmci-omap-hs mmci-omap-hs.1: could not set regulator OCR (-22) [ 4.740234] omap_sham_mod_init: loading omap-sham driver [ 4.745819] omap_sham_mod_init: Unsupported cpu [ 4.750579] omap_aes_mod_init: loading omap-aes driver [ 4.755981] omap_aes_mod_init: Unsupported cpu [ 4.786346] usbcore: registered new interface driver usbhid [ 4.792205] usbhid: USB HID core driver [ 4.818878] IGEP SoC init [ 4.822662] mmc1: new SDIO card at address 0001 [ 4.915283] asoc: twl4030-hifi <-> omap-mcbsp-dai.1 mapping ok [ 4.938995] ALSA device list: [ 4.942108] #0: igep [ 4.944824] TCP cubic registered [ 4.948181] Initializing XFRM netlink socket [ 4.952697] NET: Registered protocol family 17 [ 4.957397] NET: Registered protocol family 15 [ 4.962127] lib80211: common routines for IEEE802.11 drivers [ 4.968078] Registering the dns_resolver key type [ 4.973083] VFP support v0.3: implementor 41 architecture 3 part 30 variant 3 [ 5.028991] ThumbEE CPU extension supported. [ 5.052703] Power Management for TI OMAP3. [ 5.057617] smartreflex smartreflex.0: omap_sr_probe: SmartReflex driver inid [ 5.065917] smartreflex smartreflex.1: omap_sr_probe: SmartReflex driver inid [ 5.091278] SmartReflex Class3 initialized [ 5.095581] clock: disabling unused clocks to save power [ 5.102020] platform iva.0: omap_voltage_scale: Already at the requestedrate0 [ 5.110290] platform mpu.0: omap_voltage_scale: Already at the requestedrate0 [ 5.345336] Console: switching to colour frame buffer device 80x25 [ 5.373504] twl_rtc twl_rtc: setting system clock to 2012-01-29 16:40:19 UTC) [ 5.382141] omap_vout omap_vout: probed for an unknown device [ 5.404022] VFS: Cannot open root device \\\"ubi0:igep0020-rootfs\\\" or unknown-b) [ 5.412200] Please append a correct \\\"root=\\\" boot option; here are the availa: [ 5.420928] 1f00 512 mtdblock0 (driver?) [ 5.426177] 1f01 12288 mtdblock1 (driver?) [ 5.431457] 1f02 511488 mtdblock2 (driver?) [ 5.436737] Kernel panic - not syncing: VFS: Unable to mount root fs on unkn) [ 5.445373] [] (unwind_backtrace+0x0/0xec) from [] (pani) [ 5.453918] [] (panic+0x4c/0x180) from [] (mount_block_r) [ 5.462707] [] (mount_block_root+0x1d4/0x21c) from [] (p) [ 5.472595] [] (prepare_namespace+0x8c/0x1c8) from [] (k) [ 5.482025] [] (kernel_init+0x10c/0x150) from [] (kernel) [/i]
    [/size][/quote]
    The reply is currently minimized Show
  • Accepted Answer

    mcaro
    mcaro
    Offline
    Monday, March 05 2012, 07:38 PM - #permalink
    0
    why you do? [code]nandwrite -p /dev/mtd1 tes.img[/code] You should mount it as: flash_eraseall /dev/mtd1 mount -t jffs2 /dev/mtdblock1 /boot and then use normal copy: cp /boot Manel
    The reply is currently minimized Show
  • Accepted Answer

    davigier
    davigier
    Offline
    Tuesday, March 06 2012, 11:07 AM - #permalink
    0
    [size="2:o3vqefal"] Manel, I reprogram the nandflash for my rootfs as follow. I also test to mount the rootfs after program to check -> it is ok I boot from the nandflash. I have the kernel panic I had the first time. Netherless , the rootfs is OK because I used it on my sdcard root@igep0020:~/PROG_IGEP/RootP# ubiformat /dev/mtd2 -s 512 -f igep0020.ubi ubiformat: mtd2 (nand), size 523763712 bytes (499.5 MiB), 3996 eraseblocks of 131072 bytes (128.0 KiB), min. I/O size 20s libscan: scanning eraseblock 3995 -- 100 % complete ubiformat: 3996 eraseblocks are supposedly empty ubiformat: flashing eraseblock 1499 -- 100 % complete ubiformat: formatting eraseblock 3995 -- 100 % complete root@igep0020:~/PROG_IGEP/RootP# ubiattach /dev/ubi_ctrl -m 2 [ 633.946563] UBI: attaching mtd2 to ubi0 [ 633.950561] UBI: physical eraseblock size: 131072 bytes (128 KiB) [ 633.957122] UBI: logical eraseblock size: 129024 bytes [ 633.962768] UBI: smallest flash I/O unit: 2048 [ 633.967651] UBI: sub-page size: 512 [ 633.972442] UBI: VID header offset: 512 (aligned 512) [ 633.978546] UBI: data offset: 2048 [ 635.560546] UBI: max. sequence number: 0 [ 635.597137] UBI: volume 0 (\\\"igep0020-rootfs\\\") re-sized from 1498 to 3953 LEBs [ 635.616821] UBI: attached mtd2 to ubi0 [ 635.620697] UBI: MTD device name: \\\"File System\\\" [ 635.626434] UBI: MTD device size: 499 MiB [ 635.631622] UBI: number of good PEBs: 3996 [ 635.636505] UBI: number of bad PEBs: 0 [ 635.641143] UBI: number of corrupted PEBs: 0 [ 635.645782] UBI: max. allowed volumes: 128 [ 635.650573] UBI: wear-leveling threshold: 4096 [ 635.655487] UBI: number of internal volumes: 1 [ 635.660095] UBI: number of user volumes: 1 [ 635.664733] UBI: available PEBs: 0 [ 635.669342] UBI: total number of reserved PEBs: 3996 [ 635.674530] UBI: number of PEBs reserved for bad PEB handling: 39 [ 635.680877] UBI: max/mean erase counter: 0/0 [ 635.685302] UBI: image sequence number: 1451442185 [ 635.690979] UBI: background thread \\\"ubi_bgt0d\\\" started, PID 1620 UBI device number 0, total 3996 LEBs (515579904 bytes, 491.7 MiB), available 0 LEBs (0 bytes), LEB size 129024 bytes (12) root@igep0020:/dev# mount -t ubifs ubi0:igep0020-rootfs /mnt/ubi [ 703.436126] UBIFS: mounted UBI device 0, volume 0, name \\\"igep0020-rootfs\\\" [ 703.443237] UBIFS: file system size: 508612608 bytes (496692 KiB, 485 MiB, 3942 LEBs) [ 703.451629] UBIFS: journal size: 9033728 bytes (8822 KiB, 8 MiB, 71 LEBs) [ 703.459259] UBIFS: media format: w4/r0 (latest is w4/r0) [ 703.465362] UBIFS: default compressor: lzo [ 703.469635] UBIFS: reserved for root: 0 bytes (0 KiB) root@igep0020:/dev# cd /mnt/ubi/ root@igep0020:/mnt/ubi# ls bin etc linuxrc mnt sys var boot home lost+found proc tmp www dev lib media sbin usr root@igep0020:/mnt/ubi# ���60 IGEP-X-Loader 2.4.0-2 (Mar 5 2012 - 17:00:39) XLoader: Processor DM3730 - ES1.2 XLoader: Memory Manufacturer: Micron (2c) XLoader: Scan jffs2 partition: .......................................................................................... XLoader: Configuration file igep.ini Loaded from Flash memory XLoader: try load kernel from MMC XLoader: try load kernel from Flash XLoader: kernel zImage loaded from FLASH at 0x80008000 size = 3138240 XLoader: IGEPv2 : kernel boot ... Uncompressing Linux... done, booting the kernel. [ 0.000000] Linux version 2.6.37+ (leafplug@ServeurBnext) (gcc version 4.3.3 (GCC) ) #1 Fri Jan 13 11:38:42 CET 2012 [ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7f [ 0.000000] CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache [ 0.000000] Machine: IGEP0020 board [ 0.000000] IGEP: IGEP0020 machine + IGEP0022 (buddy) [ 0.000000] Reserving 4194304 bytes SDRAM for VRAM [ 0.000000] Memory policy: ECC disabled, Data cache writeback [ 0.000000] OMAP3630 ES1.2 (l2cache iva sgx neon isp 192mhz_clk ) [ 0.000000] SRAM: Mapped pa 0x40200000 to va 0xfe400000 size: 0x10000 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 108196 [ 0.000000] Kernel command line: buddy=igep0022 console=ttyO2,115200n8 mem=430M boot_delay=0 nocompcache=1 omapfb.mod [ 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: 426MB = 426MB total [ 0.000000] Memory: 425824k/425824k available, 14496k 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] DMA : 0xffc00000 - 0xffe00000 ( 2 MB) [ 0.000000] vmalloc : 0xdb000000 - 0xf8000000 ( 464 MB) [ 0.000000] lowmem : 0xc0000000 - 0xdae00000 ( 430 MB) [ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB) [ 0.000000] .init : 0xc0008000 - 0xc003e000 ( 216 kB) [ 0.000000] .text : 0xc003e000 - 0xc05d449c (5722 kB) [ 0.000000] .data : 0xc05d6000 - 0xc06186a0 ( 266 kB) [ 0.000000] NR_IRQS:409 [ 0.000000] Clocking rate (Crystal/Core/MPU): 26.0/400/600 MHz [ 0.000000] Reprogramming SDRC clock to 400000000 Hz [ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 4.0) with 96 interrupts [ 0.000000] Total of 96 interrupts on 1 active controller [ 0.000000] GPMC revision 5.0 [ 0.000000] Trying to install interrupt handler for IRQ402 [ 0.000000] Trying to install interrupt handler for IRQ403 [ 0.000000] Trying to install interrupt handler for IRQ404 [ 0.000000] Trying to install interrupt handler for IRQ405 [ 0.000000] Trying to install interrupt handler for IRQ406 [ 0.000000] Trying to install interrupt handler for IRQ407 [ 0.000000] Trying to install interrupt handler for IRQ408 [ 0.000000] Trying to install type control for IRQ409 [ 0.000000] Trying to set irq flags for IRQ409 [ 0.000000] OMAP clockevent source: GPTIMER1 at 32768 Hz [ 0.000000] Console: colour dummy device 80x30 [ 0.000000] Calibrating delay loop... 597.64 BogoMIPS (lpj=2334720) .... [ 1.195861] brd: module loaded [ 1.204040] loop: module loaded [ 1.207427] at24 2-0050: 128 byte 24c01 EEPROM (writable) [ 1.215789] mtdoops: mtd device (mtddev=name/number) must be supplied [ 1.222595] omap2-nand driver initializing [ 1.227264] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xbc (Micron ) [ 1.234222] Creating 3 MTD partitions on \\\"omap2-nand.0\\\": [ 1.239837] 0x000000000000-0x000000080000 : \\\"X-Loader\\\" [ 1.247009] 0x000000080000-0x000000c80000 : \\\"Boot\\\" [ 1.258422] 0x000000c80000-0x000020000000 : \\\"File System\\\" [ 1.471771] OneNAND driver initializing [ 1.476562] UBI: attaching mtd2 to ubi0 [ 1.480590] UBI: physical eraseblock size: 131072 bytes (128 KiB) [ 1.487182] UBI: logical eraseblock size: 129024 bytes [ 1.492858] UBI: smallest flash I/O unit: 2048 [ 1.497802] UBI: sub-page size: 512 [ 1.502655] UBI: VID header offset: 512 (aligned 512) [ 1.508758] UBI: data offset: 2048 [ 2.322753] UBI: max. sequence number: 5 [ 2.339324] UBI: attached mtd2 to ubi0 [ 2.343292] UBI: MTD device name: \\\"File System\\\" [ 2.349060] UBI: MTD device size: 499 MiB [ 2.354278] UBI: number of good PEBs: 3996 [ 2.359222] UBI: number of bad PEBs: 0 [ 2.363861] UBI: number of corrupted PEBs: 0 [ 2.368530] UBI: max. allowed volumes: 128 [ 2.373382] UBI: wear-leveling threshold: 4096 [ 2.378326] UBI: number of internal volumes: 1 [ 2.382995] UBI: number of user volumes: 1 [ 2.387634] UBI: available PEBs: 0 [ 2.392303] UBI: total number of reserved PEBs: 3996 [ 2.397521] UBI: number of PEBs reserved for bad PEB handling: 39 [ 2.403930] UBI: max/mean erase counter: 1/0 [ 2.408386] UBI: image sequence number: 1451442185 [ 2.413757] UBI: background thread \\\"ubi_bgt0d\\\" started, PID 540 [ 2.422088] smsc911x: Driver version 2008-10-21. [ 2.428436] smsc911x-mdio: probed [ 2.432037] eth0: attached PHY driver [SMSC LAN8700] (mii_bus:phy_addr=0:01, irq=-1) [ 2.441436] net eth0: MAC Address: b2:b0:14:b5:cd:de [ 2.447052] usbcore: registered new interface driver asix [ 2.452880] usbcore: registered new interface driver cdc_ether [ 2.459197] usbcore: registered new interface driver net1080 [ 2.465270] usbcore: registered new interface driver cdc_subset [ 2.471679] usbcore: registered new interface driver zaurus [ 2.477722] ehci_hcd: USB 2.0 \\\'Enhanced\\\' Host Controller (EHCI) Driver [ 3.489685] ehci-omap ehci-omap.0: OMAP-EHCI Host Controller [ 3.495697] ehci-omap ehci-omap.0: new USB bus registered, assigned bus number 1 [ 3.503601] ehci-omap ehci-omap.0: irq 77, io mem 0x48064800 [ 3.521057] ehci-omap ehci-omap.0: USB 2.0 started, EHCI 1.00 [ 3.527160] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 [ 3.534301] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 3.541900] usb usb1: Product: OMAP-EHCI Host Controller [ 3.547485] usb usb1: Manufacturer: Linux 2.6.37+ ehci_hcd [ 3.553222] usb usb1: SerialNumber: ehci-omap.0 [ 3.558868] hub 1-0:1.0: USB hub found [ 3.562866] hub 1-0:1.0: 3 ports detected [ 3.591491] Initializing USB Mass Storage driver... [ 3.596832] usbcore: registered new interface driver usb-storage [ 3.603149] USB Mass Storage support registered. [ 3.608215] usbcore: registered new interface driver usbtest [ 3.614196] g_ether gadget: using random self ethernet address [ 3.620330] g_ether gadget: using random host ethernet address [ 3.627044] usb0: MAC 4a:a8:25:6d:15:c3 [ 3.631103] usb0: HOST MAC 46:1e:c9:97:36:fe [ 3.635650] g_ether gadget: Ethernet Gadget, version: Memorial Day 2008 [ 3.642608] g_ether gadget: g_ether ready [ 3.646820] musb-hdrc musb-hdrc.0: MUSB HDRC host driver [ 3.652435] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 2 [ 3.660278] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002 [ 3.667449] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 3.675018] usb usb2: Product: MUSB HDRC host driver [ 3.680236] usb usb2: Manufacturer: Linux 2.6.37+ musb-hcd [ 3.686004] usb usb2: SerialNumber: musb-hdrc.0 [ 3.691680] hub 2-0:1.0: USB hub found [ 3.695648] hub 2-0:1.0: 1 port detected [ 3.700836] mice: PS/2 mouse device common for all mice [ 3.707153] input: TWL4030 Keypad as /devices/platform/omap/omap_i2c.1/i2c-1/1-004a/twl4030_keypad/input/input0 [ 3.720611] input: twl4030_pwrbutton as /devices/platform/omap/omap_i2c.1/i2c-1/1-0049/twl4030_pwrbutton/input/input1 [ 3.732727] twl_rtc twl_rtc: rtc core: registered twl_rtc as rtc0 [ 3.740264] i2c /dev entries driver [ 3.745117] Linux media interface: v0.10 [ 3.749420] Linux video capture interface: v2.00 [ 3.754608] usbcore: registered new interface driver uvcvideo [ 3.760650] USB Video Class driver (v1.0.0) [ 3.766540] mmci-omap-hs.0 supply vmmc_aux not found, using dummy regulator [ 3.775543] mmci-omap-hs.1 supply vmmc not found, using dummy regulator [ 3.782531] mmci-omap-hs.1 supply vmmc_aux not found, using dummy regulator [ 3.791656] mmci-omap-hs mmci-omap-hs.1: could not set regulator OCR (-22) [ 3.799926] omap_sham_mod_init: loading omap-sham driver [ 3.805541] omap_sham_mod_init: Unsupported cpu [ 3.810302] omap_aes_mod_init: loading omap-aes driver [ 3.815673] omap_aes_mod_init: Unsupported cpu [ 3.821258] usbcore: registered new interface driver usbhid [ 3.827117] usbhid: USB HID core driver [ 3.833648] IGEP SoC init [ 3.897399] asoc: twl4030-hifi <-> omap-mcbsp-dai.1 mapping ok [ 3.908020] ALSA device list: [ 3.911132] #0: igep [ 3.913818] TCP cubic registered [ 3.917205] Initializing XFRM netlink socket [ 3.921722] NET: Registered protocol family 17 [ 3.926422] NET: Registered protocol family 15 [ 3.931121] lib80211: common routines for IEEE802.11 drivers [ 3.937103] Registering the dns_resolver key type [ 3.942077] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3 [ 3.950469] ThumbEE CPU extension supported. [ 3.957794] Power Management for TI OMAP3. [ 3.962890] smartreflex smartreflex.0: omap_sr_probe: SmartReflex driver initialized [ 3.971160] smartreflex smartreflex.1: omap_sr_probe: SmartReflex driver initialized [ 3.979583] SmartReflex Class3 initialized [ 3.983886] clock: disabling unused clocks to save power [ 3.990325] platform iva.0: omap_voltage_scale: Already at the requestedrate 800000000 [ 3.998596] platform mpu.0: omap_voltage_scale: Already at the requestedrate 1000000000 [ 4.110107] Console: switching to colour frame buffer device 80x25 [ 4.125000] twl_rtc twl_rtc: setting system clock to 2012-01-30 08:39:55 UTC (1327912795) [ 4.133605] omap_vout omap_vout: probed for an unknown device [ 4.160949] UBIFS: recovery needed [ 4.186706] UBIFS: recovery completed [ 4.190521] UBIFS: mounted UBI device 0, volume 0, name \\\"igep0020-rootfs\\\" [ 4.197631] UBIFS: file system size: 508612608 bytes (496692 KiB, 485 MiB, 3942 LEBs) [ 4.205963] UBIFS: journal size: 9033728 bytes (8822 KiB, 8 MiB, 71 LEBs) [ 4.213562] UBIFS: media format: w4/r0 (latest is w4/r0) [ 4.219665] UBIFS: default compressor: lzo [ 4.223907] UBIFS: reserved for root: 0 bytes (0 KiB) [ 4.229919] VFS: Mounted root (ubifs filesystem) on device 0:13. [ 4.236206] Freeing init memory: 216K [ 4.243072] Kernel panic - not syncing: No init found. Try passing init= option to kernel. See Linux Documentation/i. [ 4.256072] [] (unwind_backtrace+0x0/0xec) from [] (panic+0x4c/0x180) [ 4.264617] [] (panic+0x4c/0x180) from [] (init_post+0x108/0x138) [ 4.272766] [] (init_post+0x108/0x138) from [] (kernel_init+0x110/0x150) [ 4.281585] [] (kernel_init+0x110/0x150) from [] (kernel_thread_exit+0x0/0x8) If you have an idea thank you [/size]
    The reply is currently minimized Show
  • Accepted Answer

    davigier
    davigier
    Offline
    Wednesday, March 07 2012, 01:25 PM - #permalink
    0
    [size="2:17sobws8"]Hello Manel, I tested my filesystem on the nandflash wich is working on my sdcard by two different ways the first one: with mtd2 as ubifs partition the second one: with mtd2 as jffs2 partition In both twp cases i have the same problem: the mtd2 partition is mounted but i have Kernel panic - not syncing: No init found. Try passing init= option to kernel. See Linux Documentation/i. However, the file system i used is the same for my sdcard Can you give me some informations thank you [/size]
    The reply is currently minimized Show
  • Accepted Answer

    davigier
    davigier
    Offline
    Thursday, March 08 2012, 01:31 PM - #permalink
    0
    Hello Manel, I succeed to flash the nand on the igep board with a ubi file. I don\\\'t know why but I had to create the ubifs file from the rootfs on the sdcard directly and not from an image of the rootfs on my laptop. Anywhere, now t is working. I have another question. the udev rename now the wlan0 to wlan4. Do you have an ecplanation about that? thank you for your help
    The reply is currently minimized Show
Your Reply

SUPPORT


This email address is being protected from spambots. You need JavaScript enabled to view it.
This email address is being protected from spambots. You need JavaScript enabled to view it.
IGEP Community Wiki
IGEP Community Forum
IGEP Community Online Chat