need help on android bootup

Dhruv
Dhruv
Dhruv
Hi all,

plz help me out, everything seems to be fine but nothing is cumin up in
display....

my LCD is NEC 3.5"
1GB Nand

Bootarguments:


bootdelay=3

baudrate=115200

ethaddr=08:08:11:18:12:27

ipaddr=10.0.0.111

serverip=10.0.0.4

netmask=255.255.255.0

usbtty=cdc_acm

mtdparts=mtdparts=mini2440-nand:256k@0(u-boot),128k(env),5m(kernel),-(root)

mini2440=mini2440=0tb

bootargs_base=console=ttySAC0,115200 noinitrd

bootargs_init=init=/sbin/init

root_nand=root=/dev/mtdblock3 rootfstype=jffs2

root_mmc=root=/dev/mmcblk0p2 rootdelay=2

root_nfs=/mnt/nfs

set_root_nfs=setenv root_nfs root=/dev/nfs rw
nfsroot=${serverip}:${root_nfs}

ifconfig_static=run setenv ifconfig
ip=${ipaddr}:${serverip}::${netmask}:mini2440:eth0

ifconfig_dhcp=run setenv ifconfig ip=dhcp

ifconfig=ip=dhcp

set_bootargs_mmc=setenv bootargs ${bootargs_base} ${bootargs_init}
${mini2440} ${root_mmc}

set_bootargs_nand=setenv bootargs ${bootargs_base} ${bootargs_init}
${mini2440} ${root_nand}

set_bootargs_nfs=run set_root_nfs; setenv bootargs ${bootargs_base}
${bootargs_init} ${mini2440} ${root_nfs} ${ifconfig}

mtdids=nand0=mini2440-nand

bootcmd=mmcinit ; ext2load mmc 0:2 0x31000000 uImage ; bootm 0x31000000

bootargs=console=ttySAC0,115200 root=/dev/mmcblk0p3 rootfstype=ext3
mini2440=0tb rootdelay=3 init=/system/bin/init

partition=nand0,0

mtddevnum=0

mtddevname=u-boot



Environment size: 1198/131068 bytes

MINI2440 #

and following is my console output

U-Boot 1.3.2-mini2440 (May 25 2010 - 19:15:21)                  

I2C:   ready
DRAM:  64 MB
Flash:  2 MB
NAND:  1024 MiB
Found Environment offset in OOB..
USB:   S3C2410 USB Deviced
In:    serial
Out:   serial
Err:   serial
MAC: 08:08:11:18:12:27
Hit any key to stop autoboot:  0                                           
                          
mmc: Probing for SDHC ...                                                  
                          
===============> MMC CMD Timeout                                           
                          
mmc: No answer to CMD8 trying SD                                           
                          
trying to detect SD Card...                                                
                          
Manufacturer:       0x1b, OEM "SM"                                         
                          
Product name:       "SD   ", revision 1.0                                  
                          
Serial number:      3914402499                                             
                          
Manufacturing date: 5/2008                                                 
                          
CRC:                0x00, b0 = 1                                           
                          
READ_BL_LEN=15, C_SIZE_MULT=7, C_SIZE=3453                                 
                          
size = 2329935872                                                          
                          
SD Card detected RCA: 0xb368 type: SD                                      
                          
                                                                           
                          
2060444 bytes read                                                         
                          
## Booting kernel from Legacy Image at 31000000 ...                        
                          
   Image Name:   Linux-2.6.27                                              
                          
   Created:      2011-08-22  15:03:19 UTC                                  
                          
   Image Type:   ARM Linux Kernel Image (uncompressed)                     
                          
   Data Size:    2060380 Bytes =  2 MB                                     
                          
   Load Address: 30008000                                                  
                          
   Entry Point:  30008000                                                  
                          
   Verifying Checksum ... OK                                               
                          
   Loading Kernel Image ... OK                                             
                          
OK                                                                         
                          
                                                                           
                          
Starting kernel ...                                                        
                          
                                                                           
                          
Uncompressing
Linux...........................................................................
........
Linux version 2.6.27 (root@localhost.localdomain) (gcc version 4.3.2
(Sourcery G++ Lite 2008q3-72) ) 1
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177                   
                          
Machine: Mini2440 development board                                        
                          
Memory policy: ECC disabled, Data cache writeback                          
                          
CPU S3C2440A (id 0x32440001)                                               
                          
MM: CPU does not support supersection mapping for 0x55000000000 at
0xf0d00000                         
S3C244X: core 405.000 MHz, memory 101.250 MHz, peripheral 50.625 MHz       
                          
S3C24XX Clocks, (c) 2004 Simtec Electronics                                
                          
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on                       
                          
CPU0: D VIVT write-back cache                                              
                          
CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets        
                          
CPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets        
                          
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256 
                          
Kernel command line: console=ttySAC0,115200 root=/dev/mmcblk0p3
rootfstype=ext3 mini2440=0tb rootdelat
irq: clearing pending status 02000000                                      
                          
irq: clearing subpending status 00000002                                   
                          
PID hash table entries: 256 (order: 8, 1024 bytes)                         
                          
timer tcon=00500000, tcnt a4ca, tcfg 00000200,00000000, usec 00001e57      
                          
Console: colour dummy device 80x30                                         
                          
console [ttySAC0] enabled                                                  
                          
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: 60188KB available (3896K code, 636K data, 116K init)               
                          
SLUB: Genslabs=12, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1    
                          
Calibrating delay loop... 201.93 BogoMIPS (lpj=504832)                     
                          
Mount-cache hash table entries: 512                                        
                          
CPU: Testing write buffer coherency: ok                                    
                          
net_namespace: 288 bytes                                                   
                          
NET: Registered protocol family 16                                         
                          
S3C2440: Initialising architecture                                         
                          
S3C2440: IRQ Support                                                       
                          
S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics                  
                          
DMA channel 0 at c4800000, irq 33                                          
                          
DMA channel 1 at c4800040, irq 34                                          
                          
DMA channel 2 at c4800080, irq 35                                          
                          
DMA channel 3 at c48000c0, irq 36                                          
                          
S3C244X: Clock Support, DVS off                                            
                          
SCSI subsystem initialized                                                 
                          
usbcore: registered new interface driver usbfs                             
                          
usbcore: registered new interface driver hub                               
                          
usbcore: registered new device driver usb                                  
                          
NET: Registered protocol family 2                                          
                          
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)             
                          
TCP established hash table entries: 2048 (order: 2, 16384 bytes)           
                          
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)                   
                          
TCP: Hash tables configured (established 2048 bind 2048)                   
                          
TCP reno registered                                                        
                          
NET: Registered protocol family 1                                          
      ...stripped-down

davef
Looks like a pretty old Linux kernel.  

Have you been "through the hoops" setting up u-boot for 1GB NAND.

Also, how have you partitioned your SD card?

Dhruv
The 1GB SD Card is partitioned to:
   1. Partition 1:  LINUX-SWAP 512mb
   2. Partition 2:  EXT2       20 mb
   3. Partition 3:  EXT3       approx 480mb 

wat do u mean by "Have you been "through the hoops" setting up u-boot for
1GB NAND.", coz i have used d uboot from
http://sites.google.com/site/belina76/android-booting

Dhruv
actually i have configured kernel as per NEC 3.5" LCD display along with
its default config, coz i was suspecting the kernel image to be config for
T3.5 LCD.

dhruv
U-Boot 1.3.2-mini2440 (May 25 2010 - 19:15:21)                  

I2C:   ready
DRAM:  64 MB
Flash:  2 MB
NAND:  1024 MiB
Found Environment offset in OOB..
USB:   S3C2410 USB Deviced
In:    serial
Out:   serial
Err:   serial
MAC: 08:08:11:18:12:27
Hit any key to stop autoboot:  0                                           
                          
mmc: Probing for SDHC ...                                                  
                          
===============> MMC CMD Timeout                                           
                          
mmc: No answer to CMD8 trying SD                                           
                          
trying to detect SD Card...                                                
                          
Manufacturer:       0x1b, OEM "SM"                                         
                          
Product name:       "SD   ", revision 1.0                                  
                          
Serial number:      3914402499                                             
                          
Manufacturing date: 5/2008                                                 
                          
CRC:                0x00, b0 = 1                                           
                          
READ_BL_LEN=15, C_SIZE_MULT=7, C_SIZE=3453                                 
                          
size = 2329935872                                                          
                          
SD Card detected RCA: 0xb368 type: SD                                      
                          
                                                                           
                          
2060444 bytes read                                                         
                          
## Booting kernel from Legacy Image at 31000000 ...                        
                          
   Image Name:   Linux-2.6.27                                              
                          
   Created:      2011-08-22  15:03:19 UTC                                  
                          
   Image Type:   ARM Linux Kernel Image (uncompressed)                     
                          
   Data Size:    2060380 Bytes =  2 MB                                     
                          
   Load Address: 30008000                                                  
                          
   Entry Point:  30008000                                                  
                          
   Verifying Checksum ... OK                                               
                          
   Loading Kernel Image ... OK                                             
                          
OK                                                                         
                          
                                                                           
                          
Starting kernel ...                                                        
                          
                                                                           
                          
Uncompressing
Linux...........................................................................
........
Linux version 2.6.27 (root@localhost.localdomain) (gcc version 4.3.2
(Sourcery G++ Lite 2008q3-72) ) 1
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177                   
                          
Machine: Mini2440 development board                                        
                          
Memory policy: ECC disabled, Data cache writeback                          
                          
CPU S3C2440A (id 0x32440001)                                               
                          
MM: CPU does not support supersection mapping for 0x55000000000 at
0xf0d00000                         
S3C244X: core 405.000 MHz, memory 101.250 MHz, peripheral 50.625 MHz       
                          
S3C24XX Clocks, (c) 2004 Simtec Electronics                                
                          
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on                       
                          
CPU0: D VIVT write-back cache                                              
                          
CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets        
                          
CPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets        
                          
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256 
                          
Kernel command line: console=ttySAC0,115200 root=/dev/mmcblk0p3
rootfstype=ext3 mini2440=0tb rootdelat
irq: clearing pending status 02000000                                      
                          
irq: clearing subpending status 00000002                                   
                          
PID hash table entries: 256 (order: 8, 1024 bytes)                         
                          
timer tcon=00500000, tcnt a4ca, tcfg 00000200,00000000, usec 00001e57      
                          
Console: colour dummy device 80x30                                         
                          
console [ttySAC0] enabled                                                  
                          
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: 60188KB available (3896K code, 636K data, 116K init)               
                          
SLUB: Genslabs=12, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1    
                          
Calibrating delay loop... 201.93 BogoMIPS (lpj=504832)                     
                          
Mount-cache hash table entries: 512                                        
                          
CPU: Testing write buffer coherency: ok                                    
                          
net_namespace: 288 bytes                                                   
                          
NET: Registered protocol family 16                                         
                          
S3C2440: Initialising architecture                                         
                          
S3C2440: IRQ Support                                                       
                          
S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics                  
                          
DMA channel 0 at c4800000, irq 33                                          
                          
DMA channel 1 at c4800040, irq 34                                          
                          
DMA channel 2 at c4800080, irq 35                                          
                          
DMA channel 3 at c48000c0, irq 36                                          
                          
S3C244X: Clock Support, DVS off                                            
                          
SCSI subsystem initialized                                                 
                          
usbcore: registered new interface driver usbfs                             
                          
usbcore: registered new interface driver hub                               
                          
usbcore: registered new device driver usb                                  
                          
NET: Registered protocol family 2                                          
                          
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)             
                          
TCP established hash table entries: 2048 (order: 2, 16384 bytes)           
                          
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)                   
                          
TCP: Hash tables configured (established 2048 bind 2048)                   
                          
TCP reno registered                                                        
                          
NET: Registered protocol family 1                                          
                          
NetWinder Floating Point Emulator V0.97 (double precision)                 
                          
ashmem: initialized                                                        
                          
NTFS driver 2.1.29 [Flags: R/W DEBUG].                                     
                          
yaffs Aug 22 2011 20:29:48 Installing.                                     
                          
msgmni has been set to 117                                                 
                          
io scheduler noop registered (default)                                     
                          
Console: switching to colour frame buffer device 30x20                     
                          
fb0: s3c2410fb frame buffer device                                         
                          
adc     initialized                                                        
                          
input: buttons as /class/input/input0                                      
                          
buttons initialized                                                        
                          
leds    initialized                                                        
                          
s3c2440-uart.0: s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2440 
                          
s3c2440-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2440 
                          
s3c2440-uart.2: s3c2410_serial2 at MMIO 0x50008000 (irq = ...stripped-down

dhruv
buttons initialized                                                        
                          
leds    initialized                                                        
                          
s3c2440-uart.0: s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2440 
                          
s3c2440-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2440 
                          
s3c2440-uart.2: s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2440 
                          
brd: module loaded                                                         
                          
loop: module loaded                                                        
                          
nbd: registered device at major 43                                         
                          
logger: created 64K log 'log_main'                                         
                          
logger: created 256K log 'log_events'                                      
                          
logger: created 64K log 'log_radio'                                        
                          
dm9000 Ethernet Driver, V1.31                                              
                          
Now use the default MAC address: 08:90:90:90:90:90                         
                          
eth0: dm9000e at c4804000,c4806004 IRQ 51 MAC: c3900934 (friendly-arm)     
                          
usbcore: registered new interface driver zd1211rw                          
                          
usbcore: registered new interface driver zd1201                            
                          
Linux video capture interface: v2.00                                       
                          
ovcamchip: v2.27 for Linux 2.6 : OV camera chip I2C driver                 
                          
usbcore: registered new interface driver ov511                             
                          
ov511: v1.64 for Linux 2.5 : ov511 USB Camera Driver                       
                          
Driver 'sd' needs updating - please use bus_type methods                   
                          
S3C24XX NAND Driver, (c) 2004 Simtec Electronics                           
                          
s3c2440-nand s3c2440-nand: Tacls=3, 29ns Twrph0=7 69ns, Twrph1=3 29ns      
                          
NAND device: Manufacturer ID: 0xec, Chip ID: 0xd3 (Samsung NAND 1GiB 3,3V
8-bit)                      
NAND_ECC_NONE selected by board driver. This is not recommended !!         
                          
Scanning device for bad blocks                                             
                          
Bad eraseblock 1888 at 0x0ec00000                                          
                          
Bad eraseblock 3186 at 0x18e40000                                          
                          
Bad eraseblock 5363 at 0x29e60000                                          
                          
Creating 4 MTD partitions on "NAND 1GiB 3,3V 8-bit":                       
                          
0x00000000-0x00060000 : "supervivi"                                        
                          
0x00060000-0x00260000 : "Kernel"                                           
                          
0x00260000-0x40260000 : "root"                                             
                          
mtd: partition "root" extends beyond the end of device "NAND 1GiB 3,3V
8-bit" -- size truncated to 0x0
0x00000000-0x40000000 : "nand"                                             
                          
s3c2410-ohci s3c2410-ohci: S3C24XX OHCI                                    
                          
s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1   
                          
s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000                       
                          
usb usb1: configuration #1 chosen from 1 choice                            
                          
hub 1-0:1.0: USB hub found                                                 
                          
hub 1-0:1.0: 2 ports detected                                              
                          
Initializing USB Mass Storage driver...                                    
                          
usbcore: registered new interface driver usb-storage                       
                          
USB Mass Storage support registered.                                       
                          
s3c2440-usbgadget s3c2440-usbgadget: S3C2440: increasing FIFO to 128 bytes 
                          
mice: PS/2 mouse device common for all mice                                
                          
usbcore: registered new interface driver appletouch                        
                          
input: s3c2410 TouchScreen as /class/input/input1                          
                          
s3c2410 TouchScreen successfully loaded                                    
                          
S3C24XX RTC, (c) 2004,2006 Simtec Electronics                              
                          
s3c2410-rtc s3c2410-rtc: rtc disabled, re-enabling                         
                          
s3c2410-rtc s3c2410-rtc: rtc core: registered s3c as rtc0                  
                          
i2c /dev entries driver                                                    
                          
s3c2440-i2c s3c2440-i2c: slave address 0x10                                
                          
s3c2440-i2c s3c2440-i2c: bus frequency set to 98 KHz                       
                          
s3c2440-i2c s3c2440-i2c: i2c-0: S3C I2C adapter                            
                          
mapped channel 0 to 0                                                      
                          
s3c2440-sdi s3c2440-sdi: powered down.                                     
                          
s3c2440-sdi s3c2440-sdi: initialisation done.                              
                          
s3c2440-sdi s3c2440-sdi: running at 0kHz (requested: 0kHz).                
                          
s3c2440-sdi s3c2440-sdi: running at 198kHz (requested: 197kHz).            
                          
s3c2440-sdi s3c2440-sdi: running at 198kHz (requested: 197kHz).            
                          
s3c2440-sdi s3c2440-sdi: running at 198kHz (requested: 197kHz).            
                          
s3c2440-sdi s3c2440-sdi: running at 198kHz (requested: 197kHz).            
                          
s3c2440-sdi s3c2440-sdi: running at 198kHz (requested: 197kHz).            
                          
usbcore: registered new interface driver hiddev                            
                          
s3c2440-sdi s3c2440-sdi: running at 198kHz (requested: 197kHz).            
                          
usbcore: registered new interface driver usbhid                            
                          
usbhid: v2.6:USB HID core driver                                           
                          
UDA1341 audio driver initialized                                           
                          
failed to get memory region resouce                                        
                          
s3c2410-iis: probe of s3c2410-iis.0 failed with error -2                   
                          
s3c2440-sdi s3c2440-sdi: running at 198kHz (requested: 197kHz).            
                          
TCP cubic registered                                                       
                          
NET: Registered protocol family 17                                         
                          
RPC: Registered udp transport module.                                      
                          
RPC: Registered tcp transport module.                                      
                          
s3c2440-sdi s3c2440-sdi: running at 16875kHz (requested: 25000kHz).        
                          
s3c2440-sdi s3c2440-sdi: running at 16875kHz (requested: 25000kHz).        
                          
mmc0: new SD card at address b368                                          
                          
mmcblk0: mmc0:b368 SD    993792KiB                                         
                          
 mmcblk0: p1 p2 p3                                                         
                          
s3c2410-rtc s3c2410-rtc: setting system clock to 2011-08-20 07:48:43 UTC
(1313826523)                 
Waiting 3sec before mounting root device...                                
                          
kjournald starting.  Commit interval 5 seconds                             
                          
EXT3 FS on mmcblk0p3, internal journal                                     
                          
EXT3-fs: mounted filesystem with ordered data mode.                        
                          
VFS: Mounted root (ext3 filesystem).                                       
                          
Freeing init memory: 116K                                                  
                          
init: cannot open '/initlogo.rle'                                          
                          
init: cannot find '/system/bin/playmp3', disabling 'bootsound'             
                          
sh: can't access tty; job control turned off                               
                          
/ # warning: `rild' uses 32-bit capabilities (legacy support in use)

davef
u-boot with 1Gb has been a source of problems for many people, but if
u-boot from that site works then that's great.

Things that look suspect to me:

< Kernel command line: console=ttySAC0,115200 root=/dev/mmcblk0p3
< rootfstype=ext3 mini2440=0tb rootdelat

what is delat? Shouldn't that be rootdelay?  I see in the top posting you
have rootdelay. Doesn't sem to be reported correctly.

< Creating 4 MTD partitions on "NAND 1GiB 3,3V
< 8-bit":                       
                          
< 0x00000000-0x00060000 : 
< supervivi"                                        
                          
< 0x00060000-0x00260000 :
< "Kernel"                                           
                          
< 0x00260000-0x40260000 : "root"

I expected to see:  u-boot, env, kernel and root. As per this line at the
top:

< mtdparts=mtdparts=mini2440-nand:256k@0
< (u-boot),128k(env),5m(kernel),-(root)

As you are using u-boot and evidently have a uImage I don't know why there
is Supervivi above.


good luck.

davef

dhruv
thanks for ur feedback...do u have images for kernel rootfs and uboot for
1GB Nand wit N3.5 lcd.. or can u guide me wit how to a build correct one.