Monday, June 21, 2010

Others failure on porting android

http://www.mail-archive.com/android-porting@googlegroups.com/msg05626.html


Hi guys,
I am porting Android to AT91sam9261,however, I failed.
I share my porting process in here, and eager to obtain your
suggestions.
-------------------------------
My development environment:
* Fedora-9 full install
* arm-none-linux-gnueabi-gcc (arm-2008q1)
* u-boot-1.3.4, and official bootstrap file (from www.linux4sam.org)
--------------------------------
My porting steps:
1. download android source codes linux-2.6.25-android-1.0_r1.tar.gz
from http://code.google.com/p/android/downloads/list

2. download linux-2.6.25-at91 patch file from (
http://www.linux4sam.org/twiki/bin/view/Linux4SAM/LinuxKernel )

3. Compile the Android Kernel,
This step is successful and working on my at91sam9261ek.

4. Prepare Android file system, I got these information from Google.
Download the Android 1.0 SDK ( from
http://developer.android.com/sdk/1.0_r2/index.html
)
and execute this emulator.
#./emulator&
set the [Menu] -> [Dev. Tools] -> [Develop Settings] ->
apply these functions : [Wait for debugger], [Show running process],
[Show screen updates]
Then, following the Benno's Blog - Busybox for android (
http://benno.id.au/blog/2007/11/14/android-busybox )
Operating on Fedora terminal, I successfully generated the android
file system based on Benno's blog.

5. Boot my at91sam9261ek with NFS after setting the u-boot env. and
downloading the kernel,
However, it's not working.

When I set the u-boot env. parameter "init=/init", the boot message
was shown that
========
Starting kernel ...
Uncompressing
Linux...............................................................................................
done, booting the kernel.
Linux version 2.6.25-at91sam9261ek-android-20090624
(r...@localhost.localdomain)
(gcc version 4.2.3 (Sourcery G++ Lite 2008q1-126)) #6 Wed Jun 24
16:04:34 CST 2
009
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
Machine: Atmel AT91SAM9261-EK
Ignoring unrecognised tag 0x54410008
Memory policy: ECC disabled, Data cache writeback
Clocks: CPU 198 MHz, master 99 MHz, main 18.432 MHz
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
CPU0: D cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
Built 1 zonelists in Zone order, mobility grouping on. Total pages:
16256
Kernel command line: root=/dev/mtdblock3 mem=64M console=ttyS0,115200
init=/syst
em/bin/sh
AT91: 96 gpio irqs in 3 banks
PID hash table entries: 256 (order: 8, 1024 bytes)
Console: colour dummy device 80x30
console [ttyS0] enabled
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 61628KB available (2668K code, 423K data, 140K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 152 bytes
android_power_init
android_power_init done
NET: Registered protocol family 16
AT91: Power Management
AT91: Starting after user reset
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NetWinder Floating Point Emulator V0.97 (double precision)
JFFS2 version 2.2. (NAND) (SUMMARY) 穢 2001-2006 Red Hat, Inc.
yaffs Jun 24 2009 15:35:49 Installing.
io scheduler noop registered
io scheduler anticipatory registered (default)
atmel_lcdfb atmel_lcdfb.0: 160KiB frame buffer at 00300000 (mapped at
c4880000)
Console: switching to colour frame buffer device 30x40
atmel_lcdfb atmel_lcdfb.0: fb0: Atmel LCDC at 0x00600000 (mapped at
c485c000), i
rq 21
atmel_usart.0: ttyS0 at MMIO 0xfefff200 (irq = 1) is a ATMEL_SERIAL
brd: module loaded
loop: module loaded
ssc ssc.1: Atmel SSC device at 0xc4860000 (irq 15)
dm9000 Ethernet Driver, V1.30
eth0: dm9000 at c485e000,c4866044 IRQ 107 MAC: 00:1f:3a:22:c2:30
(chip)
Driver 'sd' needs updating - please use bus_type methods
NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB
3,3V 8-bi
t)
AT91 NAND: 8-bit, Software ECC
Scanning device for bad blocks
Bad eraseblock 256 at 0x02000000
Creating 4 MTD partitions on "at91_nand":
0x00020000-0x00060000 : "Bootstrap"
0x00060000-0x00200000 : "Parameters"
0x00200000-0x00400000 : "Kernel"
0x00400000-0x08000000 : "rootfs-1"
atmel_spi atmel_spi.0: Atmel SPI Controller at 0xfffc8000 (irq 12)
mtd_dataflash spi0.0: AT45DB321x (4224 KBytes)
usbmon: debugfs is not available
at91_ohci at91_ohci: AT91 OHCI
at91_ohci at91_ohci: new USB bus registered, assigned bus number 1
at91_ohci at91_ohci: irq 20, io mem 0x00500000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
udc: at91_udc version 3 May 2006
mice: PS/2 mouse device common for all mice
input: gpio-keys as /class/input/input0
ads7846 spi0.2: touchscreen, irq 29
input: ADS784x Touchscreen as /class/input/input1
rtc-at91sam9 at91_rtt.0: rtc core: registered at91_rtt as rtc0
rtc-at91sam9 at91_rtt.0: rtc0: SET TIME!
Registered led device: ds7
Registered led device: ds8
Registered led device: ds1
usbcore: registered new interface driver usbhid
drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
logger: created 64K log 'log_main'
logger: created 64K log 'log_events'
logger: created 64K log 'log_radio'
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
rtc-at91sam9 at91_rtt.0: hctosys: unable to read the hardware clock
yaffs: dev is 32505859 name is "mtdblock3"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.3, "mtdblock3"
yaffs: auto selecting yaffs2
block 225 is bad
VFS: Mounted root (yaffs filesystem).
Freeing init memory: 140K
init: cannot open '/initlogo.rle'
(Stop and die here)
====================

When I set the u-boot env. parameter "init=/system/bin/sh", the boot
message was shown that:

....... (the same boot message, ignored) .......
VFS: Mounted root (yaffs filesystem).
Freeing init memory: 140K
sh: can't access tty; job control turned off
#
#

The shell is working. But I still don't know how to run the Android.
Has anybody got ideas for this porting tasks?
Please share your experience if you succeed in porting to
at91sam9261ek?
Many thanks.

Android Porting Resources

Tuesday, June 15, 2010

Largest cities


Largest cities and their mayors in 2010 (1 to 150)
NB Metro population figures for China are often those of their prefectures
World rank
City
Country
City
population
Metro
population
Mayor
1
Karachi Pakistan
15,500,000
18,000,000
Syed Mustafa Kamal
2
ShanghaiChina
14,900,000
19,200,000
Han Zheng
3
Mumbai (Bombay)India
13,900,000
21,200,000
Shubha Raul
4
BEIJINGChina
12,460,000
17,550,000
Guo Jinlong
5
DELHI India
12,100,000
16,713,000
Kanwar Sain
6
BUENOS AIRESArgentina
11,655,000
12,924,000
Mauricio Macri
7
MANILA METROPhilippines
11,550,000
13,503,000
Alfredo S Lim
8
SEOULSouth Korea
11,153,000
24,472,000
Oh Se-hoon
9
Sao Paulo Brazil
11,038,000
19,890,000
Gilberto Kassab
10
MOSCOWRussia
10,524,000
14,800,000
Yury Luzhkov
11
JAKARTAIndonesia
10,100,000
24,100,000
Fauzi Bowo
12
IstanbulTurkey
9,560,000
12,600,000
Kadir Topbas
13
BANGKOK Thailand
9,100,000
11,970,000
Sukhumbhand Paribatra
14
MEXICO CITYMexico
8,841,000
21,163,000
Marcelo Ebrard
15
TOKYOJapan
8,653,000
31,036,000
Shintaro Ishihara
16
TEHRANIran
8,430,000
13,450,000
Mohammad Bagher Ghalibaf
17
New York City USA
8,364,000
20,090,000
Michael Bloomberg
18
KINSHASACongo D.R.
8,200,000
10,100,000
André Kimbuta Yango
19
DHAKABangladesh
7,940,000
12,797,000
Sadeque Hossain Khosa
20
Lagos Nigeria
7,938,000
9,123,000
21
CAIRO Egypt
7,764,000
15,546,000
Abdul Azim Wazir
22
LIMAPeru
7,606,000
8,473,000
Luis Castañeda Lossio
23
LONDONUK
7,557,000
12,200,000
Boris Johnson
24
TianjinChina
7,500,000
11,750,000
Huang Xingguo
25
BOGOTA Colombia
7,320,000
8,361,000
Samuel Moreno Rojas
26
Ho Chi Minh CityVietnam
7,100,000
Pham Phuong Thao
27
Hong KongChina
7,055,000
Donald Tsang
28
GuangzhouChina
6,458,000
10,182,000
Zhan Guangning
29
DongguanChina
6,446,000
7,650,000
Li Yuquan
30
LahorePakistan
6,100,000
8,600,000
Mian Amir Mahmood
31
Rio de Janeiro Brazil
6,093,000
14,387,000
Eduardo Paes
32
BaghdadIraq
6,050,000
6,500,000
33
BangaloreIndia
5,840,000
6,562,000
S Subramanya
34
SuratIndia
5,390,000
6,347,000
35
SANTIAGOChile
5,278,000
6,677,000
Pablo Zalaquett Said
36
KolkataIndia
5,100,000
15,420,000
Bikash Ranjan Bhattacharya
37
Shenyang China
5,090,000
7,760,000
Li Yingjie
38
ChongqingChina
5,087,000
9,700,000
Wang Hongju
39
SINGAPORESingapore
4,988,000
Lee Hsien Loong
40
RIYADHSaudi Arabia
4,950,000
5,855,000
Abdul Aziz ibn 'Ayyaf Al Migrin
41
LUANDA Angola
4,799,000
5,500,000
42
Harbin China
4,755,000
9,874,000
Zhang Xiaolian
43
St PetersburgRussia
4,661,000
4,900,000
Valentina Matviyenko
44
ChennaiIndia
4,600,000
7,330,000
M Subramaniam
45
AhmadabadIndia
4,525,000
6,168,000
Kanaji Thakor
46
Wuhan China
4,500,000
6,200,000
Ruan Chengfa
47
YangonMyanmar (Burma)
4,468,000
5.500,000
Aung Thein Lynn
48
SydneyAustralia
4,400,000
Clover Moore
49
ChengduChina
4,334,000
11,000,000
Ge Honglin
50
Shenzhen China
4,320,000
8,616,000
51
Nanjing China
4,150,000
7,600,000
Ji Jianye
52
AlexandriaEgypt
4,110,000
4,350,000
Adel Labib
53
JohannesburgSouth Africa
3,888,000
10,268,000
Amos Masondo
54
JeddahSaudi Arabia
3,856,000
4,500,000
Adil Faqeeh
55
Los Angeles USA
3,834,000
12,890,000
Antonio Villaraigosa
56
AbidjanIvory Coast
3,800,000
4,000,000
Pierre Djédji Amondji
57
ANKARATurkey
3,764,000
4,000,000
Melih Gökçek
58
CasablancaMorocco
3,673,000
3,850,000
Mohammed Sajid
59
Yokohama Japan
3,655,000
Fumiko Hayashi
60
HyderabadIndia
3,637,000
6,290,000
Banda Karthika Reddy
61
MelbourneAustralia
3,635,000
Robert Doyle
62
KanoNigeria
3,626,000
3,900,000
Ibrahim Shekarau
63
Busan South Korea
3,600,000
4,292,000
Hur Nam-sik
64
KABULAfghanistan
3,586,000
4,000,000
Mohammad Yunus Noandesh
65
ChangchunChina
3,581,000
7,460,000
66
Cape TownSouth Africa
3,497,000
7,280,000
Dan Plato
67
Guiyang China
3,450,000
68
BERLIN Germany
3,432,000
3,943,000
Klaus Wowereit
69
HangzhouChina
3,408,000
6,776,000
Cai Qi
70
ADDIS ABABAEthiopia
3,385,000
4,568,000
Kuma Demeksa
71
PuneIndia
3,337,000
4,470,000
Mohansingh Rajpa
72
PYONGYANG North Korea
3,255,000
3,400,000
73
MADRID Spain
3,213,000
5,300,000
Alberto Ruiz-Gallardón
74
NAIROBIKenya
3,130,000
3,300,000
Geoffrey Majiwa
75
KanpurIndia
3,100,000
4,865,000
Ravindra Patani
76
KunmingChina
3,100,000
6,800,000
Zhang Zulin
77
Surabaya Indonesia
3,100,000
3,700,000
Bambang D H
78
JaipurIndia
3,050,000
5,690,000
Jyoti Khandelwal
79
Salvador da BahiaBrazil
2,998,000
3,173,000
João Henrique Carneiro
80
SANTO DOMINGODominican Republic
2,989,000
3,813,000
Roberto Salcedo
81
Mashhad Iran
2,910,000
3,000,000
Mohammad Pejman
82
ChicagoUSA
2,853,000
8,770,000
Richard Daley
83
ZiboChina
2,850,000
4,200,000
Liu Huiyan
84
KIEVUkraine
2,820,000
3,300,000
Leonid Chernovetskyi
85
Durg India
2,810,000
86
Huludao China
2,787,000
Sun Zhaolin
87
CARACAS Venezuela
2,762,000
3,478,000
Antonio Ledezma
88
QingdaoChina
2,755,000
7,580,000
Xia Geng
89
ChangshaChina
2,744,000
6,140,000
Zhang Jiangfei
90
ROMEItaly
2,732,000
3,555,000
Gianni Alemanno
91
Fuzhou (Fujian) China
2,710,000
6,630,000
Yuan Rongxiang
92
Quezon CityPhilippines
2,680,000
Feliciano Belmonte
93
XianChina
2,670,000
4,480,000
Chen Baogen
94
Port HarcourtNigeria
2,667,000
3,761,000
Azubuike Nmerukini
95
OsakaJapan
2,647,000
17,590,000
Kunio Hiramatsu
96
Incheon South Korea
2,630,000
2,630,000
Ahn Sang-soo
97
ShijiazhuangChina
2,630,000
9,600,000
Ai Wenli
98
TAIPEITaiwan
2,620,000
6,753,000
Hau Lung-pin
99
ZhengzhouChina
2,600,000
4,510,000
Zhou Jiancai
100
Chittagong Bangladesh
2,580,000
3,858,000
Mohiuddin Ahmed Chowdhury
101
TorontoCanada
2,571,000
5,100,000
David Miller
102
IbadanNigeria
2,550,000
3,000,000
Adebayo Alao-Akala
103
TaiyuanChina
2,550,000
3,400,000
Zhang Bingsheng
104
Cali Colombia
2,525,000
2,801,000
Jorge Ivan Ospina
105
DaeguSouth Korea
2,512,000
Kim Bum-il
106
BandungIndonesia
2,510,000
3,829,000
Dada Rosada
107
FaisalabadPakistan
2,510,000
5,081,000
Rana Zahid Tauseef
108
FortalezaBrazil
2,506,000
3,415,000
Luizianne Lins
109
Baoshan China
2,500,000
110
DAR ES SALAAM Tanzania
2,498,000
2,700,000
Adam Kimbisa
111
ZhongshanChina
2,495,000
Li Qihong
112
XiamenChina
2,490,000
113
Chaoyang China
2,471,000
114
Belo Horizonte Brazil
2,453,000
5,397,000
Marcio Lacerda
115
NanningChina
2,450,000
6,480,000
116
HAVANACuba
2,430,000
3,700,000
Juan Contino Aslán
117
NagpurIndia
2,420,000
Archana Dehankar
118
OmdurmanSudan
2,400,000
119
SuzhouChina
2,383,000
6,298,000
Yan Li
120
AleppoSyria
2,360,000
3,000,000
Ma'an Al-Shibli
121
Lucknow India
2,342,000
2,686,000
Dinesh Sharma
122
IzmirTurkey
2,330,000
3,796,000
Aziz Kocaoglu
123
LinyiChina
2,300,000
10,080,000
Lian Chengmin
124
DalianChina
2,270,000
3,478,000
Li Wancai
125
Nagoya Japan
2,260,000
9,250,000
Takashi Kawamura
126
HoustonUSA
2,242,000
5,728,000
Annise Parker
127
GizaEgypt
2,225,000
2,600,000
Kuma Demekissa
128
MedellinColombia
2,223,000
3,312,000
Alonso Salazar Jaramillo
129
KHARTOUM Sudan
2,208,000
7,500,000
Abdul Rahman Alkheder
130
NingboChina
2,201,000
5,600,000
Mao Guanglie
131
GuayaquilEcuador
2,196,000
2,686,000
Jaime Nebot
132
TASHKENTUzbekistan
2,180,000
3,400,000
Abdukahar Tuhtayev
133
PARIS France
2,113,000
11,769,000
Bertrand Delanoë
134
BRASILIABrazil
2,089,000
2,090,000
José Roberto Arruda
135
LanzhouChina
2,088,000
3,300,000
Zhang Jinliang
136
ChangzhouChina
2,086,000
3,570,000
Wang Weicheng
137
Monterrey Mexico
2,057,000
3,650,000
Fernando Larrazabal
138
BAKUAzerbaijan
2,040,000
2,072,000
Hajibala Abutalybov
139
KowloonChina
2,020,000
2,200,000
140
BUCHARESTRomania
1,994,000
2,151,000
Sorin Oprescu
141
Medan Indonesia
1,990,000
2,390,000
142
Tangshan China
1,980,000
7,100,000
Zhang Guodong
143
JilinChina
1,953,000
4,523,000
144
NanchongChina
1,950,000
7,300,000
Liu Hongjian
145
CONAKRYGuinea
1,931,000
146
AMMANJordan
1,919,000
2,524,000
Omar Maani
147
IndoreIndia
1,912,000
1,920,000
148
SapporoJapan
1,906,000
2,130,000
Fumio Ueda
149
JinanChina
1,900,000
2,444,000
150
PueblaMexico
1,888,000
2,500,000
Blanca Alcala Ruiz

| Previous | Next