Linux on booting stuck up with logo screen

Ayyappan Mk
Hi,

I successfully ported Uboot to NAND of mini2440 1GB. I converted the
zImage_W35 supplied with DVD to uImage using mkimage utility of Uboot.
I created jffs2 rootfs using rootfs_qtopia_qt4-20141223.tar.gz downloaded
from mini2440 download section. And then I followed Forrest's Blog to port
kernel and rootfs and final setup. I showed up as completed successfully.

But after reset and booting it stuck up with logo screen. the Uboot
messages in minicom are as follows:

U-Boot 1.3.2-mini2440 (Aug 18 2010 - 16:23:28)       
                                        
I2C:   ready                            
DRAM:  64 MB                            
NOR Flash not found. Use hardware switch and 'flinit'
Flash:  0 kB                            
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                                           
    
                                                                           
    
Loading from NAND 1GiB 3,3V 8-bit, offset 0x60000                          
    
   Image Name:                                                             
    
   Created:      2016-05-28   6:49:42 UTC                                  
    
   Image Type:   ARM Linux Kernel Image (uncompressed)                     
    
   Data Size:    2332516 Bytes =  2.2 MB                                   
    
   Load Address: 30008000                                                  
    
   Entry Point:  30008000                                                  
    
## Booting kernel from Legacy Image at 32000000 ...                        
    
   Image Name:                                                             
    
   Created:      2016-05-28   6:49:42 UTC                                  
    
   Image Type:   ARM Linux Kernel Image (uncompressed)                     
    
   Data Size:    2332516 Bytes =  2.2 MB                                   
    
   Load Address: 30008000                                                  
    
   Entry Point:  30008000                                                  
    
   Verifying Checksum ... OK                                               
    
   Loading Kernel Image ... OK                                             
    
OK                                                                         
    
                                                                           
    
Starting kernel ...                                                        
    
                                                                           
    
Uncompressing
Linux.............................................................
Linux version 2.6.32.2-FriendlyARM (root@wwd-ubuntu) (gcc version 4.4.3
(ctng-15
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177                   
    
CPU: VIVT data cache, VIVT instruction cache                               
    
Machine: FriendlyARM Mini2440 development board                            
    
Memory policy: ECC disabled, Data cache writeback                          
    
CPU S3C2440A (id 0x32440001)                                               
    
S3C24XX Clocks, (c) 2004 Simtec Electronics                                
    
S3C244X: core 405.000 MHz, memory 101.250 MHz, peripheral 50.625 MHz       
    
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on                       
    
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256 
    
Kernel command line: root=/dev/mtdblock3 rootfstype=jffs2
console=ttySAC0,115200
PID hash table entries: 256 (order: -2, 1024 bytes)                        
    
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: 59968KB available (4292K code, 455K data, 156K init, 0K highmem)   
    
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1    
    
Hierarchical RCU implementation.                                           
    
NR_IRQS:85                                                                 
    
irq: clearing pending status 02000000                                      
    
irq: clearing subpending status 00000007                                   
    
irq: clearing subpending status 00000002                                   
    
Console: colour dummy device 80x30                                         
    
console [ttySAC0] enabled                                                  
    
Calibrating delay loop... 201.93 BogoMIPS (lpj=504832)                     
    
Mount-cache hash table entries: 512                                        
    
CPU: Testing write buffer coherency: ok                                    
    
NET: Registered protocol family 16                                         
    
S3C2440: Initialising architecture                                         
    
S3C2440: IRQ Support                                                       
    
S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics                  
    
DMA channel 0 at c4808000, irq 33                                          
    
DMA channel 1 at c4808040, irq 34                                          
    
DMA channel 2 at c4808080, irq 35                                          
    
DMA channel 3 at c48080c0, irq 36                                          
    
S3C244X: Clock Support, DVS off                                            
    
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                                  
    
s3c-i2c s3c2440-i2c: slave address 0x10                                    
    
s3c-i2c s3c2440-i2c: bus frequency set to 98 KHz                           
    
s3c-i2c s3c2440-i2c: i2c-0: S3C I2C adapter                                
    
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                                          
    
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)                 
    
yaffs Dec 31 2015 13:59:58 Installing.                                     
    
msgmni has been set to 117                                                 
    
alg: No test for stdrng (krng)                                             
    
io scheduler noop registered (default)                                     
    
Console: switching to colour frame buffer device 40x15                     
    
fb0: s3c2410fb frame buffer device                                         
    
backlight       initialized                                                
    
leds    initialized                                                        
    
buttons initialized                                                        
    
pwm     initialized                                                        
    
adc     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 
    
loop: module loaded                                                        
    
S3C24XX NAND Driver, (c) 2004 Simtec Electronics                           
    
s3c24xx-nand s3c2440-nand: Tacls=3, 29ns Twrph0=7 69ns, Twrph1=3 29ns      
    
s3c24xx-nand s3c2440-nand: NAND soft ECC                                   
    
NAND device: Manufacturer ID: 0xec, Chip ID: 0xd3 (Samsung NAND 1GiB 3,3V
8-bit)
Scanning device for bad blocks                                             
    
Creating 5 MTD partitions on "NAND 1GiB 3,3V 8-bit":                       
    
0x000000000000-0x000000040000 : "supervivi"                                
    
0x000000040000-0x000000060000 : "param"                                    
    
0x000000060000-0x000000560000 : "Kernel"                                   
    
0x000000560000-0x000040560000 : "root"                                     
    
mtd: partition "root" extends beyond the end of device "NAND 1GiB 3,3V
8-bit" -0
0x000000000000-0x000040000000 : "nand"                                     
    
PPP generic driver version 2.4.2                                           
    
PPP Deflate Compression module registered                                  
    
PPP BSD Compress...stripped-down

ayyap
Attachment: error in booting using Uboot (32.71 KB)
I am Ayyappan Mk posted in the previous post.Sorry the message body was
stripped.So attaching the minicom messages as file attachment. And the
output of mtdparts and print env commands are as follows.

U-Boot 1.3.2-mini2440 (Aug 18 2010 - 16:23:28)       
                                        
I2C:   ready                            
DRAM:  64 MB                            
NOR Flash not found. Use hardware switch and 'flinit'
Flash:  0 kB                            
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                                           
    
MINI2440 # mtdparts                                                        
    
                                                                           
    
device nand0 <mini2440-nand>, # parts = 4                                  
    
 #: name                        size            offset          mask_flags 
    
 0: u-boot              0x00040000      0x00000000      0                  
    
 1: u-boot_env          0x00020000      0x00040000      0                  
    
 2: kernel              0x00500000      0x00060000      0                  
    
 3: rootfs              0x3faa0000      0x00560000      0                  
    
                                                                           
    
active partition: nand0,0 - (u-boot) 0x00040000 @ 0x00000000               
    
                                                                           
    
defaults:                                                                  
    
mtdids  : nand0=mini2440-nand                                              
    
mtdparts: <NULL>                                                           
    
MINI2440 #                                                                 
    
MINI2440 #                                                                 
    
MINI2440 #                                                                 
    
MINI2440 # printenv                                                        
    
bootargs=root=/dev/mtdblock3 rootfstype=jffs2 console=ttySAC0,115200       
    
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                                                             
    
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}:mini240
ifconfig_dhcp=run setenv ifconfig ip=dhcp                                  
    
ifconfig=ip=dhcp                                                           
    
set_bootargs_mmc=setenv bootargs ${bootargs_base} ${bootargs_init}
${mini2440} }
set_bootargs_nand=setenv bootargs ${bootargs_base} ${bootargs_init}
${mini2440}}
set_bootargs_nfs=run set_root_nfs; setenv bootargs ${bootargs_base}
${bootargs_}
mtdids=nand0=mini2440-nand                                                 
    
mtdparts=mtdparts=mini2440-nand:0x00040000(u-boot),0x00020000(u-boot_env),0x005)

filesize=649AEA4                                                           
    
bootcmd=nboot.e kernel ; bootm                                             
    
partition=nand0,0                                                          
    
mtddevnum=0                                                                
    
mtddevname=u-boot                                                          
    
                                                                           
    
Environment size: 1164/131068 bytes                                        
    
MINI2440 # 
===========================================================================

the size of rootfs is 105 MB approx.

Please help to fix this.

Regards,
Ayyappan

ayyap
Hi,

I doubt that the static partitioning done in kernel code mini2440.c must be
commented and rebuild the kernel image or enable command line mtdparts args
accepting should be enabled in the kernel and rebuild the kernel image or
enable jffs2 rootfs option in the kernel and rebuild the kernel image not
sure which I have to do. But if in any case to rebuild I could not setup
toolchain with arm-Linux-gcc-4.4.3 tar downloaded from the download section
of mini2440 page.

after downloading I gave the command

sudo tar xvzf Downloaded_tar_filename -C

It extracted the toolchain to /opt/FriendlyARM/ folder.

And I added that path to PATH environment variable by editing /root/.bashrc
and adding the line
"export PATH=$PATH:/opt/FriendlyARM/path to bin folder/"
at the end and saved the file.

And restarted to get effective. Now I typed arm-Linux-gcc -v in terminal to
check whether toolchain was installed properly. but that command showed as
"command not found". Even I tried by changing the mode of the toolchain by
"sudo chmod 777 /path_to_toolchain/" in the doubt it had not got executable
permissions by default. still the command arm-Linux-gcc -v did not show the
expected messages that toolchain was installed successfully. 

Please help me to fix this also.