pianyu / 0xdroid

Automatically exported from code.google.com/p/0xdroid
0 stars 0 forks source link

devkit8000 0x5 with SGX NFS boot crash #153

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, 

I set up a nfs server, and copy 
0xdroid-0x5/out/target/product/devkit8000/system 
0xdroid-0x5/out/target/product/devkit8000/root/* to my nfsroot/

and give the command to uboot:
"
run commonargs
setenv bootargs ${bootargs} root=/dev/nfs 
nfsroot=10.126.34.43:/mydroid/myfs/rootfs,nolock mem=256M noinitrd 
androidboot.console=ttyS2 
ip=10.126.34.208:10.126.34.43:10.126.34.43:255.255.255.0:devkit8000:eth0:off 
${kernelopts}
bootm 82000000
"

Then boot, but the system halt. the boot message from serial port:

"
## Booting kernel from Legacy Image at 82000000 ...
   Image Name:   Linux-2.6.32.9-gab664e7-dirty
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2739528 Bytes =  2.6 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.32.9-gab664e7-dirty (guest@ww020947) (gcc version 4.4.0 (GCC)
) #3 Sat Sep 25 16:13:12 CST 2010
CPU: ARMv7 Processor [411fc083] revision 3 (ARMv7), cr=10c53c7f
CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
Machine: OMAP3 Devkit8000
Memory policy: ECC disabled, Data cache writeback
OMAP3430/3530 ES3.1 (l2cache iva sgx neon isp )
SRAM: Mapped pa 0x40200000 to va 0xfe400000 size: 0x100000
Reserving 12582912 bytes SDRAM for VRAM
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
Kernel command line: console=ttyS2,115200n8 vram=12M omapdss.def_disp=lcd omapfb
.mode=lcd:480x272 omapfb.rotate=1 root=/dev/nfs nfsroot=10.126.34.43:/mydroid/my
fs/rootfs,hard,tcp,rsize=65536,wsize=65536 ip=10.126.34.164:10.126.34.43:10.126.
34.1:255.255.255.0:::off init=/init rw rootwait dnsip1=10.80.1.101 dnsip2=194.11
0.47.174
PID hash table entries: 1024 (order: 0, 4096 bytes)
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: 241152KB available (4848K code, 998K data, 144K init, 0K highmem)
Hierarchical RCU implementation.
NR_IRQS:402
Clocking rate (Crystal/Core/MPU): 26.0/266/500 MHz
Reprogramming SDRC clock to 266000000 Hz
dpll3_m2_clk rate change failed: -22
GPMC revision 5.0
IRQ: Found an INTC at 0xfa200000 (revision 4.0) with 96 interrupts
Total of 96 interrupts on 1 active controller
OMAP GPIO hardware version 2.5
OMAP clockevent source: GPTIMER1 at 32768 Hz
Console: colour dummy device 80x30
Calibrating delay loop... 499.92 BogoMIPS (lpj=1949696)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
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
SCSI subsystem initialized
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 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
devkit8000_twl_gpio_setup:319
regulator: VUSB1V5: 1500 mV normal standby
regulator: VUSB1V8: 1800 mV normal standby
regulator: VUSB3V1: 3100 mV normal standby
twl4030_usb twl4030_usb: Initialized TWL4030 USB module
regulator: VMMC1: 1850 <--> 3150 mV normal standby
regulator: VDAC: 1800 mV normal standby
i2c_omap i2c_omap.3: bus 3 rev3.12 at 100 kHz
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
Switching to clocksource 32k_counter
musb_hdrc: version 6.0, musb-dma, otg (peripheral+host), debug=0
musb_hdrc: USB OTG mode controller at fa0ab000 using DMA, IRQ 92
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
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
NetWinder Floating Point Emulator V0.97 (double precision)
ashmem: initialized
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
msgmni has been set to 471
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler cfq registered (default)
OMAP DSS rev 2.0
OMAP DISPC rev 3.0
OMAP VENC rev 2
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250.0: ttyS0 at MMIO 0x4806a000 (irq = 72) is a ST16654
serial8250.1: ttyS1 at MMIO 0x4806c000 (irq = 73) is a ST16654
serial8250.2: ttyS2 at MMIO 0x49020000 (irq = 74) is a ST16654
console [ttyS2] enabled
loop: module loaded
omap2-nand driver initializing
omap2-nand: irqstatus set on cmd entry ff
NAND device: Manufacturer ID: 0x2c, Chip ID: 0xba (Micron NAND 256MiB 1,8V 16-bi
t)
cmdlinepart partition parsing not available
Creating 5 MTD partitions on "omap2-nand":
0x000000000000-0x000000080000 : "X-Loader"
0x000000080000-0x000000260000 : "U-Boot"
0x000000260000-0x000000280000 : "U-Boot Env"
0x000000280000-0x000000680000 : "Kernel"
0x000000680000-0x000010000000 : "File System"
dm9000 Ethernet Driver, V1.31
eth0: dm9000a at d0862000,d0866400 IRQ 185 MAC: 02:bd:03:00:a0:18 (platform data
)
usbcore: registered new interface driver cdc_ether
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 1
ehci-omap ehci-omap.0: irq 77, io mem 0x48064800
ehci-omap ehci-omap.0: USB 2.0 started, EHCI 1.00
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: Љ
usb usb1: Manufacturer: Љ
usb usb1: SerialNumber: Љ
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 3 ports detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver usbserial
usbserial: USB Serial Driver core
USB Serial support registered for FTDI USB Serial Device
usbcore: registered new interface driver ftdi_sio
ftdi_sio: v1.5.0:USB FTDI Serial Converters Driver
USB Serial support registered for pl2303
usbcore: registered new interface driver pl2303
pl2303: Prolific PL2303 USB to serial adaptor driver
android init
android_probe pdata: c051b7bc
android_bind
android_usb gadget: android_usb ready
musb_hdrc musb_hdrc: MUSB HDRC host driver
musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 2
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: Љ
usb usb2: Manufacturer: Љ
usb usb2: SerialNumber: Љ
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
f_adb init
android_register_function adb
f_mass_storage init
android_register_function usb_mass_storage
adb_bind_config
mass_storage_bind_config
android_usb gadget: Number of LUNs=1
mice: PS/2 mouse device common for all mice
input: gpio-keys as /devices/platform/gpio-keys/input/input0
ads7846 spi2.0: touchscreen, irq 187
input: ADS7846 Touchscreen as /devices/platform/omap2_mcspi.2/spi2.0/input/input
1
input: twl4030_pwrbutton as /devices/platform/i2c_omap.1/i2c-1/1-0049/twl4030_pw
rbutton/input/input2
using rtc device, twl4030_rtc, for alarms
twl4030_rtc twl4030_rtc: rtc core: registered twl4030_rtc as rtc0
i2c /dev entries driver
Linux video capture interface: v2.00
usbcore: registered new interface driver uvcvideo
USB Video Class driver (v0.1.0)
Bluetooth: HCI UART driver ver 2.2
Bluetooth: HCI H4 protocol initialized
Bluetooth: HCI BCSP protocol initialized
Bluetooth: HCILL protocol initialized
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'
logger: created 64K log 'log_system'
Advanced Linux Sound Architecture Driver Version 1.0.21.
No device for DAI twl4030
No device for DAI twl4030 Voice
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
OMAP3 Beagle/Devkit8000 SoC init
TWL4030 Audio Codec init
asoc: twl4030 <-> omap-mcbsp-dai-0 mapping ok
ALSA device list:
  #0: omap3beagle (twl4030)
oprofile: using arm/armv7
TCP cubic registered
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: BNEP (Ethernet Emulation) ver 1.3
Bluetooth: BNEP filters: protocol multicast
Bluetooth: HIDP (Human Interface Emulation) ver 1.2
lib80211: common routines for IEEE802.11 drivers
Power Management for TI OMAP3.
VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 1
Console: switching to colour frame buffer device 34x30
regulator_init_complete: incomplete constraints, leaving VDAC on
twl4030_rtc twl4030_rtc: setting system clock to 2000-01-01 07:22:09 UTC (946711
329)
eth0: link down
dm9000 dm9000: eth0: link up, 100Mbps, full-duplex, no LPA
IP-Config: Complete:
     device=eth0, addr=10.126.34.164, mask=255.255.255.0, gw=10.126.34.1,
     host=10.126.34.164, domain=, nis-domain=(none),
     bootserver=10.126.34.43, rootserver=10.126.34.43, rootpath=
Looking up port of RPC 100003/2 on 10.126.34.43
Looking up port of RPC 100005/1 on 10.126.34.43
VFS: Mounted root (nfs filesystem) on device 0:13.
Freeing init memory: 144K
Warning: unable to open an initial console.
# enabling adb
adb_open
warning: `rild' uses 32-bit capabilities (legacy support in use)
"

from logcat I can see:
"
I/ethernet(  894): Found :eth0
I/EthernetService(  894): device 0 name eth0
I/EthernetService(  894): setEthState from 0 to 0
I/EthernetService(  894): Trigger the ethernet monitor
I/EthernetStateTracker(  894): start polling
I/EthernetMonitor(  894): go poll events
I/ethernet(  894): Poll events from ethernet devices
V/ConnectivityService(  894): set Ethernet Service as prefer service
E/keystore(  937): chdir: /data/misc/keystore: Permission denied
W/dalvikvm(  894): threadid=47: thread exiting with uncaught exception 
(group=0x4001b188)
E/AndroidRuntime(  894): Uncaught handler: thread ConnectivityThread exiting 
due to uncaught exception
E/AndroidRuntime(  894): *** EXCEPTION IN SYSTEM PROCESS.  System will crash.
"

The ethernet cause the system crash?
Is there any things wrong with the uboot command?
or Could you tell me How to boot NFS? 

Original issue reported on code.google.com by young.al...@gmail.com on 29 Sep 2010 at 5:34

GoogleCodeExporter commented 9 years ago
and I use system.img nand boot, It's ok.

I found NFS "I/EthernetService(  894): setEthState from 0 to 0"
But nand boot "I/EthernetService(  894): setEthState from 0 to 2"

 public static final int ETH_STATE_DISABLED = 1;
 public static final int ETH_STATE_ENABLED = 2;
 public static final int ETH_STATE_UNKNOWN = 0;

Does this cause the problem?
Any suggestion?

Best wishes.

Original comment by young.al...@gmail.com on 29 Sep 2010 at 5:38

GoogleCodeExporter commented 9 years ago
Tick might have some idea about Ethernet manager.

Original comment by jserv.tw@gmail.com on 29 Sep 2010 at 6:03

GoogleCodeExporter commented 9 years ago
We have no plan to enable Ethernet manager so far.

Original comment by jserv.tw@gmail.com on 10 Jun 2011 at 12:09