Power on Reset
Env. OS _auto_flag = 1
<*************************************** *****>
<**>
<* S3C2410 board BIOS v2008 *>
<**>
<* Henan Polytechnic University *>
<**>
<* Dong liqiang *>
<**>
<* Love_^ love you every day ^_^ *>
<**>
<*************************************** *****>
Nand flash Boot
Please select function:
0: USB download file
1: UART download file
2: Write NAND Flash with download file
3: Load pragram from NAND Flash and run
4: erase NAND Flash regions
5: Write nor flash with download file
6: Set boot Params
7: Set autoboot parameter, 1: Linux 2: WinCE
Set boot Params = root = 1f02 init =/linuxrc console = ttys0, 115200 devfs = mount display = dh240
Linux version 2.6.8.1-ptx1 (root @ linuxserver) (GCC version 3.3.2) #245 Thu Mar 6 10:25:09 est 2008
CPU: arm920tid (WB) [41129200] Revision 0 (armv4t)
CPU: D vivt write-back Cache
CPU: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
CPU: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
MACHINE: smdk2410
Atag_initrd is deprecated; please update your bootloader.
Memory Policy: ECC disabled, data cache writeback
S3C2410: Core 200.000 MHz, memory 100.000 MHz, peripheral 50.000 MHz
Built 1 zonelists
Kernel command line: Root = 1f02 init =/linuxrc console = ttys0, 115200 devfs = mount display = dh240
IRQ: clearing pending ext status 00040000
IRQ: clearing pending status 00002000
IRQ: Clearing subpending status 00000092
IRQ: Clearing subpending status 00000092
IRQ: Clearing subpending status 00000092
IRQ: Clearing subpending status 00000092
Trying to install chained handler for irq47
PID hash table entries: 512 (Order 9: 4096 bytes)
Setup_timer tcon = 00090d09, tcnt c350, tcfg 0000040f, 00001032
Console: Color dummy device 80x30
Dentry cache hash table entries: 16384 (Order: 4, 65536 bytes)
Inode-Cache hash table entries: 8192 (Order: 3, 32768 bytes)
Memory: 64 MB = 64 MB total
Memory: 61904kb available (2249 K code, 487 K data, 128 K init)
Calibrating delay loop... 99.73 bogomips
Mount-Cache hash table entries: 512 (Order: 0, 4096 bytes)
CPU: Testing write buffer coherency: OK
Net: Registered protocol family 16
S3C2410: initialising Architecture
SCSI subsystem initialized
Usbcore: registered new driver usbfs
Usbcore: registered new driver Hub
Va = 0xffc00000, Pa = 0x30380000, size = 0x00027000
Netwinder floating point emulator v0.97 (Double Precision)
Devfs: Richard Gooch (rgooch@atnf.csiro.au)
Devfs: boot_options: 0x1
NTFS Driver 2.1.15 [flags: R/W].
Yaffs Mar 6 2008 10:21:10 installing.
Console: switching to color frame buffer device 40x30
S3c2410ts init
S3c2410ts Device Driver Major: 253
S3c2410ts initialized
S3C2410 real time clock driver v0.1
S3C2410X serial, (c) 2003 simtec Electronics
Ttys0 at mmio 0x50000000 (IRQ = 70) is a S3C2410
Ttys1 at mmio 0x50004000 (IRQ = 73) is a S3C2410
Ttys2 at mmio 0x50008000 (IRQ = 76) is a S3C2410
Ramdisk driver initialized: 16 RAM disks of 4096 K size 1024 blocksize
Loop: loaded (max 8 devices)
Using anticipatory Io Scheduler
NBD: Registered device at major 43
PPP Generic Driver version 2.4.2
PPP deflate compression module registered
Ppp bsd compression module registered
Net: Registered protocol family 24
Cirrus Logic cs8900a driver for Linux (v0.02)
Eth0: cs8900a rev E Detected
Universal tun/TAP Device Driver 1.5 (c) 1999-2002 Maxim kranyansky
Linux video capture interface: v1.00
Uniform multi-platform E-IDE driver revision: 7.00alpha2
IDE: Assuming 50 MHz system bus speed for Pio modes; override with idebus = xx
Ide_register_hw return-1
Nand device: Manufacturer ID: 0xec, chip ID: 0x76 (Samsung NAND 64mib, 3 V 8-bit)
Scanning Device for Bad blocks
Creating 5 MTD partitions on "NAND 64mib, 3 V 8-bit ":
0x00000000-0x00040000: "Boot"
0x00040000-0x00200000: "kernel"
0x00200000-0x02000000: "rootfs"
0x02000000-0x03000000: "ext-fs1"
0x0300109-0x04000000: "ext-fs2"
Drivers/USB/host/ohci-s3c2410.c: ohci_hcd (S3C2410) at 0xf0200000, IRQ 42
S3c2410-ohci s3c2410-ohci5: new USB bus registered, assigned bus number 1
Hub 1-. 0: USB hub found
Hub 1-0: 1. 0: 2 ports Detected
Usbcore: registered new driver usbhid
Drivers/USB/input/hid-core.c: V2.0: USB hid Core Driver
Mice: PS/2 mouse device common for all mice
S3c2410kbd_init
S3c2410-maxtrixkb (successfully loaded)
Probe S3C2410-UDA1341
Uda1341 audio driver initialized
Net: Registered protocol family 2
IP: routing cache hash table of 512 buckets, 4 Kbytes
TCP: Hash Tables configured (established 4096 bind 8192)
Net: Registered protocol family 1
Net: Registered protocol family 17
VFS: mounted root (cramfs filesystem) readonly.
Mounted devfs on/dev
Freeing init memory: 128 K
Kernel panic: No init found. Try passing init = option to kernel.
Solution:
Add the linuxrc File
But there are new problems:
Cannot run '/etc/init. d/rc': no such file or director
Please press enter to activate this console.
Can't open/dev/tty2: no such file or director
I think the problem is on the linuxrc file. Think...
Later I checked some information:
Question 1: Use the jffs2 File System:
Jffs2 error: (1) jffs2_build_inode_pass1: Child dir "fonts" (ino #13) of Dir ino #4 appears to be a hard link
VFS: mounted root (jffs2 filesystem ).
Freeing unused kernel memory: 304 K freed
Warning: Unable to open an initial console.
Failed to execute/linuxrc. Attempting defaults...
Kernel panic-not syncing: No init found. Try passing init = option to kernel.
Cause: Flash is not completely erase.
Problem 2: An error occurred while using cramfs:
VFS: mounted root (cramfs filesystem) readonly.
Freeing unused kernel memory: 304 K freed
Error-3 while decompressing!
804878c4 (1884)-> 81200000 (16384)
Failed to execute/linuxrc. Attempting defaults...
Kernel panic-not syncing: No init found. Try passing init = option to kernel.
Cause: if you have not carefully read The mkfs. cramfs manual, you must specify the-B parameter. The size is the same as that of page_size (view the. config file config_page_size_16kb = Y ).
Question 3:
Kernel panic-not syncing: attempted to kill Init!
Cause: the file such as/etc/fstab does not exist. After the file system is redone, OK
Problem 4, always prompt cannot find/dev/tty2-4, press [enter] after the crash:
VFS: mounted root (jffs2 filesystem ).
Freeing unused kernel memory: 304 K freed
Init started: busybox v1.12.1 (13:37:42 Cst)
Starting PID 696, tty '': '/etc/init. d/Rs'
Cannot run '/etc/init. d/Rs': no such file or directory
Can't open/dev/tty2: no such file or directory
Can't open/dev/tty3: no such file or directory
Can't open/dev/tty4: no such file or directory
Process '-/bin/Sh' (PID 698) exited. Scheduling for restart.
Process '-/bin/Sh' (PID 699) exited. Scheduling for restart.
And re-compile busybox, depressing...
Networking/interface. C: 818: Error: 'arphrd _ InfiniBand 'undeclared here (not in a function)
Networking/interface. C: 818: Error: initializer element is not constant
Networking/interface. C: 818: Error: (near initialization for 'ib _ hwtype. type ')
Make [1]: *** [networking/interface. O] Error 1
Make: *** [networking] Error 2
Comment out 820/*. type = arphrd_infiniband.
I hope there will be no problems in the future! Oh, I'm going to tug-of-war. I'm back to do it!
Understanding...
Your busybox and your kernel's cross-compilation tools must be the same
Haha... Finally. Write a linuxrc file. You can add a bash file to the/binfile. After a burst of English, your mood becomes more comfortable ......
Power on Reset
Env. OS _auto_flag = 1
<*************************************** *****>
<**>
<* S3C2410 board BIOS v2008 *>
<**>
<* Henan Polytechnic University *>
<**>
<* Dong liqiang *>
<**>
<* Love_^ love you every day ^_^ *>
<**>
<*************************************** *****>
Nand flash Boot
Please select function:
0: USB download file
1: UART download file
2: Write NAND Flash with download file
3: Load pragram from NAND Flash and run
4: erase NAND Flash regions
5: Write nor flash with download file
6: Set boot Params
7: Set autoboot parameter, 1: Linux 2: WinCE
Set boot Params = root = 1f02 init =/linuxrc console = ttys0, 115200 devfs = mount display = dh240
Linux version 2.6.8.1-ptx1 (root @ linuxserver) (GCC version 3.3.2) #245 Thu Mar 6 10:25:09 est 2008
CPU: arm920tid (WB) [41129200] Revision 0 (armv4t)
CPU: D vivt write-back Cache
CPU: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
CPU: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
MACHINE: smdk2410
Atag_initrd is deprecated; please update your bootloader.
Memory Policy: ECC disabled, data cache writeback
S3C2410: Core 200.000 MHz, memory 100.000 MHz, peripheral 50.000 MHz
Built 1 zonelists
Kernel command line: Root = 1f02 init =/linuxrc console = ttys0, 115200 devfs = mount display = dh240
IRQ: clearing pending status 00002000
IRQ: Clearing subpending status 00000092
IRQ: Clearing subpending status 00000092
IRQ: Clearing subpending status 00000092
IRQ: Clearing subpending status 00000092
Trying to install chained handler for irq47
PID hash table entries: 512 (Order 9: 4096 bytes)
Setup_timer tcon = 00090d09, tcnt c350, tcfg 0000040f, 00001032
Console: Color dummy device 80x30
Dentry cache hash table entries: 16384 (Order: 4, 65536 bytes)
Inode-Cache hash table entries: 8192 (Order: 3, 32768 bytes)
Memory: 64 MB = 64 MB total
Memory: 61904kb available (2249 K code, 487 K data, 128 K init)
Calibrating delay loop... 99.94 bogomips
Mount-Cache hash table entries: 512 (Order: 0, 4096 bytes)
CPU: Testing write buffer coherency: OK
Net: Registered protocol family 16
S3C2410: initialising Architecture
SCSI subsystem initialized
Usbcore: registered new driver usbfs
Usbcore: registered new driver Hub
Va = 0xffc00000, Pa = 0x30380000, size = 0x00027000
Netwinder floating point emulator v0.97 (Double Precision)
Devfs: Richard Gooch (rgooch@atnf.csiro.au)
Devfs: boot_options: 0x1
NTFS Driver 2.1.15 [flags: R/W].
Yaffs Mar 6 2008 10:21:10 installing.
Console: switching to color frame buffer device 40x30
S3c2410ts init
S3c2410ts Device Driver Major: 253
S3c2410ts initialized
S3C2410 real time clock driver v0.1
S3C2410X serial, (c) 2003 simtec Electronics
Ttys0 at mmio 0x50000000 (IRQ = 70) is a S3C2410
Ttys1 at mmio 0x50004000 (IRQ = 73) is a S3C2410
Ttys2 at mmio 0x50008000 (IRQ = 76) is a S3C2410
Ramdisk driver initialized: 16 RAM disks of 4096 K size 1024 blocksize
Loop: loaded (max 8 devices)
Using anticipatory Io Scheduler
NBD: Registered device at major 43
PPP Generic Driver version 2.4.2
PPP deflate compression module registered
Ppp bsd compression module registered
Net: Registered protocol family 24
Cirrus Logic cs8900a driver for Linux (v0.02)
Eth0: cs8900a rev E Detected
Universal tun/TAP Device Driver 1.5 (c) 1999-2002 Maxim kranyansky
Linux video capture interface: v1.00
Uniform multi-platform E-IDE driver revision: 7.00alpha2
IDE: Assuming 50 MHz system bus speed for Pio modes; override with idebus = xx
Ide_register_hw return-1
Nand device: Manufacturer ID: 0xec, chip ID: 0x76 (Samsung NAND 64mib, 3 V 8-bit)
Scanning Device for Bad blocks
Creating 5 MTD partitions on "NAND 64mib, 3 V 8-bit ":
0x00000000-0x00040000: "Boot"
0x00040000-0x00200000: "kernel"
0x00200000-0x02000000: "rootfs"
0x02000000-0x03000000: "ext-fs1"
0x0300109-0x04000000: "ext-fs2"
Drivers/USB/host/ohci-s3c2410.c: ohci_hcd (S3C2410) at 0xf0200000, IRQ 42
S3c2410-ohci s3c2410-ohci5: new USB bus registered, assigned bus number 1
Hub 1-. 0: USB hub found
Hub 1-0: 1. 0: 2 ports Detected
Usbcore: registered new driver usbhid
Drivers/USB/input/hid-core.c: V2.0: USB hid Core Driver
Mice: PS/2 mouse device common for all mice
S3c2410kbd_init
S3c2410-maxtrixkb (successfully loaded)
Probe S3C2410-UDA1341
Uda1341 audio driver initialized
Net: Registered protocol family 2
IP: routing cache hash table of 512 buckets, 4 Kbytes
TCP: Hash Tables configured (established 4096 bind 8192)
Net: Registered protocol family 1
Net: Registered protocol family 17
VFS: mounted root (cramfs filesystem) readonly.
Mounted devfs on/dev
Freeing init memory: 128 K
Hello, Qiang (this is what I added. It indicates that the liunxrc compiled by me has been successfully executed !)
Mount/etc as ramfs
Re-create the/etc/mtab entries
Insmod:/lib/modules/2.6.8.1-ptx1: no such file or directory
Insmod:/lib/modules: no such file or directory
Insmod: sd_mod.ko: No module by that name found
Insmod:/lib/modules/2.6.8.1-ptx1: no such file or directory
Insmod:/lib/modules: no such file or directory
Insmod: usb-storage.ko: No module by that name found
Insmod:/lib/modules/2.6.8.1-ptx1: no such file or directory
Insmod:/lib/modules: no such file or directory
Insmod: usbvideo. Ko: No module by that name found
Insmod:/lib/modules/2.6.8.1-ptx1: no such file or directory
Insmod:/lib/modules: no such file or directory
Insmod: ov511.ko: No module by that name found
Mount: mounting none on/proc/bus/USB failed: no such file or directory
Mount: mounting/dev/mtdblock/1 on/mnt/yaffs failed: no such file or directory
/Etc/init. d/RCS: Line 4:/usr/etc/profile: no such file or directory
Please press enter to activate this console.
Bummer, cocould not run'/usr/etc/
Please press enter to activate this console.
A bash-2.05b # ls
[1; 34 mbin [0 m [1; 34 metc [0 m [1; 34 mlib [0 m [1; 34 mproc [0 m [1; 34 msys [0 m [1; 34 musr [0 m
[1; 34 mdev [0 m [1; 34 mhome [0 m [1; 32 mlinuxrc [0 m [1; 34 msbin [0 m [1; 34 mtmp [0 m [1; 34 mvar [0 m
Bash-2.05b #
This is a great mood, and you can enter the next stage-Development of the driver!