Do I have to use Sourcery tool chain to build the rfs or use the one in the Android toolchina?
On 4月3日, 上午4時06分, Rebecca Schultz Zavin <rebe...@android.com> wrote: > There are definitely some wrinkles to get things booting over nfs. I think > most of what I struggled with was permissions. Instead of typing make at > the command line to build your image, type makesystemtarball. This will make > you a system.tar.bz2 with permissions that match those expected by the > runtime. Here's a short script I have used in the past to create an > android filesystem on an sd card or in an nfs directory: > > #!/bin/sh > BOARD=zoom2 > android=/usr/local/google/android > #userspace=$android/a6/cupcake/android > #userspace=$android/ext/ > userspace=$android/zoom-repo2/ > #fsroot=/srv/nfs/ > fsroot=/media/disk/ > #boardroot=$fsroot/root_$BOARD > boardroot=$fsroot/ > > sudo rm -rf $boardroot/* > cd $userspace/out/target/product/$BOARD/ > pwd > ls > tar -C root -cf - . | sudo tar -C $boardroot/ -xf - > cp system.tar.bz2 $boardroot/ > cd $boardroot/ > sudo tar -xf system.tar.bz2 > rm system.tar.bz2 > sudo cp $boardroot/init.omap$BOARD.rc $boardroot/init.rc > sudo chmod 755 $boardroot > > Once you have your root fs mounted you will need to modify init.rc to not > try to mount system and data as yaffs images (because presumably you are > running them from nfs too). Just comment out those lines in init.rc > > Hope this helps, > Rebecca > > 2009/4/2 cindy_king_1024 <cindy_king_1...@126.com> > > > > > Hi,haritha > > Thanks for you help! > > With init=/init ,it come with this: > > > OMAP3EVM # bootm > > ## Booting image at 80000000 ... > > Image Name: Linux-2.6.27-omap1-05240-g88b76d > > Image Type: ARM Linux Kernel Image (uncompressed) > > Data Size: 1752596 Bytes = 1.7 MB > > Load Address: 80008000 > > Entry Point: 80008000 > > Verifying Checksum ... OK > > OK > > Starting kernel ... > > Uncompressing > > Linux......................................................................-........... > > ................................ done, booting the kernel. > > <5>Linux version 2.6.27-omap1-05240-g88b76df-dirty ( > > r...@localhost.localdomain) (gcc version 4.2.1 ( > > CodeSourcery Sourcery G++ Lite 2007q3-51)) #9 Thu Apr 2 14:24:58 CST 2009 > > CPU: ARMv7 Processor [411fc082] revision 2 (ARMv7), cr=00c5387f > > Machine: OMAP3 EVM > > Memory policy: ECC disabled, Data cache writeback > > <7>On node 0 totalpages: 22528 > > <7>free_area_init_node: node 0, pgdat c0375e9c, node_mem_map c03f2000 > > <7> DMA zone: 22352 pages, LIFO batch:3 > > <6>OMAP3430 ES2.1 > > <6>SRAM: Mapped pa 0x40200000 to va 0xd7000000 size: 0x100000 > > CPU0: L1 I VIPT cache. Caches unified at level 2, coherent at level 3 > > CPU0: Level 1 cache is separate instruction and data > > CPU0: I cache: 16384 bytes, associativity 4, 64 byte lines, 64 sets, > > supports RA > > CPU0: D cache: 16384 bytes, associativity 4, 64 byte lines, 64 sets, > > supports RA WB WT > > CPU0: Level 2 cache is unified > > CPU0: unified cache: 262144 bytes, associativity 8, 64 byte lines, 512 > > sets, > > supports WA RA WB WT > > Built 1 zonelists in Zone order, mobility grouping on. Total pages: 22352 > > <5>Kernel command line: console=ttyS0,115200n8 rw root=/dev/nfs > > nfsroot=10.86.76.84:/home/jennifer/A > > ndroid_rfs ip=dhcp nolock,init=/init mem=88M > > <3>clock: virt_vdd1_prcm_set: missing clockdomain<3>clock: > > virt_vdd2_prcm_set: missing clockdomain<6 > > >Clocking rate (Crystal/DPLL/ARM core): 26.0/332/500 MHz > > <6>GPMC revision 5.0 > > <6>IRQ: Found an INTC at 0xd8200000 (revision 4.0) with 96 interrupts > > <6>Total of 96 interrupts on 1 active controller > > <6>OMAP34xx GPIO hardware version 2.5 > > PID hash table entries: 512 (order: 9, 2048 bytes) > > <6>OMAP clockevent source: GPTIMER1 at 32768 Hz > > Console: colour dummy device 80x30 > > <6>Dentry cache hash table entries: 16384 (order: 4, 65536 bytes) > > <6>Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) > > <6>Memory: 88MB = 88MB total > > <5>Memory: 85204KB available (3212K code, 642K data, 144K init) > > <6>Calibrating delay loop... 498.87 BogoMIPS (lpj=1945600) > > Mount-cache hash table entries: 512 > > <6>CPU: Testing write buffer coherency: ok > > <6>net_namespace: 288 bytes > > <6>NET: Registered protocol family 16 > > <4>MUX: setup J21_34XX_I2C1_SDA (0xd80021bc): 0x1718 -> 0x0118 > > <4>MUX: setup K21_34XX_I2C1_SCL (0xd80021ba): 0x1718 -> 0x0118 > > <4>MUX: setup AE15_34XX_I2C2_SDA (0xd80021c0): 0x1718 -> 0x0118 > > <4>MUX: setup AF15_34XX_I2C2_SCL (0xd80021be): 0x1718 -> 0x0118 > > <4>MUX: setup AG14_34XX_I2C3_SDA (0xd80021c4): 0x1718 -> 0x0118 > > <4>MUX: setup AF14_34XX_I2C3_SCL (0xd80021c2): 0x1718 -> 0x0118 > > <6>OneNAND: Unable to find configuration in GPMC > > <6>Switched to new clocking rate (Crystal/DPLL3/MPU): 26.0/332/166 MHz > > <6>OMAP DMA hardware revision 4.0 > > <3>USB: No board-specific platform config found > > <6>i2c_omap i2c_omap.1: bus 1 rev3.12 at 2600 kHz > > <6>twl4030: PIH (irq 7) chaining IRQs 368..375 > > <6>twl4030: power (irq 373) chaining IRQs 376..383 > > <6>twl4030: gpio (irq 368) chaining IRQs 384..401 > > <6>i2c_omap i2c_omap.2: bus 2 rev3.12 at 400 kHz > > <6>i2c_omap i2c_omap.3: bus 3 rev3.12 at 400 kHz > > <6>twl4030_usb twl4030_usb: Initialized TWL4030 USB module > > <5>SCSI subsystem initialized > > <6>usbcore: registered new interface driver usbfs > > <6>usbcore: registered new interface driver hub > > <6>usbcore: registered new device driver usb > > <6>musb_hdrc: version 6.0, musb-dma, otg (peripheral+host), debug=0 > > <7>musb_hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine (X), bulk > > split (X), HB-ISO Rx (X), H > > B-ISO Tx (X), SoftConn) > > <7>musb_hdrc: MHDRC RTL version 1.400 > > <7>musb_hdrc: setup fifo_mode 4 > > <7>musb_hdrc: 29/31 max ep, 15424/16384 memory > > <7>musb_hdrc: hw_ep 0shared, max 64 > > <7>musb_hdrc: hw_ep 1tx, max 512 > > <7>musb_hdrc: hw_ep 1rx, max 512 > > <7>musb_hdrc: hw_ep 2tx, max 512 > > <7>musb_hdrc: hw_ep 2rx, max 512 > > <7>musb_hdrc: hw_ep 3tx, max 512 > > <7>musb_hdrc: hw_ep 3rx, max 512 > > <7>musb_hdrc: hw_ep 4tx, max 512 > > <7>musb_hdrc: hw_ep 4rx, max 512 > > <7>musb_hdrc: hw_ep 5tx, max 512 > > <7>musb_hdrc: hw_ep 5rx, max 512 > > <7>musb_hdrc: hw_ep 6tx, max 512 > > <7>musb_hdrc: hw_ep 6rx, max 512 > > <7>musb_hdrc: hw_ep 7tx, max 512 > > <7>musb_hdrc: hw_ep 7rx, max 512 > > <7>musb_hdrc: hw_ep 8tx, max 512 > > <7>musb_hdrc: hw_ep 8rx, max 512 > > <7>musb_hdrc: hw_ep 9tx, max 512 > > <7>musb_hdrc: hw_ep 9rx, max 512 > > <7>musb_hdrc: hw_ep 10tx, max 512 > > <7>musb_hdrc: hw_ep 10rx, max 512 > > <7>musb_hdrc: hw_ep 11tx, max 512 > > <7>musb_hdrc: hw_ep 11rx, max 512 > > <7>musb_hdrc: hw_ep 12tx, max 512 > > <7>musb_hdrc: hw_ep 12rx, max 512 > > <7>musb_hdrc: hw_ep 13tx, max 512 > > <7>musb_hdrc: hw_ep 13rx, max 512 > > <7>musb_hdrc: hw_ep 14shared, max 1024 > > <7>musb_hdrc: hw_ep 15shared, max 1024 > > <6>musb_hdrc: USB OTG mode controller at d80ab000 using DMA, IRQ 92 > > <6>NET: Registered protocol family 2 > > <7>Switched to high resolution mode on CPU 0 > > <6>IP route cache hash table entries: 1024 (order: 0, 4096 bytes) > > <6>TCP established hash table entries: 4096 (order: 3, 32768 bytes) > > <6>TCP bind hash table entries: 4096 (order: 2, 16384 bytes) > > <6>TCP: Hash tables configured (established 4096 bind 4096) > > <6>TCP reno registered > > <6>NET: Registered protocol family 1 > > <4>NetWinder Floating Point Emulator V0.97 (double precision) > > <6>ashmem: initialized > > <5>VFS: Disk quotas dquot_6.5.1 > > Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) > > <6>JFFS2 version 2.2. (NAND) 漏 2001-2006 Red Hat, Inc. > > <6>msgmni has been set to 166 > > <6>io scheduler noop registered > > <6>io scheduler anticipatory registered (default) > > <6>io scheduler deadline registered > > <6>io scheduler cfq registered > > <6>omapfb: configured for panel omap3evm > > <6>omapfb: DISPC version 3.0 initialized > > <6>omapfb: Framebuffer initialized. Total vram 1228800 planes 1 > > <6>omapfb: Pixclock 24000 kHz hfreq 45.7142 kHz vfreq 70.3 Hz > > <6>Serial: 8250/16550 driver4 ports, IRQ sharing enabled > > <6>serial8250.0: ttyS0 at MMIO 0x4806a000 (irq = 72) is a ST16654 > > <6>console [ttyS0] enabled > > Linux version 2.6.27-omap1-05240-g88b76df-dirty ( > > r...@localhost.localdomain) (gcc version 4.2.1 (Cod > > eSourcery Sourcery G++ Lite 2007q3-51)) #9 Thu Apr 2 14:24:58 CST 2009 > > CPU: ARMv7 Processor [411fc082] revision 2 (ARMv7), cr=00c5387f > > Machine: OMAP3 EVM > > Memory policy: ECC disabled, Data cache writeback > > OMAP3430 ES2.1 > > SRAM: Mapped pa 0x40200000 to va 0xd7000000 size: 0x100000 > > CPU0: L1 I VIPT cache. Caches unified at level 2, coherent at level 3 > > CPU0: Level 1 cache is separate instruction and data > > CPU0: I cache: 16384 bytes, associativity 4, 64 byte lines, 64 sets, > > supports RA > > CPU0: D cache: 16384 bytes, associativity 4, 64 byte lines, 64 sets, > > supports RA WB WT > > CPU0: Level 2 cache is unified > > CPU0: unified cache: 262144 bytes, associativity 8, 64 byte lines, 512 > > sets, > > supports WA RA WB WT > > Built 1 zonelists in Zone order, mobility grouping on. Total pages: 22352 > > Kernel command line: console=ttyS0,115200n8 rw root=/dev/nfs > > nfsroot=10.86.76.84:/home/jennifer/Andr > > oid_rfs ip=dhcp nolock,init=/init mem=88M > > clock: virt_vdd1_prcm_set: missing clockdomain<3>clock: virt_vdd2_prcm_set: > > missing clockdomain<6>Cl > > ocking rate (Crystal/DPLL/ARM core): 26.0/332/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: 512 (order: 9, 2048 bytes) > > OMAP clockevent source: GPTIMER1 at 32768 Hz > > Console: colour dummy device 80x30 > > Dentry cache hash table entries: 16384 (order: 4, 65536 bytes) > > Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) > > Memory: 88MB = 88MB total > > Memory: 85204KB available (3212K code, 642K data, 144K init) > > Calibrating delay loop... 498.87 BogoMIPS (lpj=1945600) > > Mount-cache hash table entries: 512 > > CPU: Testing write buffer coherency: ok > > net_namespace: 288 bytes > > NET: Registered protocol family > > ... > > 閱讀更多 >>- 隱藏被引用文字 - > > - 顯示被引用文字 - --~--~---------~--~----~------------~-------~--~----~ unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---