* [Buildroot] [PATCH 1/1] configs/udoo_quad_defconfig: new defconfig
@ 2015-01-17 22:18 Ivo Slanina
2015-01-17 22:32 ` Baruch Siach
2015-02-02 17:38 ` Thomas De Schampheleire
0 siblings, 2 replies; 8+ messages in thread
From: Ivo Slanina @ 2015-01-17 22:18 UTC (permalink / raw)
To: buildroot
Added defconfig for UDOO Quad board. Used official kernel 3.0.35.
Kernel is patched in order to use gcc version 4.8 and above,
according to mailing list at
https://lists.yoctoproject.org/pipermail/meta-freescale/2013-July/003531.html
Bootloader is also downloaded from official repository.
Signed-off-by: Ivo Slanina <ivo.slanina@gmail.com>
---
configs/udoo_quad_defconfig | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
create mode 100644 configs/udoo_quad_defconfig
diff --git a/configs/udoo_quad_defconfig b/configs/udoo_quad_defconfig
new file mode 100644
index 0000000..32e9a61
--- /dev/null
+++ b/configs/udoo_quad_defconfig
@@ -0,0 +1,25 @@
+BR2_arm=y
+BR2_cortex_a9=y
+BR2_ARM_EABIHF=y
+BR2_ARM_FPU_VFPV3=y
+BR2_KERNEL_HEADERS_VERSION=y
+BR2_DEFAULT_KERNEL_VERSION="3.0.35"
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_0=y
+BR2_TOOLCHAIN_BUILDROOT_GLIBC=y
+BR2_TOOLCHAIN_BUILDROOT_CXX=y
+BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y
+BR2_TARGET_GENERIC_GETTY_PORT="ttymxc1"
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_GIT=y
+BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://github.com/UDOOboard/Kernel_Unico"
+BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="master"
+BR2_LINUX_KERNEL_PATCH="https://github.com/torvalds/linux/commit/455bd4c430b0c0a361f38e8658a0d6cb469942b5.patch https://github.com/torvalds/linux/commit/418df63adac56841ef6b0f1fcf435bc64d4ed177.patch"
+BR2_LINUX_KERNEL_DEFCONFIG="UDOO"
+BR2_LINUX_KERNEL_UIMAGE_LOADADDR="0x10008000"
+BR2_LINUX_KERNEL_INSTALL_TARGET=y
+BR2_TARGET_UBOOT=y
+BR2_TARGET_UBOOT_BOARDNAME="udoo_quad"
+BR2_TARGET_UBOOT_CUSTOM_GIT=y
+BR2_TARGET_UBOOT_CUSTOM_REPO_URL="https://github.com/UDOOboard/U-Boot_Unico-2013"
+BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="master"
+BR2_TARGET_UBOOT_FORMAT_IMX=y
--
1.7.10.4
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH 1/1] configs/udoo_quad_defconfig: new defconfig
2015-01-17 22:18 [Buildroot] [PATCH 1/1] configs/udoo_quad_defconfig: new defconfig Ivo Slanina
@ 2015-01-17 22:32 ` Baruch Siach
2015-01-18 12:36 ` Ivo Slanina
2015-01-18 16:38 ` Thomas Petazzoni
2015-02-02 17:38 ` Thomas De Schampheleire
1 sibling, 2 replies; 8+ messages in thread
From: Baruch Siach @ 2015-01-17 22:32 UTC (permalink / raw)
To: buildroot
Hi Ivo,
On Sat, Jan 17, 2015 at 11:18:32PM +0100, Ivo Slanina wrote:
> Added defconfig for UDOO Quad board. Used official kernel 3.0.35.
> Kernel is patched in order to use gcc version 4.8 and above,
> according to mailing list at
> https://lists.yoctoproject.org/pipermail/meta-freescale/2013-July/003531.html
Why can't you use mainline kernel for this board?
baruch
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH 1/1] configs/udoo_quad_defconfig: new defconfig
2015-01-17 22:32 ` Baruch Siach
@ 2015-01-18 12:36 ` Ivo Slanina
2015-01-18 13:10 ` Baruch Siach
2015-01-18 16:38 ` Thomas Petazzoni
1 sibling, 1 reply; 8+ messages in thread
From: Ivo Slanina @ 2015-01-18 12:36 UTC (permalink / raw)
To: buildroot
Hi baruch,
On 01/17/2015 11:32 PM, Baruch Siach wrote:
> Hi Ivo,
>
> On Sat, Jan 17, 2015 at 11:18:32PM +0100, Ivo Slanina wrote:
>> Added defconfig for UDOO Quad board. Used official kernel 3.0.35.
>> Kernel is patched in order to use gcc version 4.8 and above,
>> according to mailing list at
>> https://lists.yoctoproject.org/pipermail/meta-freescale/2013-July/003531.html
>
> Why can't you use mainline kernel for this board?
>
> baruch
>
I tried to used mainline kernel, but board doesn't boot up. I get only
following output:
U-Boot 2013.10-rc3 (Jan 18 2015 - 12:03:56)
CPU: Freescale i.MX6Q rev1.2 at 792 MHz
Reset cause: POR
Board: UDOO
DRAM: 1 GiB
MMC: FSL_SDHC: 0
*** Warning - bad CRC, using default environment
No panel detected: default to LDB-WVGA
Display: LDB-WVGA (800x480)
In: serial
Out: serial
Err: serial
Net: using phy at 6
FEC [PRIME]
Hit any key to stop autoboot: 0
mmc0 is current device
** File not found boot.scr **
5489632 bytes read in 391 ms (13.4 MiB/s)
Booting from mmc ...
** File not found imx6q-udoo.dtb **
## Booting kernel from Legacy Image at 12000000 ...
Image Name: Linux-3.18.3
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 5489568 Bytes = 5.2 MiB
Load Address: 10008000
Entry Point: 10008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
Starting kernel ...
After this, board stuck. I also encountered this issue with another
i.MX6 based board but I didn't fix that yet. Kernel from UDOO
repository works fine.
I'm new in embedded Linux development. I still have a lot to learn,
so I would be grateful if someone points me to how to use mainline kernel.
Regards,
Ivo Slanina
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH 1/1] configs/udoo_quad_defconfig: new defconfig
2015-01-18 12:36 ` Ivo Slanina
@ 2015-01-18 13:10 ` Baruch Siach
2015-01-20 8:03 ` Ivo Slanina
0 siblings, 1 reply; 8+ messages in thread
From: Baruch Siach @ 2015-01-18 13:10 UTC (permalink / raw)
To: buildroot
Hi Ivo,
On Sun, Jan 18, 2015 at 01:36:27PM +0100, Ivo Slanina wrote:
> On 01/17/2015 11:32 PM, Baruch Siach wrote:
> >Why can't you use mainline kernel for this board?
>
> I tried to used mainline kernel, but board doesn't boot up. I get only
> following output:
>
> U-Boot 2013.10-rc3 (Jan 18 2015 - 12:03:56)
>
> CPU: Freescale i.MX6Q rev1.2 at 792 MHz
> Reset cause: POR
> Board: UDOO
> DRAM: 1 GiB
> MMC: FSL_SDHC: 0
> *** Warning - bad CRC, using default environment
>
> No panel detected: default to LDB-WVGA
> Display: LDB-WVGA (800x480)
> In: serial
> Out: serial
> Err: serial
> Net: using phy at 6
> FEC [PRIME]
> Hit any key to stop autoboot: 0
> mmc0 is current device
> ** File not found boot.scr **
> 5489632 bytes read in 391 ms (13.4 MiB/s)
> Booting from mmc ...
> ** File not found imx6q-udoo.dtb **
Here is a clue. You can generate imx6q-udoo.dtb from the Linux sources by
enabling CONFIG_ARCH_MXC, and running
make dtbs
Then copy arch/arm/boot/dts/imx6q-udoo.dtb to your MMC partition.
> ## Booting kernel from Legacy Image at 12000000 ...
> Image Name: Linux-3.18.3
> Image Type: ARM Linux Kernel Image (uncompressed)
> Data Size: 5489568 Bytes = 5.2 MiB
> Load Address: 10008000
> Entry Point: 10008000
> Verifying Checksum ... OK
> Loading Kernel Image ... OK
>
> Starting kernel ...
>
> After this, board stuck. I also encountered this issue with another
> i.MX6 based board but I didn't fix that yet. Kernel from UDOO
> repository works fine.
>
> I'm new in embedded Linux development. I still have a lot to learn,
> so I would be grateful if someone points me to how to use mainline kernel.
Hope this helps.
baruch
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH 1/1] configs/udoo_quad_defconfig: new defconfig
2015-01-17 22:32 ` Baruch Siach
2015-01-18 12:36 ` Ivo Slanina
@ 2015-01-18 16:38 ` Thomas Petazzoni
1 sibling, 0 replies; 8+ messages in thread
From: Thomas Petazzoni @ 2015-01-18 16:38 UTC (permalink / raw)
To: buildroot
Dear Baruch Siach,
On Sun, 18 Jan 2015 00:32:46 +0200, Baruch Siach wrote:
> Hi Ivo,
>
> On Sat, Jan 17, 2015 at 11:18:32PM +0100, Ivo Slanina wrote:
> > Added defconfig for UDOO Quad board. Used official kernel 3.0.35.
> > Kernel is patched in order to use gcc version 4.8 and above,
> > according to mailing list at
> > https://lists.yoctoproject.org/pipermail/meta-freescale/2013-July/003531.html
>
> Why can't you use mainline kernel for this board?
Well, on i.MX6, as far as know, you can't get OpenGL support with a
mainline kernel. So even though I definitely support and encourage
people to use mainline kernels, I believe for Buildroot defconfigs, it
sometimes makes sense to use the vendor kernel when it is absolutely
necessary to enable certain important features, like 3D acceleration.
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH 1/1] configs/udoo_quad_defconfig: new defconfig
2015-01-18 13:10 ` Baruch Siach
@ 2015-01-20 8:03 ` Ivo Slanina
2015-01-20 20:42 ` Baruch Siach
0 siblings, 1 reply; 8+ messages in thread
From: Ivo Slanina @ 2015-01-20 8:03 UTC (permalink / raw)
To: buildroot
Hello Baruch,
On 01/18/2015 02:10 PM, Baruch Siach wrote:
> On Sun, Jan 18, 2015 at 01:36:27PM +0100, Ivo Slanina wrote:
>> On 01/17/2015 11:32 PM, Baruch Siach wrote:
>>> Why can't you use mainline kernel for this board?
>>
>> I tried to used mainline kernel, but board doesn't boot up. I get only
>> following output:
>>
>> U-Boot 2013.10-rc3 (Jan 18 2015 - 12:03:56)
>>
>> CPU: Freescale i.MX6Q rev1.2 at 792 MHz
>> Reset cause: POR
>> Board: UDOO
>> DRAM: 1 GiB
>> MMC: FSL_SDHC: 0
>> *** Warning - bad CRC, using default environment
>>
>> No panel detected: default to LDB-WVGA
>> Display: LDB-WVGA (800x480)
>> In: serial
>> Out: serial
>> Err: serial
>> Net: using phy at 6
>> FEC [PRIME]
>> Hit any key to stop autoboot: 0
>> mmc0 is current device
>> ** File not found boot.scr **
>> 5489632 bytes read in 391 ms (13.4 MiB/s)
>> Booting from mmc ...
>> ** File not found imx6q-udoo.dtb **
>
> Here is a clue. You can generate imx6q-udoo.dtb from the Linux sources by
> enabling CONFIG_ARCH_MXC, and running
>
> make dtbs
>
> Then copy arch/arm/boot/dts/imx6q-udoo.dtb to your MMC partition.
>
>> ## Booting kernel from Legacy Image at 12000000 ...
>> Image Name: Linux-3.18.3
>> Image Type: ARM Linux Kernel Image (uncompressed)
>> Data Size: 5489568 Bytes = 5.2 MiB
>> Load Address: 10008000
>> Entry Point: 10008000
>> Verifying Checksum ... OK
>> Loading Kernel Image ... OK
>>
>> Starting kernel ...
>>
>> After this, board stuck. I also encountered this issue with another
>> i.MX6 based board but I didn't fix that yet. Kernel from UDOO
>> repository works fine.
>>
>> I'm new in embedded Linux development. I still have a lot to learn,
>> so I would be grateful if someone points me to how to use mainline kernel.
>
> Hope this helps.
>
> baruch
>
Thanks for help, I didn't notice device tree source file for UDOO in Linux sources.
But after copying .dtb file into SD card, board still doesn't boot up.
Here is output, what I get:
U-Boot 2013.10-rc3 (Jan 18 2015 - 17:53:27)
CPU: Freescale i.MX6Q rev1.2 at 792 MHz
Reset cause: POR
Board: UDOO
DRAM: 1 GiB
MMC: FSL_SDHC: 0
*** Warning - bad CRC, using default environment
No panel detected: default to LDB-WVGA
Display: LDB-WVGA (800x480)
In: serial
Out: serial
Err: serial
Net: using phy at 6
FEC [PRIME]
Hit any key to stop autoboot: 0
mmc0 is current device
** File not found boot.scr **
5489632 bytes read in 361 ms (14.5 MiB/s)
Booting from mmc ...
27547 bytes read in 129 ms (208 KiB/s)
## Booting kernel from Legacy Image at 12000000 ...
Image Name: Linux-3.18.3
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 5489568 Bytes = 5.2 MiB
Load Address: 10008000
Entry Point: 10008000
Verifying Checksum ... OK
## Flattened Device Tree blob at 11000000
Booting using the fdt blob at 0x11000000
Loading Kernel Image ... OK
Using Device Tree in place at 11000000, end 11009b9a
Starting kernel ...
It seems to be some trivial problem to me, but I can't fix this by myself.
I not really understand uImage load address. I know that at 0x1000000 address
starts MMC zone, but I'm not sure what is 0x8000 offset from that address.
I took the value from freescale_imx6qsabresd_defconfig.
Please, can you give me some other clue?
Thanks,
Ivo Slanina
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH 1/1] configs/udoo_quad_defconfig: new defconfig
2015-01-20 8:03 ` Ivo Slanina
@ 2015-01-20 20:42 ` Baruch Siach
0 siblings, 0 replies; 8+ messages in thread
From: Baruch Siach @ 2015-01-20 20:42 UTC (permalink / raw)
To: buildroot
Hi Ivo,
On Tue, Jan 20, 2015 at 09:03:16AM +0100, Ivo Slanina wrote:
> Thanks for help, I didn't notice device tree source file for UDOO in Linux
> sources.
> But after copying .dtb file into SD card, board still doesn't boot up.
>
> Here is output, what I get:
>
> U-Boot 2013.10-rc3 (Jan 18 2015 - 17:53:27)
>
> CPU: Freescale i.MX6Q rev1.2 at 792 MHz
> Reset cause: POR
> Board: UDOO
> DRAM: 1 GiB
> MMC: FSL_SDHC: 0
> *** Warning - bad CRC, using default environment
>
> No panel detected: default to LDB-WVGA
> Display: LDB-WVGA (800x480)
> In: serial
> Out: serial
> Err: serial
> Net: using phy at 6
> FEC [PRIME]
> Hit any key to stop autoboot: 0
> mmc0 is current device
> ** File not found boot.scr **
> 5489632 bytes read in 361 ms (14.5 MiB/s)
> Booting from mmc ...
> 27547 bytes read in 129 ms (208 KiB/s)
> ## Booting kernel from Legacy Image at 12000000 ...
> Image Name: Linux-3.18.3
> Image Type: ARM Linux Kernel Image (uncompressed)
> Data Size: 5489568 Bytes = 5.2 MiB
> Load Address: 10008000
> Entry Point: 10008000
> Verifying Checksum ... OK
> ## Flattened Device Tree blob at 11000000
> Booting using the fdt blob at 0x11000000
> Loading Kernel Image ... OK
> Using Device Tree in place at 11000000, end 11009b9a
>
> Starting kernel ...
>
> It seems to be some trivial problem to me, but I can't fix this by myself.
> I not really understand uImage load address. I know that at 0x1000000 address
> starts MMC zone, but I'm not sure what is 0x8000 offset from that address.
> I took the value from freescale_imx6qsabresd_defconfig.
>
> Please, can you give me some other clue?
This is really quite off topic for this list. I agree with Thomas that if
mainline kernel does not work for you for whatever reason, then you should
stick with a kernel that works. Yet I think that the reason for choosing
something other then mainline kernel should at least appear in the commit log.
That is the reason I asked you about it.
I will only say that your next debugging step is called "earlyprintk". See the
links below for some more details.
http://nishanthmenon.blogspot.co.il/2010/09/my-kernel-doesnt-boot-magic-of.html
http://nothingtechnicalaboutit.blogspot.co.il/2012/02/linux-early-boot-debug.html
If you have any further questions on kernel bring-up, please direct them to
the linux-arm-kernel mailing list
(http://lists.infradead.org/mailman/listinfo/linux-arm-kernel).
baruch
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH 1/1] configs/udoo_quad_defconfig: new defconfig
2015-01-17 22:18 [Buildroot] [PATCH 1/1] configs/udoo_quad_defconfig: new defconfig Ivo Slanina
2015-01-17 22:32 ` Baruch Siach
@ 2015-02-02 17:38 ` Thomas De Schampheleire
1 sibling, 0 replies; 8+ messages in thread
From: Thomas De Schampheleire @ 2015-02-02 17:38 UTC (permalink / raw)
To: buildroot
Hi Ivo,
On Sat, Jan 17, 2015 at 11:18 PM, Ivo Slanina <ivo.slanina@gmail.com> wrote:
> Added defconfig for UDOO Quad board. Used official kernel 3.0.35.
> Kernel is patched in order to use gcc version 4.8 and above,
> according to mailing list at
> https://lists.yoctoproject.org/pipermail/meta-freescale/2013-July/003531.html
>
> Bootloader is also downloaded from official repository.
>
> Signed-off-by: Ivo Slanina <ivo.slanina@gmail.com>
> ---
> configs/udoo_quad_defconfig | 25 +++++++++++++++++++++++++
> 1 file changed, 25 insertions(+)
> create mode 100644 configs/udoo_quad_defconfig
Thanks for your contribution!
I resubmitted your patch with two minor changes: use explicit commit
numbers instead of a branch name like 'master'.
Best regards,
Thomas
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2015-02-02 17:38 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-17 22:18 [Buildroot] [PATCH 1/1] configs/udoo_quad_defconfig: new defconfig Ivo Slanina
2015-01-17 22:32 ` Baruch Siach
2015-01-18 12:36 ` Ivo Slanina
2015-01-18 13:10 ` Baruch Siach
2015-01-20 8:03 ` Ivo Slanina
2015-01-20 20:42 ` Baruch Siach
2015-01-18 16:38 ` Thomas Petazzoni
2015-02-02 17:38 ` Thomas De Schampheleire
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox