Missing INIT in uImage??

Discussion in 'Troubleshooting' started by Drew_R, Dec 22, 2015.

  1. Drew_R

    Drew_R New Member

    Joined:
    Dec 22, 2015
    Messages:
    5
    Likes Received:
    1
    After many days of scratching my head, I have finally gotten my son's quad board to partially boot. I can see the output from the serial connection and get a splash screen on a connected monitor; however, the boot process unwinds after mounting the root fs and looking for a valid init and trying to mount devtmpfs. I created the SDCard using the binaries and running the update patch with the new U-Boot image and kernel. This has been the only way I have managed to boot the card. We bought this in Dec 2014 and have only just now been looking at getting it going. Also, while the board is powered, it gets quite hot to the touch. Without being able to fully boot, I cannot get a good temperature, but it seems that something is locked into a loop on the processor.

    Output from the serial port is below:

    Code:
    
    U-Boot 2013.10-rc3 (Jan 20 2014 - 13:33:34)
    
    CPU:  Freescale i.MX6Q rev1.2 at 792 MHz
    Reset cause: POR
    Board: UDOO
    DRAM:  1 GiB
    MMC:  FSL_SDHC: 0
    *** Warning - bad CRC, using default environment
    
    No panel detected: default to LDB-WVGA
    Display: LDB-WVGA (800x480)
    In:  serial
    Out:  serial
    Err:  serial
    Net:  using phy at 6
    FEC [PRIME]
    Hit any key to stop autoboot:  0
    mmc0 is current device
    ** File not found boot.scr **
    4773948 bytes read in 282 ms (16.1 MiB/s)
    Booting from mmc ...
    ** File not found imx6q-udoo.dtb **
    ## Booting kernel from Legacy Image at 12000000 ...
      Image Name:  Linux-3.0.35
      Image Type:  ARM Linux Kernel Image (uncompressed)
      Data Size:  4773884 Bytes = 4.6 MiB
      Load Address: 10008000
      Entry Point:  10008000
      Verifying Checksum ... OK
      Loading Kernel Image ... OK
    
    Starting kernel ...
    
    [  0.000000] Initializing cgroup subsys cpu
    [  0.000000] Linux version 3.0.35 (udoo@ubuntu) (gcc version 4.4.4 (4.4.4_09.06.2010) ) #10 SMP PREEMPT Wed Jul 30 18:16:10 CEST 2014
    [  0.000000] CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c53c7d
    [  0.000000] CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [  0.000000] Machine: SECO i.Mx6 UDOO Board
    [  0.000000] Kernel ver: v. 132\nMemory policy: ECC disabled, Data cache writealloc
    [  0.000000] CPU identified as i.MX6Q, silicon rev 1.2
    [  0.000000] PERCPU: Embedded 7 pages/cpu @8c008000 s5504 r8192 d14976 u32768
    [  0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 227328
    [  0.000000] Kernel command line: console=ttymxc1,115200 root=/dev/mmcblk0p1 rootwait rw fbmem=24M video=mxcfb0:dev=hdmi,1920x1080M@60,bpp=32
    [  0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
    [  0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
    [  0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
    [  0.000000] Memory: 640MB 256MB = 896MB total
    [  0.000000] Memory: 895056k/895056k available, 153520k 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  : 0xf4600000 - 0xffe00000  ( 184 MB)
    [  0.000000]  vmalloc : 0xc0800000 - 0xf2000000  ( 792 MB)
    [  0.000000]  lowmem  : 0x80000000 - 0xc0000000  (1024 MB)
    [  0.000000]  pkmap  : 0x7fe00000 - 0x80000000  (  2 MB)
    [  0.000000]  modules : 0x7f000000 - 0x7fe00000  (  14 MB)
    [  0.000000]  .init : 0x80008000 - 0x8003a000  ( 200 kB)
    [  0.000000]  .text : 0x8003a000 - 0x80c41368  (12317 kB)
    [  0.000000]  .data : 0x80c42000 - 0x80cac180  ( 425 kB)
    [  0.000000]  .bss : 0x80cac1a4 - 0x80cfec64  ( 331 kB)
    [  0.000000] SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
    [  0.000000] Preemptible hierarchical RCU implementation.
    [  0.000000] NR_IRQS:624
    [  0.000000] MXC GPIO hardware
    [  0.000000] sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 1431655ms
    [  0.000000] arm_max_freq=1GHz
    [  0.000000] MXC_Early serial console at MMIO 0x21e8000 (options '115200')
    [  0.000000] bootconsole [ttymxc1] enabled
    [  0.000000] Console: colour dummy device 80x30
    [  0.218105] Calibrating delay loop... 1581.05 BogoMIPS (lpj=7905280)
    [  0.306440] pid_max: default: 32768 minimum: 301
    [  0.311325] Mount-cache hash table entries: 512
    [  0.316583] Initializing cgroup subsys cpuacct
    [  0.321083] Initializing cgroup subsys devices
    [  0.325542] Initializing cgroup subsys freezer
    [  0.330031] Initializing cgroup subsys blkio
    [  0.334368] CPU: Testing write buffer coherency: ok
    [  0.339523] hw perfevents: enabled with ARMv7 Cortex-A9 PMU driver, 7 counters available
    [  0.440052] CPU1: Booted secondary processor
    [  0.520051] CPU2: Booted secondary processor
    [  0.600072] CPU3: Booted secondary processor
    [  0.639561] Brought up 4 CPUs
    [  0.655388] SMP: Total of 4 processors activated (6324.22 BogoMIPS).
    [  0.662194] devtmpfs: initialized
    
    ...SNIP...
    
    [  2.623791] Cirrus Logic CS42888 ALSA SoC Codec Driver
    [  2.629147] i2c-core: driver [cs42888] using legacy suspend method
    <6>[  2.630766] mmc0: new high speed SDHC card at address 0001
    [  2.631167] mmcblk0: mmc0:0001 00000 29.8 GiB
    [  2.632224]  mmcblk0: p1
    [  2.648074] i2c-core: driver [cs42888] using legacy resume method
    [  3.021291] mxc_dvfs_core_probe
    [  3.024647] DVFS driver module loaded
    [  3.029938] snvs_rtc snvs_rtc.0: setting system clock to 1970-01-01 00:00:00 UTC (0)
    [  3.191742] VFS: Mounted root (ext2 filesystem) on device 179:1.
    [  3.198540] devtmpfs: error mounting -2
    [  3.202506] Freeing init memory: 200K
    [  3.210721] Kernel panic - not syncing: No init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
    [  3.223198] [<800475d4>] (unwind_backtrace+0x0/0xfc) from [<8065b150>] (panic+0x74/0x19c)
    [  3.231406] [<8065b150>] (panic+0x74/0x19c) from [<8003a690>] (init_post+0x7c/0xcc)
    [  3.239083] [<8003a690>] (init_post+0x7c/0xcc) from [<800083e0>] (kernel_init+0x10c/0x144)
    [  3.247361] [<800083e0>] (kernel_init+0x10c/0x144) from [<80041080>] (kernel_thread_exit+0x0/0x8)
    [  3.256248] CPU1: stopping
    [  3.258972] [<800475d4>] (unwind_backtrace+0x0/0xfc) from [<8003a26c>] (do_IPI+0x120/0x14c)
    [  3.267333] [<8003a26c>] (do_IPI+0x120/0x14c) from [<8003ffcc>] (__irq_svc+0x4c/0xe8)
    [  3.275165] Exception stack(0xbffadf90 to 0xbffadfd8)
    [  3.280220] df80:  80cb3780 20000093 00000001 00000000
    [  3.288402] dfa0: bffac000 80cac264 80660224 80c5b41c 1000406a 412fc09a 00000000 00000000
    [  3.296583] dfc0: 00000000 bffadfd8 8004f37c 80041124 40000013 ffffffff
    [  3.303204] [<8003ffcc>] (__irq_svc+0x4c/0xe8) from [<80041124>] (default_idle+0x24/0x28)
    [  3.311389] [<80041124>] (default_idle+0x24/0x28) from [<800417e0>] (cpu_idle+0xc8/0x108)
    [  3.319573] [<800417e0>] (cpu_idle+0xc8/0x108) from [<10658234>] (0x10658234)
    [  3.326711] CPU3: stopping
    [  3.329432] [<800475d4>] (unwind_backtrace+0x0/0xfc) from [<8003a26c>] (do_IPI+0x120/0x14c)
    [  3.337792] [<8003a26c>] (do_IPI+0x120/0x14c) from [<8003ffcc>] (__irq_svc+0x4c/0xe8)
    [  3.345624] Exception stack(0xbff01f90 to 0xbff01fd8)
    [  3.350678] 1f80:  80cb3780 60000093 00000001 00000000
    [  3.358860] 1fa0: bff00000 80cac264 80660224 80c5b41c 1000406a 412fc09a 00000000 00000000
    [  3.367041] 1fc0: 00000000 bff01fd8 8004f37c 80041124 40000013 ffffffff
    [  3.373662] [<8003ffcc>] (__irq_svc+0x4c/0xe8) from [<80041124>] (default_idle+0x24/0x28)
    [  3.381847] [<80041124>] (default_idle+0x24/0x28) from [<800417e0>] (cpu_idle+0xc8/0x108)
    [  3.390029] [<800417e0>] (cpu_idle+0xc8/0x108) from [<10658234>] (0x10658234)
    [  3.397167] CPU0: stopping
    [  3.399887] [<800475d4>] (unwind_backtrace+0x0/0xfc) from [<8003a26c>] (do_IPI+0x120/0x14c)
    [  3.408247] [<8003a26c>] (do_IPI+0x120/0x14c) from [<8003ffcc>] (__irq_svc+0x4c/0xe8)
    [  3.416079] Exception stack(0x80c43f68 to 0x80c43fb0)
    [  3.421135] 3f60:  80cb3780 60000093 00000001 00000000 80c42000 80cac264
    [  3.429317] 3f80: 80660224 80c5b41c 1000406a 412fc09a 00000000 00000000 00000000 80c43fb0
    [  3.437496] 3fa0: 8004f37c 80041124 40000013 ffffffff
    [  3.442554] [<8003ffcc>] (__irq_svc+0x4c/0xe8) from [<80041124>] (default_idle+0x24/0x28)
    [  3.450739] [<80041124>] (default_idle+0x24/0x28) from [<800417e0>] (cpu_idle+0xc8/0x108)
    [  3.458924] [<800417e0>] (cpu_idle+0xc8/0x108) from [<800088b0>] (start_kernel+0x254/0x294)
    [  3.467280] [<800088b0>] (start_kernel+0x254/0x294) from [<1000803c>] (0x1000803c)
    
    Looking for suggestions on where to turn next. It looks very close, I am downloading a full image from the site and will try again with the patch. I am building this from Linux to try and avoid the problems with Windows that I have fought for years with Android/Arduino based devices.

    Thanks,
    Drew
     
  2. Drew_R

    Drew_R New Member

    Joined:
    Dec 22, 2015
    Messages:
    5
    Likes Received:
    1
    OK. I downloaded the UDOObuntu image from the downloads page and applied the update from the resources page. I do get a boot apparently into X, but now the system is in a continuous boot loop. Checked the logs - /home/ubuntu/.vnc/udoobuntu:1.log, and /home/ubuntu/.vnc/udoobuntu:2.log, but they didn't show anything.

    Going to try just burning the image from UDOObuntu_quad_v1.1.img and see what happens. Maybe it will just boot. This seems to be quite dependent on which OS is used to burn the image to the SDCard. I have not gotten this working with Windows 8.1 and Win32... creator.

    Update shortly...
     
  3. Drew_R

    Drew_R New Member

    Joined:
    Dec 22, 2015
    Messages:
    5
    Likes Received:
    1
    Burned the standard UDOObuntu 1.1 quad image to SDCard and it does not boot on this board. Not sure to figure out which vintage this is; however, it looks like I will be building from scratch. This is a bit frustrating since this board is supposed to be fairly trouble free, but there appear to be many people struggling with getting the ARM side to boot properly.

    Where to next? Thinking building from sources.

    Discuss...
     
  4. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
    Dear Drew_R,
    UDOObuntu 1.1 works fine and must work fine once you completed the whole process explained in the guide. So if it doesn't work fine that's a problem.
    Please, check the sha1 of what you got on your board compared with the one you find under the image to downloaded. If it's different it's not good.
     
  5. Drew_R

    Drew_R New Member

    Joined:
    Dec 22, 2015
    Messages:
    5
    Likes Received:
    1
    I ordered a pre-loaded card from the shop and it does work. That's good.

    Is there a specification for the memory cards that will work with the board? I was trying to use a Samsung 32GB EVO HC SD, but was unable to get it to boot properly.

    Going to look into using the SATA port on the board to make the installation a bit more permanent.
     
  6. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
    It should boot instead. Would you mind opening a ticket to explain your problem?
     
  7. Drew_R

    Drew_R New Member

    Joined:
    Dec 22, 2015
    Messages:
    5
    Likes Received:
    1
    I am going to try again to make an image using the Linux instructions with the UDOObuntu image from the downloads page on the site. If that still does not work, I will open a ticket with the details.

    EDIT:

    I have been looking at the works displayed on the elinux.org and other sites for embedded Linux. I was able to create a good U-Boot image, but I have not found the right information for compiling the kernel and getting it to boot. I am getting a better understanding of the Freescale processor while I read.
     
    Andrea Rovai likes this.
  8. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
    Dear @Drew_R,
    elinux is no more our official guide where to put resources and stuff. We used it but now the Documentation accessible inside our website is the official one. There is still UDOO resources, but it's not updated.
    Anyway elinux is a really good resource by itself.
     

Share This Page