Well, i already replaced init bunary file with sh (changed name to
"init")...
Here is what kernel said...

U-Boot 1.1.6 (Apr  2 2008 - 14:35:33)

DRAM:  64 MB
Flash:  2 MB
NAND:  64 MiB
In:    serial
Out:   serial
Err:   serial
Hit any key to stop autoboot:  0
Detected: 2027008 blocks of 512 bytes (989MB) SD card.
Vendor: Man 11 OEM JC "064MB" Date 11/2003
Product: 320
Revision: 0.10
reading linux.igz

1213060 bytes read
## Booting image at a1000000 ...
   Image Name:   Linux Kernel Image
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1212996 Bytes =  1.2 MB
   Load Address: a0800000
   Entry Point:  a0800000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing
Linux..................................................................................
done, booting the ke.
Linux version 2.6.19_RC15 ([EMAIL PROTECTED]) (gcc version 4.2.1
(CodeSourcery Sourcery G++ Lite 2007q3-53)) #219 Tue Apr 22 15:08
CPU: XScale-PXA270 [69054117] revision 7 (ARMv5TE), cr=0000397f
Machine: HITEC
Memory policy: ECC disabled, Data cache writeback
Run Mode clock: 208.00MHz (*16)
Turbo Mode clock: 416.00MHz (*2.0, active)
Memory clock: 104.00MHz (/2)
System bus clock: 208.00MHz
Standard (MSC0= 0x13387aa8)  NAND mode
The additional board GPIO's are configured
CPU0: D VIVT undefined 5 cache
CPU0: I cache: 32768 bytes, associativity 32, 32 byte lines, 32 sets
CPU0: D cache: 32768 bytes, associativity 32, 32 byte lines, 32 sets
Built 1 zonelists.  Total pages: 16256
Kernel command line: console=ttyS0,115200 root=/dev/mtdblock2
rootfstype=jffs2 rw
PID hash table entries: 256 (order: 8, 1024 bytes)
start_kernel(): bug: interrupts were enabled early
Console: colour dummy device 80x30
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: 62220KB available (2200K code, 243K data, 204K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
NET: Registered protocol family 2
IP route cache hash table entries: 512 (order: -1, 2048 bytes)
TCP established hash table entries: 2048 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 2048 bind 1024)
TCP reno registered
squashfs: version 3.2-r2 (2007/01/15) Phillip Lougher
squashfs: LZMA suppport for slax.org by jro
JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.
yaffs Apr 22 2008 13:56:09 Installing.
io scheduler noop registered
io scheduler anticipatory registered (default)
Hitec Backlight Driver Initialized.
External logo in flash not found @ 0x1c0000
pxa2xx-uart.0: ttyS0 at MMIO 0x40100000 (irq = 22) is a FFUART
pxa2xx-uart.1: ttyS1 at MMIO 0x40200000 (irq = 21) is a BTUART
pxa2xx-uart.2: ttyS2 at MMIO 0x40700000 (irq = 20) is a STUART
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP BSD Compression module registered
PPP MPPE Compression module registered
Found: AMD AM29LV160DB
THB PXA module: Found 1 x16 devices at 0x0 in 16-bit bank
number of JEDEC chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code
brokenness.
Using static partition definition
Creating 2 MTD partitions on "THB PXA module":
0x00000000-0x00040000 : "boot"
0x00040000-0x001f0000 : "kernel"
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB
3,3V 8-bit)
Using static partition definition
Creating 4 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x03a00000 : "rootfs (ro)"
Add SSFTL support
0x03a00000-0x04000000 : "config (rw)"
0x04000000-0x04000000 : "additional"
mtd: partition "additional" is out of reach -- disabled
mmcblk0: mmc0:0001 064MB 1013504KiB
 mmcblk0:<5>0x00000000-0x04000000 : "whole NAND"
 p1 p2
pxa27x_udc: version 01-01-2006
ether gadget: using random self ethernet address
ether gadget: using random host ethernet address
usb0: Ethernet Gadget, version: May Day 2005
usb0: using pxa27x_udc, OUT ep2out-bulk IN ep1in-bulk STATUS ep3in-
intr
usb0: MAC 86:89:01:44:95:24
usb0: HOST MAC a2:f0:42:7c:a6:db
usb0: RNDIS ready
wm97xx: Version 0.64 [EMAIL PROTECTED]
Advanced Linux Sound Architecture Driver Version 1.0.13 (Tue Nov 28
14:07:24 2006 UTC).
AC97 for PXA255 registered
pxa2xx-ac97: reset
wm97xx: Detected a WM9712 codec
input: wm97xx touchscreen as /class/input/input0
wm97xx: setting pen detect pull-up to 16000 Ohms
wm97xx: setting adc sample delay to 42 u Secs.
WM97XX: Vbat = 4.0V
WM97XX: Vref = 1.8V
ALSA device list:
  #0: pxa2xx-ac97 (Wolfson WM9711,WM9712)
TCP cubic registered
NET: Registered protocol family 1
HSPM init started
HSPM driver is loaded and configured
Empty flash at 0x026ae164 ends at 0x026ae200
Empty flash at 0x033c9848 ends at 0x033c9a00
Empty flash at 0x0343ee84 ends at 0x0343f000
JFFS2 notice: (440) check_node_data: wrong data CRC in data node at
0x0343e600: read 0x930ca238, calculated 0x94a7c7b0.
JFFS2 notice: (440) check_node_data: wrong data CRC in data node at
0x033c9e00: read 0x6bdc1638, calculated 0x8e9df0fc.
JFFS2 notice: (440) check_node_data: wrong data CRC in data node at
0x033c8e00: read 0xce6aa64e, calculated 0x7af457cd.
VFS: Mounted root (jffs2 filesystem).
Freeing init memory: 204K
sh: can't access tty; job control turned off
#

I have some warnings (file system wasn't unmounted correctly before).

With busybox i have access to few precious commands now.
I tried to run strace:

#strace -ff -F -tt -s 200 -o /data/logs/log-init /init

# cat log-init.454
00:12:40.291438 execve("/init", ["/init"], [/* 4 vars */]) = 0
00:12:40.360535 gettid()                = 454
00:12:40.364825 syscall_983045(0xbeb76e14, 0, 0x20, 0, 0xbeb57000,
0xbeb76ed0, 0xbeb76f20, 0xf0005, 0xbeb76f20, 0, 0x80b8,0
00:12:40.370259 socket(PF_FILE, SOCK_STREAM, 0) = 3
00:12:40.373993 connect(3, {sa_family=AF_FILE,
[EMAIL PROTECTED], 19) = -1 ECONNREFUSED (Connection refused)
00:12:40.380820 close(3)                = 0
00:12:40.385272 sigaction(SIGCHLD, {0x8211, [], SA_NOCLDSTOP}, NULL,
0xc0fc0) = 0
00:12:40.391694 umask(0)                = 022
00:12:40.395695 ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B115200 opost
isig icanon echo ...}) = 0
00:12:40.402385 dup(1)                  = 3
00:12:40.414177 write(3, "init: HOW ARE YOU GENTLEMEN\n", 28) = 28
00:12:40.418212 close(0)                = 0
00:12:40.423833 close(1)                = 0
00:12:40.427831 close(2)                = 0
00:12:40.432032 open("/dev/null", O_RDWR|O_LARGEFILE) = 0
00:12:40.438163 dup2(0, 1)              = 1
00:12:40.442257 dup2(0, 2)              = 2
00:12:40.446329 write(3, "init: reading config file\n", 26) = 26
00:12:40.452149 brk(0)                  = 0x20000
00:12:40.457708 brk(0x20000)            = 0x20000
00:12:40.461889 brk(0x21000)            = 0x21000
00:12:40.466210 open("/etc/init.rc", O_RDONLY|O_LARGEFILE) = -1 ENOENT
(No such file or directory)
00:12:40.472617 mkdir("/proc", 0755)    = -1 EEXIST (File exists)
00:12:40.477162 mkdir("/dev", 0755)     = -1 EEXIST (File exists)
00:12:40.483201 mkdir("/dev/pts", 0755) = -1 EEXIST (File exists)
00:12:40.488712 mkdir("/sys", 0755)     = -1 EEXIST (File exists)
00:12:40.493353 mkdir("/d", 0755)       = -1 EEXIST (File exists)
00:12:40.499280 mount("/dev/pts", "/dev/pts", "devpts", 0, NULL) = 0
00:12:40.504607 mount("/proc", "/proc", "proc", 0, NULL) = 0
00:12:40.510935 mount("/sys", "/sys", "sysfs", 0, NULL) = 0
00:12:40.515738 mount("/d", "/d", "debugfs", 0, NULL) = -1 ENODEV (No
such device)
00:12:40.522944 mount("/tmp", "/tmp", "tmpfs", 0, NULL) = -1 ENOENT
(No such file or directory)
00:12:40.528552 open("/proc/cmdline", O_RDONLY|O_LARGEFILE) = 4
00:12:40.533285 read(4, "console=ttyS0,115200 root=/dev/mtdblock2
rootfstype=jffs2 rw\n", 1023) = 61
00:12:40.540372 close(4)                = 0
00:12:40.544472 chmod("/proc/cmdline", 0400) = 0
00:12:40.549993 open("/system_properties", O_RDWR|O_CREAT|O_EXCL|
O_LARGEFILE, 0600) = 4
00:12:40.554345 ftruncate(4, 32768)     = 0
00:12:40.560127 open("/system_properties", O_RDONLY|O_LARGEFILE) = 5
00:12:40.564120 unlink("/system_properties") = 0
00:12:40.569570 mmap2(NULL, 32768, PROT_READ|PROT_WRITE, MAP_SHARED,
4, 0) = -1 EINVAL (Invalid argument)
00:12:40.574049 close(5)                = 0
00:12:40.579625 close(4)                = 0
00:12:40.583801 open("/etc/default.prop", O_RDONLY|O_LARGEFILE) = -1
ENOENT (No such file or directory)
00:12:40.588764 write(3, "init: device init\n", 18) = 18
00:12:40.594249 getpid()                = 454
00:12:40.598301 socket(PF_NETLINK, SOCK_DGRAM, 15) = 4
00:12:40.603240 setsockopt(4, SOL_SOCKET, 0x21 /* SO_??? */, [65536],
4) = 0
00:12:40.606828 bind(4, {sa_family=AF_NETLINK, pid=454,
groups=ffffffff}, 12 <unfinished ...>
00:12:40.773486 +++ killed by SIGSEGV +++

The kernel was builded with arm-eabi compiler...also EABI support is
tutned on:

[*] Use the ARM EABI to compile the kernel
[*]   Allow old ABI binaries to run with this kernel (EXPERIMENTAL)

Do you think, that it won't work with filesystem placed on not-yaffs2
partition??
I have mkyaffsimage tool for yaffs2 filesystem...but is it possible to
create image with erase block size = pagesize = 2KiB??

Regards,
renegade

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Android Internals" group.
To post to this group, send email to android-internals@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/android-internals?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to