Skip to contentSkip to conversation

boot failure of exynos4 on 3.1.0-rc7

DISCUSSION Subash Patel 2 participants 4 messages Sep 28, 2011 Arm Samsung Exynos

lore
Share & tools
lore
#0 lore raw

Hello,

I am attempting to boot linux version in subject on SMDKV310 board[EVT0]. The booting stops after "Uncompressing Linux... done, booting the kernel." After some debugging I found that the timer initialization fails. exynos4_mct_frc_start() calls exynos4_mct_write(lo, EXYNOS4_MCT_G_CNT_L) which fails to write to the register, which should have asserted G-CNT_WSTAT[0] to 1. Hence panic() will be called which halts booting.

I have booted 3.0.0-rc1 before this, which used PWM. I found a related thread for C210, which I couldnt make head-tail out of it :(
http://www.spinics.net/lists/arm-kernel/msg140431.html

Can anyone let me know if this is known issue and if there is a solution available for this.

Regards,
Subash

#1 lore raw
Quoted 9 lines · Subash Patel

Hello,

I am attempting to boot linux version in subject on SMDKV310 board[EVT0]. The booting stops after "Uncompressing Linux... done, booting the kernel." After some debugging I found that the timer initialization fails. exynos4_mct_frc_start() calls exynos4_mct_write(lo, EXYNOS4_MCT_G_CNT_L) which fails to write to the register, which should have asserted G-CNT_WSTAT[0] to 1. Hence panic() will be called which halts booting.

Quoted 6 lines

I have booted 3.0.0-rc1 before this, which used PWM. I found a related thread for C210, which I couldnt make head-tail out of it :(
http://www.spinics.net/lists/arm-kernel/msg140431.html

Can anyone let me know if this is known issue and if there is a solution available for this.

Need to wait for sched_clock patch are merged. Before that, you need a workaround patch as universal_c210 does.
Note that de-select the MCT timer since EVT0 doesn't have it.

Thank you,
Kyungmin Park

Quoted 9 lines

Regards,
Subash
--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

#2 lore raw
Quoted 14 lines · Kyungmin Park
Quoted 13 lines · Subash Patel

Hello,

I am attempting to boot linux version in subject on SMDKV310 board[EVT0]. The booting stops after "Uncompressing Linux... done, booting the kernel." After some debugging I found that the timer initialization fails. exynos4_mct_frc_start() calls exynos4_mct_write(lo, EXYNOS4_MCT_G_CNT_L) which fails to write to the register, which should have asserted G-CNT_WSTAT[0] to 1. Hence panic() will be called which halts booting.

I have booted 3.0.0-rc1 before this, which used PWM. I found a related thread for C210, which I couldnt make head-tail out of it :(
http://www.spinics.net/lists/arm-kernel/msg140431.html

Quoted 5 lines
Quoted 2 lines

Can anyone let me know if this is known issue and if there is a solution available for this.

Need to wait for sched_clock patch are merged. Before that, you need a workaround patch as universal_c210 does.
Note that de-select the MCT timer since EVT0 doesn't have it.

This code is available in arch/arm/mach-exynos4/Kconfig

config EXYNOS4_MCT
bool
default y
help
Use MCT (Multi Core Timer) as kernel timers

Which I think is wrong, if EVT0 doesnt have the hardware. It should have had condition to check the silicon revision isn't it?

Regards,
Subash

Quoted 12 lines

Thank you,
Kyungmin Park

Quoted 9 lines

Regards,
Subash
--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw
Quoted 27 lines · Subash Patel
Quoted 17 lines · Kyungmin Park
Quoted 15 lines · Subash Patel

Hello,

I am attempting to boot linux version in subject on SMDKV310 board[EVT0]. The booting stops after "Uncompressing Linux... done, booting the kernel."
After some debugging I found that the timer initialization fails. exynos4_mct_frc_start() calls exynos4_mct_write(lo, EXYNOS4_MCT_G_CNT_L) which fails to write to the register, which should have asserted G-CNT_WSTAT[0] to 1. Hence panic() will be called which halts booting.

I have booted 3.0.0-rc1 before this, which used PWM. I found a related thread for C210, which I couldnt make head-tail out of it :(
http://www.spinics.net/lists/arm-kernel/msg140431.html

Quoted 6 lines
Quoted 2 lines

Can anyone let me know if this is known issue and if there is a solution available for this.

Need to wait for sched_clock patch are merged. Before that, you need a workaround patch as universal_c210 does.
Note that de-select the MCT timer since EVT0 doesn't have it.

This code is available in arch/arm/mach-exynos4/Kconfig

Quoted 8 lines

config EXYNOS4_MCT
       bool
       default y
       help
         Use MCT (Multi Core Timer) as kernel timers

Which I think is wrong, if EVT0 doesnt have the hardware. It should have had condition to check the silicon revision isn't it?

now soc_is_* is possible for next branch, but not exist the evt0 or evt1 check. Of course it needed for evt0 based board.

Thank you,
Kyungmin Park

Quoted 24 lines

Regards,
Subash

Quoted 13 lines

Thank you,
Kyungmin Park

Quoted 10 lines

Regards,
Subash
--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc"
in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html