gk802: Add initial support
PATCH 1/1 gk802: Add initial support
Hello,
I would like to commit support for Zealz GK802 Freescale i.MX6 Quad Core device.
The work is based on the information from
https://github.com/imx6-dongle/wiki/wiki
Unfortunately it is not complete yet. U-Boot is working and the device will load the kernel uImage from first fat partition. With the attached "ubootcmd" file copied to the first fat partition of your micro-sd card, the kernel will start completely, but will fail to init systemd (see attached "gk802-boot.log" file).
I already tried several bootargs configuration via the ubootcmd file, up to following bootargs config without any further success:
setenv bootargs 'console=ttymxc3,115200 consoleblank=0 root=/dev/mmcblk0p2 rootfstype=ext3 init=/lib/systemd/systemd rootwait rw video=mxcfb0:dev=hdmi,1280x720M@60,if=RGB24'
I hope for the communitie's support to be able to finalize this work and get the GK802 supported within Yocto.
Regards,
Matthias
From 6acae509feaf9deb72f6f9fa57471a7f3eac8d49 Mon Sep 17 00:00:00 2001
From: Matthias Benesch <[email protected]>
Date: Tue, 30 Jul 2013 00:24:34 -0700
Subject: [meta-fsl-arm-extra][PATCH] gk802: Add initial support
--- conf/machine/gk802.conf | 19 ++++++++++++ .../0001-use-fat-filesystem.patch | 15 ++++++++++ recipes-bsp/u-boot/u-boot-imx6dongle_git.bb | 16 ++++++++++ .../0001-enable-ext2_3-fs.patch | 21 +++++++++++++ recipes-kernel/linux/linux-imx6dongle_3.0.35.bb | 34 ++++++++++++++++++++++ 5 files changed, 105 insertions(+) create mode 100644 conf/machine/gk802.conf create mode 100644 recipes-bsp/u-boot/u-boot-imx6dongle/0001-use-fat-filesystem.patch create mode 100644 recipes-bsp/u-boot/u-boot-imx6dongle_git.bb create mode 100644 recipes-kernel/linux/linux-imx6dongle-3.0.35/0001-enable-ext2_3-fs.patch create mode 100644 recipes-kernel/linux/linux-imx6dongle_3.0.35.bb
conf/machine/gk802.conf new file +19 -0
@@ -0,0 +1,19 @@ +#@TYPE: Machine +#@NAME: Zealz GK802 +#@SOC: i.MX6Q +#@DESCRIPTION: Machine configuration for Zealz GK802 + +include conf/machine/include/imx-base.inc +include conf/machine/include/tune-cortexa9.inc + +SOC_FAMILY = "mx6:mx6q" + +PREFERRED_PROVIDER_u-boot = "u-boot-imx6dongle" +PREFERRED_PROVIDER_virtual/kernel = "linux-imx6dongle" + +UBOOT_MACHINE = "gk802_config" + +SERIAL_CONSOLE = "115200 ttymxc0" + +MACHINE_FEATURES += " pci wifi bluetooth" +
recipes-bsp/u-boot/u-boot-imx6dongle/0001-use-fat-filesystem.patch new file +15 -0
@@ -0,0 +1,15 @@ +diff --git a/include/configs/gk802.h b/include/configs/gk802.h +index a84f16b..c4d2b1b 100644 +--- a/include/configs/gk802.h ++++ b/include/configs/gk802.h +@@ -115,8 +115,8 @@ + "initrd_high=0xffffffff\0" \ + "boot_recovery=setenv bootsuffix _recovery; setenv mmcdev 1; run try_boot; setenv mmcdev 0; run try_boot; run boot_normal\0" \ + "boot_normal= setenv bootsuffix ''; setenv mmcdev 1; run try_boot; setenv mmcdev 0; run try_boot\0" \ +- "try_boot=if ext2load mmc ${mmcdev} ${loadaddr} /boot/ubootcmd${bootsuffix}; then source; fi;" \ +- " if ext2load mmc ${mmcdev} ${loadaddr} /boot/uImage${bootsuffix}; then bootm; fi;\0" ++ "try_boot=if fatload mmc ${mmcdev} ${loadaddr} /ubootcmd${bootsuffix}; then source; fi;" \ ++ " if fatload mmc ${mmcdev} ${loadaddr} /uImage${bootsuffix}; then bootm; fi;\0" + + +
recipes-bsp/u-boot/u-boot-imx6dongle_git.bb new file +16 -0
@@ -0,0 +1,16 @@ +require recipes-bsp/u-boot/u-boot.inc + +LICENSE = "GPLv2+" +LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb" +COMPATIBLE_MACHINE = "(gk802)" + +PROVIDES = "u-boot" + +SRCREV = "AUTOINC" +SRC_URI = "git://github.com/imx6-dongle/uboot-imx6dongle.git \ + file://0001-use-fat-filesystem.patch \ +" + +S = "${WORKDIR}/git" + +PACKAGE_ARCH = "${MACHINE_ARCH}"
recipes-kernel/linux/linux-imx6dongle-3.0.35/0001-enable-ext2_3-fs.patch new file +21 -0
@@ -0,0 +1,21 @@ +diff --git a/arch/arm/configs/imx6_gk802_defconfig b/arch/arm/configs/imx6_gk802_defconfig +index da72294..a6ba5cb 100644 +--- a/arch/arm/configs/imx6_gk802_defconfig ++++ b/arch/arm/configs/imx6_gk802_defconfig +@@ -2432,8 +2432,14 @@ CONFIG_MXC_MIPI_CSI2=m + # + # File systems + # +-# CONFIG_EXT2_FS is not set +-# CONFIG_EXT3_FS is not set ++CONFIG_EXT2_FS=y ++# CONFIG_EXT2_FS_XATTR is not set ++# CONFIG_EXT2_FS_XIP is not set ++CONFIG_EXT3_FS=y ++CONFIG_EXT3_DEFAULTS_TO_ORDERED=y ++CONFIG_EXT3_FS_XATTR=y ++# CONFIG_EXT3_FS_POSIX_ACL is not set ++# CONFIG_EXT3_FS_SECURITY is not set + CONFIG_EXT4_FS=y + CONFIG_EXT4_USE_FOR_EXT23=y + CONFIG_EXT4_FS_XATTR=y
recipes-kernel/linux/linux-imx6dongle_3.0.35.bb new file +34 -0
@@ -0,0 +1,34 @@ +# Adapted from linux-imx.inc, copyright (C) 2013 O.S. Systems Software LTDA +# Released under the MIT license (see COPYING.MIT for the terms) + +require recipes-kernel/linux/linux-imx.inc + +DESCRIPTION = "Linux kernel for Zealz GK802" + +PR = "${INC_PR}.1" + +COMPATIBLE_MACHINE = "(mx6)" + +SRC_URI = "git://github.com/imx6-dongle/linux-imx.git;branch=imx_3.0.35_1.1.0-hdmidongle \ + file://0001-enable-ext2_3-fs.patch \ +" + +SRCREV = "AUTOINC" + +LOCALVERSION = "-imx6dongle+yocto" + +#KERNEL_DEFCONFIG = "imx6_hdmidongle_defconfig" +KERNEL_DEFCONFIG = "imx6_gk802_defconfig" + +do_configure_prepend() { + cp ${S}/arch/arm/configs/${KERNEL_DEFCONFIG} ${S}/.config + cp ${S}/arch/arm/configs/${KERNEL_DEFCONFIG} ${S}/../defconfig + + kernel_conf_variable LOCALVERSION "\"${LOCALVERSION}\"" + kernel_conf_variable LOCALVERSION_AUTO y + + # Add GIT revision to the local version + head=`git rev-parse --verify --short HEAD 2> /dev/null` + printf "%s%s" +g $head > ${S}/.scmversion +} +
Signature · 1 line
1.8.3.4
U-Boot 2013.01-rc1-g7a2d058-dirty (Jul 28 2013 - 19:48:27)
CPU: Freescale i.MX6Q rev1.2 at 792 MHz
Reset cause: POR
Board: MX6Q-gk802
DRAM: 1 GiB
MMC: FSL_SDHC: 0, FSL_SDHC: 1
*** Warning - bad CRC, using default environment
got mode 1024x768@60
1165476 active pixels, pixel clock 14300 ps
enable_hdmi: setup HDMI monitor
Display: HDMI (1024x768)
In: serial
Out: serial
Err: serial
Hit any key to stop autoboot: 5 4 0
U-Boot >
U-Boot > setenv bootargs 'console=ttymxc3,115200 consoleblank=0 root=/dev/mmcblk0p2 rootfstype=ext3 init=/lib/systemd/systemd rootwait rw video=mxcfb0:dev=hdmi,1280x720M@60,if=RGB24'
U-Boot >
U-Boot > run bootcmd
MMC: no card present
** Bad device mmc 1 **
MMC: no card present
** Bad device mmc 1 **
bad MBR sector signature 0x0000
** Invalid partition 1 **
reading /uImage
3878892 bytes read
## Booting kernel from Legacy Image at 10800000 ...
Image Name: Linux-3.0.35-imx6dongle+yocto+g8
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3878828 Bytes = 3.7 MiB
Load Address: 10008000
Entry Point: 10008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting kernel ...
Linux version 3.0.35-imx6dongle+yocto+g899792c (matthias@bDesk) (gcc version 4.7.2 (GCC) ) #2 SMP PREEMPT Sun Jul 28 19:52:31 PDT 2013
CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c53c7d
CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: Freescale i.MX6q Hi802/GK802 board
Memory policy: ECC disabled, Data cache writealloc
CPU identified as i.MX6Q, silicon rev 1.2
PERCPU: Embedded 7 pages/cpu @8c008000 s5216 r8192 d15264 u32768
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 210944
Kernel command line: console=ttymxc3,115200 consoleblank=0 root=/dev/mmcblk0p2 rootfstype=ext3 init=/lib/systemd/systemd rootwait rw video=mxcfb0:dev=hdmi,1280x720M@60,if=RGB24 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: 576MB 256MB = 832MB total
Memory: 831348k/831348k available, 217228k 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 - 0x80037000 ( 188 kB)
.text : 0x80037000 - 0x80a90fcc (10600 kB)
.data : 0x80a92000 - 0x80ae7b60 ( 343 kB)
.bss : 0x80ae7b84 - 0x80b35b4c ( 312 kB)SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1 Preemptible hierarchical RCU implementation.
NR_IRQS:496
MXC GPIO hardwaresched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 1431655ms arm_max_freq=2MXC_Early serial console at MMIO 0x21f0000 (options '115200')
bootconsole [ttymxc3] 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
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).print_constraints: dummy:
NET: Registered protocol family 16print_constraints: vddpu: 725 <--> 1300 mV at 1100 mV fast normalprint_constraints: vddcore: 725 <--> 1300 mV at 1100 mV fast normalprint_constraints: vddsoc: 725 <--> 1300 mV at 1200 mV fast normalprint_constraints: vdd2p5: 2000 <--> 2775 mV at 2400 mV fast normalprint_constraints: vdd1p1: 800 <--> 1400 mV at 1100 mV fast normalprint_constraints: vdd3p0: 2625 <--> 3400 mV at 3000 mV fast normal
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 0x02070000, Cache size: 1048576 B
bio: create slab <bio-0> at 0
mxs-dma mxs-dma-apbh: initializedprint_constraints: vmmc: 3300 mV
SCSI subsystem initialized
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) 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
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
Static Power Management for Freescale i.MX6
wait mode is enabled for i.MX6
cpaddr = c0880000 suspend_iram_base=c08ec000
PM driver module loaded
IMX usb wakeup probe
add wake up source irq 75
IMX usb wakeup probe
JFFS2 version 2.2. (NAND) 2001-2006 Red Hat, Inc.
msgmni has been set to 1623
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
MIPI DSI driver module loadedmxc_sdc_fb mxc_sdc_fb.0: register mxc display driver hdmimxc_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
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
imx-uart.2: ttymxc2 at MMIO 0x21ec000 (irq = 60) is a IMX
imx-uart.3: ttymxc3 at MMIO 0x21f0000 (irq = 61) is a IMX
console [ttymxc3] enabled, bootconsole disabled
console [ttymxc3] enabled, bootconsole disabled
loop: module loaded
GPMI NAND driver registered. (IMX)
vcan: Virtual CAN interface driver
CAN device driver interface
FEC Ethernet Driver
usbcore: registered new interface driver catc
catc: v2.8:CATC EL1210A NetMate USB Ethernet driver
usbcore: registered new interface driver kaweth
pegasus: v0.6.14 (2006/09/27), Pegasus/Pegasus II USB Ethernet driver
usbcore: registered new interface driver pegasus
rtl8150: v0.6.2 (2004/08/27):rtl8150 based usb-ethernet driver
usbcore: registered new interface driver rtl8150
hso: drivers/net/usb/hso.c: Option Wireless
usbcore: registered new interface driver hso
usbcore: registered new interface driver asix
usbcore: registered new interface driver cdc_ether
usbcore: registered new interface driver cdc_eem
usbcore: registered new interface driver dm9601
usbcore: registered new interface driver smsc75xx
usbcore: registered new interface driver smsc95xx
usbcore: registered new interface driver gl620a
usbcore: registered new interface driver net1080
usbcore: registered new interface driver rndis_host
usbcore: registered new interface driver cdc_subset
usbcore: registered new interface driver zaurus
usbcore: registered new interface driver ipheth
usbcore: registered new interface driver sierra_netcdc_ncm: 04-Aug-2011
usbcore: registered new interface driver cdc_ncm
usbcore: registered new interface driver lg-vl600ehci_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
usbcore: registered new interface driver cdc_acmcdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
ARC USBOTG Device Controller driver (1 August 2005)
mousedev: PS/2 mouse device common for all mice
i2c-core: driver [isl29023] using legacy suspend method
i2c-core: driver [isl29023] using legacy resume methodsnvs_rtc snvs_rtc.0: rtc core: registered snvs_rtc as rtc0
i2c /dev entries driver
Linux video capture interface: v2.00mxc_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
mmc0: SDHCI controller on platform [sdhci-esdhc-imx.3] using DMA
mmc1: SDHCI controller on platform [sdhci-esdhc-imx.2] using DMAmxc_vdoa mxc_vdoa: i.MX Video Data Order Adapter(VDOA) driver probed
VPU initialized
Thermal calibration data is 0x5c250d69
Thermal sensor with ratio = 193
Anatop Thermal registered as thermal_zone0anatop_thermal_probe: default cooling device is cpufreq!
caam caam.0: device ID = 0x0a16010000000000
caam caam.0: job rings = 2, qi = 0
alg: No test for authenc(hmac(md5),cbc(aes)) (authenc-hmac-md5-cbc-aes-caam) caam caam.0: authenc-hmac-md5-cbc-aes-caam
alg: No test for authenc(hmac(sha1),cbc(aes)) (authenc-hmac-sha1-cbc-aes-caam) caam caam.0: authenc-hmac-sha1-cbc-aes-caam
alg: No test for authenc(hmac(sha224),cbc(aes)) (authenc-hmac-sha224-cbc-aes-caam) caam caam.0: authenc-hmac-sha224-cbc-aes-caam
alg: No test for authenc(hmac(sha256),cbc(aes)) (authenc-hmac-sha256-cbc-aes-caam) caam caam.0: authenc-hmac-sha256-cbc-aes-caam
alg: No test for authenc(hmac(md5),cbc(des3_ede)) (authenc-hmac-md5-cbc-des3_ede-caam) caam caam.0: authenc-hmac-md5-cbc-des3_ede-caam
alg: No test for authenc(hmac(sha1),cbc(des3_ede)) (authenc-hmac-sha1-cbc-des3_ede-caam) caam caam.0: authenc-hmac-sha1-cbc-des3_ede-caam
alg: No test for authenc(hmac(sha224),cbc(des3_ede)) (authenc-hmac-sha224-cbc-des3_ede-caam) caam caam.0: authenc-hmac-sha224-cbc-des3_ede-caam
alg: No test for authenc(hmac(sha256),cbc(des3_ede)) (authenc-hmac-sha256-cbc-des3_ede-caam)
mmc0: new high speed SDHC card at address e624
mmcblk0: mmc0:e624 SU08G 7.40 GiB
mmcblk0: p1 p2
caam caam.0: authenc-hmac-sha256-cbc-des3_ede-caam
alg: No test for authenc(hmac(md5),cbc(des)) (authenc-hmac-md5-cbc-des-caam) caam caam.0: authenc-hmac-md5-cbc-des-caam
alg: No test for authenc(hmac(sha1),cbc(des)) (authenc-hmac-sha1-cbc-des-caam) caam caam.0: authenc-hmac-sha1-cbc-des-caam
alg: No test for authenc(hmac(sha224),cbc(des)) (authenc-hmac-sha224-cbc-des-caam) usb 2-1: new high speed USB device number 2 using fsl-ehci
caam caam.0: authenc-hmac-sha224-cbc-des-caam
alg: No test for authenc(hmac(sha256),cbc(des)) (authenc-hmac-sha256-cbc-des-caam) caam caam.0: authenc-hmac-sha256-cbc-des-caam
caam caam.0: cbc-aes-caam
caam caam.0: cbc-3des-caam
caam caam.0: cbc-des-caam
platform caam_jr.0: registering rng-caam
platform caam_sm.0: caam_sm_test: 8-byte key test match OK
platform caam_sm.0: caam_sm_test: 16-byte key test match OK
platform caam_sm.0: caam_sm_test: 32-byte key test match OK
platform caam_secvio.0: security violation service handlers armed
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
usbcore: registered new interface driver snd-usb-audiomxc_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
VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
Bus freq driver module loaded
Bus freq driver Enabledmxc_dvfs_core_probe
DVFS driver module loadedsnvs_rtc snvs_rtc.0: setting system clock to 1970-01-01 00:00:00 UTC (0)
EXT3-fs: barriers not enabled
kjournald starting. Commit interval 5 seconds EXT3-fs (mmcblk0p2): using internal journal
EXT3-fs (mmcblk0p2): recovery complete
EXT3-fs (mmcblk0p2): mounted filesystem with ordered data mode
VFS: Mounted root (ext3 filesystem) on device 179:2. Freeing init memory: 188K
Hello Matthias,
Quoted 4 lines · Matthias Benesch
I would like to commit support for Zealz GK802 Freescale i.MX6 Quad Core device.
The work is based on the information from
https://github.com/imx6-dongle/wiki/wiki
Last time I talked with GK802 guys they were working in porting it to U-Boot mainline; I have made the patches here to integrate it to meta-fsl-arm-extra a while ago but I am awaiting for their U-Boot patch. I am attaching the three patches for reference anyway.
Quoted 9 lines
Unfortunately it is not complete yet. U-Boot is working and the device will load the kernel uImage from first fat partition. With the attached "ubootcmd" file copied to the first fat partition of your micro-sd card, the kernel will start completely, but will fail to init systemd (see attached "gk802-boot.log" file).
I already tried several bootargs configuration via the ubootcmd file, up to following bootargs config without any further success:
Quoted 6 lines
setenv bootargs 'console=ttymxc3,115200 consoleblank=0 root=/dev/mmcblk0p2 rootfstype=ext3 init=/lib/systemd/systemd rootwait rw video=mxcfb0:dev=hdmi,1280x720M@60,if=RGB24'
I hope for the communitie's support to be able to finalize this work and get the GK802 supported within Yocto.
I think you should focus in get it booting and working, initially, with core-image-base and then move to more complex use-cases like systemd afterwards.
Please check the patches I attached to see if they help in something.
--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://projetos.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
From 21e845767633390e5fe603611b6da5c84ff398f0 Mon Sep 17 00:00:00 2001
From: Otavio Salvador <[email protected]>
Date: Sun, 28 Apr 2013 10:25:19 -0300
Subject: [PATCH 3/3] gk802: Add Zealz GK802 Mini PC TV Stick recipe
--- conf/machine/gk802.conf | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 conf/machine/gk802.conf
conf/machine/gk802.conf new file +20 -0
@@ -0,0 +1,20 @@ +#@TYPE: Machine +#@NAME: Zealz GK802 Mini PC TV Stick +#@SOC: i.MX6Q +#@DESCRIPTION: Machine configuration for Zealz GK802 Mini PC TV Stick + +include conf/machine/include/imx-base.inc +include conf/machine/include/tune-cortexa9.inc + +SOC_FAMILY = "mx6:mx6q" + +PREFERRED_PROVIDER_u-boot = "u-boot-imx6dongle" +PREFERRED_PROVIDER_virtual/kernel = "linux-imx6dongle" + +UBOOT_MACHINE = "gk802_config" + +SERIAL_CONSOLE = "115200 ttymxc1" + +MACHINE_EXTRA_RRECOMMENDS += "linux-firmware-wl12xx" + +MACHINE_FEATURES += " pci wifi bluetooth"
Signature · 1 line
1.8.3.2
From 4f773d693eb4473830e25d39954ae8ea9804208d Mon Sep 17 00:00:00 2001
From: Otavio Salvador <[email protected]>
Date: Sun, 28 Apr 2013 19:53:51 -0300
Subject: [PATCH 2/3] linux-imx6dongle: Add Linux Kernel fork of i.MX6 Mini PC
TV Stick community
--- recipes-kernel/linux/linux-imx6dongle/defconfig | 2807 +++++++++++++++++++++++ recipes-kernel/linux/linux-imx6dongle_3.0.35.bb | 14 + 2 files changed, 2821 insertions(+) create mode 100644 recipes-kernel/linux/linux-imx6dongle/defconfig create mode 100644 recipes-kernel/linux/linux-imx6dongle_3.0.35.bb
recipes-kernel/linux/linux-imx6dongle/defconfig new file +2807 -0
2,807 lines not on this page · raw message
recipes-kernel/linux/linux-imx6dongle_3.0.35.bb new file +14 -0
@@ -0,0 +1,14 @@ +# Adapted from linux-imx.inc, copyright (C) 2013 O.S. Systems Software LTDA +# Released under the MIT license (see COPYING.MIT for the terms) + +require recipes-kernel/linux/linux-imx.inc + +DESCRIPTION = "Linux kernel for i.MX6 Mini PC TV Sticks" + +SRC_URI = "git://github.com/imx6-dongle/linux-imx.git \ + file://defconfig" + +LOCALVERSION = "-1.1.0" +SRCREV = "6ea2512fe2a5f002fb05eed90240f89ad3dcf62a" + +COMPATIBLE_MACHINE = "(mx6)"
Signature · 1 line
1.8.3.2
From 6e17fc1d225c54d314aebd0c9cae3d1ada8dff3d Mon Sep 17 00:00:00 2001
From: Otavio Salvador <[email protected]>
Date: Sun, 28 Apr 2013 10:29:03 -0300
Subject: [PATCH 1/3] u-boot-imx6dongle: Add U-Boot fork of i.MX6 Mini PC TV
Stick community
--- .../0001-tools-Disable-imxboot-build.patch | 30 ++++++++++++++++++++++ recipes-bsp/u-boot/u-boot-imx6dongle_git.bb | 17 ++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 recipes-bsp/u-boot/u-boot-imx6dongle/0001-tools-Disable-imxboot-build.patch create mode 100644 recipes-bsp/u-boot/u-boot-imx6dongle_git.bb
recipes-bsp/u-boot/u-boot-imx6dongle/0001-tools-Disable-imxboot-build.patch new file +30 -0
@@ -0,0 +1,30 @@ +From f454bdd5fc12f9e7411643ca2dc47e1c9f05d860 Mon Sep 17 00:00:00 2001 +From: Otavio Salvador <[email protected]> +Date: Sun, 28 Apr 2013 11:38:20 -0300 +Subject: [PATCH] tools: Disable imxboot build + +This should be handled by other external tools and avoid host binaries +to be build in the target recipe. + +Upstream-Status: Inappropriate [configuration] + +Signed-off-by: Otavio Salvador <[email protected]> +--- + tools/Makefile | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/tools/Makefile b/tools/Makefile +index 22af577..a44ee1f 100644 +--- a/tools/Makefile ++++ b/tools/Makefile +@@ -73,7 +73,6 @@ BIN_FILES-$(CONFIG_MX28) += mxsboot$(SFX) + BIN_FILES-$(CONFIG_NETCONSOLE) += ncb$(SFX) + BIN_FILES-$(CONFIG_SHA1_CHECK_UB_IMG) += ubsha1$(SFX) + BIN_FILES-$(CONFIG_KIRKWOOD) += kwboot$(SFX) +-BIN_FILES-$(CONFIG_MX6) += imxboot$(SFX) + + # Source files which exist outside the tools directory + EXT_OBJ_FILES-$(CONFIG_BUILD_ENVCRC) += common/env_embedded.o +-- +1.8.1 +
recipes-bsp/u-boot/u-boot-imx6dongle_git.bb new file +17 -0
@@ -0,0 +1,17 @@ +require recipes-bsp/u-boot/u-boot.inc + +LICENSE = "GPLv2+" +LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb" +COMPATIBLE_MACHINE = "(gk802)" + +PROVIDES = "u-boot" + +PV = "v2013.01+git${SRCPV}" + +SRCREV = "7a2d0586f5c3bc07dae8cc87f12c95118a02a7a5" +SRC_URI = "git://github.com/imx6-dongle/uboot-imx6dongle.git \ + file://0001-tools-Disable-imxboot-build.patch" + +S = "${WORKDIR}/git" + +PACKAGE_ARCH = "${MACHINE_ARCH}"
Signature · 1 line
1.8.3.2
Quoted 15 lines · Matthias Benesch
Hello,
I would like to commit support for Zealz GK802 Freescale i.MX6 Quad Core device.
The work is based on the information from
https://github.com/imx6-dongle/wiki/wikiUnfortunately it is not complete yet. U-Boot is working and the device will load the kernel uImage from first fat partition. With the attached "ubootcmd" file copied to the first fat partition of your micro-sd card, the kernel will start completely, but will fail to init systemd (see attached "gk802-boot.log" file).
I already tried several bootargs configuration via the ubootcmd file, up to following bootargs config without any further success:
Quoted 6 lines
setenv bootargs 'console=ttymxc3,115200 consoleblank=0 root=/dev/mmcblk0p2 rootfstype=ext3 init=/lib/systemd/systemd rootwait rw video=mxcfb0:dev=hdmi,1280x720M@60,if=RGB24'
I hope for the communitie's support to be able to finalize this work and get the GK802 supported within Yocto.
Would it be "the classic DEVTMPS" problem?
Please, check if it's enabled on your kernelCONFIG_DEVTMPFS=yCONFIG_DEVTMPFS_MOUNT=y
Signature · 1 line
Daiane
Quoted 20 lines · Daiane Angolini
Quoted 19 lines · Matthias Benesch
Hello,
I would like to commit support for Zealz GK802 Freescale i.MX6 Quad Core device.
The work is based on the information from
https://github.com/imx6-dongle/wiki/wikiUnfortunately it is not complete yet. U-Boot is working and the device will load the kernel uImage from first fat partition. With the attached "ubootcmd" file copied to the first fat partition of your micro-sd card, the kernel will start completely, but will fail to init systemd (see attached "gk802-boot.log" file).
I already tried several bootargs configuration via the ubootcmd file, up to following bootargs config without any further success:
setenv bootargs 'console=ttymxc3,115200 consoleblank=0 root=/dev/mmcblk0p2 rootfstype=ext3 init=/lib/systemd/systemd rootwait rw video=mxcfb0:dev=hdmi,1280x720M@60,if=RGB24'
Quoted 9 lines
Quoted 2 lines
I hope for the communitie's support to be able to finalize this work and get the GK802 supported within Yocto.
Would it be "the classic DEVTMPS" problem?
Please, check if it's enabled on your kernel
CONFIG_DEVTMPFS=yCONFIG_DEVTMPFS_MOUNT=y
The DEVTMPFS did it. Now it is starting including systemd ;-).
I can remember that I saw this issue within one of the forum discussions before.
I will update the patch accordingly.
Matthias
Hi Matthias,
Some time ago me and guys interested in GK802 started the imx6-dongle project - https://github.com/imx6-dongle You probably using kernel from there.
It kinda stuck right now because the wave of interest in GK802 already passed and guys with skills already done everything with it and lost interest. If you want to have access to imx6-dongle repos - I can add you, or merge your pull requests.
There a couple of things left to do - for example - port our hardware support to 4.0.0 BSP or to 3.5.7 kernel in future.
Same also can be applied to anyone who wants to work on GK802 - you are welcome.
Best Regards
Dmitriy Beykun
2013/7/31 Matthias Benesch <[email protected]>
Quoted 50 lines · Daiane Angolini
Quoted 3 lines · Matthias Benesch
Quoted 2 lines
Hello,
I would like to commit support for Zealz GK802 Freescale i.MX6 QuadCore
Quoted 7 lines
Quoted 7 lines
device.
The work is based on the information from
https://github.com/imx6-dongle/wiki/wikiUnfortunately it is not complete yet. U-Boot is working and the device will load the kernel uImage from first fat partition. With the attached "ubootcmd" file copied to the first fat partition of your micro-sd
card,
Quoted 4 lines
Quoted 4 lines
the kernel will start completely, but will fail to init systemd (see attached "gk802-boot.log" file).
I already tried several bootargs configuration via the ubootcmd file,
up
Quoted 7 lines
Quoted 7 lines
to following bootargs config without any further success:
setenv bootargs 'console=ttymxc3,115200 consoleblank=0 root=/dev/mmcblk0p2 rootfstype=ext3 init=/lib/systemd/systemd rootwait rw video=mxcfb0:dev=hdmi,1280x720M@60,if=RGB24'
I hope for the communitie's support to be able to finalize this work
and
Quoted 8 lines
Quoted 1 line
get the GK802 supported within Yocto.
Would it be "the classic DEVTMPS" problem?
Please, check if it's enabled on your kernel
CONFIG_DEVTMPFS=yCONFIG_DEVTMPFS_MOUNT=yThe DEVTMPFS did it. Now it is starting including systemd ;-).
I can remember that I saw this issue within one of the forum discussions before.
I will update the patch accordingly.
Matthias
_______________________________________________
meta-freescale mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-freescale
Quoted 71 lines · Dmitriy B.
Hi Matthias,
Some time ago me and guys interested in GK802 started the imx6-dongle project - https://github.com/imx6-dongle You probably using kernel from there.
It kinda stuck right now because the wave of interest in GK802 already passed and guys with skills already done everything with it and lost interest. If you want to have access to imx6-dongle repos - I can add you, or merge your pull requests.
There a couple of things left to do - for example - port our hardware support to 4.0.0 BSP or to 3.5.7 kernel in future.Same also can be applied to anyone who wants to work on GK802 - you are welcome.
Best Regards
Dmitriy Beykun2013/7/31 Matthias Benesch <[email protected]>
On Tue, 2013-07-30 at 13:39 -0300, Daiane Angolini wrote:
> On 07/30/2013 05:00 AM, Matthias Benesch wrote:
> > Hello,
> > I would like to commit support for Zealz GK802 Freescale i.MX6 Quad Core
> > device.
> > The work is based on the information from
> > https://github.com/imx6-dongle/wiki/wiki
> >
> > Unfortunately it is not complete yet. U-Boot is working and the device
> > will load the kernel uImage from first fat partition. With the attached
> > "ubootcmd" file copied to the first fat partition of your micro-sd card,
> > the kernel will start completely, but will fail to init systemd (see
> > attached "gk802-boot.log" file).
> >
> > I already tried several bootargs configuration via the ubootcmd file, up
> > to following bootargs config without any further success:
> >
> > setenv bootargs 'console=ttymxc3,115200 consoleblank=0 > > root=/dev/mmcblk0p2 rootfstype=ext3 init=/lib/systemd/systemd rootwait
> > rw video=mxcfb0:dev=hdmi,1280x720M@60,if=RGB24' > >
> > I hope for the communitie's support to be able to finalize this work and
> > get the GK802 supported within Yocto.
>
> Would it be "the classic DEVTMPS" problem?
>
> Please, check if it's enabled on your kernel
>CONFIG_DEVTMPFS=y
>CONFIG_DEVTMPFS_MOUNT=y
>The DEVTMPFS did it. Now it is starting including systemd ;-).
I can remember that I saw this issue within one of the forum discussions
before.I will update the patch accordingly.
Quoted 9 lines
Matthias
_______________________________________________
meta-freescale mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-freescale
I added the DEVTMPFS configuration to the gk802 defconfig and fixed some issues within uboot config file gk802.h. The gk802 is now booting.
Attached the respective patch.
@Otavio: How do we proceed with the awaiting u-boot upstream for gk802?
Matthias
From 5b07f7d32f2457cb5293fb22d4f37243957f0c35 Mon Sep 17 00:00:00 2001
From: Matthias Benesch <[email protected]>
Date: Sat, 3 Aug 2013 15:51:05 -0700
Subject: [meta-fsl-arm-extra][PATCH] gk802: Add initial support
--- conf/machine/gk802.conf | 19 ++++++++++ ...hange-default-environment-to-work-with-OE.patch | 41 ++++++++++++++++++++ recipes-bsp/u-boot/u-boot-imx6dongle_git.bb | 16 ++++++++ ...nfig-Enable-DEVTMPFS-EXT2-and-EXT3-suppor.patch | 44 ++++++++++++++++++++++ recipes-kernel/linux/linux-imx6dongle_3.0.35.bb | 34 +++++++++++++++++ 5 files changed, 154 insertions(+) create mode 100644 conf/machine/gk802.conf create mode 100644 recipes-bsp/u-boot/u-boot-imx6dongle/0001-gk802-Change-default-environment-to-work-with-OE.patch create mode 100644 recipes-bsp/u-boot/u-boot-imx6dongle_git.bb create mode 100644 recipes-kernel/linux/linux-imx6dongle-3.0.35/0001-gk802-defconfig-Enable-DEVTMPFS-EXT2-and-EXT3-suppor.patch create mode 100644 recipes-kernel/linux/linux-imx6dongle_3.0.35.bb
conf/machine/gk802.conf new file +19 -0
@@ -0,0 +1,19 @@ +#@TYPE: Machine +#@NAME: Zealz GK802 +#@SOC: i.MX6Q +#@DESCRIPTION: Machine configuration for Zealz GK802 + +include conf/machine/include/imx-base.inc +include conf/machine/include/tune-cortexa9.inc + +SOC_FAMILY = "mx6:mx6q" + +PREFERRED_PROVIDER_u-boot = "u-boot-imx6dongle" +PREFERRED_PROVIDER_virtual/kernel = "linux-imx6dongle" + +UBOOT_MACHINE = "gk802_config" + +SERIAL_CONSOLE = "115200 ttymxc3" + +MACHINE_FEATURES += " pci wifi bluetooth" +
recipes-bsp/u-boot/u-boot-imx6dongle/0001-gk802-Change-default-environment-to-work-with-OE.patch new file +41 -0
41 lines not on this page · raw message
recipes-bsp/u-boot/u-boot-imx6dongle_git.bb new file +16 -0
@@ -0,0 +1,16 @@ +require recipes-bsp/u-boot/u-boot.inc + +LICENSE = "GPLv2+" +LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb" +COMPATIBLE_MACHINE = "(gk802)" + +PROVIDES = "u-boot" + +SRCREV = "7a2d0586f5c3bc07dae8cc87f12c95118a02a7a5" +SRC_URI = "git://github.com/imx6-dongle/uboot-imx6dongle.git \ + file://0001-gk802-Change-default-environment-to-work-with-OE.patch \ +" + +S = "${WORKDIR}/git" + +PACKAGE_ARCH = "${MACHINE_ARCH}"
recipes-kernel/linux/linux-imx6dongle-3.0.35/0001-gk802-defconfig-Enable-DEVTMPFS-EXT2-and-EXT3-suppor.patch new file +44 -0
44 lines not on this page · raw message
recipes-kernel/linux/linux-imx6dongle_3.0.35.bb new file +34 -0
@@ -0,0 +1,34 @@ +# Adapted from linux-imx.inc, copyright (C) 2013 O.S. Systems Software LTDA +# Released under the MIT license (see COPYING.MIT for the terms) + +require recipes-kernel/linux/linux-imx.inc + +DESCRIPTION = "Linux kernel for Zealz GK802" + +PR = "${INC_PR}.1" + +COMPATIBLE_MACHINE = "(mx6)" + +SRC_URI = "git://github.com/imx6-dongle/linux-imx.git;branch=imx_3.0.35_1.1.0-hdmidongle \ + file://0001-gk802-defconfig-Enable-DEVTMPFS-EXT2-and-EXT3-suppor.patch \ +" + +SRCREV = "899792c5fa2f1fe6919366d5ccc4d33f419012bf" + +LOCALVERSION = "-imx6dongle+yocto" + +#KERNEL_DEFCONFIG = "imx6_hdmidongle_defconfig" +KERNEL_DEFCONFIG = "imx6_gk802_defconfig" + +do_configure_prepend() { + cp ${S}/arch/arm/configs/${KERNEL_DEFCONFIG} ${S}/.config + cp ${S}/arch/arm/configs/${KERNEL_DEFCONFIG} ${S}/../defconfig + + kernel_conf_variable LOCALVERSION "\"${LOCALVERSION}\"" + kernel_conf_variable LOCALVERSION_AUTO y + + # Add GIT revision to the local version + head=`git rev-parse --verify --short HEAD 2> /dev/null` + printf "%s%s" +g $head > ${S}/.scmversion +} +
Signature · 1 line
1.8.3.4
Quoted 6 lines · Matthias Benesch
I added the DEVTMPFS configuration to the gk802 defconfig and fixed some issues within uboot config file
gk802.h. The gk802 is now booting.Attached the respective patch.
@Otavio: How do we proceed with the awaiting u-boot upstream for gk802?
Ok; let's work to get it merged here in meanwhile.
I did a fast review in the attached file and I have following remarks:
- please send patches using git send-email (as it easy review);
- split the patches (u-boot, kernel, machine);
- add a defconfig file to easy user customization (pass it on
savedefconfig make target);
After rework the patch, please send the three patches to mailing list and we review them again.
Good work. :-)
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://projetos.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750