US President Barack Obama, wrapping up a trip to Kenya, has told Kenyans that there is "no limit to what you can achieve" but said they had to deepen democracy, tackle corruption and end exclusion based on gender or ethnicity.
Obama addressed an audience of several thousand packed into an indoor arena in Nairobi on Sunday, before heading to Ethiopia, the second stop on his East Africa tour.
Obama, whose father was born and died in Kenya, talked of his own experience and Kenya's in the five decades since independence.
"I'm here as president of a country that sees Kenya as an important partner. I'm here as a friend who wants Kenya to succeed," he said, after being introduced by his sister Auma Obama to a crowd which had secured tickets to attend.
Meeting Obama's grandmother in family's Kenyan homeland
To a mixture of applause and laughter, Obama described being picked up at the airport on his first visit to Kenya in the 1980s by his sister in an old VW Beetle that often broke down.
This time, he arrived on Air Force One and travelled in the president's armoured car nicknamed The Beast.
"When it comes to the people of Kenya, particularly the youth, I believe there is no limit to what you can achieve," he said.
He told Kenyans building their nation and the economy required personal effort and responsibility.
Corruption and violence
On corruption, an issue often blamed for holding back investment, Obama said money spent on bribes would be better paid to someone "doing an honest day's work".
Referring to ethnic fighting in which 1,200 people died after a disputed 2007 election, he told Kenyans that politics based on ethnicity was "doomed to tear a country apart".
He also warned Kenya would "not succeed if it treats women and girls as second-class citizens".
On Sunday, Obama left Nairobi for the Ethiopian capital Addis Ababa.
While Obama was greeted by cheering crowds in Kenya, Ethiopians have shown little enthusiasm over his upcoming visit.
Ethiopia's government won 100 percent of parliamentary seats in a recent disputed election.
Rights groups have called on Obama to publicly meet democracy activists on the ground and have launched a hashtag on Twitter, #EthiopiansMessageToObama, posting pictures of torture and allegations of abuses.
Al Jazeera's Mohammed Adow, reporting from Addis Ababa, said Obama is expected to put pressure on authorities to reform and tackle their dismal human rights record.
Uhuru Kenyatta: Gay rights is a non-issue for Kenya
"Authorities will in turn be eager to deflect attention towardsthe country’s record of growth and poverty reduction as well as increased security cooperation with the United States," he said.
Obama planned meetings with the president and prime minister in the capital, Addis Ababa.
He will also speak to the continent from the headquarters of the African Union, which plays a role in peacekeeping and security on the continent.
It will be the first time an American president addresses the AU.
Source: Al Jazeera and agencies