Debian Jessie rootfs with GPU/VPU

Discussion in 'Debian' started by jas-mx, Dec 31, 2013.

  1. AntennaSmith

    AntennaSmith New Member

    Joined:
    Feb 23, 2014
    Messages:
    35
    Likes Received:
    0
    Update:

    Every reboot sets the permissions back to root only. Chmod -R 777 * in the /sys/class/gpio fixes it.
     
  2. jas-mx

    jas-mx Active Member

    Joined:
    Dec 31, 2013
    Messages:
    407
    Likes Received:
    118
    The gpio are owned by the process who creates them, which in this case it must be the board code in the kernel (root) hence the issue.
     
  3. AntennaSmith

    AntennaSmith New Member

    Joined:
    Feb 23, 2014
    Messages:
    35
    Likes Received:
    0
    OK, Thanks for the info.

    I'm also experience the problem where I get "No Device Found on /dev/ttyUSB0" when I try to program the Due from an external PC (running Linux Mint Debian). If I interupt the UDOO boot process and clear-reset the Due via the two jumpers then I can upload via the external PC.

    I wasn't clear from the early portion of this thread. Is this problem related, or unrelated, to the Debian Jessie image?

    Thanks for your help,
     
  4. osimons

    osimons New Member

    Joined:
    Apr 7, 2014
    Messages:
    9
    Likes Received:
    0
    For Arduino IDE @ Debian I followed the "Arduino IDE HFP" instructions with default download, but ended up replacing bossac with the version I had from my Ubuntu image (uSD card). This got rid of the "No device found on ttymxc3" messages and meant that I didn't have to use jumpers J22 + J16 to perform erase + reset.

    This seems to be a custom version that will perform erase + reset every time it is touched (and performs it "successiful" even...):

    Code:
    $> arduino-1.5.4/hardware/tools/bossac --port=ttymxc3 --info
    
    Inner erase and reset routine:  successiful!!
    Device       : ATSAM3X8
    Chip ID      : 285e0a60
    Version      : v1.1 Dec 15 2010 19:25:04
    ...
    
    With this bossac version Arduino sketch upload and serial monitor works as expected every time.
     
  5. cshuangtw

    cshuangtw New Member

    Joined:
    Mar 21, 2014
    Messages:
    8
    Likes Received:
    0
    This is a great work. but I have some problem in HDMI - TV resolution setting.
    My TV's spec. can run 1920x1080i in 60Hz, and I tried udoo official Ubuntu 12.04 LTS and Ubuntu Studio, can get 1360x768 60Hz. it works but HDMI audio complete doesn't work. I use Jessie's rootfs.img (Debian and Xubuntu) it only can run in 1280x720 and xfce's top and bottom panel complete out of range, but HDMI audio works fine.
    I try to modifiy boot.cmd set resolution 1360x768M60 and run command mkimage -A arm -O linux -T script -n "boot" -d boot.cmd boot.scr, change boot.scr permission to rwx but it still run in 1280x720p. How can I fix this problem?
    On Xubuntu 13.04 rootfs, udoo's wlan missing. How can I fix this problem?

    Thanks!
    Best Regards,

    Alex CS Huang
     
  6. jas-mx

    jas-mx Active Member

    Joined:
    Dec 31, 2013
    Messages:
    407
    Likes Received:
    118
    Most likely this is a overscan issue, I faced the same issue with one my TVs using the UDOO. Normally the TV should have a menu option to compensate/adjust for overscan. Another option to try, if possible, would be to read the EDID from the your TV, decode it and add the correct mode to the hdmi driver code in the kernel.

    Can you 'pastebin; the kernel/dmesg log, it should highlight the resolution passed to the kernel and the resolution detected/used by the hdmi driver.

    You have no audio at 1360x768 because the imx6 hdmi driver treats the resolution as non CEA. You could try adding 1360x768 to the list of CEA modes in the hdmi kernel driver code.
     
  7. jvcleave

    jvcleave New Member

    Joined:
    Apr 9, 2014
    Messages:
    1
    Likes Received:
    0
    Thanks for the SD image - very helpful

    For anyone else looking for the user/password it is debian/debian
     
  8. cshuangtw

    cshuangtw New Member

    Joined:
    Mar 21, 2014
    Messages:
    8
    Likes Received:
    0
    Thanks jas max
    I did dmesg and it oupt is:
    Code:
    Initializing cgroup subsys cpu
    Linux version 3.0.35-02693-gfab6bbf (mtx512@mtx512-Inspiron-620) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #367 SMP PREEMPT Tue Jan 7 09:36:10 GMT 2014
    CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c53c7d
    CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
    Machine: SECO i.Mx6 UDOO Board
    Memory policy: ECC disabled, Data cache writealloc
    CPU identified as i.MX6Q, silicon rev 1.2
    On node 0 totalpages: 229376
    free_area_init_node: node 0, pgdat 80b051a0, node_mem_map 8b800000
      DMA zone: 368 pages used for memmap
      DMA zone: 0 pages reserved
      DMA zone: 46736 pages, LIFO batch:15
      Normal zone: 1680 pages used for memmap
      Normal zone: 180592 pages, LIFO batch:31
    PERCPU: Embedded 7 pages/cpu @8c008000 s5504 r8192 d14976 u32768
    pcpu-alloc: s5504 r8192 d14976 u32768 alloc=8*4096
    pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
    Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 227328
    Kernel command line: console=ttymxc1,115200 root=/dev/mmcblk0p1 rootwait rw rootfstype=ext4 consoleblank=0 video=mxcfb0:dev=hdmi,1280x720M@60,bpp=32
    PID hash table entries: 4096 (order: 2, 16384 bytes)
    Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
    Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
    Memory: 640MB 256MB = 896MB total
    Memory: 896896k/896896k available, 151680k reserved, 0K highmem
    Virtual kernel memory layout:
        vector  : 0xffff0000 - 0xffff1000   (   4 kB)
        fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
        DMA     : 0xf4600000 - 0xffe00000   ( 184 MB)
        vmalloc : 0xc0800000 - 0xf2000000   ( 792 MB)
        lowmem  : 0x80000000 - 0xc0000000   (1024 MB)
        pkmap   : 0x7fe00000 - 0x80000000   (   2 MB)
        modules : 0x7f000000 - 0x7fe00000   (  14 MB)
          .init : 0x80008000 - 0x80038000   ( 192 kB)
          .text : 0x80038000 - 0x80aab370   (10701 kB)
          .data : 0x80aac000 - 0x80b062c0   ( 361 kB)
           .bss : 0x80b062e4 - 0x80b32e84   ( 179 kB)
    SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
    Preemptible hierarchical RCU implementation.
    NR_IRQS:624
    MXC GPIO hardware
    sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 1431655ms
    arm_max_freq=1GHz
    MXC_Early serial console at MMIO 0x21e8000 (options '115200')
    bootconsole [ttymxc1] enabled
    Console: colour dummy device 80x30
    Calibrating delay loop... 1581.05 BogoMIPS (lpj=7905280)
    pid_max: default: 32768 minimum: 301
    Mount-cache hash table entries: 512
    Initializing cgroup subsys cpuacct
    Initializing cgroup subsys devices
    Initializing cgroup subsys freezer
    CPU: Testing write buffer coherency: ok
    hw perfevents: enabled with ARMv7 Cortex-A9 PMU driver, 7 counters available
    CPU1: Booted secondary processor
    CPU2: Booted secondary processor
    CPU3: Booted secondary processor
    Brought up 4 CPUs
    SMP: Total of 4 processors activated (6324.22 BogoMIPS).
    devtmpfs: initialized
    print_constraints: dummy:
    NET: Registered protocol family 16
    print_constraints: vddpu: 725 <--> 1300 mV at 1150 mV fast normal
    print_constraints: vddcore: 725 <--> 1300 mV at 1150 mV fast normal
    print_constraints: vddsoc: 725 <--> 1300 mV at 1200 mV fast normal
    print_constraints: vdd2p5: 2000 <--> 2775 mV at 2400 mV fast normal
    print_constraints: vdd1p1: 800 <--> 1400 mV at 1100 mV fast normal
    print_constraints: vdd3p0: 2625 <--> 3400 mV at 3000 mV fast normal
    
    > UDOO quad
    > rev C Called set_gpios_direction
    Test and set gpios directions and values by Gionji feat. Ekirei test
    Resetting ethernet physical layer.
    hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
    hw-breakpoint: 1 breakpoint(s) reserved for watchpoint single-step.
    hw-breakpoint: maximum watchpoint size is 4 bytes.
    L310 cache controller enabled
    l2x0: 16 ways, CACHE_ID 0x410000c7, AUX_CTRL 0x32070000, Cache size: 1048576 B
    bio: create slab <bio-0> at 0
    mxs-dma mxs-dma-apbh: initialized
    print_constraints: vmmc: 3300 mV
    vgaarb: loaded
    SCSI subsystem initialized
    libata version 3.00 loaded.
    usbcore: registered new interface driver usbfs
    usbcore: registered new interface driver hub
    usbcore: registered new device driver usb
    Freescale USB OTG Driver loaded, $Revision: 1.55 $
    imx-ipuv3 imx-ipuv3.0: IPU DMFC NORMAL mode: 1(0~1), 5B(4,5), 5F(6,7)
    imx-ipuv3 imx-ipuv3.1: IPU DMFC NORMAL mode: 1(0~1), 5B(4,5), 5F(6,7)
    MIPI CSI2 driver module loaded
    Advanced Linux Sound Architecture Driver Version 1.0.24.
    Bluetooth: Core ver 2.16
    NET: Registered protocol family 31
    Bluetooth: HCI device and connection manager initialized
    Bluetooth: HCI socket layer initialized
    Bluetooth: L2CAP socket layer initialized
    Bluetooth: SCO socket layer initialized
    cfg80211: Calling CRDA to update world regulatory domain
    i2c-core: driver [max17135] using legacy suspend method
    i2c-core: driver [max17135] using legacy resume method
    Switching to clocksource mxc_timer1
    NET: Registered protocol family 2
    IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
    TCP established hash table entries: 131072 (order: 8, 1048576 bytes)
    TCP bind hash table entries: 65536 (order: 7, 786432 bytes)
    TCP: Hash tables configured (established 131072 bind 65536)
    TCP reno registered
    UDP hash table entries: 512 (order: 2, 16384 bytes)
    UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
    NET: Registered protocol family 1
    PCI: CLS 0 bytes, default 32
    PMU: registered new PMU device of type 0
    Static Power Management for Freescale i.MX6
    wait mode is enabled for i.MX6
    cpaddr = c0880000 suspend_iram_base=c08fc000
    PM driver module loaded
    IMX usb wakeup probe
    the wakeup pdata is 0xbfe38a80
    add wake up source irq 75
    IMX usb wakeup probe
    the wakeup pdata is 0xbfe8a840
    cpu regulator mode:ldo_enable
    i.MXC CPU frequency driver
    JFFS2 version 2.2. (NAND) \xffffffc2\xffffffa9 2001-2006 Red Hat, Inc.
    fuse init (API version 7.16)
    msgmni has been set to 1751
    alg: No test for stdrng (krng)
    io scheduler noop registered
    io scheduler deadline registered
    io scheduler cfq registered (default)
    MIPI DSI driver module loaded
    mxc_sdc_fb mxc_sdc_fb.0: register mxc display driver hdmi
    mxc_hdmi mxc_hdmi: Detected HDMI controller 0x13:0xa:0xa0:0xc1
    fbcvt: 1280x720@60: CVT Name - .921M9
    imx-ipuv3 imx-ipuv3.0: IPU DMFC DP HIGH RESOLUTION: 1(0,1), 5B(2~5), 5F(6,7)
    Console: switching to colour frame buffer device 160x45
    imx-sdma imx-sdma: loaded firmware 1.1
    imx-sdma imx-sdma: initialized
          Display is GTF capable
    fbcvt: 1280x720@60: CVT Name - .921M9
    Serial: IMX driver
    imx-uart.0: ttymxc0 at MMIO 0x2020000 (irq = 58) is a IMX
    imx-uart.1: ttymxc1 at MMIO 0x21e8000 (irq = 59) is a IMX
    console [ttymxc1] enabled, bootconsole disabled
    imx-uart.3: ttymxc3 at MMIO 0x21f0000 (irq = 61) is a IMX
    loop: module loaded
    No sata disk.
    GPMI NAND driver registered. (IMX)
    vcan: Virtual CAN interface driver
    CAN device driver interface
    flexcan netdevice driver
    FEC Ethernet Driver
    fec_enet_mii_bus: probed
    usbcore: registered new interface driver rt2800usb
    ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    fsl-ehci fsl-ehci.0: Freescale On-Chip EHCI Host Controller
    fsl-ehci fsl-ehci.0: new USB bus registered, assigned bus number 1
    fsl-ehci fsl-ehci.0: irq 75, io base 0x02184000
    fsl-ehci fsl-ehci.0: USB 2.0 started, EHCI 1.00
    hub 1-0:1.0: USB hub found
    hub 1-0:1.0: 1 port detected
    add wake up source irq 72
    fsl-ehci fsl-ehci.1: Freescale On-Chip EHCI Host Controller
    fsl-ehci fsl-ehci.1: new USB bus registered, assigned bus number 2
    fsl-ehci fsl-ehci.1: irq 72, io base 0x02184200
    fsl-ehci fsl-ehci.1: USB 2.0 started, EHCI 1.00
    hub 2-0:1.0: USB hub found
    hub 2-0:1.0: 1 port detected
    Initializing USB Mass Storage driver...
    usbcore: registered new interface driver usb-storage
    USB Mass Storage support registered.
    usbcore: registered new interface driver usbserial
    usbserial: USB Serial Driver core
    ARC USBOTG Device Controller driver (1 August 2005)
    g_ether gadget: using random self ethernet address
    g_ether gadget: using random host ethernet address
    usb0: MAC 1a:5d:af:23:01:84
    usb0: HOST MAC 7a:92:61:f0:e9:8e
    g_ether gadget: controller 'fsl-usb2-udc' not recognized; trying CDC Ethernet (ECM)
    g_ether gadget: Ethernet Gadget, version: Memorial Day 2008
    g_ether gadget: g_ether ready
    Suspend udc for OTG auto detect
    USB Host suspend begins
    will suspend roothub and its children
    ehci_fsl_bus_suspend begins, DR
    ehci_fsl_bus_suspend ends, DR
    host suspend ends
    USB Gadget resume begins
    fsl_udc_resume, Wait for wakeup thread finishes
    dr_controller_run: udc out low power mode
    USB Gadget resume ends
    fsl-usb2-udc: bind to driver g_ether
    mousedev: PS/2 mouse device common for all mice
    i2c-core: driver [isl29023] using legacy suspend method
    i2c-core: driver [isl29023] using legacy resume method
    snvs_rtc snvs_rtc.0: rtc core: registered snvs_rtc as rtc0
    i2c /dev entries driver
    Linux video capture interface: v2.00
    mxc_v4l2_output mxc_v4l2_output.0: V4L2 device registered as video16
    mxc_v4l2_output mxc_v4l2_output.0: V4L2 device registered as video17
    i2c-core: driver [mag3110] using legacy suspend method
    i2c-core: driver [mag3110] using legacy resume method
    imx2-wdt imx2-wdt.0: IMX2+ Watchdog Timer enabled. timeout=60s (nowayout=1)
    Bluetooth: Virtual HCI driver ver 1.3
    Bluetooth: HCI UART driver ver 2.2
    Bluetooth: HCIATH3K protocol initialized
    Bluetooth: Generic Bluetooth USB driver ver 0.6
    usbcore: registered new interface driver btusb
    sdhci: Secure Digital Host Controller Interface driver
    sdhci: Copyright(c) Pierre Ossman
    sdhci sdhci-esdhc-imx.2: no write-protect pin available!
    sdhci sdhci-esdhc-imx.2: no card-detect pin available!
    mmc0: SDHCI controller on platform [sdhci-esdhc-imx.2] using DMA
    mxc_vdoa mxc_vdoa: i.MX Video Data Order Adapter(VDOA) driver probed
    VPU initialized
    mxc_asrc registered
    Galcore version 4.6.9.6622
    Thermal calibration data is 0x56f4db69
    Thermal sensor with ratio = 179
    Anatop Thermal registered as thermal_zone0
    anatop_thermal_probe: default cooling device is cpufreq!
    usbcore: registered new interface driver usbhid
    usbhid: USB HID core driver
    usbcore: registered new interface driver snd-usb-audio
    mxc_hdmi_soc mxc_hdmi_soc.0: MXC HDMI Audio
    asoc: mxc-hdmi-soc <-> imx-hdmi-soc-dai.0 mapping ok
    ALSA device list:
      #0: imx-hdmi-soc
    NET: Registered protocol family 26
    TCP cubic registered
    NET: Registered protocol family 17
    can: controller area network core (rev 20090105 abi 8)
    NET: Registered protocol family 29
    can: raw protocol (rev 20090105)
    can: broadcast manager protocol (rev 20090105 t)
    Bluetooth: RFCOMM TTY layer initialized
    Bluetooth: RFCOMM socket layer initialized
    Bluetooth: RFCOMM ver 1.11
    Bluetooth: BNEP (Ethernet Emulation) ver 1.3
    Bluetooth: BNEP filters: protocol multicast
    Bluetooth: HIDP (Human Interface Emulation) ver 1.2
    lib80211: common routines for IEEE802.11 drivers
    lib80211_crypt: registered algorithm 'NULL'
    lib80211_crypt: registered algorithm 'WEP'
    lib80211_crypt: registered algorithm 'CCMP'
    lib80211_crypt: registered algorithm 'TKIP'
    VFP support v0.3:
    usb 2-1: new high speed USB device number 2 using fsl-ehci
    implementor 41 architecture 3 part 30 variant 9 rev 4
    Bus freq driver module loaded
    Bus freq driver Enabled
    mmc0: host does not support reading read-only switch. assuming write-enable.
    mxc_dvfs_core_probe
    DVFS driver module loaded
    snvs_rtc snvs_rtc.0: setting system clock to 1970-01-01 00:00:00 UTC (0)
    Waiting for root device /dev/mmcblk0p1...
    mmc0: new high speed SDHC card at address aaaa
    mmcblk0: mmc0:aaaa SU08G 7.40 GiB
     mmcblk0: p1
    EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. Opts: (null)
    VFS: Mounted root (ext4 filesystem) on device 179:1.
    hub 2-1:1.0: USB hub found
    hub 2-1:1.0: 4 ports detected
    devtmpfs: mounted
    Freeing init memory: 192K
    usb 2-1.1: new full speed USB device number 3 using fsl-ehci
    USB Gadget resume begins
    fsl_udc_resume, Wait for wakeup thread finishes
    input: Logitech USB Receiver as /devices/platform/fsl-ehci.1/usb2/2-1/2-1.1/2-1.1:1.0/input/input0
    generic-usb 0003:046D:C52E.0001: input,hidraw0: USB HID v1.11 Keyboard [Logitech USB Receiver] on usb-fsl-ehci.1-1.1/input0
    input: Logitech USB Receiver as /devices/platform/fsl-ehci.1/usb2/2-1/2-1.1/2-1.1:1.1/input/input1
    generic-usb 0003:046D:C52E.0002: input,hidraw1: USB HID v1.11 Mouse [Logitech USB Receiver] on usb-fsl-ehci.1-1.1/input1
    usb 2-1.3: new high speed USB device number 4 using fsl-ehci
    ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
    Registered led device: rt2800usb-phy0::radio
    Registered led device: rt2800usb-phy0::assoc
    Registered led device: rt2800usb-phy0::quality
    udevd[1511]: starting version 175
    init: plymouth main process (1428) killed by ABRT signal
    init: plymouth-splash main process (2028) terminated with status 2
    init: failsafe main process (2513) killed by TERM signal
    init: plymouth-stop pre-start process (2577) terminated with status 1
    
    my EDID Code:
    Code:
    00 ff ff ff ff ff ff 00 06 af 2c 32 00 00 00 00
    00 13 01 03 80 1d 10 78 0a 15 85 97 58 53 8a 26
    25 50 54 00 00 00 01 01 01 01 01 01 01 01 01 01
    01 01 01 01 01 01 26 1b 56 64 50 00 16 30 30 20
    36 00 25 a4 10 00 00 18 00 00 00 0f 00 00 00 00
    00 00 00 00 00 00 00 00 00 20 00 00 00 fe 00 41
    55 4f 0a 20 20 20 20 20 20 20 20 20 00 00 00 fe
    00 42 31 33 33 58 57 30 33 20 56 32 20 0a 00 49
    
     
  9. jas-mx

    jas-mx Active Member

    Joined:
    Dec 31, 2013
    Messages:
    407
    Likes Received:
    118
    dmesg output shows that uboot didn't pass the kernel the correct resolution, most likely your boot.scr changes weren't picked up.
     
  10. jas-mx

    jas-mx Active Member

    Joined:
    Dec 31, 2013
    Messages:
    407
    Likes Received:
    118
    Updated original post with links to newer experimental rootfs with 3.10.17 BSP support + gstreamer 1.0 plugins + webcam interfacing.
     
  11. Ionut

    Ionut New Member

    Joined:
    Jun 9, 2013
    Messages:
    10
    Likes Received:
    0
    Any chance you can put it as an SD image build?
     
  12. cshuangtw

    cshuangtw New Member

    Joined:
    Mar 21, 2014
    Messages:
    8
    Likes Received:
    0
    Yes, jas max, I put boot.scr at root and change its permission to x. but it seems not work.
     
  13. cshuangtw

    cshuangtw New Member

    Joined:
    Mar 21, 2014
    Messages:
    8
    Likes Received:
    0
    The following is my u-boot environment setting:
    Code:
    U-Boot 2013.10-rc3-gb48999b (Jan 07 2014 - 09:57:07)                            
                                                                                    
    CPU:   Freescale i.MX6Q rev1.2 at 792 MHz                                       
    Reset cause: WDOG                                                               
    Board: UDOO                                                                     
    DRAM:  1 GiB                                                                    
    MMC:   FSL_SDHC: 0                                                              
    auto-detected panel HDMI                                                        
    Display: HDMI (1024x768)                                                        
    In:    serial                                                                   
    Out:   serial                                                                   
    Err:   serial                                                                   
    Net:   using phy at 6                                                           
    FEC [PRIME]                                                                     
    Hit any key to stop autoboot:  0                                                                        
    UDOO board => printenv                                                          
    baudrate=115200                                                                 
    boot_fdt=try                                                                    
    bootcmd=mmc dev ${mmcdev}; if mmc rescan; then if run loadbootscript; then run bootscript; else if run loaduimage; then run mmcboot; else run netboot; fi; fi; else run netboot; fi                                                             
    bootdelay=5                                                                     
    bootscript=echo Running bootscript from mmc ...; source                         
    console=ttymxc1                                                                 
    ethact=FEC                                                                      
    ethaddr=00:c0:08:88:9c:d7                                                       
    ethprime=FEC                                                                    
    fdt_addr=0x11000000                                                             
    fdt_file=imx6q-udoo.dtb                                                         
    fdt_high=0xffffffff                                                             
    initrd_high=0xffffffff                                                          
    ip_dyn=yes                                                                      
    loadaddr=0x12000000                                                             
    loadbootscript=ext2load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};         
    loadfdt=ext2load mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}               
    loaduimage=ext2load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${uimage}              
    mmcargs=setenv bootargs console=${console},${baudrate} root=${mmcroot} ${hdmi_pa
    tch} fbmem=24M video=mxcfb0:dev=hdmi,1360x768M@60,bpp=32                        
    mmcboot=echo Booting from mmc ...; run mmcargs; if test ${boot_fdt} = yes || tes
    t ${boot_fdt} = try; then if run loadfdt; then bootm ${loadaddr} - ${fdt_addr}; 
    else if test ${boot_fdt} = try; then bootm; else echo WARN: Cannot load the DT; 
    fi; fi; else bootm; fi;                                                         
    mmcdev=0                                                                        
    mmcpart=1                                                                       
    mmcroot=/dev/mmcblk0p1 rootwait rw                                              
    netargs=setenv bootargs console=${console},${baudrate} root=/dev/nfs ${hdmi_patc
    h} ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp                                
    netboot=echo Booting from net ...; run netargs; if test ${ip_dyn} = yes; then se
    tenv get_cmd dhcp; else setenv get_cmd tftp; fi; ${get_cmd} ${uimage}; if test $
    {boot_fdt} = yes || test ${boot_fdt} = try; then if ${get_cmd} ${fdt_addr} ${fdt
    _file}; then bootm ${loadaddr} - ${fdt_addr}; else if test ${boot_fdt} = try; th
    en bootm; else echo WARN: Cannot load the DT; fi; fi; else bootm; fi;           
    script=boot.scr                                                             
    splashpos=m,m                                                                   
    uimage=/boot/uImage                                                             
    update_sd_firmware=if test ${ip_dyn} = yes; then setenv get_cmd dhcp; else seten
    v get_cmd tftp; fi; if mmc dev ${mmcdev}; then if ${get_cmd} ${update_sd_firmwar
    e_filename}; then setexpr fw_sz ${filesize} / 0x200; setexpr fw_sz ${fw_sz} + 1;
     mmc write ${loadaddr} 0x2 ${fw_sz}; fi; fi                                     
    update_sd_firmware_filename=u-boot.imx                                          
                                                                                    
    Environment size: 2078/8188 bytes   
    
    this is my boot.cmd
    Code:
    setenv bootargs 'console=ttymxc1,115200 root=/dev/mmcblk0p1 rootwait rw rootfsty
    pe=ext4 consoleblank=0 video=mxcfb0:dev=hdmi,1360x768M@60,bpp=32'               
    run loaduimage                                                                  
    bootm    
    
    After I run a command mkimage script
    Code:
    mkimage -A arm -O linux -T script -n "boot" -d boot.cmd boot.scr
    
    boot.scr
    Code:
    'VX�*SLϒ��Vj�boot�setenv bootargs 'console=ttymxc1,115200 root=/dev/mmcblk0p1 rootwait rw rootfstype=ext4 consoleblank=0 video=mxcfb0:dev=hdmi,1360x768M@60
    ,bpp=32'                                                                        
    run loaduimage
    bootm
    
    I changed boot.scr permission to 777 and put it in root directory but its resolution does not work in 1360x768.
     
  14. jas-mx

    jas-mx Active Member

    Joined:
    Dec 31, 2013
    Messages:
    407
    Likes Received:
    118
    Unfortunately as I'm developing on/supporting a number of different imx6 boards, I don't always have time to put images together. May be someone can put one together.
     
  15. jas-mx

    jas-mx Active Member

    Joined:
    Dec 31, 2013
    Messages:
    407
    Likes Received:
    118
    As quick test you can add 1360x768 to the list of valid cea modes in mxc_edid.c
     
  16. cshuangtw

    cshuangtw New Member

    Joined:
    Mar 21, 2014
    Messages:
    8
    Likes Received:
    0
    to jas max,
    Thanks for your reply. I will try this weekend.
     
  17. saires

    saires New Member

    Joined:
    Mar 3, 2014
    Messages:
    2
    Likes Received:
    0
    Thx for your work!

    When needing egl for compiling programs like QT5 header files like gl2.h are missing.
    Because of this the whole package for gpu driver has to be installed which is gpu-viv-bin-mx6q-3.10.9-1.0.0.tar.gz
    -> http://repository.timesys.com/buildsour ... 0.9-1.0.0/
    INFO: Default tarball is linked using framebuffer.

    So check correct linking of files (eg for framebuffer):
    root@udoo-1-quad:/usr/lib# ls -la libEGL*
    -rwxr-xr-x 1 root root 582460 Sep 10 2013 libEGL-dfb.so
    -rwxr-xr-x 1 root root 347691 Sep 10 2013 libEGL-fb.so
    lrwxrwxrwx 1 root root 12 Sep 10 2013 libEGL.so -> libEGL-fb.so
    lrwxrwxrwx 1 root root 12 Sep 10 2013 libEGL.so.1 -> libEGL-fb.so
    lrwxrwxrwx 1 root root 12 Sep 10 2013 libEGL.so.1.0 -> libEGL-fb.so
    lrwxrwxrwx 1 root root 13 Dec 15 18:10 libEGL.so.1.0.0 -> libEGL-x11.so
    -rwxr-xr-x 1 root root 361183 Sep 10 2013 libEGL-wl.so
    -rwxr-xr-x 1 root root 329808 Sep 10 2013 libEGL-x11.so
    root@udoo-1-quad:/usr/lib# ls -la libGAL*
    -rwxr-xr-x 1 root root 3858397 Sep 10 2013 libGAL-dfb.so
    -rwxr-xr-x 1 root root 3787878 Sep 10 2013 libGAL-fb.so
    lrwxrwxrwx 1 root root 12 Sep 10 2013 libGAL.so -> libGAL-fb.so
    -rwxr-xr-x 1 root root 3800797 Sep 10 2013 libGAL-wl.so
    -rwxr-xr-x 1 root root 3960240 Sep 10 2013 libGAL-x11.so
    root@udoo-1-quad:/usr/lib# ls -la libVIVANTE*
    -rwxr-xr-x 1 root root 3691204 Sep 10 2013 libVIVANTE-dfb.so
    -rwxr-xr-x 1 root root 3620875 Sep 10 2013 libVIVANTE-fb.so
    lrwxrwxrwx 1 root root 16 Sep 10 2013 libVIVANTE.so -> libVIVANTE-fb.so
    -rwxr-xr-x 1 root root 3634865 Sep 10 2013 libVIVANTE-wl.so
    -rwxr-xr-x 1 root root 3687996 Sep 10 2013 libVIVANTE-x11.so
     
  18. jas-mx

    jas-mx Active Member

    Joined:
    Dec 31, 2013
    Messages:
    407
    Likes Received:
    118
    Updated rootfs to 3.10.17 GA release, see original post for link. You need to create a new kernel with my udoo patches from my beta branch.
     
  19. koutheir

    koutheir New Member

    Joined:
    Aug 20, 2014
    Messages:
    2
    Likes Received:
    0
    IPv6 support

    Why don't you include IPv6 support in your kernel?
     
  20. chrisrean

    chrisrean New Member

    Joined:
    Nov 1, 2014
    Messages:
    2
    Likes Received:
    0
    Dear jas-mx,

    thanks for this really cool piece of software. My question is, if it is possible to boot your image in QEMU or mount it otherwise to make some modifications to the rootfs without re-building it?

    Thanks for your help,
    Chris
     

Share This Page