How to download linux kernel under Linux workstations

Sathishkumar
Hi all,

I am using smdk6410. My workstation is Ubuntu 10.04. I have successfully
working with NFS rootfs, for debugging my application. Here I have to
change the running kernel to the newly build kernel (with included/excluded
some drivers). 

I have successfully setted the tftp server. Also I have tested this between
two workstations. I am able to send and receive files using tftp service. 

U-Boot detail:
***************************
u-boot 1.1.6
Updated for TE6410 Board
Version 1.0 (10-01-15)
OEM: Witech Embedded   
***************************

When I tried to transeter zImage, I get the following message:

---8<---------------------8<----------
CS8900 Ethernet chip not found?!
TFTP from server 192.168.0.201; our IP address is 192.168.0.232
Filename 'zImage'.
Load address: 0x30000000
Loading: T T T T T T T T T T 
Retry count exceeded; starting again

-------8<----------------8<-------------

Its obvious some problems with Ethernet and drivers included in Uboot. Also
there are many commands missing such as mmcinit, otherwise, I can take
zImage from the SDcard. 

Most of the time I have working with Linux Os based systems. I wish to know
is there any ways to download newly build kernel to the board under Linux
Os Based systems.

(My passion be apart, lets concentrate on the project and problem!). I have
tried to download image to the board using window XP with dwn. 

The first problem is Language. Most of them were in Chinese. (the software
given with CD)

I have installed USB driver, I supposed it have installed , but dono since
it in Chinese language. I have used to sdflaser to flash superboot to sd
card. But I am not able to download the zImage. In the dwn, input from
keyboard are not accepting. (ie when I press any key it is not goes to the
board). 

Can you please give some guidelines to flash the newly build kernel. 

I am eagarly waiting for the reply,

With Thanks,
Sathishkumar

Sathishkumar
Hi all,

I think my message is too lengthy and not clear. Here is the concise
descripition:

1. I have setted the nfs rootfs and it properly works. And I have been
using this. 
2. I am not able to get kernel via tftp.  (Which results in error)
3. Here dwn is not working properly. 
4. Also there is no commands such as "mmcinit" in the present u-boot in
target. 

Is there any way to download the kernel?

With thanks 
Sathishkumar.

davef
4.  How did you get u-boot into your target?

Which u-boot did you put in there?  Are you following some tutorial that
you can link to?

Sathishkumar
Yet, I have not changed the u-boot and kernel that comes with the board.I
am struggling to change these.

I have created Qt Embedded Sdk with OpenEmbedded. I have assembled root
file system with the busybox, mdev, busybox-init and files in the toolchain
of the sdk.  

tutorials: 

http://www.friendlyarm.net/downloads::Download Manual for Linux, WinCE,
Supervivi

With Thanks,
Sathishkumar

davef
Can you do a printenv to see how u-boot has set up your system?
Copy and paste it.

I am not familiar with the smdk6410, but would expect that these processes
work much the same way as on the mini2440.

Sathishkumar
Here is details:


INITIAL SCREEN:
==============

U-Boot 1.1.6 (Nov  8 2010 - 02:17:00) for SMDK6410                         
    
                                                                           
    
****************************************                                   
    
**    u-boot 1.1.6                    **                                   
    
**    Updated for TE6410 Board        **                                   
    
**    Version 1.0 (10-01-15)          **                                   
    
**    OEM: Witech Embedded            **                                   
    
**    Web: http://www.arm9board.net   **                                   
    
****************************************                                   
    
                                                                           
    
CPU:     S3C6410 @532MHz                                                   
    
         Fclk = 532MHz, Hclk = 133MHz, Pclk = 66MHz, Serial = CLKUART (SYNC
Mod 
Board:   SMDK6410                                                          
    
DRAM:    128 MB                                                            
    
Flash:   0 kB                                                              
    
NAND:    1024 MB                                                           
    
In:      serial                                                            
    
Out:     serial                                                            
    
Err:     serial                                                            
    
Hit any key to stop autoboot:  0  


PRIENTENV:
==========

bootcmd=nand read 0xc0008000 0x100000 0x300000;bootm 0xc0008000            
    
bootdelay=3                                                                
    
baudrate=115200                                                            
    
ethaddr=00:40:5c:26:0a:5b                                                  
    
netmask=255.255.255.0                                                      
    
ipaddr=192.168.0.232                                                       
    
serverip=192.168.0.201                                                     
    
gatewayip=192.168.0.201                                                    
    
ref_sat=root=/dev/mtdblock2 rootfstype=cramfs console=ttySAC0,115200       
    
ref_sat2=console=ttySAC0,115200 ip=192.168.0.232 root=/dev/nfs rw
nfsroot=192.1t
bootargs=console=ttySAC0,115200 ip=192.168.0.232 root=/dev/nfs rw
nfsroot=192.1t
stdin=serial                                                               
    
stdout=serial                                                              
    
stderr=serial                                                              
    
                                                                           
    
Environment size: 514/16380 bytes    

HELP:
=====


SMDK6410 # help                                                            
    
?       - alias for 'help'                                                 
    
base    - print or set address offset                                      
    
bdinfo  - print Board Info structure                                       
    
bootelf - Boot from an ELF image in memory                                 
    
bootm   - boot application image from memory                               
    
bootp   - boot image via network using BootP/TFTP protocol                 
    
bootvx  - Boot vxWorks from an ELF image                                   
    
branch  - enable or disable branch prediction                              
    
cmp     - memory compare                                                   
    
cp      - memory copy                                                      
    
crc32   - checksum calculation                                             
    
date    - get/set/reset date & time                                        
    
dcache  - enable or disable data cache                                     
    
dnw     - initialize USB device and ready to receive for Windows server
(specif)
echo    - echo args to console                                             
    
erase   - erase FLASH memory                                               
    
exit    - exit script                                                      
    
flinfo  - print FLASH memory information                                   
    
go      - start application at address 'addr'                              
    
help    - print online help                                                
    
icache  - enable or disable instruction cache                              
    
imls    - list all images found in flash                                   
    
itest   - return true/false on integer compare                             
    
loadb   - load binary file over serial line (kermit mode)                  
    
loads   - load S-Record file over serial line                              
    
loady   - load binary file over serial line (ymodem mode)                  
    
loop    - infinite loop on address range                                   
    
md      - memory display                                                   
    
mm      - memory modify (auto-incrementing)                                
    
mtest   - simple RAM test                                                  
    
mw      - memory write (fill)                                              
    
nand    - NAND sub-system                                                  
    
nboot   - boot from NAND device                                            
    
nfs     - boot image via network using NFS protocol                        
    
nm      - memory modify (constant address)                                 
    
ping    - send ICMP ECHO_REQUEST to network host                           
    
printenv- print environment variables                                      
    
protect - enable or disable FLASH write protection                         
    
rarpboot- boot image via network using RARP/TFTP protocol                  
    
reset   - Perform RESET of the CPU                                         
    
saveenv - save environment variables to persistent storage                 
    
setenv  - set environment variables                                        
    
sleep   - delay execution for some time                                    
    
test    - minimal test like /bin/sh                                        
    
tftpboot- boot image via network using TFTP protocol                       
    
usb     - USB sub-system                                                   
    
version - print monitor version  

BDINFO:
=======

SMDK6410 # bdinfo                                                          
    
arch_number = 0x0000065A                                                   
    
env_t       = 0x00000000                                                   
    
boot_params = 0x50000100                                                   
    
DRAM bank   = 0x00000000                                                   
    
-> start    = 0x50000000                                                   
    
-> size     = 0x08000000                                                   
    
ethaddr     = 00:40:5C:26:0A:5B                                            
    
ip_addr     = 192.168.0.232                                                
    
baudrate    = 115200 bps

Sathishkumar
What is usbpush? Can we use it with smdk6410. yet I haven't tried that.

With Thanks
Sathishkumar

davef
Well that printenv output is very different from the mini2440 64M old
version of u-boot that I use.

"To upload files to vivi in linux, use the usb-push app available from the
download page", from a previous thread

Nambi
Hi Dave,

We are actually using the OK6410 board from Witech.

Please comment.

Thank you,

Regards,
Nambi

davef
Comment on what?

Dave

junambi
Will the same usb-push work for this board also, the one that is used for
mini2400.

Nambi

Sathishkumar
Hi,

The wiki update in http://www.arm9board.net/wiki/index.php?title=Dnw4Linux,
sounds interesting. Does any one tried in that way? 

Here I just started with the wiki, will post details later. 

With Thanks 
Sathishkumar

Sathishkumar
Hi

I got the error as "Cannot claim interface". Do I missing any steps?

With Thanks
Sathishkumar

dave
Hi,
I have a slightly different problem, I have installed Android 2.3 on the
OK6410 from the images on witech's site. But the booting process stops
during init with a message saying cannot find init.OK6410.sh, "android" in
small letters appears on the screen but then it freezes.
Can you help?
Thanks