Announcement

Collapse
No announcement yet.

Updating u-boot imx6-rex pro

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • #16
    Ok, I will try that. It is a good idea see if everything is working fine before going further. Thank you!

    Comment


    • #17
      That fixed crc error. Thank you.

      I have other problem right now. I have a version of yocto which comes with a uboot which can be loaded in memory. No need of reflashing. I got it from voipac page I think).

      Now I have a newer uboot through mfgtools without flashing spi, I tried the command boot with this image. And it works. it loads yocto through my uboot 2015 version.

      Then, I thought I could do the same with a newer version of ubuntu/debian. And for that, I followed the next tutorial http://www.imx6rex.com/software/how-...3-15-and-3-16/
      I used 3.15 kernel.
      Everything went fine, I got the sd card with zImage, uImage (both in / folder) and every file I think it needs. But at the time of using "boot" command, I get this message: (filesystem is ext3/4 (both tested) as fat32 can't handle symlinks)

      Rex U-Boot > boot
      switch to partitions #0, OK
      mmc0 is current device
      ** Unrecognized filesystem type **
      ** Unrecognized filesystem type **
      Booting from net ...
      Using FEC device
      TFTP from server 192.168.0.1; our IP address is 192.168.0.150
      Filename 'imx6/zImage'.
      Load address: 0x10800000
      Loading: T T T T T T T T T T
      Retry count exceeded; starting again
      Using FEC device
      TFTP from server 192.168.0.1; our IP address is 192.168.0.150
      Filename 'imx6/zImage'.
      Load address: 0x10800000
      Loading: T T T T T T T T T

      All "T"s start being an asterisk and they go increasing until count exceeds.

      I see it tries imx6/zImage folder so I created one with that name and put inside both files. I got the same result.

      Any ideas about this?
      Last edited by Suriken; 12-16-2016, 01:01 AM.

      Comment


      • #18
        Did you use printenv /setenv / savenv to update the default env parameters according to your board?

        Comment


        • #19
          Um, I don't think so. I just did setenv to remove crc error. Also I tested some commands I found with "help". What should I modify with setenv/saveenv? My board is a imx6 rex pro 2gb.

          Comment


          • #20
            In the environmental variables you need to setup some things about your board. For example, you need to setup where your kernel is located, where your filesystem is located, if you would like to boot up into display, what resolution, what interface, etc.

            Here you have an example, it will help you:
            Code:
            setenv bootargs_mmc 'setenv bootargs ${bootargs} ip=dhcp root=/dev/mmcblk0p1 rootwait video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB666 vmalloc=400M fbmem=28M fbcon=28M'
            setenv bootcmd_mmc 'run bootargs_mmc ; mmc dev 1; ext2load mmc 1 0x10800000 uImage-gpu 3916636; bootm 0x10800000'

            Comment


            • #21
              I have tested for the last two days and I got nothing. I am able to read the uImage from SD card and my kernel it seems to be loading but at some point it got stuck and never ends.

              I tried with a couple of tutorial for creating the filesystem, different images of ubuntu/debian prepared for imx6rexpro and same result.

              It could be related with the load of u-boot? I haven't flashed it yet. I am testing it through mfgtool program.

              Comment


              • #22
                Could you attach the complete console output?

                Comment


                • #23
                  This is the output as soon as I execute "Start" on MFGtools:
                  Code:
                  U-Boot 2015.04-g9de6034 (Dec 13 2016 - 06:48:43)
                  
                  CPU:   Freescale i.MX6Q rev1.2 at 792 MHz
                  CPU:   Temperature 23 C
                  Reset cause: POR
                  Board: MX6 Rex - pro
                  I2C:   ready
                  DRAM:  2 GiB
                  MMC:   FSL_SDHC: 0, FSL_SDHC: 1
                  SF: Detected SST25VF032B with page size 256 Bytes, erase size 4 KiB, total 4 MiB
                  In:    serial
                  Out:   serial
                  Err:   serial
                  Net:   FEC [PRIME]
                  Boot from USB for mfgtools
                  Use default environment for                  mfgtools
                  Run bootcmd_mfg: <NULL>
                  Rex U-Boot >

                  then, I execute:
                  Code:
                  Rex U-Boot > setenv bootargs console=ttyS0,115200 root=/dev/mmcblk0p2 rootwait panic=10 ${extra}
                  Rex U-Boot > ext2load mmc 0 0x48000000 uImage
                  4454450 bytes read in 332 ms (12.8 MiB/s)
                  Rex U-Boot >
                  And last:
                  bootm 0x48000000

                  The rest of the output from here:
                  Code:
                  Rex U-Boot > bootm 0x48000000
                  ## Booting kernel from Legacy Image at 48000000 ...
                     Image Name:   3.15.9-rex5
                     Image Type:   ARM Linux Kernel Image (uncompressed)
                     Data Size:    4454386 Bytes = 4.2 MiB
                     Load Address: 10008000
                     Entry Point:  10008000
                     Verifying Checksum ... OK
                     Loading Kernel Image ... OK
                  No gpc device node -9, force to ldo-enable.
                  
                  Starting kernel ...
                  
                  [    0.000000] Booting Linux on physical CPU 0x0
                  [    0.000000] Initializing cgroup subsys cpuset
                  [    0.000000] Initializing cgroup subsys cpu
                  [    0.000000] Initializing cgroup subsys cpuacct
                  [    0.000000] Linux version 3.15.9-rex5 (root@ubuntu) (gcc version 4.8.3 20140401 (prerelease) (crosstool-NG linaro-1.13.1-4.8-2014.04 - Linaro GCC 4.8-2014.04) ) #1 SMP Wed Dec 21 23:51:40 PST 2016
                  [    0.000000] CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c5387d
                  [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
                  [    0.000000] Machine model: Rex i.MX6 Quad Board
                  [    0.000000] cma: CMA: reserved 16 MiB at 3e800000
                  [    0.000000] Memory policy: Data cache writealloc
                  [    0.000000] PERCPU: Embedded 9 pages/cpu @ed7ac000 s14528 r8192 d14144 u36864
                  [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 522768
                  [    0.000000] Kernel command line: console=ttymxc0,115200 console=tty0 root=/dev/mmcblk0p1 rootwait video=HDMI-A-1:1280x720@60e
                  [    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] allocated 4194304 bytes of page_cgroup
                  [    0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
                  [    0.000000] Memory: 2045312K/2097152K available (8535K kernel code, 582K rwdata, 3208K rodata, 534K init, 950K bss, 51840K reserved, 1318912K highmem)
                  [    0.000000] Virtual kernel memory layout:
                  [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
                  [    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
                  [    0.000000]     vmalloc : 0xf0000000 - 0xff000000   ( 240 MB)
                  [    0.000000]     lowmem  : 0xc0000000 - 0xef800000   ( 760 MB)
                  [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
                  [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
                  [    0.000000]       .text : 0xc0008000 - 0xc0b7ff98   (11744 kB)
                  [    0.000000]       .init : 0xc0b80000 - 0xc0c058c0   ( 535 kB)
                  [    0.000000]       .data : 0xc0c06000 - 0xc0c97818   ( 583 kB)
                  [    0.000000]        .bss : 0xc0c97818 - 0xc0d85304   ( 951 kB)
                  [    0.000000] Hierarchical RCU implementation.
                  [    0.000000]     RCU dyntick-idle grace-period acceleration is enabled.
                  [    0.000000] NR_IRQS:16 nr_irqs:16 16
                  [    0.000000] L310 cache controller enabled
                  [    0.000000] l2x0: 16 ways, CACHE_ID 0x410000c7, AUX_CTRL 0x32070000, Cache size: 1024 kB
                  [    0.000000] Switching to timer-based delay loop
                  [    0.000007] sched_clock: 32 bits at 66MHz, resolution 15ns, wraps every 65075262448ns
                  [    0.000655] Console: colour dummy device 80x30
                  [    0.000983] console [tty0] enabled
                  [    0.001003] Calibrating delay loop (skipped), value calculated using timer frequency.. 132.00 BogoMIPS (lpj=660000)
                  [    0.001028] pid_max: default: 32768 minimum: 301
                  [    0.001133] Security Framework initialized
                  [    0.001168] AppArmor: AppArmor disabled by boot time parameter
                  [    0.001182] Yama: becoming mindful.
                  [    0.001350] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
                  [    0.001370] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
                  [    0.001999] Initializing cgroup subsys memory
                  [    0.002029] Initializing cgroup subsys devices
                  [    0.002048] Initializing cgroup subsys freezer
                  [    0.002063] Initializing cgroup subsys net_cls
                  [    0.002078] Initializing cgroup subsys blkio
                  [    0.002092] Initializing cgroup subsys perf_event
                  [    0.002141] CPU: Testing write buffer coherency: ok
                  [    0.002426] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
                  [    0.002497] Setting up static identity map for 0x1081f8e8 - 0x1081f940
                  [    0.006539] CPU1: Booted secondary processor
                  [    0.006565] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
                  [    0.007587] CPU2: Booted secondary processor
                  [    0.007608] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
                  [    0.008608] CPU3: Booted secondary processor
                  [    0.008628] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
                  [    0.008745] Brought up 4 CPUs
                  [    0.008824] SMP: Total of 4 processors activated.
                  [    0.008839] CPU: All CPU(s) started in SVC mode.
                  [    0.009484] devtmpfs: initialized
                  [    0.013440] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
                  [    0.015193] xor: measuring software checksum speed
                  [    0.110126]    arm4regs  :  1212.000 MB/sec
                  [    0.210123]    8regs     :   776.400 MB/sec
                  [    0.310123]    32regs    :   763.600 MB/sec
                  [    0.410122]    neon      :   827.600 MB/sec
                  [    0.410138] xor: using function: arm4regs (1212.000 MB/sec)
                  [    0.410161] pinctrl core: initialized pinctrl subsystem
                  [    0.410511] regulator-dummy: no parameters
                  [    0.417961] NET: Registered protocol family 16
                  [    0.420680] DMA: preallocated 256 KiB pool for atomic coherent allocations
                  [    0.421389] cpuidle: using governor ladder
                  [    0.421406] cpuidle: using governor menu
                  [    0.421498] CPU identified as i.MX6Q, silicon rev 1.2
                  [    0.429081] vdd1p1: 800 <--> 1375 mV at 1100 mV 
                  [    0.429463] vdd3p0: 2800 <--> 3150 mV at 3000 mV 
                  [    0.429836] vdd2p5: 2000 <--> 2750 mV at 2400 mV 
                  [    0.430231] vddarm: 725 <--> 1450 mV at 1150 mV 
                  [    0.430642] vddpu: 725 <--> 1450 mV 
                  [    0.431030] vddsoc: 725 <--> 1450 mV at 1175 mV 
                  [    0.438133] No ATAGs?
                  [    0.438166] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
                  [    0.438191] hw-breakpoint: maximum watchpoint size is 4 bytes.
                  [    0.439108] imx6q-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver
                  [    0.610501] raid6: int32x1    116 MB/s
                  [    0.780226] raid6: int32x2    155 MB/s
                  [    0.950424] raid6: int32x4    168 MB/s
                  [    1.120267] raid6: int32x8    190 MB/s
                  [    1.290119] raid6: neonx1     592 MB/s
                  [    1.460205] raid6: neonx2     638 MB/s
                  [    1.630124] raid6: neonx4     634 MB/s
                  [    1.800171] raid6: neonx8     501 MB/s
                  [    1.800186] raid6: using algorithm neonx2 (638 MB/s)
                  [    1.800201] raid6: using intx1 recovery algorithm
                  [    1.802334] mxs-dma 110000.dma-apbh: initialized
                  [    1.802934] 3P3V: 3300 mV 
                  [    1.803273] usbh1_vbus: 5000 mV 
                  [    1.803616] usb_otg_vbus: 5000 mV 
                  [    1.804550] SCSI subsystem initialized
                  [    1.805026] usbcore: registered new interface driver usbfs
                  [    1.805103] usbcore: registered new interface driver hub
                  [    1.805237] usbcore: registered new device driver usb
                  [    1.806568] i2c i2c-0: IMX I2C adapter registered
                  [    1.807248] i2c i2c-1: IMX I2C adapter registered
                  [    1.807528] i2c i2c-2: IMX I2C adapter registered
                  [    1.807650] Linux video capture interface: v2.00
                  [    1.807733] pps_core: LinuxPPS API ver. 1 registered
                  [    1.807751] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <[email protected]>
                  [    1.807787] PTP clock support registered
                  [    1.808007] Advanced Linux Sound Architecture Driver Initialized.
                  [    1.809321] cfg80211: Calling CRDA to update world regulatory domain
                  [    1.809407] NetLabel: Initializing
                  [    1.809421] NetLabel:  domain hash size = 128
                  [    1.809434] NetLabel:  protocols = UNLABELED CIPSOv4
                  [    1.809498] NetLabel:  unlabeled traffic allowed by default
                  [    1.809890] Switched to clocksource mxc_timer1
                  [    1.869167] NET: Registered protocol family 2
                  [    1.869859] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
                  [    1.870008] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
                  [    1.870164] TCP: Hash tables configured (established 8192 bind 8192)
                  [    1.870326] TCP: reno registered
                  [    1.870349] UDP hash table entries: 512 (order: 2, 16384 bytes)
                  [    1.870403] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
                  [    1.870702] NET: Registered protocol family 1
                  [    1.871143] RPC: Registered named UNIX socket transport module.
                  [    1.871163] RPC: Registered udp transport module.
                  [    1.871175] RPC: Registered tcp transport module.
                  [    1.871188] RPC: Registered tcp NFSv4.1 backchannel transport module.
                  [    1.871655] hw perfevents: enabled with ARMv7 Cortex-A9 PMU driver, 7 counters available
                  [    1.873256] futex hash table entries: 1024 (order: 4, 65536 bytes)
                  [    1.873380] audit: initializing netlink subsys (disabled)
                  [    1.873427] audit: type=2000 audit(1.859:1): initialized
                  [    2.065572] bounce pool size: 64 pages
                  [    2.065879] VFS: Disk quotas dquot_6.5.2
                  [    2.065950] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
                  [    2.066567] NFS: Registering the id_resolver key type
                  [    2.066615] Key type id_resolver registered
                  [    2.066631] Key type id_legacy registered
                  [    2.066655] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
                  [    2.066895] fuse init (API version 7.23)
                  [    2.067111] SGI XFS with ACLs, security attributes, realtime, large block/inode numbers, no debug enabled
                  [    2.067848] msgmni has been set to 1450
                  [    2.069053] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
                  [    2.069224] io scheduler noop registered
                  [    2.069242] io scheduler deadline registered
                  [    2.069296] io scheduler cfq registered (default)
                  [    2.069759] imx-weim 21b8000.weim: Driver registered.
                  [    2.075361] imx-sdma 20ec000.sdma: initialized
                  [    2.075903] imx-sdma 20ec000.sdma: firmware not found
                  [    2.076100] Serial: IMX driver
                  [    2.076421] 2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 58, base_baud = 5000000) is a IMX
                  [    2.904720] console [ttymxc0] enabled
                  [    2.909139] 21e8000.serial: ttymxc1 at MMIO 0x21e8000 (irq = 59, base_baud = 5000000) is a IMX
                  [    2.918522] [drm] Initialized drm 1.1.0 20060810
                  [    2.923708] at24 1-0057: 256 byte 24c02 EEPROM, writable, 1 bytes/write
                  [    2.934335] ahci-imx 2200000.sata: SSS flag set, parallel bus scan disabled
                  [    2.941368] ahci-imx 2200000.sata: AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl platform mode
                  [    2.950205] ahci-imx 2200000.sata: flags: ncq sntf stag pm led clo only pmp pio slum part ccc apst 
                  [    2.960911] scsi0 : ahci_platform
                  [    2.964613] ata1: SATA max UDMA/133 mmio [mem 0x02200000-0x02203fff] port 0x100 irq 71
                  [    2.974680] spi_imx 200c000.ecspi: probed
                  [    2.979865] m25p80 spi2.0: sst25vf032b (4096 Kbytes)
                  [    2.985969] spi_imx 2010000.ecspi: probed
                  [    2.991137] 2188000.ethernet supply phy not found, using dummy regulator
                  [    3.013659] libphy: fec_enet_mii_bus: probed
                  [    3.018502] fec 2188000.ethernet eth0: registered PHC device 0
                  [    3.024868] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
                  [    3.031449] ehci-mxc: Freescale On-Chip EHCI Host driver
                  [    3.036941] usbcore: registered new interface driver usb-storage
                  [    3.043841] imx6q-pinctrl 20e0000.iomuxc: pin MX6Q_PAD_GPIO_1 already requested by 2.regulator; cannot claim for 2184000.usb
                  [    3.055121] imx6q-pinctrl 20e0000.iomuxc: pin-137 (2184000.usb) status -22
                  [    3.062041] imx6q-pinctrl 20e0000.iomuxc: could not request pin 137 (MX6Q_PAD_GPIO_1) from group usbotggrp  on device 20e0000.iomuxc
                  [    3.073989] imx_usb 2184000.usb: Error applying setting, reverse things back
                  [    3.084427] imx6q-pinctrl 20e0000.iomuxc: pin MX6Q_PAD_EIM_D31 already requested by 1.regulator; cannot claim for 2184200.usb
                  [    3.095782] imx6q-pinctrl 20e0000.iomuxc: pin-52 (2184200.usb) status -22
                  [    3.102611] imx6q-pinctrl 20e0000.iomuxc: could not request pin 52 (MX6Q_PAD_EIM_D31) from group usbh1grp  on device 20e0000.iomuxc
                  [    3.114471] imx_usb 2184200.usb: Error applying setting, reverse things back
                  [    3.122806] ci_hdrc ci_hdrc.1: doesn't support gadget
                  [    3.127887] ci_hdrc ci_hdrc.1: EHCI Host Controller
                  [    3.132821] ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 1
                  [    3.159916] ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
                  [    3.165591] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
                  [    3.172425] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
                  [    3.179670] usb usb1: Product: EHCI Host Controller
                  [    3.184577] usb usb1: Manufacturer: Linux 3.15.9-rex5 ehci_hcd
                  [    3.190441] usb usb1: SerialNumber: ci_hdrc.1
                  [    3.195521] hub 1-0:1.0: USB hub found
                  [    3.199335] hub 1-0:1.0: 1 port detected
                  [    3.204075] mousedev: PS/2 mouse device common for all mice
                  [    3.210219] i2c /dev entries driver
                  [    3.214450] IR NEC protocol handler initialized
                  [    3.219000] IR RC5(x) protocol handler initialized
                  [    3.223831] IR RC6 protocol handler initialized
                  [    3.228376] IR JVC protocol handler initialized
                  [    3.232939] IR Sony protocol handler initialized
                  [    3.237571] IR RC5 (streamzap) protocol handler initialized
                  [    3.243168] IR SANYO protocol handler initialized
                  [    3.247885] IR Sharp protocol handler initialized
                  [    3.252618] IR MCE Keyboard/mouse protocol handler initialized
                  [    3.260034] imx2-wdt 20bc000.wdog: IMX2+ Watchdog Timer enabled. timeout=60s (nowayout=1)
                  [    3.268527] sdhci: Secure Digital Host Controller Interface driver
                  [    3.274745] sdhci: Copyright(c) Pierre Ossman
                  [    3.279117] sdhci-pltfm: SDHCI platform and OF driver helper
                  [    3.285593] sdhci-esdhc-imx 2194000.usdhc: could not get ultra high speed state, work on normal mode
                  [    3.295798] mmc0: no vqmmc regulator found
                  [    3.299936] mmc0: no vmmc regulator found
                  [    3.319923] ata1: SATA link down (SStatus 0 SControl 300)
                  [    3.349912] mmc0: SDHCI controller on 2194000.usdhc [2194000.usdhc] using ADMA
                  [    3.360822] sdhci-esdhc-imx 2198000.usdhc: could not get ultra high speed state, work on normal mode
                  [    3.370032] mmc1: no vqmmc regulator found
                  [    3.374147] mmc1: no vmmc regulator found
                  [    3.419910] mmc1: SDHCI controller on 2198000.usdhc [2198000.usdhc] using ADMA
                  [    3.430367] usbcore: registered new interface driver usbhid
                  [    3.435958] usbhid: USB HID core driver
                  [    3.443346] imx-ipuv3 2400000.ipu: IPUv3H probed
                  [    3.448501] imx-ipuv3 2800000.ipu: IPUv3H probed
                  [    3.456233] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
                  [    3.462902] [drm] No driver support for vblank timestamp query.
                  [    3.471008] imx-drm display-subsystem.10: bound imx-ipuv3-crtc.0 (ops ipu_crtc_ops)
                  [    3.480818] imx-drm display-subsystem.10: bound imx-ipuv3-crtc.1 (ops ipu_crtc_ops)
                  [    3.490620] imx-drm display-subsystem.10: bound imx-ipuv3-crtc.2 (ops ipu_crtc_ops)
                  [    3.498412] imx-drm display-subsystem.10: bound imx-ipuv3-crtc.3 (ops ipu_crtc_ops)
                  [    3.507332] imx-hdmi 120000.hdmi: Detected HDMI controller 0x13:0xa:0xa0:0xc1
                  [    3.514631] imx-drm display-subsystem.10: bound 120000.hdmi (ops hdmi_ops)
                  [    3.521719] [drm] forcing HDMI-A-1 connector ON
                  [    3.563780] mmc1: new high speed SDHC card at address 0007
                  [    3.564238] mmcblk0: mmc1:0007 SD16G 14.4 GiB 
                  [    3.565714]  mmcblk0: p1
                  [    3.579042] Console: switching to colour frame buffer device 160x45
                  [    3.604039] imx-drm display-subsystem.10: fb0:  frame buffer device
                  [    3.610420] imx-drm display-subsystem.10: registered panic notifier
                  [    3.616774] [drm] Initialized imx-drm 1.0.0 20120507 on minor 0
                  [    3.624654] sgtl5000 0-000a: sgtl5000 revision 0x11
                  [    3.646946] 0-000a: 1200 mV normal 
                  [    3.650581] sgtl5000 0-000a: Using internal LDO instead of VDDD
                  [    3.671653] imx-sgtl5000 sound.13: sgtl5000 <-> 2028000.ssi mapping ok
                  [    3.683778] oprofile: using arm/armv7-ca9
                  [    3.690329] TCP: cubic registered
                  [    3.696041] NET: Registered protocol family 10
                  [    3.703704] mip6: Mobile IPv6
                  [    3.708985] NET: Registered protocol family 17
                  [    3.715782] Key type dns_resolver registered
                  [    3.724223] ThumbEE CPU extension supported.
                  [    3.730299] Registering SWP/SWPB emulation handler
                  [    3.737326] registered taskstats version 1
                  [    3.743891] Btrfs loaded
                  [    3.748238] usb_otg_vbus: disabling
                  [    3.760522] ALSA device list:
                  [    3.765211]   #0: imx6-rex-sgtl5000
                  [    3.771823] EXT4-fs (mmcblk0p1): mounting ext3 file system using the ext4 subsystem
                  [    3.792268] EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. Opts: (null)
                  [    3.802201] VFS: Mounted root (ext3 filesystem) readonly on device 179:1.
                  [    3.819761] devtmpfs: mounted
                  [    3.825377] Freeing unused kernel memory: 532K (c0b80000 - c0c05000)
                  [    4.248948] random: init urandom read with 28 bits of entropy available
                  [    4.419288] init: plymouth-upstart-bridge main process (88) terminated with status 1
                  [    4.429377] init: plymouth-upstart-bridge main process ended, respawning
                  [    4.472411] init: plymouth-upstart-bridge main process (98) terminated with status 1
                  [    4.482172] init: plymouth-upstart-bridge main process ended, respawning
                  [    4.515010] init: plymouth-upstart-bridge main process (102) terminated with status 1
                  [    4.525029] init: plymouth-upstart-bridge main process ended, respawning
                  [    4.551438] init: plymouth-upstart-bridge main process (105) terminated with status 1
                  [    4.561375] init: plymouth-upstart-bridge main process ended, respawning
                  [    4.600995] init: ureadahead main process (91) terminated with status 5
                   * Starting Mount filesystems on boot                                                                                               [ OK ]
                   * Starting Populate /dev filesystem                                                                                                [ OK ]
                   * Stopping Populate /dev filesystem                                                                                                [ OK ]
                   * Starting Populate and link to /run filesystem                                                                                    [ OK ]
                   * Stopping Populate and link to /run filesystem                                                                                    [ OK ]
                   * Stopping Track if upstart is running in a container                                                                              [ OK ]
                   * Starting Initialize or finalize resolvconf                                                                                       [ OK ]
                   * Starting Signal sysvinit that virtual filesystems are mounted                                                                    [ OK ]
                   * Starting Signal sysvinit that virtual filesystems are mounted                                                                    [ OK ]
                   * Starting Bridge udev events into upstart                                                                                         [ OK ]
                   * Starting Signal sysvinit that remote filesystems are mounted                                                                     [ OK ]
                   * Starting device node and kernel event manager                                                                                    [ OK ]
                   * Starting load modules from /etc/modules                                                                                          [ OK ]
                   * Starting cold plug devices                                                                                                       [ OK ]
                   * Starting log initial device creation                                                                                             [ OK ]
                   * Stopping load modules from /etc/modules                                                                                          [ OK ]
                   * Starting set console font                                                                                                        [ OK ]
                   * Stopping set console font                                                                                                        [ OK ]
                   * Starting userspace bootsplash                                                                                                    [ OK ]
                   * Stopping userspace bootsplash                                                                                                    [ OK ]
                   * Starting Send an event to indicate plymouth is up                                                                                [ OK ]
                   * Stopping Send an event to indicate plymouth is up                                                                                [ OK ]
                   * Stopping cold plug devices                                                                                                       [ OK ]
                   * Stopping log initial device creation                                                                                             [ OK ]
                   * Starting configure network device security                                                                                       [ OK ]
                   * Starting Mount network filesystems                                                                                               [ OK ]
                   * Starting configure network device security                                                                                       [ OK ]
                   * Stopping Mount network filesystems                                                                                               [ OK ]
                   * Starting configure network device                                                                                                [ OK ]
                   * Starting Bridge socket events into upstart                                                                                       [ OK ]
                  The disk drive for / is not ready yet or not present.
                  keys:Continue to wait, or Press S to skip mounting or M for manual recovery
                  If I press Enter, it does nothing, so I usually press S or M.


                  With S, it adds:
                  Code:
                  * Starting Signal sysvinit that local filesystems are mounted                                                                      [ OK ]
                   * Starting configure network device security                                                                                       [ OK ]
                   * Stopping Mount filesystems on boot                                                                                               [ OK ]
                   * Starting Failsafe Boot Delay                                                                                                     [ OK ]
                   * Starting flush early job output to logs                                                                                          [ OK ]
                   * Starting configure virtual network devices                                                                                       [ OK ]
                   * Starting flush early job output to logs                                                                                          [fail]
                   * Starting Bridge file events into upstart                                                                                         [ OK ]
                   * Starting system logging daemon                                                                                                   [ OK ]
                   * Starting Mount network filesystems                                                                                               [ OK ]
                   * Starting configure network device                                                                                                [ OK ]
                   * Stopping Failsafe Boot Delay                                                                                                     [ OK ]
                   * Starting System V initialisation compatibility                                                                                   [ OK ]
                   * Stopping System V initialisation compatibility                                                                                   [ OK ]
                   * Stopping Mount network filesystems                                                                                               [ OK ]
                   * Starting System V runlevel compatibility                                                                                         [ OK ]
                   * Starting regular background program processing daemon                                                                            [ OK ]
                   * Starting save kernel messages                                                                                                    [ OK ]
                   * Starting save kernel messages                                                                                                    [fail]
                   * Stopping System V runlevel compatibility                                                                                         [ OK ]
                   * Starting OpenSSH server                                                                                                          [ OK ]
                  With M:
                  Code:
                   Starting Mount filesystems on boot                                                                                               [fail]
                   * Starting set console keymap                                                                                                      [ OK ]
                  In any of those 3 options, the code goes further.

                  Red led on imx6 board keeps blinking red. Green is on the whole time.

                  Comment


                  • #24
                    I am not sure, but maybe this is the problem?

                    Code:
                    VFS: Mounted root (ext3 filesystem) readonly on device 179:1.
                    You may want to add 'rw' into your console command
                    Code:
                    Kernel command line: console=ttymxc0,115200 console=tty0 root=/dev/mmcblk0p1 rootwait video=HDMI-A-1:1280x720@60e
                    Maybe try something like this:
                    Code:
                    console=ttymxc0,115200 console=tty0 root=/dev/mmcblk0p1 rootwait rw video=HDMI-A-1:1280x720@60e
                    I am not sure if that is the problem, but that is what I would try.

                    Comment


                    • #25
                      I tried your suggestion but I get the same result. I don't know how to get through this because I don't see any error message on the console output and I can't execute commands because it gets stuck there.

                      Could it be a failure in my sd card? Maybe I am copying the image/compiling the kernel in a wrong way. Or I should change any option while compiling kernel. I compiled it with the options it had by default.

                      Comment


                      • #26
                        How do you change the linux kernel command line? Because it looks to me like it is not changed. I see, that you run in uboot "setenv bootargs console=ttyS0,115200 root=/dev/mmcblk0p2 rootwait panic=10 ${extra}", but in the kernel I see "console=ttymxc0,115200 console=tty0 root=/dev/mmcblk0p1 rootwait video=HDMI-A-1:1280x720@60e". Have you double check if the kernel command line is really changed?

                        Comment


                        • #27
                          Actually, I don't. How can I check that? But, if I execute setenv.... command, it is supposed to update that, isn't it? Maybe that is the problem here.

                          what can I do if that line is not updated?

                          Comment


                          • #28
                            But, if I execute setenv.... command, it is supposed to update that, isn't it?
                            It depends ... depends how you compile kernel. Some kernels may have the command line compiled in and it may not be possible to change it from uBoot.

                            Comment


                            • #29
                              Damm it, I am so lost here...

                              I compiled 3.15 kernel I found in this repository http://www.imx6rex.com/software/how-...3-15-and-3-16/ (it is the one provided by fedevel in this tutorial: http://www.imx6rex.com/software/how-...3-15-and-3-16/). They say that 3.16 is bugged and it is better 3.15.

                              Apart from that, debian image is taken too from that webpage, ported by Sam Nazarko.

                              I compiled kernel with its default parameters:
                              on console:
                              Code:
                              sudo ./build_kernel.sh
                              wait until it loads and then click on exit (to leave all the option as they were).

                              On the bottom of that tutorial webpage, I read this:
                              Code:
                              [COLOR=#373737][FONT=&quot][SIZE=15px]2. Because the new kernel cannot pass the parameters set in u-boot they need to be compiled directly into the kernel. Open defconfig file:
                              ...[/SIZE][/FONT][/COLOR] 
                              [COLOR=#373737][FONT=&quot][SIZE=15px]Look for [/SIZE][/FONT][/COLOR][I]CONFIG_CMDLINE[/I][COLOR=#373737][FONT=&quot][SIZE=15px] parameter. If you for example want to boot from hard drive you will change it to:
                              ...[/SIZE][/FONT][/COLOR]
                              the line which comes with the file is:
                              Code:
                              CONFIG_CMDLINE="console=ttymxc0,115200 console=tty0 root=/dev/mmcblk0p1 rootwait video=HDMI-A-1:1280x720@60e"[COLOR=#373737][FONT=&quot][SIZE=15px][/SIZE][/FONT][/COLOR]

                              Here is where we are supposed to change the cmd line. I want to boot from my microSD. It is the first one (dev board has 2 slots). What should I write here?



                              After this change, should I set in somewhere else a line to get uImage by default instead of load it by commands? If I wanted to load it by default as soon as the system boots up.

                              Comment


                              • robertferanec
                                robertferanec commented
                                Editing a comment
                                You see your micro SD location in Kernel output, when the card is mounted .. it could be this one: [ 3.565714] mmcblk0: p1. So, just try to add &quot;rw&quot; to the line as I suggested above. You can also enable Kernel to take the line from uBoot, but I do not remember exactly what has to be changed.

                            • #30
                              Ok, I have found a file on uboot folder under: /include/configs/mx6rex.h

                              This file contains multiple configuration lines, like: CONFIG_ENV_DEFAULT_IMG_FILE, FDT, SCR, ETH, CLIENT...

                              Part of the list:

                              Code:
                              /* Env settings */
                              #define CONFIG_ENV_CONSOLE_DEV              "ttymxc0"
                              #define CONFIG_ENV_MMCROOT                  "/dev/mmcblk2p2"
                              #define CONFIG_ENV_DEFAULT_UBT_FILE         "u-boot-" CONFIG_REX_DEFAULT_ARCH_PREFIX "-rex" CONFIG_REX_DEFAULT_ARCH_POSTFIX ".imx"
                              #define CONFIG_ENV_DEFAULT_IMG_FILE         "zImage-" CONFIG_REX_DEFAULT_ARCH_PREFIX "-rex" CONFIG_REX_DEFAULT_ARCH_POSTFIX
                              #define CONFIG_ENV_DEFAULT_FDT_FILE                   CONFIG_REX_DEFAULT_ARCH_PREFIX "-rex" CONFIG_REX_DEFAULT_ARCH_POSTFIX ".dtb"
                              #define CONFIG_ENV_DEFAULT_SCR_FILE         "boot-"   CONFIG_REX_DEFAULT_ARCH_PREFIX "-rex" CONFIG_REX_DEFAULT_ARCH_POSTFIX ".scr"
                              #define CONFIG_ENV_DEFAULT_ETH_ADDR         "00:0D:15:00:D1:75"
                              #define CONFIG_ENV_DEFAULT_CLIENT_IP        "192.168.0.150"
                              #define CONFIG_ENV_DEFAULT_SERVER_IP        "192.168.0.1"
                              #define CONFIG_ENV_DEFAULT_NETMASK          "255.255.255.0"
                              #define CONFIG_ENV_DEFAULT_TFTP_DIR         "imx6"
                              #ifdef CONFIG_SYS_MMC_ENV_DEV
                              #define CONFIG_ENV_MMC_ENV_DEV              __stringify(CONFIG_SYS_MMC_ENV_DEV)
                              #else
                              #define CONFIG_ENV_MMC_ENV_DEV              __stringify(0)
                              #endif
                              My image is called uImage. This the one I load by commands before call bootm. Should I modify this file? WHat should I set? Anything else? MMCROOT?

                              Comment


                              • robertferanec
                                robertferanec commented
                                Editing a comment
                                You have several options: you can rename your file to meet uBoot expectations, you can update the uBoot prefix / postfix parameter and recompile it or you can simply use setenv to modify the lines which you need and change the expected image name to your image name - then do not forget saveenv.
                            Working...
                            X
                            😀
                            🥰
                            🤢
                            😎
                            😡
                            👍
                            👎