Hi,
I have managed to port the android-2.6.29 kernel to the linux-
omap3-2.6.29 kernel, and built the image. However, I have problems
launching android userland. When I log into the system and type ./
init, it shows the ANDROID_ message on the screen and after sometime
it just displays some request_suspect_state messages.
Here is a copy of the entire boot process, including the bootargs. Can
someone please help:
[r...@zeus ~]# kermit -l /dev/ttyUSB0
C-Kermit 8.0.212 Dev.26, 20 Dec 2006, for Linux
Copyright (C) 1985, 2006,
Trustees of Columbia University in the City of New York.
Type ? or HELP for help.
(/root/) C-Kermit>set flow-control none
(/root/) C-Kermit>set carrier-watch off
(/root/) C-Kermit>set speed 115200
/dev/ttyUSB0, 115200 bps
(/root/) C-Kermit>connect
Connecting to /dev/ttyUSB0, speed 115200
Escape character: Ctrl-\ (ASCII 28, FS): enabled
Type the escape character followed by C to get back,
or followed by ? to see other options.
----------------------------------------------------
� t �b� $U
@ @ @ D��` @ @
Texas Instruments X-Loader 1.4.2 (Apr 18 2009 - 21:36:22)
Reading boot sector
Loading u-boot.bin from mmc
U-Boot 2009.03 (Apr 19 2009 - 06:42:56)
OMAP3503-GP rev 2, CPU-OPP2 L3-165MHz
Gumstix Overo board + LPDDR/NAND
DRAM: 256 MB
NAND: 256 MiB
In: serial
Out: serial
Err: serial
Die ID #34c000020000000004013e881000f005
Hit any key to stop autoboot: 0
Overo # printenv
bootcmd=if mmcinit; then if run loadbootscript; then run bootscript;
else if run loaduimage; then run mmcboot; else run nandboot; fi; fi;
else run nandboot; fi
bootdelay=5
baudrate=115200
ipaddr=128.247.77.90
serverip=128.247.77.158
netmask=255.255.254.0
bootfile="uImage"
mmcargs=setenv bootargs console=ttyS2,115200n8 root=/dev/mmcblk0p2 rw
rootfstype=ext3 rootwait
nandargs=setenv bootargs console=ttyS2,115200n8 noinitrd root=/dev/
mtdblock4 rw rootfstype=jffs2
loadbootscript=fatload mmc 0 82000000 boot.script
bootscript=echo Running bootscript from mmc . ..; autoscr 82000000
loaduimage=fatload mmc 0 82000000 uImage
mmcboot=echo Booting from mmc ...; run mmcargs; bootm 82000000
nandboot=echo Booting from nand ...; run nandargs; nand read 82000000
280000 400000; bootm 82000000
dieid#=34c000020000000004013e881000f005
bootargs=console=ttyS0,115200n8 rw ip=off root=/dev/mmcblk0p2 mem=256M
init=/init
stdin=serial
stdout=serial
stderr=serial
Environment size: 949/131068 bytes
Overo # setenv bootargs console=ttyS2,115200n8 root=/dev/mmcblk0p2 rw
nolock,rsize=1024,wsize=1024 rootdelay=2 mem=128M init=/init
Overo # saveenv
Saving Environment to NAND...
Erasing Nand...
Erasing at 0x240000 -- 100% complete.
Writing to Nand... done
Overo # boot
reading boot.script
** Unable to read "boot.script" from mmc 0:1 **
reading uImage
2901708 bytes read
Booting from mmc ...
## Booting kernel from Legacy Image at 82000000 ...
Image Name: Angstrom/2.6.29/overo
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2901644 Bytes = 2.8 MB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting kernel ...
Uncompressing
Linux................................................................................................................................................................................................
done, booting the kernel.
Linux version 2.6.29-omap1 ([email protected]) (gcc version 4.3.1
(GCC) ) #1 PREEMPT Tue Apr 21 03:30:14 GST 2009
CPU: ARMv7 Processor [411fc082] revision 2 (ARMv7), cr=10c5387f
CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
Machine: Gumstix Overo
Memory policy: ECC disabled, Data cache writeback
OMAP3430 ES2.1
SRAM: Mapped pa 0x40200000 to va 0xd7000000 size: 0x100000
Reserving 10485760 bytes SDRAM for VRAM
Built 1 zonelists in Zone order, mobility grouping on. Total pages:
65024
Kernel command line: console=ttyS2,115200n8 root=/dev/mmcblk0p2 rw
rootfstype=ext3 rootwait
Clocking rate (Crystal/DPLL/ARM core): 26.0/331/500 MHz
GPMC revision 5.0
IRQ: Found an INTC at 0xd8200000 (revision 4.0) with 96 interrupts
Total of 96 interrupts on 1 active controller
OMAP34xx GPIO hardware version 2.5
PID hash table entries: 1024 (order: 10, 4096 bytes)
OMAP clockevent source: GPTIMER1 at 32768 Hz
Console: colour dummy device 80x30
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 128MB 128MB = 256MB total
Memory: 242560KB available (4852K code, 1040K data, 944K init)
Calibrating delay loop... 499.92 BogoMIPS (lpj=1949696)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 764 bytes
regulator: core version 0.5
NET: Registered protocol family 16
Found NAND on CS0
Registering NAND on CS0
OMAP DMA hardware revision 4.0
bio: create slab <bio-0> at 0
OMAP DSS rev 2.0
OMAP DISPC rev 3.0
OMAP VENC rev 2
i2c_omap i2c_omap.1: bus 1 rev3.12 at 2600 kHz
twl4030: PIH (irq 7) chaining IRQs 368..375
twl4030: power (irq 373) chaining IRQs 376..383
twl4030: gpio (irq 368) chaining IRQs 384..401
regulator: VMMC1: 1850 <--> 3150 mV normal standby
regulator: VUSB1V5: 1500 <--> 0 mV normal standby
regulator: VUSB1V8: 1800 <--> 0 mV normal standby
regulator: VUSB3V1: 3100 <--> 0 mV normal standby
i2c_omap i2c_omap.3: bus 3 rev3.12 at 400 kHz
SCSI subsystem initialized
twl4030_usb twl4030_usb: Initialized TWL4030 USB module
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Bluetooth: Core ver 2.15
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
cfg80211: Using static regulatory domain info
cfg80211: Regulatory domain: US
(start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
(2402000 KHz - 2472000 KHz @ 40000 KHz), (600 mBi, 2700 mBm)
(5170000 KHz - 5190000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
(5190000 KHz - 5210000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
(5210000 KHz - 5230000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
(5230000 KHz - 5330000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
(5735000 KHz - 5835000 KHz @ 40000 KHz), (600 mBi, 3000 mBm)
cfg80211: Calling CRDA for country: US
musb_hdrc: version 6.0, musb-dma, host, debug=0
musb_hdrc: USB Host mode controller at d80ab000 using DMA, IRQ 92
musb_hdrc musb_hdrc: MUSB HDRC host driver
musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 1
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: MUSB HDRC host driver
usb usb1: Manufacturer: Linux 2.6.29-omap1 musb-hcd
usb usb1: SerialNumber: musb_hdrc
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
NET: Registered protocol family 1
ashmem: initialized
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
JFFS2 version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
yaffs Apr 21 2009 03:27:01 Installing.
msgmni has been set to 474
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250.0: ttyS0 at MMIO 0x4806a000 (irq = 72) is a ST16654
serial8250.0: ttyS1 at MMIO 0x4806c000 (irq = 73) is a ST16654
serial8250.0: ttyS2 at MMIO 0x49020000 (irq = 74) is a ST16654
console [ttyS2] enabled
brd: module loaded
loop: module loaded
usbcore: registered new interface driver asix
usbcore: registered new interface driver cdc_ether
i2c /dev entries driver
Driver 'sd' needs updating - please use bus_type methods
omap2-nand driver initializing
NAND device: Manufacturer ID: 0x2c, Chip ID: 0xba (Micron NAND 256MiB
1,8V 16-bit)
cmdlinepart partition parsing not available
Creating 5 MTD partitions on "omap2-nand":
0x000000000000-0x000000080000 : "xloader"
0x000000080000-0x000000240000 : "uboot"
0x000000240000-0x000000280000 : "uboot environment"
0x000000280000-0x000000680000 : "linux"
0x000000680000-0x000010000000 : "rootfs"
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-omap ehci-omap.0: OMAP-EHCI Host Controller
ehci-omap ehci-omap.0: new USB bus registered, assigned bus number 2
ehci-omap ehci-omap.0: irq 77, io mem 0x48064800
ehci-omap ehci-omap.0: USB 2.0 started, EHCI 1.00
usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb2: Product: OMAP-EHCI Host Controller
usb usb2: Manufacturer: Linux 2.6.29-omap1 ehci_hcd
usb usb2: SerialNumber: ehci-omap.0
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 3 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
udc: OMAP UDC driver, version: 4 October 2004 (iso) (dma)
mice: PS/2 mouse device common for all mice
twl4030_rtc twl4030_rtc: rtc core: registered twl4030_rtc as rtc0
twl4030_rtc twl4030_rtc: Power up reset detected.
twl4030_rtc twl4030_rtc: Enabling TWL4030-RTC.
OMAP Watchdog Timer Rev 0x31: initial timeout 60 sec
Bluetooth: HCI UART driver ver 2.2
Bluetooth: HCI H4 protocol initialized
Bluetooth: HCI BCSP protocol initialized
Bluetooth: Broadcom Blutonium firmware driver ver 1.2
usbcore: registered new interface driver bcm203x
Bluetooth: Digianswer Bluetooth USB driver ver 0.10
usbcore: registered new interface driver bpa10x
mmci-omap-hs mmci-omap-hs.0: Failed to get debounce clock
regulator: Unable to get requested regulator: vmmc_aux
mmci-omap-hs mmci-omap-hs.1: Failed to get debounce clock
regulator: Unable to get requested regulator: vmmc
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
logger: created 64K log 'log_main'
logger: created 256K log 'log_events'
logger: created 64K log 'log_radio'
Advanced Linux Sound Architecture Driver Version 1.0.18a.
usbcore: registered new interface driver snd-usb-audio
No device for DAI twl4030
No device for DAI omap-mcbsp-dai-0
No device for DAI omap-mcbsp-dai-1
No device for DAI omap-mcbsp-dai-2
No device for DAI omap-mcbsp-dai-3
No device for DAI omap-mcbsp-dai-4
overo SoC init
TWL4030 Audio Codec init
asoc: twl4030 <-> omap-mcbsp-dai-0 mapping ok
ALSA device list:
#0: overo (twl4030)
oprofile: using arm/armv7
TCP cubic registered
NET: Registered protocol family 17
NET: Registered protocol family 15
Bluetooth: L2CAP ver 2.13
Bluetooth: L2CAP socket layer initialized
Bluetooth: SCO (Voice Link) ver 0.6
Bluetooth: SCO socket layer initialized
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM TTY layer initialized
Bluetooth: RFCOMM ver 1.11
Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Bluetooth: BNEP filters: protocol multicast
Bluetooth: HIDP (Human Interface Emulation) ver 1.2
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
ThumbEE CPU extension supported.
Power Management for TI OMAP3.
mmc0: mmc_rescan - card ocr from io_op=0x00000000, err = -110
SmartReflex driver initialized
VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev
1
Console: switching to colour frame buffer device 80x30
clock: clksel_round_rate_div: dpll4_m4_ck target_rate 36000000
clock: new_div = 12, new_rate = 36000000
omapdss: Could not find exact pixel clock. Requested 23500 kHz, got
24000 kHz
twl4030_rtc twl4030_rtc: setting system clock to 2000-01-01 00:00:00
UTC (946684800)
Waiting for root device /dev/mmcblk0p2...
mmc0: host does not support reading read-only switch. assuming write-
enable.
mmc0: new high speed SDHC card at address fe85
mmcblk0: mmc0:fe85 SU08G 7.57 GiB
mmcblk0: p1 p2
mmc1: mmc_rescan - card ocr from io_op=0x00000000, err = -110
kjournald starting. Commit interval 5 seconds
EXT3 FS on mmcblk0p2, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) on device 179:2.
Freeing init memory: 944K
INIT: version 2.86 booting
Starting udevudevd version 124 started
Remounting root file system...
end_request: I/O error, dev mtdblock0, sector 0
Buffer I/O error on device mtdblock0, logical block 0
uncorrectable error : <3>end_request: I/O error, dev mtdblock0, sector
8
Buffer I/O error on device mtdblock0, logical block 1
uncorrectable error : <3>end_request: I/O error, dev mtdblock0, sector
16
Buffer I/O error on device mtdblock0, logical block 2
end_request: I/O error, dev mtdblock0, sector 24
Buffer I/O error on device mtdblock0, logical block 3
end_request: I/O error, dev mtdblock0, sector 0
Buffer I/O error on device mtdblock0, logical block 0
NET: Registered protocol family 10
Unknown HZ value! (88) Assume 100.
ads7846 spi1.0: touchscreen, irq 274
input: ADS784x Touchscreen as /class/input/input0
ALSA: Restoring mixer settings...
Configuring network interfaces... ifup: interface lo already
configured
Error for wireless request "Set Mode" (8B06) :
SET failed on device wlan0 ; No such device.
Error for wireless request "Set ESSID" (8B1A) :
SET failed on device wlan0 ; No such device.
wlan0: unknown interface: No such device
wlan0: unknown interface: No such device
wlan0 No such device
wlan0: unknown interface: No such device
done.
Starting portmap daemon: portmap.
Unknown HZ value! (92) Assume 100.
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.all.rp_filter = 1
Tue Apr 21 05:00:00 UTC 2009
Turning echo off on /dev/ttyS1
INIT: Entering runlevel: 5
Starting Dropbear SSH server: dropbear.
Starting advanced power management daemon: No APM support in kernel
(failed.)
Starting system message bus: dbus.
Starting syslogd/klogd: done
* Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon
*[fail]
.-------.
| | .-.
| | |-----.-----.-----.| | .----..-----.-----.
| | | __ | ---'| '--.| .-'| | |
| | | | | |--- || --'| | | ' | | | |
'---'---'--'--'--. |-----''----''--' '-----'-'-'-'
-' |
'---'
The Angstrom Distribution overo ttyS2
Angstrom 2009.X-test-20090420 overo ttyS2
overo login: root
Welcome to Gumstix Overo
For more information visit:
http://www.gumstix.net/Overo/115.html
r...@overo:~# cd /
r...@overo:/# ls
bin default.prop home init.rc linuxrc mnt sys usr
boot dev init init.rc~ lost+found proc system var
data etc init.goldfish.rc lib media sbin tmp
r...@overo:/# cd data
r...@overo:/data# ls
data
r...@overo:/data# cd data
r...@overo:/data/data# ls
r...@overo:/data/data# cd ../..
r...@overo:/# ls
bin default.prop home init.rc linuxrc mnt sys usr
boot dev init init.rc~ lost+found proc system var
data etc init.goldfish.rc lib media sbin tmp
r...@overo:/# cd system
r...@overo:/system# ls
app bin build.prop etc fonts framework lib usr xbin
r...@overo:/system# cd app
r...@overo:/system/app# ls
AlarmClock.apk DrmProvider.apk Phone.apk
Browser.apk GoogleSearch.apk Settings.apk
Calendar.apk HTMLViewer.apk SettingsProvider.apk
CalendarProvider.apk LatinIME.apk SoundRecorder.apk
Camera.apk Launcher.apk SpareParts.apk
Contacts.apk MediaProvider.apk SubscribedFeedsProvider.apk
ContactsProvider.apk Mms.apk TelephonyProvider.apk
Development.apk Music.apk Term.apk
DownloadProvider.apk PackageInstaller.apk UserDictionaryProvider.apk
r...@overo:/system/app# cd ..
r...@overo:/system# cd ..
r...@overo:/# ls
bin default.prop home init.rc linuxrc mnt sys usr
boot dev init init.rc~ lost+found proc system var
data etc init.goldfish.rc lib media sbin tmp
r...@overo:/# ./init &
r...@overo:/# init: cannot open '/initlogo.rle'
init: Unable to open persistent property directory /data/property
errno: 2
sh: can't access tty; job control turned off
# init: cannot find '/system/bin/playmp3', disabling 'bootsound'
warning: `rild' uses 32-bit capabilities (legacy support in use)
request_suspend_state: wakeup (3->0) at 50958680069 (2009-04-21
05:00:40.389496677 UTC)
end_request: I/O error, dev mtdblock0, sector 0
Buffer I/O error on device mtdblock0, logical block 0
uncorrectable error : <3>end_request: I/O error, dev mtdblock0, sector
8
Buffer I/O error on device mtdblock0, logical block 1
uncorrectable error : <3>end_request: I/O error, dev mtdblock0, sector
16
Buffer I/O error on device mtdblock0, logical block 2
end_request: I/O error, dev mtdblock0, sector 24
Buffer I/O error on device mtdblock0, logical block 3
end_request: I/O error, dev mtdblock0, sector 0
Buffer I/O error on device mtdblock0, logical block 0
request_suspend_state: wakeup (0->0) at 56960144912 (2009-04-21
05:00:46.390961520 UTC)
request_suspend_state: wakeup (0->0) at 60217682749 (2009-04-21
05:00:49.648499357 UTC)
request_suspend_state: wakeup (0->0) at 64812867080 (2009-04-21
05:00:54.243683688 UTC)
r...@localhost:/# request_suspend_state: wakeup (0->0) at 69406647595
(2009-04-21 05:00:58.837464203 UTC)
request_suspend_state: wakeup (0->0) at 75005494027 (2009-04-21
05:01:04.436310635 UTC)
request_suspend_state: wakeup (0->0) at 79609772584 (2009-04-21
05:01:09.040589192 UTC)
request
Best regards,
Elvis
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---