2011年4月30日 星期六

gcc-4.6.0 for arm-none-linux-gnueabi (bootstrap gcc)

Build bootstrap gcc:
need --disable-shared --disable-lto --disable-libquadmath --without-target-libiberty --without-target-zlib

If enabling these features, target may want to link crti.o ... (that is generated by later glibc)

configure:3055: /opt/build_arm-none-linux-gnueabi-gcc/build/gcc-build/./gcc/xgcc -B/opt/build_arm-none-linux-gnueabi-gcc/build/gcc-build/./gcc/ -B/opt/build_arm-none-linux-gnueabi-gcc/build/arm-none-linux-gnueabi-4.6.0/arm-none-linux-gnueabi/bin/ -B/opt/build_arm-none-linux-gnueabi-gcc/build/arm-none-linux-gnueabi-4.6.0/arm-none-linux-gnueabi/lib/ -isystem /opt/build_arm-none-linux-gnueabi-gcc/build/arm-none-linux-gnueabi-4.6.0/arm-none-linux-gnueabi/include -isystem /opt/build_arm-none-linux-gnueabi-gcc/build/arm-none-linux-gnueabi-4.6.0/arm-none-linux-gnueabi/sys-include    -o conftest -g -O2   conftest.c  >&5
/opt/build_arm-none-linux-gnueabi-gcc/build/arm-none-linux-gnueabi-4.6.0/arm-none-linux-gnueabi/bin/ld: cannot find crt1.o: No such file or directory
/opt/build_arm-none-linux-gnueabi-gcc/build/arm-none-linux-gnueabi-4.6.0/arm-none-linux-gnueabi/bin/ld: cannot find crti.o: No such file or directory
/opt/build_arm-none-linux-gnueabi-gcc/build/arm-none-linux-gnueabi-4.6.0/arm-none-linux-gnueabi/bin/ld: cannot find crtbegin.o: No such file or directory
/opt/build_arm-none-linux-gnueabi-gcc/build/arm-none-linux-gnueabi-4.6.0/arm-none-linux-gnueabi/bin/ld: cannot find -lgcc
/opt/build_arm-none-linux-gnueabi-gcc/build/arm-none-linux-gnueabi-4.6.0/arm-none-linux-gnueabi/bin/ld: cannot find -lc
/opt/build_arm-none-linux-gnueabi-gcc/build/arm-none-linux-gnueabi-4.6.0/arm-none-linux-gnueabi/bin/ld: cannot find -lgcc
/opt/build_arm-none-linux-gnueabi-gcc/build/arm-none-linux-gnueabi-4.6.0/arm-none-linux-gnueabi/bin/ld: cannot find crtend.o: No such file or directory
/opt/build_arm-none-linux-gnueabi-gcc/build/arm-none-linux-gnueabi-4.6.0/arm-none-linux-gnueabi/bin/ld: cannot find crtn.o: No such file or directory
collect2: ld returned 1 exit status



Referenced:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47836

With upcoming 4.6 building of target-libiberty and target-zlib is enabled (at
most platforms) per default.
It should be possible to disable this behavior e.g. with switches like:
--without-target-libiberty
--without-target-zlib

Previous versions did not try to build these libraries for cross compilers.


Index: configure.ac
===================================================================
--- configure.ac        (revision 170359)
+++ configure.ac        (working copy)
@@ -262,6 +262,16 @@ skipdirs=
 # Noconfigdirs are removed loudly.
 noconfigdirs=""

+# Make sure we don't let target-libiberty be added if we didn't want it.
+if test x$with_target_libiberty = xno ; then
+  noconfigdirs="$noconfigdirs target-libiberty"
+fi
+
+# Make sure we don't let target-zlib be added if we didn't want it.
+if test x$with_target_zlib = xno ; then
+  noconfigdirs="$noconfigdirs target-zlib"
+fi
+
 use_gnu_ld=
 # Make sure we don't let GNU ld be added if we didn't want it.
 if test x$with_gnu_ld = xno ; then
Index: configure
===================================================================
--- configure   (revision 170359)
+++ configure   (working copy)
@@ -2801,6 +2801,16 @@ skipdirs=
 # Noconfigdirs are removed loudly.
 noconfigdirs=""

+# Make sure we don't let target-libiberty be added if we didn't want it.
+if test x$with_target_libiberty = xno ; then
+  noconfigdirs="$noconfigdirs target-libiberty"
+fi
+
+# Make sure we don't let target-zlib be added if we didn't want it.
+if test x$with_target_zlib = xno ; then
+  noconfigdirs="$noconfigdirs target-zlib"
+fi
+
 use_gnu_ld=
 # Make sure we don't let GNU ld be added if we didn't want it.
 if test x$with_gnu_ld = xno ; then
 

2011年4月25日 星期一

Android boots up successfully

Android binary:

http://omappedia.org/wiki/Android:_Working_with_pre-built_binaries


SD card layout:

mingfeng@mingfeng-desktop:/media$ sudo fdisk /dev/sdb

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
         switch off the mode (command 'c') and change display units to
         sectors (command 'u').

Command (m for help): p

Disk /dev/sdb: 8031 MB, 8031043584 bytes
255 heads, 63 sectors/track, 976 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

所用裝置 Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1           9       72261    c  W95 FAT32 (LBA)
/dev/sdb2              10         976     7767427+  83  Linux


Mount:

mingfeng@mingfeng-desktop:/media$ mount
...
/dev/sdb1 on /media/boot type vfat (rw,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush)
/dev/sdb2 on /media/filesystem type ext3 (rw,nosuid,nodev,uhelper=udisks)


Files: (xloader: MLO)

mingfeng@mingfeng-desktop:/media$ ls boot/
MLO  u-boot.bin  uImage

mingfeng@mingfeng-desktop:/media$ ls filesystem/
acct  bt_drv.ko  cache  config  d  data  debug  default.prop  dev  etc  fm_drv.ko  gps_drv.ko  init  init.goldfish.rc  init.omap4sdp.rc  init.rc  lost+found  makemyfs.sh  mnt  proc  sbin  sdcard  st_drv.ko  sys  system  tmp
mingfeng@mingfeng-desktop:/media$



Bootup log:

歡迎使用 minicom 2.4

選項: I18n
編譯於 Jun  3 2010, 13:48:00.
Port /dev/ttyUSB0

按 CTRL-A Z 說明特殊鍵

Texas Instruments X-Loader 1.41 (Aug 31 2010 - 18:03:49)                                                                    
mmc read: Invalid size
Starting OS Bootloader from MMC/SD1 ...


U-Boot 1.1.4-gcebe815a-dirty (Sep 24 2010 - 15:03:03)

Load address: 0x80e80000
DRAM:  512 MB
Flash:  0 kB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   KS8851SNL
Hit any key to stop autoboot:  0
mmc read: Invalid size

2874648 bytes read
## Booting image at 80300000 ...
   Image Name:   Linux-2.6.35-g7604125
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2874584 Bytes =  2.7 MB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Linux version 2.6.35-g7604125 (geetha@geetha-ubuntu) (gcc version 4.4.1 (Sourcery G++ Lite 2010q1-202) ) #4 SMP PREEMPT Mon Jan 10 15:42:30 CST 2011
CPU: ARMv7 Processor [411fc092] revision 2 (ARMv7), cr=10c53c7f
CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
Machine: OMAP4430 Panda Board
Memory policy: ECC disabled, Data cache writealloc
***********************
OMAP4430 ES2.0 type(GP)
id-code  (4b95c02f)
Die-id   (13780024-00000001-0A3B951B-0600C)
Prod-id  (0001B95C-000400F0)
***********************
SRAM: Mapped pa 0x40300000 to va 0xfe400000 size: 0x100000
FIXME: omap44xx_sram_init not implementednicom 2.4    |   VT102         離線                                                                                                                                                                 Reserving 33554432 bytes SDRAM for VRAM
PERCPU: Embedded 6 pages/cpu @c2a3d000 s3936 r8192 d12448 u65536
pcpu-alloc: s3936 r8192 d12448 u65536 alloc=16*4096
pcpu-alloc: [0] 0 [0] 1
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 117602
Kernel command line: root=/dev/mmcblk0p2 rw rootdelay=3 mem=463M console=ttyO2,115200n8 init=/init
PID hash table entries: 2048 (order: 1, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 463MB = 463MB total
Memory: 430448k/430448k available, 43664k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
    vmalloc : 0xdd000000 - 0xf8000000   ( 432 MB)
    lowmem  : 0xc0000000 - 0xdcf00000   ( 463 MB)
    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    modules : 0xbf000000 - 0xbfe00000   (  14 MB)
      .init : 0xc0008000 - 0xc003e000   ( 216 kB)
      .text : 0xc003e000 - 0xc05a0000   (5512 kB)
      .data : 0xc05a0000 - 0xc05edbc0   ( 311 kB)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
Hierarchical RCU implementation.
        RCU-based detection of stalled CPUs is disabled.
        Verbose stalled-CPUs detection is disabled.
NR_IRQS:388
omap_hwmod: sys_32k_ck: missing clockdomain for sys_32k_ck.
omap_hwmod: l3_div_ck: missing clockdomain for l3_div_ck.
omap_hwmod: dpll_mpu_m2_ck: missing clockdomain for dpll_mpu_m2_ck.
omap_hwmod: mailbox: resetting
omap_hwmod: omap-mcpdm-dai: cannot be enabled (3)
omap_hwmod: mcspi1: resetting
omap_hwmod: mcspi2: resetting
omap_hwmod: mcspi3: resetting
omap_hwmod: mcspi4: resetting
omap_hwmod: mmc1: resetting
omap_hwmod: mmc2: resetting
omap_hwmod: mmc3: resetting
omap_hwmod: mmc4: resetting
omap_hwmod: mmc5: resetting
omap_hwmod: timer3: resetting
omap_hwmod: timer4: resetting
omap_hwmod: timer5: resetting
omap_hwmod: timer6: resetting
omap_hwmod: timer7: resetting
omap_hwmod: timer8: resetting
omap_hwmod: timer9: resetting
omap_hwmod: timer11: resetting
GPMC revision 6.0
 dmtimer.0: omap_dm_timer_probe:[id=0]
 dmtimer.0:  registered
 dmtimer.1: omap_dm_timer_probe:[id=1]
 dmtimer.1:  registered
 dmtimer.9: omap_dm_timer_probe:[id=9]
 dmtimer.9:  registered
OMAP clockevent source: GPTIMER1 at 32768 Hz
Console: colour dummy device 80x30
Calibrating delay loop... 2013.49 BogoMIPS (lpj=7864320)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
Calibrating local timer... 491.14MHz.
L310 cache controller enabled
l2x0: 16 ways, CACHE_ID 0x410000c4, AUX_CTRL 0x0e470000
CPU1: Booted secondary processor
Brought up 2 CPUs
SMP: Total of 2 processors activated (3976.57 BogoMIPS).
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
OMAP GPIO hardware version 0.1
PandaBoard Revision: 003
res->start = 49022000
res->start = 49024000
res->start = 49026000
res->start = 48096000
OMAP DMA hardware revision 0.0
dma dma.0: System DMA registered
HSI: device registered
bio: create slab <bio-0> at 0
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
i2c_omap i2c_omap.1: bus 1 rev4.0 at 400 kHz
Skipping twl internal clock init and using bootloader value (unknown osc rate)
twl6030: PIH (irq 39) chaining IRQs 368..387
twl6030_usb twl6030_usb: Initialized TWL6030 USB module
regulator: VMMC: 1200 <--> 3000 mV at 3000 mV normal standby
regulator: VPP: 1800 <--> 2500 mV at 1900 mV normal standby
regulator: VANA: 2100 mV normal standby
regulator: VCXIO: 1800 mV normal standby
regulator: VDAC: 1800 mV normal standby
regulator: VUSB: 3300 mV normal standby
regulator: VAUX2_6030: 1200 <--> 2800 mV at 1800 mV normal standby
regulator: VAUX3_6030: 1000 <--> 3000 mV at 1200 mV normal standby
Advanced Linux Sound Architecture Driver Version 1.0.23.
Sangoma WANPIPE Router v1.1 (c) 1995-2000 Sangoma Technologies Inc.
Bluetooth: Core ver 2.15
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Switching to clocksource timer-32k
musb_hdrc: version 6.0, musb-dma, host, debug=0
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.35-g7604125 musb-hcd
usb usb1: SerialNumber: musb_hdrc
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
musb_hdrc musb_hdrc: USB Host mode controller at fc0ab000 using DMA, IRQ 124
NET: Registered protocol family 2
IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
TCP established hash table entries: 16384 (order: 5, 131072 bytes)
TCP bind hash table entries: 16384 (order: 5, 196608 bytes)
TCP: Hash tables configured (established 16384 bind 16384)
TCP reno registered
UDP hash table entries: 256 (order: 1, 8192 bytes)
UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
ipu-power ipu0: Test of writing to the device message log,done from ipu_pm_init
ipu-power initialized ipu, major: 251, minor: 0
sdp4430_wifi_init: start
omap-iommu omap-iommu.0: ducati registered
omap-iommu omap-iommu.1: tesla registered
iovmm-omap initialized ducati, major: 250, base-minor: 0
iovmm-omap initialized tesla, major: 250, base-minor: 1
dmtimer dmtimer.0: omap_dm_timer_probe:[id=0]
dmtimer dmtimer.0: omap2_dm_timer_enable: pm_runtime_get_sync FAILED
dmtimer dmtimer.1: omap_dm_timer_probe:[id=1]
dmtimer dmtimer.9: omap_dm_timer_probe:[id=9]
dmtimer dmtimer.2: omap_dm_timer_probe:[id=2]
dmtimer dmtimer.2:  registered
dmtimer dmtimer.3: omap_dm_timer_probe:[id=3]
dmtimer dmtimer.3:  registered
dmtimer dmtimer.4: omap_dm_timer_probe:[id=4]
dmtimer dmtimer.4:  registered
dmtimer dmtimer.5: omap_dm_timer_probe:[id=5]
dmtimer dmtimer.5:  registered
dmtimer dmtimer.6: omap_dm_timer_probe:[id=6]
dmtimer dmtimer.6:  registered
dmtimer dmtimer.7: omap_dm_timer_probe:[id=7]
dmtimer dmtimer.7:  registered
dmtimer dmtimer.8: omap_dm_timer_probe:[id=8]
dmtimer dmtimer.8:  registered
dmtimer dmtimer.10: omap_dm_timer_probe:[id=10]
dmtimer dmtimer.10:  registered
omap-remoteproc omap-remoteproc.0: omap_rproc_probe: adding rproc tesla
omap-remoteproc omap-remoteproc.0: omap-rproc initialized tesla, major: 249, base-minor: 0
omap-remoteproc omap-remoteproc.1: omap_rproc_probe: adding rproc ducati-proc0
omap-remoteproc omap-remoteproc.1: omap-rproc initialized ducati-proc0, major: 249, base-minor: 1
omap-remoteproc omap-remoteproc.2: omap_rproc_probe: adding rproc ducati-proc1
omap-remoteproc omap-remoteproc.2: omap-rproc initialized ducati-proc1, major: 249, base-minor: 2
ashmem: initialized
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
msgmni has been set to 840
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
OMAP DSS rev 4.0
OMAP DISPC rev 4.0
OMAP DSI rev 3.0
OMAP DSI2 rev 3.0
Enter hdmi_init()
OMAP HDMI W1 rev 2.0
init_display
ENTER hdmi_panel_probe()
hdmi_panel_probe x_res= 1280 y_res = 800
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
omap-hsuart.0: ttyO0 at MMIO 0x4806a000 (irq = 104) is a OMAP UART0
omap-hsuart.1: ttyO1 at MMIO 0x4806c000 (irq = 105) is a OMAP UART1
omap-hsuart.2: ttyO2 at MMIO 0x48020000 (irq = 106) is a OMAP UART2
console [ttyO2] enabled
omap-hsuart.3: ttyO3 at MMIO 0x4806e000 (irq = 102) is a OMAP UART3
brd: module loaded
loop: module loaded
usbcore: registered new interface driver smsc95xx
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-omap ehci-omap: OMAP-EHCI Host Controller
ehci-omap ehci-omap: new USB bus registered, assigned bus number 2
ehci-omap ehci-omap: irq 109, io mem 0x4a064c00
ehci-omap ehci-omap: 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.35-g7604125 ehci_hcd
usb usb2: SerialNumber: ehci-omap
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 3 ports detected
using rtc device, twl_rtc, for alarms
twl_rtc twl_rtc: rtc core: registered twl_rtc as rtc0
twl_rtc twl_rtc: Power up reset detected.
twl_rtc twl_rtc: Enabling TWL-RTC.
i2c /dev entries driver
IR NEC protocol handler initialized
IR RC5(x) protocol handler initialized
IR RC6 protocol handler initialized
IR JVC protocol handler initialized
IR Sony protocol handler initialized
Linux video capture interface: v2.00
OMAP Watchdog Timer Rev 0x00: initial timeout 60 sec
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
logger: created 64K log 'log_main'
logger: created 256K log 'log_events'
logger: created 64K log 'log_radio'
logger: created 64K log 'log_system'
proc4430_drv_initializeModule
omap-devicehandler omap-devicehandler.0: omap_devh_probe: adding devh Tesla
omap-devh initialized Tesla, major: 240, base-minor: 0
omap-devicehandler omap-devicehandler.1: omap_devh_probe: adding devh SysM3
omap-devh initialized SysM3, major: 240, base-minor: 1
omap-devicehandler omap-devicehandler.2: omap_devh_probe: adding devh AppM3
omap-devh initialized AppM3, major: 240, base-minor: 2
SDP4430 SoC init
asoc: null-codec-dai <-> MultiMedia1 mapping ok
asoc: null-codec-dai <-> MultiMedia2 mapping ok
mmc0: host does not support reading read-only switch. assuming write-enable.
mmc0: new high speed SDHC card at address b368
mmcblk0: mmc0:b368 NCard 7.47 GiB
asoc: null-codec-dai <-> Voice mapping ok
asoc: null-codec-dai <-> Tones mapping ok
asoc: null-codec-dai <-> Vibra mapping ok
 mmcblk0:
asoc: null-codec-dai <-> MODEM mapping ok
asoc: null-codec-dai <-> MultiMedia1 LP mapping ok
asoc: HDMI <-> hdmi-dai mapping ok
asoc: FM Digital <-> omap-mcbsp-dai.1 mapping ok
 p1 p2
asoc: twl6040-dl1 <-> mcpdm-dl mapping ok
asoc: dmic-hifi <-> omap-dmic-dai.0 mapping ok
asoc: twl6040-dl1 <-> mcpdm-dl1 mapping ok
asoc: twl6040-ul <-> mcpdm-ul1 mapping ok
asoc: twl6040-dl2 <-> mcpdm-dl2 mapping ok
asoc: twl6040-vib <-> mcpdm-vib mapping ok
asoc: Bluetooth <-> omap-mcbsp-dai.0 mapping ok
asoc: FM Digital <-> omap-mcbsp-dai.1 mapping ok
asoc: MODEM <-> omap-mcbsp-dai.1 mapping ok
asoc: dmic-hifi <-> omap-dmic-dai.0 mapping ok
asoc: dmic-hifi <-> omap-dmic-dai.1 mapping ok
asoc: dmic-hifi <-> omap-dmic-dai.2 mapping ok
input: SDP4430 Headset Jack as /devices/platform/soc-audio/sound/card0/input0
ALSA device list:
  #0: TI OMAP4 SDP4430 Board
Netfilter messages via NETLINK v0.30.
nf_conntrack version 0.5.0 (6725 buckets, 26900 max)
CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
nf_conntrack.acct=1 kernel parameter, acct=1 nf_conntrack module option or
sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
ctnetlink v0.93: registering with nfnetlink.
xt_time: kernel timezone is -0000
ip_tables: (C) 2000-2006 Netfilter Core Team
arp_tables: (C) 2002 David S. Miller
TCP cubic registered
Initializing XFRM netlink socket
usb 2-1: new high speed USB device using ehci-omap and address 2
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
Mobile IPv6
IPv6 over IPv4 tunneling driver
sit0: Disabled Privacy Extensions
ip6tnl0: Disabled Privacy Extensions
NET: Registered protocol family 17
NET: Registered protocol family 15
Bluetooth: L2CAP ver 2.14
Bluetooth: L2CAP socket layer initialized
Bluetooth: SCO (Voice Link) ver 0.6
Bluetooth: SCO socket layer initialized
Bluetooth: RFCOMM TTY layer initialized
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM ver 1.11
Bluetooth: HIDP (Human Interface Emulation) ver 1.2
ThumbEE CPU extension supported.
omap_hwmod: Initialize debugfs support
VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 1
Console: switching to colour frame buffer device 160x50
omapdss HDMI: hot plug event 1
omapdss HDMI: error sending hot plug event 1 (-2)
regulator_init_complete: incomplete constraints, leaving VAUX3_6030 on
usb 2-1: New USB device found, idVendor=0424, idProduct=9514
usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
regulator_init_complete: incomplete constraints, leaving VAUX2_6030 on
regulator_init_complete: incomplete constraints, leaving VUSB on
hub 2-1:1.0: USB hub found
regulator_init_complete: incomplete constraints, leaving VDAC on
hub 2-1:1.0: 5 ports detected
regulator_init_complete: incomplete constraints, leaving VCXIO on
regulator_init_complete: incomplete constraints, leaving VANA on
regulator_init_complete: incomplete constraints, leaving VPP on
twl_rtc twl_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
omap_vout omap_vout: : registered and initialized video device 0
omap_vout omap_vout: : registered and initialized video device 1
omap_vout omap_vout: : registered and initialized video device 2
omap_wb: registered and initialized wb device 3 [v4l2]
Waiting 3sec before mounting root device...
usb 2-1.1: new high speed USB device using ehci-omap and address 3
usb 2-1.1: New USB device found, idVendor=0424, idProduct=ec00
usb 2-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
smsc95xx v1.0.4
smsc95xx 2-1.1:1.0: usb0: register 'smsc95xx' at usb-ehci-omap-1.1, smsc95xx USB 2.0 Ethernet, 56:34:90:46:a9:75
EXT3-fs: barriers not enabled
kjournald starting.  Commit interval 5 seconds
EXT3-fs (mmcblk0p2): using internal journal
EXT3-fs (mmcblk0p2): mounted filesystem with writeback data mode
VFS: Mounted root (ext3 filesystem) on device 179:2.
devtmpfs: mounted
Freeing init memory: 216K
init: cannot open '/initlogo.rle'
init: cannot find '/system/bin/pvrsrvinit', disabling 'pvrsrvinit'
init: cannot find '/system/bin/playmp3', disabling 'bootsound'
init: cannot find '/system/etc/install-recovery.sh', disabling 'flash_recovery'
sh: can't access tty; job control turned off
# st_drv: module is from the staging directory, the quality is unknown, you have been warned.
bt_drv: module is from the staging directory, the quality is unknown, you have been warned.
init: untracked pid 1182 exited
fm_drv: version magic '2.6.35.7-00057-g41bac15-dirty SMP preempt mod_unload ARMv7 ' should be '2.6.35-g7604125 SMP preempt mod_unload ARMv7 '
gps_drv: version magic '2.6.35.7-00057-g41bac15-dirty SMP preempt mod_unload ARMv7 ' should be '2.6.35-g7604125 SMP preempt mod_unload ARMv7 '
asoc: can't open interface mcpdm-dl1
asoc: can't open interface MultiMedia1
warning: `zygote' uses 32-bit capabilities (legacy support in use)
binder: release 1310:1310 transaction 1549 out, still active
binder: 1217:1354 transaction failed 29189, size 4-0
binder: send failed reply for transaction 1549, target dead
usb 2-1.3: new low speed USB device using ehci-omap and address 4
usb 2-1.3: New USB device found, idVendor=15d9, idProduct=0a4c
usb 2-1.3: New USB device strings: Mfr=0, Product=1, SerialNumber=0
usb 2-1.3: Product:  USB OPTICAL MOUSE
input:  USB OPTICAL MOUSE as /devices/platform/ehci-omap/usb2/2-1/2-1.3/2-1.3:1.0/input/input1
generic-usb 0003:15D9:0A4C.0001: input: USB HID v1.11 Mouse [ USB OPTICAL MOUSE] on usb-ehci-omap-1.3/input0
usb 2-1.3: USB disconnect, address 4
mmc0: card b368 removed
mmcblk0: retrying using single block read
mmcblk0: error -110 sending status comand
mmcblk0: error -110 sending read/write command, response 0x0, card status 0x0
mmcblk0: error -110 transferring data, sector 14644425, nr 8, card status 0x0
end_request: I/O error, dev mmcblk0, sector 14644425
end_request: I/O error, dev mmcblk0, sector 14644426
EXT3-fs error (device mmcblk0p2): ext3_find_entry: reading directory #445281 offset 0
mmcblk0: error -110 sending status comand
mmcblk0: error -110 sending read/write command, response 0x0, card status 0x0
mmcblk0: error -110 transferring data, sector 144585, nr 8, card status 0x0
mmcblk0: error -110 requesting status
end_request: I/O error, dev mmcblk0, sector 144585
Buffer I/O error on device mmcblk0p2, logical block 0
lost page write due to I/O error on mmcblk0p2
mmcblk0: error -110 sending status comand
mmcblk0: error -110 sending read/write command, response 0x0, card status 0x0
mmcblk0: error -110 transferring data, sector 2256, nr 1, card status 0x0
end_request: I/O error, dev mmcblk0, sector 2256
FAT: Directory bread(block 2256) failed

2011年4月23日 星期六

Ubuntu natty boots up successfully

Steps:
  1. Insert the SD card in your host computer's SD card reader.
  2. Make sure the SD card is not mounted (just umount it if needed).
  3. Identify the correct device name (like /dev/sdb).
  4. Run the following command to write it:
gunzip -c ubuntu-11.04-preinstalled-headless-armel+<omap image>.img.gz | sudo dd bs=4M of=/dev/<device name> sync

http://cdimage.ubuntu.com/ubuntu-netbook/daily-preinstalled/current/natty-preinstalled-netbook-armel+omap4.img.gz
 
Referenced from:
https://wiki.ubuntu.com/ARM/OMAPHeadlessInstall
 
minicom log:
歡迎使用 minicom 2.4

選項: I18n 
編譯於 Jun  3 2010, 13:48:00.
Port /dev/ttyUSB0

按 CTRL-A Z 說明特殊鍵                         
                                               
Texas Instruments X-Loader 1.5.0 (Apr 11 2011 - 09:48:22)                       
Reading boot sector                                                             
Loading u-boot.bin from mmc                                                     
                                                                                
                                                                                
U-Boot 2011.03 (Apr 20 2011 - 07:37:43)                                         
                                                                                
CPU  : OMAP4430                                                                 
Board: OMAP4 Panda                                                              
I2C:   ready                                                                    
DRAM:  1 GiB                                                                    
MMC:   OMAP SD/MMC: 0                                                           
Using default environment                                                       
                                                                                
In:    serial                                                                   
Out:   serial                                                                   
Err:   serial                                                                   
Hit any key to stop autoboot:  0                                                
reading boot.scr                                                                
                                                                                
350 bytes read                                                                  
Running bootscript from mmc0 ...                                                
## Executing script at 82000000                                                 
reading uImage                                                                  
                                                                                
4174740 bytes read                                                              
reading uInitrd                                                                 
                                                                                
5702171 bytes read                                                              
## Booting kernel from Legacy Image at 80000000 ...                             
   Image Name:   Ubuntu Kernel                                                  
   Image Type:   ARM Linux Kernel Image (uncompressed)                          
   Data Size:    4174676 Bytes = 4 MiB                                          
   Load Address: 80008000                                                       
   Entry Point:  80008000                                                       
   Verifying Checksum ... OK                                                    
## Loading init Ramdisk from Legacy Image at 81600000 ...                       
   Image Name:   Ubuntu Initrd                                                  
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)                      
   Data Size:    5702107 Bytes = 5.4 MiB                                        
   Load Address: 00000000                                                       
   Entry Point:  00000000                                                       
   Verifying Checksum ... OK                                                    
   Loading Kernel Image ... OK                                                  
OK                                                                              
                                                                                
Starting kernel ...                                                             
                                                                                
Uncompressing Linux... done, booting the kernel.

Pandaboard終於入手了

2011/04/22 中午,終於入手了 Pandaboard,這是由二顆ARM cortex-a9所組成的MPcore!
晚上趕緊去買張8GB的SD卡,是Silicon power的8GB SDHC class 10。

看來,我還是先把toolchain的問題先解決好了,首先,當然是推
binutils-2.21 +
gcc-4.6.0 +
glibc-2.13 (linux) +
newlib-1.19.0 (non-OS).

gcc/config/arm/t-linux-eabi:


MULTILIB_OPTIONS       = marm
MULTILIB_DIRNAMES     = arm
MULTILIB_EXCEPTIONS  =  
MULTILIB_MATCHES       =  

MULTILIB_OPTIONS       += mcpu=cortex-a9
MULTILIB_DIRNAMES     += cortex-a9
MULTILIB_EXCEPTIONS  +=  

# I want the default to use -mhard-float
#MULTILIB_OPTIONS        += mfloat-abi=hard
#MULTILIB_DIRNAMES      += fpu