Thanks for Kasim's help.
The MACH_TYPE is mismatch.

On Aug 26, 11:16 pm, lite <lite...@gmail.com> wrote:
> A newbie question on android-port to mini2440 64:
>
> Use this patch:http://blogimg.chinaunix.net/blog/upfile2/090803104419.rar
> Use compiler -- gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72)
> Compiled successfully: zImage
>
> Make a u-boot image:
> mkimage -A arm -O linux -T kernel -C none -a 0x30008000 -e 0x30008000
> -d ./zImage uImage
>
> Write into nand offset 0x60000.
> And boot it, will freeze on "done, booting the kernel."
> What next I should do?
>
> The output in qemu(same with mini2440 64M hardware):
> ==============================================
> /mnt/src/mini2440/qemu/mini2440$ Starting in mini2440
> mini2440/../arm-softmmu/qemu-system-arm -M mini2440 -drive
>
> file=mini2440/mini2440_snapshots.img,snapshot=on -serial stdio -kernel
>
> /tftpboot/uImage -mtdblock mini2440/mini2440_nand.bin -show-cursor
> -usb -usbdevice
>
> keyboard -usbdevice mouse -net nic,vlan=0 -net tap,vlan=0,ifname=tap0 -
> monitor
>
> telnet::5555,server,nowait
> S3C: CLK=240 HCLK=240 PCLK=240 UCLK=57
> QEMU: ee24c08_init
> DM9000: INIT QEMU MAC : 52:54:00:12:34:56
> QEMU mini2440_reset: loaded default u-boot from NAND
> QEMU mini2440_reset: loaded override u-boot (size 38e00)
> QEMU mini2440_reset: loaded /tftpboot/uImage (size 0)
> S3C: CLK=240 HCLK=240 PCLK=240 UCLK=48
> S3C: CLK=304 HCLK=304 PCLK=304 UCLK=48
> S3C: CLK=304 HCLK=101 PCLK=50 UCLK=48
> S3C: CLK=304 HCLK=76 PCLK=38 UCLK=48
> S3C: CLK=304 HCLK=76 PCLK=38 UCLK=48
> S3C: CLK=405 HCLK=101 PCLK=50 UCLK=48
>
> U-Boot 1.3.2-mini2440 (Aug 20 2009 - 09:00:14)
>
> I2C:   ready
> DRAM:  64 MB
> Flash:  2 MB
> NAND:  Bad block table not found for chip 0
> Bad block table not found for chip 0
> 64 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 # s3c24xx speed get
> FCLK = 405 MHz, HCLK = 101 MHz, PCLK = 50 MHz, UCLK = 48 MHz
> MINI2440 # print
> bootdelay=3
> baudrate=115200
> ethaddr=08:08:11:18:12:27
> usbtty=cdc_acm
> mtdparts=mtdparts=mini2440-nand:2...@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=run set_bootargs_nand;nboot.e kernel;bootm
> bootargs=console=ttySAC0,115200 noinitrd init=/sbin/init mini2440=0tb
>
> root=/dev/mtdblock3 rootfstype=jffs2
> filesize=1D8E94
> fileaddr=31000000
> gatewayip=172.20.0.1
> netmask=255.255.255.0
> ipaddr=172.20.0.111
> serverip=172.20.0.1
> partition=nand0,0
> mtddevnum=0
> mtddevname=u-boot
>
> Environment size: 1228/65532 bytes
> MINI2440 # mtdparts
>
> device nand0 <mini2440-nand>, # parts = 4
>  #: name                        size            offset
> mask_flags
>  0: u-boot              0x00040000      0x00000000      0
>  1: env                 0x00020000      0x00040000      0
>  2: kernel              0x00500000      0x00060000      0
>  3: root                0x03aa0000      0x00560000      0
>
> active partition: nand0,0 - (u-boot) 0x00040000 @ 0x00000000
>
> defaults:
> mtdids  : nand0=mini2440-nand
> mtdparts: <NULL>
> MINI2440 # boot
>
> Loading from NAND 64MiB 3,3V 8-bit, offset 0x60000
>   Image Name:
>   Created:      2009-08-26   7:05:01 UTC
>   Image Type:   ARM Linux Kernel Image (uncompressed)
>   Data Size:    2357028 Bytes =  2.2 MB
>   Load Address: 30008000
>   Entry Point:  30008000
> ## Booting kernel from Legacy Image at 32000000 ...
>   Image Name:
>   Created:      2009-08-26   7:05:01 UTC
>   Image Type:   ARM Linux Kernel Image (uncompressed)
>   Data Size:    2357028 Bytes =  2.2 MB
>   Load Address: 30008000
>   Entry Point:  30008000
>   Verifying Checksum ... OK
>   Loading Kernel Image ... OK
> OK
>
> Starting kernel ...
>
> Uncompressing
>
> Linux...................................................................... 
> ...........
>
> ........................................................................
> done, booting the kernel.
> ==============================================
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---

Reply via email to