Port linux2.6.24.3 + yaffs to MAX2440

Source: Internet
Author: User
Port linux2.6.24.3 + yaffs to MAX2440 -- Linux general technology-Linux programming and kernel information. The following is a detailed description. Before porting yaffs to linux, you need to add devfs and manually turn off ecc verification, which is troublesome. Sometimes there will still be prompts of ecc errors.

The kernel 2.6.24.3 of the latest stable version and the latest yaffs can be used directly without these operations.

Max2440 with arch/arm/mach-s3c2440mach-osiris.c as the blueprint to modify the. After the yaffs2 source code patch-ker.sh into the kernel can be.

Source code path:
Linux-2.6.24.3.tar.bz2
Yaffs2.tar.gz

Startup information:
Read chip id = ec76
Nand flash status = c0
Set boot params = root =/dev/mtdblock2 init =/linuxrc load_ramdisk = 0 console = ttySAC1, 115200 mem = 65536 K devfs = mount display = shp240
Load Kernel...
Linux version 2.6.24.3 (wwwww @ ubuntu) (gcc version 3.4.1) #25 Sun Mar 16 20:21:59 CST 2008
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr = c0007177
Machine: Max2440
ATAG_INITRD is deprecated; please update your bootloader.
Memory policy: ECC disabled, Data cache writeback
CPU S3C2440A (id 0x32440001)
S3C244X: core 240.000 MHz, memory 60.000 MHz, peripheral 60.000 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: root =/dev/mtdblock2 init =/linuxrc load_ramdisk = 0 console = ttySAC1, 115200 mem = 65536 K devfs = mount display = shp240
Irq: clearing pending ext status 0004f700
Irq: clearing subpending status limit 009a
Irq: clearing subpending status 00000092
PID hash table entries: 256 (order: 8, 1024 bytes)
Timer tcon = 00090000, tcnt c34f, tcfg 00000200,00000000, usec was 199a
Console: color dummy device 80x30
Console [ttySAC1] enabled
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64 MB = 64 MB total
Memory: 62780KB available (1736 K code, 241 K data, 96 K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: OK
S3C2440: Initialising architecture
S3C2440: IRQ Support
S3C2440: Clock Support, DVS off
S3C24XX DMA Driver, (c) 2003-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
NetWinder Floating Point Emulator V0.97 (double precision)
Yaffs Mar 16 2008 20:21:40 Installing.
Io scheduler noop registered
Io scheduler anticipatory registered (default)
Io scheduler deadline registered
Io scheduler cfq registered
Lp: driver loaded but no devices found
Ppdev: user-space parallel port driver
Serial: 8250/16550 driver $ Revision: 1.90 $4 ports, IRQ sharing enabled
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: maid at MMIO 0x50008000 (irq = 76) is a S3C2440
RAMDISK driver initialized: 16 RAM disks of 4096 K size 1024 blocksize
Loop: module loaded
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
Ide: Assuming 50 MHz system bus speed for PIO modes; override with idebus = xx
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
S3c2440-nand s3c2440-nand: Tacls = 1, 16ns Twrph0 = 2 33ns, Twrph1 = 1 16ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB, 3 V 8-bit)
Scanning device for bad blocks
Creating 4 MTD partitions on "NAND 64MiB, 3 V 8-bit ":
0x00000000-0x00030000: "Boot Agent"
Mtd: Giving out device 0 to Boot Agent
0x00030000-0x00200000: "/boot"
Mtd: Giving out device 1 to/boot
0x00200000-0x02000000: "user1"
Mtd: Giving out device 2 to user1
0x02000000-0x04000000: "user2"
Mtd: Giving out device 3 to user2
Mice: PS/2 mouse device common for all mice
S3C24XX RTC, (c) maid Electronics
S3c2440-i2c s3c2440-i2c: slave address 0x10
S3c2440-i2c s3c2440-i2c: bus frequency set to 375 KHz
S3c2440-i2c s3c2440-i2c: i2c-0: S3C I2C adapter
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
S3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled
Drivers/rtc/hctosys. c: unable to open rtc device (rtc0)
VFS: Mounted root (cramfs filesystem) readonly.
Freeing init memory: 96 K
/Linuxrc: line 29: cannot create/proc/sys/kernel/hotplug: nonexistent directory
Init started: BusyBox v1.8.2 (01:58:42 CST)
Starting pid 746, tty '': '/etc/init. d/Rs'
Ifconfig: socket: Function not implemented
Ifconfig: socket: Function not implemented

Please press Enter to activate this console.
Starting pid 750, tty '': '/bin/Sh'
~ # Ls/proc
1 721 driver locks sysrq-trigger
2 750 execdomains meminfo sysvipc
3 751 fb misc timer_list
4 754 filesystems modules tty
42 755 fs mounts uptime
48 761 ide mtd version
5 buddyinfo interrupts pagetypeinfo vmstat
6 bus iomem partitions yaffs
69 using line ioports sched_debug zoneinfo
70 cpu irq self
702 cpuinfo kallsyms slabinfo
71 devices kmsg stat
72 diskstats loadavg sys
~ # Cd/tmp
/Tmp # ls
/Tmp # mkdir user2
/Tmp # mount/dev/mtdblock3 user2
Yaffs: dev is 32505859 name is "mtdblock3"
Yaffs: passed flags ""
Yaffs: Attempting MTD mounted on 31.3, "mtdblock3"
/Tmp # cd user2
/Tmp/user2 # ls
Aaaa linuxrc lost + found testok
/Tmp/user2 # cat testok
Test OK!
/Tmp/user2 # mount
Rootfs on/type rootfs (rw)
/Dev/root on/type cramfs (ro)
/Proc on/proc type proc (rw)
None on/sys type sysfs (rw)
None on/dev type tmpfs (rw)
Ramfs on/tmp type ramfs (rw)
/Dev/mtdblock3 on/tmp/user2 type yaffs (rw)
/Tmp/user2 # df
Filesystem 1k-blocks Used Available Use % Mounted on
/Dev/mtdblock2 5296 5296 0 100%/
None 31472 0 31472 0%/dev
/Dev/mtdblock3 32768 208 32560 1%/tmp/user2
/Tmp/user2 # cat/linuxrc
#! /Bin/sh
/Bin/mount-t proc/proc
/Bin/mount-t sysfs none/sys
/Bin/mount-o mode = 0755-t tmpfs none/dev
/Bin/mknod/dev/console c 5 1
/Bin/mknod/dev/null c 1 3
/Bin/mknod/dev/zero c 1 5
/Bin/mkdir/dev/pts
/Bin/mkdir/dev/shm
/Sbin/mdev-s
Echo/bin/mdev-s>/proc/sys/kernel/hotplug
/Bin/mount-n-t ramfs/tmp
Exec/sbin/init
/Tmp/user2 #

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.