Running SuperMarioWar on Tiny6410

RazZziel
I'm new to FriendlyARM (and ARM in general), and I'm trying to run the
"Games/SuperMarioWar" application that comes in the "images" directory in
the DVD2 on my Tiny6410SDK.

On my FriendlyARM.ini, I have UserBin-StartAddress=50100000. If I use:

UserBin-Image=Games/SuperMarioWar/u-boot_nand-ram256.bin

when I try to run it, on my serial terminal I get:

-------
file: /images/Games/SuperMarioWar/u-boot_nand-ram256.bin: 192 KB(196608
Byte)
K
-------

If I use:

UserBin-Image=Games/SuperMarioWar/zImage_n43

when I try to run it I get

-------
file: /images/Games/SuperMarioWar/zImage_n43: 3 MB(3689776 Byte)
Uncompressing Linux... done, booting the kernel.

Error: unrecognized/unsupported machine ID (r1 = 0x00000000).

Available machine support:

ID (hex)        NAME
000009d8        MINI6410

Please check your kernel config and/or bootloader.
-------

I've successfully run other demos User Bins, like Basic OS (demo.bin) and
WindowsCE6 (NK_N43-i.nb0).

-------
The rest of my FriendlyARM.ini is:

LCD-Mode = Yes
LCD-Type = N43

CheckOneButton=No
Action=run
OS=UserBin

VerifyNandWrite=Yes

StatusType = Beeper| LED
-------


Does anyone know where the error may be?

mindee
It is Linux, not UserBin

RazZziel
Oops, thought it could be like WindowsCE6, where you can run the NK_N43.nb0
as UserBin.

Triet running it as Linux, with:

---------------
Action=run
OS=Linux

#################### Linux #####################
Linux-BootLoader = Games/SuperMarioWar/u-boot_nand-ram256.bin
Linux-Kernel = Games/SuperMarioWar/zImage_n43
Linux-CommandLine = root=ubi0:FriendlyARM-root ubi.mtd=2 rootfstype=ubifs
init=/linuxrc console=ttySAC0,115200
Linux-RootFs-InstallImage = Linux/rootfs_qtopia_qt4-slc.ubi
Linux-RootFs-RunImage = Games/SuperMarioWar/rootfs_smw.ext3
---------------

However, Linux fails to start. This is the log, just in case anyone you can
see anything meaningful:

---------------

Running OS 'LINUX'
Loading kernel...
file: /images/Games/SuperMarioWar/zImage_n43: 3 MB(3689776 Byte)
Load kernel succeed
Start Linux kernel...
Uncompressing Linux... done, booting the kernel.
Linux version 2.6.36-FriendlyARM (root@jensen) (gcc version 4.5.1
(ctng-1.8.1-FA
) ) #7 PREEMPT Wed Jan 12 18:29:13 HKT 2011
CPU: ARMv6-compatible processor [410fb766] revision 6 (ARMv7), cr=00c5387f
CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
Machine: MINI6410
Memory policy: ECC disabled, Data cache writeback
CPU S3C6410 (id 0x36410101)
S3C24XX Clocks, Copyright 2004 Simtec Electronics
camera: no parent clock specified
S3C64XX: PLL settings, A=532000000, M=266000000, E=84666666
S3C64XX: HCLK2=266000000, HCLK=133000000, PCLK=66500000
mout_apll: source is fout_apll (1), rate is 532000000
mout_epll: source is epll (1), rate is 84666666
mout_mpll: source is mpll (1), rate is 266000000
mmc_bus: source is mout_epll (0), rate is 84666666
mmc_bus: source is mout_epll (0), rate is 84666666
mmc_bus: source is mout_epll (0), rate is 84666666
usb-bus-host: source is clk_48m (0), rate is 48000000
uclk1: source is mout_epll (0), rate is 84666666
spi-bus: source is mout_epll (0), rate is 84666666
spi-bus: source is mout_epll (0), rate is 84666666
audio-bus: source is mout_epll (0), rate is 84666666
audio-bus: source is mout_epll (0), rate is 84666666
audio-bus: source is mout_epll (0), rate is 84666666
irda-bus: source is mout_epll (0), rate is 84666666
camera: no parent clock specified
s3c64xx: 10485760 bytes SDRAM reserved for fimc at 0x5f5f8000
s3c64xx: 8388608 bytes SDRAM reserved for pp at 0x5edf8000
s3c64xx: 8388608 bytes SDRAM reserved for tv at 0x5e5f8000
s3c64xx: 6291456 bytes SDRAM reserved for mfc at 0x5dff8000
s3c64xx: 4194304 bytes SDRAM reserved for jpeg at 0x5dbf8000
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
Kernel command line: root=ubi0:FriendlyARM-root ubi.mtd=2 rootfstype=ubifs
init=
/linuxrc console=ttySAC0,115200
run_fs_image=/images/Games/SuperMarioWar/rootfs_
smw.ext3
PID hash table entries: 1024 (order: 0, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 256MB = 256MB total
Memory: 215360k/215360k available, 46784k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA     : 0xff600000 - 0xffe00000   (   8 MB)
    vmalloc : 0xd0800000 - 0xe0000000   ( 248 MB)
    lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .init : 0xc0008000 - 0xc0167000   (1404 kB)
      .text : 0xc0167000 - 0xc06d5000   (5560 kB)
      .data : 0xc06f6000 - 0xc0735b60   ( 255 kB)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
        RCU-based detection of stalled CPUs is disabled.
        Verbose stalled-CPUs detection is disabled.
NR_IRQS:246
VIC @f4000000: id 0x00041192, vendor 0x41
VIC @f4010000: id 0x00041192, vendor 0x41
Console: colour dummy device 80x30
console [ttySAC0] enabled
Calibrating delay loop... 530.84 BogoMIPS (lpj=2654208)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
s3c64xx_dma_init: Registering DMA channels
s3c64xx_dma_init1: registering DMA 0 (d0808100)
s3c64xx_dma_init1: registering DMA 1 (d0808120)
s3c64xx_dma_init1: registering DMA 2 (d0808140)
s3c64xx_dma_init1: registering DMA 3 (d0808160)
s3c64xx_dma_init1: registering DMA 4 (d0808180)
s3c64xx_dma_init1: registering DMA 5 (d08081a0)
s3c64xx_dma_init1: registering DMA 6 (d08081c0)
s3c64xx_dma_init1: registering DMA 7 (d08081e0)
PL080: IRQ 73, at d0808000
s3c64xx_dma_init1: registering DMA 8 (d080c100)
s3c64xx_dma_init1: registering DMA 9 (d080c120)
s3c64xx_dma_init1: registering DMA 10 (d080c140)
s3c64xx_dma_init1: registering DMA 11 (d080c160)
s3c64xx_dma_init1: registering DMA 12 (d080c180)
s3c64xx_dma_init1: registering DMA 13 (d080c1a0)
s3c64xx_dma_init1: registering DMA 14 (d080c1c0)
s3c64xx_dma_init1: registering DMA 15 (d080c1e0)
PL080: IRQ 74, at d080c000
S3C6410: Initialising architecture
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 64 KHz
s3c-i2c s3c2440-i2c: i2c-0: S3C I2C adapter
Advanced Linux Sound Architecture Driver Version 1.0.23.
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 5, 163840 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
UDP hash table entries: 128 (order: 0, 6144 bytes)
UDP-Lite hash table entries: 128 (order: 0, 6144 bytes)
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)
squashfs: version 4.0 (2009/01/31) Phillip Lougher
msgmni has been set to 420
io scheduler noop registered (default)
S3C_LCD clock got enabled :: 133.000 Mhz
LCD TYPE :: N43 will be initialized
Window[0] - FB1: map_video_memory: clear ff600000:0007f800
            FB1: map_video_memory: dma=5d780000 cpu=ff600000 size=0007f800
Window[0] - FB2: map_video_memory: clear ff63fc00:0003fc00
            FB2: map_video_memory: dma=5d7bfc00 cpu=ff63fc00 size=0003fc00
Console: switching to colour frame buffer device 60x34
fb0: s3cfb frame buffer device
Window[1] - FB1: map_video_memory: clear ff700000:0007f800
            FB1: map_video_memory: dma=5cc00000 cpu=ff700000 size=0007f800
Window[1] - FB2: map_video_memory: clear ff73fc00:0003fc00
            FB2: map_video_memory: dma=5cc3fc00 cpu=ff73fc00 size=0003fc00
fb1: s3cfb frame buffer device
Window[2] - FB1: map_video_memory: clear ff680000:0003fc00
            FB1: map_video_memory: dma=5d740000 cpu=ff680000 size=0003fc00
fb2: s3cfb frame buffer device
Window[3] - FB1: map_video_memory: clear ff780000:0003fc00
            FB1: map_video_memory: dma=5cc80000 cpu=ff780000 size=0003fc00
fb3: s3cfb frame buffer device
backlight       initialized
leds    initialized
buttons initialized
pwm     initialized
adc     initialized
s3c6400-uart.0: s3c2410_serial0 at MMIO 0x7f005000 (irq = 16) is a
S3C6400/10
s3c6400-uart.1: s3c2410_serial1 at MMIO 0x7f005400 (irq = 20) is a
S3C6400/10
s3c6400-uart.2: s3c2410_serial2 at MMIO 0x7f005800 (irq = 24) is a
S3C6400/10
s3c6400-uart.3: s3c2410_serial3 at MMIO 0x7f005c00 (irq = 28) is a
S3C6400/10
loop: module loaded
S3C NAND Driver, (c) 2008 Samsung Electronics
S3C NAND Driver is using hardware ECC.
NAND device: Manufacturer ID: 0xec, Chip ID: 0xd5 (Samsung NAND 2GiB 3,3V
8-bit)

Creating 3 MTD partitions on "NAND 2GiB 3,3V 8-bit":
0x000000000000-0x000000080000 : "Bootloader"
0x000000080000-0x000000580000 : "Kernel"
0x000000580000-0x000080000000 : "File System"
mtd: partition "File System" doesn't start on an erase block boundary --
force r
ead-only
kernel BUG at drivers/mtd/nand/nand_base.c:217!
Unable to handle kernel NULL pointer dereference at virtual address
00000000
pgd = c0004000
[00000000] *pgd=00000000
Internal error: Oops: 805 [#1] PREEMPT
last sysfs file:
Modules linked in:
CPU: 0    Not tainted  (2.6.36-FriendlyARM #7)
PC is at __bug+0x1c/0x28
LR is at __bug+0x18/0x28
pc : [<c016b50c>]    lr : [<c016b508>]    psr: 60000013
sp : cd429e50  ip : 00002f17  fp : 00000000
r10: 00000001  r9 : 00000002  r8 : 0000003f
r7 : ccccc000  r6 : ccccc1a8  r5 : 00000000  r4 : 00000001
r3 : 00000000  r2 : cd429e44  r1 : c064ea36  r0 : 00000036
Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
Control: 00c5387d  Table: 50004008  DAC: 00000017
Process swapper (pid: 1, stack limit = 0xcd428268)
Stack: (0xcd429e50 to 0xcd42a000)
9e40:                                     c031c26c c031c2a4 c031c26c
c031eb24
9e60: 00000000 00000001 00000000 ccccc000 cd41cc50 000001b0 7fa00000
c031c888
9e80: 00000001 00000000 7ff80000 00100000 cd6ea800 c031c8d4 00000001
00000000
9ea0: 7ff80000 c0318158 80000000 00000000 c068303c c01d5070 c06f87a4
00000003
9ec0: ccccc1a8 ccccc1a8 00000000 c0713318 c0765bc8 cd448200 00000000
c0712f10
9ee0: c03211a4 c0321c9c 00000000 00000002 cd429e80 c06fdff8 c06fdff8
c07134a4
9f00: c07134a4 00000000 00000000 00000000 00000000 c02ffa08 c02ff9f4
c02febf4
9f20: 00000000 c06fdff8 c06fe02c c07134a4 00000000 c02fed04 c07134a4
cd429f48
9f40: c02feca4 c02fdec8 cd401dc8 cd44a040 c07134a4 c07134a4 cd739120
c0711870
9f60: 00000000 c02fe57c c0650755 c0650755 cd429f68 c07134a4 c0025570
c0168e54
9f80: c001a7ec 00000000 00000000 c02fef50 00000000 c07133f8 c0025570
c0168e54
...stripped-down

RazZziel
Attachment: smw.txt (13.08 KB)
Sorry about the lenghy log (I can't edit the comment). I'm attaching the
complete log.