[opensuse-arm] Origen board with openSUSE 13.1
Hi, I buit an image for the origen board with kernel-exynos-3.11.6-2.1.armv7hl u-boot-origen-2013.04-3.1.7.armv7hl on boot I get the following information: ------------snip---------- U-Boot 2013.04 (Oct 21 2013 - 22:37:12) for ORIGEN CPU: Exynos4210@1000MHz Board: ORIGEN DRAM: 1 GiB WARNING: Caches not enabled MMC: SAMSUNG SDHCI: 0 *** Warning - bad CRC, using default environment In: serial Out: serial Err: serial Hit any key to stop autoboot: 0 SD/MMC found on device 0 ** File not found uEnv.txt ** 530 bytes read in 93 ms (4.9 KiB/s) Running bootscript from mmc0 ... ## Executing script at 40007000 kerneladdr=0x40007000 ramdiskaddr=0x48000000 4499464 bytes read in 2342 ms (1.8 MiB/s) 62562551 bytes read in 31087 ms (1.9 MiB/s) ## Booting kernel from Legacy Image at 40007000 ... Image Name: Linux-3.11.6-2-exynos Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 4499400 Bytes = 4.3 MiB Load Address: 40008000 Entry Point: 40008000 Verifying Checksum ... OK ## Loading init Ramdisk from Legacy Image at 48000000 ... Image Name: Initrd Image Type: ARM Linux RAMDisk Image (uncompressed) Data Size: 62562487 Bytes = 59.7 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Loading Kernel Image ... OK OK Starting kernel ... Uncompressing Linux... done, booting the kernel. Error: unrecognized/unsupported machine ID (r1 = 0x00000d7f). Available machine support: ID (hex) NAME ffffffff Samsung Exynos4 (Flattened Device Tree) ffffffff SAMSUNG EXYNOS5 (Flattened Device Tree) Please check your kernel config and/or bootloader. ---------snap------- Anything I did wrong here ? Thanks Regards, Marcus -- Public Key available gpg --keyserver pgp.mit.edu --recv-keys 0xCCE3C6A2 ------------------------------------------------------- Marcus Schäfer (Res. & Dev.) SUSE LINUX Products GmbH Tel: 0911-740 53 0 Maxfeldstrasse 5 FAX: 0911-740 53 479 D-90409 Nürnberg GF: Jeff Hawn,Jennifer Guild, Felix Imendörffer HRB: 21284 (AG Nürnberg) Germany http://www.suse.de ------------------------------------------------------- -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
Le 30/10/2013 17:19, Marcus Schäfer a écrit :
Hi,
I buit an image for the origen board with
kernel-exynos-3.11.6-2.1.armv7hl u-boot-origen-2013.04-3.1.7.armv7hl
on boot I get the following information:
------------snip----------
U-Boot 2013.04 (Oct 21 2013 - 22:37:12) for ORIGEN
CPU: Exynos4210@1000MHz
Board: ORIGEN DRAM: 1 GiB WARNING: Caches not enabled MMC: SAMSUNG SDHCI: 0 *** Warning - bad CRC, using default environment
In: serial Out: serial Err: serial Hit any key to stop autoboot: 0 SD/MMC found on device 0 ** File not found uEnv.txt ** 530 bytes read in 93 ms (4.9 KiB/s) Running bootscript from mmc0 ... ## Executing script at 40007000 kerneladdr=0x40007000 ramdiskaddr=0x48000000 4499464 bytes read in 2342 ms (1.8 MiB/s) 62562551 bytes read in 31087 ms (1.9 MiB/s)
## Booting kernel from Legacy Image at 40007000 ... Image Name: Linux-3.11.6-2-exynos Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 4499400 Bytes = 4.3 MiB Load Address: 40008000 Entry Point: 40008000 Verifying Checksum ... OK ## Loading init Ramdisk from Legacy Image at 48000000 ... Image Name: Initrd Image Type: ARM Linux RAMDisk Image (uncompressed) Data Size: 62562487 Bytes = 59.7 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Loading Kernel Image ... OK OK
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
Error: unrecognized/unsupported machine ID (r1 = 0x00000d7f).
Available machine support:
ID (hex) NAME ffffffff Samsung Exynos4 (Flattened Device Tree) ffffffff SAMSUNG EXYNOS5 (Flattened Device Tree)
Please check your kernel config and/or bootloader. ---------snap-------
Anything I did wrong here ?
You should provide a DTB (device tree blob) to the kernel so that the kernel identify which board it is running on. Previously Linux kernel had board descriptions built-in, so no DTB were used. Guillaume
Thanks
Regards, Marcus
-- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
Hi,
Anything I did wrong here ?
You should provide a DTB (device tree blob) to the kernel so that the kernel identify which board it is running on. Previously Linux kernel had board descriptions built-in, so no DTB were used.
I thought kernel-exynos is still a kernel without device tree thought the device tree information is used on kernel-default only ? anyway how can I do this ? former kernel-exynos at least knows about the board (from 12.3) Thanks Regards, Marcus -- Public Key available gpg --keyserver pgp.mit.edu --recv-keys 0xCCE3C6A2 ------------------------------------------------------- Marcus Schäfer (Res. & Dev.) SUSE LINUX Products GmbH Tel: 0911-740 53 0 Maxfeldstrasse 5 FAX: 0911-740 53 479 D-90409 Nürnberg GF: Jeff Hawn,Jennifer Guild, Felix Imendörffer HRB: 21284 (AG Nürnberg) Germany http://www.suse.de ------------------------------------------------------- -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
Le 30/10/2013 17:37, Marcus Schäfer a écrit :
Hi,
Anything I did wrong here ? You should provide a DTB (device tree blob) to the kernel so that the kernel identify which board it is running on. Previously Linux kernel had board descriptions built-in, so no DTB were used. I thought kernel-exynos is still a kernel without device tree thought the device tree information is used on kernel-default only ?
All ARM boards should move to Device Tree more or less quickly. Some boards can still be booted with or without DT with the same kernel (beagle and panda for example) and there are some boards where DT is mandatory such as chromebook, Arndaleboard and now origen.
anyway how can I do this ? former kernel-exynos at least knows about the board (from 12.3)
Yes, legacy board support seems to have been dropped with 13.1 kernel for exynos boards (including origen). So, we must add a dtb package for Origen, add it to the image, configure u-boot to use it, rebuild the image and boot it. :) If you do not know how to do that, I could have a look at it. Guillaume
Thanks
Regards, Marcus
-- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
Hi,
Yes, legacy board support seems to have been dropped with 13.1 kernel for exynos boards (including origen). So, we must add a dtb package for Origen, add it to the image, configure u-boot to use it, rebuild the image and boot it. :)
yay that sounds like a plan :)
If you do not know how to do that, I could have a look at it.
I'm willing to learn but I have no clue about device tree blobs If you have a free time slot it would be great if you can take a look at it but it's not an urgent thing for me, I just found out that 13.1 and Origen did not work. In order to keep the basic arm imaging working I have three boards on my desk, Panda, Origen, Efika. It would be nice to have those which we currently see as the most important ones in my collection, I guess Origen doesn't belong there ;) If you can explain how to start with creating a dtb it would be great so I can learn something which seems to become the default in the future Thanks Regards, Marcus -- Public Key available gpg --keyserver pgp.mit.edu --recv-keys 0xCCE3C6A2 ------------------------------------------------------- Marcus Schäfer (Res. & Dev.) SUSE LINUX Products GmbH Tel: 0911-740 53 0 Maxfeldstrasse 5 FAX: 0911-740 53 479 D-90409 Nürnberg GF: Jeff Hawn,Jennifer Guild, Felix Imendörffer HRB: 21284 (AG Nürnberg) Germany http://www.suse.de ------------------------------------------------------- -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
Le 31/10/2013 10:03, Marcus Schäfer a écrit :
Hi,
Yes, legacy board support seems to have been dropped with 13.1 kernel for exynos boards (including origen). So, we must add a dtb package for Origen, add it to the image, configure u-boot to use it, rebuild the image and boot it. :) yay that sounds like a plan :)
If you do not know how to do that, I could have a look at it. I'm willing to learn but I have no clue about device tree blobs
If you have a free time slot it would be great if you can take a look at it but it's not an urgent thing for me, I just found out that 13.1 and Origen did not work. In order to keep the basic arm imaging working I have three boards on my desk, Panda, Origen, Efika. It would be nice to have those which we currently see as the most important ones in my collection, I guess Origen doesn't belong there ;)
I have a beagleboard xM, a panda, an efika MX, an arndaleboard, a chromebook and some Raspberry Pi. ;) But no origen, so I cannot test it. Origen is a good board, and should be supported by openSUSE. So, thanks for testing it. Once 13.1 images are built, I will test them on my devices.
If you can explain how to start with creating a dtb it would be great so I can learn something which seems to become the default in the future
you can have a look at DTB for panda and beagle here: https://build.opensuse.org/package/show/Base:System/dtb-source It is a dtb-source package and then we have dtb-omap4-panda and dtb-omap3-beagle packages which link to this package. Similar to what is done for ARM images. We should import dtb-source in 13.1:Ports and extend it to support origen. The main steps to compile a DTB (device tree blob) from DTS (device tree source) are: * DTS files are in linux sources in arch/arm/boot/dts folder * preprocess DTS files with CPP (to resolve #include lines) * compile DTS to DTB using dtc (device tree compiler) For origen, we need : exynos4210-origen.dts and exynos4412-origen.dts. So, edit "pre_checkin.pl" script (from dtb-source) to add Origen boards with above dts files. Run the script to generate files. Create dtb-exynos4-origen package which links to your modified dtb-source package. Hope it will help you. Guillaume
Thanks
Regards, Marcus
-- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
participants (2)
-
Guillaume Gardet
-
Marcus Schäfer