Kernel 3.10 for GK802

702 views
Skip to first unread message

Žydrūnas Urbonas

unread,
Mar 26, 2014, 5:12:21 AM3/26/14
to imx6-...@googlegroups.com
Hi,

can anyone share experience building 3.10 kernel for GK802?
Kernel config, kernel tree and rootfs are welcome

Thanks!

Steeve Morin

unread,
Mar 31, 2014, 8:02:51 PM3/31/14
to imx6-...@googlegroups.com
+1 for me too. Note that the gk802 dtbs have been merged into https://github.com/linux4kix/linux-linaro-stable-mx6/pull/4

I am still missing a nice defconfig, though

Žydrūnas Urbonas

unread,
Jun 13, 2014, 10:37:39 AM6/13/14
to imx6-...@googlegroups.com
So, anyone succeeded compiling 3.10 and higher kernel for GK802?

Haakon Stende

unread,
Jun 13, 2014, 11:02:40 AM6/13/14
to Žydrūnas Urbonas, imx6-dongle
I have made a linux-script that install the 3.10 for gk802
 on a sdcard:
http://stende.no-ip.info/imx6/gk802/3.10.17_1.0.0/scripts/mk_jessie-lxde_gk802.sh


hste

Žydrūnas Urbonas

unread,
Jun 13, 2014, 11:50:02 AM6/13/14
to imx6-...@googlegroups.com, tos...@gmail.com
Cool!
How did you compile the kernel? Which sources you took (git tree)?

Haakon Stende

unread,
Jun 15, 2014, 10:31:05 AM6/15/14
to Žydrūnas Urbonas, imx6-dongle

I have added the kernelsource wich is based on in /usr/src/linux with a gk802_defconfig
Its based on https://github.com/linux4kix/linux-linaro-stable-mx6

hste


Žydrūnas Urbonas

unread,
Jul 5, 2014, 5:08:51 AM7/5/14
to imx6-...@googlegroups.com, tos...@gmail.com
Hi HSTe,

do you have uImage for this rootFS?
I want to boot this rootFS using UBoot and for this I converted zImage to uImage using this commad:

mkimage -A arm -O linux -T kernel -C none -a 0x80008000 -e 0x80008000 -n "Linux kernel" -d ./zImage uImage

But my GK802 does not boot:

U-Boot 2013.01-rc1-gd0486e7-dirty (May 04 2013 - 15:31:51)

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

In:    serial
Out:   serial
Err:   serial
Hit any key to stop autoboot:  0
mmc0 is current device
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
mmc1 is current device
402 bytes read
## Executing script at 10008000
mmc1 is current device
4925008 bytes read
## Booting kernel from Legacy Image at 10800000 ...
   Image Name:   Linux kernel
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4924944 Bytes = 4.7 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

And then nothing. Neither serial console, nor HDMI show anything.

Tried to change offsets, like this:

Load Address: 10008000
Entry Point:  10008000

But still same.

Is it possible to boot this 3.10 kernel using UBoot?

Thanks

Žydrūnas Urbonas

unread,
Feb 13, 2015, 6:40:24 AM2/13/15
to imx6-...@googlegroups.com, tos...@gmail.com
Compiled 3.10.17-80732-ge4f800f from sources https://github.com/imx6-dongle/linux-imx/commit/e4f800f1a2b56074f5e3844225f6e53ce5bacecf, but still same issue - stuck at "Starting kernel ..."

Žydrūnas Urbonas

unread,
Feb 27, 2015, 7:43:57 AM2/27/15
to imx6-...@googlegroups.com, tos...@gmail.com
Hi HSTe,

I tried to build a card using your script: http://stende.no-ip.info/imx6/gk802/3.10.30/scripts/mk_jessie-lxde_gk802.sh
I put card into internal slot and when I try to boot I only see short spash screen of U-Boot with penguin and GK802 immediately reboots and again U-Boot splash screen, reboot...

Any steps to troubleshoot?
Maybe I need to use custom uEnv.txt?

Thanks

Žydrūnas Urbonas

unread,
Mar 5, 2015, 3:04:20 AM3/5/15
to imx6-...@googlegroups.com, tos...@gmail.com
Ok, finally got it working

Power adapter was causing the issue. Interesting is that old kernel 3.0.35 runs fine with the same adapter. But 3.10 reboot in a loop as soon as reaches this stage:

[....] Waiting for /dev to be fully populated...

Replaced power adapter with high quality 5V/2A - and now all is up and running

Thanks!
Reply all
Reply to author
Forward
0 new messages