Hi, I am trying to build the kernel directly from big-LITTLE-MP-master-v14 (from http://git.linaro.org/gitweb?p=arm/big.LITTLE/mp.git%3Ba=summary). And the kernel built from it can't seem to detect SD card. Before I spent time on this, I'd like to know whether there is any known issues here, since I am pretty with the TC2 platform.
I have a TC2 with V5.0. I can get Android running with prebuilt Android image and kernel (With much help from Jon Medhurst). I then proceeded to replace the pthe kernel with a build from the big-LITTLE-MP-master-v14. I used the config file mentioned in linaro_kernel_build_cmds.sh (curl -q http://snapshots.linaro.org/android/~linaro-android/vexpress-linaro-mp-13.01... linaro_kernel_config). The build is successful, and I then replaced the /media/boot/uImage with the new uImage. But the boot failed to detect SD card and can't boot Android up.
From 13_01's release note," big-LITTLE-MP-master-v14 that has been used for the 13.01 evaluation build ", so why replacing the released kernel build with my build doesn't work? Maybe I am missing something here?
Eric Huang
On 14 February 2013 07:41, Eric Huang ericyh@marvell.com wrote:
Hi, I am trying to build the kernel directly from big-LITTLE-MP-master-v14 (from http://git.linaro.org/gitweb?p=arm/big.LITTLE/mp.git%3Ba=summary). And the kernel built from it can't seem to detect SD card. Before I spent time on this, I'd like to know whether there is any known issues here, since I am pretty with the TC2 platform.
I have a TC2 with V5.0. I can get Android running with prebuilt Android image and kernel (With much help from Jon Medhurst). I then proceeded to replace the pthe kernel with a build from the big-LITTLE-MP-master-v14. I used the config file mentioned in linaro_kernel_build_cmds.sh (curl -q http://snapshots.linaro.org/android/~linaro-android/vexpress-linaro-mp-13.01... linaro_kernel_config). The build is successful, and I then replaced the /media/boot/uImage with the new uImage. But the boot failed to detect SD card and can't boot Android up.
From 13_01's release note," big-LITTLE-MP-master-v14 that has been used for the 13.01 evaluation build ", so why replacing the released kernel build with my build doesn't work? Maybe I am missing something here?
big-LITTLE-MP-master-v* branches by itself doesn't contain any TC2 specific commits. Please use following branch instead, which always have latest big-LITTLE-MP-master-v* branches merged in.
http://git.linaro.org/gitweb?p=landing-teams/working/arm/kernel.git%3Ba=shor...
On Thu, 2013-02-14 at 08:07 +0530, Viresh Kumar wrote:
On 14 February 2013 07:41, Eric Huang ericyh@marvell.com wrote:
Hi, I am trying to build the kernel directly from big-LITTLE-MP-master-v14 (from http://git.linaro.org/gitweb?p=arm/big.LITTLE/mp.git%3Ba=summary). And the kernel built from it can't seem to detect SD card. Before I spent time on this, I'd like to know whether there is any known issues here, since I am pretty with the TC2 platform.
I have a TC2 with V5.0. I can get Android running with prebuilt Android image and kernel (With much help from Jon Medhurst). I then proceeded to replace the pthe kernel with a build from the big-LITTLE-MP-master-v14. I used the config file mentioned in linaro_kernel_build_cmds.sh (curl -q http://snapshots.linaro.org/android/~linaro-android/vexpress-linaro-mp-13.01... linaro_kernel_config). The build is successful, and I then replaced the /media/boot/uImage with the new uImage. But the boot failed to detect SD card and can't boot Android up.
From 13_01's release note," big-LITTLE-MP-master-v14 that has been used for the 13.01 evaluation build ", so why replacing the released kernel build with my build doesn't work? Maybe I am missing something here?
big-LITTLE-MP-master-v* branches by itself doesn't contain any TC2 specific commits. Please use following branch instead, which always have latest big-LITTLE-MP-master-v* branches merged in.
http://git.linaro.org/gitweb?p=landing-teams/working/arm/kernel.git%3Ba=shor...
Strictly speaking, people should use the same kernel branch that is used for the daily builds and the monthly releases. This is the 'linux-linaro' branch: http://git.linaro.org/gitweb?p=kernel/linux-linaro-tracking.git%3Ba=shortlog...
This can be a week or so behind the very latest code, so if you must be bang up-to-date then my integration-android-vexpress branch is probably the simplest place to get something that will compile and boot on TC2 without modification.
But the linux-linaro branch is the place where all Linaro's kernel work is merged and tested.
Thanks! I will start from the integration branch first and see how far I can go.
Another related question: where can I get the config file for the build? I know where to get for the release-build based on the kernel build script, but what procedure should I use to generate the script for a build that is not official release? I saw some links on Linaro website, but none of them work very well, I always get lots new config options need to manually set.
Eric H.
-----Original Message----- From: Jon Medhurst (Tixy) [mailto:tixy@linaro.org] Sent: Thursday, February 14, 2013 1:57 AM To: Viresh Kumar Cc: Eric Huang; linaro-android@lists.linaro.org Subject: Re: TC2 big-LITTLE-MP-master-v14 boot failed with 13_01 Android image
On Thu, 2013-02-14 at 08:07 +0530, Viresh Kumar wrote:
On 14 February 2013 07:41, Eric Huang ericyh@marvell.com wrote:
Hi, I am trying to build the kernel directly from big-LITTLE-MP-master-v14 (from http://git.linaro.org/gitweb?p=arm/big.LITTLE/mp.git%3Ba=summary). And the kernel built from it can't seem to detect SD card. Before I spent time on this, I'd like to know whether there is any known issues here, since I am pretty with the TC2 platform.
I have a TC2 with V5.0. I can get Android running with prebuilt Android image and kernel (With much help from Jon Medhurst). I then proceeded to replace the pthe kernel with a build from the big-LITTLE-MP-master-v14. I used the config file mentioned in linaro_kernel_build_cmds.sh (curl -q http://snapshots.linaro.org/android/~linaro-android/vexpress-linaro-mp-13.01... linaro_kernel_config). The build is successful, and I then replaced the /media/boot/uImage with the new uImage. But the boot failed to detect SD card and can't boot Android up.
From 13_01's release note," big-LITTLE-MP-master-v14 that has been used for the 13.01 evaluation build ", so why replacing the released kernel build with my build doesn't work? Maybe I am missing something here?
big-LITTLE-MP-master-v* branches by itself doesn't contain any TC2 specific commits. Please use following branch instead, which always have latest big-LITTLE-MP-master-v* branches merged in.
http://git.linaro.org/gitweb?p=landing-teams/working/arm/kernel.git%3Ba=shor...
Strictly speaking, people should use the same kernel branch that is used for the daily builds and the monthly releases. This is the 'linux-linaro' branch: http://git.linaro.org/gitweb?p=kernel/linux-linaro-tracking.git%3Ba=shortlog...
This can be a week or so behind the very latest code, so if you must be bang up-to-date then my integration-android-vexpress branch is probably the simplest place to get something that will compile and boot on TC2 without modification.
But the linux-linaro branch is the place where all Linaro's kernel work is merged and tested.
On 14 February 2013 21:44, Eric Huang ericyh@marvell.com wrote:
Thanks! I will start from the integration branch first and see how far I can go.
Another related question: where can I get the config file for the build? I know where to get for the release-build based on the kernel build script, but what procedure should I use to generate the script for a build that is not official release? I saw some links on Linaro website, but none of them work very well, I always get lots new config options need to manually set.
You need to do following to get .config:
scripts/kconfig/merge_config.sh linaro/configs/linaro-base.conf linaro/configs/big-LITTLE-MP.conf arch/arm/configs/vexpress_defconfig linaro/configs/ubuntu.conf
The last one is for ubuntu, use android.conf for android.
-- viresh
Viresh, Thanks! You guys are great!
Eric H.
-----Original Message----- From: Viresh Kumar [mailto:viresh.kumar@linaro.org] Sent: Thursday, February 14, 2013 9:23 AM To: Eric Huang Cc: Jon Medhurst (Tixy); linaro-android@lists.linaro.org Subject: Re: TC2 big-LITTLE-MP-master-v14 boot failed with 13_01 Android image
On 14 February 2013 21:44, Eric Huang ericyh@marvell.com wrote:
Thanks! I will start from the integration branch first and see how far I can go.
Another related question: where can I get the config file for the build? I know where to get for the release-build based on the kernel build script, but what procedure should I use to generate the script for a build that is not official release? I saw some links on Linaro website, but none of them work very well, I always get lots new config options need to manually set.
You need to do following to get .config:
scripts/kconfig/merge_config.sh linaro/configs/linaro-base.conf linaro/configs/big-LITTLE-MP.conf arch/arm/configs/vexpress_defconfig linaro/configs/ubuntu.conf
The last one is for ubuntu, use android.conf for android.
-- viresh
On Thu, 2013-02-14 at 08:14 -0800, Eric Huang wrote:
Another related question: where can I get the config file for the build?
The config is generated by the command:
ARCH=arm scripts/kconfig/merge_config.sh \ linaro/configs/linaro-base.conf \ linaro/configs/android.conf \ linaro/configs/big-LITTLE-MP.conf \ linaro/configs/vexpress.conf
Then
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- uImage dtbs
to get kernel and dtb files. You can use zImage rather than uImage, UEFI and other bootloaders will load that and that is what we are moving over to using now anyway.
Note we rename the dtb file in the image, so the TC2 dtb will be made as
arch/arm/boot/dts/vexpress-v2p-ca15-tc2.dtb
but we drop the 'vexpress-' bit and copy it to the boot partition as
v2p-ca15-tc2.dtb
Jon, Does changing to use zImaage require re-configuration of UEFI?
Eric
-----Original Message----- From: Jon Medhurst (Tixy) [mailto:tixy@linaro.org] Sent: Thursday, February 14, 2013 9:36 AM To: Eric Huang Cc: Viresh Kumar; linaro-android@lists.linaro.org Subject: Re: TC2 big-LITTLE-MP-master-v14 boot failed with 13_01 Android image
On Thu, 2013-02-14 at 08:14 -0800, Eric Huang wrote:
Another related question: where can I get the config file for the build?
The config is generated by the command:
ARCH=arm scripts/kconfig/merge_config.sh \ linaro/configs/linaro-base.conf \ linaro/configs/android.conf \ linaro/configs/big-LITTLE-MP.conf \ linaro/configs/vexpress.conf
Then
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- uImage dtbs
to get kernel and dtb files. You can use zImage rather than uImage, UEFI and other bootloaders will load that and that is what we are moving over to using now anyway.
Note we rename the dtb file in the image, so the TC2 dtb will be made as
arch/arm/boot/dts/vexpress-v2p-ca15-tc2.dtb
but we drop the 'vexpress-' bit and copy it to the boot partition as
v2p-ca15-tc2.dtb
On Thu, 2013-02-14 at 09:41 -0800, Eric Huang wrote:
Jon, Does changing to use zImaage require re-configuration of UEFI?
No, apart from telling UEFI to load the filename zImage rather than uImage. Also the ramdisk will loose it's U-Boot header and be called initrd instead of uInitrd.
At the moment, the daily builds are producing both sorts of files, and the coming 13.02 months release with also have both sorts. But I expect that after that we drop the old file types.
Jon /Viresh Not sure whether this is important. I tried the vexpress android integration branch. The build went Okay. But when I tried to boot for the first time, it stuck at UEFI stage with no error message after it counts down to 1 to boot. Reset the board and reboot again works.
I don't see the same issue with the Linaro kernel tracking code.
Eric
-----Original Message----- From: Jon Medhurst (Tixy) [mailto:tixy@linaro.org] Sent: Thursday, February 14, 2013 9:36 AM To: Eric Huang Cc: Viresh Kumar; linaro-android@lists.linaro.org Subject: Re: TC2 big-LITTLE-MP-master-v14 boot failed with 13_01 Android image
On Thu, 2013-02-14 at 08:14 -0800, Eric Huang wrote:
Another related question: where can I get the config file for the build?
The config is generated by the command:
ARCH=arm scripts/kconfig/merge_config.sh \ linaro/configs/linaro-base.conf \ linaro/configs/android.conf \ linaro/configs/big-LITTLE-MP.conf \ linaro/configs/vexpress.conf
Then
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- uImage dtbs
to get kernel and dtb files. You can use zImage rather than uImage, UEFI and other bootloaders will load that and that is what we are moving over to using now anyway.
Note we rename the dtb file in the image, so the TC2 dtb will be made as
arch/arm/boot/dts/vexpress-v2p-ca15-tc2.dtb
but we drop the 'vexpress-' bit and copy it to the boot partition as
v2p-ca15-tc2.dtb
On Thu, 2013-02-14 at 12:47 -0800, Eric Huang wrote:
Jon /Viresh Not sure whether this is important. I tried the vexpress android integration branch. The build went Okay. But when I tried to boot for the first time, it stuck at UEFI stage with no error message after it counts down to 1 to boot. Reset the board and reboot again works.
That's a little odd, not sure what is going on there. I always test my integration branch before pushing it out, though I must confess, I use ARM's bootloader rather than UEFI to boot. I'll give UEFI a try when I get time and see if I can reproduce the problem.
linaro-android@lists.linaro.org